/* Generated by Cython 0.29.37 */ /* BEGIN: Cython Metadata { "distutils": { "define_macros": [ [ "PYIMGUI_CUSTOM_EXCEPTION", null ] ], "depends": [ "ansifeed-cpp\\AnsiTextColored.cpp", "ansifeed-cpp\\AnsiTextColored.h", "imgui-cpp\\imgui.h", "imgui-cpp\\imgui_internal.h" ], "extra_compile_args": [ "/FIpy_imconfig.h" ], "include_dirs": [ "imgui-cpp", "ansifeed-cpp", ".\\imgui", "imgui", "config-cpp" ], "language": "c++", "name": "imgui.core", "sources": [ "imgui/core.pyx", "imgui-cpp/imgui.cpp", "imgui-cpp/imgui_draw.cpp", "imgui-cpp/imgui_demo.cpp", "imgui-cpp/imgui_widgets.cpp", "imgui-cpp/imgui_tables.cpp", "config-cpp/py_imconfig.cpp" ] }, "module_name": "imgui.core" } END: Cython Metadata */ #ifndef PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN #endif /* PY_SSIZE_T_CLEAN */ #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython requires Python 2.6+ or Python 3.3+. #else #define CYTHON_ABI "0_29_37" #define CYTHON_HEX_VERSION 0x001D25F0 #define CYTHON_FUTURE_DIVISION 0 #include #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #define __PYX_COMMA , #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x02070000 #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #define CYTHON_COMPILING_IN_NOGIL 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #if PY_VERSION_HEX < 0x03090000 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT) #define CYTHON_PEP489_MULTI_PHASE_INIT 1 #endif #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00) #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #define CYTHON_COMPILING_IN_NOGIL 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif #elif defined(PY_NOGIL) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #define CYTHON_COMPILING_IN_NOGIL 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #ifndef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 1 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 1 #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 1 #endif #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #define CYTHON_COMPILING_IN_NOGIL 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP) #define CYTHON_USE_PYTYPE_LOOKUP 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS (PY_VERSION_HEX < 0x030C00A5) #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #if PY_VERSION_HEX >= 0x030B00A4 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #elif !defined(CYTHON_FAST_THREAD_STATE) #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030A0000) #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000) #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) #endif #ifndef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS ((PY_VERSION_HEX >= 0x030600B1) && (PY_VERSION_HEX < 0x030C00A5)) #endif #if PY_VERSION_HEX >= 0x030B00A4 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #elif !defined(CYTHON_USE_EXC_INFO_STACK) #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3) #endif #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #if PY_MAJOR_VERSION < 3 #include "longintrepr.h" #endif #undef SHIFT #undef BASE #undef MASK #ifdef SIZEOF_VOID_P enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) }; #endif #endif #ifndef __has_attribute #define __has_attribute(x) 0 #endif #ifndef __has_cpp_attribute #define __has_cpp_attribute(x) 0 #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifdef _MSC_VER #ifndef _MSC_STDINT_H_ #if _MSC_VER < 1300 typedef unsigned char uint8_t; typedef unsigned int uint32_t; #else typedef unsigned __int8 uint8_t; typedef unsigned __int32 uint32_t; #endif #endif #else #include #endif #ifndef CYTHON_FALLTHROUGH #if defined(__cplusplus) && __cplusplus >= 201103L #if __has_cpp_attribute(fallthrough) #define CYTHON_FALLTHROUGH [[fallthrough]] #elif __has_cpp_attribute(clang::fallthrough) #define CYTHON_FALLTHROUGH [[clang::fallthrough]] #elif __has_cpp_attribute(gnu::fallthrough) #define CYTHON_FALLTHROUGH [[gnu::fallthrough]] #endif #endif #ifndef CYTHON_FALLTHROUGH #if __has_attribute(fallthrough) #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) #else #define CYTHON_FALLTHROUGH #endif #endif #if defined(__clang__ ) && defined(__apple_build_version__) #if __apple_build_version__ < 7000000 #undef CYTHON_FALLTHROUGH #define CYTHON_FALLTHROUGH #endif #endif #endif #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template void __Pyx_call_destructor(T& x) { x.~T(); } template class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template bool operator ==(U other) { return *ptr == other; } template bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_DefaultClassType PyType_Type #if PY_VERSION_HEX >= 0x030B00A1 static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(int a, int k, int l, int s, int f, PyObject *code, PyObject *c, PyObject* n, PyObject *v, PyObject *fv, PyObject *cell, PyObject* fn, PyObject *name, int fline, PyObject *lnos) { PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL; PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *call_result=NULL, *empty=NULL; const char *fn_cstr=NULL; const char *name_cstr=NULL; PyCodeObject* co=NULL; PyObject *type, *value, *traceback; PyErr_Fetch(&type, &value, &traceback); if (!(kwds=PyDict_New())) goto end; if (!(argcount=PyLong_FromLong(a))) goto end; if (PyDict_SetItemString(kwds, "co_argcount", argcount) != 0) goto end; if (!(posonlyargcount=PyLong_FromLong(0))) goto end; if (PyDict_SetItemString(kwds, "co_posonlyargcount", posonlyargcount) != 0) goto end; if (!(kwonlyargcount=PyLong_FromLong(k))) goto end; if (PyDict_SetItemString(kwds, "co_kwonlyargcount", kwonlyargcount) != 0) goto end; if (!(nlocals=PyLong_FromLong(l))) goto end; if (PyDict_SetItemString(kwds, "co_nlocals", nlocals) != 0) goto end; if (!(stacksize=PyLong_FromLong(s))) goto end; if (PyDict_SetItemString(kwds, "co_stacksize", stacksize) != 0) goto end; if (!(flags=PyLong_FromLong(f))) goto end; if (PyDict_SetItemString(kwds, "co_flags", flags) != 0) goto end; if (PyDict_SetItemString(kwds, "co_code", code) != 0) goto end; if (PyDict_SetItemString(kwds, "co_consts", c) != 0) goto end; if (PyDict_SetItemString(kwds, "co_names", n) != 0) goto end; if (PyDict_SetItemString(kwds, "co_varnames", v) != 0) goto end; if (PyDict_SetItemString(kwds, "co_freevars", fv) != 0) goto end; if (PyDict_SetItemString(kwds, "co_cellvars", cell) != 0) goto end; if (PyDict_SetItemString(kwds, "co_linetable", lnos) != 0) goto end; if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL))) goto end; if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL))) goto end; if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline))) goto end; if (!(replace = PyObject_GetAttrString((PyObject*)co, "replace"))) goto cleanup_code_too; if (!(empty = PyTuple_New(0))) goto cleanup_code_too; // unfortunately __pyx_empty_tuple isn't available here if (!(call_result = PyObject_Call(replace, empty, kwds))) goto cleanup_code_too; Py_XDECREF((PyObject*)co); co = (PyCodeObject*)call_result; call_result = NULL; if (0) { cleanup_code_too: Py_XDECREF((PyObject*)co); co = NULL; } end: Py_XDECREF(kwds); Py_XDECREF(argcount); Py_XDECREF(posonlyargcount); Py_XDECREF(kwonlyargcount); Py_XDECREF(nlocals); Py_XDECREF(stacksize); Py_XDECREF(replace); Py_XDECREF(call_result); Py_XDECREF(empty); if (type) { PyErr_Restore(type, value, traceback); } return co; } #else #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #endif #define __Pyx_DefaultClassType PyType_Type #endif #if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o) #else #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o) #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_STACKLESS #define METH_STACKLESS 0 #endif #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL) #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 #endif typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1 #define PyMem_RawMalloc(n) PyMem_Malloc(n) #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n) #define PyMem_RawFree(p) PyMem_Free(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #elif PY_VERSION_HEX >= 0x03060000 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() #elif PY_VERSION_HEX >= 0x03000000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #else #define __Pyx_PyThreadState_Current _PyThreadState_Current #endif #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT) #include "pythread.h" #define Py_tss_NEEDS_INIT 0 typedef int Py_tss_t; static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) { *key = PyThread_create_key(); return 0; } static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) { Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); *key = Py_tss_NEEDS_INIT; return key; } static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) { PyObject_Free(key); } static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) { return *key != Py_tss_NEEDS_INIT; } static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) { PyThread_delete_key(*key); *key = Py_tss_NEEDS_INIT; } static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) { return PyThread_set_key_value(*key, value); } static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { return PyThread_get_key_value(*key); } #endif #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized) #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) #else #define __Pyx_PyDict_NewPresized(n) PyDict_New() #endif #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) #else #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name) #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #if PY_VERSION_HEX >= 0x030C0000 #define __Pyx_PyUnicode_READY(op) (0) #else #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #endif #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #if PY_VERSION_HEX >= 0x030C0000 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u)) #else #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length)) #else #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #endif #endif #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #ifndef PyObject_Unicode #define PyObject_Unicode PyObject_Str #endif #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #if PY_VERSION_HEX >= 0x030900A4 #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt) #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size) #else #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt) #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size) #endif #if CYTHON_ASSUME_SAFE_MACROS #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq) #else #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq) #endif #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef __Pyx_PyAsyncMethodsStruct typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #endif #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS) #if !defined(_USE_MATH_DEFINES) #define _USE_MATH_DEFINES #endif #endif #include #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_MARK_ERR_POS(f_index, lineno) \ { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; } #define __PYX_ERR(f_index, lineno, Ln_error) \ { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; } #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__imgui__core #define __PYX_HAVE_API__imgui__core /* Early includes */ #include "imgui.h" #include "ios" #include "new" #include "stdexcept" #include "typeinfo" #include #include #include #include #include "../ansifeed-cpp/AnsiTextColored.h" #include "../ansifeed-cpp/AnsiTextColored.cpp" #include "imgui_internal.h" #include #include "pythread.h" #include "pystate.h" #ifdef _OPENMP #include #endif /* _OPENMP */ #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8) #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) { return (size_t) i < (size_t) limit; } #if defined (__cplusplus) && __cplusplus >= 201103L #include #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b); static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); #define __Pyx_PySequence_Tuple(obj)\ (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } static PyObject *__pyx_m = NULL; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_cython_runtime = NULL; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "imgui\\core.pyx", ".\\imgui/common.pyx", "stringsource", "type.pxd", }; /* MemviewSliceStruct.proto */ struct __pyx_memoryview_obj; typedef struct { struct __pyx_memoryview_obj *memview; char *data; Py_ssize_t shape[8]; Py_ssize_t strides[8]; Py_ssize_t suboffsets[8]; } __Pyx_memviewslice; #define __Pyx_MemoryView_Len(m) (m.shape[0]) /* Atomics.proto */ #include #ifndef CYTHON_ATOMICS #define CYTHON_ATOMICS 1 #endif #define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS #define __pyx_atomic_int_type int #if CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\ (__GNUC_MINOR__ > 1 ||\ (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2)))) #define __pyx_atomic_incr_aligned(value) __sync_fetch_and_add(value, 1) #define __pyx_atomic_decr_aligned(value) __sync_fetch_and_sub(value, 1) #ifdef __PYX_DEBUG_ATOMICS #warning "Using GNU atomics" #endif #elif CYTHON_ATOMICS && defined(_MSC_VER) && CYTHON_COMPILING_IN_NOGIL #include #undef __pyx_atomic_int_type #define __pyx_atomic_int_type long #pragma intrinsic (_InterlockedExchangeAdd) #define __pyx_atomic_incr_aligned(value) _InterlockedExchangeAdd(value, 1) #define __pyx_atomic_decr_aligned(value) _InterlockedExchangeAdd(value, -1) #ifdef __PYX_DEBUG_ATOMICS #pragma message ("Using MSVC atomics") #endif #else #undef CYTHON_ATOMICS #define CYTHON_ATOMICS 0 #ifdef __PYX_DEBUG_ATOMICS #warning "Not using atomics" #endif #endif typedef volatile __pyx_atomic_int_type __pyx_atomic_int; #if CYTHON_ATOMICS #define __pyx_add_acquisition_count(memview)\ __pyx_atomic_incr_aligned(__pyx_get_slice_count_pointer(memview)) #define __pyx_sub_acquisition_count(memview)\ __pyx_atomic_decr_aligned(__pyx_get_slice_count_pointer(memview)) #else #define __pyx_add_acquisition_count(memview)\ __pyx_add_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock) #define __pyx_sub_acquisition_count(memview)\ __pyx_sub_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock) #endif /* ForceInitThreads.proto */ #ifndef __PYX_FORCE_INIT_THREADS #define __PYX_FORCE_INIT_THREADS 0 #endif /* NoFastGil.proto */ #define __Pyx_PyGILState_Ensure PyGILState_Ensure #define __Pyx_PyGILState_Release PyGILState_Release #define __Pyx_FastGIL_Remember() #define __Pyx_FastGIL_Forget() #define __Pyx_FastGilFuncInit() /* BufferFormatStructs.proto */ #define IS_UNSIGNED(type) (((type) -1) > 0) struct __Pyx_StructField_; #define __PYX_BUF_FLAGS_PACKED_STRUCT (1 << 0) typedef struct { const char* name; struct __Pyx_StructField_* fields; size_t size; size_t arraysize[8]; int ndim; char typegroup; char is_unsigned; int flags; } __Pyx_TypeInfo; typedef struct __Pyx_StructField_ { __Pyx_TypeInfo* type; const char* name; size_t offset; } __Pyx_StructField; typedef struct { __Pyx_StructField* field; size_t parent_offset; } __Pyx_BufFmt_StackElem; typedef struct { __Pyx_StructField root; __Pyx_BufFmt_StackElem* head; size_t fmt_offset; size_t new_count, enc_count; size_t struct_alignment; int is_complex; char enc_type; char new_packmode; char enc_packmode; char is_valid_array; } __Pyx_BufFmt_Context; /*--- Type declarations ---*/ struct __pyx_obj_5imgui_4core__Font; struct __pyx_obj_5imgui_4core__ImGuiContext; struct __pyx_obj_5imgui_4core__DrawCmd; struct __pyx_obj_5imgui_4core__DrawList; struct __pyx_obj_5imgui_4core__Colors; struct __pyx_obj_5imgui_4core_GuiStyle; struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs; struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array; struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs; struct __pyx_obj_5imgui_4core__ImGuiViewport; struct __pyx_obj_5imgui_4core__DrawData; struct __pyx_obj_5imgui_4core__StaticGlyphRanges; struct __pyx_obj_5imgui_4core_GlyphRanges; struct __pyx_obj_5imgui_4core_FontConfig; struct __pyx_obj_5imgui_4core__FontAtlas; struct __pyx_obj_5imgui_4core__IO; struct __pyx_obj_5imgui_4core__callback_user_info; struct __pyx_obj_5imgui_4core__InputTextSharedBuffer; struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData; struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData; struct __pyx_obj_5imgui_4core__BeginEnd; struct __pyx_obj_5imgui_4core__BeginEndChild; struct __pyx_obj_5imgui_4core__BeginEndListBox; struct __pyx_obj_5imgui_4core__BeginEndTooltip; struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar; struct __pyx_obj_5imgui_4core__BeginEndMenuBar; struct __pyx_obj_5imgui_4core__BeginEndMenu; struct __pyx_obj_5imgui_4core__BeginEndPopup; struct __pyx_obj_5imgui_4core__BeginEndPopupModal; struct __pyx_obj_5imgui_4core__BeginEndTable; struct __pyx_obj_5imgui_4core__BeginEndCombo; struct __pyx_obj_5imgui_4core__BeginEndTabBar; struct __pyx_obj_5imgui_4core__BeginEndTabItem; struct __pyx_obj_5imgui_4core__BeginEndDragDropSource; struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget; struct __pyx_obj_5imgui_4core__BeginEndGroup; struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font; struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled; struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored; struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled; struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped; struct __pyx_array_obj; struct __pyx_MemviewEnum_obj; struct __pyx_memoryview_obj; struct __pyx_memoryviewslice_obj; struct __pyx_opt_args_5imgui_4core_calc_text_size; struct __pyx_opt_args_5imgui_4core_push_style_color; struct __pyx_opt_args_5imgui_4core_pop_style_var; struct __pyx_opt_args_5imgui_4core_get_color_u32_idx; struct __pyx_opt_args_5imgui_4core_push_text_wrap_pos; struct __pyx_opt_args_5imgui_4core_pop_style_color; struct __pyx_defaults; typedef struct __pyx_defaults __pyx_defaults; struct __pyx_defaults1; typedef struct __pyx_defaults1 __pyx_defaults1; struct __pyx_defaults2; typedef struct __pyx_defaults2 __pyx_defaults2; struct __pyx_defaults3; typedef struct __pyx_defaults3 __pyx_defaults3; /* "imgui/core.pyx":10955 * cimgui.PopFont() * * cpdef calc_text_size(str text, bool hide_text_after_double_hash = False, float wrap_width = -1.0): # <<<<<<<<<<<<<< * """Calculate text size. * Text can be multi-line. */ struct __pyx_opt_args_5imgui_4core_calc_text_size { int __pyx_n; bool hide_text_after_double_hash; float wrap_width; }; /* "imgui/core.pyx":11106 * * cpdef push_style_color( * cimgui.ImGuiCol variable, # <<<<<<<<<<<<<< * float r, * float g, */ struct __pyx_opt_args_5imgui_4core_push_style_color { int __pyx_n; float a; }; /* "imgui/core.pyx":11149 * * * cpdef pop_style_var(unsigned int count=1): # <<<<<<<<<<<<<< * """Pop style variables from stack. * */ struct __pyx_opt_args_5imgui_4core_pop_style_var { int __pyx_n; unsigned int count; }; /* "imgui/core.pyx":11187 * # Neither singledispatch nor multipledispatch seems to be available in Cython :-/ * * cpdef get_color_u32_idx(cimgui.ImGuiCol idx, float alpha_mul = 1.0): # <<<<<<<<<<<<<< * """ retrieve given style color with style alpha applied and optional extra alpha multiplier * */ struct __pyx_opt_args_5imgui_4core_get_color_u32_idx { int __pyx_n; float alpha_mul; }; /* "imgui/core.pyx":11318 * * * cpdef push_text_wrap_pos(float wrap_pos_x = 0.0): # <<<<<<<<<<<<<< * """Word-wrapping function for text*() commands. * */ struct __pyx_opt_args_5imgui_4core_push_text_wrap_pos { int __pyx_n; float wrap_pos_x; }; /* "imgui/core.pyx":11363 * cimgui.PopButtonRepeat() * * cpdef pop_style_color(unsigned int count=1): # <<<<<<<<<<<<<< * """Pop style color from stack. * */ struct __pyx_opt_args_5imgui_4core_pop_style_color { int __pyx_n; unsigned int count; }; struct __pyx_defaults { float __pyx_arg_width; float __pyx_arg_height; bool __pyx_arg_border; ImGuiWindowFlags __pyx_arg_flags; }; struct __pyx_defaults1 { float __pyx_arg_width; float __pyx_arg_height; bool __pyx_arg_border; ImGuiWindowFlags __pyx_arg_flags; }; struct __pyx_defaults2 { float __pyx_arg_width; float __pyx_arg_height; bool __pyx_arg_border; ImGuiWindowFlags __pyx_arg_flags; }; struct __pyx_defaults3 { float __pyx_arg_width; float __pyx_arg_height; bool __pyx_arg_border; ImGuiWindowFlags __pyx_arg_flags; }; /* "imgui/core.pxd":8 * cimport cimgui * * cdef class _Font(object): # <<<<<<<<<<<<<< * cdef cimgui.ImFont* _ptr * */ struct __pyx_obj_5imgui_4core__Font { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__Font *__pyx_vtab; ImFont *_ptr; }; /* "imgui/core.pyx":577 * * _contexts = {} * cdef class _ImGuiContext(object): # <<<<<<<<<<<<<< * cdef cimgui.ImGuiContext* _ptr * */ struct __pyx_obj_5imgui_4core__ImGuiContext { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__ImGuiContext *__pyx_vtab; ImGuiContext *_ptr; }; /* "imgui/core.pyx":600 * * * cdef class _DrawCmd(object): # <<<<<<<<<<<<<< * cdef cimgui.ImDrawCmd* _ptr * */ struct __pyx_obj_5imgui_4core__DrawCmd { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__DrawCmd *__pyx_vtab; ImDrawCmd *_ptr; }; /* "imgui/core.pyx":627 * * * cdef class _DrawList(object): # <<<<<<<<<<<<<< * """ Low level drawing API. * */ struct __pyx_obj_5imgui_4core__DrawList { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__DrawList *__pyx_vtab; ImDrawList *_ptr; }; /* "imgui/core.pyx":2076 * * * cdef class _Colors(object): # <<<<<<<<<<<<<< * cdef GuiStyle _style * */ struct __pyx_obj_5imgui_4core__Colors { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__Colors *__pyx_vtab; struct __pyx_obj_5imgui_4core_GuiStyle *_style; }; /* "imgui/core.pyx":2102 * * * cdef class GuiStyle(object): # <<<<<<<<<<<<<< * """ * Container for ImGui style information */ struct __pyx_obj_5imgui_4core_GuiStyle { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core_GuiStyle *__pyx_vtab; ImGuiStyle *_ptr; bool _owner; struct __pyx_obj_5imgui_4core__Colors *_colors; }; /* "imgui/core.pyx":2588 * return self._colors * * cdef class _ImGuiTableColumnSortSpecs(object): # <<<<<<<<<<<<<< * cdef cimgui.ImGuiTableColumnSortSpecs* _ptr * */ struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_vtab; ImGuiTableColumnSortSpecs *_ptr; }; /* "imgui/core.pyx":2650 * * * cdef class _ImGuiTableColumnSortSpecs_array(object): # <<<<<<<<<<<<<< * * cdef cimgui.ImGuiTableSortSpecs* _ptr */ struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_vtab; ImGuiTableSortSpecs *_ptr; size_t idx; }; /* "imgui/core.pyx":2699 * # self._table_sort_specs._require_pointer() * * cdef class _ImGuiTableSortSpecs(object): # <<<<<<<<<<<<<< * cdef cimgui.ImGuiTableSortSpecs* _ptr * cdef _ImGuiTableColumnSortSpecs_array specs */ struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__ImGuiTableSortSpecs *__pyx_vtab; ImGuiTableSortSpecs *_ptr; struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *specs; }; /* "imgui/core.pyx":2741 * self._ptr.SpecsDirty = specs_dirty * * cdef class _ImGuiViewport(object): # <<<<<<<<<<<<<< * """Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. * */ struct __pyx_obj_5imgui_4core__ImGuiViewport { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__ImGuiViewport *__pyx_vtab; ImGuiViewport *_ptr; }; /* "imgui/core.pyx":2807 * return _cast_ImVec2_tuple(self._ptr.GetWorkCenter()) * * cdef class _DrawData(object): # <<<<<<<<<<<<<< * cdef cimgui.ImDrawData* _ptr * */ struct __pyx_obj_5imgui_4core__DrawData { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__DrawData *__pyx_vtab; ImDrawData *_ptr; }; /* "imgui/core.pyx":2879 * ] * * cdef class _StaticGlyphRanges(object): # <<<<<<<<<<<<<< * cdef const cimgui.ImWchar* ranges_ptr * */ struct __pyx_obj_5imgui_4core__StaticGlyphRanges { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__StaticGlyphRanges *__pyx_vtab; ImWchar const *ranges_ptr; }; /* "imgui/core.pyx":2892 * * * cdef class GlyphRanges(object): # <<<<<<<<<<<<<< * cdef const cimgui.ImWchar* ranges_ptr * */ struct __pyx_obj_5imgui_4core_GlyphRanges { PyObject_HEAD ImWchar const *ranges_ptr; }; /* "imgui/core.pyx":2913 * * * cdef class FontConfig(object): # <<<<<<<<<<<<<< * cdef cimgui.ImFontConfig config * */ struct __pyx_obj_5imgui_4core_FontConfig { PyObject_HEAD ImFontConfig config; }; /* "imgui/core.pyx":2977 * * * cdef class _FontAtlas(object): # <<<<<<<<<<<<<< * """Font atlas object responsible for controling and loading fonts. * */ struct __pyx_obj_5imgui_4core__FontAtlas { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__FontAtlas *__pyx_vtab; ImFontAtlas *_ptr; }; /* "imgui/core.pyx":3141 * self._ptr.TexID = value * * cdef class _IO(object): # <<<<<<<<<<<<<< * """Main ImGui I/O context class used for ImGui configuration. * */ struct __pyx_obj_5imgui_4core__IO { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__IO *__pyx_vtab; ImGuiIO *_ptr; PyObject *_fonts; PyObject *_keep_ini_alive; PyObject *_keep_logfile_alive; }; /* "imgui/core.pyx":3603 * return _cast_ImVec2_tuple(self._ptr.MouseDelta) * * cdef class _callback_user_info(object): # <<<<<<<<<<<<<< * * cdef object callback_fn */ struct __pyx_obj_5imgui_4core__callback_user_info { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__callback_user_info *__pyx_vtab; PyObject *callback_fn; PyObject *user_data; }; /* "imgui/core.pyx":3626 * self.text_input_buffer_size = text_input_buffer_size * * cdef class _InputTextSharedBuffer(object): # <<<<<<<<<<<<<< * * cdef char* buffer */ struct __pyx_obj_5imgui_4core__InputTextSharedBuffer { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer *__pyx_vtab; char *buffer; int size; int capacity; }; /* "imgui/core.pyx":3684 * return 0 * * cdef class _ImGuiInputTextCallbackData(object): # <<<<<<<<<<<<<< * * cdef cimgui.ImGuiInputTextCallbackData* _ptr */ struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__ImGuiInputTextCallbackData *__pyx_vtab; ImGuiInputTextCallbackData *_ptr; }; /* "imgui/core.pyx":3834 * return * * cdef class _ImGuiSizeCallbackData(object): # <<<<<<<<<<<<<< * * cdef cimgui.ImGuiSizeCallbackData* _ptr */ struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData { PyObject_HEAD struct __pyx_vtabstruct_5imgui_4core__ImGuiSizeCallbackData *__pyx_vtab; ImGuiSizeCallbackData *_ptr; }; /* "imgui/core.pyx":4130 * * * cdef class _BeginEnd(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin` exposing ``expanded`` and ``opened`` boolean attributes. */ struct __pyx_obj_5imgui_4core__BeginEnd { PyObject_HEAD bool expanded; bool opened; }; /* "imgui/core.pyx":4245 * * * cdef class _BeginEndChild(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_child` exposing ``visible`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndChild { PyObject_HEAD bool visible; }; /* "imgui/core.pyx":5367 * * * cdef class _BeginEndListBox(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_list_box` exposing ``opened`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndListBox { PyObject_HEAD bool opened; }; /* "imgui/core.pyx":5544 * * * cdef class _BeginEndTooltip(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_tooltip`. */ struct __pyx_obj_5imgui_4core__BeginEndTooltip { PyObject_HEAD }; /* "imgui/core.pyx":5608 * * * cdef class _BeginEndMainMenuBar(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_main_menu_bar` exposing ``opened`` (displayed) boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar { PyObject_HEAD bool opened; }; /* "imgui/core.pyx":5718 * * * cdef class _BeginEndMenuBar(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_menu_bar` exposing ``opened`` (displayed) boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndMenuBar { PyObject_HEAD bool opened; }; /* "imgui/core.pyx":5826 * * * cdef class _BeginEndMenu(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_menu` exposing ``opened`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndMenu { PyObject_HEAD bool opened; }; /* "imgui/core.pyx":6017 * * * cdef class _BeginEndPopup(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_popup` exposing ``opened`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndPopup { PyObject_HEAD bool opened; }; /* "imgui/core.pyx":6124 * * * cdef class _BeginEndPopupModal(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_popup_modal` exposing ``opened`` and ``visible`` boolean attributes. */ struct __pyx_obj_5imgui_4core__BeginEndPopupModal { PyObject_HEAD bool opened; bool visible; }; /* "imgui/core.pyx":6435 * * * cdef class _BeginEndTable(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_table` exposing ``opened`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndTable { PyObject_HEAD bool opened; }; /* "imgui/core.pyx":7263 * * * cdef class _BeginEndCombo(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_combo` exposing ``opened`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndCombo { PyObject_HEAD bool opened; }; /* "imgui/core.pyx":11742 * return cimgui.GetColumnsCount() * * cdef class _BeginEndTabBar(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_tab_bar` exposing ``opened`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndTabBar { PyObject_HEAD bool opened; }; /* "imgui/core.pyx":11813 * cimgui.EndTabBar() * * cdef class _BeginEndTabItem(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_tab_item` exposing ``selected`` and ``opened`` boolean attributes. */ struct __pyx_obj_5imgui_4core__BeginEndTabItem { PyObject_HEAD bool selected; bool opened; }; /* "imgui/core.pyx":12020 * * * cdef class _BeginEndDragDropSource(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_drag_drop_source` exposing ``dragging`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndDragDropSource { PyObject_HEAD bool dragging; }; /* "imgui/core.pyx":12156 * * * cdef class _BeginEndDragDropTarget(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_drag_drop_target` exposing ``hovered`` boolean attribute. */ struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget { PyObject_HEAD bool hovered; }; /* "imgui/core.pyx":12333 * * * cdef class _BeginEndGroup(object): # <<<<<<<<<<<<<< * """ * Return value of :func:`begin_group`. */ struct __pyx_obj_5imgui_4core__BeginEndGroup { PyObject_HEAD }; /* "imgui/core.pyx":12694 * @contextmanager * @cython.binding(True) * def _py_font(_Font font): # <<<<<<<<<<<<<< * """Use specified font in given context. * */ struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font { PyObject_HEAD struct __pyx_obj_5imgui_4core__Font *__pyx_v_font; }; /* "imgui/core.pyx":12727 * @contextmanager * @cython.binding(True) * def _py_styled(cimgui.ImGuiStyleVar variable, value): # <<<<<<<<<<<<<< * # note: we treat bool value as integer to guess if we are required to pop * # anything because IMGUI may simply skip pushing */ struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled { PyObject_HEAD PyObject *__pyx_v_count; PyObject *__pyx_v_value; ImGuiStyleVar __pyx_v_variable; }; /* "imgui/core.pyx":12737 * @contextmanager * @cython.binding(True) * def _py_colored( # <<<<<<<<<<<<<< * cimgui.ImGuiCol variable, * float r, */ struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored { PyObject_HEAD float __pyx_v_a; float __pyx_v_b; PyObject *__pyx_v_count; float __pyx_v_g; float __pyx_v_r; ImGuiCol __pyx_v_variable; }; /* "imgui/core.pyx":12753 * @contextmanager * @cython.binding(True) * def _py_istyled(*variables_and_values): # <<<<<<<<<<<<<< * # todo: rename to nstyled? * count = 0 */ struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled { PyObject_HEAD PyObject *__pyx_v_count; PyObject *__pyx_v_iterator; PyObject *__pyx_v_val; PyObject *__pyx_v_var; PyObject *__pyx_v_variables_and_values; PyObject *__pyx_t_0; PyObject *__pyx_t_1; PyObject *__pyx_t_2; }; /* "imgui/core.pyx":12782 * @contextmanager * @cython.binding(True) * def _py_scoped(str str_id): # <<<<<<<<<<<<<< * """Use scoped ID within a block of code. * */ struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped { PyObject_HEAD PyObject *__pyx_v_str_id; }; /* "View.MemoryView":106 * * @cname("__pyx_array") * cdef class array: # <<<<<<<<<<<<<< * * cdef: */ struct __pyx_array_obj { PyObject_HEAD struct __pyx_vtabstruct_array *__pyx_vtab; char *data; Py_ssize_t len; char *format; int ndim; Py_ssize_t *_shape; Py_ssize_t *_strides; Py_ssize_t itemsize; PyObject *mode; PyObject *_format; void (*callback_free_data)(void *); int free_data; int dtype_is_object; }; /* "View.MemoryView":280 * * @cname('__pyx_MemviewEnum') * cdef class Enum(object): # <<<<<<<<<<<<<< * cdef object name * def __init__(self, name): */ struct __pyx_MemviewEnum_obj { PyObject_HEAD PyObject *name; }; /* "View.MemoryView":331 * * @cname('__pyx_memoryview') * cdef class memoryview(object): # <<<<<<<<<<<<<< * * cdef object obj */ struct __pyx_memoryview_obj { PyObject_HEAD struct __pyx_vtabstruct_memoryview *__pyx_vtab; PyObject *obj; PyObject *_size; PyObject *_array_interface; PyThread_type_lock lock; __pyx_atomic_int acquisition_count[2]; __pyx_atomic_int *acquisition_count_aligned_p; Py_buffer view; int flags; int dtype_is_object; __Pyx_TypeInfo *typeinfo; }; /* "View.MemoryView":967 * * @cname('__pyx_memoryviewslice') * cdef class _memoryviewslice(memoryview): # <<<<<<<<<<<<<< * "Internal class for passing memoryview slices to Python" * */ struct __pyx_memoryviewslice_obj { struct __pyx_memoryview_obj __pyx_base; __Pyx_memviewslice from_slice; PyObject *from_object; PyObject *(*to_object_func)(char *); int (*to_dtype_func)(char *, PyObject *); }; /* "View.MemoryView":106 * * @cname("__pyx_array") * cdef class array: # <<<<<<<<<<<<<< * * cdef: */ struct __pyx_vtabstruct_array { PyObject *(*get_memview)(struct __pyx_array_obj *); }; static struct __pyx_vtabstruct_array *__pyx_vtabptr_array; /* "imgui/core.pyx":2966 * * * cdef class _Font(object): # <<<<<<<<<<<<<< * @staticmethod * cdef from_ptr(cimgui.ImFont* ptr): */ struct __pyx_vtabstruct_5imgui_4core__Font { PyObject *(*from_ptr)(ImFont *); }; static struct __pyx_vtabstruct_5imgui_4core__Font *__pyx_vtabptr_5imgui_4core__Font; /* "imgui/core.pyx":577 * * _contexts = {} * cdef class _ImGuiContext(object): # <<<<<<<<<<<<<< * cdef cimgui.ImGuiContext* _ptr * */ struct __pyx_vtabstruct_5imgui_4core__ImGuiContext { PyObject *(*from_ptr)(ImGuiContext *); }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiContext *__pyx_vtabptr_5imgui_4core__ImGuiContext; /* "imgui/core.pyx":600 * * * cdef class _DrawCmd(object): # <<<<<<<<<<<<<< * cdef cimgui.ImDrawCmd* _ptr * */ struct __pyx_vtabstruct_5imgui_4core__DrawCmd { PyObject *(*from_ptr)(ImDrawCmd *); }; static struct __pyx_vtabstruct_5imgui_4core__DrawCmd *__pyx_vtabptr_5imgui_4core__DrawCmd; /* "imgui/core.pyx":627 * * * cdef class _DrawList(object): # <<<<<<<<<<<<<< * """ Low level drawing API. * */ struct __pyx_vtabstruct_5imgui_4core__DrawList { PyObject *(*from_ptr)(ImDrawList *); }; static struct __pyx_vtabstruct_5imgui_4core__DrawList *__pyx_vtabptr_5imgui_4core__DrawList; /* "imgui/core.pyx":2076 * * * cdef class _Colors(object): # <<<<<<<<<<<<<< * cdef GuiStyle _style * */ struct __pyx_vtabstruct_5imgui_4core__Colors { PyObject *(*_check_color)(struct __pyx_obj_5imgui_4core__Colors *, ImGuiCol); }; static struct __pyx_vtabstruct_5imgui_4core__Colors *__pyx_vtabptr_5imgui_4core__Colors; static CYTHON_INLINE PyObject *__pyx_f_5imgui_4core_7_Colors__check_color(struct __pyx_obj_5imgui_4core__Colors *, ImGuiCol); /* "imgui/core.pyx":2102 * * * cdef class GuiStyle(object): # <<<<<<<<<<<<<< * """ * Container for ImGui style information */ struct __pyx_vtabstruct_5imgui_4core_GuiStyle { PyObject *(*_check_ptr)(struct __pyx_obj_5imgui_4core_GuiStyle *); struct __pyx_obj_5imgui_4core_GuiStyle *(*from_ref)(ImGuiStyle &); struct __pyx_obj_5imgui_4core_GuiStyle *(*_create)(void); }; static struct __pyx_vtabstruct_5imgui_4core_GuiStyle *__pyx_vtabptr_5imgui_4core_GuiStyle; static CYTHON_INLINE PyObject *__pyx_f_5imgui_4core_8GuiStyle__check_ptr(struct __pyx_obj_5imgui_4core_GuiStyle *); /* "imgui/core.pyx":2588 * return self._colors * * cdef class _ImGuiTableColumnSortSpecs(object): # <<<<<<<<<<<<<< * cdef cimgui.ImGuiTableColumnSortSpecs* _ptr * */ struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs { PyObject *(*from_ptr)(ImGuiTableColumnSortSpecs *); }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_vtabptr_5imgui_4core__ImGuiTableColumnSortSpecs; /* "imgui/core.pyx":2650 * * * cdef class _ImGuiTableColumnSortSpecs_array(object): # <<<<<<<<<<<<<< * * cdef cimgui.ImGuiTableSortSpecs* _ptr */ struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs_array { PyObject *(*from_ptr)(ImGuiTableSortSpecs *); PyObject *(*_get_item)(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *, size_t); }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_vtabptr_5imgui_4core__ImGuiTableColumnSortSpecs_array; /* "imgui/core.pyx":2699 * # self._table_sort_specs._require_pointer() * * cdef class _ImGuiTableSortSpecs(object): # <<<<<<<<<<<<<< * cdef cimgui.ImGuiTableSortSpecs* _ptr * cdef _ImGuiTableColumnSortSpecs_array specs */ struct __pyx_vtabstruct_5imgui_4core__ImGuiTableSortSpecs { PyObject *(*from_ptr)(ImGuiTableSortSpecs *); }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiTableSortSpecs *__pyx_vtabptr_5imgui_4core__ImGuiTableSortSpecs; /* "imgui/core.pyx":2741 * self._ptr.SpecsDirty = specs_dirty * * cdef class _ImGuiViewport(object): # <<<<<<<<<<<<<< * """Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. * */ struct __pyx_vtabstruct_5imgui_4core__ImGuiViewport { PyObject *(*from_ptr)(ImGuiViewport *); }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiViewport *__pyx_vtabptr_5imgui_4core__ImGuiViewport; /* "imgui/core.pyx":2807 * return _cast_ImVec2_tuple(self._ptr.GetWorkCenter()) * * cdef class _DrawData(object): # <<<<<<<<<<<<<< * cdef cimgui.ImDrawData* _ptr * */ struct __pyx_vtabstruct_5imgui_4core__DrawData { PyObject *(*from_ptr)(ImDrawData *); }; static struct __pyx_vtabstruct_5imgui_4core__DrawData *__pyx_vtabptr_5imgui_4core__DrawData; /* "imgui/core.pyx":2879 * ] * * cdef class _StaticGlyphRanges(object): # <<<<<<<<<<<<<< * cdef const cimgui.ImWchar* ranges_ptr * */ struct __pyx_vtabstruct_5imgui_4core__StaticGlyphRanges { PyObject *(*from_ptr)(ImWchar const *); }; static struct __pyx_vtabstruct_5imgui_4core__StaticGlyphRanges *__pyx_vtabptr_5imgui_4core__StaticGlyphRanges; /* "imgui/core.pyx":2977 * * * cdef class _FontAtlas(object): # <<<<<<<<<<<<<< * """Font atlas object responsible for controling and loading fonts. * */ struct __pyx_vtabstruct_5imgui_4core__FontAtlas { PyObject *(*from_ptr)(ImFontAtlas *); }; static struct __pyx_vtabstruct_5imgui_4core__FontAtlas *__pyx_vtabptr_5imgui_4core__FontAtlas; /* "imgui/core.pyx":3141 * self._ptr.TexID = value * * cdef class _IO(object): # <<<<<<<<<<<<<< * """Main ImGui I/O context class used for ImGui configuration. * */ struct __pyx_vtabstruct_5imgui_4core__IO { char const *(*_get_clipboard_text)(void *); void (*_set_clipboard_text)(void *, char const *); }; static struct __pyx_vtabstruct_5imgui_4core__IO *__pyx_vtabptr_5imgui_4core__IO; /* "imgui/core.pyx":3603 * return _cast_ImVec2_tuple(self._ptr.MouseDelta) * * cdef class _callback_user_info(object): # <<<<<<<<<<<<<< * * cdef object callback_fn */ struct __pyx_vtabstruct_5imgui_4core__callback_user_info { PyObject *(*set_text_input_buffer)(struct __pyx_obj_5imgui_4core__callback_user_info *, char *, int); }; static struct __pyx_vtabstruct_5imgui_4core__callback_user_info *__pyx_vtabptr_5imgui_4core__callback_user_info; /* "imgui/core.pyx":3626 * self.text_input_buffer_size = text_input_buffer_size * * cdef class _InputTextSharedBuffer(object): # <<<<<<<<<<<<<< * * cdef char* buffer */ struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer { PyObject *(*reserve_memory)(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *, int); PyObject *(*free_memory)(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *); }; static struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer *__pyx_vtabptr_5imgui_4core__InputTextSharedBuffer; /* "imgui/core.pyx":3684 * return 0 * * cdef class _ImGuiInputTextCallbackData(object): # <<<<<<<<<<<<<< * * cdef cimgui.ImGuiInputTextCallbackData* _ptr */ struct __pyx_vtabstruct_5imgui_4core__ImGuiInputTextCallbackData { PyObject *(*from_ptr)(ImGuiInputTextCallbackData *); }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiInputTextCallbackData *__pyx_vtabptr_5imgui_4core__ImGuiInputTextCallbackData; /* "imgui/core.pyx":3834 * return * * cdef class _ImGuiSizeCallbackData(object): # <<<<<<<<<<<<<< * * cdef cimgui.ImGuiSizeCallbackData* _ptr */ struct __pyx_vtabstruct_5imgui_4core__ImGuiSizeCallbackData { PyObject *(*from_ptr)(ImGuiSizeCallbackData *); }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiSizeCallbackData *__pyx_vtabptr_5imgui_4core__ImGuiSizeCallbackData; /* "View.MemoryView":331 * * @cname('__pyx_memoryview') * cdef class memoryview(object): # <<<<<<<<<<<<<< * * cdef object obj */ struct __pyx_vtabstruct_memoryview { char *(*get_item_pointer)(struct __pyx_memoryview_obj *, PyObject *); PyObject *(*is_slice)(struct __pyx_memoryview_obj *, PyObject *); PyObject *(*setitem_slice_assignment)(struct __pyx_memoryview_obj *, PyObject *, PyObject *); PyObject *(*setitem_slice_assign_scalar)(struct __pyx_memoryview_obj *, struct __pyx_memoryview_obj *, PyObject *); PyObject *(*setitem_indexed)(struct __pyx_memoryview_obj *, PyObject *, PyObject *); PyObject *(*convert_item_to_object)(struct __pyx_memoryview_obj *, char *); PyObject *(*assign_item_from_object)(struct __pyx_memoryview_obj *, char *, PyObject *); }; static struct __pyx_vtabstruct_memoryview *__pyx_vtabptr_memoryview; /* "View.MemoryView":967 * * @cname('__pyx_memoryviewslice') * cdef class _memoryviewslice(memoryview): # <<<<<<<<<<<<<< * "Internal class for passing memoryview slices to Python" * */ struct __pyx_vtabstruct__memoryviewslice { struct __pyx_vtabstruct_memoryview __pyx_base; }; static struct __pyx_vtabstruct__memoryviewslice *__pyx_vtabptr__memoryviewslice; /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* UnpackUnboundCMethod.proto */ typedef struct { PyObject *type; PyObject **method_name; PyCFunction func; PyObject *method; int flag; } __Pyx_CachedCFunction; /* CallUnboundCMethod1.proto */ static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg); #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg); #else #define __Pyx_CallUnboundCMethod1(cfunc, self, arg) __Pyx__CallUnboundCMethod1(cfunc, self, arg) #endif /* PyDictVersioning.proto */ #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1) #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\ (version_var) = __PYX_GET_DICT_VERSION(dict);\ (cache_var) = (value); #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\ (VAR) = __pyx_dict_cached_value;\ } else {\ (VAR) = __pyx_dict_cached_value = (LOOKUP);\ __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\ }\ } static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj); static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj); static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version); #else #define __PYX_GET_DICT_VERSION(dict) (0) #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var) #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP); #endif /* GetModuleGlobalName.proto */ #if CYTHON_USE_DICT_VERSIONS #define __Pyx_GetModuleGlobalName(var, name) do {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\ __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ } while(0) #define __Pyx_GetModuleGlobalNameUncached(var, name) do {\ PY_UINT64_T __pyx_dict_version;\ PyObject *__pyx_dict_cached_value;\ (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ } while(0) static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value); #else #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name) #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name) static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name); #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #define __Pyx_BUILD_ASSERT_EXPR(cond)\ (sizeof(char [1 - 2*!(cond)]) - 1) #ifndef Py_MEMBER_SIZE #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member) #endif #if CYTHON_FAST_PYCALL static size_t __pyx_pyframe_localsplus_offset = 0; #include "frameobject.h" #if PY_VERSION_HEX >= 0x030b00a6 #ifndef Py_BUILD_CORE #define Py_BUILD_CORE 1 #endif #include "internal/pycore_frame.h" #endif #define __Pxy_PyFrame_Initialize_Offsets()\ ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\ (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus))) #define __Pyx_PyFrame_GetLocalsplus(frame)\ (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset)) #endif // CYTHON_FAST_PYCALL #endif /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current; #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #define __Pyx_PyErr_Occurred() PyErr_Occurred() #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL) #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL)) #else #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #endif #else #define __Pyx_PyErr_Clear() PyErr_Clear() #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* RaiseException.proto */ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /* RaiseTooManyValuesToUnpack.proto */ static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected); /* RaiseNeedMoreValuesToUnpack.proto */ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); /* IterFinish.proto */ static CYTHON_INLINE int __Pyx_IterFinish(void); /* UnpackItemEndCheck.proto */ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /* WriteUnraisableException.proto */ static void __Pyx_WriteUnraisable(const char *name, int clineno, int lineno, const char *filename, int full_traceback, int nogil); /* PySequenceContains.proto */ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) { int result = PySequence_Contains(seq, item); return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); } /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* SetItemInt.proto */ #define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\ __Pyx_SetItemInt_Generic(o, to_py_func(i), v))) static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v); static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, int wraparound, int boundscheck); /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ __Pyx_GetItemInt_Generic(o, to_py_func(i)))) #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* ArgTypeTest.proto */ #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\ ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\ __Pyx__ArgTypeTest(obj, type, name, exact)) static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* ListAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) { Py_INCREF(x); PyList_SET_ITEM(list, len, x); __Pyx_SET_SIZE(list, len + 1); return 0; } return PyList_Append(list, x); } #else #define __Pyx_PyList_Append(L,x) PyList_Append(L,x) #endif /* PyObjectCall2Args.proto */ static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2); /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectGetMethod.proto */ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method); /* PyObjectCallMethod1.proto */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg); /* append.proto */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x); /* ObjectGetItem.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key); #else #define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key) #endif /* ListCompAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); if (likely(L->allocated > len)) { Py_INCREF(x); PyList_SET_ITEM(list, len, x); __Pyx_SET_SIZE(list, len + 1); return 0; } return PyList_Append(list, x); } #else #define __Pyx_ListComp_Append(L,x) PyList_Append(L,x) #endif /* KeywordStringCheck.proto */ static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed); /* ExtTypeTest.proto */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /* ModInt[Py_ssize_t].proto */ static CYTHON_INLINE Py_ssize_t __Pyx_mod_Py_ssize_t(Py_ssize_t, Py_ssize_t); /* PyIntCompare.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_NeObjC(PyObject *op1, PyObject *op2, long intval, long inplace); /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check); #else #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\ (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) #endif /* AssertionsEnabled.proto */ #define __Pyx_init_assertions_enabled() #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define __pyx_assertions_enabled() (1) #elif PY_VERSION_HEX < 0x03080000 || CYTHON_COMPILING_IN_PYPY || defined(Py_LIMITED_API) #define __pyx_assertions_enabled() (!Py_OptimizeFlag) #elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030900A6 static int __pyx_assertions_enabled_flag; #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag) #undef __Pyx_init_assertions_enabled static void __Pyx_init_assertions_enabled(void) { __pyx_assertions_enabled_flag = ! _PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current->interp)->optimization_level; } #else #define __pyx_assertions_enabled() (!Py_OptimizeFlag) #endif /* DictGetItem.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); #define __Pyx_PyObject_Dict_GetItem(obj, name)\ (likely(PyDict_CheckExact(obj)) ?\ __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name)) #else #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name) #endif /* CallableCheck.proto */ #if CYTHON_USE_TYPE_SLOTS && PY_MAJOR_VERSION >= 3 #define __Pyx_PyCallable_Check(obj) (Py_TYPE(obj)->tp_call != NULL) #else #define __Pyx_PyCallable_Check(obj) PyCallable_Check(obj) #endif /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value); #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* UnicodeAsUCS4.proto */ static CYTHON_INLINE Py_UCS4 __Pyx_PyUnicode_AsPy_UCS4(PyObject*); /* object_ord.proto */ #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyObject_Ord(c)\ (likely(PyUnicode_Check(c)) ? (long)__Pyx_PyUnicode_AsPy_UCS4(c) : __Pyx__PyObject_Ord(c)) #else #define __Pyx_PyObject_Ord(c) __Pyx__PyObject_Ord(c) #endif static long __Pyx__PyObject_Ord(PyObject* c); /* IncludeStringH.proto */ #include /* decode_c_string_utf16.proto */ static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) { int byteorder = 0; return PyUnicode_DecodeUTF16(s, size, errors, &byteorder); } static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) { int byteorder = -1; return PyUnicode_DecodeUTF16(s, size, errors, &byteorder); } static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) { int byteorder = 1; return PyUnicode_DecodeUTF16(s, size, errors, &byteorder); } /* decode_c_string.proto */ static CYTHON_INLINE PyObject* __Pyx_decode_c_string( const char* cstring, Py_ssize_t start, Py_ssize_t stop, const char* encoding, const char* errors, PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)); /* PyDictContains.proto */ static CYTHON_INLINE int __Pyx_PyDict_ContainsTF(PyObject* item, PyObject* dict, int eq) { int result = PyDict_Contains(dict, item); return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); } /* PyObjectCallMethod0.proto */ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name); /* RaiseNoneIterError.proto */ static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void); /* UnpackTupleError.proto */ static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index); /* UnpackTuple2.proto */ #define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)\ (likely(is_tuple || PyTuple_Check(tuple)) ?\ (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2) ?\ __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\ (__Pyx_UnpackTupleError(tuple, 2), -1)) :\ __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple)) static CYTHON_INLINE int __Pyx_unpack_tuple2_exact( PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple); static int __Pyx_unpack_tuple2_generic( PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple); /* dict_iter.proto */ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name, Py_ssize_t* p_orig_length, int* p_is_dict); static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos, PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict); /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* GetAttr.proto */ static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *); /* GetAttr3.proto */ static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *); /* StringJoin.proto */ #if PY_MAJOR_VERSION < 3 #define __Pyx_PyString_Join __Pyx_PyBytes_Join #define __Pyx_PyBaseString_Join(s, v) (PyUnicode_CheckExact(s) ? PyUnicode_Join(s, v) : __Pyx_PyBytes_Join(s, v)) #else #define __Pyx_PyString_Join PyUnicode_Join #define __Pyx_PyBaseString_Join PyUnicode_Join #endif #if CYTHON_COMPILING_IN_CPYTHON #if PY_MAJOR_VERSION < 3 #define __Pyx_PyBytes_Join _PyString_Join #else #define __Pyx_PyBytes_Join _PyBytes_Join #endif #else static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values); #endif /* BufferIndexError.proto */ static void __Pyx_RaiseBufferIndexError(int axis); /* MemviewSliceInit.proto */ #define __Pyx_BUF_MAX_NDIMS %(BUF_MAX_NDIMS)d #define __Pyx_MEMVIEW_DIRECT 1 #define __Pyx_MEMVIEW_PTR 2 #define __Pyx_MEMVIEW_FULL 4 #define __Pyx_MEMVIEW_CONTIG 8 #define __Pyx_MEMVIEW_STRIDED 16 #define __Pyx_MEMVIEW_FOLLOW 32 #define __Pyx_IS_C_CONTIG 1 #define __Pyx_IS_F_CONTIG 2 static int __Pyx_init_memviewslice( struct __pyx_memoryview_obj *memview, int ndim, __Pyx_memviewslice *memviewslice, int memview_is_new_reference); static CYTHON_INLINE int __pyx_add_acquisition_count_locked( __pyx_atomic_int *acquisition_count, PyThread_type_lock lock); static CYTHON_INLINE int __pyx_sub_acquisition_count_locked( __pyx_atomic_int *acquisition_count, PyThread_type_lock lock); #define __pyx_get_slice_count_pointer(memview) (memview->acquisition_count_aligned_p) #define __pyx_get_slice_count(memview) (*__pyx_get_slice_count_pointer(memview)) #define __PYX_INC_MEMVIEW(slice, have_gil) __Pyx_INC_MEMVIEW(slice, have_gil, __LINE__) #define __PYX_XDEC_MEMVIEW(slice, have_gil) __Pyx_XDEC_MEMVIEW(slice, have_gil, __LINE__) static CYTHON_INLINE void __Pyx_INC_MEMVIEW(__Pyx_memviewslice *, int, int); static CYTHON_INLINE void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *, int, int); /* pyobject_as_double.proto */ static double __Pyx__PyObject_AsDouble(PyObject* obj); #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyObject_AsDouble(obj)\ (likely(PyFloat_CheckExact(obj)) ? PyFloat_AS_DOUBLE(obj) :\ likely(PyInt_CheckExact(obj)) ?\ PyFloat_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj)) #else #define __Pyx_PyObject_AsDouble(obj)\ ((likely(PyFloat_CheckExact(obj))) ?\ PyFloat_AS_DOUBLE(obj) : __Pyx__PyObject_AsDouble(obj)) #endif /* GetTopmostException.proto */ #if CYTHON_USE_EXC_INFO_STACK static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate); #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* DelItemInt.proto */ #define __Pyx_DelItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_DelItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\ __Pyx_DelItem_Generic(o, to_py_func(i)))) static int __Pyx_DelItem_Generic(PyObject *o, PyObject *j); static CYTHON_INLINE int __Pyx_DelItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound); /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* HasAttr.proto */ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *); /* BytesEquals.proto */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); /* UnicodeEquals.proto */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); /* StrEquals.proto */ #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals #else #define __Pyx_PyString_Equals __Pyx_PyBytes_Equals #endif /* DivInt[Py_ssize_t].proto */ static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t, Py_ssize_t); /* UnaryNegOverflows.proto */ #define UNARY_NEG_WOULD_OVERFLOW(x)\ (((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x))) static CYTHON_UNUSED int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *); /*proto*/ /* FastTypeChecks.proto */ #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type) static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); #else #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2)) #endif #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) static CYTHON_UNUSED int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ /* ListExtend.proto */ static CYTHON_INLINE int __Pyx_PyList_Extend(PyObject* L, PyObject* v) { #if CYTHON_COMPILING_IN_CPYTHON PyObject* none = _PyList_Extend((PyListObject*)L, v); if (unlikely(!none)) return -1; Py_DECREF(none); return 0; #else return PyList_SetSlice(L, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, v); #endif } /* None.proto */ static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname); /* DivInt[long].proto */ static CYTHON_INLINE long __Pyx_div_long(long, long); /* PyObject_GenericGetAttrNoDict.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr #endif /* PyObject_GenericGetAttr.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr #endif /* SetVTable.proto */ static int __Pyx_SetVtable(PyObject *dict, void *vtable); /* PyObjectGetAttrStrNoError.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name); /* SetupReduce.proto */ static int __Pyx_setup_reduce(PyObject* type_obj); /* TypeImport.proto */ #ifndef __PYX_HAVE_RT_ImportType_proto_0_29_37 #define __PYX_HAVE_RT_ImportType_proto_0_29_37 #if __STDC_VERSION__ >= 201112L #include #endif #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L #define __PYX_GET_STRUCT_ALIGNMENT_0_29_37(s) alignof(s) #else #define __PYX_GET_STRUCT_ALIGNMENT_0_29_37(s) sizeof(void*) #endif enum __Pyx_ImportType_CheckSize_0_29_37 { __Pyx_ImportType_CheckSize_Error_0_29_37 = 0, __Pyx_ImportType_CheckSize_Warn_0_29_37 = 1, __Pyx_ImportType_CheckSize_Ignore_0_29_37 = 2 }; static PyTypeObject *__Pyx_ImportType_0_29_37(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_0_29_37 check_size); #endif /* GetNameInClass.proto */ #define __Pyx_GetNameInClass(var, nmspace, name) (var) = __Pyx__GetNameInClass(nmspace, name) static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name); /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunctionShared.proto */ #define __Pyx_CyFunction_USED 1 #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; size_t defaults_size; // used by FusedFunction for copying defaults int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_Check(obj) (__Pyx_TypeCheck(obj, __pyx_CyFunctionType)) static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* FusedFunction.proto */ typedef struct { __pyx_CyFunctionObject func; PyObject *__signatures__; PyObject *type; PyObject *self; } __pyx_FusedFunctionObject; static PyObject *__pyx_FusedFunction_New(PyMethodDef *ml, int flags, PyObject *qualname, PyObject *closure, PyObject *module, PyObject *globals, PyObject *code); static int __pyx_FusedFunction_clear(__pyx_FusedFunctionObject *self); static PyTypeObject *__pyx_FusedFunctionType = NULL; static int __pyx_FusedFunction_init(void); #define __Pyx_FusedFunction_USED /* CythonFunction.proto */ static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject *globals, PyObject* code); /* CLineInTraceback.proto */ #ifdef CYTHON_CLINE_IN_TRACEBACK #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) #else static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); #endif /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); #if PY_MAJOR_VERSION < 3 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags); static void __Pyx_ReleaseBuffer(Py_buffer *view); #else #define __Pyx_GetBuffer PyObject_GetBuffer #define __Pyx_ReleaseBuffer PyBuffer_Release #endif /* BufferStructDeclare.proto */ typedef struct { Py_ssize_t shape, strides, suboffsets; } __Pyx_Buf_DimInfo; typedef struct { size_t refcount; Py_buffer pybuffer; } __Pyx_Buffer; typedef struct { __Pyx_Buffer *rcbuffer; char *data; __Pyx_Buf_DimInfo diminfo[8]; } __Pyx_LocalBuf_ND; /* MemviewSliceIsContig.proto */ static int __pyx_memviewslice_is_contig(const __Pyx_memviewslice mvs, char order, int ndim); /* OverlappingSlices.proto */ static int __pyx_slices_overlap(__Pyx_memviewslice *slice1, __Pyx_memviewslice *slice2, int ndim, size_t itemsize); /* Capsule.proto */ static CYTHON_INLINE PyObject *__pyx_capsule_create(void *p, const char *sig); /* None.proto */ #include /* GCCDiagnostics.proto */ #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) #define __Pyx_HAS_GCC_DIAGNOSTIC #endif /* IsLittleEndian.proto */ static CYTHON_INLINE int __Pyx_Is_Little_Endian(void); /* BufferFormatCheck.proto */ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts); static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, __Pyx_BufFmt_StackElem* stack, __Pyx_TypeInfo* type); /* TypeInfoCompare.proto */ static int __pyx_typeinfo_cmp(__Pyx_TypeInfo *a, __Pyx_TypeInfo *b); /* MemviewSliceValidateAndInit.proto */ static int __Pyx_ValidateAndInit_memviewslice( int *axes_specs, int c_or_f_flag, int buf_flags, int ndim, __Pyx_TypeInfo *dtype, __Pyx_BufFmt_StackElem stack[], __Pyx_memviewslice *memviewslice, PyObject *original_obj); /* ObjectToMemviewSlice.proto */ static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_float__const__(PyObject *, int writable_flag); /* CppExceptionConversion.proto */ #ifndef __Pyx_CppExn2PyErr #include #include #include #include static void __Pyx_CppExn2PyErr() { try { if (PyErr_Occurred()) ; // let the latest Python exn pass through and ignore the current one else throw; } catch (const std::bad_alloc& exn) { PyErr_SetString(PyExc_MemoryError, exn.what()); } catch (const std::bad_cast& exn) { PyErr_SetString(PyExc_TypeError, exn.what()); } catch (const std::bad_typeid& exn) { PyErr_SetString(PyExc_TypeError, exn.what()); } catch (const std::domain_error& exn) { PyErr_SetString(PyExc_ValueError, exn.what()); } catch (const std::invalid_argument& exn) { PyErr_SetString(PyExc_ValueError, exn.what()); } catch (const std::ios_base::failure& exn) { PyErr_SetString(PyExc_IOError, exn.what()); } catch (const std::out_of_range& exn) { PyErr_SetString(PyExc_IndexError, exn.what()); } catch (const std::overflow_error& exn) { PyErr_SetString(PyExc_OverflowError, exn.what()); } catch (const std::range_error& exn) { PyErr_SetString(PyExc_ArithmeticError, exn.what()); } catch (const std::underflow_error& exn) { PyErr_SetString(PyExc_ArithmeticError, exn.what()); } catch (const std::exception& exn) { PyErr_SetString(PyExc_RuntimeError, exn.what()); } catch (...) { PyErr_SetString(PyExc_RuntimeError, "Unknown exception"); } } #endif /* MemviewSliceCopyTemplate.proto */ static __Pyx_memviewslice __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs, const char *mode, int ndim, size_t sizeof_dtype, int contig_flag, int dtype_is_object); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiCond_(ImGuiCond_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiButtonFlags_(ImGuiButtonFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiKeyModFlags_(ImGuiKeyModFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiSelectableFlags_(ImGuiSelectableFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableRowFlags_(ImGuiTableRowFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableBgTarget_(ImGuiTableBgTarget_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiFocusedFlags_(ImGuiFocusedFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiDir_(ImGuiDir_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiSortDirection_(ImGuiSortDirection_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImDrawListFlags_(ImDrawListFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImFontAtlasFlags_(ImFontAtlasFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiBackendFlags_(ImGuiBackendFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiSliderFlags_(ImGuiSliderFlags_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiMouseButton_(ImGuiMouseButton_ value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiViewportFlags_(ImGuiViewportFlags_ value); /* CIntFromPy.proto */ static CYTHON_INLINE ImDrawListFlags __Pyx_PyInt_As_ImDrawListFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImU32 __Pyx_PyInt_As_ImU32(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImDrawFlags __Pyx_PyInt_As_ImDrawFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImDrawIdx __Pyx_PyInt_As_ImDrawIdx(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiCol __Pyx_PyInt_As_ImGuiCol(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiDir __Pyx_PyInt_As_ImGuiDir(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiID __Pyx_PyInt_As_ImGuiID(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImS16 __Pyx_PyInt_As_ImS16(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiSortDirection __Pyx_PyInt_As_ImGuiSortDirection(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiConfigFlags __Pyx_PyInt_As_ImGuiConfigFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiBackendFlags __Pyx_PyInt_As_ImGuiBackendFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiWindowFlags __Pyx_PyInt_As_ImGuiWindowFlags(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiWindowFlags(ImGuiWindowFlags value); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiCond __Pyx_PyInt_As_ImGuiCond(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiTreeNodeFlags __Pyx_PyInt_As_ImGuiTreeNodeFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiPopupFlags __Pyx_PyInt_As_ImGuiPopupFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiTableFlags __Pyx_PyInt_As_ImGuiTableFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiTableRowFlags __Pyx_PyInt_As_ImGuiTableRowFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiTableColumnFlags __Pyx_PyInt_As_ImGuiTableColumnFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiTableBgTarget __Pyx_PyInt_As_ImGuiTableBgTarget(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiButtonFlags __Pyx_PyInt_As_ImGuiButtonFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiComboFlags __Pyx_PyInt_As_ImGuiComboFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiColorEditFlags __Pyx_PyInt_As_ImGuiColorEditFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiSliderFlags __Pyx_PyInt_As_ImGuiSliderFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiDataType __Pyx_PyInt_As_ImGuiDataType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiInputTextFlags __Pyx_PyInt_As_ImGuiInputTextFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiHoveredFlags __Pyx_PyInt_As_ImGuiHoveredFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiMouseButton __Pyx_PyInt_As_ImGuiMouseButton(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiMouseCursor __Pyx_PyInt_As_ImGuiMouseCursor(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiStyleVar __Pyx_PyInt_As_ImGuiStyleVar(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiTabBarFlags __Pyx_PyInt_As_ImGuiTabBarFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiTabItemFlags __Pyx_PyInt_As_ImGuiTabItemFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE ImGuiDragDropFlags __Pyx_PyInt_As_ImGuiDragDropFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImDrawListFlags(ImDrawListFlags value); /* CIntFromPy.proto */ static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiCol(ImGuiCol value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiDir(ImGuiDir value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiID(ImGuiID value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImS16(ImS16 value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiSortDirection(ImGuiSortDirection value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiViewportFlags(ImGuiViewportFlags value); /* CIntFromPy.proto */ static CYTHON_INLINE ImWchar32 __Pyx_PyInt_As_ImWchar32(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiConfigFlags(ImGuiConfigFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiBackendFlags(ImGuiBackendFlags value); /* CIntFromPy.proto */ static CYTHON_INLINE ImWchar16 __Pyx_PyInt_As_ImWchar16(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiInputTextFlags(ImGuiInputTextFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImWchar32(ImWchar32 value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiKey(ImGuiKey value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiPopupFlags(ImGuiPopupFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableColumnFlags(ImGuiTableColumnFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiMouseCursor(ImGuiMouseCursor value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImU32(ImU32 value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiStyleVar(ImGuiStyleVar value); /* ImportNumPyArray.proto */ static PyObject *__pyx_numpy_ndarray = NULL; static PyObject* __Pyx_ImportNumPyArrayTypeIfAvailable(void); /* CIntFromPy.proto */ static CYTHON_INLINE char __Pyx_PyInt_As_char(PyObject *); /* CoroutineBase.proto */ typedef PyObject *(*__pyx_coroutine_body_t)(PyObject *, PyThreadState *, PyObject *); #if CYTHON_USE_EXC_INFO_STACK #define __Pyx_ExcInfoStruct _PyErr_StackItem #else typedef struct { PyObject *exc_type; PyObject *exc_value; PyObject *exc_traceback; } __Pyx_ExcInfoStruct; #endif typedef struct { PyObject_HEAD __pyx_coroutine_body_t body; PyObject *closure; __Pyx_ExcInfoStruct gi_exc_state; PyObject *gi_weakreflist; PyObject *classobj; PyObject *yieldfrom; PyObject *gi_name; PyObject *gi_qualname; PyObject *gi_modulename; PyObject *gi_code; PyObject *gi_frame; int resume_label; char is_running; } __pyx_CoroutineObject; static __pyx_CoroutineObject *__Pyx__Coroutine_New( PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name); static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit( __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name); static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self); static int __Pyx_Coroutine_clear(PyObject *self); static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value); static PyObject *__Pyx_Coroutine_Close(PyObject *self); static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args); #if CYTHON_USE_EXC_INFO_STACK #define __Pyx_Coroutine_SwapException(self) #define __Pyx_Coroutine_ResetAndClearException(self) __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state) #else #define __Pyx_Coroutine_SwapException(self) {\ __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\ __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\ } #define __Pyx_Coroutine_ResetAndClearException(self) {\ __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\ (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\ } #endif #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyGen_FetchStopIterationValue(pvalue)\ __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue) #else #define __Pyx_PyGen_FetchStopIterationValue(pvalue)\ __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue) #endif static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue); static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state); /* PatchModuleWithCoroutine.proto */ static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code); /* PatchGeneratorABC.proto */ static int __Pyx_patch_abc(void); /* Generator.proto */ #define __Pyx_Generator_USED static PyTypeObject *__pyx_GeneratorType = 0; #define __Pyx_Generator_CheckExact(obj) (Py_TYPE(obj) == __pyx_GeneratorType) #define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\ __Pyx__Coroutine_New(__pyx_GeneratorType, body, code, closure, name, qualname, module_name) static PyObject *__Pyx_Generator_Next(PyObject *self); static int __pyx_Generator_init(void); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* FunctionImport.proto */ static int __Pyx_ImportFunction_0_29_37(PyObject *module, const char *funcname, void (**f)(void), const char *sig); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); static PyObject *__pyx_f_5imgui_4core_13_ImGuiContext_from_ptr(ImGuiContext *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_8_DrawCmd_from_ptr(ImDrawCmd *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_9_DrawList_from_ptr(ImDrawList *__pyx_v_ptr); /* proto*/ static CYTHON_INLINE PyObject *__pyx_f_5imgui_4core_7_Colors__check_color(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, ImGuiCol __pyx_v_variable); /* proto*/ static CYTHON_INLINE PyObject *__pyx_f_5imgui_4core_8GuiStyle__check_ptr(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto*/ static struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_f_5imgui_4core_8GuiStyle_from_ref(ImGuiStyle &__pyx_v_ref); /* proto*/ static struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_f_5imgui_4core_8GuiStyle__create(void); /* proto*/ static PyObject *__pyx_f_5imgui_4core_26_ImGuiTableColumnSortSpecs_from_ptr(ImGuiTableColumnSortSpecs *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_from_ptr(ImGuiTableSortSpecs *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_32_ImGuiTableColumnSortSpecs_array__get_item(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self, size_t __pyx_v_idx); /* proto*/ static PyObject *__pyx_f_5imgui_4core_20_ImGuiTableSortSpecs_from_ptr(ImGuiTableSortSpecs *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_14_ImGuiViewport_from_ptr(ImGuiViewport *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_9_DrawData_from_ptr(ImDrawData *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(ImWchar const *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_5_Font_from_ptr(ImFont *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_10_FontAtlas_from_ptr(ImFontAtlas *__pyx_v_ptr); /* proto*/ static char const *__pyx_f_5imgui_4core_3_IO__get_clipboard_text(CYTHON_UNUSED void *__pyx_v_user_data); /* proto*/ static void __pyx_f_5imgui_4core_3_IO__set_clipboard_text(CYTHON_UNUSED void *__pyx_v_user_data, char const *__pyx_v_text); /* proto*/ static PyObject *__pyx_f_5imgui_4core_19_callback_user_info_set_text_input_buffer(struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self, char *__pyx_v_text_input_buffer, int __pyx_v_text_input_buffer_size); /* proto*/ static PyObject *__pyx_f_5imgui_4core_22_InputTextSharedBuffer_reserve_memory(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self, int __pyx_v_buffer_size); /* proto*/ static PyObject *__pyx_f_5imgui_4core_22_InputTextSharedBuffer_free_memory(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self); /* proto*/ static PyObject *__pyx_f_5imgui_4core_27_ImGuiInputTextCallbackData_from_ptr(ImGuiInputTextCallbackData *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_f_5imgui_4core_22_ImGuiSizeCallbackData_from_ptr(ImGuiSizeCallbackData *__pyx_v_ptr); /* proto*/ static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self); /* proto*/ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index); /* proto*/ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj); /* proto*/ static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src); /* proto*/ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memoryview_obj *__pyx_v_self, struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value); /* proto*/ static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto*/ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/ static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/ /* Module declarations from 'libcpp' */ /* Module declarations from 'imgui.enums' */ /* Module declarations from 'imgui.cimgui' */ /* Module declarations from 'cython.view' */ /* Module declarations from 'cython' */ /* Module declarations from 'libc.string' */ /* Module declarations from 'libc.stdlib' */ /* Module declarations from 'libc.stdint' */ /* Module declarations from 'libc.float' */ /* Module declarations from 'imgui.ansifeed' */ /* Module declarations from 'imgui.enums_internal' */ /* Module declarations from 'imgui.internal' */ static PyObject *(*__pyx_f_5imgui_8internal_UpdateImGuiContext)(ImGuiContext *); /*proto*/ /* Module declarations from 'cpython.version' */ /* Module declarations from 'libc.stdio' */ /* Module declarations from '__builtin__' */ /* Module declarations from 'cpython.type' */ static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0; /* Module declarations from 'cpython' */ /* Module declarations from 'cpython.object' */ /* Module declarations from 'cpython.exc' */ /* Module declarations from 'imgui.core' */ static PyTypeObject *__pyx_ptype_5imgui_4core__Font = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__ImGuiContext = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__DrawCmd = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__DrawList = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__Colors = 0; static PyTypeObject *__pyx_ptype_5imgui_4core_GuiStyle = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__ImGuiTableColumnSortSpecs = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__ImGuiTableColumnSortSpecs_array = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__ImGuiTableSortSpecs = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__ImGuiViewport = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__DrawData = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__StaticGlyphRanges = 0; static PyTypeObject *__pyx_ptype_5imgui_4core_GlyphRanges = 0; static PyTypeObject *__pyx_ptype_5imgui_4core_FontConfig = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__FontAtlas = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__IO = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__callback_user_info = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__InputTextSharedBuffer = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__ImGuiInputTextCallbackData = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__ImGuiSizeCallbackData = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEnd = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndChild = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndListBox = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndTooltip = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndMainMenuBar = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndMenuBar = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndMenu = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndPopup = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndPopupModal = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndTable = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndCombo = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndTabBar = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndTabItem = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndDragDropSource = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndDragDropTarget = 0; static PyTypeObject *__pyx_ptype_5imgui_4core__BeginEndGroup = 0; static PyTypeObject *__pyx_ptype_5imgui_4core___pyx_scope_struct___py_font = 0; static PyTypeObject *__pyx_ptype_5imgui_4core___pyx_scope_struct_1__py_styled = 0; static PyTypeObject *__pyx_ptype_5imgui_4core___pyx_scope_struct_2__py_colored = 0; static PyTypeObject *__pyx_ptype_5imgui_4core___pyx_scope_struct_3__py_istyled = 0; static PyTypeObject *__pyx_ptype_5imgui_4core___pyx_scope_struct_4__py_scoped = 0; static PyTypeObject *__pyx_array_type = 0; static PyTypeObject *__pyx_MemviewEnum_type = 0; static PyTypeObject *__pyx_memoryview_type = 0; static PyTypeObject *__pyx_memoryviewslice_type = 0; static unsigned int *__pyx_v_5imgui_4core__LATIN_ALL; __PYX_EXTERN_C DL_EXPORT(PyObject) *ImGuiError; static struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_5imgui_4core__input_text_shared_buffer = 0; static struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_5imgui_4core__global_next_window_size_constraints_callback_user_info = 0; static PyObject *generic = 0; static PyObject *strided = 0; static PyObject *indirect = 0; static PyObject *contiguous = 0; static PyObject *indirect_contiguous = 0; static int __pyx_memoryview_thread_locks_used; static PyThread_type_lock __pyx_memoryview_thread_locks[8]; static PyObject *__pyx_f_5imgui_4core__bytes(PyObject *); /*proto*/ static PyObject *__pyx_f_5imgui_4core__from_bytes(PyObject *); /*proto*/ static PyObject *__pyx_f_5imgui_4core__cast_ImVec2_tuple(ImVec2); /*proto*/ static ImVec2 __pyx_f_5imgui_4core__cast_tuple_ImVec2(PyObject *); /*proto*/ static ImVec2 __pyx_f_5imgui_4core__cast_args_ImVec2(float, float); /*proto*/ static ImVec4 __pyx_f_5imgui_4core__cast_tuple_ImVec4(PyObject *); /*proto*/ static ImVec4 __pyx_f_5imgui_4core__cast_args_ImVec4(float, float, float, float); /*proto*/ static PyObject *__pyx_f_5imgui_4core__cast_ImVec4_tuple(ImVec4); /*proto*/ static int __pyx_f_5imgui_4core__ImGuiInputTextCallback(ImGuiInputTextCallbackData *); /*proto*/ static int __pyx_f_5imgui_4core__ImGuiInputTextOnlyResizeCallback(ImGuiInputTextCallbackData *); /*proto*/ static void __pyx_f_5imgui_4core__ImGuiSizeCallback(ImGuiSizeCallbackData *); /*proto*/ static PyObject *__pyx_f_5imgui_4core_calc_text_size(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_calc_text_size *__pyx_optional_args); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_style_var(ImGuiStyleVar, PyObject *, int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_style_color(ImGuiCol, float, float, float, int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_push_style_color *__pyx_optional_args); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_style_var(int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_pop_style_var *__pyx_optional_args); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_font_size(int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_style_color_vec_4(ImGuiCol, int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_font_tex_uv_white_pixel(int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_color_u32_idx(ImGuiCol, int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_get_color_u32_idx *__pyx_optional_args); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_color_u32_rgba(float, float, float, float, int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_color_u32(ImU32, int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_item_width(float, int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_item_width(int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_set_next_item_width(float, int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_calculate_item_width(int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_text_wrap_pos(int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_push_text_wrap_pos *__pyx_optional_args); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_text_wrap_pos(int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_allow_keyboard_focus(bool, int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_allow_keyboard_focus(int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_button_repeat(bool, int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_button_repeat(int __pyx_skip_dispatch); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_style_color(int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_pop_style_color *__pyx_optional_args); /*proto*/ static PyObject *__pyx_f_5imgui_4core___pyx_unpickle__BeginEndTooltip__set_state(struct __pyx_obj_5imgui_4core__BeginEndTooltip *, PyObject *); /*proto*/ static PyObject *__pyx_f_5imgui_4core___pyx_unpickle__BeginEndGroup__set_state(struct __pyx_obj_5imgui_4core__BeginEndGroup *, PyObject *); /*proto*/ static struct __pyx_array_obj *__pyx_array_new(PyObject *, Py_ssize_t, char *, char *, char *); /*proto*/ static void *__pyx_align_pointer(void *, size_t); /*proto*/ static PyObject *__pyx_memoryview_new(PyObject *, int, int, __Pyx_TypeInfo *); /*proto*/ static CYTHON_INLINE int __pyx_memoryview_check(PyObject *); /*proto*/ static PyObject *_unellipsify(PyObject *, int); /*proto*/ static PyObject *assert_direct_dimensions(Py_ssize_t *, int); /*proto*/ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_obj *, PyObject *); /*proto*/ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *, Py_ssize_t, Py_ssize_t, Py_ssize_t, int, int, int *, Py_ssize_t, Py_ssize_t, Py_ssize_t, int, int, int, int); /*proto*/ static char *__pyx_pybuffer_index(Py_buffer *, char *, Py_ssize_t, Py_ssize_t); /*proto*/ static int __pyx_memslice_transpose(__Pyx_memviewslice *); /*proto*/ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice, int, PyObject *(*)(char *), int (*)(char *, PyObject *), int); /*proto*/ static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/ static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *); /*proto*/ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/ static Py_ssize_t abs_py_ssize_t(Py_ssize_t); /*proto*/ static char __pyx_get_best_slice_order(__Pyx_memviewslice *, int); /*proto*/ static void _copy_strided_to_strided(char *, Py_ssize_t *, char *, Py_ssize_t *, Py_ssize_t *, Py_ssize_t *, int, size_t); /*proto*/ static void copy_strided_to_strided(__Pyx_memviewslice *, __Pyx_memviewslice *, int, size_t); /*proto*/ static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *, int); /*proto*/ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *, Py_ssize_t *, Py_ssize_t, int, char); /*proto*/ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *, __Pyx_memviewslice *, char, int); /*proto*/ static int __pyx_memoryview_err_extents(int, Py_ssize_t, Py_ssize_t); /*proto*/ static int __pyx_memoryview_err_dim(PyObject *, char *, int); /*proto*/ static int __pyx_memoryview_err(PyObject *, char *); /*proto*/ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice, __Pyx_memviewslice, int, int, int); /*proto*/ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *, int, int); /*proto*/ static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *, int, int, int); /*proto*/ static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *, Py_ssize_t *, Py_ssize_t *, int, int); /*proto*/ static void __pyx_memoryview_refcount_objects_in_slice(char *, Py_ssize_t *, Py_ssize_t *, int, int); /*proto*/ static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *, int, size_t, void *, int); /*proto*/ static void __pyx_memoryview__slice_assign_scalar(char *, Py_ssize_t *, Py_ssize_t *, int, size_t, void *); /*proto*/ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *, PyObject *); /*proto*/ static __Pyx_TypeInfo __Pyx_TypeInfo_float__const__ = { "const float", NULL, sizeof(float const ), { 0 }, 0, 'R', 0, 0 }; #define __Pyx_MODULE_NAME "imgui.core" extern int __pyx_module_is_main_imgui__core; int __pyx_module_is_main_imgui__core = 0; /* Implementation of 'imgui.core' */ static PyObject *__pyx_builtin_ImportError; static PyObject *__pyx_builtin_staticmethod; static PyObject *__pyx_builtin_ValueError; static PyObject *__pyx_builtin_TypeError; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_xrange; static PyObject *__pyx_builtin_RuntimeError; static PyObject *__pyx_builtin_StopIteration; static PyObject *__pyx_builtin_enumerate; static PyObject *__pyx_builtin_chr; static PyObject *__pyx_builtin_MemoryError; static PyObject *__pyx_builtin_Ellipsis; static PyObject *__pyx_builtin_id; static PyObject *__pyx_builtin_IndexError; static const char __pyx_k_O[] = "O"; static const char __pyx_k_a[] = "a"; static const char __pyx_k_b[] = "b"; static const char __pyx_k_c[] = "c"; static const char __pyx_k_d[] = "%d"; static const char __pyx_k_f[] = "f"; static const char __pyx_k_g[] = "g"; static const char __pyx_k_h[] = "h"; static const char __pyx_k_i[] = "i"; static const char __pyx_k_r[] = "r"; static const char __pyx_k_s[] = "s"; static const char __pyx_k_u[] = "u"; static const char __pyx_k_v[] = "v"; static const char __pyx_k_w[] = "w"; static const char __pyx_k_x[] = "x"; static const char __pyx_k_y[] = "y"; static const char __pyx_k_z[] = "z"; static const char __pyx_k_3f[] = "%.3f"; static const char __pyx_k_6f[] = "%.6f"; static const char __pyx_k_IO[] = "_IO"; static const char __pyx_k_id[] = "id"; static const char __pyx_k_in[] = "in_"; static const char __pyx_k__40[] = ""; static const char __pyx_k__60[] = "()"; static const char __pyx_k__61[] = "|"; static const char __pyx_k__75[] = "{}()"; static const char __pyx_k__94[] = "\000"; static const char __pyx_k_a_x[] = "a_x"; static const char __pyx_k_a_y[] = "a_y"; static const char __pyx_k_b_x[] = "b_x"; static const char __pyx_k_b_y[] = "b_y"; static const char __pyx_k_c_x[] = "c_x"; static const char __pyx_k_c_y[] = "c_y"; static const char __pyx_k_chr[] = "chr"; static const char __pyx_k_col[] = "col"; static const char __pyx_k_ctx[] = "ctx"; static const char __pyx_k_d_x[] = "d_x"; static const char __pyx_k_d_y[] = "d_y"; static const char __pyx_k_dst[] = "dst"; static const char __pyx_k_end[] = "end"; static const char __pyx_k_f_2[] = "%.f"; static const char __pyx_k_fmt[] = "fmt"; static const char __pyx_k_idx[] = "idx"; static const char __pyx_k_key[] = "key"; static const char __pyx_k_new[] = "__new__"; static const char __pyx_k_obj[] = "obj"; static const char __pyx_k_pos[] = "pos"; static const char __pyx_k_ptr[] = "_ptr"; static const char __pyx_k_str[] = "str"; static const char __pyx_k_uv0[] = "uv0"; static const char __pyx_k_uv1[] = "uv1"; static const char __pyx_k_val[] = "val"; static const char __pyx_k_var[] = "var"; static const char __pyx_k_Font[] = "_Font"; static const char __pyx_k_NONE[] = "NONE"; static const char __pyx_k_ONCE[] = "ONCE"; static const char __pyx_k_Vec2[] = "Vec2"; static const char __pyx_k_Vec4[] = "Vec4"; static const char __pyx_k_args[] = "args"; static const char __pyx_k_base[] = "base"; static const char __pyx_k_clip[] = "clip"; static const char __pyx_k_cols[] = "cols"; static const char __pyx_k_data[] = "data"; static const char __pyx_k_dict[] = "__dict__"; static const char __pyx_k_font[] = "font"; static const char __pyx_k_hint[] = "hint"; static const char __pyx_k_item[] = "item"; static const char __pyx_k_join[] = "join"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_mode[] = "mode"; static const char __pyx_k_name[] = "__name__"; static const char __pyx_k_ndim[] = "ndim"; static const char __pyx_k_pack[] = "pack"; static const char __pyx_k_rows[] = "rows"; static const char __pyx_k_send[] = "send"; static const char __pyx_k_size[] = "size"; static const char __pyx_k_step[] = "step"; static const char __pyx_k_stop[] = "stop"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_text[] = "text"; static const char __pyx_k_type[] = "type"; static const char __pyx_k_uv_a[] = "uv_a"; static const char __pyx_k_uv_b[] = "uv_b"; static const char __pyx_k_warn[] = "warn"; static const char __pyx_k_ASCII[] = "ASCII"; static const char __pyx_k_KEY_A[] = "KEY_A"; static const char __pyx_k_KEY_C[] = "KEY_C"; static const char __pyx_k_KEY_V[] = "KEY_V"; static const char __pyx_k_KEY_X[] = "KEY_X"; static const char __pyx_k_KEY_Y[] = "KEY_Y"; static const char __pyx_k_KEY_Z[] = "KEY_Z"; static const char __pyx_k_a_max[] = "a_max"; static const char __pyx_k_a_min[] = "a_min"; static const char __pyx_k_alpha[] = "alpha"; static const char __pyx_k_begin[] = "begin"; static const char __pyx_k_class[] = "__class__"; static const char __pyx_k_clear[] = "clear"; static const char __pyx_k_close[] = "close"; static const char __pyx_k_color[] = "color"; static const char __pyx_k_combo[] = "combo"; static const char __pyx_k_count[] = "count"; static const char __pyx_k_dummy[] = "dummy"; static const char __pyx_k_end_x[] = "end_x"; static const char __pyx_k_end_y[] = "end_y"; static const char __pyx_k_error[] = "error"; static const char __pyx_k_flags[] = "flags"; static const char __pyx_k_image[] = "image"; static const char __pyx_k_index[] = "index"; static const char __pyx_k_items[] = "items"; static const char __pyx_k_label[] = "label"; static const char __pyx_k_numpy[] = "numpy"; static const char __pyx_k_out_b[] = "out_b"; static const char __pyx_k_out_g[] = "out_g"; static const char __pyx_k_out_h[] = "out_h"; static const char __pyx_k_out_r[] = "out_r"; static const char __pyx_k_out_s[] = "out_s"; static const char __pyx_k_out_v[] = "out_v"; static const char __pyx_k_p_max[] = "p_max"; static const char __pyx_k_p_min[] = "p_min"; static const char __pyx_k_pos_x[] = "pos_x"; static const char __pyx_k_pos_y[] = "pos_y"; static const char __pyx_k_power[] = "power"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_scale[] = "scale"; static const char __pyx_k_shape[] = "shape"; static const char __pyx_k_speed[] = "speed"; static const char __pyx_k_split[] = "split"; static const char __pyx_k_start[] = "start"; static const char __pyx_k_state[] = "state"; static const char __pyx_k_strip[] = "strip"; static const char __pyx_k_style[] = "style"; static const char __pyx_k_throw[] = "throw"; static const char __pyx_k_title[] = "title"; static const char __pyx_k_utf_8[] = "utf-8"; static const char __pyx_k_value[] = "value"; static const char __pyx_k_width[] = "width"; static const char __pyx_k_0f_deg[] = "%.0f deg"; static const char __pyx_k_ALWAYS[] = "ALWAYS"; static const char __pyx_k_Colors[] = "_Colors"; static const char __pyx_k_active[] = "active"; static const char __pyx_k_append[] = "append"; static const char __pyx_k_border[] = "border"; static const char __pyx_k_bullet[] = "bullet"; static const char __pyx_k_button[] = "button"; static const char __pyx_k_column[] = "column"; static const char __pyx_k_create[] = "create"; static const char __pyx_k_decode[] = "decode"; static const char __pyx_k_encode[] = "encode"; static const char __pyx_k_errors[] = "errors"; static const char __pyx_k_exc_tb[] = "exc_tb"; static const char __pyx_k_format[] = "format"; static const char __pyx_k_get_io[] = "get_io"; static const char __pyx_k_height[] = "height"; static const char __pyx_k_ignore[] = "ignore"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_indent[] = "indent"; static const char __pyx_k_kwargs[] = "kwargs"; static const char __pyx_k_name_2[] = "name"; static const char __pyx_k_offset[] = "offset"; static const char __pyx_k_opened[] = "opened"; static const char __pyx_k_output[] = "output"; static const char __pyx_k_p_data[] = "p_data"; static const char __pyx_k_p_step[] = "p_step"; static const char __pyx_k_pickle[] = "pickle"; static const char __pyx_k_points[] = "points"; static const char __pyx_k_pop_id[] = "pop_id"; static const char __pyx_k_radius[] = "radius"; static const char __pyx_k_reduce[] = "__reduce__"; static const char __pyx_k_render[] = "render"; static const char __pyx_k_repeat[] = "repeat"; static const char __pyx_k_str_id[] = "str_id"; static const char __pyx_k_stride[] = "stride"; static const char __pyx_k_struct[] = "struct"; static const char __pyx_k_target[] = "target"; static const char __pyx_k_unpack[] = "unpack"; static const char __pyx_k_update[] = "update"; static const char __pyx_k_uv_a_u[] = "uv_a_u"; static const char __pyx_k_uv_a_v[] = "uv_a_v"; static const char __pyx_k_uv_b_u[] = "uv_b_u"; static const char __pyx_k_uv_b_v[] = "uv_b_v"; static const char __pyx_k_uv_c_u[] = "uv_c_u"; static const char __pyx_k_uv_c_v[] = "uv_c_v"; static const char __pyx_k_uv_d_u[] = "uv_d_u"; static const char __pyx_k_uv_d_v[] = "uv_d_v"; static const char __pyx_k_value0[] = "value0"; static const char __pyx_k_value1[] = "value1"; static const char __pyx_k_value2[] = "value2"; static const char __pyx_k_value3[] = "value3"; static const char __pyx_k_values[] = "values"; static const char __pyx_k_xrange[] = "xrange"; static const char __pyx_k_DrawCmd[] = "_DrawCmd"; static const char __pyx_k_ImGuiID[] = "ImGuiID"; static const char __pyx_k_KEY_END[] = "KEY_END"; static const char __pyx_k_KEY_TAB[] = "KEY_TAB"; static const char __pyx_k_changed[] = "changed"; static const char __pyx_k_clicked[] = "clicked"; static const char __pyx_k_columns[] = "columns"; static const char __pyx_k_current[] = "current"; static const char __pyx_k_desc_id[] = "desc_id"; static const char __pyx_k_enabled[] = "enabled"; static const char __pyx_k_exc_val[] = "exc_val"; static const char __pyx_k_font_no[] = "font_no"; static const char __pyx_k_fortran[] = "fortran"; static const char __pyx_k_hovered[] = "hovered"; static const char __pyx_k_is_open[] = "is_open"; static const char __pyx_k_listbox[] = "listbox"; static const char __pyx_k_local_x[] = "local_x"; static const char __pyx_k_local_y[] = "local_y"; static const char __pyx_k_memview[] = "memview"; static const char __pyx_k_overlay[] = "overlay"; static const char __pyx_k_payload[] = "payload"; static const char __pyx_k_pivot_x[] = "pivot_x"; static const char __pyx_k_pivot_y[] = "pivot_y"; static const char __pyx_k_push_id[] = "push_id"; static const char __pyx_k_py_font[] = "_py_font"; static const char __pyx_k_r_max_x[] = "r_max_x"; static const char __pyx_k_r_max_y[] = "r_max_y"; static const char __pyx_k_r_min_x[] = "r_min_x"; static const char __pyx_k_r_min_y[] = "r_min_y"; static const char __pyx_k_spacing[] = "spacing"; static const char __pyx_k_start_x[] = "start_x"; static const char __pyx_k_start_y[] = "start_y"; static const char __pyx_k_user_id[] = "user_id"; static const char __pyx_k_visible[] = "visible"; static const char __pyx_k_BeginEnd[] = "_BeginEnd"; static const char __pyx_k_DrawData[] = "_DrawData"; static const char __pyx_k_DrawList[] = "_DrawList"; static const char __pyx_k_Ellipsis[] = "Ellipsis"; static const char __pyx_k_GuiStyle[] = "GuiStyle"; static const char __pyx_k_KEY_HOME[] = "KEY_HOME"; static const char __pyx_k_c_string[] = "c_string"; static const char __pyx_k_callback[] = "callback"; static const char __pyx_k_center_x[] = "center_x"; static const char __pyx_k_center_y[] = "center_y"; static const char __pyx_k_centre_x[] = "centre_x"; static const char __pyx_k_centre_y[] = "centre_y"; static const char __pyx_k_checkbox[] = "checkbox"; static const char __pyx_k_closable[] = "closable"; static const char __pyx_k_column_n[] = "column_n"; static const char __pyx_k_contexts[] = "_contexts"; static const char __pyx_k_defaults[] = "defaults"; static const char __pyx_k_drag_int[] = "drag_int"; static const char __pyx_k_dragging[] = "dragging"; static const char __pyx_k_end_menu[] = "end_menu"; static const char __pyx_k_exc_type[] = "exc_type"; static const char __pyx_k_expanded[] = "expanded"; static const char __pyx_k_filename[] = "filename"; static const char __pyx_k_fmt_data[] = "fmt_data"; static const char __pyx_k_fraction[] = "fraction"; static const char __pyx_k_get_time[] = "get_time"; static const char __pyx_k_getstate[] = "__getstate__"; static const char __pyx_k_in_items[] = "in_items"; static const char __pyx_k_ini_data[] = "ini_data"; static const char __pyx_k_itemsize[] = "itemsize"; static const char __pyx_k_iterator[] = "iterator"; static const char __pyx_k_new_line[] = "new_line"; static const char __pyx_k_offset_x[] = "offset_x"; static const char __pyx_k_opened_2[] = "{}(opened={})"; static const char __pyx_k_point1_x[] = "point1_x"; static const char __pyx_k_point1_y[] = "point1_y"; static const char __pyx_k_point2_x[] = "point2_x"; static const char __pyx_k_point2_y[] = "point2_y"; static const char __pyx_k_point3_x[] = "point3_x"; static const char __pyx_k_point3_y[] = "point3_y"; static const char __pyx_k_point4_x[] = "point4_x"; static const char __pyx_k_point4_y[] = "point4_y"; static const char __pyx_k_pop_font[] = "pop_font"; static const char __pyx_k_populate[] = "populate"; static const char __pyx_k_position[] = "position"; static const char __pyx_k_pyx_type[] = "__pyx_type"; static const char __pyx_k_rounding[] = "rounding"; static const char __pyx_k_scroll_x[] = "scroll_x"; static const char __pyx_k_scroll_y[] = "scroll_y"; static const char __pyx_k_selected[] = "selected"; static const char __pyx_k_setstate[] = "__setstate__"; static const char __pyx_k_shortcut[] = "shortcut"; static const char __pyx_k_size_max[] = "size_max"; static const char __pyx_k_size_min[] = "size_min"; static const char __pyx_k_tree_pop[] = "tree_pop"; static const char __pyx_k_unindent[] = "unindent"; static const char __pyx_k_variable[] = "variable"; static const char __pyx_k_warnings[] = "warnings"; static const char __pyx_k_APPEARING[] = "APPEARING"; static const char __pyx_k_COLOR_TAB[] = "COLOR_TAB"; static const char __pyx_k_DRAW_NONE[] = "DRAW_NONE"; static const char __pyx_k_FLOAT_MAX[] = "FLOAT_MAX"; static const char __pyx_k_FLOAT_MIN[] = "FLOAT_MIN"; static const char __pyx_k_FontAtlas[] = "_FontAtlas"; static const char __pyx_k_KEY_ENTER[] = "KEY_ENTER"; static const char __pyx_k_KEY_SPACE[] = "KEY_SPACE"; static const char __pyx_k_TypeError[] = "TypeError"; static const char __pyx_k_alpha_mul[] = "alpha_mul"; static const char __pyx_k_collapsed[] = "collapsed"; static const char __pyx_k_condition[] = "condition"; static const char __pyx_k_data_type[] = "data_type"; static const char __pyx_k_direction[] = "direction"; static const char __pyx_k_drag_int2[] = "drag_int2"; static const char __pyx_k_drag_int3[] = "drag_int3"; static const char __pyx_k_drag_int4[] = "drag_int4"; static const char __pyx_k_end_child[] = "end_child"; static const char __pyx_k_end_combo[] = "end_combo"; static const char __pyx_k_end_frame[] = "end_frame"; static const char __pyx_k_end_group[] = "end_group"; static const char __pyx_k_end_popup[] = "end_popup"; static const char __pyx_k_end_table[] = "end_table"; static const char __pyx_k_enumerate[] = "enumerate"; static const char __pyx_k_fillvalue[] = "fillvalue"; static const char __pyx_k_get_style[] = "get_style"; static const char __pyx_k_gui_style[] = "gui_style"; static const char __pyx_k_hovered_2[] = "{}(hovered={})"; static const char __pyx_k_idx_count[] = "idx_count"; static const char __pyx_k_input_int[] = "input_int"; static const char __pyx_k_itertools[] = "itertools"; static const char __pyx_k_key_index[] = "key_index"; static const char __pyx_k_local_pos[] = "local_pos"; static const char __pyx_k_max_value[] = "max_value"; static const char __pyx_k_menu_item[] = "menu_item"; static const char __pyx_k_min_value[] = "min_value"; static const char __pyx_k_new_frame[] = "new_frame"; static const char __pyx_k_push_font[] = "push_font"; static const char __pyx_k_py_scoped[] = "_py_scoped"; static const char __pyx_k_py_string[] = "py_string"; static const char __pyx_k_py_styled[] = "_py_styled"; static const char __pyx_k_pyx_state[] = "__pyx_state"; static const char __pyx_k_rad_value[] = "rad_value"; static const char __pyx_k_reduce_ex[] = "__reduce_ex__"; static const char __pyx_k_row_flags[] = "row_flags"; static const char __pyx_k_same_line[] = "same_line"; static const char __pyx_k_scale_max[] = "scale_max"; static const char __pyx_k_scale_min[] = "scale_min"; static const char __pyx_k_separator[] = "separator"; static const char __pyx_k_step_fast[] = "step_fast"; static const char __pyx_k_thickness[] = "thickness"; static const char __pyx_k_tree_node[] = "tree_node"; static const char __pyx_k_user_data[] = "user_data"; static const char __pyx_k_user_info[] = "_user_info"; static const char __pyx_k_visible_2[] = "{}(visible={})"; static const char __pyx_k_vtx_count[] = "vtx_count"; static const char __pyx_k_COLOR_TEXT[] = "COLOR_TEXT"; static const char __pyx_k_COMBO_NONE[] = "COMBO_NONE"; static const char __pyx_k_FOCUS_NONE[] = "FOCUS_NONE"; static const char __pyx_k_FontConfig[] = "FontConfig"; static const char __pyx_k_ImGuiError[] = "ImGuiError"; static const char __pyx_k_IndexError[] = "IndexError"; static const char __pyx_k_KEY_DELETE[] = "KEY_DELETE"; static const char __pyx_k_KEY_ESCAPE[] = "KEY_ESCAPE"; static const char __pyx_k_KEY_INSERT[] = "KEY_INSERT"; static const char __pyx_k_POPUP_NONE[] = "POPUP_NONE"; static const char __pyx_k_TABLE_NONE[] = "TABLE_NONE"; static const char __pyx_k_ValueError[] = "ValueError"; static const char __pyx_k_begin_menu[] = "begin_menu"; static const char __pyx_k_callback_2[] = "_callback"; static const char __pyx_k_components[] = "components"; static const char __pyx_k_contextlib[] = "contextlib"; static const char __pyx_k_drag_float[] = "drag_float"; static const char __pyx_k_dragging_2[] = "{}(dragging={})"; static const char __pyx_k_format_max[] = "format_max"; static const char __pyx_k_graph_size[] = "graph_size"; static const char __pyx_k_identifier[] = "identifier"; static const char __pyx_k_imgui_core[] = "imgui.core"; static const char __pyx_k_input_int2[] = "input_int2"; static const char __pyx_k_input_int3[] = "input_int3"; static const char __pyx_k_input_int4[] = "input_int4"; static const char __pyx_k_input_text[] = "input_text"; static const char __pyx_k_label_text[] = "label_text"; static const char __pyx_k_merge_mode[] = "merge_mode"; static const char __pyx_k_namedtuple[] = "namedtuple"; static const char __pyx_k_open_popup[] = "open_popup"; static const char __pyx_k_plot_lines[] = "plot_lines"; static const char __pyx_k_py_colored[] = "_py_colored"; static const char __pyx_k_py_istyled[] = "_py_istyled"; static const char __pyx_k_pyx_result[] = "__pyx_result"; static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__"; static const char __pyx_k_screen_pos[] = "screen_pos"; static const char __pyx_k_selectable[] = "selectable"; static const char __pyx_k_signatures[] = "signatures"; static const char __pyx_k_size_width[] = "size_width"; static const char __pyx_k_slider_int[] = "slider_int"; static const char __pyx_k_texture_id[] = "texture_id"; static const char __pyx_k_tint_color[] = "tint_color"; static const char __pyx_k_wrap_pos_x[] = "wrap_pos_x"; static const char __pyx_k_wrap_width[] = "wrap_width"; static const char __pyx_k_BUTTON_NONE[] = "BUTTON_NONE"; static const char __pyx_k_COLOR_COUNT[] = "COLOR_COUNT"; static const char __pyx_k_CONFIG_NONE[] = "CONFIG_NONE"; static const char __pyx_k_DRAW_CLOSED[] = "DRAW_CLOSED"; static const char __pyx_k_GlyphRanges[] = "GlyphRanges"; static const char __pyx_k_ImportError[] = "ImportError"; static const char __pyx_k_KEY_MOD_ALT[] = "KEY_MOD_ALT"; static const char __pyx_k_KEY_PAGE_UP[] = "KEY_PAGE_UP"; static const char __pyx_k_MemoryError[] = "MemoryError"; static const char __pyx_k_PickleError[] = "PickleError"; static const char __pyx_k_STYLE_ALPHA[] = "STYLE_ALPHA"; static const char __pyx_k_WINDOW_NONE[] = "WINDOW_NONE"; static const char __pyx_k_a_max_of_12[] = "a_max_of_12"; static const char __pyx_k_a_min_of_12[] = "a_min_of_12"; static const char __pyx_k_begin_child[] = "begin_child"; static const char __pyx_k_begin_combo[] = "begin_combo"; static const char __pyx_k_begin_group[] = "begin_group"; static const char __pyx_k_begin_popup[] = "begin_popup"; static const char __pyx_k_begin_table[] = "begin_table"; static const char __pyx_k_bullet_text[] = "bullet_text"; static const char __pyx_k_bytes_count[] = "bytes_count"; static const char __pyx_k_callback_fn[] = "callback_fn"; static const char __pyx_k_collections[] = "collections"; static const char __pyx_k_color_edit3[] = "color_edit3"; static const char __pyx_k_color_edit4[] = "color_edit4"; static const char __pyx_k_current_max[] = "current_max"; static const char __pyx_k_current_min[] = "current_min"; static const char __pyx_k_drag_float2[] = "drag_float2"; static const char __pyx_k_drag_float3[] = "drag_float3"; static const char __pyx_k_drag_float4[] = "drag_float4"; static const char __pyx_k_drag_scalar[] = "drag_scalar"; static const char __pyx_k_end_tab_bar[] = "end_tab_bar"; static const char __pyx_k_end_tooltip[] = "end_tooltip"; static const char __pyx_k_flags_value[] = "flags_value"; static const char __pyx_k_font_config[] = "font_config"; static const char __pyx_k_get_version[] = "get_version"; static const char __pyx_k_inner_width[] = "inner_width"; static const char __pyx_k_inout_color[] = "inout_color"; static const char __pyx_k_inout_flags[] = "inout_flags"; static const char __pyx_k_inout_state[] = "inout_state"; static const char __pyx_k_inout_value[] = "inout_value"; static const char __pyx_k_input_float[] = "input_float"; static const char __pyx_k_is_key_down[] = "is_key_down"; static const char __pyx_k_next_column[] = "next_column"; static const char __pyx_k_p_step_fast[] = "p_step_fast"; static const char __pyx_k_popup_flags[] = "popup_flags"; static const char __pyx_k_set_tooltip[] = "set_tooltip"; static const char __pyx_k_size_height[] = "size_height"; static const char __pyx_k_size_pixels[] = "size_pixels"; static const char __pyx_k_slider_int2[] = "slider_int2"; static const char __pyx_k_slider_int3[] = "slider_int3"; static const char __pyx_k_slider_int4[] = "slider_int4"; static const char __pyx_k_user_data_2[] = "_user_data"; static const char __pyx_k_value_bytes[] = "_value_bytes"; static const char __pyx_k_zip_longest[] = "zip_longest"; static const char __pyx_k_BACKEND_NONE[] = "BACKEND_NONE"; static const char __pyx_k_BeginEndMenu[] = "_BeginEndMenu"; static const char __pyx_k_COLOR_BORDER[] = "COLOR_BORDER"; static const char __pyx_k_COLOR_BUTTON[] = "COLOR_BUTTON"; static const char __pyx_k_COLOR_HEADER[] = "COLOR_HEADER"; static const char __pyx_k_DATA_TYPE_S8[] = "DATA_TYPE_S8"; static const char __pyx_k_DATA_TYPE_U8[] = "DATA_TYPE_U8"; static const char __pyx_k_DIRECTION_UP[] = "DIRECTION_UP"; static const char __pyx_k_HOVERED_NONE[] = "HOVERED_NONE"; static const char __pyx_k_ImGuiContext[] = "_ImGuiContext"; static const char __pyx_k_KEY_MOD_CTRL[] = "KEY_MOD_CTRL"; static const char __pyx_k_KEY_MOD_NONE[] = "KEY_MOD_NONE"; static const char __pyx_k_KEY_UP_ARROW[] = "KEY_UP_ARROW"; static const char __pyx_k_RuntimeError[] = "RuntimeError"; static const char __pyx_k_TAB_BAR_NONE[] = "TAB_BAR_NONE"; static const char __pyx_k_arrow_button[] = "arrow_button"; static const char __pyx_k_b_format_max[] = "b_format_max"; static const char __pyx_k_border_color[] = "border_color"; static const char __pyx_k_change_speed[] = "change_speed"; static const char __pyx_k_col_bot_left[] = "col_bot_left"; static const char __pyx_k_col_upr_left[] = "col_upr_left"; static const char __pyx_k_color_button[] = "color_button"; static const char __pyx_k_column_index[] = "column_index"; static const char __pyx_k_end_list_box[] = "end_list_box"; static const char __pyx_k_end_menu_bar[] = "end_menu_bar"; static const char __pyx_k_end_tab_item[] = "end_tab_item"; static const char __pyx_k_get_scroll_x[] = "get_scroll_x"; static const char __pyx_k_get_scroll_y[] = "get_scroll_y"; static const char __pyx_k_glyph_ranges[] = "glyph_ranges"; static const char __pyx_k_image_button[] = "image_button"; static const char __pyx_k_inout_opened[] = "inout_opened"; static const char __pyx_k_inout_values[] = "inout_values"; static const char __pyx_k_input_double[] = "input_double"; static const char __pyx_k_input_float2[] = "input_float2"; static const char __pyx_k_input_float3[] = "input_float3"; static const char __pyx_k_input_float4[] = "input_float4"; static const char __pyx_k_input_scalar[] = "input_scalar"; static const char __pyx_k_io_clipboard[] = "_io_clipboard"; static const char __pyx_k_izip_longest[] = "izip_longest"; static const char __pyx_k_mouse_button[] = "mouse_button"; static const char __pyx_k_num_segments[] = "num_segments"; static const char __pyx_k_overlay_text[] = "overlay_text"; static const char __pyx_k_oversample_h[] = "oversample_h"; static const char __pyx_k_oversample_v[] = "oversample_v"; static const char __pyx_k_p_format_max[] = "p_format_max"; static const char __pyx_k_pixel_snap_h[] = "pixel_snap_h"; static const char __pyx_k_progress_bar[] = "progress_bar"; static const char __pyx_k_pyx_checksum[] = "__pyx_checksum"; static const char __pyx_k_radio_button[] = "radio_button"; static const char __pyx_k_set_scroll_x[] = "set_scroll_x"; static const char __pyx_k_set_scroll_y[] = "set_scroll_y"; static const char __pyx_k_slider_angle[] = "slider_angle"; static const char __pyx_k_slider_float[] = "slider_float"; static const char __pyx_k_small_button[] = "small_button"; static const char __pyx_k_staticmethod[] = "staticmethod"; static const char __pyx_k_stringsource[] = "stringsource"; static const char __pyx_k_table_header[] = "table_header"; static const char __pyx_k_text_colored[] = "text_colored"; static const char __pyx_k_text_wrapped[] = "text_wrapped"; static const char __pyx_k_upper_left_x[] = "upper_left_x"; static const char __pyx_k_upper_left_y[] = "upper_left_y"; static const char __pyx_k_v_slider_int[] = "v_slider_int"; static const char __pyx_k_values_count[] = "values_count"; static const char __pyx_k_BeginEndChild[] = "_BeginEndChild"; static const char __pyx_k_BeginEndCombo[] = "_BeginEndCombo"; static const char __pyx_k_BeginEndGroup[] = "_BeginEndGroup"; static const char __pyx_k_BeginEndPopup[] = "_BeginEndPopup"; static const char __pyx_k_BeginEndTable[] = "_BeginEndTable"; static const char __pyx_k_CONFIG_IS_RGB[] = "CONFIG_IS_RGB"; static const char __pyx_k_DATA_TYPE_S16[] = "DATA_TYPE_S16"; static const char __pyx_k_DATA_TYPE_S32[] = "DATA_TYPE_S32"; static const char __pyx_k_DATA_TYPE_S64[] = "DATA_TYPE_S64"; static const char __pyx_k_DATA_TYPE_U16[] = "DATA_TYPE_U16"; static const char __pyx_k_DATA_TYPE_U32[] = "DATA_TYPE_U32"; static const char __pyx_k_DATA_TYPE_U64[] = "DATA_TYPE_U64"; static const char __pyx_k_ImGuiViewport[] = "_ImGuiViewport"; static const char __pyx_k_KEY_BACKSPACE[] = "KEY_BACKSPACE"; static const char __pyx_k_KEY_MOD_SHIFT[] = "KEY_MOD_SHIFT"; static const char __pyx_k_KEY_MOD_SUPER[] = "KEY_MOD_SUPER"; static const char __pyx_k_KEY_PAD_ENTER[] = "KEY_PAD_ENTER"; static const char __pyx_k_KEY_PAGE_DOWN[] = "KEY_PAGE_DOWN"; static const char __pyx_k_StopIteration[] = "StopIteration"; static const char __pyx_k_TABLE_BORDERS[] = "TABLE_BORDERS"; static const char __pyx_k_TABLE_NO_CLIP[] = "TABLE_NO_CLIP"; static const char __pyx_k_TAB_ITEM_NONE[] = "TAB_ITEM_NONE"; static const char __pyx_k_WINDOW_NO_NAV[] = "WINDOW_NO_NAV"; static const char __pyx_k_begin_tab_bar[] = "begin_tab_bar"; static const char __pyx_k_begin_tooltip[] = "begin_tooltip"; static const char __pyx_k_buffer_length[] = "buffer_length"; static const char __pyx_k_col_bot_right[] = "col_bot_right"; static const char __pyx_k_col_upr_right[] = "col_upr_right"; static const char __pyx_k_drag_scalar_N[] = "drag_scalar_N"; static const char __pyx_k_ellipsis_char[] = "ellipsis_char"; static const char __pyx_k_frame_padding[] = "frame_padding"; static const char __pyx_k_get_draw_data[] = "get_draw_data"; static const char __pyx_k_get_key_index[] = "get_key_index"; static const char __pyx_k_get_mouse_pos[] = "get_mouse_pos"; static const char __pyx_k_ini_file_name[] = "ini_file_name"; static const char __pyx_k_inout_current[] = "inout_current"; static const char __pyx_k_inout_r_value[] = "inout_r_value"; static const char __pyx_k_inout_visible[] = "inout_visible"; static const char __pyx_k_is_mouse_down[] = "is_mouse_down"; static const char __pyx_k_is_popup_open[] = "is_popup_open"; static const char __pyx_k_lower_right_x[] = "lower_right_x"; static const char __pyx_k_lower_right_y[] = "lower_right_y"; static const char __pyx_k_pop_clip_rect[] = "pop_clip_rect"; static const char __pyx_k_preview_value[] = "preview_value"; static const char __pyx_k_pyx_getbuffer[] = "__pyx_getbuffer"; static const char __pyx_k_reduce_cython[] = "__reduce_cython__"; static const char __pyx_k_slider_float2[] = "slider_float2"; static const char __pyx_k_slider_float3[] = "slider_float3"; static const char __pyx_k_slider_float4[] = "slider_float4"; static const char __pyx_k_slider_scalar[] = "slider_scalar"; static const char __pyx_k_text_disabled[] = "text_disabled"; static const char __pyx_k_values_offset[] = "values_offset"; static const char __pyx_k_BeginEndTabBar[] = "_BeginEndTabBar"; static const char __pyx_k_COLOR_EDIT_HDR[] = "COLOR_EDIT_HDR"; static const char __pyx_k_DIRECTION_DOWN[] = "DIRECTION_DOWN"; static const char __pyx_k_DIRECTION_LEFT[] = "DIRECTION_LEFT"; static const char __pyx_k_DIRECTION_NONE[] = "DIRECTION_NONE"; static const char __pyx_k_DRAG_DROP_NONE[] = "DRAG_DROP_NONE"; static const char __pyx_k_DRAW_LIST_NONE[] = "DRAW_LIST_NONE"; static const char __pyx_k_FIRST_USE_EVER[] = "FIRST_USE_EVER"; static const char __pyx_k_KEY_DOWN_ARROW[] = "KEY_DOWN_ARROW"; static const char __pyx_k_KEY_LEFT_ARROW[] = "KEY_LEFT_ARROW"; static const char __pyx_k_NAV_INPUT_MENU[] = "NAV_INPUT_MENU"; static const char __pyx_k_TABLE_HIDEABLE[] = "TABLE_HIDEABLE"; static const char __pyx_k_TABLE_ROW_NONE[] = "TABLE_ROW_NONE"; static const char __pyx_k_TABLE_SCROLL_X[] = "TABLE_SCROLL_X"; static const char __pyx_k_TABLE_SCROLL_Y[] = "TABLE_SCROLL_Y"; static const char __pyx_k_TABLE_SORTABLE[] = "TABLE_SORTABLE"; static const char __pyx_k_TREE_NODE_LEAF[] = "TREE_NODE_LEAF"; static const char __pyx_k_TREE_NODE_NONE[] = "TREE_NODE_NONE"; static const char __pyx_k_WINDOW_NO_MOVE[] = "WINDOW_NO_MOVE"; static const char __pyx_k_begin_list_box[] = "begin_list_box"; static const char __pyx_k_begin_menu_bar[] = "begin_menu_bar"; static const char __pyx_k_begin_tab_item[] = "begin_tab_item"; static const char __pyx_k_center_x_ratio[] = "center_x_ratio"; static const char __pyx_k_center_y_ratio[] = "center_y_ratio"; static const char __pyx_k_checkbox_flags[] = "checkbox_flags"; static const char __pyx_k_contextmanager[] = "contextmanager"; static const char __pyx_k_create_context[] = "create_context"; static const char __pyx_k_get_cursor_pos[] = "get_cursor_pos"; static const char __pyx_k_glyph_offset_x[] = "glyph_offset_x"; static const char __pyx_k_glyph_offset_y[] = "glyph_offset_y"; static const char __pyx_k_imgui_core_pyx[] = "imgui\\core.pyx"; static const char __pyx_k_inout_selected[] = "inout_selected"; static const char __pyx_k_input_scalar_N[] = "input_scalar_N"; static const char __pyx_k_is_item_active[] = "is_item_active"; static const char __pyx_k_is_item_edited[] = "is_item_edited"; static const char __pyx_k_is_key_pressed[] = "is_key_pressed"; static const char __pyx_k_listbox_footer[] = "listbox_footer"; static const char __pyx_k_listbox_header[] = "listbox_header"; static const char __pyx_k_lock_threshold[] = "lock_threshold"; static const char __pyx_k_min_row_height[] = "min_row_height"; static const char __pyx_k_opened_visible[] = "{}(opened={}, visible={})"; static const char __pyx_k_overlay_text_b[] = "overlay_text_b"; static const char __pyx_k_plot_histogram[] = "plot_histogram"; static const char __pyx_k_push_clip_rect[] = "push_clip_rect"; static const char __pyx_k_set_cursor_pos[] = "set_cursor_pos"; static const char __pyx_k_table_next_row[] = "table_next_row"; static const char __pyx_k_v_slider_float[] = "v_slider_float"; static const char __pyx_k_BeginEndListBox[] = "_BeginEndListBox"; static const char __pyx_k_BeginEndMenuBar[] = "_BeginEndMenuBar"; static const char __pyx_k_BeginEndTabItem[] = "_BeginEndTabItem"; static const char __pyx_k_BeginEndTooltip[] = "_BeginEndTooltip"; static const char __pyx_k_COLOR_EDIT_NONE[] = "COLOR_EDIT_NONE"; static const char __pyx_k_COLOR_SEPARATOR[] = "COLOR_SEPARATOR"; static const char __pyx_k_CONFIG_NO_MOUSE[] = "CONFIG_NO_MOUSE"; static const char __pyx_k_DATA_TYPE_FLOAT[] = "DATA_TYPE_FLOAT"; static const char __pyx_k_DIRECTION_RIGHT[] = "DIRECTION_RIGHT"; static const char __pyx_k_DRAW_CORNER_ALL[] = "DRAW_CORNER_ALL"; static const char __pyx_k_DRAW_CORNER_TOP[] = "DRAW_CORNER_TOP"; static const char __pyx_k_FONT_ATLAS_NONE[] = "FONT_ATLAS_NONE"; static const char __pyx_k_INPUT_TEXT_NONE[] = "INPUT_TEXT_NONE"; static const char __pyx_k_KEY_RIGHT_ARROW[] = "KEY_RIGHT_ARROW"; static const char __pyx_k_NAV_INPUT_COUNT[] = "NAV_INPUT_COUNT"; static const char __pyx_k_NAV_INPUT_INPUT[] = "NAV_INPUT_INPUT"; static const char __pyx_k_POPUP_ANY_POPUP[] = "POPUP_ANY_POPUP"; static const char __pyx_k_SELECTABLE_NONE[] = "SELECTABLE_NONE"; static const char __pyx_k_TABLE_RESIZABLE[] = "TABLE_RESIZABLE"; static const char __pyx_k_View_MemoryView[] = "View.MemoryView"; static const char __pyx_k_WINDOW_MENU_BAR[] = "WINDOW_MENU_BAR"; static const char __pyx_k_allocate_buffer[] = "allocate_buffer"; static const char __pyx_k_also_over_items[] = "also_over_items"; static const char __pyx_k_buffer_length_2[] = "_buffer_length"; static const char __pyx_k_clip_rect_max_x[] = "clip_rect_max_x"; static const char __pyx_k_clip_rect_max_y[] = "clip_rect_max_y"; static const char __pyx_k_clip_rect_min_x[] = "clip_rect_min_x"; static const char __pyx_k_clip_rect_min_y[] = "clip_rect_min_y"; static const char __pyx_k_destroy_context[] = "destroy_context"; static const char __pyx_k_drag_int_range2[] = "drag_int_range2"; static const char __pyx_k_dtype_is_object[] = "dtype_is_object"; static const char __pyx_k_expanded_opened[] = "{}(expanded={}, opened={})"; static const char __pyx_k_get_window_size[] = "get_window_size"; static const char __pyx_k_height_in_items[] = "height_in_items"; static const char __pyx_k_imgui_sort_spec[] = "imgui_sort_spec"; static const char __pyx_k_is_item_clicked[] = "is_item_clicked"; static const char __pyx_k_is_item_focused[] = "is_item_focused"; static const char __pyx_k_is_item_hovered[] = "is_item_hovered"; static const char __pyx_k_is_item_visible[] = "is_item_visible"; static const char __pyx_k_is_rect_visible[] = "is_rect_visible"; static const char __pyx_k_keepalive_cache[] = "_keepalive_cache"; static const char __pyx_k_pyx_PickleError[] = "__pyx_PickleError"; static const char __pyx_k_require_pointer[] = "_require_pointer"; static const char __pyx_k_selected_opened[] = "{}(selected={}, opened={})"; static const char __pyx_k_set_window_size[] = "set_window_size"; static const char __pyx_k_setstate_cython[] = "__setstate_cython__"; static const char __pyx_k_show_user_guide[] = "show_user_guide"; static const char __pyx_k_slider_scalar_N[] = "slider_scalar_N"; static const char __pyx_k_tab_item_button[] = "tab_item_button"; static const char __pyx_k_v_slider_scalar[] = "v_slider_scalar"; static const char __pyx_k_COLOR_CHECK_MARK[] = "COLOR_CHECK_MARK"; static const char __pyx_k_COLOR_EDIT_FLOAT[] = "COLOR_EDIT_FLOAT"; static const char __pyx_k_COLOR_EDIT_UINT8[] = "COLOR_EDIT_UINT8"; static const char __pyx_k_COLOR_PLOT_LINES[] = "COLOR_PLOT_LINES"; static const char __pyx_k_COLOR_TAB_ACTIVE[] = "COLOR_TAB_ACTIVE"; static const char __pyx_k_COMBO_NO_PREVIEW[] = "COMBO_NO_PREVIEW"; static const char __pyx_k_DATA_TYPE_DOUBLE[] = "DATA_TYPE_DOUBLE"; static const char __pyx_k_DRAW_CORNER_LEFT[] = "DRAW_CORNER_LEFT"; static const char __pyx_k_DRAW_CORNER_NONE[] = "DRAW_CORNER_NONE"; static const char __pyx_k_FOCUS_ANY_WINDOW[] = "FOCUS_ANY_WINDOW"; static const char __pyx_k_NAV_INPUT_CANCEL[] = "NAV_INPUT_CANCEL"; static const char __pyx_k_TABLE_SORT_MULTI[] = "TABLE_SORT_MULTI"; static const char __pyx_k_TAB_ITEM_LEADING[] = "TAB_ITEM_LEADING"; static const char __pyx_k_TREE_NODE_BULLET[] = "TREE_NODE_BULLET"; static const char __pyx_k_TREE_NODE_FRAMED[] = "TREE_NODE_FRAMED"; static const char __pyx_k_WINDOW_NO_INPUTS[] = "WINDOW_NO_INPUTS"; static const char __pyx_k_WINDOW_NO_RESIZE[] = "WINDOW_NO_RESIZE"; static const char __pyx_k_get_column_index[] = "get_column_index"; static const char __pyx_k_get_column_width[] = "get_column_width"; static const char __pyx_k_get_cursor_pos_x[] = "get_cursor_pos_x"; static const char __pyx_k_get_cursor_pos_y[] = "get_cursor_pos_y"; static const char __pyx_k_get_frame_height[] = "get_frame_height"; static const char __pyx_k_get_mouse_cursor[] = "get_mouse_cursor"; static const char __pyx_k_get_scroll_max_x[] = "get_scroll_max_x"; static const char __pyx_k_get_scroll_max_y[] = "get_scroll_max_y"; static const char __pyx_k_get_window_width[] = "get_window_width"; static const char __pyx_k_invisible_button[] = "invisible_button"; static const char __pyx_k_is_mouse_clicked[] = "is_mouse_clicked"; static const char __pyx_k_outer_size_width[] = "outer_size_width"; static const char __pyx_k_overlay_text_ptr[] = "overlay_text_ptr"; static const char __pyx_k_set_column_width[] = "set_column_width"; static const char __pyx_k_set_cursor_pos_x[] = "set_cursor_pos_x"; static const char __pyx_k_set_cursor_pos_y[] = "set_cursor_pos_y"; static const char __pyx_k_set_mouse_cursor[] = "set_mouse_cursor"; static const char __pyx_k_set_window_focus[] = "set_window_focus"; static const char __pyx_k_show_demo_window[] = "show_demo_window"; static const char __pyx_k_show_test_window[] = "show_test_window"; static const char __pyx_k_text_unformatted[] = "text_unformatted"; static const char __pyx_k_COLOR_RESIZE_GRIP[] = "COLOR_RESIZE_GRIP"; static const char __pyx_k_COLOR_SLIDER_GRAB[] = "COLOR_SLIDER_GRAB"; static const char __pyx_k_COLOR_TAB_HOVERED[] = "COLOR_TAB_HOVERED"; static const char __pyx_k_COMBO_HEIGHT_MASK[] = "COMBO_HEIGHT_MASK"; static const char __pyx_k_DRAW_CORNER_RIGHT[] = "DRAW_CORNER_RIGHT"; static const char __pyx_k_FOCUS_ROOT_WINDOW[] = "FOCUS_ROOT_WINDOW"; static const char __pyx_k_HOVERED_RECT_ONLY[] = "HOVERED_RECT_ONLY"; static const char __pyx_k_MOUSE_BUTTON_LEFT[] = "MOUSE_BUTTON_LEFT"; static const char __pyx_k_MOUSE_CURSOR_HAND[] = "MOUSE_CURSOR_HAND"; static const char __pyx_k_MOUSE_CURSOR_NONE[] = "MOUSE_CURSOR_NONE"; static const char __pyx_k_NAV_INPUT_DPAD_UP[] = "NAV_INPUT_DPAD_UP"; static const char __pyx_k_SLIDER_FLAGS_NONE[] = "SLIDER_FLAGS_NONE"; static const char __pyx_k_StaticGlyphRanges[] = "_StaticGlyphRanges"; static const char __pyx_k_TABLE_COLUMN_NONE[] = "TABLE_COLUMN_NONE"; static const char __pyx_k_TABLE_PAD_OUTER_X[] = "TABLE_PAD_OUTER_X"; static const char __pyx_k_TABLE_REORDERABLE[] = "TABLE_REORDERABLE"; static const char __pyx_k_TABLE_ROW_HEADERS[] = "TABLE_ROW_HEADERS"; static const char __pyx_k_TAB_ITEM_TRAILING[] = "TAB_ITEM_TRAILING"; static const char __pyx_k_begin_popup_modal[] = "begin_popup_modal"; static const char __pyx_k_collapsing_header[] = "collapsing_header"; static const char __pyx_k_drag_float_range2[] = "drag_float_range2"; static const char __pyx_k_end_main_menu_bar[] = "end_main_menu_bar"; static const char __pyx_k_get_column_offset[] = "get_column_offset"; static const char __pyx_k_get_columns_count[] = "get_columns_count"; static const char __pyx_k_get_item_rect_max[] = "get_item_rect_max"; static const char __pyx_k_get_item_rect_min[] = "get_item_rect_min"; static const char __pyx_k_get_main_viewport[] = "get_main_viewport"; static const char __pyx_k_get_window_height[] = "get_window_height"; static const char __pyx_k_inout_current_max[] = "inout_current_max"; static const char __pyx_k_inout_current_min[] = "inout_current_min"; static const char __pyx_k_is_item_activated[] = "is_item_activated"; static const char __pyx_k_is_mouse_dragging[] = "is_mouse_dragging"; static const char __pyx_k_is_mouse_released[] = "is_mouse_released"; static const char __pyx_k_is_window_focused[] = "is_window_focused"; static const char __pyx_k_is_window_hovered[] = "is_window_hovered"; static const char __pyx_k_mouse_cursor_type[] = "mouse_cursor_type"; static const char __pyx_k_outer_size_height[] = "outer_size_height"; static const char __pyx_k_pop_text_wrap_pos[] = "pop_text_wrap_pos"; static const char __pyx_k_pyx_unpickle_Enum[] = "__pyx_unpickle_Enum"; static const char __pyx_k_set_column_offset[] = "set_column_offset"; static const char __pyx_k_set_scroll_here_x[] = "set_scroll_here_x"; static const char __pyx_k_set_scroll_here_y[] = "set_scroll_here_y"; static const char __pyx_k_shared_font_atlas[] = "shared_font_atlas"; static const char __pyx_k_show_about_window[] = "show_about_window"; static const char __pyx_k_show_style_editor[] = "show_style_editor"; static const char __pyx_k_style_colors_dark[] = "style_colors_dark"; static const char __pyx_k_table_headers_row[] = "table_headers_row"; static const char __pyx_k_table_next_column[] = "table_next_column"; static const char __pyx_k_text_input_buffer[] = "text_input_buffer"; static const char __pyx_k_value_degrees_max[] = "value_degrees_max"; static const char __pyx_k_value_degrees_min[] = "value_degrees_min"; static const char __pyx_k_BeginEndPopupModal[] = "_BeginEndPopupModal"; static const char __pyx_k_COMBO_HEIGHT_LARGE[] = "COMBO_HEIGHT_LARGE"; static const char __pyx_k_COMBO_HEIGHT_SMALL[] = "COMBO_HEIGHT_SMALL"; static const char __pyx_k_DRAW_CORNER_BOTTOM[] = "DRAW_CORNER_BOTTOM"; static const char __pyx_k_HOVERED_ANY_WINDOW[] = "HOVERED_ANY_WINDOW"; static const char __pyx_k_MOUSE_BUTTON_RIGHT[] = "MOUSE_BUTTON_RIGHT"; static const char __pyx_k_MOUSE_CURSOR_ARROW[] = "MOUSE_CURSOR_ARROW"; static const char __pyx_k_NAV_INPUT_ACTIVATE[] = "NAV_INPUT_ACTIVATE"; static const char __pyx_k_POPUP_ANY_POPUP_ID[] = "POPUP_ANY_POPUP_ID"; static const char __pyx_k_STYLE_CELL_PADDING[] = "STYLE_CELL_PADDING"; static const char __pyx_k_STYLE_ITEM_SPACING[] = "STYLE_ITEM_SPACING"; static const char __pyx_k_STYLE_TAB_ROUNDING[] = "STYLE_TAB_ROUNDING"; static const char __pyx_k_TAB_BAR_NO_TOOLTIP[] = "TAB_BAR_NO_TOOLTIP"; static const char __pyx_k_TREE_NODE_SELECTED[] = "TREE_NODE_SELECTED"; static const char __pyx_k_WINDOW_NO_COLLAPSE[] = "WINDOW_NO_COLLAPSE"; static const char __pyx_k_ansifeed_text_ansi[] = "_ansifeed_text_ansi"; static const char __pyx_k_callback_user_info[] = "_callback_user_info"; static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; static const char __pyx_k_font_builder_flags[] = "font_builder_flags"; static const char __pyx_k_get_clipboard_text[] = "get_clipboard_text"; static const char __pyx_k_get_item_rect_size[] = "get_item_rect_size"; static const char __pyx_k_get_mouse_position[] = "get_mouse_position"; static const char __pyx_k_is_any_item_active[] = "is_any_item_active"; static const char __pyx_k_push_text_wrap_pos[] = "push_text_wrap_pos"; static const char __pyx_k_set_clipboard_text[] = "set_clipboard_text"; static const char __pyx_k_set_next_item_open[] = "set_next_item_open"; static const char __pyx_k_show_font_selector[] = "show_font_selector"; static const char __pyx_k_strided_and_direct[] = ""; static const char __pyx_k_style_colors_light[] = "style_colors_light"; static const char __pyx_k_table_setup_column[] = "table_setup_column"; static const char __pyx_k_BACKEND_HAS_GAMEPAD[] = "BACKEND_HAS_GAMEPAD"; static const char __pyx_k_BeginEndMainMenuBar[] = "_BeginEndMainMenuBar"; static const char __pyx_k_COLOR_BORDER_SHADOW[] = "COLOR_BORDER_SHADOW"; static const char __pyx_k_COLOR_BUTTON_ACTIVE[] = "COLOR_BUTTON_ACTIVE"; static const char __pyx_k_COLOR_EDIT_NO_ALPHA[] = "COLOR_EDIT_NO_ALPHA"; static const char __pyx_k_COLOR_EDIT_NO_LABEL[] = "COLOR_EDIT_NO_LABEL"; static const char __pyx_k_COLOR_HEADER_ACTIVE[] = "COLOR_HEADER_ACTIVE"; static const char __pyx_k_COLOR_NAV_HIGHLIGHT[] = "COLOR_NAV_HIGHLIGHT"; static const char __pyx_k_COLOR_TAB_UNFOCUSED[] = "COLOR_TAB_UNFOCUSED"; static const char __pyx_k_COLOR_TEXT_DISABLED[] = "COLOR_TEXT_DISABLED"; static const char __pyx_k_FOCUS_CHILD_WINDOWS[] = "FOCUS_CHILD_WINDOWS"; static const char __pyx_k_HOVERED_ROOT_WINDOW[] = "HOVERED_ROOT_WINDOW"; static const char __pyx_k_INPUT_TEXT_PASSWORD[] = "INPUT_TEXT_PASSWORD"; static const char __pyx_k_ImGuiTableSortSpecs[] = "_ImGuiTableSortSpecs"; static const char __pyx_k_MOUSE_BUTTON_MIDDLE[] = "MOUSE_BUTTON_MIDDLE"; static const char __pyx_k_NAV_INPUT_DPAD_DOWN[] = "NAV_INPUT_DPAD_DOWN"; static const char __pyx_k_NAV_INPUT_DPAD_LEFT[] = "NAV_INPUT_DPAD_LEFT"; static const char __pyx_k_SELECTABLE_DISABLED[] = "SELECTABLE_DISABLED"; static const char __pyx_k_SORT_DIRECTION_NONE[] = "SORT_DIRECTION_NONE"; static const char __pyx_k_STYLE_FRAME_PADDING[] = "STYLE_FRAME_PADDING"; static const char __pyx_k_STYLE_GRAB_MIN_SIZE[] = "STYLE_GRAB_MIN_SIZE"; static const char __pyx_k_STYLE_GRAB_ROUNDING[] = "STYLE_GRAB_ROUNDING"; static const char __pyx_k_TABLE_BORDERS_INNER[] = "TABLE_BORDERS_INNER"; static const char __pyx_k_TABLE_BORDERS_OUTER[] = "TABLE_BORDERS_OUTER"; static const char __pyx_k_TABLE_SORT_TRISTATE[] = "TABLE_SORT_TRISTATE"; static const char __pyx_k_TAB_BAR_REORDERABLE[] = "TAB_BAR_REORDERABLE"; static const char __pyx_k_TAB_ITEM_NO_PUSH_ID[] = "TAB_ITEM_NO_PUSH_ID"; static const char __pyx_k_TAB_ITEM_NO_REORDER[] = "TAB_ITEM_NO_REORDER"; static const char __pyx_k_TAB_ITEM_NO_TOOLTIP[] = "TAB_ITEM_NO_TOOLTIP"; static const char __pyx_k_VIEWPORT_FLAGS_NONE[] = "VIEWPORT_FLAGS_NONE"; static const char __pyx_k_WINDOW_NO_NAV_FOCUS[] = "WINDOW_NO_NAV_FOCUS"; static const char __pyx_k_WINDOW_NO_SCROLLBAR[] = "WINDOW_NO_SCROLLBAR"; static const char __pyx_k_WINDOW_NO_TITLE_BAR[] = "WINDOW_NO_TITLE_BAR"; static const char __pyx_k_begin_main_menu_bar[] = "begin_main_menu_bar"; static const char __pyx_k_close_current_popup[] = "close_current_popup"; static const char __pyx_k_get_current_context[] = "get_current_context"; static const char __pyx_k_get_cursor_position[] = "get_cursor_position"; static const char __pyx_k_get_window_position[] = "get_window_position"; static const char __pyx_k_glyph_max_advance_x[] = "glyph_max_advance_x"; static const char __pyx_k_glyph_min_advance_x[] = "glyph_min_advance_x"; static const char __pyx_k_is_any_item_focused[] = "is_any_item_focused"; static const char __pyx_k_is_any_item_hovered[] = "is_any_item_hovered"; static const char __pyx_k_is_item_deactivated[] = "is_item_deactivated"; static const char __pyx_k_is_window_appearing[] = "is_window_appearing"; static const char __pyx_k_is_window_collapsed[] = "is_window_collapsed"; static const char __pyx_k_rasterizer_multiply[] = "rasterizer_multiply"; static const char __pyx_k_set_current_context[] = "set_current_context"; static const char __pyx_k_set_cursor_position[] = "set_cursor_position"; static const char __pyx_k_set_tab_item_closed[] = "set_tab_item_closed"; static const char __pyx_k_set_window_position[] = "set_window_position"; static const char __pyx_k_show_metrics_window[] = "show_metrics_window"; static const char __pyx_k_show_style_selector[] = "show_style_selector"; static const char __pyx_k_table_get_row_index[] = "table_get_row_index"; static const char __pyx_k_COLOR_BUTTON_HOVERED[] = "COLOR_BUTTON_HOVERED"; static const char __pyx_k_COLOR_EDIT_ALPHA_BAR[] = "COLOR_EDIT_ALPHA_BAR"; static const char __pyx_k_COLOR_EDIT_INPUT_HSV[] = "COLOR_EDIT_INPUT_HSV"; static const char __pyx_k_COLOR_EDIT_INPUT_RGB[] = "COLOR_EDIT_INPUT_RGB"; static const char __pyx_k_COLOR_EDIT_NO_BORDER[] = "COLOR_EDIT_NO_BORDER"; static const char __pyx_k_COLOR_EDIT_NO_INPUTS[] = "COLOR_EDIT_NO_INPUTS"; static const char __pyx_k_COLOR_EDIT_NO_PICKER[] = "COLOR_EDIT_NO_PICKER"; static const char __pyx_k_COLOR_HEADER_HOVERED[] = "COLOR_HEADER_HOVERED"; static const char __pyx_k_COLOR_PLOT_HISTOGRAM[] = "COLOR_PLOT_HISTOGRAM"; static const char __pyx_k_COLOR_SCROLLBAR_GRAB[] = "COLOR_SCROLLBAR_GRAB"; static const char __pyx_k_COMBO_HEIGHT_LARGEST[] = "COMBO_HEIGHT_LARGEST"; static const char __pyx_k_COMBO_HEIGHT_REGULAR[] = "COMBO_HEIGHT_REGULAR"; static const char __pyx_k_DRAW_CORNER_TOP_LEFT[] = "DRAW_CORNER_TOP_LEFT"; static const char __pyx_k_INPUT_TEXT_READ_ONLY[] = "INPUT_TEXT_READ_ONLY"; static const char __pyx_k_NAV_INPUT_DPAD_RIGHT[] = "NAV_INPUT_DPAD_RIGHT"; static const char __pyx_k_NAV_INPUT_FOCUS_NEXT[] = "NAV_INPUT_FOCUS_NEXT"; static const char __pyx_k_NAV_INPUT_FOCUS_PREV[] = "NAV_INPUT_FOCUS_PREV"; static const char __pyx_k_NAV_INPUT_L_STICK_UP[] = "NAV_INPUT_L_STICK_UP"; static const char __pyx_k_NAV_INPUT_TWEAK_FAST[] = "NAV_INPUT_TWEAK_FAST"; static const char __pyx_k_NAV_INPUT_TWEAK_SLOW[] = "NAV_INPUT_TWEAK_SLOW"; static const char __pyx_k_STYLE_CHILD_ROUNDING[] = "STYLE_CHILD_ROUNDING"; static const char __pyx_k_STYLE_FRAME_ROUNDING[] = "STYLE_FRAME_ROUNDING"; static const char __pyx_k_STYLE_INDENT_SPACING[] = "STYLE_INDENT_SPACING"; static const char __pyx_k_STYLE_POPUP_ROUNDING[] = "STYLE_POPUP_ROUNDING"; static const char __pyx_k_STYLE_SCROLLBAR_SIZE[] = "STYLE_SCROLLBAR_SIZE"; static const char __pyx_k_STYLE_WINDOW_PADDING[] = "STYLE_WINDOW_PADDING"; static const char __pyx_k_TABLE_COLUMN_NO_CLIP[] = "TABLE_COLUMN_NO_CLIP"; static const char __pyx_k_TABLE_COLUMN_NO_HIDE[] = "TABLE_COLUMN_NO_HIDE"; static const char __pyx_k_TABLE_COLUMN_NO_SORT[] = "TABLE_COLUMN_NO_SORT"; static const char __pyx_k_TABLE_NO_PAD_INNER_X[] = "TABLE_NO_PAD_INNER_X"; static const char __pyx_k_TABLE_NO_PAD_OUTER_X[] = "TABLE_NO_PAD_OUTER_X"; static const char __pyx_k_TABLE_PRECISE_WIDTHS[] = "TABLE_PRECISE_WIDTHS"; static const char __pyx_k_TABLE_ROW_BACKGROUND[] = "TABLE_ROW_BACKGROUND"; static const char __pyx_k_WINDOW_NO_BACKGROUND[] = "WINDOW_NO_BACKGROUND"; static const char __pyx_k_WINDOW_NO_DECORATION[] = "WINDOW_NO_DECORATION"; static const char __pyx_k_WINDOW_NO_NAV_INPUTS[] = "WINDOW_NO_NAV_INPUTS"; static const char __pyx_k_end_drag_drop_source[] = "end_drag_drop_source"; static const char __pyx_k_end_drag_drop_target[] = "end_drag_drop_target"; static const char __pyx_k_get_cursor_start_pos[] = "get_cursor_start_pos"; static const char __pyx_k_get_mouse_drag_delta[] = "get_mouse_drag_delta"; static const char __pyx_k_get_style_color_name[] = "get_style_color_name"; static const char __pyx_k_get_text_line_height[] = "get_text_line_height"; static const char __pyx_k_get_window_draw_list[] = "get_window_draw_list"; static const char __pyx_k_init_width_or_weight[] = "init_width_or_weight"; static const char __pyx_k_input_text_multiline[] = "input_text_multiline"; static const char __pyx_k_input_text_with_hint[] = "input_text_with_hint"; static const char __pyx_k_is_item_toggled_open[] = "is_item_toggled_open"; static const char __pyx_k_set_next_window_size[] = "set_next_window_size"; static const char __pyx_k_set_window_collapsed[] = "set_window_collapsed"; static const char __pyx_k_strided_and_indirect[] = ""; static const char __pyx_k_style_colors_classic[] = "style_colors_classic"; static const char __pyx_k_table_get_sort_specs[] = "table_get_sort_specs"; static const char __pyx_k_variables_and_values[] = "variables_and_values"; static const char __pyx_k_COLOR_EDIT_NO_OPTIONS[] = "COLOR_EDIT_NO_OPTIONS"; static const char __pyx_k_COLOR_EDIT_NO_TOOLTIP[] = "COLOR_EDIT_NO_TOOLTIP"; static const char __pyx_k_COMBO_NO_ARROW_BUTTON[] = "COMBO_NO_ARROW_BUTTON"; static const char __pyx_k_DRAW_CORNER_TOP_RIGHT[] = "DRAW_CORNER_TOP_RIGHT"; static const char __pyx_k_HOVERED_CHILD_WINDOWS[] = "HOVERED_CHILD_WINDOWS"; static const char __pyx_k_ImGuiSizeCallbackData[] = "_ImGuiSizeCallbackData"; static const char __pyx_k_InputTextSharedBuffer[] = "_InputTextSharedBuffer"; static const char __pyx_k_POPUP_ANY_POPUP_LEVEL[] = "POPUP_ANY_POPUP_LEVEL"; static const char __pyx_k_SLIDER_FLAGS_NO_INPUT[] = "SLIDER_FLAGS_NO_INPUT"; static const char __pyx_k_STYLE_WINDOW_MIN_SIZE[] = "STYLE_WINDOW_MIN_SIZE"; static const char __pyx_k_STYLE_WINDOW_ROUNDING[] = "STYLE_WINDOW_ROUNDING"; static const char __pyx_k_TAB_ITEM_SET_SELECTED[] = "TAB_ITEM_SET_SELECTED"; static const char __pyx_k_contiguous_and_direct[] = ""; static const char __pyx_k_get_clipboard_text_fn[] = "_get_clipboard_text_fn"; static const char __pyx_k_get_cursor_screen_pos[] = "get_cursor_screen_pos"; static const char __pyx_k_get_drag_drop_payload[] = "get_drag_drop_payload"; static const char __pyx_k_get_overlay_draw_list[] = "get_overlay_draw_list"; static const char __pyx_k_glyph_extra_spacing_x[] = "glyph_extra_spacing_x"; static const char __pyx_k_glyph_extra_spacing_y[] = "glyph_extra_spacing_y"; static const char __pyx_k_set_clipboard_text_fn[] = "_set_clipboard_text_fn"; static const char __pyx_k_set_cursor_screen_pos[] = "set_cursor_screen_pos"; static const char __pyx_k_set_drag_drop_payload[] = "set_drag_drop_payload"; static const char __pyx_k_set_next_window_focus[] = "set_next_window_focus"; static const char __pyx_k_set_scroll_from_pos_x[] = "set_scroll_from_pos_x"; static const char __pyx_k_set_scroll_from_pos_y[] = "set_scroll_from_pos_y"; static const char __pyx_k_set_window_font_scale[] = "set_window_font_scale"; static const char __pyx_k_set_window_size_named[] = "set_window_size_named"; static const char __pyx_k_table_get_column_name[] = "table_get_column_name"; static const char __pyx_k_BeginEndDragDropSource[] = "_BeginEndDragDropSource"; static const char __pyx_k_BeginEndDragDropTarget[] = "_BeginEndDragDropTarget"; static const char __pyx_k_COLOR_CHILD_BACKGROUND[] = "COLOR_CHILD_BACKGROUND"; static const char __pyx_k_COLOR_DRAG_DROP_TARGET[] = "COLOR_DRAG_DROP_TARGET"; static const char __pyx_k_COLOR_EDIT_DISPLAY_HEX[] = "COLOR_EDIT_DISPLAY_HEX"; static const char __pyx_k_COLOR_EDIT_DISPLAY_HSV[] = "COLOR_EDIT_DISPLAY_HSV"; static const char __pyx_k_COLOR_EDIT_DISPLAY_RGB[] = "COLOR_EDIT_DISPLAY_RGB"; static const char __pyx_k_COLOR_FRAME_BACKGROUND[] = "COLOR_FRAME_BACKGROUND"; static const char __pyx_k_COLOR_POPUP_BACKGROUND[] = "COLOR_POPUP_BACKGROUND"; static const char __pyx_k_COLOR_SEPARATOR_ACTIVE[] = "COLOR_SEPARATOR_ACTIVE"; static const char __pyx_k_COLOR_TITLE_BACKGROUND[] = "COLOR_TITLE_BACKGROUND"; static const char __pyx_k_COMBO_POPUP_ALIGN_LEFT[] = "COMBO_POPUP_ALIGN_LEFT"; static const char __pyx_k_CONFIG_IS_TOUCH_SCREEN[] = "CONFIG_IS_TOUCH_SCREEN"; static const char __pyx_k_DRAW_ROUND_CORNERS_ALL[] = "DRAW_ROUND_CORNERS_ALL"; static const char __pyx_k_DRAW_ROUND_CORNERS_TOP[] = "DRAW_ROUND_CORNERS_TOP"; static const char __pyx_k_MOUSE_CURSOR_RESIZE_EW[] = "MOUSE_CURSOR_RESIZE_EW"; static const char __pyx_k_MOUSE_CURSOR_RESIZE_NS[] = "MOUSE_CURSOR_RESIZE_NS"; static const char __pyx_k_MemoryView_of_r_object[] = ""; static const char __pyx_k_NAV_INPUT_L_STICK_DOWN[] = "NAV_INPUT_L_STICK_DOWN"; static const char __pyx_k_NAV_INPUT_L_STICK_LEFT[] = "NAV_INPUT_L_STICK_LEFT"; static const char __pyx_k_STYLE_CHILD_BORDERSIZE[] = "STYLE_CHILD_BORDERSIZE"; static const char __pyx_k_STYLE_FRAME_BORDERSIZE[] = "STYLE_FRAME_BORDERSIZE"; static const char __pyx_k_STYLE_POPUP_BORDERSIZE[] = "STYLE_POPUP_BORDERSIZE"; static const char __pyx_k_TABLE_BORDERS_VERTICAL[] = "TABLE_BORDERS_VERTICAL"; static const char __pyx_k_TABLE_COLUMN_IS_SORTED[] = "TABLE_COLUMN_IS_SORTED"; static const char __pyx_k_TABLE_COLUMN_NO_RESIZE[] = "TABLE_COLUMN_NO_RESIZE"; static const char __pyx_k_TABLE_NO_HOST_EXTEND_X[] = "TABLE_NO_HOST_EXTEND_X"; static const char __pyx_k_TABLE_NO_HOST_EXTEND_Y[] = "TABLE_NO_HOST_EXTEND_Y"; static const char __pyx_k_TABLE_SIZING_FIXED_FIT[] = "TABLE_SIZING_FIXED_FIT"; static const char __pyx_k_TREE_NODE_DEFAULT_OPEN[] = "TREE_NODE_DEFAULT_OPEN"; static const char __pyx_k_Unknown_style_variable[] = "Unknown style variable: {}"; static const char __pyx_k_WINDOW_NO_MOUSE_INPUTS[] = "WINDOW_NO_MOUSE_INPUTS"; static const char __pyx_k_begin_drag_drop_source[] = "begin_drag_drop_source"; static const char __pyx_k_begin_drag_drop_target[] = "begin_drag_drop_target"; static const char __pyx_k_capture_mouse_from_app[] = "capture_mouse_from_app"; static const char __pyx_k_get_content_region_max[] = "get_content_region_max"; static const char __pyx_k_is_mouse_hovering_rect[] = "is_mouse_hovering_rect"; static const char __pyx_k_pop_text_wrap_position[] = "pop_text_wrap_position"; static const char __pyx_k_reset_mouse_drag_delta[] = "reset_mouse_drag_delta"; static const char __pyx_k_set_item_allow_overlap[] = "set_item_allow_overlap"; static const char __pyx_k_set_item_default_focus[] = "set_item_default_focus"; static const char __pyx_k_table_get_column_count[] = "table_get_column_count"; static const char __pyx_k_table_get_column_flags[] = "table_get_column_flags"; static const char __pyx_k_table_get_column_index[] = "table_get_column_index"; static const char __pyx_k_table_set_column_index[] = "table_set_column_index"; static const char __pyx_k_text_input_buffer_size[] = "text_input_buffer_size"; static const char __pyx_k_COLOR_EDIT_NO_DRAG_DROP[] = "COLOR_EDIT_NO_DRAG_DROP"; static const char __pyx_k_COLOR_SEPARATOR_HOVERED[] = "COLOR_SEPARATOR_HOVERED"; static const char __pyx_k_COLOR_WINDOW_BACKGROUND[] = "COLOR_WINDOW_BACKGROUND"; static const char __pyx_k_DRAG_DROP_SOURCE_EXTERN[] = "DRAG_DROP_SOURCE_EXTERN"; static const char __pyx_k_DRAW_CORNER_BOTTOM_LEFT[] = "DRAW_CORNER_BOTTOM_LEFT"; static const char __pyx_k_DRAW_ROUND_CORNERS_LEFT[] = "DRAW_ROUND_CORNERS_LEFT"; static const char __pyx_k_DRAW_ROUND_CORNERS_NONE[] = "DRAW_ROUND_CORNERS_NONE"; static const char __pyx_k_INPUT_TEXT_NO_UNDO_REDO[] = "INPUT_TEXT_NO_UNDO_REDO"; static const char __pyx_k_MOUSE_CURSOR_RESIZE_ALL[] = "MOUSE_CURSOR_RESIZE_ALL"; static const char __pyx_k_MOUSE_CURSOR_TEXT_INPUT[] = "MOUSE_CURSOR_TEXT_INPUT"; static const char __pyx_k_MemoryView_of_r_at_0x_x[] = ""; static const char __pyx_k_NAV_INPUT_L_STICK_RIGHT[] = "NAV_INPUT_L_STICK_RIGHT"; static const char __pyx_k_POPUP_MOUSE_BUTTON_LEFT[] = "POPUP_MOUSE_BUTTON_LEFT"; static const char __pyx_k_POPUP_MOUSE_BUTTON_MASK[] = "POPUP_MOUSE_BUTTON_MASK"; static const char __pyx_k_STYLE_BUTTON_TEXT_ALIGN[] = "STYLE_BUTTON_TEXT_ALIGN"; static const char __pyx_k_STYLE_WINDOW_BORDERSIZE[] = "STYLE_WINDOW_BORDERSIZE"; static const char __pyx_k_TABLE_COLUMN_IS_ENABLED[] = "TABLE_COLUMN_IS_ENABLED"; static const char __pyx_k_TABLE_COLUMN_IS_HOVERED[] = "TABLE_COLUMN_IS_HOVERED"; static const char __pyx_k_TABLE_COLUMN_IS_VISIBLE[] = "TABLE_COLUMN_IS_VISIBLE"; static const char __pyx_k_TABLE_COLUMN_NO_REORDER[] = "TABLE_COLUMN_NO_REORDER"; static const char __pyx_k_TABLE_NO_SAVED_SETTINGS[] = "TABLE_NO_SAVED_SETTINGS"; static const char __pyx_k_TABLE_SIZING_FIXED_SAME[] = "TABLE_SIZING_FIXED_SAME"; static const char __pyx_k_TREE_NODE_FRAME_PADDING[] = "TREE_NODE_FRAME_PADDING"; static const char __pyx_k_TREE_NODE_OPEN_ON_ARROW[] = "TREE_NODE_OPEN_ON_ARROW"; static const char __pyx_k_WINDOW_UNSAVED_DOCUMENT[] = "WINDOW_UNSAVED_DOCUMENT"; static const char __pyx_k_contiguous_and_indirect[] = ""; static const char __pyx_k_is_mouse_double_clicked[] = "is_mouse_double_clicked"; static const char __pyx_k_push_text_wrap_position[] = "push_text_wrap_position"; static const char __pyx_k_set_keyboard_focus_here[] = "set_keyboard_focus_here"; static const char __pyx_k_BUTTON_MOUSE_BUTTON_LEFT[] = "BUTTON_MOUSE_BUTTON_LEFT"; static const char __pyx_k_COLOR_EDIT_ALPHA_PREVIEW[] = "COLOR_EDIT_ALPHA_PREVIEW"; static const char __pyx_k_COLOR_MENUBAR_BACKGROUND[] = "COLOR_MENUBAR_BACKGROUND"; static const char __pyx_k_COLOR_PLOT_LINES_HOVERED[] = "COLOR_PLOT_LINES_HOVERED"; static const char __pyx_k_COLOR_RESIZE_GRIP_ACTIVE[] = "COLOR_RESIZE_GRIP_ACTIVE"; static const char __pyx_k_COLOR_SLIDER_GRAB_ACTIVE[] = "COLOR_SLIDER_GRAB_ACTIVE"; static const char __pyx_k_COLOR_TABLE_BORDER_LIGHT[] = "COLOR_TABLE_BORDER_LIGHT"; static const char __pyx_k_Cannot_index_with_type_s[] = "Cannot index with type '%s'"; static const char __pyx_k_DRAW_CORNER_BOTTOM_RIGHT[] = "DRAW_CORNER_BOTTOM_RIGHT"; static const char __pyx_k_DRAW_ROUND_CORNERS_RIGHT[] = "DRAW_ROUND_CORNERS_RIGHT"; static const char __pyx_k_INPUT_TEXT_CALLBACK_EDIT[] = "INPUT_TEXT_CALLBACK_EDIT"; static const char __pyx_k_INPUT_TEXT_CHARS_DECIMAL[] = "INPUT_TEXT_CHARS_DECIMAL"; static const char __pyx_k_MOUSE_CURSOR_NOT_ALLOWED[] = "MOUSE_CURSOR_NOT_ALLOWED"; static const char __pyx_k_MOUSE_CURSOR_RESIZE_NESW[] = "MOUSE_CURSOR_RESIZE_NESW"; static const char __pyx_k_MOUSE_CURSOR_RESIZE_NWSE[] = "MOUSE_CURSOR_RESIZE_NWSE"; static const char __pyx_k_POPUP_MOUSE_BUTTON_RIGHT[] = "POPUP_MOUSE_BUTTON_RIGHT"; static const char __pyx_k_POPUP_NO_OPEN_OVER_ITEMS[] = "POPUP_NO_OPEN_OVER_ITEMS"; static const char __pyx_k_SLIDER_FLAGS_LOGARITHMIC[] = "SLIDER_FLAGS_LOGARITHMIC"; static const char __pyx_k_SORT_DIRECTION_ASCENDING[] = "SORT_DIRECTION_ASCENDING"; static const char __pyx_k_STYLE_ITEM_INNER_SPACING[] = "STYLE_ITEM_INNER_SPACING"; static const char __pyx_k_STYLE_SCROLLBAR_ROUNDING[] = "STYLE_SCROLLBAR_ROUNDING"; static const char __pyx_k_STYLE_WINDOW_TITLE_ALIGN[] = "STYLE_WINDOW_TITLE_ALIGN"; static const char __pyx_k_TABLE_BORDERS_HORIZONTAL[] = "TABLE_BORDERS_HORIZONTAL"; static const char __pyx_k_TABLE_COLUMN_WIDTH_FIXED[] = "TABLE_COLUMN_WIDTH_FIXED"; static const char __pyx_k_TABLE_NO_BORDERS_IN_BODY[] = "TABLE_NO_BORDERS_IN_BODY"; static const char __pyx_k_WINDOW_NO_SAVED_SETTINGS[] = "WINDOW_NO_SAVED_SETTINGS"; static const char __pyx_k_accept_drag_drop_payload[] = "accept_drag_drop_payload"; static const char __pyx_k_begin_popup_context_item[] = "begin_popup_context_item"; static const char __pyx_k_begin_popup_context_void[] = "begin_popup_context_void"; static const char __pyx_k_color_convert_hsv_to_rgb[] = "color_convert_hsv_to_rgb"; static const char __pyx_k_color_convert_rgb_to_hsv[] = "color_convert_rgb_to_hsv"; static const char __pyx_k_func_is_not_a_callable_s[] = "func is not a callable: %s"; static const char __pyx_k_get_background_draw_list[] = "get_background_draw_list"; static const char __pyx_k_get_foreground_draw_list[] = "get_foreground_draw_list"; static const char __pyx_k_open_popup_on_item_click[] = "open_popup_on_item_click"; static const char __pyx_k_s_improperly_initialized[] = "%s improperly initialized"; static const char __pyx_k_set_next_window_bg_alpha[] = "set_next_window_bg_alpha"; static const char __pyx_k_set_next_window_position[] = "set_next_window_position"; static const char __pyx_k_set_window_focus_labeled[] = "set_window_focus_labeled"; static const char __pyx_k_want_capture_mouse_value[] = "want_capture_mouse_value"; static const char __pyx_k_BACKEND_HAS_MOUSE_CURSORS[] = "BACKEND_HAS_MOUSE_CURSORS"; static const char __pyx_k_BACKEND_HAS_SET_MOUSE_POS[] = "BACKEND_HAS_SET_MOUSE_POS"; static const char __pyx_k_BUTTON_MOUSE_BUTTON_RIGHT[] = "BUTTON_MOUSE_BUTTON_RIGHT"; static const char __pyx_k_COLOR_EDIT_PICKER_HUE_BAR[] = "COLOR_EDIT_PICKER_HUE_BAR"; static const char __pyx_k_COLOR_RESIZE_GRIP_HOVERED[] = "COLOR_RESIZE_GRIP_HOVERED"; static const char __pyx_k_COLOR_TABLE_BORDER_STRONG[] = "COLOR_TABLE_BORDER_STRONG"; static const char __pyx_k_CONFIG_NAV_ENABLE_GAMEPAD[] = "CONFIG_NAV_ENABLE_GAMEPAD"; static const char __pyx_k_DRAW_ROUND_CORNERS_BOTTOM[] = "DRAW_ROUND_CORNERS_BOTTOM"; static const char __pyx_k_FONT_ATLAS_NO_BAKED_LINES[] = "FONT_ATLAS_NO_BAKED_LINES"; static const char __pyx_k_INPUT_TEXT_CHARS_NO_BLANK[] = "INPUT_TEXT_CHARS_NO_BLANK"; static const char __pyx_k_ImGuiTableColumnSortSpecs[] = "_ImGuiTableColumnSortSpecs"; static const char __pyx_k_Invalid_shape_in_axis_d_d[] = "Invalid shape in axis %d: %d."; static const char __pyx_k_POPUP_MOUSE_BUTTON_MIDDLE[] = "POPUP_MOUSE_BUTTON_MIDDLE"; static const char __pyx_k_SLIDER_FLAGS_ALWAYS_CLAMP[] = "SLIDER_FLAGS_ALWAYS_CLAMP"; static const char __pyx_k_SORT_DIRECTION_DESCENDING[] = "SORT_DIRECTION_DESCENDING"; static const char __pyx_k_TABLE_COLUMN_DEFAULT_HIDE[] = "TABLE_COLUMN_DEFAULT_HIDE"; static const char __pyx_k_TABLE_COLUMN_DEFAULT_SORT[] = "TABLE_COLUMN_DEFAULT_SORT"; static const char __pyx_k_TABLE_SIZING_STRETCH_PROP[] = "TABLE_SIZING_STRETCH_PROP"; static const char __pyx_k_TABLE_SIZING_STRETCH_SAME[] = "TABLE_SIZING_STRETCH_SAME"; static const char __pyx_k_TAB_ITEM_UNSAVED_DOCUMENT[] = "TAB_ITEM_UNSAVED_DOCUMENT"; static const char __pyx_k_TREE_NODE_SPAN_FULL_WIDTH[] = "TREE_NODE_SPAN_FULL_WIDTH"; static const char __pyx_k_WINDOW_ALWAYS_AUTO_RESIZE[] = "WINDOW_ALWAYS_AUTO_RESIZE"; static const char __pyx_k_get_cursor_start_position[] = "get_cursor_start_position"; static const char __pyx_k_glyph_ranges_invalid_type[] = "glyph_ranges: invalid type"; static const char __pyx_k_save_ini_settings_to_disk[] = "save_ini_settings_to_disk"; static const char __pyx_k_set_next_window_collapsed[] = "set_next_window_collapsed"; static const char __pyx_k_table_setup_scroll_freeze[] = "table_setup_scroll_freeze"; static const char __pyx_k_BUTTON_MOUSE_BUTTON_MIDDLE[] = "BUTTON_MOUSE_BUTTON_MIDDLE"; static const char __pyx_k_COLOR_EDIT_DEFAULT_OPTIONS[] = "COLOR_EDIT_DEFAULT_OPTIONS"; static const char __pyx_k_COLOR_EDIT_NO_SIDE_PREVIEW[] = "COLOR_EDIT_NO_SIDE_PREVIEW"; static const char __pyx_k_COLOR_SCROLLBAR_BACKGROUND[] = "COLOR_SCROLLBAR_BACKGROUND"; static const char __pyx_k_COLOR_TABLE_ROW_BACKGROUND[] = "COLOR_TABLE_ROW_BACKGROUND"; static const char __pyx_k_COLOR_TAB_UNFOCUSED_ACTIVE[] = "COLOR_TAB_UNFOCUSED_ACTIVE"; static const char __pyx_k_CONFIG_NAV_ENABLE_KEYBOARD[] = "CONFIG_NAV_ENABLE_KEYBOARD"; static const char __pyx_k_DRAG_DROP_ACCEPT_PEEK_ONLY[] = "DRAG_DROP_ACCEPT_PEEK_ONLY"; static const char __pyx_k_DRAW_LIST_ALLOW_VTX_OFFSET[] = "DRAW_LIST_ALLOW_VTX_OFFSET"; static const char __pyx_k_Direction_wasn_t_specified[] = "Direction wasn't specified."; static const char __pyx_k_FONT_ATLAS_NO_MOUSE_CURSOR[] = "FONT_ATLAS_NO_MOUSE_CURSOR"; static const char __pyx_k_INPUT_TEXT_ALLOW_TAB_INPUT[] = "INPUT_TEXT_ALLOW_TAB_INPUT"; static const char __pyx_k_INPUT_TEXT_AUTO_SELECT_ALL[] = "INPUT_TEXT_AUTO_SELECT_ALL"; static const char __pyx_k_INPUT_TEXT_CALLBACK_ALWAYS[] = "INPUT_TEXT_CALLBACK_ALWAYS"; static const char __pyx_k_INPUT_TEXT_CALLBACK_RESIZE[] = "INPUT_TEXT_CALLBACK_RESIZE"; static const char __pyx_k_INPUT_TEXT_CHARS_UPPERCASE[] = "INPUT_TEXT_CHARS_UPPERCASE"; static const char __pyx_k_ImGuiInputTextCallbackData[] = "_ImGuiInputTextCallbackData"; static const char __pyx_k_POPUP_MOUSE_BUTTON_DEFAULT[] = "POPUP_MOUSE_BUTTON_DEFAULT"; static const char __pyx_k_TABLE_COLUMN_INDENT_ENABLE[] = "TABLE_COLUMN_INDENT_ENABLE"; static const char __pyx_k_TABLE_COLUMN_WIDTH_STRETCH[] = "TABLE_COLUMN_WIDTH_STRETCH"; static const char __pyx_k_TABLE_CONTEXT_MENU_IN_BODY[] = "TABLE_CONTEXT_MENU_IN_BODY"; static const char __pyx_k_ansifeed_text_ansi_colored[] = "_ansifeed_text_ansi_colored"; static const char __pyx_k_begin_popup_context_window[] = "begin_popup_context_window"; static const char __pyx_k_get_cursor_screen_position[] = "get_cursor_screen_position"; static const char __pyx_k_py_index_buffer_index_size[] = "_py_index_buffer_index_size"; static const char __pyx_k_set_cursor_screen_position[] = "set_cursor_screen_position"; static const char __pyx_k_tab_or_docked_window_label[] = "tab_or_docked_window_label"; static const char __pyx_k_table_set_background_color[] = "table_set_background_color"; static const char __pyx_k_COLOR_EDIT_NO_SMALL_PREVIEW[] = "COLOR_EDIT_NO_SMALL_PREVIEW"; static const char __pyx_k_COLOR_EDIT_PICKER_HUE_WHEEL[] = "COLOR_EDIT_PICKER_HUE_WHEEL"; static const char __pyx_k_COLOR_SCROLLBAR_GRAB_ACTIVE[] = "COLOR_SCROLLBAR_GRAB_ACTIVE"; static const char __pyx_k_DRAW_LIST_ANTI_ALIASED_FILL[] = "DRAW_LIST_ANTI_ALIASED_FILL"; static const char __pyx_k_DRAW_ROUND_CORNERS_TOP_LEFT[] = "DRAW_ROUND_CORNERS_TOP_LEFT"; static const char __pyx_k_HOVERED_ALLOW_WHEN_DISABLED[] = "HOVERED_ALLOW_WHEN_DISABLED"; static const char __pyx_k_INPUT_TEXT_ALWAYS_OVERWRITE[] = "INPUT_TEXT_ALWAYS_OVERWRITE"; static const char __pyx_k_INPUT_TEXT_CALLBACK_HISTORY[] = "INPUT_TEXT_CALLBACK_HISTORY"; static const char __pyx_k_INPUT_TEXT_CHARS_SCIENTIFIC[] = "INPUT_TEXT_CHARS_SCIENTIFIC"; static const char __pyx_k_No_matching_signature_found[] = "No matching signature found"; static const char __pyx_k_SELECTABLE_SPAN_ALL_COLUMNS[] = "SELECTABLE_SPAN_ALL_COLUMNS"; static const char __pyx_k_STYLE_SELECTABLE_TEXT_ALIGN[] = "STYLE_SELECTABLE_TEXT_ALIGN"; static const char __pyx_k_TABLE_COLUMN_INDENT_DISABLE[] = "TABLE_COLUMN_INDENT_DISABLE"; static const char __pyx_k_TAB_BAR_FITTING_POLICY_MASK[] = "TAB_BAR_FITTING_POLICY_MASK"; static const char __pyx_k_TREE_NODE_COLLAPSING_HEADER[] = "TREE_NODE_COLLAPSING_HEADER"; static const char __pyx_k_VIEWPORT_FLAGS_OWNED_BY_APP[] = "VIEWPORT_FLAGS_OWNED_BY_APP"; static const char __pyx_k_WINDOW_NO_SCROLL_WITH_MOUSE[] = "WINDOW_NO_SCROLL_WITH_MOUSE"; static const char __pyx_k_align_text_to_frame_padding[] = "align_text_to_frame_padding"; static const char __pyx_k_color_convert_float4_to_u32[] = "color_convert_float4_to_u32"; static const char __pyx_k_color_convert_u32_to_float4[] = "color_convert_u32_to_float4"; static const char __pyx_k_hide_text_after_double_hash[] = "hide_text_after_double_hash"; static const char __pyx_k_itemsize_0_for_cython_array[] = "itemsize <= 0 for cython.array"; static const char __pyx_k_load_ini_settings_from_disk[] = "load_ini_settings_from_disk"; static const char __pyx_k_pyx_unpickle__BeginEndGroup[] = "__pyx_unpickle__BeginEndGroup"; static const char __pyx_k_save_ini_settings_to_memory[] = "save_ini_settings_to_memory"; static const char __pyx_k_set_window_position_labeled[] = "set_window_position_labeled"; static const char __pyx_k_COLOR_PLOT_HISTOGRAM_HOVERED[] = "COLOR_PLOT_HISTOGRAM_HOVERED"; static const char __pyx_k_COLOR_SCROLLBAR_GRAB_HOVERED[] = "COLOR_SCROLLBAR_GRAB_HOVERED"; static const char __pyx_k_DRAW_LIST_ANTI_ALIASED_LINES[] = "DRAW_LIST_ANTI_ALIASED_LINES"; static const char __pyx_k_DRAW_ROUND_CORNERS_TOP_RIGHT[] = "DRAW_ROUND_CORNERS_TOP_RIGHT"; static const char __pyx_k_FOCUS_ROOT_AND_CHILD_WINDOWS[] = "FOCUS_ROOT_AND_CHILD_WINDOWS"; static const char __pyx_k_INPUT_TEXT_CHARS_HEXADECIMAL[] = "INPUT_TEXT_CHARS_HEXADECIMAL"; static const char __pyx_k_SELECTABLE_DONT_CLOSE_POPUPS[] = "SELECTABLE_DONT_CLOSE_POPUPS"; static const char __pyx_k_TABLE_BACKGROUND_TARGET_NONE[] = "TABLE_BACKGROUND_TARGET_NONE"; static const char __pyx_k_TABLE_BORDERS_INNER_VERTICAL[] = "TABLE_BORDERS_INNER_VERTICAL"; static const char __pyx_k_TABLE_BORDERS_OUTER_VERTICAL[] = "TABLE_BORDERS_OUTER_VERTICAL"; static const char __pyx_k_TABLE_COLUMN_NO_HEADER_WIDTH[] = "TABLE_COLUMN_NO_HEADER_WIDTH"; static const char __pyx_k_TAB_BAR_AUTO_SELECT_NEW_TABS[] = "TAB_BAR_AUTO_SELECT_NEW_TABS"; static const char __pyx_k_TREE_NODE_ALLOW_ITEM_OVERLAP[] = "TREE_NODE_ALLOW_ITEM_OVERLAP"; static const char __pyx_k_WINDOW_NO_FOCUS_ON_APPEARING[] = "WINDOW_NO_FOCUS_ON_APPEARING"; static const char __pyx_k_get_content_region_available[] = "get_content_region_available"; static const char __pyx_k_py_vertex_buffer_vertex_size[] = "_py_vertex_buffer_vertex_size"; static const char __pyx_k_set_next_window_content_size[] = "set_next_window_content_size"; static const char __pyx_k_set_window_collapsed_labeled[] = "set_window_collapsed_labeled"; static const char __pyx_k_COLOR_EDIT_ALPHA_PREVIEW_HALF[] = "COLOR_EDIT_ALPHA_PREVIEW_HALF"; static const char __pyx_k_COLOR_FRAME_BACKGROUND_ACTIVE[] = "COLOR_FRAME_BACKGROUND_ACTIVE"; static const char __pyx_k_COLOR_NAV_WINDOWING_HIGHLIGHT[] = "COLOR_NAV_WINDOWING_HIGHLIGHT"; static const char __pyx_k_COLOR_TABLE_HEADER_BACKGROUND[] = "COLOR_TABLE_HEADER_BACKGROUND"; static const char __pyx_k_COLOR_TITLE_BACKGROUND_ACTIVE[] = "COLOR_TITLE_BACKGROUND_ACTIVE"; static const char __pyx_k_CONFIG_NO_MOUSE_CURSOR_CHANGE[] = "CONFIG_NO_MOUSE_CURSOR_CHANGE"; static const char __pyx_k_HOVERED_ALLOW_WHEN_OVERLAPPED[] = "HOVERED_ALLOW_WHEN_OVERLAPPED"; static const char __pyx_k_INPUT_TEXT_ALWAYS_INSERT_MODE[] = "INPUT_TEXT_ALWAYS_INSERT_MODE"; static const char __pyx_k_INPUT_TEXT_ENTER_RETURNS_TRUE[] = "INPUT_TEXT_ENTER_RETURNS_TRUE"; static const char __pyx_k_SELECTABLE_ALLOW_DOUBLE_CLICK[] = "SELECTABLE_ALLOW_DOUBLE_CLICK"; static const char __pyx_k_SELECTABLE_ALLOW_ITEM_OVERLAP[] = "SELECTABLE_ALLOW_ITEM_OVERLAP"; static const char __pyx_k_TABLE_NO_KEEP_COLUMNS_VISIBLE[] = "TABLE_NO_KEEP_COLUMNS_VISIBLE"; static const char __pyx_k_TAB_BAR_FITTING_POLICY_SCROLL[] = "TAB_BAR_FITTING_POLICY_SCROLL"; static const char __pyx_k_TAB_BAR_TAB_LIST_POPUP_BUTTON[] = "TAB_BAR_TAB_LIST_POPUP_BUTTON"; static const char __pyx_k_TREE_NODE_NO_AUTO_OPEN_ON_LOG[] = "TREE_NODE_NO_AUTO_OPEN_ON_LOG"; static const char __pyx_k_get_frame_height_with_spacing[] = "get_frame_height_with_spacing"; static const char __pyx_k_get_window_content_region_max[] = "get_window_content_region_max"; static const char __pyx_k_get_window_content_region_min[] = "get_window_content_region_min"; static const char __pyx_k_load_ini_settings_from_memory[] = "load_ini_settings_from_memory"; static const char __pyx_k_pyx_unpickle__BeginEndTooltip[] = "__pyx_unpickle__BeginEndTooltip"; static const char __pyx_k_unable_to_allocate_array_data[] = "unable to allocate array data."; static const char __pyx_k_COLOR_FRAME_BACKGROUND_HOVERED[] = "COLOR_FRAME_BACKGROUND_HOVERED"; static const char __pyx_k_COLOR_TABLE_ROW_BACKGROUND_ALT[] = "COLOR_TABLE_ROW_BACKGROUND_ALT"; static const char __pyx_k_COLOR_TEXT_SELECTED_BACKGROUND[] = "COLOR_TEXT_SELECTED_BACKGROUND"; static const char __pyx_k_CONFIG_NAV_NO_CAPTURE_KEYBOARD[] = "CONFIG_NAV_NO_CAPTURE_KEYBOARD"; static const char __pyx_k_DRAG_DROP_SOURCE_ALLOW_NULL_ID[] = "DRAG_DROP_SOURCE_ALLOW_NULL_ID"; static const char __pyx_k_DRAW_ROUND_CORNERS_BOTTOM_LEFT[] = "DRAW_ROUND_CORNERS_BOTTOM_LEFT"; static const char __pyx_k_HOVERED_ROOT_AND_CHILD_WINDOWS[] = "HOVERED_ROOT_AND_CHILD_WINDOWS"; static const char __pyx_k_INPUT_TEXT_CALLBACK_COMPLETION[] = "INPUT_TEXT_CALLBACK_COMPLETION"; static const char __pyx_k_TABLE_BORDERS_INNER_HORIZONTAL[] = "TABLE_BORDERS_INNER_HORIZONTAL"; static const char __pyx_k_TABLE_BORDERS_OUTER_HORIZONTAL[] = "TABLE_BORDERS_OUTER_HORIZONTAL"; static const char __pyx_k_TABLE_COLUMN_NO_SORT_ASCENDING[] = "TABLE_COLUMN_NO_SORT_ASCENDING"; static const char __pyx_k_TAB_BAR_FITTING_POLICY_DEFAULT[] = "TAB_BAR_FITTING_POLICY_DEFAULT"; static const char __pyx_k_TREE_NODE_NO_TREE_PUSH_ON_OPEN[] = "TREE_NODE_NO_TREE_PUSH_ON_OPEN"; static const char __pyx_k_TREE_NODE_OPEN_ON_DOUBLE_CLICK[] = "TREE_NODE_OPEN_ON_DOUBLE_CLICK"; static const char __pyx_k_TREE_NODE_SPAN_AVAILABLE_WIDTH[] = "TREE_NODE_SPAN_AVAILABLE_WIDTH"; static const char __pyx_k_get_tree_node_to_label_spacing[] = "get_tree_node_to_label_spacing"; static const char __pyx_k_ini_file_name_must_be_a_string[] = "`ini_file_name` must be a string or None"; static const char __pyx_k_is_item_deactivated_after_edit[] = "is_item_deactivated_after_edit"; static const char __pyx_k_log_file_name_must_be_a_string[] = "`log_file_name` must be a string or None"; static const char __pyx_k_pair_param_must_be_length_of_2[] = "pair param must be length of 2"; static const char __pyx_k_strided_and_direct_or_indirect[] = ""; static const char __pyx_k_BACKEND_RENDERER_HAS_VTX_OFFSET[] = "BACKEND_RENDERER_HAS_VTX_OFFSET"; static const char __pyx_k_CONFIG_NAV_ENABLE_SET_MOUSE_POS[] = "CONFIG_NAV_ENABLE_SET_MOUSE_POS"; static const char __pyx_k_DRAW_ROUND_CORNERS_BOTTOM_RIGHT[] = "DRAW_ROUND_CORNERS_BOTTOM_RIGHT"; static const char __pyx_k_INPUT_TEXT_CALLBACK_CHAR_FILTER[] = "INPUT_TEXT_CALLBACK_CHAR_FILTER"; static const char __pyx_k_INPUT_TEXT_NO_HORIZONTAL_SCROLL[] = "INPUT_TEXT_NO_HORIZONTAL_SCROLL"; static const char __pyx_k_ImGuiTableColumnSortSpecs_array[] = "_ImGuiTableColumnSortSpecs_array"; static const char __pyx_k_Out_of_bound_access_to_idx_i_of[] = "Out of bound access to idx %i of an array of size %i"; static const char __pyx_k_SLIDER_FLAGS_NO_ROUND_TO_FORMAT[] = "SLIDER_FLAGS_NO_ROUND_TO_FORMAT"; static const char __pyx_k_TABLE_BACKGROUND_TARGET_CELL_BG[] = "TABLE_BACKGROUND_TARGET_CELL_BG"; static const char __pyx_k_TABLE_BACKGROUND_TARGET_ROW_BG0[] = "TABLE_BACKGROUND_TARGET_ROW_BG0"; static const char __pyx_k_TABLE_BACKGROUND_TARGET_ROW_BG1[] = "TABLE_BACKGROUND_TARGET_ROW_BG1"; static const char __pyx_k_TABLE_COLUMN_NO_SORT_DESCENDING[] = "TABLE_COLUMN_NO_SORT_DESCENDING"; static const char __pyx_k_WINDOW_HORIZONTAL_SCROLLING_BAR[] = "WINDOW_HORIZONTAL_SCROLLING_BAR"; static const char __pyx_k_callback_fn_is_not_a_callable_s[] = "callback_fn is not a callable: %s"; static const char __pyx_k_get_window_content_region_width[] = "get_window_content_region_width"; static const char __pyx_k_py_vertex_buffer_vertex_col_off[] = "_py_vertex_buffer_vertex_col_offset"; static const char __pyx_k_py_vertex_buffer_vertex_pos_off[] = "_py_vertex_buffer_vertex_pos_offset"; static const char __pyx_k_py_vertex_buffer_vertex_uv_offs[] = "_py_vertex_buffer_vertex_uv_offset"; static const char __pyx_k_self_config_cannot_be_converted[] = "self.config cannot be converted to a Python object for pickling"; static const char __pyx_k_todo_consider_inlining_every_oc[] = "\n\n.. todo:: consider inlining every occurence of ``_cast_args_ImVecX`` (profile)\n.. todo: verify mem safety of char* variables and check for leaks\n"; static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides"; static const char __pyx_k_COLOR_MODAL_WINDOW_DIM_BACKGROUN[] = "COLOR_MODAL_WINDOW_DIM_BACKGROUND"; static const char __pyx_k_COLOR_NAV_WINDOWING_DIM_BACKGROU[] = "COLOR_NAV_WINDOWING_DIM_BACKGROUND"; static const char __pyx_k_COLOR_TITLE_BACKGROUND_COLLAPSED[] = "COLOR_TITLE_BACKGROUND_COLLAPSED"; static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory."; static const char __pyx_k_Cannot_assign_to_read_only_memor[] = "Cannot assign to read-only memoryview"; static const char __pyx_k_Cannot_create_writable_memory_vi[] = "Cannot create writable memory view from read-only memoryview"; static const char __pyx_k_Context_invalid_None_or_destroye[] = "Context invalid (None or destroyed)"; static const char __pyx_k_DRAG_DROP_ACCEPT_BEFORE_DELIVERY[] = "DRAG_DROP_ACCEPT_BEFORE_DELIVERY"; static const char __pyx_k_DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT[] = "DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT_RECT"; static const char __pyx_k_DRAG_DROP_ACCEPT_NO_PREVIEW_TOOL[] = "DRAG_DROP_ACCEPT_NO_PREVIEW_TOOLTIP"; static const char __pyx_k_DRAG_DROP_SOURCE_AUTO_EXPIRE_PAY[] = "DRAG_DROP_SOURCE_AUTO_EXPIRE_PAYLOAD"; static const char __pyx_k_DRAG_DROP_SOURCE_NO_DISABLE_HOVE[] = "DRAG_DROP_SOURCE_NO_DISABLE_HOVER"; static const char __pyx_k_DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN[] = "DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN_OTHERS"; static const char __pyx_k_DRAG_DROP_SOURCE_NO_PREVIEW_TOOL[] = "DRAG_DROP_SOURCE_NO_PREVIEW_TOOLTIP"; static const char __pyx_k_DRAW_LIST_ANTI_ALIASED_LINES_USE[] = "DRAW_LIST_ANTI_ALIASED_LINES_USE_TEX"; static const char __pyx_k_Empty_shape_tuple_for_cython_arr[] = "Empty shape tuple for cython.array"; static const char __pyx_k_Expected_at_least_d_argument_s_g[] = "Expected at least %d argument%s, got %d"; static const char __pyx_k_FONT_ATLAS_NO_POWER_OF_TWO_HEIGH[] = "FONT_ATLAS_NO_POWER_OF_TWO_HEIGHT"; static const char __pyx_k_Function_call_with_ambiguous_arg[] = "Function call with ambiguous argument types"; static const char __pyx_k_HOVERED_ALLOW_WHEN_BLOCKED_BY_AC[] = "HOVERED_ALLOW_WHEN_BLOCKED_BY_ACTIVE_ITEM"; static const char __pyx_k_HOVERED_ALLOW_WHEN_BLOCKED_BY_PO[] = "HOVERED_ALLOW_WHEN_BLOCKED_BY_POPUP"; static const char __pyx_k_INPUT_TEXT_CTRL_ENTER_FOR_NEW_LI[] = "INPUT_TEXT_CTRL_ENTER_FOR_NEW_LINE"; static const char __pyx_k_Improperly_initialized_use_imgui[] = "Improperly initialized, use imgui.get_style() or GuiStyle.created() to obtain style classes"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0[] = "Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())"; static const char __pyx_k_Indirect_dimensions_not_supporte[] = "Indirect dimensions not supported"; static const char __pyx_k_Invalid_mode_expected_c_or_fortr[] = "Invalid mode, expected 'c' or 'fortran', got %s"; static const char __pyx_k_Out_of_bounds_on_buffer_access_a[] = "Out of bounds on buffer access (axis %d)"; static const char __pyx_k_POPUP_NO_OPEN_OVER_EXISTING_POPU[] = "POPUP_NO_OPEN_OVER_EXISTING_POPUP"; static const char __pyx_k_Style_value_must_be_float_or_two[] = "Style value must be float or two-elements list/tuple"; static const char __pyx_k_TABLE_COLUMN_PREFER_SORT_ASCENDI[] = "TABLE_COLUMN_PREFER_SORT_ASCENDING"; static const char __pyx_k_TABLE_COLUMN_PREFER_SORT_DESCEND[] = "TABLE_COLUMN_PREFER_SORT_DESCENDING"; static const char __pyx_k_TABLE_NO_BORDERS_IN_BODY_UTIL_RE[] = "TABLE_NO_BORDERS_IN_BODY_UTIL_RESIZE"; static const char __pyx_k_TAB_BAR_FITTING_POLICY_RESIZE_DO[] = "TAB_BAR_FITTING_POLICY_RESIZE_DOWN"; static const char __pyx_k_TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOU[] = "TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON"; static const char __pyx_k_TAB_BAR_NO_TAB_LIST_SCROLLING_BU[] = "TAB_BAR_NO_TAB_LIST_SCROLLING_BUTTONS"; static const char __pyx_k_TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MO[] = "TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON"; static const char __pyx_k_TREE_NODE_NAV_LEFT_JUPS_BACK_HER[] = "TREE_NODE_NAV_LEFT_JUPS_BACK_HERE"; static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to convert item to object"; static const char __pyx_k_Unsufficient_style_info_variable[] = "Unsufficient style info: {} variable lacks a value"; static const char __pyx_k_VIEWPORT_FLAGS_IS_PLATFORM_MONIT[] = "VIEWPORT_FLAGS_IS_PLATFORM_MONITOR"; static const char __pyx_k_VIEWPORT_FLAGS_IS_PLATFORM_WINDO[] = "VIEWPORT_FLAGS_IS_PLATFORM_WINDOW"; static const char __pyx_k_WINDOW_ALWAYS_HORIZONTAL_SCROLLB[] = "WINDOW_ALWAYS_HORIZONTAL_SCROLLBAR"; static const char __pyx_k_WINDOW_ALWAYS_USE_WINDOW_PADDING[] = "WINDOW_ALWAYS_USE_WINDOW_PADDING"; static const char __pyx_k_WINDOW_ALWAYS_VERTICAL_SCROLLBAR[] = "WINDOW_ALWAYS_VERTICAL_SCROLLBAR"; static const char __pyx_k_WINDOW_NO_BRING_TO_FRONT_ON_FOCU[] = "WINDOW_NO_BRING_TO_FRONT_ON_FOCUS"; static const char __pyx_k_get_content_region_available_wid[] = "get_content_region_available_width"; static const char __pyx_k_get_text_line_height_with_spacin[] = "get_text_line_height_with_spacing"; static const char __pyx_k_glyph_ranges_cannot_contain_nega[] = "glyph_ranges cannot contain negative values"; static const char __pyx_k_glyph_ranges_must_be_pairs_of_in[] = "glyph_ranges must be pairs of integers (inclusive range) followed by a zero"; static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension %d (got %d and %d)"; static const char __pyx_k_intersect_with_current_clip_rect[] = "intersect_with_current_clip_rect"; static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__"; static const char __pyx_k_power_parameter_obsoleted_in_ImG[] = "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead"; static const char __pyx_k_quadruple_param_must_be_length_o[] = "quadruple param must be length of 4"; static const char __pyx_k_self__ptr_cannot_be_converted_to[] = "self._ptr cannot be converted to a Python object for pickling"; static const char __pyx_k_self_ranges_ptr_cannot_be_conver[] = "self.ranges_ptr cannot be converted to a Python object for pickling"; static const char __pyx_k_set_next_window_size_constraints[] = "set_next_window_size_constraints"; static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides."; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_2[] = "Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))"; static PyObject *__pyx_kp_s_0f_deg; static PyObject *__pyx_kp_s_3f; static PyObject *__pyx_kp_s_6f; static PyObject *__pyx_n_s_ALWAYS; static PyObject *__pyx_n_s_APPEARING; static PyObject *__pyx_n_s_ASCII; static PyObject *__pyx_n_s_BACKEND_HAS_GAMEPAD; static PyObject *__pyx_n_s_BACKEND_HAS_MOUSE_CURSORS; static PyObject *__pyx_n_s_BACKEND_HAS_SET_MOUSE_POS; static PyObject *__pyx_n_s_BACKEND_NONE; static PyObject *__pyx_n_s_BACKEND_RENDERER_HAS_VTX_OFFSET; static PyObject *__pyx_n_s_BUTTON_MOUSE_BUTTON_LEFT; static PyObject *__pyx_n_s_BUTTON_MOUSE_BUTTON_MIDDLE; static PyObject *__pyx_n_s_BUTTON_MOUSE_BUTTON_RIGHT; static PyObject *__pyx_n_s_BUTTON_NONE; static PyObject *__pyx_n_s_BeginEnd; static PyObject *__pyx_n_s_BeginEndChild; static PyObject *__pyx_n_s_BeginEndCombo; static PyObject *__pyx_n_s_BeginEndDragDropSource; static PyObject *__pyx_n_s_BeginEndDragDropTarget; static PyObject *__pyx_n_s_BeginEndGroup; static PyObject *__pyx_n_s_BeginEndListBox; static PyObject *__pyx_n_s_BeginEndMainMenuBar; static PyObject *__pyx_n_s_BeginEndMenu; static PyObject *__pyx_n_s_BeginEndMenuBar; static PyObject *__pyx_n_s_BeginEndPopup; static PyObject *__pyx_n_s_BeginEndPopupModal; static PyObject *__pyx_n_s_BeginEndTabBar; static PyObject *__pyx_n_s_BeginEndTabItem; static PyObject *__pyx_n_s_BeginEndTable; static PyObject *__pyx_n_s_BeginEndTooltip; static PyObject *__pyx_kp_s_Buffer_view_does_not_expose_stri; static PyObject *__pyx_n_s_COLOR_BORDER; static PyObject *__pyx_n_s_COLOR_BORDER_SHADOW; static PyObject *__pyx_n_s_COLOR_BUTTON; static PyObject *__pyx_n_s_COLOR_BUTTON_ACTIVE; static PyObject *__pyx_n_s_COLOR_BUTTON_HOVERED; static PyObject *__pyx_n_s_COLOR_CHECK_MARK; static PyObject *__pyx_n_s_COLOR_CHILD_BACKGROUND; static PyObject *__pyx_n_s_COLOR_COUNT; static PyObject *__pyx_n_s_COLOR_DRAG_DROP_TARGET; static PyObject *__pyx_n_s_COLOR_EDIT_ALPHA_BAR; static PyObject *__pyx_n_s_COLOR_EDIT_ALPHA_PREVIEW; static PyObject *__pyx_n_s_COLOR_EDIT_ALPHA_PREVIEW_HALF; static PyObject *__pyx_n_s_COLOR_EDIT_DEFAULT_OPTIONS; static PyObject *__pyx_n_s_COLOR_EDIT_DISPLAY_HEX; static PyObject *__pyx_n_s_COLOR_EDIT_DISPLAY_HSV; static PyObject *__pyx_n_s_COLOR_EDIT_DISPLAY_RGB; static PyObject *__pyx_n_s_COLOR_EDIT_FLOAT; static PyObject *__pyx_n_s_COLOR_EDIT_HDR; static PyObject *__pyx_n_s_COLOR_EDIT_INPUT_HSV; static PyObject *__pyx_n_s_COLOR_EDIT_INPUT_RGB; static PyObject *__pyx_n_s_COLOR_EDIT_NONE; static PyObject *__pyx_n_s_COLOR_EDIT_NO_ALPHA; static PyObject *__pyx_n_s_COLOR_EDIT_NO_BORDER; static PyObject *__pyx_n_s_COLOR_EDIT_NO_DRAG_DROP; static PyObject *__pyx_n_s_COLOR_EDIT_NO_INPUTS; static PyObject *__pyx_n_s_COLOR_EDIT_NO_LABEL; static PyObject *__pyx_n_s_COLOR_EDIT_NO_OPTIONS; static PyObject *__pyx_n_s_COLOR_EDIT_NO_PICKER; static PyObject *__pyx_n_s_COLOR_EDIT_NO_SIDE_PREVIEW; static PyObject *__pyx_n_s_COLOR_EDIT_NO_SMALL_PREVIEW; static PyObject *__pyx_n_s_COLOR_EDIT_NO_TOOLTIP; static PyObject *__pyx_n_s_COLOR_EDIT_PICKER_HUE_BAR; static PyObject *__pyx_n_s_COLOR_EDIT_PICKER_HUE_WHEEL; static PyObject *__pyx_n_s_COLOR_EDIT_UINT8; static PyObject *__pyx_n_s_COLOR_FRAME_BACKGROUND; static PyObject *__pyx_n_s_COLOR_FRAME_BACKGROUND_ACTIVE; static PyObject *__pyx_n_s_COLOR_FRAME_BACKGROUND_HOVERED; static PyObject *__pyx_n_s_COLOR_HEADER; static PyObject *__pyx_n_s_COLOR_HEADER_ACTIVE; static PyObject *__pyx_n_s_COLOR_HEADER_HOVERED; static PyObject *__pyx_n_s_COLOR_MENUBAR_BACKGROUND; static PyObject *__pyx_n_s_COLOR_MODAL_WINDOW_DIM_BACKGROUN; static PyObject *__pyx_n_s_COLOR_NAV_HIGHLIGHT; static PyObject *__pyx_n_s_COLOR_NAV_WINDOWING_DIM_BACKGROU; static PyObject *__pyx_n_s_COLOR_NAV_WINDOWING_HIGHLIGHT; static PyObject *__pyx_n_s_COLOR_PLOT_HISTOGRAM; static PyObject *__pyx_n_s_COLOR_PLOT_HISTOGRAM_HOVERED; static PyObject *__pyx_n_s_COLOR_PLOT_LINES; static PyObject *__pyx_n_s_COLOR_PLOT_LINES_HOVERED; static PyObject *__pyx_n_s_COLOR_POPUP_BACKGROUND; static PyObject *__pyx_n_s_COLOR_RESIZE_GRIP; static PyObject *__pyx_n_s_COLOR_RESIZE_GRIP_ACTIVE; static PyObject *__pyx_n_s_COLOR_RESIZE_GRIP_HOVERED; static PyObject *__pyx_n_s_COLOR_SCROLLBAR_BACKGROUND; static PyObject *__pyx_n_s_COLOR_SCROLLBAR_GRAB; static PyObject *__pyx_n_s_COLOR_SCROLLBAR_GRAB_ACTIVE; static PyObject *__pyx_n_s_COLOR_SCROLLBAR_GRAB_HOVERED; static PyObject *__pyx_n_s_COLOR_SEPARATOR; static PyObject *__pyx_n_s_COLOR_SEPARATOR_ACTIVE; static PyObject *__pyx_n_s_COLOR_SEPARATOR_HOVERED; static PyObject *__pyx_n_s_COLOR_SLIDER_GRAB; static PyObject *__pyx_n_s_COLOR_SLIDER_GRAB_ACTIVE; static PyObject *__pyx_n_s_COLOR_TAB; static PyObject *__pyx_n_s_COLOR_TABLE_BORDER_LIGHT; static PyObject *__pyx_n_s_COLOR_TABLE_BORDER_STRONG; static PyObject *__pyx_n_s_COLOR_TABLE_HEADER_BACKGROUND; static PyObject *__pyx_n_s_COLOR_TABLE_ROW_BACKGROUND; static PyObject *__pyx_n_s_COLOR_TABLE_ROW_BACKGROUND_ALT; static PyObject *__pyx_n_s_COLOR_TAB_ACTIVE; static PyObject *__pyx_n_s_COLOR_TAB_HOVERED; static PyObject *__pyx_n_s_COLOR_TAB_UNFOCUSED; static PyObject *__pyx_n_s_COLOR_TAB_UNFOCUSED_ACTIVE; static PyObject *__pyx_n_s_COLOR_TEXT; static PyObject *__pyx_n_s_COLOR_TEXT_DISABLED; static PyObject *__pyx_n_s_COLOR_TEXT_SELECTED_BACKGROUND; static PyObject *__pyx_n_s_COLOR_TITLE_BACKGROUND; static PyObject *__pyx_n_s_COLOR_TITLE_BACKGROUND_ACTIVE; static PyObject *__pyx_n_s_COLOR_TITLE_BACKGROUND_COLLAPSED; static PyObject *__pyx_n_s_COLOR_WINDOW_BACKGROUND; static PyObject *__pyx_n_s_COMBO_HEIGHT_LARGE; static PyObject *__pyx_n_s_COMBO_HEIGHT_LARGEST; static PyObject *__pyx_n_s_COMBO_HEIGHT_MASK; static PyObject *__pyx_n_s_COMBO_HEIGHT_REGULAR; static PyObject *__pyx_n_s_COMBO_HEIGHT_SMALL; static PyObject *__pyx_n_s_COMBO_NONE; static PyObject *__pyx_n_s_COMBO_NO_ARROW_BUTTON; static PyObject *__pyx_n_s_COMBO_NO_PREVIEW; static PyObject *__pyx_n_s_COMBO_POPUP_ALIGN_LEFT; static PyObject *__pyx_n_s_CONFIG_IS_RGB; static PyObject *__pyx_n_s_CONFIG_IS_TOUCH_SCREEN; static PyObject *__pyx_n_s_CONFIG_NAV_ENABLE_GAMEPAD; static PyObject *__pyx_n_s_CONFIG_NAV_ENABLE_KEYBOARD; static PyObject *__pyx_n_s_CONFIG_NAV_ENABLE_SET_MOUSE_POS; static PyObject *__pyx_n_s_CONFIG_NAV_NO_CAPTURE_KEYBOARD; static PyObject *__pyx_n_s_CONFIG_NONE; static PyObject *__pyx_n_s_CONFIG_NO_MOUSE; static PyObject *__pyx_n_s_CONFIG_NO_MOUSE_CURSOR_CHANGE; static PyObject *__pyx_kp_s_Can_only_create_a_buffer_that_is; static PyObject *__pyx_kp_s_Cannot_assign_to_read_only_memor; static PyObject *__pyx_kp_s_Cannot_create_writable_memory_vi; static PyObject *__pyx_kp_s_Cannot_index_with_type_s; static PyObject *__pyx_n_s_Colors; static PyObject *__pyx_kp_s_Context_invalid_None_or_destroye; static PyObject *__pyx_n_s_DATA_TYPE_DOUBLE; static PyObject *__pyx_n_s_DATA_TYPE_FLOAT; static PyObject *__pyx_n_s_DATA_TYPE_S16; static PyObject *__pyx_n_s_DATA_TYPE_S32; static PyObject *__pyx_n_s_DATA_TYPE_S64; static PyObject *__pyx_n_s_DATA_TYPE_S8; static PyObject *__pyx_n_s_DATA_TYPE_U16; static PyObject *__pyx_n_s_DATA_TYPE_U32; static PyObject *__pyx_n_s_DATA_TYPE_U64; static PyObject *__pyx_n_s_DATA_TYPE_U8; static PyObject *__pyx_n_s_DIRECTION_DOWN; static PyObject *__pyx_n_s_DIRECTION_LEFT; static PyObject *__pyx_n_s_DIRECTION_NONE; static PyObject *__pyx_n_s_DIRECTION_RIGHT; static PyObject *__pyx_n_s_DIRECTION_UP; static PyObject *__pyx_n_s_DRAG_DROP_ACCEPT_BEFORE_DELIVERY; static PyObject *__pyx_n_s_DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT; static PyObject *__pyx_n_s_DRAG_DROP_ACCEPT_NO_PREVIEW_TOOL; static PyObject *__pyx_n_s_DRAG_DROP_ACCEPT_PEEK_ONLY; static PyObject *__pyx_n_s_DRAG_DROP_NONE; static PyObject *__pyx_n_s_DRAG_DROP_SOURCE_ALLOW_NULL_ID; static PyObject *__pyx_n_s_DRAG_DROP_SOURCE_AUTO_EXPIRE_PAY; static PyObject *__pyx_n_s_DRAG_DROP_SOURCE_EXTERN; static PyObject *__pyx_n_s_DRAG_DROP_SOURCE_NO_DISABLE_HOVE; static PyObject *__pyx_n_s_DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN; static PyObject *__pyx_n_s_DRAG_DROP_SOURCE_NO_PREVIEW_TOOL; static PyObject *__pyx_n_s_DRAW_CLOSED; static PyObject *__pyx_n_s_DRAW_CORNER_ALL; static PyObject *__pyx_n_s_DRAW_CORNER_BOTTOM; static PyObject *__pyx_n_s_DRAW_CORNER_BOTTOM_LEFT; static PyObject *__pyx_n_s_DRAW_CORNER_BOTTOM_RIGHT; static PyObject *__pyx_n_s_DRAW_CORNER_LEFT; static PyObject *__pyx_n_s_DRAW_CORNER_NONE; static PyObject *__pyx_n_s_DRAW_CORNER_RIGHT; static PyObject *__pyx_n_s_DRAW_CORNER_TOP; static PyObject *__pyx_n_s_DRAW_CORNER_TOP_LEFT; static PyObject *__pyx_n_s_DRAW_CORNER_TOP_RIGHT; static PyObject *__pyx_n_s_DRAW_LIST_ALLOW_VTX_OFFSET; static PyObject *__pyx_n_s_DRAW_LIST_ANTI_ALIASED_FILL; static PyObject *__pyx_n_s_DRAW_LIST_ANTI_ALIASED_LINES; static PyObject *__pyx_n_s_DRAW_LIST_ANTI_ALIASED_LINES_USE; static PyObject *__pyx_n_s_DRAW_LIST_NONE; static PyObject *__pyx_n_s_DRAW_NONE; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_ALL; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM_LEFT; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM_RIGHT; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_LEFT; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_NONE; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_RIGHT; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_TOP; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_TOP_LEFT; static PyObject *__pyx_n_s_DRAW_ROUND_CORNERS_TOP_RIGHT; static PyObject *__pyx_kp_s_Direction_wasn_t_specified; static PyObject *__pyx_n_s_DrawCmd; static PyObject *__pyx_n_s_DrawData; static PyObject *__pyx_n_s_DrawList; static PyObject *__pyx_n_s_Ellipsis; static PyObject *__pyx_kp_s_Empty_shape_tuple_for_cython_arr; static PyObject *__pyx_kp_s_Expected_at_least_d_argument_s_g; static PyObject *__pyx_n_s_FIRST_USE_EVER; static PyObject *__pyx_n_s_FLOAT_MAX; static PyObject *__pyx_n_s_FLOAT_MIN; static PyObject *__pyx_n_s_FOCUS_ANY_WINDOW; static PyObject *__pyx_n_s_FOCUS_CHILD_WINDOWS; static PyObject *__pyx_n_s_FOCUS_NONE; static PyObject *__pyx_n_s_FOCUS_ROOT_AND_CHILD_WINDOWS; static PyObject *__pyx_n_s_FOCUS_ROOT_WINDOW; static PyObject *__pyx_n_s_FONT_ATLAS_NONE; static PyObject *__pyx_n_s_FONT_ATLAS_NO_BAKED_LINES; static PyObject *__pyx_n_s_FONT_ATLAS_NO_MOUSE_CURSOR; static PyObject *__pyx_n_s_FONT_ATLAS_NO_POWER_OF_TWO_HEIGH; static PyObject *__pyx_n_s_Font; static PyObject *__pyx_n_s_FontAtlas; static PyObject *__pyx_n_s_FontConfig; static PyObject *__pyx_kp_s_Function_call_with_ambiguous_arg; static PyObject *__pyx_n_s_GlyphRanges; static PyObject *__pyx_n_s_GuiStyle; static PyObject *__pyx_n_s_HOVERED_ALLOW_WHEN_BLOCKED_BY_AC; static PyObject *__pyx_n_s_HOVERED_ALLOW_WHEN_BLOCKED_BY_PO; static PyObject *__pyx_n_s_HOVERED_ALLOW_WHEN_DISABLED; static PyObject *__pyx_n_s_HOVERED_ALLOW_WHEN_OVERLAPPED; static PyObject *__pyx_n_s_HOVERED_ANY_WINDOW; static PyObject *__pyx_n_s_HOVERED_CHILD_WINDOWS; static PyObject *__pyx_n_s_HOVERED_NONE; static PyObject *__pyx_n_s_HOVERED_RECT_ONLY; static PyObject *__pyx_n_s_HOVERED_ROOT_AND_CHILD_WINDOWS; static PyObject *__pyx_n_s_HOVERED_ROOT_WINDOW; static PyObject *__pyx_n_s_INPUT_TEXT_ALLOW_TAB_INPUT; static PyObject *__pyx_n_s_INPUT_TEXT_ALWAYS_INSERT_MODE; static PyObject *__pyx_n_s_INPUT_TEXT_ALWAYS_OVERWRITE; static PyObject *__pyx_n_s_INPUT_TEXT_AUTO_SELECT_ALL; static PyObject *__pyx_n_s_INPUT_TEXT_CALLBACK_ALWAYS; static PyObject *__pyx_n_s_INPUT_TEXT_CALLBACK_CHAR_FILTER; static PyObject *__pyx_n_s_INPUT_TEXT_CALLBACK_COMPLETION; static PyObject *__pyx_n_s_INPUT_TEXT_CALLBACK_EDIT; static PyObject *__pyx_n_s_INPUT_TEXT_CALLBACK_HISTORY; static PyObject *__pyx_n_s_INPUT_TEXT_CALLBACK_RESIZE; static PyObject *__pyx_n_s_INPUT_TEXT_CHARS_DECIMAL; static PyObject *__pyx_n_s_INPUT_TEXT_CHARS_HEXADECIMAL; static PyObject *__pyx_n_s_INPUT_TEXT_CHARS_NO_BLANK; static PyObject *__pyx_n_s_INPUT_TEXT_CHARS_SCIENTIFIC; static PyObject *__pyx_n_s_INPUT_TEXT_CHARS_UPPERCASE; static PyObject *__pyx_n_s_INPUT_TEXT_CTRL_ENTER_FOR_NEW_LI; static PyObject *__pyx_n_s_INPUT_TEXT_ENTER_RETURNS_TRUE; static PyObject *__pyx_n_s_INPUT_TEXT_NONE; static PyObject *__pyx_n_s_INPUT_TEXT_NO_HORIZONTAL_SCROLL; static PyObject *__pyx_n_s_INPUT_TEXT_NO_UNDO_REDO; static PyObject *__pyx_n_s_INPUT_TEXT_PASSWORD; static PyObject *__pyx_n_s_INPUT_TEXT_READ_ONLY; static PyObject *__pyx_n_s_IO; static PyObject *__pyx_n_s_ImGuiContext; static PyObject *__pyx_n_s_ImGuiError; static PyObject *__pyx_n_s_ImGuiID; static PyObject *__pyx_n_s_ImGuiInputTextCallbackData; static PyObject *__pyx_n_s_ImGuiSizeCallbackData; static PyObject *__pyx_n_s_ImGuiTableColumnSortSpecs; static PyObject *__pyx_n_s_ImGuiTableColumnSortSpecs_array; static PyObject *__pyx_n_s_ImGuiTableSortSpecs; static PyObject *__pyx_n_s_ImGuiViewport; static PyObject *__pyx_n_s_ImportError; static PyObject *__pyx_kp_s_Improperly_initialized_use_imgui; static PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0; static PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2; static PyObject *__pyx_n_s_IndexError; static PyObject *__pyx_kp_s_Indirect_dimensions_not_supporte; static PyObject *__pyx_n_s_InputTextSharedBuffer; static PyObject *__pyx_kp_s_Invalid_mode_expected_c_or_fortr; static PyObject *__pyx_kp_s_Invalid_shape_in_axis_d_d; static PyObject *__pyx_n_s_KEY_A; static PyObject *__pyx_n_s_KEY_BACKSPACE; static PyObject *__pyx_n_s_KEY_C; static PyObject *__pyx_n_s_KEY_DELETE; static PyObject *__pyx_n_s_KEY_DOWN_ARROW; static PyObject *__pyx_n_s_KEY_END; static PyObject *__pyx_n_s_KEY_ENTER; static PyObject *__pyx_n_s_KEY_ESCAPE; static PyObject *__pyx_n_s_KEY_HOME; static PyObject *__pyx_n_s_KEY_INSERT; static PyObject *__pyx_n_s_KEY_LEFT_ARROW; static PyObject *__pyx_n_s_KEY_MOD_ALT; static PyObject *__pyx_n_s_KEY_MOD_CTRL; static PyObject *__pyx_n_s_KEY_MOD_NONE; static PyObject *__pyx_n_s_KEY_MOD_SHIFT; static PyObject *__pyx_n_s_KEY_MOD_SUPER; static PyObject *__pyx_n_s_KEY_PAD_ENTER; static PyObject *__pyx_n_s_KEY_PAGE_DOWN; static PyObject *__pyx_n_s_KEY_PAGE_UP; static PyObject *__pyx_n_s_KEY_RIGHT_ARROW; static PyObject *__pyx_n_s_KEY_SPACE; static PyObject *__pyx_n_s_KEY_TAB; static PyObject *__pyx_n_s_KEY_UP_ARROW; static PyObject *__pyx_n_s_KEY_V; static PyObject *__pyx_n_s_KEY_X; static PyObject *__pyx_n_s_KEY_Y; static PyObject *__pyx_n_s_KEY_Z; static PyObject *__pyx_n_s_MOUSE_BUTTON_LEFT; static PyObject *__pyx_n_s_MOUSE_BUTTON_MIDDLE; static PyObject *__pyx_n_s_MOUSE_BUTTON_RIGHT; static PyObject *__pyx_n_s_MOUSE_CURSOR_ARROW; static PyObject *__pyx_n_s_MOUSE_CURSOR_HAND; static PyObject *__pyx_n_s_MOUSE_CURSOR_NONE; static PyObject *__pyx_n_s_MOUSE_CURSOR_NOT_ALLOWED; static PyObject *__pyx_n_s_MOUSE_CURSOR_RESIZE_ALL; static PyObject *__pyx_n_s_MOUSE_CURSOR_RESIZE_EW; static PyObject *__pyx_n_s_MOUSE_CURSOR_RESIZE_NESW; static PyObject *__pyx_n_s_MOUSE_CURSOR_RESIZE_NS; static PyObject *__pyx_n_s_MOUSE_CURSOR_RESIZE_NWSE; static PyObject *__pyx_n_s_MOUSE_CURSOR_TEXT_INPUT; static PyObject *__pyx_n_s_MemoryError; static PyObject *__pyx_kp_s_MemoryView_of_r_at_0x_x; static PyObject *__pyx_kp_s_MemoryView_of_r_object; static PyObject *__pyx_n_s_NAV_INPUT_ACTIVATE; static PyObject *__pyx_n_s_NAV_INPUT_CANCEL; static PyObject *__pyx_n_s_NAV_INPUT_COUNT; static PyObject *__pyx_n_s_NAV_INPUT_DPAD_DOWN; static PyObject *__pyx_n_s_NAV_INPUT_DPAD_LEFT; static PyObject *__pyx_n_s_NAV_INPUT_DPAD_RIGHT; static PyObject *__pyx_n_s_NAV_INPUT_DPAD_UP; static PyObject *__pyx_n_s_NAV_INPUT_FOCUS_NEXT; static PyObject *__pyx_n_s_NAV_INPUT_FOCUS_PREV; static PyObject *__pyx_n_s_NAV_INPUT_INPUT; static PyObject *__pyx_n_s_NAV_INPUT_L_STICK_DOWN; static PyObject *__pyx_n_s_NAV_INPUT_L_STICK_LEFT; static PyObject *__pyx_n_s_NAV_INPUT_L_STICK_RIGHT; static PyObject *__pyx_n_s_NAV_INPUT_L_STICK_UP; static PyObject *__pyx_n_s_NAV_INPUT_MENU; static PyObject *__pyx_n_s_NAV_INPUT_TWEAK_FAST; static PyObject *__pyx_n_s_NAV_INPUT_TWEAK_SLOW; static PyObject *__pyx_n_s_NONE; static PyObject *__pyx_kp_s_No_matching_signature_found; static PyObject *__pyx_n_b_O; static PyObject *__pyx_n_s_ONCE; static PyObject *__pyx_kp_s_Out_of_bound_access_to_idx_i_of; static PyObject *__pyx_kp_s_Out_of_bounds_on_buffer_access_a; static PyObject *__pyx_n_s_POPUP_ANY_POPUP; static PyObject *__pyx_n_s_POPUP_ANY_POPUP_ID; static PyObject *__pyx_n_s_POPUP_ANY_POPUP_LEVEL; static PyObject *__pyx_n_s_POPUP_MOUSE_BUTTON_DEFAULT; static PyObject *__pyx_n_s_POPUP_MOUSE_BUTTON_LEFT; static PyObject *__pyx_n_s_POPUP_MOUSE_BUTTON_MASK; static PyObject *__pyx_n_s_POPUP_MOUSE_BUTTON_MIDDLE; static PyObject *__pyx_n_s_POPUP_MOUSE_BUTTON_RIGHT; static PyObject *__pyx_n_s_POPUP_NONE; static PyObject *__pyx_n_s_POPUP_NO_OPEN_OVER_EXISTING_POPU; static PyObject *__pyx_n_s_POPUP_NO_OPEN_OVER_ITEMS; static PyObject *__pyx_n_s_PickleError; static PyObject *__pyx_n_s_RuntimeError; static PyObject *__pyx_n_s_SELECTABLE_ALLOW_DOUBLE_CLICK; static PyObject *__pyx_n_s_SELECTABLE_ALLOW_ITEM_OVERLAP; static PyObject *__pyx_n_s_SELECTABLE_DISABLED; static PyObject *__pyx_n_s_SELECTABLE_DONT_CLOSE_POPUPS; static PyObject *__pyx_n_s_SELECTABLE_NONE; static PyObject *__pyx_n_s_SELECTABLE_SPAN_ALL_COLUMNS; static PyObject *__pyx_n_s_SLIDER_FLAGS_ALWAYS_CLAMP; static PyObject *__pyx_n_s_SLIDER_FLAGS_LOGARITHMIC; static PyObject *__pyx_n_s_SLIDER_FLAGS_NONE; static PyObject *__pyx_n_s_SLIDER_FLAGS_NO_INPUT; static PyObject *__pyx_n_s_SLIDER_FLAGS_NO_ROUND_TO_FORMAT; static PyObject *__pyx_n_s_SORT_DIRECTION_ASCENDING; static PyObject *__pyx_n_s_SORT_DIRECTION_DESCENDING; static PyObject *__pyx_n_s_SORT_DIRECTION_NONE; static PyObject *__pyx_n_s_STYLE_ALPHA; static PyObject *__pyx_n_s_STYLE_BUTTON_TEXT_ALIGN; static PyObject *__pyx_n_s_STYLE_CELL_PADDING; static PyObject *__pyx_n_s_STYLE_CHILD_BORDERSIZE; static PyObject *__pyx_n_s_STYLE_CHILD_ROUNDING; static PyObject *__pyx_n_s_STYLE_FRAME_BORDERSIZE; static PyObject *__pyx_n_s_STYLE_FRAME_PADDING; static PyObject *__pyx_n_s_STYLE_FRAME_ROUNDING; static PyObject *__pyx_n_s_STYLE_GRAB_MIN_SIZE; static PyObject *__pyx_n_s_STYLE_GRAB_ROUNDING; static PyObject *__pyx_n_s_STYLE_INDENT_SPACING; static PyObject *__pyx_n_s_STYLE_ITEM_INNER_SPACING; static PyObject *__pyx_n_s_STYLE_ITEM_SPACING; static PyObject *__pyx_n_s_STYLE_POPUP_BORDERSIZE; static PyObject *__pyx_n_s_STYLE_POPUP_ROUNDING; static PyObject *__pyx_n_s_STYLE_SCROLLBAR_ROUNDING; static PyObject *__pyx_n_s_STYLE_SCROLLBAR_SIZE; static PyObject *__pyx_n_s_STYLE_SELECTABLE_TEXT_ALIGN; static PyObject *__pyx_n_s_STYLE_TAB_ROUNDING; static PyObject *__pyx_n_s_STYLE_WINDOW_BORDERSIZE; static PyObject *__pyx_n_s_STYLE_WINDOW_MIN_SIZE; static PyObject *__pyx_n_s_STYLE_WINDOW_PADDING; static PyObject *__pyx_n_s_STYLE_WINDOW_ROUNDING; static PyObject *__pyx_n_s_STYLE_WINDOW_TITLE_ALIGN; static PyObject *__pyx_n_s_StaticGlyphRanges; static PyObject *__pyx_n_s_StopIteration; static PyObject *__pyx_kp_s_Style_value_must_be_float_or_two; static PyObject *__pyx_n_s_TABLE_BACKGROUND_TARGET_CELL_BG; static PyObject *__pyx_n_s_TABLE_BACKGROUND_TARGET_NONE; static PyObject *__pyx_n_s_TABLE_BACKGROUND_TARGET_ROW_BG0; static PyObject *__pyx_n_s_TABLE_BACKGROUND_TARGET_ROW_BG1; static PyObject *__pyx_n_s_TABLE_BORDERS; static PyObject *__pyx_n_s_TABLE_BORDERS_HORIZONTAL; static PyObject *__pyx_n_s_TABLE_BORDERS_INNER; static PyObject *__pyx_n_s_TABLE_BORDERS_INNER_HORIZONTAL; static PyObject *__pyx_n_s_TABLE_BORDERS_INNER_VERTICAL; static PyObject *__pyx_n_s_TABLE_BORDERS_OUTER; static PyObject *__pyx_n_s_TABLE_BORDERS_OUTER_HORIZONTAL; static PyObject *__pyx_n_s_TABLE_BORDERS_OUTER_VERTICAL; static PyObject *__pyx_n_s_TABLE_BORDERS_VERTICAL; static PyObject *__pyx_n_s_TABLE_COLUMN_DEFAULT_HIDE; static PyObject *__pyx_n_s_TABLE_COLUMN_DEFAULT_SORT; static PyObject *__pyx_n_s_TABLE_COLUMN_INDENT_DISABLE; static PyObject *__pyx_n_s_TABLE_COLUMN_INDENT_ENABLE; static PyObject *__pyx_n_s_TABLE_COLUMN_IS_ENABLED; static PyObject *__pyx_n_s_TABLE_COLUMN_IS_HOVERED; static PyObject *__pyx_n_s_TABLE_COLUMN_IS_SORTED; static PyObject *__pyx_n_s_TABLE_COLUMN_IS_VISIBLE; static PyObject *__pyx_n_s_TABLE_COLUMN_NONE; static PyObject *__pyx_n_s_TABLE_COLUMN_NO_CLIP; static PyObject *__pyx_n_s_TABLE_COLUMN_NO_HEADER_WIDTH; static PyObject *__pyx_n_s_TABLE_COLUMN_NO_HIDE; static PyObject *__pyx_n_s_TABLE_COLUMN_NO_REORDER; static PyObject *__pyx_n_s_TABLE_COLUMN_NO_RESIZE; static PyObject *__pyx_n_s_TABLE_COLUMN_NO_SORT; static PyObject *__pyx_n_s_TABLE_COLUMN_NO_SORT_ASCENDING; static PyObject *__pyx_n_s_TABLE_COLUMN_NO_SORT_DESCENDING; static PyObject *__pyx_n_s_TABLE_COLUMN_PREFER_SORT_ASCENDI; static PyObject *__pyx_n_s_TABLE_COLUMN_PREFER_SORT_DESCEND; static PyObject *__pyx_n_s_TABLE_COLUMN_WIDTH_FIXED; static PyObject *__pyx_n_s_TABLE_COLUMN_WIDTH_STRETCH; static PyObject *__pyx_n_s_TABLE_CONTEXT_MENU_IN_BODY; static PyObject *__pyx_n_s_TABLE_HIDEABLE; static PyObject *__pyx_n_s_TABLE_NONE; static PyObject *__pyx_n_s_TABLE_NO_BORDERS_IN_BODY; static PyObject *__pyx_n_s_TABLE_NO_BORDERS_IN_BODY_UTIL_RE; static PyObject *__pyx_n_s_TABLE_NO_CLIP; static PyObject *__pyx_n_s_TABLE_NO_HOST_EXTEND_X; static PyObject *__pyx_n_s_TABLE_NO_HOST_EXTEND_Y; static PyObject *__pyx_n_s_TABLE_NO_KEEP_COLUMNS_VISIBLE; static PyObject *__pyx_n_s_TABLE_NO_PAD_INNER_X; static PyObject *__pyx_n_s_TABLE_NO_PAD_OUTER_X; static PyObject *__pyx_n_s_TABLE_NO_SAVED_SETTINGS; static PyObject *__pyx_n_s_TABLE_PAD_OUTER_X; static PyObject *__pyx_n_s_TABLE_PRECISE_WIDTHS; static PyObject *__pyx_n_s_TABLE_REORDERABLE; static PyObject *__pyx_n_s_TABLE_RESIZABLE; static PyObject *__pyx_n_s_TABLE_ROW_BACKGROUND; static PyObject *__pyx_n_s_TABLE_ROW_HEADERS; static PyObject *__pyx_n_s_TABLE_ROW_NONE; static PyObject *__pyx_n_s_TABLE_SCROLL_X; static PyObject *__pyx_n_s_TABLE_SCROLL_Y; static PyObject *__pyx_n_s_TABLE_SIZING_FIXED_FIT; static PyObject *__pyx_n_s_TABLE_SIZING_FIXED_SAME; static PyObject *__pyx_n_s_TABLE_SIZING_STRETCH_PROP; static PyObject *__pyx_n_s_TABLE_SIZING_STRETCH_SAME; static PyObject *__pyx_n_s_TABLE_SORTABLE; static PyObject *__pyx_n_s_TABLE_SORT_MULTI; static PyObject *__pyx_n_s_TABLE_SORT_TRISTATE; static PyObject *__pyx_n_s_TAB_BAR_AUTO_SELECT_NEW_TABS; static PyObject *__pyx_n_s_TAB_BAR_FITTING_POLICY_DEFAULT; static PyObject *__pyx_n_s_TAB_BAR_FITTING_POLICY_MASK; static PyObject *__pyx_n_s_TAB_BAR_FITTING_POLICY_RESIZE_DO; static PyObject *__pyx_n_s_TAB_BAR_FITTING_POLICY_SCROLL; static PyObject *__pyx_n_s_TAB_BAR_NONE; static PyObject *__pyx_n_s_TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOU; static PyObject *__pyx_n_s_TAB_BAR_NO_TAB_LIST_SCROLLING_BU; static PyObject *__pyx_n_s_TAB_BAR_NO_TOOLTIP; static PyObject *__pyx_n_s_TAB_BAR_REORDERABLE; static PyObject *__pyx_n_s_TAB_BAR_TAB_LIST_POPUP_BUTTON; static PyObject *__pyx_n_s_TAB_ITEM_LEADING; static PyObject *__pyx_n_s_TAB_ITEM_NONE; static PyObject *__pyx_n_s_TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MO; static PyObject *__pyx_n_s_TAB_ITEM_NO_PUSH_ID; static PyObject *__pyx_n_s_TAB_ITEM_NO_REORDER; static PyObject *__pyx_n_s_TAB_ITEM_NO_TOOLTIP; static PyObject *__pyx_n_s_TAB_ITEM_SET_SELECTED; static PyObject *__pyx_n_s_TAB_ITEM_TRAILING; static PyObject *__pyx_n_s_TAB_ITEM_UNSAVED_DOCUMENT; static PyObject *__pyx_n_s_TREE_NODE_ALLOW_ITEM_OVERLAP; static PyObject *__pyx_n_s_TREE_NODE_BULLET; static PyObject *__pyx_n_s_TREE_NODE_COLLAPSING_HEADER; static PyObject *__pyx_n_s_TREE_NODE_DEFAULT_OPEN; static PyObject *__pyx_n_s_TREE_NODE_FRAMED; static PyObject *__pyx_n_s_TREE_NODE_FRAME_PADDING; static PyObject *__pyx_n_s_TREE_NODE_LEAF; static PyObject *__pyx_n_s_TREE_NODE_NAV_LEFT_JUPS_BACK_HER; static PyObject *__pyx_n_s_TREE_NODE_NONE; static PyObject *__pyx_n_s_TREE_NODE_NO_AUTO_OPEN_ON_LOG; static PyObject *__pyx_n_s_TREE_NODE_NO_TREE_PUSH_ON_OPEN; static PyObject *__pyx_n_s_TREE_NODE_OPEN_ON_ARROW; static PyObject *__pyx_n_s_TREE_NODE_OPEN_ON_DOUBLE_CLICK; static PyObject *__pyx_n_s_TREE_NODE_SELECTED; static PyObject *__pyx_n_s_TREE_NODE_SPAN_AVAILABLE_WIDTH; static PyObject *__pyx_n_s_TREE_NODE_SPAN_FULL_WIDTH; static PyObject *__pyx_n_s_TypeError; static PyObject *__pyx_kp_s_Unable_to_convert_item_to_object; static PyObject *__pyx_kp_s_Unknown_style_variable; static PyObject *__pyx_kp_s_Unsufficient_style_info_variable; static PyObject *__pyx_n_s_VIEWPORT_FLAGS_IS_PLATFORM_MONIT; static PyObject *__pyx_n_s_VIEWPORT_FLAGS_IS_PLATFORM_WINDO; static PyObject *__pyx_n_s_VIEWPORT_FLAGS_NONE; static PyObject *__pyx_n_s_VIEWPORT_FLAGS_OWNED_BY_APP; static PyObject *__pyx_n_s_ValueError; static PyObject *__pyx_n_s_Vec2; static PyObject *__pyx_n_s_Vec4; static PyObject *__pyx_n_s_View_MemoryView; static PyObject *__pyx_n_s_WINDOW_ALWAYS_AUTO_RESIZE; static PyObject *__pyx_n_s_WINDOW_ALWAYS_HORIZONTAL_SCROLLB; static PyObject *__pyx_n_s_WINDOW_ALWAYS_USE_WINDOW_PADDING; static PyObject *__pyx_n_s_WINDOW_ALWAYS_VERTICAL_SCROLLBAR; static PyObject *__pyx_n_s_WINDOW_HORIZONTAL_SCROLLING_BAR; static PyObject *__pyx_n_s_WINDOW_MENU_BAR; static PyObject *__pyx_n_s_WINDOW_NONE; static PyObject *__pyx_n_s_WINDOW_NO_BACKGROUND; static PyObject *__pyx_n_s_WINDOW_NO_BRING_TO_FRONT_ON_FOCU; static PyObject *__pyx_n_s_WINDOW_NO_COLLAPSE; static PyObject *__pyx_n_s_WINDOW_NO_DECORATION; static PyObject *__pyx_n_s_WINDOW_NO_FOCUS_ON_APPEARING; static PyObject *__pyx_n_s_WINDOW_NO_INPUTS; static PyObject *__pyx_n_s_WINDOW_NO_MOUSE_INPUTS; static PyObject *__pyx_n_s_WINDOW_NO_MOVE; static PyObject *__pyx_n_s_WINDOW_NO_NAV; static PyObject *__pyx_n_s_WINDOW_NO_NAV_FOCUS; static PyObject *__pyx_n_s_WINDOW_NO_NAV_INPUTS; static PyObject *__pyx_n_s_WINDOW_NO_RESIZE; static PyObject *__pyx_n_s_WINDOW_NO_SAVED_SETTINGS; static PyObject *__pyx_n_s_WINDOW_NO_SCROLLBAR; static PyObject *__pyx_n_s_WINDOW_NO_SCROLL_WITH_MOUSE; static PyObject *__pyx_n_s_WINDOW_NO_TITLE_BAR; static PyObject *__pyx_n_s_WINDOW_UNSAVED_DOCUMENT; static PyObject *__pyx_kp_b__40; static PyObject *__pyx_kp_s__40; static PyObject *__pyx_kp_s__60; static PyObject *__pyx_kp_s__61; static PyObject *__pyx_kp_s__75; static PyObject *__pyx_kp_s__94; static PyObject *__pyx_n_s_a; static PyObject *__pyx_n_s_a_max; static PyObject *__pyx_n_s_a_max_of_12; static PyObject *__pyx_n_s_a_min; static PyObject *__pyx_n_s_a_min_of_12; static PyObject *__pyx_n_s_a_x; static PyObject *__pyx_n_s_a_y; static PyObject *__pyx_n_s_accept_drag_drop_payload; static PyObject *__pyx_n_s_active; static PyObject *__pyx_n_s_align_text_to_frame_padding; static PyObject *__pyx_n_s_allocate_buffer; static PyObject *__pyx_n_s_alpha; static PyObject *__pyx_n_s_alpha_mul; static PyObject *__pyx_n_s_also_over_items; static PyObject *__pyx_n_s_ansifeed_text_ansi; static PyObject *__pyx_n_s_ansifeed_text_ansi_colored; static PyObject *__pyx_n_s_append; static PyObject *__pyx_n_s_args; static PyObject *__pyx_n_s_arrow_button; static PyObject *__pyx_n_s_b; static PyObject *__pyx_n_s_b_format_max; static PyObject *__pyx_n_s_b_x; static PyObject *__pyx_n_s_b_y; static PyObject *__pyx_n_s_base; static PyObject *__pyx_n_s_begin; static PyObject *__pyx_n_s_begin_child; static PyObject *__pyx_n_s_begin_combo; static PyObject *__pyx_n_s_begin_drag_drop_source; static PyObject *__pyx_n_s_begin_drag_drop_target; static PyObject *__pyx_n_s_begin_group; static PyObject *__pyx_n_s_begin_list_box; static PyObject *__pyx_n_s_begin_main_menu_bar; static PyObject *__pyx_n_s_begin_menu; static PyObject *__pyx_n_s_begin_menu_bar; static PyObject *__pyx_n_s_begin_popup; static PyObject *__pyx_n_s_begin_popup_context_item; static PyObject *__pyx_n_s_begin_popup_context_void; static PyObject *__pyx_n_s_begin_popup_context_window; static PyObject *__pyx_n_s_begin_popup_modal; static PyObject *__pyx_n_s_begin_tab_bar; static PyObject *__pyx_n_s_begin_tab_item; static PyObject *__pyx_n_s_begin_table; static PyObject *__pyx_n_s_begin_tooltip; static PyObject *__pyx_n_s_border; static PyObject *__pyx_n_s_border_color; static PyObject *__pyx_n_s_buffer_length; static PyObject *__pyx_n_s_buffer_length_2; static PyObject *__pyx_n_s_bullet; static PyObject *__pyx_n_s_bullet_text; static PyObject *__pyx_n_s_button; static PyObject *__pyx_n_s_bytes_count; static PyObject *__pyx_n_s_c; static PyObject *__pyx_n_u_c; static PyObject *__pyx_n_s_c_string; static PyObject *__pyx_n_s_c_x; static PyObject *__pyx_n_s_c_y; static PyObject *__pyx_n_s_callback; static PyObject *__pyx_n_s_callback_2; static PyObject *__pyx_n_s_callback_fn; static PyObject *__pyx_kp_s_callback_fn_is_not_a_callable_s; static PyObject *__pyx_n_s_callback_user_info; static PyObject *__pyx_n_s_capture_mouse_from_app; static PyObject *__pyx_n_s_center_x; static PyObject *__pyx_n_s_center_x_ratio; static PyObject *__pyx_n_s_center_y; static PyObject *__pyx_n_s_center_y_ratio; static PyObject *__pyx_n_s_centre_x; static PyObject *__pyx_n_s_centre_y; static PyObject *__pyx_n_s_change_speed; static PyObject *__pyx_n_s_changed; static PyObject *__pyx_n_s_checkbox; static PyObject *__pyx_n_s_checkbox_flags; static PyObject *__pyx_n_s_chr; static PyObject *__pyx_n_s_class; static PyObject *__pyx_n_s_clear; static PyObject *__pyx_n_s_clicked; static PyObject *__pyx_n_s_cline_in_traceback; static PyObject *__pyx_n_s_clip; static PyObject *__pyx_n_s_clip_rect_max_x; static PyObject *__pyx_n_s_clip_rect_max_y; static PyObject *__pyx_n_s_clip_rect_min_x; static PyObject *__pyx_n_s_clip_rect_min_y; static PyObject *__pyx_n_s_closable; static PyObject *__pyx_n_s_close; static PyObject *__pyx_n_s_close_current_popup; static PyObject *__pyx_n_s_col; static PyObject *__pyx_n_s_col_bot_left; static PyObject *__pyx_n_s_col_bot_right; static PyObject *__pyx_n_s_col_upr_left; static PyObject *__pyx_n_s_col_upr_right; static PyObject *__pyx_n_s_collapsed; static PyObject *__pyx_n_s_collapsing_header; static PyObject *__pyx_n_s_collections; static PyObject *__pyx_n_s_color; static PyObject *__pyx_n_s_color_button; static PyObject *__pyx_n_s_color_convert_float4_to_u32; static PyObject *__pyx_n_s_color_convert_hsv_to_rgb; static PyObject *__pyx_n_s_color_convert_rgb_to_hsv; static PyObject *__pyx_n_s_color_convert_u32_to_float4; static PyObject *__pyx_n_s_color_edit3; static PyObject *__pyx_n_s_color_edit4; static PyObject *__pyx_n_s_cols; static PyObject *__pyx_n_s_column; static PyObject *__pyx_n_s_column_index; static PyObject *__pyx_n_s_column_n; static PyObject *__pyx_n_s_columns; static PyObject *__pyx_n_s_combo; static PyObject *__pyx_n_s_components; static PyObject *__pyx_n_s_condition; static PyObject *__pyx_n_s_contextlib; static PyObject *__pyx_n_s_contextmanager; static PyObject *__pyx_n_s_contexts; static PyObject *__pyx_kp_s_contiguous_and_direct; static PyObject *__pyx_kp_s_contiguous_and_indirect; static PyObject *__pyx_n_s_count; static PyObject *__pyx_n_s_create; static PyObject *__pyx_n_s_create_context; static PyObject *__pyx_n_s_ctx; static PyObject *__pyx_n_s_current; static PyObject *__pyx_n_s_current_max; static PyObject *__pyx_n_s_current_min; static PyObject *__pyx_kp_s_d; static PyObject *__pyx_n_s_d_x; static PyObject *__pyx_n_s_d_y; static PyObject *__pyx_n_s_data; static PyObject *__pyx_n_s_data_type; static PyObject *__pyx_n_s_decode; static PyObject *__pyx_n_s_defaults; static PyObject *__pyx_n_s_desc_id; static PyObject *__pyx_n_s_destroy_context; static PyObject *__pyx_n_s_dict; static PyObject *__pyx_n_s_direction; static PyObject *__pyx_n_s_drag_float; static PyObject *__pyx_n_s_drag_float2; static PyObject *__pyx_n_s_drag_float3; static PyObject *__pyx_n_s_drag_float4; static PyObject *__pyx_n_s_drag_float_range2; static PyObject *__pyx_n_s_drag_int; static PyObject *__pyx_n_s_drag_int2; static PyObject *__pyx_n_s_drag_int3; static PyObject *__pyx_n_s_drag_int4; static PyObject *__pyx_n_s_drag_int_range2; static PyObject *__pyx_n_s_drag_scalar; static PyObject *__pyx_n_s_drag_scalar_N; static PyObject *__pyx_n_s_dragging; static PyObject *__pyx_kp_s_dragging_2; static PyObject *__pyx_n_s_dst; static PyObject *__pyx_n_s_dtype_is_object; static PyObject *__pyx_n_s_dummy; static PyObject *__pyx_n_s_ellipsis_char; static PyObject *__pyx_n_s_enabled; static PyObject *__pyx_n_s_encode; static PyObject *__pyx_n_s_end; static PyObject *__pyx_n_s_end_child; static PyObject *__pyx_n_s_end_combo; static PyObject *__pyx_n_s_end_drag_drop_source; static PyObject *__pyx_n_s_end_drag_drop_target; static PyObject *__pyx_n_s_end_frame; static PyObject *__pyx_n_s_end_group; static PyObject *__pyx_n_s_end_list_box; static PyObject *__pyx_n_s_end_main_menu_bar; static PyObject *__pyx_n_s_end_menu; static PyObject *__pyx_n_s_end_menu_bar; static PyObject *__pyx_n_s_end_popup; static PyObject *__pyx_n_s_end_tab_bar; static PyObject *__pyx_n_s_end_tab_item; static PyObject *__pyx_n_s_end_table; static PyObject *__pyx_n_s_end_tooltip; static PyObject *__pyx_n_s_end_x; static PyObject *__pyx_n_s_end_y; static PyObject *__pyx_n_s_enumerate; static PyObject *__pyx_n_s_error; static PyObject *__pyx_n_s_errors; static PyObject *__pyx_n_s_exc_tb; static PyObject *__pyx_n_s_exc_type; static PyObject *__pyx_n_s_exc_val; static PyObject *__pyx_n_s_expanded; static PyObject *__pyx_kp_s_expanded_opened; static PyObject *__pyx_n_s_f; static PyObject *__pyx_kp_s_f_2; static PyObject *__pyx_n_s_filename; static PyObject *__pyx_n_s_fillvalue; static PyObject *__pyx_n_s_flags; static PyObject *__pyx_n_s_flags_value; static PyObject *__pyx_n_s_fmt; static PyObject *__pyx_n_s_fmt_data; static PyObject *__pyx_n_s_font; static PyObject *__pyx_n_s_font_builder_flags; static PyObject *__pyx_n_s_font_config; static PyObject *__pyx_n_s_font_no; static PyObject *__pyx_n_s_format; static PyObject *__pyx_n_s_format_max; static PyObject *__pyx_n_s_fortran; static PyObject *__pyx_n_u_fortran; static PyObject *__pyx_n_s_fraction; static PyObject *__pyx_n_s_frame_padding; static PyObject *__pyx_kp_s_func_is_not_a_callable_s; static PyObject *__pyx_n_s_g; static PyObject *__pyx_n_s_get_background_draw_list; static PyObject *__pyx_n_s_get_clipboard_text; static PyObject *__pyx_n_s_get_clipboard_text_fn; static PyObject *__pyx_n_s_get_column_index; static PyObject *__pyx_n_s_get_column_offset; static PyObject *__pyx_n_s_get_column_width; static PyObject *__pyx_n_s_get_columns_count; static PyObject *__pyx_n_s_get_content_region_available; static PyObject *__pyx_n_s_get_content_region_available_wid; static PyObject *__pyx_n_s_get_content_region_max; static PyObject *__pyx_n_s_get_current_context; static PyObject *__pyx_n_s_get_cursor_pos; static PyObject *__pyx_n_s_get_cursor_pos_x; static PyObject *__pyx_n_s_get_cursor_pos_y; static PyObject *__pyx_n_s_get_cursor_position; static PyObject *__pyx_n_s_get_cursor_screen_pos; static PyObject *__pyx_n_s_get_cursor_screen_position; static PyObject *__pyx_n_s_get_cursor_start_pos; static PyObject *__pyx_n_s_get_cursor_start_position; static PyObject *__pyx_n_s_get_drag_drop_payload; static PyObject *__pyx_n_s_get_draw_data; static PyObject *__pyx_n_s_get_foreground_draw_list; static PyObject *__pyx_n_s_get_frame_height; static PyObject *__pyx_n_s_get_frame_height_with_spacing; static PyObject *__pyx_n_s_get_io; static PyObject *__pyx_n_s_get_item_rect_max; static PyObject *__pyx_n_s_get_item_rect_min; static PyObject *__pyx_n_s_get_item_rect_size; static PyObject *__pyx_n_s_get_key_index; static PyObject *__pyx_n_s_get_main_viewport; static PyObject *__pyx_n_s_get_mouse_cursor; static PyObject *__pyx_n_s_get_mouse_drag_delta; static PyObject *__pyx_n_s_get_mouse_pos; static PyObject *__pyx_n_s_get_mouse_position; static PyObject *__pyx_n_s_get_overlay_draw_list; static PyObject *__pyx_n_s_get_scroll_max_x; static PyObject *__pyx_n_s_get_scroll_max_y; static PyObject *__pyx_n_s_get_scroll_x; static PyObject *__pyx_n_s_get_scroll_y; static PyObject *__pyx_n_s_get_style; static PyObject *__pyx_n_s_get_style_color_name; static PyObject *__pyx_n_s_get_text_line_height; static PyObject *__pyx_n_s_get_text_line_height_with_spacin; static PyObject *__pyx_n_s_get_time; static PyObject *__pyx_n_s_get_tree_node_to_label_spacing; static PyObject *__pyx_n_s_get_version; static PyObject *__pyx_n_s_get_window_content_region_max; static PyObject *__pyx_n_s_get_window_content_region_min; static PyObject *__pyx_n_s_get_window_content_region_width; static PyObject *__pyx_n_s_get_window_draw_list; static PyObject *__pyx_n_s_get_window_height; static PyObject *__pyx_n_s_get_window_position; static PyObject *__pyx_n_s_get_window_size; static PyObject *__pyx_n_s_get_window_width; static PyObject *__pyx_n_s_getstate; static PyObject *__pyx_n_s_glyph_extra_spacing_x; static PyObject *__pyx_n_s_glyph_extra_spacing_y; static PyObject *__pyx_n_s_glyph_max_advance_x; static PyObject *__pyx_n_s_glyph_min_advance_x; static PyObject *__pyx_n_s_glyph_offset_x; static PyObject *__pyx_n_s_glyph_offset_y; static PyObject *__pyx_n_s_glyph_ranges; static PyObject *__pyx_kp_s_glyph_ranges_cannot_contain_nega; static PyObject *__pyx_kp_s_glyph_ranges_invalid_type; static PyObject *__pyx_kp_s_glyph_ranges_must_be_pairs_of_in; static PyObject *__pyx_kp_s_got_differing_extents_in_dimensi; static PyObject *__pyx_n_s_graph_size; static PyObject *__pyx_n_s_gui_style; static PyObject *__pyx_n_s_h; static PyObject *__pyx_n_s_height; static PyObject *__pyx_n_s_height_in_items; static PyObject *__pyx_n_s_hide_text_after_double_hash; static PyObject *__pyx_n_s_hint; static PyObject *__pyx_n_s_hovered; static PyObject *__pyx_kp_s_hovered_2; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_id; static PyObject *__pyx_n_s_identifier; static PyObject *__pyx_n_s_idx; static PyObject *__pyx_n_s_idx_count; static PyObject *__pyx_n_s_ignore; static PyObject *__pyx_n_s_image; static PyObject *__pyx_n_s_image_button; static PyObject *__pyx_n_s_imgui_core; static PyObject *__pyx_kp_s_imgui_core_pyx; static PyObject *__pyx_n_s_imgui_sort_spec; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_in; static PyObject *__pyx_n_s_in_items; static PyObject *__pyx_n_s_indent; static PyObject *__pyx_n_s_index; static PyObject *__pyx_n_s_ini_data; static PyObject *__pyx_n_s_ini_file_name; static PyObject *__pyx_kp_s_ini_file_name_must_be_a_string; static PyObject *__pyx_n_s_init_width_or_weight; static PyObject *__pyx_n_s_inner_width; static PyObject *__pyx_n_s_inout_color; static PyObject *__pyx_n_s_inout_current; static PyObject *__pyx_n_s_inout_current_max; static PyObject *__pyx_n_s_inout_current_min; static PyObject *__pyx_n_s_inout_flags; static PyObject *__pyx_n_s_inout_opened; static PyObject *__pyx_n_s_inout_r_value; static PyObject *__pyx_n_s_inout_selected; static PyObject *__pyx_n_s_inout_state; static PyObject *__pyx_n_s_inout_value; static PyObject *__pyx_n_s_inout_values; static PyObject *__pyx_n_s_inout_visible; static PyObject *__pyx_n_s_input_double; static PyObject *__pyx_n_s_input_float; static PyObject *__pyx_n_s_input_float2; static PyObject *__pyx_n_s_input_float3; static PyObject *__pyx_n_s_input_float4; static PyObject *__pyx_n_s_input_int; static PyObject *__pyx_n_s_input_int2; static PyObject *__pyx_n_s_input_int3; static PyObject *__pyx_n_s_input_int4; static PyObject *__pyx_n_s_input_scalar; static PyObject *__pyx_n_s_input_scalar_N; static PyObject *__pyx_n_s_input_text; static PyObject *__pyx_n_s_input_text_multiline; static PyObject *__pyx_n_s_input_text_with_hint; static PyObject *__pyx_n_s_intersect_with_current_clip_rect; static PyObject *__pyx_n_s_invisible_button; static PyObject *__pyx_n_s_io_clipboard; static PyObject *__pyx_n_s_is_any_item_active; static PyObject *__pyx_n_s_is_any_item_focused; static PyObject *__pyx_n_s_is_any_item_hovered; static PyObject *__pyx_n_s_is_item_activated; static PyObject *__pyx_n_s_is_item_active; static PyObject *__pyx_n_s_is_item_clicked; static PyObject *__pyx_n_s_is_item_deactivated; static PyObject *__pyx_n_s_is_item_deactivated_after_edit; static PyObject *__pyx_n_s_is_item_edited; static PyObject *__pyx_n_s_is_item_focused; static PyObject *__pyx_n_s_is_item_hovered; static PyObject *__pyx_n_s_is_item_toggled_open; static PyObject *__pyx_n_s_is_item_visible; static PyObject *__pyx_n_s_is_key_down; static PyObject *__pyx_n_s_is_key_pressed; static PyObject *__pyx_n_s_is_mouse_clicked; static PyObject *__pyx_n_s_is_mouse_double_clicked; static PyObject *__pyx_n_s_is_mouse_down; static PyObject *__pyx_n_s_is_mouse_dragging; static PyObject *__pyx_n_s_is_mouse_hovering_rect; static PyObject *__pyx_n_s_is_mouse_released; static PyObject *__pyx_n_s_is_open; static PyObject *__pyx_n_s_is_popup_open; static PyObject *__pyx_n_s_is_rect_visible; static PyObject *__pyx_n_s_is_window_appearing; static PyObject *__pyx_n_s_is_window_collapsed; static PyObject *__pyx_n_s_is_window_focused; static PyObject *__pyx_n_s_is_window_hovered; static PyObject *__pyx_n_s_item; static PyObject *__pyx_n_s_items; static PyObject *__pyx_n_s_itemsize; static PyObject *__pyx_kp_s_itemsize_0_for_cython_array; static PyObject *__pyx_n_s_iterator; static PyObject *__pyx_n_s_itertools; static PyObject *__pyx_n_s_izip_longest; static PyObject *__pyx_n_s_join; static PyObject *__pyx_n_s_keepalive_cache; static PyObject *__pyx_n_s_key; static PyObject *__pyx_n_s_key_index; static PyObject *__pyx_n_s_kwargs; static PyObject *__pyx_n_s_label; static PyObject *__pyx_n_s_label_text; static PyObject *__pyx_n_s_listbox; static PyObject *__pyx_n_s_listbox_footer; static PyObject *__pyx_n_s_listbox_header; static PyObject *__pyx_n_s_load_ini_settings_from_disk; static PyObject *__pyx_n_s_load_ini_settings_from_memory; static PyObject *__pyx_n_s_local_pos; static PyObject *__pyx_n_s_local_x; static PyObject *__pyx_n_s_local_y; static PyObject *__pyx_n_s_lock_threshold; static PyObject *__pyx_kp_s_log_file_name_must_be_a_string; static PyObject *__pyx_n_s_lower_right_x; static PyObject *__pyx_n_s_lower_right_y; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_max_value; static PyObject *__pyx_n_s_memview; static PyObject *__pyx_n_s_menu_item; static PyObject *__pyx_n_s_merge_mode; static PyObject *__pyx_n_s_min_row_height; static PyObject *__pyx_n_s_min_value; static PyObject *__pyx_n_s_mode; static PyObject *__pyx_n_s_mouse_button; static PyObject *__pyx_n_s_mouse_cursor_type; static PyObject *__pyx_n_s_name; static PyObject *__pyx_n_s_name_2; static PyObject *__pyx_n_s_namedtuple; static PyObject *__pyx_n_s_ndim; static PyObject *__pyx_n_s_new; static PyObject *__pyx_n_s_new_frame; static PyObject *__pyx_n_s_new_line; static PyObject *__pyx_n_s_next_column; static PyObject *__pyx_kp_s_no_default___reduce___due_to_non; static PyObject *__pyx_n_s_num_segments; static PyObject *__pyx_n_s_numpy; static PyObject *__pyx_n_s_obj; static PyObject *__pyx_n_s_offset; static PyObject *__pyx_n_s_offset_x; static PyObject *__pyx_n_s_open_popup; static PyObject *__pyx_n_s_open_popup_on_item_click; static PyObject *__pyx_n_s_opened; static PyObject *__pyx_kp_s_opened_2; static PyObject *__pyx_kp_s_opened_visible; static PyObject *__pyx_n_s_out_b; static PyObject *__pyx_n_s_out_g; static PyObject *__pyx_n_s_out_h; static PyObject *__pyx_n_s_out_r; static PyObject *__pyx_n_s_out_s; static PyObject *__pyx_n_s_out_v; static PyObject *__pyx_n_s_outer_size_height; static PyObject *__pyx_n_s_outer_size_width; static PyObject *__pyx_n_s_output; static PyObject *__pyx_n_s_overlay; static PyObject *__pyx_n_s_overlay_text; static PyObject *__pyx_n_s_overlay_text_b; static PyObject *__pyx_n_s_overlay_text_ptr; static PyObject *__pyx_n_s_oversample_h; static PyObject *__pyx_n_s_oversample_v; static PyObject *__pyx_n_s_p_data; static PyObject *__pyx_n_s_p_format_max; static PyObject *__pyx_n_s_p_max; static PyObject *__pyx_n_s_p_min; static PyObject *__pyx_n_s_p_step; static PyObject *__pyx_n_s_p_step_fast; static PyObject *__pyx_n_s_pack; static PyObject *__pyx_kp_s_pair_param_must_be_length_of_2; static PyObject *__pyx_n_s_payload; static PyObject *__pyx_n_s_pickle; static PyObject *__pyx_n_s_pivot_x; static PyObject *__pyx_n_s_pivot_y; static PyObject *__pyx_n_s_pixel_snap_h; static PyObject *__pyx_n_s_plot_histogram; static PyObject *__pyx_n_s_plot_lines; static PyObject *__pyx_n_s_point1_x; static PyObject *__pyx_n_s_point1_y; static PyObject *__pyx_n_s_point2_x; static PyObject *__pyx_n_s_point2_y; static PyObject *__pyx_n_s_point3_x; static PyObject *__pyx_n_s_point3_y; static PyObject *__pyx_n_s_point4_x; static PyObject *__pyx_n_s_point4_y; static PyObject *__pyx_n_s_points; static PyObject *__pyx_n_s_pop_clip_rect; static PyObject *__pyx_n_s_pop_font; static PyObject *__pyx_n_s_pop_id; static PyObject *__pyx_n_s_pop_text_wrap_pos; static PyObject *__pyx_n_s_pop_text_wrap_position; static PyObject *__pyx_n_s_populate; static PyObject *__pyx_n_s_popup_flags; static PyObject *__pyx_n_s_pos; static PyObject *__pyx_n_s_pos_x; static PyObject *__pyx_n_s_pos_y; static PyObject *__pyx_n_s_position; static PyObject *__pyx_n_s_power; static PyObject *__pyx_kp_s_power_parameter_obsoleted_in_ImG; static PyObject *__pyx_n_s_preview_value; static PyObject *__pyx_n_s_progress_bar; static PyObject *__pyx_n_s_ptr; static PyObject *__pyx_n_s_push_clip_rect; static PyObject *__pyx_n_s_push_font; static PyObject *__pyx_n_s_push_id; static PyObject *__pyx_n_s_push_text_wrap_pos; static PyObject *__pyx_n_s_push_text_wrap_position; static PyObject *__pyx_n_s_py_colored; static PyObject *__pyx_n_s_py_font; static PyObject *__pyx_n_s_py_index_buffer_index_size; static PyObject *__pyx_n_s_py_istyled; static PyObject *__pyx_n_s_py_scoped; static PyObject *__pyx_n_s_py_string; static PyObject *__pyx_n_s_py_styled; static PyObject *__pyx_n_s_py_vertex_buffer_vertex_col_off; static PyObject *__pyx_n_s_py_vertex_buffer_vertex_pos_off; static PyObject *__pyx_n_s_py_vertex_buffer_vertex_size; static PyObject *__pyx_n_s_py_vertex_buffer_vertex_uv_offs; static PyObject *__pyx_n_s_pyx_PickleError; static PyObject *__pyx_n_s_pyx_checksum; static PyObject *__pyx_n_s_pyx_getbuffer; static PyObject *__pyx_n_s_pyx_result; static PyObject *__pyx_n_s_pyx_state; static PyObject *__pyx_n_s_pyx_type; static PyObject *__pyx_n_s_pyx_unpickle_Enum; static PyObject *__pyx_n_s_pyx_unpickle__BeginEndGroup; static PyObject *__pyx_n_s_pyx_unpickle__BeginEndTooltip; static PyObject *__pyx_n_s_pyx_vtable; static PyObject *__pyx_kp_s_quadruple_param_must_be_length_o; static PyObject *__pyx_n_s_r; static PyObject *__pyx_n_s_r_max_x; static PyObject *__pyx_n_s_r_max_y; static PyObject *__pyx_n_s_r_min_x; static PyObject *__pyx_n_s_r_min_y; static PyObject *__pyx_n_s_rad_value; static PyObject *__pyx_n_s_radio_button; static PyObject *__pyx_n_s_radius; static PyObject *__pyx_n_s_range; static PyObject *__pyx_n_s_rasterizer_multiply; static PyObject *__pyx_n_s_reduce; static PyObject *__pyx_n_s_reduce_cython; static PyObject *__pyx_n_s_reduce_ex; static PyObject *__pyx_n_s_render; static PyObject *__pyx_n_s_repeat; static PyObject *__pyx_n_s_require_pointer; static PyObject *__pyx_n_s_reset_mouse_drag_delta; static PyObject *__pyx_n_s_rounding; static PyObject *__pyx_n_s_row_flags; static PyObject *__pyx_n_s_rows; static PyObject *__pyx_n_s_s; static PyObject *__pyx_kp_s_s_improperly_initialized; static PyObject *__pyx_n_s_same_line; static PyObject *__pyx_n_s_save_ini_settings_to_disk; static PyObject *__pyx_n_s_save_ini_settings_to_memory; static PyObject *__pyx_n_s_scale; static PyObject *__pyx_n_s_scale_max; static PyObject *__pyx_n_s_scale_min; static PyObject *__pyx_n_s_screen_pos; static PyObject *__pyx_n_s_scroll_x; static PyObject *__pyx_n_s_scroll_y; static PyObject *__pyx_n_s_selectable; static PyObject *__pyx_n_s_selected; static PyObject *__pyx_kp_s_selected_opened; static PyObject *__pyx_kp_s_self__ptr_cannot_be_converted_to; static PyObject *__pyx_kp_s_self_config_cannot_be_converted; static PyObject *__pyx_kp_s_self_ranges_ptr_cannot_be_conver; static PyObject *__pyx_n_s_send; static PyObject *__pyx_n_s_separator; static PyObject *__pyx_n_s_set_clipboard_text; static PyObject *__pyx_n_s_set_clipboard_text_fn; static PyObject *__pyx_n_s_set_column_offset; static PyObject *__pyx_n_s_set_column_width; static PyObject *__pyx_n_s_set_current_context; static PyObject *__pyx_n_s_set_cursor_pos; static PyObject *__pyx_n_s_set_cursor_pos_x; static PyObject *__pyx_n_s_set_cursor_pos_y; static PyObject *__pyx_n_s_set_cursor_position; static PyObject *__pyx_n_s_set_cursor_screen_pos; static PyObject *__pyx_n_s_set_cursor_screen_position; static PyObject *__pyx_n_s_set_drag_drop_payload; static PyObject *__pyx_n_s_set_item_allow_overlap; static PyObject *__pyx_n_s_set_item_default_focus; static PyObject *__pyx_n_s_set_keyboard_focus_here; static PyObject *__pyx_n_s_set_mouse_cursor; static PyObject *__pyx_n_s_set_next_item_open; static PyObject *__pyx_n_s_set_next_window_bg_alpha; static PyObject *__pyx_n_s_set_next_window_collapsed; static PyObject *__pyx_n_s_set_next_window_content_size; static PyObject *__pyx_n_s_set_next_window_focus; static PyObject *__pyx_n_s_set_next_window_position; static PyObject *__pyx_n_s_set_next_window_size; static PyObject *__pyx_n_s_set_next_window_size_constraints; static PyObject *__pyx_n_s_set_scroll_from_pos_x; static PyObject *__pyx_n_s_set_scroll_from_pos_y; static PyObject *__pyx_n_s_set_scroll_here_x; static PyObject *__pyx_n_s_set_scroll_here_y; static PyObject *__pyx_n_s_set_scroll_x; static PyObject *__pyx_n_s_set_scroll_y; static PyObject *__pyx_n_s_set_tab_item_closed; static PyObject *__pyx_n_s_set_tooltip; static PyObject *__pyx_n_s_set_window_collapsed; static PyObject *__pyx_n_s_set_window_collapsed_labeled; static PyObject *__pyx_n_s_set_window_focus; static PyObject *__pyx_n_s_set_window_focus_labeled; static PyObject *__pyx_n_s_set_window_font_scale; static PyObject *__pyx_n_s_set_window_position; static PyObject *__pyx_n_s_set_window_position_labeled; static PyObject *__pyx_n_s_set_window_size; static PyObject *__pyx_n_s_set_window_size_named; static PyObject *__pyx_n_s_setstate; static PyObject *__pyx_n_s_setstate_cython; static PyObject *__pyx_n_s_shape; static PyObject *__pyx_n_s_shared_font_atlas; static PyObject *__pyx_n_s_shortcut; static PyObject *__pyx_n_s_show_about_window; static PyObject *__pyx_n_s_show_demo_window; static PyObject *__pyx_n_s_show_font_selector; static PyObject *__pyx_n_s_show_metrics_window; static PyObject *__pyx_n_s_show_style_editor; static PyObject *__pyx_n_s_show_style_selector; static PyObject *__pyx_n_s_show_test_window; static PyObject *__pyx_n_s_show_user_guide; static PyObject *__pyx_n_s_signatures; static PyObject *__pyx_n_s_size; static PyObject *__pyx_n_s_size_height; static PyObject *__pyx_n_s_size_max; static PyObject *__pyx_n_s_size_min; static PyObject *__pyx_n_s_size_pixels; static PyObject *__pyx_n_s_size_width; static PyObject *__pyx_n_s_slider_angle; static PyObject *__pyx_n_s_slider_float; static PyObject *__pyx_n_s_slider_float2; static PyObject *__pyx_n_s_slider_float3; static PyObject *__pyx_n_s_slider_float4; static PyObject *__pyx_n_s_slider_int; static PyObject *__pyx_n_s_slider_int2; static PyObject *__pyx_n_s_slider_int3; static PyObject *__pyx_n_s_slider_int4; static PyObject *__pyx_n_s_slider_scalar; static PyObject *__pyx_n_s_slider_scalar_N; static PyObject *__pyx_n_s_small_button; static PyObject *__pyx_n_s_spacing; static PyObject *__pyx_n_s_speed; static PyObject *__pyx_n_s_split; static PyObject *__pyx_n_s_start; static PyObject *__pyx_n_s_start_x; static PyObject *__pyx_n_s_start_y; static PyObject *__pyx_n_s_state; static PyObject *__pyx_n_s_staticmethod; static PyObject *__pyx_n_s_step; static PyObject *__pyx_n_s_step_fast; static PyObject *__pyx_n_s_stop; static PyObject *__pyx_n_s_str; static PyObject *__pyx_n_s_str_id; static PyObject *__pyx_n_s_stride; static PyObject *__pyx_kp_s_strided_and_direct; static PyObject *__pyx_kp_s_strided_and_direct_or_indirect; static PyObject *__pyx_kp_s_strided_and_indirect; static PyObject *__pyx_kp_s_stringsource; static PyObject *__pyx_n_s_strip; static PyObject *__pyx_n_s_struct; static PyObject *__pyx_n_s_style; static PyObject *__pyx_n_s_style_colors_classic; static PyObject *__pyx_n_s_style_colors_dark; static PyObject *__pyx_n_s_style_colors_light; static PyObject *__pyx_n_s_tab_item_button; static PyObject *__pyx_n_s_tab_or_docked_window_label; static PyObject *__pyx_n_s_table_get_column_count; static PyObject *__pyx_n_s_table_get_column_flags; static PyObject *__pyx_n_s_table_get_column_index; static PyObject *__pyx_n_s_table_get_column_name; static PyObject *__pyx_n_s_table_get_row_index; static PyObject *__pyx_n_s_table_get_sort_specs; static PyObject *__pyx_n_s_table_header; static PyObject *__pyx_n_s_table_headers_row; static PyObject *__pyx_n_s_table_next_column; static PyObject *__pyx_n_s_table_next_row; static PyObject *__pyx_n_s_table_set_background_color; static PyObject *__pyx_n_s_table_set_column_index; static PyObject *__pyx_n_s_table_setup_column; static PyObject *__pyx_n_s_table_setup_scroll_freeze; static PyObject *__pyx_n_s_target; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_text; static PyObject *__pyx_n_s_text_colored; static PyObject *__pyx_n_s_text_disabled; static PyObject *__pyx_n_s_text_input_buffer; static PyObject *__pyx_n_s_text_input_buffer_size; static PyObject *__pyx_n_s_text_unformatted; static PyObject *__pyx_n_s_text_wrapped; static PyObject *__pyx_n_s_texture_id; static PyObject *__pyx_n_s_thickness; static PyObject *__pyx_n_s_throw; static PyObject *__pyx_n_s_tint_color; static PyObject *__pyx_n_s_title; static PyObject *__pyx_n_s_tree_node; static PyObject *__pyx_n_s_tree_pop; static PyObject *__pyx_n_s_type; static PyObject *__pyx_n_s_u; static PyObject *__pyx_kp_s_unable_to_allocate_array_data; static PyObject *__pyx_kp_s_unable_to_allocate_shape_and_str; static PyObject *__pyx_n_s_unindent; static PyObject *__pyx_n_s_unpack; static PyObject *__pyx_n_s_update; static PyObject *__pyx_n_s_upper_left_x; static PyObject *__pyx_n_s_upper_left_y; static PyObject *__pyx_n_s_user_data; static PyObject *__pyx_n_s_user_data_2; static PyObject *__pyx_n_s_user_id; static PyObject *__pyx_n_s_user_info; static PyObject *__pyx_kp_s_utf_8; static PyObject *__pyx_n_s_uv0; static PyObject *__pyx_n_s_uv1; static PyObject *__pyx_n_s_uv_a; static PyObject *__pyx_n_s_uv_a_u; static PyObject *__pyx_n_s_uv_a_v; static PyObject *__pyx_n_s_uv_b; static PyObject *__pyx_n_s_uv_b_u; static PyObject *__pyx_n_s_uv_b_v; static PyObject *__pyx_n_s_uv_c_u; static PyObject *__pyx_n_s_uv_c_v; static PyObject *__pyx_n_s_uv_d_u; static PyObject *__pyx_n_s_uv_d_v; static PyObject *__pyx_n_s_v; static PyObject *__pyx_n_s_v_slider_float; static PyObject *__pyx_n_s_v_slider_int; static PyObject *__pyx_n_s_v_slider_scalar; static PyObject *__pyx_n_s_val; static PyObject *__pyx_n_s_value; static PyObject *__pyx_n_s_value0; static PyObject *__pyx_n_s_value1; static PyObject *__pyx_n_s_value2; static PyObject *__pyx_n_s_value3; static PyObject *__pyx_n_s_value_bytes; static PyObject *__pyx_n_s_value_degrees_max; static PyObject *__pyx_n_s_value_degrees_min; static PyObject *__pyx_n_s_values; static PyObject *__pyx_n_s_values_count; static PyObject *__pyx_n_s_values_offset; static PyObject *__pyx_n_s_var; static PyObject *__pyx_n_s_variable; static PyObject *__pyx_n_s_variables_and_values; static PyObject *__pyx_n_s_visible; static PyObject *__pyx_kp_s_visible_2; static PyObject *__pyx_n_s_vtx_count; static PyObject *__pyx_n_s_w; static PyObject *__pyx_n_s_want_capture_mouse_value; static PyObject *__pyx_n_s_warn; static PyObject *__pyx_n_s_warnings; static PyObject *__pyx_n_s_width; static PyObject *__pyx_n_s_wrap_pos_x; static PyObject *__pyx_n_s_wrap_width; static PyObject *__pyx_n_s_x; static PyObject *__pyx_n_s_xrange; static PyObject *__pyx_n_s_y; static PyObject *__pyx_n_s_z; static PyObject *__pyx_n_s_zip_longest; static PyObject *__pyx_pf_5imgui_4core_13_ImGuiContext___eq__(struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_self, struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_ImGuiContext_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_ImGuiContext_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd_10texture_id___get__(struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd_9clip_rect___get__(struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd_10elem_count___get__(struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15cmd_buffer_size___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15cmd_buffer_data___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15vtx_buffer_size___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15vtx_buffer_data___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15idx_buffer_size___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15idx_buffer_data___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_5flags___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_9_DrawList_5flags_2__set__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, ImDrawListFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_push_clip_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_clip_rect_min_x, float __pyx_v_clip_rect_min_y, float __pyx_v_clip_rect_max_x, float __pyx_v_clip_rect_max_y, bool __pyx_v_intersect_with_current_clip_rect); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_2push_clip_rect_full_screen(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_4pop_clip_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_6push_texture_id(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, PyObject *__pyx_v_texture_id); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_8pop_texture_id(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_10get_clip_rect_min(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_12get_clip_rect_max(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_14add_line(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_start_x, float __pyx_v_start_y, float __pyx_v_end_x, float __pyx_v_end_y, ImU32 __pyx_v_col, float __pyx_v_thickness); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_16add_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_upper_left_x, float __pyx_v_upper_left_y, float __pyx_v_lower_right_x, float __pyx_v_lower_right_y, ImU32 __pyx_v_col, float __pyx_v_rounding, ImDrawFlags __pyx_v_flags, float __pyx_v_thickness); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_18add_rect_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_upper_left_x, float __pyx_v_upper_left_y, float __pyx_v_lower_right_x, float __pyx_v_lower_right_y, ImU32 __pyx_v_col, float __pyx_v_rounding, ImDrawFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_20add_rect_filled_multicolor(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_upper_left_x, float __pyx_v_upper_left_y, float __pyx_v_lower_right_x, float __pyx_v_lower_right_y, ImU32 __pyx_v_col_upr_left, ImU32 __pyx_v_col_upr_right, ImU32 __pyx_v_col_bot_right, ImU32 __pyx_v_col_bot_left); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_22add_quad(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, float __pyx_v_point4_x, float __pyx_v_point4_y, ImU32 __pyx_v_col, float __pyx_v_thickness); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_24add_quad_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, float __pyx_v_point4_x, float __pyx_v_point4_y, ImU32 __pyx_v_col); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_26add_triangle(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, ImU32 __pyx_v_col, float __pyx_v_thickness); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_28add_triangle_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, ImU32 __pyx_v_col); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_30add_bezier_cubic(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, float __pyx_v_point4_x, float __pyx_v_point4_y, ImU32 __pyx_v_col, float __pyx_v_thickness, int __pyx_v_num_segments); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_32add_bezier_quadratic(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, ImU32 __pyx_v_col, float __pyx_v_thickness, int __pyx_v_num_segments); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_34add_circle(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_centre_x, float __pyx_v_centre_y, float __pyx_v_radius, ImU32 __pyx_v_col, int __pyx_v_num_segments, float __pyx_v_thickness); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_36add_circle_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_centre_x, float __pyx_v_centre_y, float __pyx_v_radius, ImU32 __pyx_v_col, ImU32 __pyx_v_num_segments); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_38add_ngon(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_centre_x, float __pyx_v_centre_y, float __pyx_v_radius, ImU32 __pyx_v_col, int __pyx_v_num_segments, float __pyx_v_thickness); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_40add_ngon_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_centre_x, float __pyx_v_centre_y, float __pyx_v_radius, ImU32 __pyx_v_col, int __pyx_v_num_segments); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_42add_text(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_pos_x, float __pyx_v_pos_y, ImU32 __pyx_v_col, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_44add_image(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, PyObject *__pyx_v_texture_id, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_uv_a, PyObject *__pyx_v_uv_b, ImU32 __pyx_v_col); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_46add_image_rounded(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, PyObject *__pyx_v_texture_id, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_uv_a, PyObject *__pyx_v_uv_b, ImU32 __pyx_v_col, float __pyx_v_rounding, ImDrawFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_48add_polyline(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, PyObject *__pyx_v_points, ImU32 __pyx_v_col, ImDrawFlags __pyx_v_flags, float __pyx_v_thickness); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_50path_clear(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_52path_line_to(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_x, float __pyx_v_y); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_54path_arc_to(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_center_x, float __pyx_v_center_y, float __pyx_v_radius, float __pyx_v_a_min, float __pyx_v_a_max, ImU32 __pyx_v_num_segments); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_56path_arc_to_fast(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_center_x, float __pyx_v_center_y, float __pyx_v_radius, ImU32 __pyx_v_a_min_of_12, ImU32 __pyx_v_a_max_of_12); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_58path_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_rounding, ImDrawFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_60path_fill_convex(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, ImU32 __pyx_v_col); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_62path_stroke(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, ImU32 __pyx_v_col, ImDrawFlags __pyx_v_flags, float __pyx_v_thickness); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_64channels_split(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, int __pyx_v_channels_count); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_66channels_set_current(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, int __pyx_v_idx); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_68channels_merge(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_70prim_reserve(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, int __pyx_v_idx_count, int __pyx_v_vtx_count); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_72prim_unreserve(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, int __pyx_v_idx_count, int __pyx_v_vtx_count); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_74prim_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_a_x, float __pyx_v_a_y, float __pyx_v_b_x, float __pyx_v_b_y, ImU32 __pyx_v_color); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_76prim_rect_UV(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_a_x, float __pyx_v_a_y, float __pyx_v_b_x, float __pyx_v_b_y, float __pyx_v_uv_a_u, float __pyx_v_uv_a_v, float __pyx_v_uv_b_u, float __pyx_v_uv_b_v, ImU32 __pyx_v_color); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_78prim_quad_UV(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_a_x, float __pyx_v_a_y, float __pyx_v_b_x, float __pyx_v_b_y, float __pyx_v_c_x, float __pyx_v_c_y, float __pyx_v_d_x, float __pyx_v_d_y, float __pyx_v_uv_a_u, float __pyx_v_uv_a_v, float __pyx_v_uv_b_u, float __pyx_v_uv_b_v, float __pyx_v_uv_c_u, float __pyx_v_uv_c_v, float __pyx_v_uv_d_u, float __pyx_v_uv_d_v, ImU32 __pyx_v_color); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_80prim_write_vtx(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_pos_x, float __pyx_v_pos_y, float __pyx_v_u, float __pyx_v_v, ImU32 __pyx_v_color); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_82prim_write_idx(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, ImDrawIdx __pyx_v_idx); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_84prim_vtx(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_pos_x, float __pyx_v_pos_y, float __pyx_v_u, float __pyx_v_v, ImU32 __pyx_v_color); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_8commands___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_86__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawList_88__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_7_Colors___cinit__(struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_7_Colors_2__init__(struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_gui_style); /* proto */ static PyObject *__pyx_pf_5imgui_4core_7_Colors_4__getitem__(struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, ImGuiCol __pyx_v_variable); /* proto */ static int __pyx_pf_5imgui_4core_7_Colors_6__setitem__(struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, ImGuiCol __pyx_v_variable, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_7_Colors_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_7_Colors_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle___cinit__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static void __pyx_pf_5imgui_4core_8GuiStyle_2__dealloc__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_4__eq__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_6create(void); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_5alpha___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_5alpha_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14window_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_14window_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_15window_min_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_15window_min_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_15window_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_15window_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18window_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_18window_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14child_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_14child_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17child_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_17child_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14popup_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_14popup_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17popup_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_17popup_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18window_title_align___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_18window_title_align_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_27window_menu_button_position___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_27window_menu_button_position_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, ImGuiDir __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_13frame_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_13frame_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14frame_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_14frame_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17frame_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_17frame_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_12item_spacing___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_12item_spacing_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18item_inner_spacing___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_18item_inner_spacing_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_12cell_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_12cell_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_19touch_extra_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_19touch_extra_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14indent_spacing___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_14indent_spacing_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_19columns_min_spacing___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_19columns_min_spacing_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14scrollbar_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_14scrollbar_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18scrollbar_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_18scrollbar_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_13grab_min_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_13grab_min_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_13grab_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_13grab_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_19log_slider_deadzone___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_19log_slider_deadzone_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_12tab_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_12tab_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_15tab_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_15tab_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_21color_button_position___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_21color_button_position_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, ImGuiDir __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17button_text_align___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_17button_text_align_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_21selectable_text_align___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_21selectable_text_align_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_22display_window_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_22display_window_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_25display_safe_area_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_25display_safe_area_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18mouse_cursor_scale___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_18mouse_cursor_scale_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18anti_aliased_lines___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_18anti_aliased_lines_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17anti_aliased_fill___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_17anti_aliased_fill_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_24circle_segment_max_error___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_24circle_segment_max_error_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_29circle_tessellation_max_error___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_8color(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, ImGuiCol __pyx_v_variable); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_6colors___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id___get__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, ImGuiID __pyx_v_column_user_id); /* proto */ static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index___get__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, ImS16 __pyx_v_column_index); /* proto */ static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order___get__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, ImS16 __pyx_v_sort_order); /* proto */ static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction___get__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, ImGuiSortDirection __pyx_v_sort_direction); /* proto */ static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array___init__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_4__getitem__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self, PyObject *__pyx_v_idx); /* proto */ static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_6__iter__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_8__next__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_5specs___get__(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_count___get__(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty___get__(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self, bool __pyx_v_specs_dirty); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_14_ImGuiViewport___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_5flags___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_3pos___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_4size___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_8work_pos___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_9work_size___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_4get_center(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_6get_work_center(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_9_DrawData___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_2_require_pointer(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_4deindex_all_buffers(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_6scale_clip_rects(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self, PyObject *__pyx_v_width, PyObject *__pyx_v_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_5valid___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_9cmd_count___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_15total_vtx_count___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_11display_pos___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_12display_size___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_18frame_buffer_scale___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_15total_idx_count___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_14commands_lists___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_DrawData_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_18_StaticGlyphRanges___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__StaticGlyphRanges *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_18_StaticGlyphRanges_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__StaticGlyphRanges *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_11GlyphRanges___init__(struct __pyx_obj_5imgui_4core_GlyphRanges *__pyx_v_self, PyObject *__pyx_v_glyph_ranges); /* proto */ static PyObject *__pyx_pf_5imgui_4core_11GlyphRanges_2__del__(struct __pyx_obj_5imgui_4core_GlyphRanges *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_11GlyphRanges_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_GlyphRanges *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_11GlyphRanges_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_GlyphRanges *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_10FontConfig___init__(struct __pyx_obj_5imgui_4core_FontConfig *__pyx_v_self, PyObject *__pyx_v_font_no, PyObject *__pyx_v_size_pixels, PyObject *__pyx_v_oversample_h, PyObject *__pyx_v_oversample_v, PyObject *__pyx_v_pixel_snap_h, PyObject *__pyx_v_glyph_extra_spacing_x, PyObject *__pyx_v_glyph_extra_spacing_y, PyObject *__pyx_v_glyph_offset_x, PyObject *__pyx_v_glyph_offset_y, PyObject *__pyx_v_glyph_min_advance_x, PyObject *__pyx_v_glyph_max_advance_x, PyObject *__pyx_v_merge_mode, CYTHON_UNUSED PyObject *__pyx_v_font_builder_flags, PyObject *__pyx_v_rasterizer_multiply, PyObject *__pyx_v_ellipsis_char); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10FontConfig_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_FontConfig *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10FontConfig_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_FontConfig *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_5_Font___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Font *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_5_Font_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Font *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_10_FontAtlas___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_2_require_pointer(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_4add_font_default(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_6add_font_from_file_ttf(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self, PyObject *__pyx_v_filename, float __pyx_v_size_pixels, PyObject *__pyx_v_font_config, PyObject *__pyx_v_glyph_ranges); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_8clear_tex_data(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_10clear_input_data(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_12clear_fonts(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_14clear(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_16get_glyph_ranges_default(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_18get_glyph_ranges_korean(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_20get_glyph_ranges_japanese(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_22get_glyph_ranges_chinese_full(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_24get_glyph_ranges_chinese(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_26get_glyph_ranges_cyrillic(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_28get_glyph_ranges_thai(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_30get_glyph_ranges_vietnamese(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_32get_glyph_ranges_latin(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_34get_tex_data_as_alpha8(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_36get_tex_data_as_rgba32(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_10texture_id___get__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_10_FontAtlas_10texture_id_2__set__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_13texture_width___get__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_14texture_height___get__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_21texture_desired_width___get__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_10_FontAtlas_21texture_desired_width_2__set__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self, int __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_38__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_40__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_3_IO___init__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_12config_flags___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_12config_flags_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, ImGuiConfigFlags __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_13backend_flags___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_13backend_flags_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, ImGuiBackendFlags __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_12display_size___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_12display_size_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_10delta_time___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_10delta_time_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_time); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_15ini_saving_rate___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_15ini_saving_rate_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_13log_file_name___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_13log_file_name_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_13ini_file_name___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_13ini_file_name_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_23mouse_double_click_time___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_23mouse_double_click_time_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_31mouse_double_click_max_distance___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_31mouse_double_click_max_distance_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_20mouse_drag_threshold___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_20mouse_drag_threshold_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_7key_map___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_16key_repeat_delay___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_16key_repeat_delay_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_15key_repeat_rate___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_15key_repeat_rate_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_5fonts___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_17font_global_scale___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_17font_global_scale_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_23font_allow_user_scaling___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_23font_allow_user_scaling_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_16display_fb_scale___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_16display_fb_scale_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_24config_mac_osx_behaviors___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_24config_mac_osx_behaviors_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_19config_cursor_blink___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_19config_cursor_blink_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_31config_drag_click_to_input_text___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_31config_drag_click_to_input_text_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_32config_windows_resize_from_edges___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_32config_windows_resize_from_edges_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_27config_memory_compact_timer___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_27config_memory_compact_timer_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_21get_clipboard_text_fn___get__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_21get_clipboard_text_fn_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_func); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_21set_clipboard_text_fn___get__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_21set_clipboard_text_fn_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_func); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_9mouse_pos___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_9mouse_pos_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_10mouse_down___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_11mouse_wheel___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_11mouse_wheel_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_22mouse_wheel_horizontal___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_22mouse_wheel_horizontal_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_17mouse_draw_cursor___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_17mouse_draw_cursor_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_8key_ctrl___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_8key_ctrl_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_9key_shift___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_9key_shift_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_7key_alt___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_7key_alt_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_9key_super___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_3_IO_9key_super_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_9keys_down___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_10nav_inputs___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_2add_input_character(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, unsigned int __pyx_v_c); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_4add_input_character_utf16(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_utf16_chars); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_6add_input_characters_utf8(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_utf8_chars); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_8clear_input_characters(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_18want_capture_mouse___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_21want_capture_keyboard___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_15want_text_input___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_18want_set_mouse_pos___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_22want_save_ini_settings___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_10nav_active___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_11nav_visible___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_9framerate___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_23metrics_render_vertices___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_22metrics_render_indices___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_22metrics_render_windows___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_22metrics_active_windows___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_26metrics_active_allocations___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_11mouse_delta___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__IO *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_3_IO_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_19_callback_user_info___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_19_callback_user_info_2__cinit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_callback_user_info_4populate(struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self, PyObject *__pyx_v_callback_fn, PyObject *__pyx_v_user_data); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_callback_user_info_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_callback_user_info_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_22_InputTextSharedBuffer___cinit__(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self); /* proto */ static void __pyx_pf_5imgui_4core_22_InputTextSharedBuffer_2__dealloc__(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_InputTextSharedBuffer_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_InputTextSharedBuffer_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_flag___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_5flags___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_9user_data___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, PyObject *__pyx_v_event_char); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_9event_key___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, PyObject *__pyx_v_buffer); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_18buffer_text_length___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_11buffer_size___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, bool __pyx_v_dirty); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_pos); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_start); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_end); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_4delete_chars(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_pos, int __pyx_v_bytes_count); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6insert_chars(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_pos, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_8select_all(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10clear_selection(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12has_selection(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_9user_data___get__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_3pos___get__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12current_size___get__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size___get__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self); /* proto */ static int __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_2__set__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self, PyObject *__pyx_v_size); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_get_io(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_2get_style(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_4new_frame(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_6end_frame(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_8render(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_10show_user_guide(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_12get_version(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14style_colors_dark(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16style_colors_classic(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst); /* proto */ static PyObject *__pyx_pf_5imgui_4core_18style_colors_light(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20show_style_editor(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_style); /* proto */ static PyObject *__pyx_pf_5imgui_4core_22show_demo_window(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_closable); /* proto */ static PyObject *__pyx_pf_5imgui_4core_24show_about_window(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_closable); /* proto */ static PyObject *__pyx_pf_5imgui_4core_26show_test_window(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_28show_metrics_window(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_closable); /* proto */ static PyObject *__pyx_pf_5imgui_4core_30show_style_selector(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label); /* proto */ static PyObject *__pyx_pf_5imgui_4core_32show_font_selector(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label); /* proto */ static int __pyx_pf_5imgui_4core_9_BeginEnd___cinit__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, bool __pyx_v_expanded, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_2__enter__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_4__exit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_6__getitem__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, PyObject *__pyx_v_item); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_8__iter__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_10__repr__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_12__eq__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_8expanded___get__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_34begin(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_closable, ImGuiWindowFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_36get_draw_data(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_38end(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static int __pyx_pf_5imgui_4core_14_BeginEndChild___cinit__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self, bool __pyx_v_visible); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_4__exit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_14_BeginEndChild_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_7visible___get__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_40begin_child(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_signatures, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs, CYTHON_UNUSED PyObject *__pyx_v_defaults); /* proto */ static PyObject *__pyx_pf_5imgui_4core_647__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_633begin_child(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, bool __pyx_v_border, ImGuiWindowFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_649__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_635begin_child(CYTHON_UNUSED PyObject *__pyx_self, ImGuiID __pyx_v_label, float __pyx_v_width, float __pyx_v_height, bool __pyx_v_border, ImGuiWindowFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_42end_child(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_44get_content_region_max(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_46get_content_region_available(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_48get_content_region_available_width(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_50get_window_content_region_min(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_52get_window_content_region_max(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_54get_window_content_region_width(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_56set_window_focus(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_58set_window_focus_labeled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label); /* proto */ static PyObject *__pyx_pf_5imgui_4core_60set_window_size(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width, float __pyx_v_height, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_62set_window_size_named(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_64get_scroll_x(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_66get_scroll_y(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_68get_scroll_max_x(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_70get_scroll_max_y(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_72set_scroll_x(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_scroll_x); /* proto */ static PyObject *__pyx_pf_5imgui_4core_74set_scroll_y(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_scroll_y); /* proto */ static PyObject *__pyx_pf_5imgui_4core_76set_window_font_scale(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_scale); /* proto */ static PyObject *__pyx_pf_5imgui_4core_78set_next_window_collapsed(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_collapsed, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_80set_next_window_focus(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_82set_next_window_bg_alpha(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_alpha); /* proto */ static PyObject *__pyx_pf_5imgui_4core_84get_window_draw_list(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_86get_overlay_draw_list(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_88get_window_position(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_90get_window_size(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_92get_window_width(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_94get_window_height(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_96set_next_window_position(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_x, float __pyx_v_y, ImGuiCond __pyx_v_condition, float __pyx_v_pivot_x, float __pyx_v_pivot_y); /* proto */ static PyObject *__pyx_pf_5imgui_4core_98set_next_window_size(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width, float __pyx_v_height, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_100set_next_window_size_constraints(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_size_min, PyObject *__pyx_v_size_max, PyObject *__pyx_v_callback, PyObject *__pyx_v_user_data); /* proto */ static PyObject *__pyx_pf_5imgui_4core_102set_next_window_content_size(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width, float __pyx_v_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_104set_window_position(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_x, float __pyx_v_y, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_106set_window_position_labeled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_x, float __pyx_v_y, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_108set_window_collapsed(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_collapsed, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_110set_window_collapsed_labeled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, bool __pyx_v_collapsed, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_112is_window_collapsed(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_114is_window_appearing(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_116tree_node(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, ImGuiTreeNodeFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_118tree_pop(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_120get_tree_node_to_label_spacing(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_122collapsing_header(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, PyObject *__pyx_v_visible, ImGuiTreeNodeFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_124set_next_item_open(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_is_open, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_126selectable(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_selected, ImGuiTreeNodeFlags __pyx_v_flags, PyObject *__pyx_v_width, PyObject *__pyx_v_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_128listbox(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_current, PyObject *__pyx_v_items, int __pyx_v_height_in_items); /* proto */ static int __pyx_pf_5imgui_4core_16_BeginEndListBox___cinit__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_16_BeginEndListBox_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_130begin_list_box(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_width, PyObject *__pyx_v_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_132listbox_header(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_width, PyObject *__pyx_v_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_134end_list_box(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_136listbox_footer(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_138set_tooltip(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip___enter__(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip_2__exit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip_4__repr__(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip_6__reduce_cython__(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip_8__setstate_cython__(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_140begin_tooltip(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_142end_tooltip(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static int __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar___cinit__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_144begin_main_menu_bar(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_146end_main_menu_bar(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static int __pyx_pf_5imgui_4core_16_BeginEndMenuBar___cinit__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_16_BeginEndMenuBar_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_148begin_menu_bar(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_150end_menu_bar(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static int __pyx_pf_5imgui_4core_13_BeginEndMenu___cinit__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_13_BeginEndMenu_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_152begin_menu(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_enabled); /* proto */ static PyObject *__pyx_pf_5imgui_4core_154end_menu(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_156menu_item(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_shortcut, bool __pyx_v_selected, PyObject *__pyx_v_enabled); /* proto */ static PyObject *__pyx_pf_5imgui_4core_158open_popup(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_160open_popup_on_item_click(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_popup_flags); /* proto */ static int __pyx_pf_5imgui_4core_14_BeginEndPopup___cinit__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_14_BeginEndPopup_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_162begin_popup(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiWindowFlags __pyx_v_flags); /* proto */ static int __pyx_pf_5imgui_4core_19_BeginEndPopupModal___cinit__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, bool __pyx_v_opened, bool __pyx_v_visible); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_6__getitem__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, PyObject *__pyx_v_item); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_8__iter__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_10__repr__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_12__eq__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_7visible___get__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_164begin_popup_modal(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_title, PyObject *__pyx_v_visible, ImGuiWindowFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_166begin_popup_context_item(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_mouse_button); /* proto */ static PyObject *__pyx_pf_5imgui_4core_168begin_popup_context_window(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_popup_flags, bool __pyx_v_also_over_items); /* proto */ static PyObject *__pyx_pf_5imgui_4core_170begin_popup_context_void(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_popup_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_172is_popup_open(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_174end_popup(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_176close_current_popup(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static int __pyx_pf_5imgui_4core_14_BeginEndTable___cinit__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_14_BeginEndTable_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_178begin_table(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_column, ImGuiTableFlags __pyx_v_flags, float __pyx_v_outer_size_width, float __pyx_v_outer_size_height, float __pyx_v_inner_width); /* proto */ static PyObject *__pyx_pf_5imgui_4core_180end_table(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_182table_next_row(CYTHON_UNUSED PyObject *__pyx_self, ImGuiTableRowFlags __pyx_v_row_flags, float __pyx_v_min_row_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_184table_next_column(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_186table_set_column_index(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_n); /* proto */ static PyObject *__pyx_pf_5imgui_4core_188table_setup_column(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiTableColumnFlags __pyx_v_flags, float __pyx_v_init_width_or_weight, ImU32 __pyx_v_user_id); /* proto */ static PyObject *__pyx_pf_5imgui_4core_190table_setup_scroll_freeze(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_cols, int __pyx_v_rows); /* proto */ static PyObject *__pyx_pf_5imgui_4core_192table_headers_row(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_194table_header(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label); /* proto */ static PyObject *__pyx_pf_5imgui_4core_196table_get_sort_specs(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_198table_get_column_count(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_200table_get_column_index(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_202table_get_row_index(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_204table_get_column_name(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_n); /* proto */ static PyObject *__pyx_pf_5imgui_4core_206table_get_column_flags(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_n); /* proto */ static PyObject *__pyx_pf_5imgui_4core_208table_set_background_color(CYTHON_UNUSED PyObject *__pyx_self, ImGuiTableBgTarget __pyx_v_target, ImU32 __pyx_v_color, int __pyx_v_column_n); /* proto */ static PyObject *__pyx_pf_5imgui_4core_210text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_212text_colored(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a); /* proto */ static PyObject *__pyx_pf_5imgui_4core_214text_disabled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_216text_wrapped(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_218label_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_220text_unformatted(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_222bullet(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_224bullet_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_226button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_width, PyObject *__pyx_v_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_228small_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label); /* proto */ static PyObject *__pyx_pf_5imgui_4core_230arrow_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDir __pyx_v_direction); /* proto */ static PyObject *__pyx_pf_5imgui_4core_232invisible_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_identifier, float __pyx_v_width, float __pyx_v_height, ImGuiButtonFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_234color_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc_id, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, PyObject *__pyx_v_a, PyObject *__pyx_v_flags, float __pyx_v_width, float __pyx_v_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_236image_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texture_id, float __pyx_v_width, float __pyx_v_height, PyObject *__pyx_v_uv0, PyObject *__pyx_v_uv1, PyObject *__pyx_v_tint_color, PyObject *__pyx_v_border_color, int __pyx_v_frame_padding); /* proto */ static PyObject *__pyx_pf_5imgui_4core_238image(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texture_id, float __pyx_v_width, float __pyx_v_height, PyObject *__pyx_v_uv0, PyObject *__pyx_v_uv1, PyObject *__pyx_v_tint_color, PyObject *__pyx_v_border_color); /* proto */ static PyObject *__pyx_pf_5imgui_4core_240checkbox(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, bool __pyx_v_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_242checkbox_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, unsigned int __pyx_v_flags, unsigned int __pyx_v_flags_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_244radio_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, bool __pyx_v_active); /* proto */ static int __pyx_pf_5imgui_4core_14_BeginEndCombo___cinit__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_14_BeginEndCombo_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_246begin_combo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_preview_value, ImGuiComboFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_248end_combo(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_250combo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_current, PyObject *__pyx_v_items, int __pyx_v_height_in_items); /* proto */ static PyObject *__pyx_pf_5imgui_4core_252color_edit3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, ImGuiColorEditFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_254color_edit4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a, ImGuiColorEditFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_256drag_float(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value, float __pyx_v_change_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power); /* proto */ static PyObject *__pyx_pf_5imgui_4core_258drag_float2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_change_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power); /* proto */ static PyObject *__pyx_pf_5imgui_4core_260drag_float3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_change_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power); /* proto */ static PyObject *__pyx_pf_5imgui_4core_262drag_float4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_value3, float __pyx_v_change_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power); /* proto */ static PyObject *__pyx_pf_5imgui_4core_264drag_float_range2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_current_min, float __pyx_v_current_max, float __pyx_v_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, PyObject *__pyx_v_format_max, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_266drag_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value, float __pyx_v_change_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_268drag_int2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, float __pyx_v_change_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_270drag_int3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, float __pyx_v_change_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_272drag_int4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, int __pyx_v_value3, float __pyx_v_change_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_274drag_int_range2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_current_min, int __pyx_v_current_max, float __pyx_v_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, PyObject *__pyx_v_format_max, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_276drag_scalar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, float __pyx_v_change_speed, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_278drag_scalar_N(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, int __pyx_v_components, float __pyx_v_change_speed, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_280input_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_value, int __pyx_v_buffer_length, ImGuiInputTextFlags __pyx_v_flags, PyObject *__pyx_v_callback, PyObject *__pyx_v_user_data); /* proto */ static PyObject *__pyx_pf_5imgui_4core_282input_text_multiline(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_value, int __pyx_v_buffer_length, float __pyx_v_width, float __pyx_v_height, ImGuiInputTextFlags __pyx_v_flags, PyObject *__pyx_v_callback, PyObject *__pyx_v_user_data); /* proto */ static PyObject *__pyx_pf_5imgui_4core_284input_text_with_hint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_hint, PyObject *__pyx_v_value, int __pyx_v_buffer_length, ImGuiInputTextFlags __pyx_v_flags, PyObject *__pyx_v_callback, PyObject *__pyx_v_user_data); /* proto */ static PyObject *__pyx_pf_5imgui_4core_286input_float(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value, float __pyx_v_step, float __pyx_v_step_fast, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_288input_float2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_290input_float3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_292input_float4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_value3, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_294input_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value, int __pyx_v_step, int __pyx_v_step_fast, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_296input_int2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_298input_int3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_300input_int4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, int __pyx_v_value3, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_302input_double(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, double __pyx_v_value, double __pyx_v_step, double __pyx_v_step_fast, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_304input_scalar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, PyObject *__pyx_v_step, PyObject *__pyx_v_step_fast, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_306input_scalar_N(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, int __pyx_v_components, PyObject *__pyx_v_step, PyObject *__pyx_v_step_fast, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_308slider_float(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power); /* proto */ static PyObject *__pyx_pf_5imgui_4core_310slider_float2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power); /* proto */ static PyObject *__pyx_pf_5imgui_4core_312slider_float3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power); /* proto */ static PyObject *__pyx_pf_5imgui_4core_314slider_float4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_value3, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power); /* proto */ static PyObject *__pyx_pf_5imgui_4core_316slider_angle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_rad_value, float __pyx_v_value_degrees_min, float __pyx_v_value_degrees_max, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_318slider_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_320slider_int2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_322slider_int3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_324slider_int4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, int __pyx_v_value3, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_326slider_scalar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_328slider_scalar_N(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, int __pyx_v_components, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_330v_slider_float(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, float __pyx_v_value, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_332v_slider_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, int __pyx_v_value, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_334v_slider_scalar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_336plot_lines(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, __Pyx_memviewslice __pyx_v_values, int __pyx_v_values_count, int __pyx_v_values_offset, PyObject *__pyx_v_overlay_text, float __pyx_v_scale_min, float __pyx_v_scale_max, PyObject *__pyx_v_graph_size, int __pyx_v_stride); /* proto */ static PyObject *__pyx_pf_5imgui_4core_338plot_histogram(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, __Pyx_memviewslice __pyx_v_values, int __pyx_v_values_count, int __pyx_v_values_offset, PyObject *__pyx_v_overlay_text, float __pyx_v_scale_min, float __pyx_v_scale_max, PyObject *__pyx_v_graph_size, int __pyx_v_stride); /* proto */ static PyObject *__pyx_pf_5imgui_4core_340progress_bar(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_fraction, PyObject *__pyx_v_size, PyObject *__pyx_v_overlay); /* proto */ static PyObject *__pyx_pf_5imgui_4core_342set_item_default_focus(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_344set_keyboard_focus_here(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_offset); /* proto */ static PyObject *__pyx_pf_5imgui_4core_346is_item_hovered(CYTHON_UNUSED PyObject *__pyx_self, ImGuiHoveredFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_348is_item_focused(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_350is_item_active(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_352is_item_clicked(CYTHON_UNUSED PyObject *__pyx_self, ImGuiMouseButton __pyx_v_mouse_button); /* proto */ static PyObject *__pyx_pf_5imgui_4core_354is_item_visible(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_356is_item_edited(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_358is_item_activated(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_360is_item_deactivated(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_362is_item_deactivated_after_edit(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_364is_item_toggled_open(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_366is_any_item_hovered(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_368is_any_item_active(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_370is_any_item_focused(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_372get_item_rect_min(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_374get_item_rect_max(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_376get_item_rect_size(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_378set_item_allow_overlap(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_380get_main_viewport(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_382is_window_hovered(CYTHON_UNUSED PyObject *__pyx_self, ImGuiHoveredFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_384is_window_focused(CYTHON_UNUSED PyObject *__pyx_self, ImGuiHoveredFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_386is_rect_visible(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_size_width, float __pyx_v_size_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_388get_style_color_name(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_index); /* proto */ static PyObject *__pyx_pf_5imgui_4core_390get_time(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_392get_background_draw_list(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_394get_foreground_draw_list(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_396get_key_index(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_key); /* proto */ static PyObject *__pyx_pf_5imgui_4core_398is_key_pressed(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_key_index, bool __pyx_v_repeat); /* proto */ static PyObject *__pyx_pf_5imgui_4core_400is_key_down(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_key_index); /* proto */ static PyObject *__pyx_pf_5imgui_4core_402is_mouse_hovering_rect(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_r_min_x, float __pyx_v_r_min_y, float __pyx_v_r_max_x, float __pyx_v_r_max_y, bool __pyx_v_clip); /* proto */ static PyObject *__pyx_pf_5imgui_4core_404is_mouse_double_clicked(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button); /* proto */ static PyObject *__pyx_pf_5imgui_4core_406is_mouse_clicked(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button, bool __pyx_v_repeat); /* proto */ static PyObject *__pyx_pf_5imgui_4core_408is_mouse_released(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button); /* proto */ static PyObject *__pyx_pf_5imgui_4core_410is_mouse_down(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button); /* proto */ static PyObject *__pyx_pf_5imgui_4core_412is_mouse_dragging(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button, float __pyx_v_lock_threshold); /* proto */ static PyObject *__pyx_pf_5imgui_4core_414get_mouse_drag_delta(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button, float __pyx_v_lock_threshold); /* proto */ static PyObject *__pyx_pf_5imgui_4core_416get_mouse_pos(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_418reset_mouse_drag_delta(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button); /* proto */ static PyObject *__pyx_pf_5imgui_4core_420get_mouse_cursor(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_422set_mouse_cursor(CYTHON_UNUSED PyObject *__pyx_self, ImGuiMouseCursor __pyx_v_mouse_cursor_type); /* proto */ static PyObject *__pyx_pf_5imgui_4core_424capture_mouse_from_app(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_want_capture_mouse_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_426get_clipboard_text(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_428load_ini_settings_from_disk(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ini_file_name); /* proto */ static PyObject *__pyx_pf_5imgui_4core_430load_ini_settings_from_memory(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ini_data); /* proto */ static PyObject *__pyx_pf_5imgui_4core_432save_ini_settings_to_disk(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ini_file_name); /* proto */ static PyObject *__pyx_pf_5imgui_4core_434save_ini_settings_to_memory(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_436set_clipboard_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_438set_scroll_here_x(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_center_x_ratio); /* proto */ static PyObject *__pyx_pf_5imgui_4core_440set_scroll_here_y(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_center_y_ratio); /* proto */ static PyObject *__pyx_pf_5imgui_4core_442set_scroll_from_pos_x(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_local_x, float __pyx_v_center_x_ratio); /* proto */ static PyObject *__pyx_pf_5imgui_4core_444set_scroll_from_pos_y(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_local_y, float __pyx_v_center_y_ratio); /* proto */ static PyObject *__pyx_pf_5imgui_4core_446push_font(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__Font *__pyx_v_font); /* proto */ static PyObject *__pyx_pf_5imgui_4core_448pop_font(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_450calc_text_size(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, bool __pyx_v_hide_text_after_double_hash, float __pyx_v_wrap_width); /* proto */ static PyObject *__pyx_pf_5imgui_4core_452color_convert_u32_to_float4(CYTHON_UNUSED PyObject *__pyx_self, ImU32 __pyx_v_in_); /* proto */ static PyObject *__pyx_pf_5imgui_4core_454color_convert_float4_to_u32(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a); /* proto */ static PyObject *__pyx_pf_5imgui_4core_456color_convert_rgb_to_hsv(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b); /* proto */ static PyObject *__pyx_pf_5imgui_4core_458color_convert_hsv_to_rgb(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_h, float __pyx_v_s, float __pyx_v_v); /* proto */ static PyObject *__pyx_pf_5imgui_4core_460push_style_var(CYTHON_UNUSED PyObject *__pyx_self, ImGuiStyleVar __pyx_v_variable, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_462push_style_color(CYTHON_UNUSED PyObject *__pyx_self, ImGuiCol __pyx_v_variable, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a); /* proto */ static PyObject *__pyx_pf_5imgui_4core_464pop_style_var(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_count); /* proto */ static PyObject *__pyx_pf_5imgui_4core_466get_font_size(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_468get_style_color_vec_4(CYTHON_UNUSED PyObject *__pyx_self, ImGuiCol __pyx_v_idx); /* proto */ static PyObject *__pyx_pf_5imgui_4core_470get_font_tex_uv_white_pixel(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_472get_color_u32_idx(CYTHON_UNUSED PyObject *__pyx_self, ImGuiCol __pyx_v_idx, float __pyx_v_alpha_mul); /* proto */ static PyObject *__pyx_pf_5imgui_4core_474get_color_u32_rgba(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a); /* proto */ static PyObject *__pyx_pf_5imgui_4core_476get_color_u32(CYTHON_UNUSED PyObject *__pyx_self, ImU32 __pyx_v_col); /* proto */ static PyObject *__pyx_pf_5imgui_4core_478push_item_width(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_item_width); /* proto */ static PyObject *__pyx_pf_5imgui_4core_480pop_item_width(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_482set_next_item_width(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_item_width); /* proto */ static PyObject *__pyx_pf_5imgui_4core_484calculate_item_width(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_486push_text_wrap_pos(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_wrap_pos_x); /* proto */ static PyObject *__pyx_pf_5imgui_4core_488pop_text_wrap_pos(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_490push_allow_keyboard_focus(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_allow_focus); /* proto */ static PyObject *__pyx_pf_5imgui_4core_492pop_allow_keyboard_focus(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_494push_button_repeat(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_repeat); /* proto */ static PyObject *__pyx_pf_5imgui_4core_496pop_button_repeat(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_498pop_style_color(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_count); /* proto */ static PyObject *__pyx_pf_5imgui_4core_500separator(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_502same_line(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_position, float __pyx_v_spacing); /* proto */ static PyObject *__pyx_pf_5imgui_4core_504new_line(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_506spacing(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_508dummy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_width, PyObject *__pyx_v_height); /* proto */ static PyObject *__pyx_pf_5imgui_4core_510indent(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width); /* proto */ static PyObject *__pyx_pf_5imgui_4core_512unindent(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width); /* proto */ static PyObject *__pyx_pf_5imgui_4core_514columns(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_count, PyObject *__pyx_v_identifier, bool __pyx_v_border); /* proto */ static PyObject *__pyx_pf_5imgui_4core_516next_column(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_518get_column_index(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_520get_column_offset(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_index); /* proto */ static PyObject *__pyx_pf_5imgui_4core_522set_column_offset(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_index, float __pyx_v_offset_x); /* proto */ static PyObject *__pyx_pf_5imgui_4core_524get_column_width(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_index); /* proto */ static PyObject *__pyx_pf_5imgui_4core_526set_column_width(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_index, float __pyx_v_width); /* proto */ static PyObject *__pyx_pf_5imgui_4core_528get_columns_count(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static int __pyx_pf_5imgui_4core_15_BeginEndTabBar___cinit__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_15_BeginEndTabBar_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_530begin_tab_bar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_identifier, ImGuiTabBarFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_532end_tab_bar(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static int __pyx_pf_5imgui_4core_16_BeginEndTabItem___cinit__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, bool __pyx_v_selected, bool __pyx_v_opened); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_6__getitem__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, PyObject *__pyx_v_item); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_8__iter__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_10__repr__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_12__eq__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_8selected___get__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_534begin_tab_item(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_opened, ImGuiTabItemFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_536end_tab_item(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_538tab_item_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiTabItemFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_540set_tab_item_closed(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tab_or_docked_window_label); /* proto */ static int __pyx_pf_5imgui_4core_23_BeginEndDragDropSource___cinit__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self, bool __pyx_v_dragging); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_8dragging___get__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_542begin_drag_drop_source(CYTHON_UNUSED PyObject *__pyx_self, ImGuiDragDropFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_544set_drag_drop_payload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_type, PyObject *__pyx_v_data, ImGuiCond __pyx_v_condition); /* proto */ static PyObject *__pyx_pf_5imgui_4core_546end_drag_drop_source(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static int __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget___cinit__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self, bool __pyx_v_hovered); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static int __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_7hovered___get__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_548begin_drag_drop_target(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_550accept_drag_drop_payload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_type, ImGuiDragDropFlags __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_5imgui_4core_552end_drag_drop_target(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_554get_drag_drop_payload(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_556push_clip_rect(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_clip_rect_min_x, float __pyx_v_clip_rect_min_y, float __pyx_v_clip_rect_max_x, float __pyx_v_clip_rect_max_y, bool __pyx_v_intersect_with_current_clip_rect); /* proto */ static PyObject *__pyx_pf_5imgui_4core_558pop_clip_rect(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup___enter__(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup_2__exit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup_4__repr__(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup_6__reduce_cython__(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup_8__setstate_cython__(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_560begin_group(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_562end_group(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_564get_cursor_pos(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_566get_cursor_pos_x(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_568get_cursor_pos_y(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_570set_cursor_pos(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_local_pos); /* proto */ static PyObject *__pyx_pf_5imgui_4core_572set_cursor_pos_x(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_x); /* proto */ static PyObject *__pyx_pf_5imgui_4core_574set_cursor_pos_y(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_y); /* proto */ static PyObject *__pyx_pf_5imgui_4core_576get_cursor_start_pos(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_578get_cursor_screen_pos(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_580set_cursor_screen_pos(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_screen_pos); /* proto */ static PyObject *__pyx_pf_5imgui_4core_582align_text_to_frame_padding(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_584get_text_line_height(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_586get_text_line_height_with_spacing(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_588get_frame_height(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_590get_frame_height_with_spacing(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_592create_context(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_shared_font_atlas); /* proto */ static PyObject *__pyx_pf_5imgui_4core_594destroy_context(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_ctx); /* proto */ static PyObject *__pyx_pf_5imgui_4core_596get_current_context(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_598set_current_context(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_ctx); /* proto */ static PyObject *__pyx_pf_5imgui_4core_600push_id(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_str_id); /* proto */ static PyObject *__pyx_pf_5imgui_4core_602pop_id(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_604_ansifeed_text_ansi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_5imgui_4core_606_ansifeed_text_ansi_colored(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a); /* proto */ static PyObject *__pyx_pf_5imgui_4core_608_py_font(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__Font *__pyx_v_font); /* proto */ static PyObject *__pyx_pf_5imgui_4core_611_py_styled(CYTHON_UNUSED PyObject *__pyx_self, ImGuiStyleVar __pyx_v_variable, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf_5imgui_4core_614_py_colored(CYTHON_UNUSED PyObject *__pyx_self, ImGuiCol __pyx_v_variable, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a); /* proto */ static PyObject *__pyx_pf_5imgui_4core_617_py_istyled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_variables_and_values); /* proto */ static PyObject *__pyx_pf_5imgui_4core_620_py_scoped(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_str_id); /* proto */ static PyObject *__pyx_pf_5imgui_4core_623_py_vertex_buffer_vertex_pos_offset(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_625_py_vertex_buffer_vertex_uv_offset(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_627_py_vertex_buffer_vertex_col_offset(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_629_py_vertex_buffer_vertex_size(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_631_py_index_buffer_index_size(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_5imgui_4core_639__pyx_unpickle__BeginEndTooltip(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_5imgui_4core_641__pyx_unpickle__BeginEndGroup(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode, int __pyx_v_allocate_buffer); /* proto */ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */ static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struct __pyx_array_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct __pyx_array_obj *__pyx_v_self); /* proto */ static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(struct __pyx_array_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr); /* proto */ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item); /* proto */ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value); /* proto */ static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(struct __pyx_MemviewEnum_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_v_flags, int __pyx_v_dtype_is_object); /* proto */ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index); /* proto */ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto */ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */ static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_tp_new_5imgui_4core__Font(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__ImGuiContext(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__DrawCmd(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__DrawList(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__Colors(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core_GuiStyle(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__ImGuiTableColumnSortSpecs(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__ImGuiTableColumnSortSpecs_array(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__ImGuiTableSortSpecs(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__ImGuiViewport(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__DrawData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__StaticGlyphRanges(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core_GlyphRanges(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core_FontConfig(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__FontAtlas(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__IO(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__callback_user_info(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__InputTextSharedBuffer(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__ImGuiInputTextCallbackData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__ImGuiSizeCallbackData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEnd(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndChild(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndListBox(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndTooltip(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndMainMenuBar(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndMenuBar(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndMenu(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndPopup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndPopupModal(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndTable(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndCombo(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndTabBar(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndTabItem(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndDragDropSource(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndDragDropTarget(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core__BeginEndGroup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct___py_font(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct_1__py_styled(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct_2__py_colored(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct_3__py_istyled(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct_4__py_scoped(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static __Pyx_CachedCFunction __pyx_umethod_PyString_Type_encode = {0, &__pyx_n_s_encode, 0, 0, 0}; static PyObject *__pyx_float_1_; static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_5; static PyObject *__pyx_int_512; static PyObject *__pyx_int_112105877; static PyObject *__pyx_int_136983863; static PyObject *__pyx_int_184977713; static PyObject *__pyx_int_222419149; static PyObject *__pyx_int_228825662; static PyObject *__pyx_int_238750788; static PyObject *__pyx_int_neg_1; static PyObject *__pyx_k__57; static PyObject *__pyx_k__58; static PyObject *__pyx_k__59; static ImGuiCond __pyx_k__64; static ImGuiCond __pyx_k__65; static ImGuiCond __pyx_k__66; static ImGuiCond __pyx_k__67; static ImGuiCond __pyx_k__68; static ImGuiCond __pyx_k__69; static ImGuiCond __pyx_k__70; static ImGuiCond __pyx_k__71; static ImGuiCond __pyx_k__72; static ImGuiDir __pyx_k__88; static float __pyx_k__95; static float __pyx_k__96; static int __pyx_k__97; static float __pyx_k__98; static float __pyx_k__99; static int __pyx_k__100; static PyObject *__pyx_k__101; static float __pyx_k__102; static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__5; static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__10; static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; static PyObject *__pyx_tuple__13; static PyObject *__pyx_tuple__14; static PyObject *__pyx_tuple__15; static PyObject *__pyx_tuple__16; static PyObject *__pyx_tuple__17; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__19; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__21; static PyObject *__pyx_tuple__22; static PyObject *__pyx_tuple__23; static PyObject *__pyx_tuple__24; static PyObject *__pyx_tuple__25; static PyObject *__pyx_tuple__26; static PyObject *__pyx_tuple__27; static PyObject *__pyx_tuple__28; static PyObject *__pyx_tuple__29; static PyObject *__pyx_tuple__30; static PyObject *__pyx_tuple__31; static PyObject *__pyx_tuple__32; static PyObject *__pyx_tuple__33; static PyObject *__pyx_tuple__34; static PyObject *__pyx_tuple__35; static PyObject *__pyx_tuple__36; static PyObject *__pyx_tuple__37; static PyObject *__pyx_tuple__38; static PyObject *__pyx_tuple__39; static PyObject *__pyx_tuple__41; static PyObject *__pyx_tuple__42; static PyObject *__pyx_tuple__43; static PyObject *__pyx_tuple__44; static PyObject *__pyx_tuple__45; static PyObject *__pyx_tuple__46; static PyObject *__pyx_tuple__47; static PyObject *__pyx_tuple__48; static PyObject *__pyx_tuple__49; static PyObject *__pyx_tuple__50; static PyObject *__pyx_tuple__51; static PyObject *__pyx_tuple__52; static PyObject *__pyx_tuple__53; static PyObject *__pyx_tuple__54; static PyObject *__pyx_tuple__55; static PyObject *__pyx_tuple__56; static PyObject *__pyx_tuple__62; static PyObject *__pyx_tuple__63; static PyObject *__pyx_tuple__73; static PyObject *__pyx_tuple__74; static PyObject *__pyx_tuple__76; static PyObject *__pyx_tuple__77; static PyObject *__pyx_tuple__78; static PyObject *__pyx_tuple__79; static PyObject *__pyx_tuple__80; static PyObject *__pyx_tuple__81; static PyObject *__pyx_tuple__82; static PyObject *__pyx_tuple__83; static PyObject *__pyx_tuple__84; static PyObject *__pyx_tuple__85; static PyObject *__pyx_tuple__86; static PyObject *__pyx_tuple__87; static PyObject *__pyx_tuple__89; static PyObject *__pyx_tuple__90; static PyObject *__pyx_tuple__91; static PyObject *__pyx_tuple__92; static PyObject *__pyx_tuple__93; static PyObject *__pyx_slice__133; static PyObject *__pyx_tuple__103; static PyObject *__pyx_tuple__104; static PyObject *__pyx_tuple__105; static PyObject *__pyx_tuple__106; static PyObject *__pyx_tuple__107; static PyObject *__pyx_tuple__108; static PyObject *__pyx_tuple__109; static PyObject *__pyx_tuple__110; static PyObject *__pyx_tuple__111; static PyObject *__pyx_tuple__112; static PyObject *__pyx_tuple__118; static PyObject *__pyx_tuple__119; static PyObject *__pyx_tuple__120; static PyObject *__pyx_tuple__121; static PyObject *__pyx_tuple__122; static PyObject *__pyx_tuple__123; static PyObject *__pyx_tuple__124; static PyObject *__pyx_tuple__125; static PyObject *__pyx_tuple__126; static PyObject *__pyx_tuple__127; static PyObject *__pyx_tuple__128; static PyObject *__pyx_tuple__129; static PyObject *__pyx_tuple__130; static PyObject *__pyx_tuple__131; static PyObject *__pyx_tuple__132; static PyObject *__pyx_tuple__134; static PyObject *__pyx_tuple__135; static PyObject *__pyx_tuple__136; static PyObject *__pyx_tuple__137; static PyObject *__pyx_tuple__145; static PyObject *__pyx_tuple__147; static PyObject *__pyx_tuple__149; static PyObject *__pyx_tuple__151; static PyObject *__pyx_tuple__153; static PyObject *__pyx_tuple__155; static PyObject *__pyx_tuple__157; static PyObject *__pyx_tuple__160; static PyObject *__pyx_tuple__162; static PyObject *__pyx_tuple__164; static PyObject *__pyx_tuple__166; static PyObject *__pyx_tuple__170; static PyObject *__pyx_tuple__180; static PyObject *__pyx_tuple__182; static PyObject *__pyx_tuple__184; static PyObject *__pyx_tuple__190; static PyObject *__pyx_tuple__192; static PyObject *__pyx_tuple__194; static PyObject *__pyx_tuple__196; static PyObject *__pyx_tuple__199; static PyObject *__pyx_tuple__207; static PyObject *__pyx_tuple__209; static PyObject *__pyx_tuple__211; static PyObject *__pyx_tuple__213; static PyObject *__pyx_tuple__215; static PyObject *__pyx_tuple__217; static PyObject *__pyx_tuple__219; static PyObject *__pyx_tuple__221; static PyObject *__pyx_tuple__225; static PyObject *__pyx_tuple__229; static PyObject *__pyx_tuple__231; static PyObject *__pyx_tuple__233; static PyObject *__pyx_tuple__235; static PyObject *__pyx_tuple__237; static PyObject *__pyx_tuple__239; static PyObject *__pyx_tuple__243; static PyObject *__pyx_tuple__251; static PyObject *__pyx_tuple__254; static PyObject *__pyx_tuple__256; static PyObject *__pyx_tuple__258; static PyObject *__pyx_tuple__260; static PyObject *__pyx_tuple__262; static PyObject *__pyx_tuple__264; static PyObject *__pyx_tuple__266; static PyObject *__pyx_tuple__268; static PyObject *__pyx_tuple__270; static PyObject *__pyx_tuple__274; static PyObject *__pyx_tuple__277; static PyObject *__pyx_tuple__280; static PyObject *__pyx_tuple__282; static PyObject *__pyx_tuple__284; static PyObject *__pyx_tuple__287; static PyObject *__pyx_tuple__289; static PyObject *__pyx_tuple__294; static PyObject *__pyx_tuple__296; static PyObject *__pyx_tuple__298; static PyObject *__pyx_tuple__300; static PyObject *__pyx_tuple__302; static PyObject *__pyx_tuple__304; static PyObject *__pyx_tuple__306; static PyObject *__pyx_tuple__308; static PyObject *__pyx_tuple__310; static PyObject *__pyx_tuple__313; static PyObject *__pyx_tuple__315; static PyObject *__pyx_tuple__317; static PyObject *__pyx_tuple__319; static PyObject *__pyx_tuple__321; static PyObject *__pyx_tuple__323; static PyObject *__pyx_tuple__325; static PyObject *__pyx_tuple__327; static PyObject *__pyx_tuple__329; static PyObject *__pyx_tuple__331; static PyObject *__pyx_tuple__333; static PyObject *__pyx_tuple__335; static PyObject *__pyx_tuple__338; static PyObject *__pyx_tuple__340; static PyObject *__pyx_tuple__342; static PyObject *__pyx_tuple__344; static PyObject *__pyx_tuple__346; static PyObject *__pyx_tuple__348; static PyObject *__pyx_tuple__350; static PyObject *__pyx_tuple__352; static PyObject *__pyx_tuple__354; static PyObject *__pyx_tuple__356; static PyObject *__pyx_tuple__358; static PyObject *__pyx_tuple__360; static PyObject *__pyx_tuple__362; static PyObject *__pyx_tuple__364; static PyObject *__pyx_tuple__366; static PyObject *__pyx_tuple__368; static PyObject *__pyx_tuple__370; static PyObject *__pyx_tuple__372; static PyObject *__pyx_tuple__374; static PyObject *__pyx_tuple__376; static PyObject *__pyx_tuple__378; static PyObject *__pyx_tuple__380; static PyObject *__pyx_tuple__382; static PyObject *__pyx_tuple__384; static PyObject *__pyx_tuple__386; static PyObject *__pyx_tuple__388; static PyObject *__pyx_tuple__390; static PyObject *__pyx_tuple__392; static PyObject *__pyx_tuple__394; static PyObject *__pyx_tuple__396; static PyObject *__pyx_tuple__398; static PyObject *__pyx_tuple__400; static PyObject *__pyx_tuple__402; static PyObject *__pyx_tuple__404; static PyObject *__pyx_tuple__406; static PyObject *__pyx_tuple__408; static PyObject *__pyx_tuple__410; static PyObject *__pyx_tuple__412; static PyObject *__pyx_tuple__414; static PyObject *__pyx_tuple__416; static PyObject *__pyx_tuple__418; static PyObject *__pyx_tuple__420; static PyObject *__pyx_tuple__422; static PyObject *__pyx_tuple__424; static PyObject *__pyx_tuple__426; static PyObject *__pyx_tuple__428; static PyObject *__pyx_tuple__431; static PyObject *__pyx_tuple__433; static PyObject *__pyx_tuple__437; static PyObject *__pyx_tuple__453; static PyObject *__pyx_tuple__455; static PyObject *__pyx_tuple__457; static PyObject *__pyx_tuple__459; static PyObject *__pyx_tuple__464; static PyObject *__pyx_tuple__466; static PyObject *__pyx_tuple__468; static PyObject *__pyx_tuple__470; static PyObject *__pyx_tuple__472; static PyObject *__pyx_tuple__474; static PyObject *__pyx_tuple__476; static PyObject *__pyx_tuple__478; static PyObject *__pyx_tuple__480; static PyObject *__pyx_tuple__482; static PyObject *__pyx_tuple__485; static PyObject *__pyx_tuple__488; static PyObject *__pyx_tuple__490; static PyObject *__pyx_tuple__493; static PyObject *__pyx_tuple__495; static PyObject *__pyx_tuple__497; static PyObject *__pyx_tuple__500; static PyObject *__pyx_tuple__502; static PyObject *__pyx_tuple__504; static PyObject *__pyx_tuple__506; static PyObject *__pyx_tuple__508; static PyObject *__pyx_tuple__510; static PyObject *__pyx_tuple__513; static PyObject *__pyx_tuple__515; static PyObject *__pyx_tuple__517; static PyObject *__pyx_tuple__519; static PyObject *__pyx_tuple__522; static PyObject *__pyx_tuple__526; static PyObject *__pyx_tuple__528; static PyObject *__pyx_tuple__530; static PyObject *__pyx_tuple__532; static PyObject *__pyx_tuple__536; static PyObject *__pyx_tuple__538; static PyObject *__pyx_tuple__540; static PyObject *__pyx_tuple__542; static PyObject *__pyx_tuple__545; static PyObject *__pyx_tuple__548; static PyObject *__pyx_tuple__551; static PyObject *__pyx_tuple__553; static PyObject *__pyx_tuple__555; static PyObject *__pyx_tuple__557; static PyObject *__pyx_tuple__561; static PyObject *__pyx_tuple__564; static PyObject *__pyx_tuple__566; static PyObject *__pyx_tuple__574; static PyObject *__pyx_tuple__576; static PyObject *__pyx_tuple__578; static PyObject *__pyx_tuple__582; static PyObject *__pyx_tuple__589; static PyObject *__pyx_tuple__591; static PyObject *__pyx_tuple__593; static PyObject *__pyx_tuple__595; static PyObject *__pyx_tuple__597; static PyObject *__pyx_tuple__600; static PyObject *__pyx_tuple__602; static PyObject *__pyx_tuple__604; static PyObject *__pyx_tuple__605; static PyObject *__pyx_tuple__606; static PyObject *__pyx_tuple__607; static PyObject *__pyx_tuple__608; static PyObject *__pyx_tuple__614; static PyObject *__pyx_tuple__616; static PyObject *__pyx_tuple__618; static PyObject *__pyx_tuple__619; static PyObject *__pyx_tuple__620; static PyObject *__pyx_tuple__621; static PyObject *__pyx_tuple__622; static PyObject *__pyx_tuple__623; static PyObject *__pyx_codeobj__113; static PyObject *__pyx_codeobj__114; static PyObject *__pyx_codeobj__115; static PyObject *__pyx_codeobj__116; static PyObject *__pyx_codeobj__117; static PyObject *__pyx_codeobj__138; static PyObject *__pyx_codeobj__139; static PyObject *__pyx_codeobj__140; static PyObject *__pyx_codeobj__141; static PyObject *__pyx_codeobj__142; static PyObject *__pyx_codeobj__143; static PyObject *__pyx_codeobj__144; static PyObject *__pyx_codeobj__146; static PyObject *__pyx_codeobj__148; static PyObject *__pyx_codeobj__150; static PyObject *__pyx_codeobj__152; static PyObject *__pyx_codeobj__154; static PyObject *__pyx_codeobj__156; static PyObject *__pyx_codeobj__158; static PyObject *__pyx_codeobj__159; static PyObject *__pyx_codeobj__161; static PyObject *__pyx_codeobj__163; static PyObject *__pyx_codeobj__165; static PyObject *__pyx_codeobj__167; static PyObject *__pyx_codeobj__168; static PyObject *__pyx_codeobj__169; static PyObject *__pyx_codeobj__171; static PyObject *__pyx_codeobj__172; static PyObject *__pyx_codeobj__173; static PyObject *__pyx_codeobj__174; static PyObject *__pyx_codeobj__175; static PyObject *__pyx_codeobj__176; static PyObject *__pyx_codeobj__177; static PyObject *__pyx_codeobj__178; static PyObject *__pyx_codeobj__179; static PyObject *__pyx_codeobj__181; static PyObject *__pyx_codeobj__183; static PyObject *__pyx_codeobj__185; static PyObject *__pyx_codeobj__186; static PyObject *__pyx_codeobj__187; static PyObject *__pyx_codeobj__188; static PyObject *__pyx_codeobj__189; static PyObject *__pyx_codeobj__191; static PyObject *__pyx_codeobj__193; static PyObject *__pyx_codeobj__195; static PyObject *__pyx_codeobj__197; static PyObject *__pyx_codeobj__198; static PyObject *__pyx_codeobj__200; static PyObject *__pyx_codeobj__201; static PyObject *__pyx_codeobj__202; static PyObject *__pyx_codeobj__203; static PyObject *__pyx_codeobj__204; static PyObject *__pyx_codeobj__205; static PyObject *__pyx_codeobj__206; static PyObject *__pyx_codeobj__208; static PyObject *__pyx_codeobj__210; static PyObject *__pyx_codeobj__212; static PyObject *__pyx_codeobj__214; static PyObject *__pyx_codeobj__216; static PyObject *__pyx_codeobj__218; static PyObject *__pyx_codeobj__220; static PyObject *__pyx_codeobj__222; static PyObject *__pyx_codeobj__223; static PyObject *__pyx_codeobj__224; static PyObject *__pyx_codeobj__226; static PyObject *__pyx_codeobj__227; static PyObject *__pyx_codeobj__228; static PyObject *__pyx_codeobj__230; static PyObject *__pyx_codeobj__232; static PyObject *__pyx_codeobj__234; static PyObject *__pyx_codeobj__236; static PyObject *__pyx_codeobj__238; static PyObject *__pyx_codeobj__240; static PyObject *__pyx_codeobj__241; static PyObject *__pyx_codeobj__242; static PyObject *__pyx_codeobj__244; static PyObject *__pyx_codeobj__245; static PyObject *__pyx_codeobj__246; static PyObject *__pyx_codeobj__247; static PyObject *__pyx_codeobj__248; static PyObject *__pyx_codeobj__249; static PyObject *__pyx_codeobj__250; static PyObject *__pyx_codeobj__252; static PyObject *__pyx_codeobj__253; static PyObject *__pyx_codeobj__255; static PyObject *__pyx_codeobj__257; static PyObject *__pyx_codeobj__259; static PyObject *__pyx_codeobj__261; static PyObject *__pyx_codeobj__263; static PyObject *__pyx_codeobj__265; static PyObject *__pyx_codeobj__267; static PyObject *__pyx_codeobj__269; static PyObject *__pyx_codeobj__271; static PyObject *__pyx_codeobj__272; static PyObject *__pyx_codeobj__273; static PyObject *__pyx_codeobj__275; static PyObject *__pyx_codeobj__276; static PyObject *__pyx_codeobj__278; static PyObject *__pyx_codeobj__279; static PyObject *__pyx_codeobj__281; static PyObject *__pyx_codeobj__283; static PyObject *__pyx_codeobj__285; static PyObject *__pyx_codeobj__286; static PyObject *__pyx_codeobj__288; static PyObject *__pyx_codeobj__290; static PyObject *__pyx_codeobj__291; static PyObject *__pyx_codeobj__292; static PyObject *__pyx_codeobj__293; static PyObject *__pyx_codeobj__295; static PyObject *__pyx_codeobj__297; static PyObject *__pyx_codeobj__299; static PyObject *__pyx_codeobj__301; static PyObject *__pyx_codeobj__303; static PyObject *__pyx_codeobj__305; static PyObject *__pyx_codeobj__307; static PyObject *__pyx_codeobj__309; static PyObject *__pyx_codeobj__311; static PyObject *__pyx_codeobj__312; static PyObject *__pyx_codeobj__314; static PyObject *__pyx_codeobj__316; static PyObject *__pyx_codeobj__318; static PyObject *__pyx_codeobj__320; static PyObject *__pyx_codeobj__322; static PyObject *__pyx_codeobj__324; static PyObject *__pyx_codeobj__326; static PyObject *__pyx_codeobj__328; static PyObject *__pyx_codeobj__330; static PyObject *__pyx_codeobj__332; static PyObject *__pyx_codeobj__334; static PyObject *__pyx_codeobj__336; static PyObject *__pyx_codeobj__337; static PyObject *__pyx_codeobj__339; static PyObject *__pyx_codeobj__341; static PyObject *__pyx_codeobj__343; static PyObject *__pyx_codeobj__345; static PyObject *__pyx_codeobj__347; static PyObject *__pyx_codeobj__349; static PyObject *__pyx_codeobj__351; static PyObject *__pyx_codeobj__353; static PyObject *__pyx_codeobj__355; static PyObject *__pyx_codeobj__357; static PyObject *__pyx_codeobj__359; static PyObject *__pyx_codeobj__361; static PyObject *__pyx_codeobj__363; static PyObject *__pyx_codeobj__365; static PyObject *__pyx_codeobj__367; static PyObject *__pyx_codeobj__369; static PyObject *__pyx_codeobj__371; static PyObject *__pyx_codeobj__373; static PyObject *__pyx_codeobj__375; static PyObject *__pyx_codeobj__377; static PyObject *__pyx_codeobj__379; static PyObject *__pyx_codeobj__381; static PyObject *__pyx_codeobj__383; static PyObject *__pyx_codeobj__385; static PyObject *__pyx_codeobj__387; static PyObject *__pyx_codeobj__389; static PyObject *__pyx_codeobj__391; static PyObject *__pyx_codeobj__393; static PyObject *__pyx_codeobj__395; static PyObject *__pyx_codeobj__397; static PyObject *__pyx_codeobj__399; static PyObject *__pyx_codeobj__401; static PyObject *__pyx_codeobj__403; static PyObject *__pyx_codeobj__405; static PyObject *__pyx_codeobj__407; static PyObject *__pyx_codeobj__409; static PyObject *__pyx_codeobj__411; static PyObject *__pyx_codeobj__413; static PyObject *__pyx_codeobj__415; static PyObject *__pyx_codeobj__417; static PyObject *__pyx_codeobj__419; static PyObject *__pyx_codeobj__421; static PyObject *__pyx_codeobj__423; static PyObject *__pyx_codeobj__425; static PyObject *__pyx_codeobj__427; static PyObject *__pyx_codeobj__429; static PyObject *__pyx_codeobj__430; static PyObject *__pyx_codeobj__432; static PyObject *__pyx_codeobj__434; static PyObject *__pyx_codeobj__435; static PyObject *__pyx_codeobj__436; static PyObject *__pyx_codeobj__438; static PyObject *__pyx_codeobj__439; static PyObject *__pyx_codeobj__440; static PyObject *__pyx_codeobj__441; static PyObject *__pyx_codeobj__442; static PyObject *__pyx_codeobj__443; static PyObject *__pyx_codeobj__444; static PyObject *__pyx_codeobj__445; static PyObject *__pyx_codeobj__446; static PyObject *__pyx_codeobj__447; static PyObject *__pyx_codeobj__448; static PyObject *__pyx_codeobj__449; static PyObject *__pyx_codeobj__450; static PyObject *__pyx_codeobj__451; static PyObject *__pyx_codeobj__452; static PyObject *__pyx_codeobj__454; static PyObject *__pyx_codeobj__456; static PyObject *__pyx_codeobj__458; static PyObject *__pyx_codeobj__460; static PyObject *__pyx_codeobj__461; static PyObject *__pyx_codeobj__462; static PyObject *__pyx_codeobj__463; static PyObject *__pyx_codeobj__465; static PyObject *__pyx_codeobj__467; static PyObject *__pyx_codeobj__469; static PyObject *__pyx_codeobj__471; static PyObject *__pyx_codeobj__473; static PyObject *__pyx_codeobj__475; static PyObject *__pyx_codeobj__477; static PyObject *__pyx_codeobj__479; static PyObject *__pyx_codeobj__481; static PyObject *__pyx_codeobj__483; static PyObject *__pyx_codeobj__484; static PyObject *__pyx_codeobj__486; static PyObject *__pyx_codeobj__487; static PyObject *__pyx_codeobj__489; static PyObject *__pyx_codeobj__491; static PyObject *__pyx_codeobj__492; static PyObject *__pyx_codeobj__494; static PyObject *__pyx_codeobj__496; static PyObject *__pyx_codeobj__498; static PyObject *__pyx_codeobj__499; static PyObject *__pyx_codeobj__501; static PyObject *__pyx_codeobj__503; static PyObject *__pyx_codeobj__505; static PyObject *__pyx_codeobj__507; static PyObject *__pyx_codeobj__509; static PyObject *__pyx_codeobj__511; static PyObject *__pyx_codeobj__512; static PyObject *__pyx_codeobj__514; static PyObject *__pyx_codeobj__516; static PyObject *__pyx_codeobj__518; static PyObject *__pyx_codeobj__520; static PyObject *__pyx_codeobj__521; static PyObject *__pyx_codeobj__523; static PyObject *__pyx_codeobj__524; static PyObject *__pyx_codeobj__525; static PyObject *__pyx_codeobj__527; static PyObject *__pyx_codeobj__529; static PyObject *__pyx_codeobj__531; static PyObject *__pyx_codeobj__533; static PyObject *__pyx_codeobj__534; static PyObject *__pyx_codeobj__535; static PyObject *__pyx_codeobj__537; static PyObject *__pyx_codeobj__539; static PyObject *__pyx_codeobj__541; static PyObject *__pyx_codeobj__543; static PyObject *__pyx_codeobj__544; static PyObject *__pyx_codeobj__546; static PyObject *__pyx_codeobj__547; static PyObject *__pyx_codeobj__549; static PyObject *__pyx_codeobj__550; static PyObject *__pyx_codeobj__552; static PyObject *__pyx_codeobj__554; static PyObject *__pyx_codeobj__556; static PyObject *__pyx_codeobj__558; static PyObject *__pyx_codeobj__559; static PyObject *__pyx_codeobj__560; static PyObject *__pyx_codeobj__562; static PyObject *__pyx_codeobj__563; static PyObject *__pyx_codeobj__565; static PyObject *__pyx_codeobj__567; static PyObject *__pyx_codeobj__568; static PyObject *__pyx_codeobj__569; static PyObject *__pyx_codeobj__570; static PyObject *__pyx_codeobj__571; static PyObject *__pyx_codeobj__572; static PyObject *__pyx_codeobj__573; static PyObject *__pyx_codeobj__575; static PyObject *__pyx_codeobj__577; static PyObject *__pyx_codeobj__579; static PyObject *__pyx_codeobj__580; static PyObject *__pyx_codeobj__581; static PyObject *__pyx_codeobj__583; static PyObject *__pyx_codeobj__584; static PyObject *__pyx_codeobj__585; static PyObject *__pyx_codeobj__586; static PyObject *__pyx_codeobj__587; static PyObject *__pyx_codeobj__588; static PyObject *__pyx_codeobj__590; static PyObject *__pyx_codeobj__592; static PyObject *__pyx_codeobj__594; static PyObject *__pyx_codeobj__596; static PyObject *__pyx_codeobj__598; static PyObject *__pyx_codeobj__599; static PyObject *__pyx_codeobj__601; static PyObject *__pyx_codeobj__603; static PyObject *__pyx_codeobj__609; static PyObject *__pyx_codeobj__610; static PyObject *__pyx_codeobj__611; static PyObject *__pyx_codeobj__612; static PyObject *__pyx_codeobj__613; static PyObject *__pyx_codeobj__615; static PyObject *__pyx_codeobj__617; static PyObject *__pyx_codeobj__624; /* Late includes */ PyObject *ImGuiError = 0; /* "imgui/common.pyx":13 * * * cdef bytes _bytes(str text): # <<<<<<<<<<<<<< * return (text if PY_MAJOR_VERSION < 3 else text.encode('utf-8')) * */ static PyObject *__pyx_f_5imgui_4core__bytes(PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_bytes", 0); /* "imgui/common.pyx":14 * * cdef bytes _bytes(str text): * return (text if PY_MAJOR_VERSION < 3 else text.encode('utf-8')) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); if (((PY_MAJOR_VERSION < 3) != 0)) { __Pyx_INCREF(__pyx_v_text); __pyx_t_1 = __pyx_v_text; } else { __pyx_t_2 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyString_Type_encode, __pyx_v_text, __pyx_kp_s_utf_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __pyx_t_2; __pyx_t_2 = 0; } __Pyx_INCREF(((PyObject*)__pyx_t_1)); __pyx_r = ((PyObject*)__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/common.pyx":13 * * * cdef bytes _bytes(str text): # <<<<<<<<<<<<<< * return (text if PY_MAJOR_VERSION < 3 else text.encode('utf-8')) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._bytes", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/common.pyx":17 * * * cdef str _from_bytes(bytes text): # <<<<<<<<<<<<<< * return (text if PY_MAJOR_VERSION < 3 else text.decode('utf-8', errors='ignore')) * */ static PyObject *__pyx_f_5imgui_4core__from_bytes(PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_from_bytes", 0); /* "imgui/common.pyx":18 * * cdef str _from_bytes(bytes text): * return (text if PY_MAJOR_VERSION < 3 else text.decode('utf-8', errors='ignore')) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); if (((PY_MAJOR_VERSION < 3) != 0)) { __Pyx_INCREF(__pyx_v_text); __pyx_t_1 = __pyx_v_text; } else { __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_text, __pyx_n_s_decode); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_errors, __pyx_n_s_ignore) < 0) __PYX_ERR(1, 18, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple_, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __pyx_t_4; __pyx_t_4 = 0; } __Pyx_INCREF(((PyObject*)__pyx_t_1)); __pyx_r = ((PyObject*)__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/common.pyx":17 * * * cdef str _from_bytes(bytes text): # <<<<<<<<<<<<<< * return (text if PY_MAJOR_VERSION < 3 else text.decode('utf-8', errors='ignore')) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._from_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/common.pyx":21 * * * cdef _cast_ImVec2_tuple(cimgui.ImVec2 vec): # noqa # <<<<<<<<<<<<<< * return Vec2(vec.x, vec.y) * */ static PyObject *__pyx_f_5imgui_4core__cast_ImVec2_tuple(ImVec2 __pyx_v_vec) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_cast_ImVec2_tuple", 0); /* "imgui/common.pyx":22 * * cdef _cast_ImVec2_tuple(cimgui.ImVec2 vec): # noqa * return Vec2(vec.x, vec.y) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_Vec2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyFloat_FromDouble(__pyx_v_vec.x); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyFloat_FromDouble(__pyx_v_vec.y); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 22, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 22, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_4); __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/common.pyx":21 * * * cdef _cast_ImVec2_tuple(cimgui.ImVec2 vec): # noqa # <<<<<<<<<<<<<< * return Vec2(vec.x, vec.y) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._cast_ImVec2_tuple", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/common.pyx":25 * * * cdef cimgui.ImVec2 _cast_tuple_ImVec2(pair) except *: # noqa # <<<<<<<<<<<<<< * cdef cimgui.ImVec2 vec * */ static ImVec2 __pyx_f_5imgui_4core__cast_tuple_ImVec2(PyObject *__pyx_v_pair) { ImVec2 __pyx_v_vec; ImVec2 __pyx_r; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *(*__pyx_t_6)(PyObject *); float __pyx_t_7; float __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_cast_tuple_ImVec2", 0); /* "imgui/common.pyx":28 * cdef cimgui.ImVec2 vec * * if len(pair) != 2: # <<<<<<<<<<<<<< * raise ValueError("pair param must be length of 2") * */ __pyx_t_1 = PyObject_Length(__pyx_v_pair); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 28, __pyx_L1_error) __pyx_t_2 = ((__pyx_t_1 != 2) != 0); if (unlikely(__pyx_t_2)) { /* "imgui/common.pyx":29 * * if len(pair) != 2: * raise ValueError("pair param must be length of 2") # <<<<<<<<<<<<<< * * vec.x, vec.y = pair */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(1, 29, __pyx_L1_error) /* "imgui/common.pyx":28 * cdef cimgui.ImVec2 vec * * if len(pair) != 2: # <<<<<<<<<<<<<< * raise ValueError("pair param must be length of 2") * */ } /* "imgui/common.pyx":31 * raise ValueError("pair param must be length of 2") * * vec.x, vec.y = pair # <<<<<<<<<<<<<< * * return vec */ if ((likely(PyTuple_CheckExact(__pyx_v_pair))) || (PyList_CheckExact(__pyx_v_pair))) { PyObject* sequence = __pyx_v_pair; Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); __PYX_ERR(1, 31, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_3 = PyList_GET_ITEM(sequence, 0); __pyx_t_4 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); #else __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { Py_ssize_t index = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_pair); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext; index = 0; __pyx_t_3 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_3)) goto __pyx_L4_unpacking_failed; __Pyx_GOTREF(__pyx_t_3); index = 1; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L4_unpacking_failed; __Pyx_GOTREF(__pyx_t_4); if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 2) < 0) __PYX_ERR(1, 31, __pyx_L1_error) __pyx_t_6 = NULL; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L5_unpacking_done; __pyx_L4_unpacking_failed:; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_6 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); __PYX_ERR(1, 31, __pyx_L1_error) __pyx_L5_unpacking_done:; } __pyx_t_7 = __pyx_PyFloat_AsFloat(__pyx_t_3); if (unlikely((__pyx_t_7 == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_8 = __pyx_PyFloat_AsFloat(__pyx_t_4); if (unlikely((__pyx_t_8 == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_vec.x = __pyx_t_7; __pyx_v_vec.y = __pyx_t_8; /* "imgui/common.pyx":33 * vec.x, vec.y = pair * * return vec # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_vec; goto __pyx_L0; /* "imgui/common.pyx":25 * * * cdef cimgui.ImVec2 _cast_tuple_ImVec2(pair) except *: # noqa # <<<<<<<<<<<<<< * cdef cimgui.ImVec2 vec * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core._cast_tuple_ImVec2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_pretend_to_initialize(&__pyx_r); __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/common.pyx":36 * * * cdef cimgui.ImVec2 _cast_args_ImVec2(float x, float y) except *: # noqa # <<<<<<<<<<<<<< * cdef cimgui.ImVec2 vec * */ static ImVec2 __pyx_f_5imgui_4core__cast_args_ImVec2(float __pyx_v_x, float __pyx_v_y) { ImVec2 __pyx_v_vec; ImVec2 __pyx_r; __Pyx_RefNannyDeclarations float __pyx_t_1; float __pyx_t_2; __Pyx_RefNannySetupContext("_cast_args_ImVec2", 0); /* "imgui/common.pyx":39 * cdef cimgui.ImVec2 vec * * vec.x, vec.y = x, y # <<<<<<<<<<<<<< * * return vec */ __pyx_t_1 = __pyx_v_x; __pyx_t_2 = __pyx_v_y; __pyx_v_vec.x = __pyx_t_1; __pyx_v_vec.y = __pyx_t_2; /* "imgui/common.pyx":41 * vec.x, vec.y = x, y * * return vec # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_vec; goto __pyx_L0; /* "imgui/common.pyx":36 * * * cdef cimgui.ImVec2 _cast_args_ImVec2(float x, float y) except *: # noqa # <<<<<<<<<<<<<< * cdef cimgui.ImVec2 vec * */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/common.pyx":44 * * * cdef cimgui.ImVec4 _cast_tuple_ImVec4(quadruple): # noqa # <<<<<<<<<<<<<< * cdef cimgui.ImVec4 vec * */ static ImVec4 __pyx_f_5imgui_4core__cast_tuple_ImVec4(PyObject *__pyx_v_quadruple) { ImVec4 __pyx_v_vec; ImVec4 __pyx_r; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *(*__pyx_t_8)(PyObject *); float __pyx_t_9; float __pyx_t_10; float __pyx_t_11; float __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_cast_tuple_ImVec4", 0); /* "imgui/common.pyx":47 * cdef cimgui.ImVec4 vec * * if len(quadruple) != 4: # <<<<<<<<<<<<<< * raise ValueError("quadruple param must be length of 4") * */ __pyx_t_1 = PyObject_Length(__pyx_v_quadruple); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 47, __pyx_L1_error) __pyx_t_2 = ((__pyx_t_1 != 4) != 0); if (unlikely(__pyx_t_2)) { /* "imgui/common.pyx":48 * * if len(quadruple) != 4: * raise ValueError("quadruple param must be length of 4") # <<<<<<<<<<<<<< * * vec.x, vec.y, vec.z, vec.w = quadruple */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(1, 48, __pyx_L1_error) /* "imgui/common.pyx":47 * cdef cimgui.ImVec4 vec * * if len(quadruple) != 4: # <<<<<<<<<<<<<< * raise ValueError("quadruple param must be length of 4") * */ } /* "imgui/common.pyx":50 * raise ValueError("quadruple param must be length of 4") * * vec.x, vec.y, vec.z, vec.w = quadruple # <<<<<<<<<<<<<< * * return vec */ if ((likely(PyTuple_CheckExact(__pyx_v_quadruple))) || (PyList_CheckExact(__pyx_v_quadruple))) { PyObject* sequence = __pyx_v_quadruple; Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); if (unlikely(size != 4)) { if (size > 4) __Pyx_RaiseTooManyValuesError(4); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); __PYX_ERR(1, 50, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); __pyx_t_5 = PyTuple_GET_ITEM(sequence, 2); __pyx_t_6 = PyTuple_GET_ITEM(sequence, 3); } else { __pyx_t_3 = PyList_GET_ITEM(sequence, 0); __pyx_t_4 = PyList_GET_ITEM(sequence, 1); __pyx_t_5 = PyList_GET_ITEM(sequence, 2); __pyx_t_6 = PyList_GET_ITEM(sequence, 3); } __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); #else { Py_ssize_t i; PyObject** temps[4] = {&__pyx_t_3,&__pyx_t_4,&__pyx_t_5,&__pyx_t_6}; for (i=0; i < 4; i++) { PyObject* item = PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(1, 50, __pyx_L1_error) __Pyx_GOTREF(item); *(temps[i]) = item; } } #endif } else { Py_ssize_t index = -1; PyObject** temps[4] = {&__pyx_t_3,&__pyx_t_4,&__pyx_t_5,&__pyx_t_6}; __pyx_t_7 = PyObject_GetIter(__pyx_v_quadruple); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext; for (index=0; index < 4; index++) { PyObject* item = __pyx_t_8(__pyx_t_7); if (unlikely(!item)) goto __pyx_L4_unpacking_failed; __Pyx_GOTREF(item); *(temps[index]) = item; } if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 4) < 0) __PYX_ERR(1, 50, __pyx_L1_error) __pyx_t_8 = NULL; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L5_unpacking_done; __pyx_L4_unpacking_failed:; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_8 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); __PYX_ERR(1, 50, __pyx_L1_error) __pyx_L5_unpacking_done:; } __pyx_t_9 = __pyx_PyFloat_AsFloat(__pyx_t_3); if (unlikely((__pyx_t_9 == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 50, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_t_4); if (unlikely((__pyx_t_10 == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 50, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_11 = __pyx_PyFloat_AsFloat(__pyx_t_5); if (unlikely((__pyx_t_11 == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 50, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_12 = __pyx_PyFloat_AsFloat(__pyx_t_6); if (unlikely((__pyx_t_12 == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 50, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_vec.x = __pyx_t_9; __pyx_v_vec.y = __pyx_t_10; __pyx_v_vec.z = __pyx_t_11; __pyx_v_vec.w = __pyx_t_12; /* "imgui/common.pyx":52 * vec.x, vec.y, vec.z, vec.w = quadruple * * return vec # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_vec; goto __pyx_L0; /* "imgui/common.pyx":44 * * * cdef cimgui.ImVec4 _cast_tuple_ImVec4(quadruple): # noqa # <<<<<<<<<<<<<< * cdef cimgui.ImVec4 vec * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_WriteUnraisable("imgui.core._cast_tuple_ImVec4", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __Pyx_pretend_to_initialize(&__pyx_r); __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/common.pyx":55 * * * cdef cimgui.ImVec4 _cast_args_ImVec4(float x, float y, float z, float w): # noqa # <<<<<<<<<<<<<< * cdef cimgui.ImVec4 vec * */ static ImVec4 __pyx_f_5imgui_4core__cast_args_ImVec4(float __pyx_v_x, float __pyx_v_y, float __pyx_v_z, float __pyx_v_w) { ImVec4 __pyx_v_vec; ImVec4 __pyx_r; __Pyx_RefNannyDeclarations float __pyx_t_1; float __pyx_t_2; float __pyx_t_3; float __pyx_t_4; __Pyx_RefNannySetupContext("_cast_args_ImVec4", 0); /* "imgui/common.pyx":58 * cdef cimgui.ImVec4 vec * * vec.x, vec.y, vec.z, vec.w = x, y, z, w # <<<<<<<<<<<<<< * * return vec */ __pyx_t_1 = __pyx_v_x; __pyx_t_2 = __pyx_v_y; __pyx_t_3 = __pyx_v_z; __pyx_t_4 = __pyx_v_w; __pyx_v_vec.x = __pyx_t_1; __pyx_v_vec.y = __pyx_t_2; __pyx_v_vec.z = __pyx_t_3; __pyx_v_vec.w = __pyx_t_4; /* "imgui/common.pyx":60 * vec.x, vec.y, vec.z, vec.w = x, y, z, w * * return vec # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_vec; goto __pyx_L0; /* "imgui/common.pyx":55 * * * cdef cimgui.ImVec4 _cast_args_ImVec4(float x, float y, float z, float w): # noqa # <<<<<<<<<<<<<< * cdef cimgui.ImVec4 vec * */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/common.pyx":63 * * * cdef _cast_ImVec4_tuple(cimgui.ImVec4 vec): # noqa # <<<<<<<<<<<<<< * return Vec4(vec.x, vec.y, vec.z, vec.w) * */ static PyObject *__pyx_f_5imgui_4core__cast_ImVec4_tuple(ImVec4 __pyx_v_vec) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_cast_ImVec4_tuple", 0); /* "imgui/common.pyx":64 * * cdef _cast_ImVec4_tuple(cimgui.ImVec4 vec): # noqa * return Vec4(vec.x, vec.y, vec.z, vec.w) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_Vec4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyFloat_FromDouble(__pyx_v_vec.x); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyFloat_FromDouble(__pyx_v_vec.y); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyFloat_FromDouble(__pyx_v_vec.z); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyFloat_FromDouble(__pyx_v_vec.w); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[5] = {__pyx_t_7, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 4+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[5] = {__pyx_t_7, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 4+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_9 = PyTuple_New(4+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 3+__pyx_t_8, __pyx_t_6); __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/common.pyx":63 * * * cdef _cast_ImVec4_tuple(cimgui.ImVec4 vec): # noqa # <<<<<<<<<<<<<< * return Vec4(vec.x, vec.y, vec.z, vec.w) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core._cast_ImVec4_tuple", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":585 * * @staticmethod * cdef from_ptr(cimgui.ImGuiContext* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_13_ImGuiContext_from_ptr(ImGuiContext *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":586 * @staticmethod * cdef from_ptr(cimgui.ImGuiContext* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":587 * cdef from_ptr(cimgui.ImGuiContext* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * if (ptr) not in _contexts: */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":586 * @staticmethod * cdef from_ptr(cimgui.ImGuiContext* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":589 * return None * * if (ptr) not in _contexts: # <<<<<<<<<<<<<< * instance = _ImGuiContext() * instance._ptr = ptr */ __pyx_t_2 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_contexts); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_t_2, __pyx_t_3, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 589, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (__pyx_t_1 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":590 * * if (ptr) not in _contexts: * instance = _ImGuiContext() # <<<<<<<<<<<<<< * instance._ptr = ptr * _contexts[ptr] = instance */ __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__ImGuiContext)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 590, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__ImGuiContext *)__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":591 * if (ptr) not in _contexts: * instance = _ImGuiContext() * instance._ptr = ptr # <<<<<<<<<<<<<< * _contexts[ptr] = instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":592 * instance = _ImGuiContext() * instance._ptr = ptr * _contexts[ptr] = instance # <<<<<<<<<<<<<< * * return _contexts[ptr] */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_contexts); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__Pyx_SetItemInt(__pyx_t_3, ((uintptr_t)__pyx_v_ptr), ((PyObject *)__pyx_v_instance), uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1) < 0)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":589 * return None * * if (ptr) not in _contexts: # <<<<<<<<<<<<<< * instance = _ImGuiContext() * instance._ptr = ptr */ } /* "imgui/core.pyx":594 * _contexts[ptr] = instance * * return _contexts[ptr] # <<<<<<<<<<<<<< * * def __eq__(_ImGuiContext self, _ImGuiContext other): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_contexts); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_3, ((uintptr_t)__pyx_v_ptr), uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":585 * * @staticmethod * cdef from_ptr(cimgui.ImGuiContext* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiContext.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":596 * return _contexts[ptr] * * def __eq__(_ImGuiContext self, _ImGuiContext other): # <<<<<<<<<<<<<< * return other._ptr == self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_ImGuiContext_1__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_13_ImGuiContext_1__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_5imgui_4core__ImGuiContext, 1, "other", 0))) __PYX_ERR(0, 596, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_13_ImGuiContext___eq__(((struct __pyx_obj_5imgui_4core__ImGuiContext *)__pyx_v_self), ((struct __pyx_obj_5imgui_4core__ImGuiContext *)__pyx_v_other)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_ImGuiContext___eq__(struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_self, struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":597 * * def __eq__(_ImGuiContext self, _ImGuiContext other): * return other._ptr == self._ptr # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_other->_ptr == __pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":596 * return _contexts[ptr] * * def __eq__(_ImGuiContext self, _ImGuiContext other): # <<<<<<<<<<<<<< * return other._ptr == self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiContext.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_ImGuiContext_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_13_ImGuiContext_2__reduce_cython__[] = "_ImGuiContext.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_13_ImGuiContext_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_ImGuiContext_2__reduce_cython__(((struct __pyx_obj_5imgui_4core__ImGuiContext *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_ImGuiContext_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiContext.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_ImGuiContext_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_13_ImGuiContext_4__setstate_cython__[] = "_ImGuiContext.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_13_ImGuiContext_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_ImGuiContext_4__setstate_cython__(((struct __pyx_obj_5imgui_4core__ImGuiContext *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_ImGuiContext_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiContext.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":606 * # see: http://cython.readthedocs.io/en/latest/src/userguide/extension_types.html#fast-instantiation * @staticmethod * cdef from_ptr(cimgui.ImDrawCmd* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_8_DrawCmd_from_ptr(ImDrawCmd *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":607 * @staticmethod * cdef from_ptr(cimgui.ImDrawCmd* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":608 * cdef from_ptr(cimgui.ImDrawCmd* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _DrawCmd() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":607 * @staticmethod * cdef from_ptr(cimgui.ImDrawCmd* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":610 * return None * * instance = _DrawCmd() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__DrawCmd)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__DrawCmd *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":611 * * instance = _DrawCmd() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":612 * instance = _DrawCmd() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":606 * # see: http://cython.readthedocs.io/en/latest/src/userguide/extension_types.html#fast-instantiation * @staticmethod * cdef from_ptr(cimgui.ImDrawCmd* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._DrawCmd.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":615 * * @property * def texture_id(self): # <<<<<<<<<<<<<< * return self._ptr.TextureId * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_10texture_id_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_10texture_id_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8_DrawCmd_10texture_id___get__(((struct __pyx_obj_5imgui_4core__DrawCmd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd_10texture_id___get__(struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":616 * @property * def texture_id(self): * return self._ptr.TextureId # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self->_ptr->TextureId)); __pyx_r = ((PyObject *)__pyx_v_self->_ptr->TextureId); goto __pyx_L0; /* "imgui/core.pyx":615 * * @property * def texture_id(self): # <<<<<<<<<<<<<< * return self._ptr.TextureId * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":619 * * @property * def clip_rect(self): # <<<<<<<<<<<<<< * return _cast_ImVec4_tuple(self._ptr.ClipRect) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_9clip_rect_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_9clip_rect_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8_DrawCmd_9clip_rect___get__(((struct __pyx_obj_5imgui_4core__DrawCmd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd_9clip_rect___get__(struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":620 * @property * def clip_rect(self): * return _cast_ImVec4_tuple(self._ptr.ClipRect) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec4_tuple(__pyx_v_self->_ptr->ClipRect); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":619 * * @property * def clip_rect(self): # <<<<<<<<<<<<<< * return _cast_ImVec4_tuple(self._ptr.ClipRect) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawCmd.clip_rect.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":623 * * @property * def elem_count(self): # <<<<<<<<<<<<<< * return self._ptr.ElemCount * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_10elem_count_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_10elem_count_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8_DrawCmd_10elem_count___get__(((struct __pyx_obj_5imgui_4core__DrawCmd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd_10elem_count___get__(struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":624 * @property * def elem_count(self): * return self._ptr.ElemCount # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->_ptr->ElemCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":623 * * @property * def elem_count(self): # <<<<<<<<<<<<<< * return self._ptr.ElemCount * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawCmd.elem_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_8_DrawCmd___reduce_cython__[] = "_DrawCmd.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8_DrawCmd___reduce_cython__(((struct __pyx_obj_5imgui_4core__DrawCmd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawCmd.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_8_DrawCmd_2__setstate_cython__[] = "_DrawCmd.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_8_DrawCmd_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8_DrawCmd_2__setstate_cython__(((struct __pyx_obj_5imgui_4core__DrawCmd *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8_DrawCmd_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawCmd *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawCmd.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":635 * * @staticmethod * cdef from_ptr(cimgui.ImDrawList* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_9_DrawList_from_ptr(ImDrawList *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":636 * @staticmethod * cdef from_ptr(cimgui.ImDrawList* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":637 * cdef from_ptr(cimgui.ImDrawList* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _DrawList() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":636 * @staticmethod * cdef from_ptr(cimgui.ImDrawList* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":639 * return None * * instance = _DrawList() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__DrawList)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":640 * * instance = _DrawList() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":641 * instance = _DrawList() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":635 * * @staticmethod * cdef from_ptr(cimgui.ImDrawList* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._DrawList.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":644 * * @property * def cmd_buffer_size(self): # <<<<<<<<<<<<<< * return self._ptr.CmdBuffer.Size * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15cmd_buffer_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15cmd_buffer_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_15cmd_buffer_size___get__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15cmd_buffer_size___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":645 * @property * def cmd_buffer_size(self): * return self._ptr.CmdBuffer.Size # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->CmdBuffer.Size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":644 * * @property * def cmd_buffer_size(self): # <<<<<<<<<<<<<< * return self._ptr.CmdBuffer.Size * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.cmd_buffer_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":648 * * @property * def cmd_buffer_data(self): # <<<<<<<<<<<<<< * return self._ptr.CmdBuffer.Data * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15cmd_buffer_data_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15cmd_buffer_data_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_15cmd_buffer_data___get__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15cmd_buffer_data___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":649 * @property * def cmd_buffer_data(self): * return self._ptr.CmdBuffer.Data # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_ptr->CmdBuffer.Data)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":648 * * @property * def cmd_buffer_data(self): # <<<<<<<<<<<<<< * return self._ptr.CmdBuffer.Data * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.cmd_buffer_data.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":652 * * @property * def vtx_buffer_size(self): # <<<<<<<<<<<<<< * return self._ptr.VtxBuffer.Size * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15vtx_buffer_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15vtx_buffer_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_15vtx_buffer_size___get__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15vtx_buffer_size___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":653 * @property * def vtx_buffer_size(self): * return self._ptr.VtxBuffer.Size # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->VtxBuffer.Size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":652 * * @property * def vtx_buffer_size(self): # <<<<<<<<<<<<<< * return self._ptr.VtxBuffer.Size * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.vtx_buffer_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":656 * * @property * def vtx_buffer_data(self): # <<<<<<<<<<<<<< * return self._ptr.VtxBuffer.Data * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15vtx_buffer_data_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15vtx_buffer_data_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_15vtx_buffer_data___get__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15vtx_buffer_data___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":657 * @property * def vtx_buffer_data(self): * return self._ptr.VtxBuffer.Data # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_ptr->VtxBuffer.Data)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":656 * * @property * def vtx_buffer_data(self): # <<<<<<<<<<<<<< * return self._ptr.VtxBuffer.Data * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.vtx_buffer_data.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":660 * * @property * def idx_buffer_size(self): # <<<<<<<<<<<<<< * return self._ptr.IdxBuffer.Size * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15idx_buffer_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15idx_buffer_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_15idx_buffer_size___get__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15idx_buffer_size___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":661 * @property * def idx_buffer_size(self): * return self._ptr.IdxBuffer.Size # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->IdxBuffer.Size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":660 * * @property * def idx_buffer_size(self): # <<<<<<<<<<<<<< * return self._ptr.IdxBuffer.Size * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.idx_buffer_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":664 * * @property * def idx_buffer_data(self): # <<<<<<<<<<<<<< * return self._ptr.IdxBuffer.Data * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15idx_buffer_data_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15idx_buffer_data_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_15idx_buffer_data___get__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_15idx_buffer_data___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":665 * @property * def idx_buffer_data(self): * return self._ptr.IdxBuffer.Data # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_ptr->IdxBuffer.Data)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":664 * * @property * def idx_buffer_data(self): # <<<<<<<<<<<<<< * return self._ptr.IdxBuffer.Data * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.idx_buffer_data.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":668 * * @property * def flags(self): # <<<<<<<<<<<<<< * return self._ptr.Flags * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_5flags_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_5flags___get__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_5flags___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":669 * @property * def flags(self): * return self._ptr.Flags # <<<<<<<<<<<<<< * * @flags.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImDrawListFlags(__pyx_v_self->_ptr->Flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":668 * * @property * def flags(self): # <<<<<<<<<<<<<< * return self._ptr.Flags * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":672 * * @flags.setter * def flags(self, cimgui.ImDrawListFlags flags): # <<<<<<<<<<<<<< * self._ptr.Flags = flags * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_9_DrawList_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_5imgui_4core_9_DrawList_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) { ImDrawListFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_flags); { __pyx_v_flags = __Pyx_PyInt_As_ImDrawListFlags(__pyx_arg_flags); if (unlikely((__pyx_v_flags == ((ImDrawListFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 672, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_5flags_2__set__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), ((ImDrawListFlags)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_9_DrawList_5flags_2__set__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, ImDrawListFlags __pyx_v_flags) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":673 * @flags.setter * def flags(self, cimgui.ImDrawListFlags flags): * self._ptr.Flags = flags # <<<<<<<<<<<<<< * * def push_clip_rect( */ __pyx_v_self->_ptr->Flags = __pyx_v_flags; /* "imgui/core.pyx":672 * * @flags.setter * def flags(self, cimgui.ImDrawListFlags flags): # <<<<<<<<<<<<<< * self._ptr.Flags = flags * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":675 * self._ptr.Flags = flags * * def push_clip_rect( # <<<<<<<<<<<<<< * self, * float clip_rect_min_x, float clip_rect_min_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_1push_clip_rect(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_push_clip_rect[] = "_DrawList.push_clip_rect(self, float clip_rect_min_x, float clip_rect_min_y, float clip_rect_max_x, float clip_rect_max_y, bool intersect_with_current_clip_rect=False)\nRender-level scissoring. This is passed down to your render function \n but not used for CPU-side coarse clipping. Prefer using higher-level :func:`push_clip_rect()` \n to affect logic (hit-testing and widget culling)\n \n .. wraps::\n void PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect = false)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_1push_clip_rect(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_clip_rect_min_x; float __pyx_v_clip_rect_min_y; float __pyx_v_clip_rect_max_x; float __pyx_v_clip_rect_max_y; bool __pyx_v_intersect_with_current_clip_rect; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_clip_rect (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_clip_rect_min_x,&__pyx_n_s_clip_rect_min_y,&__pyx_n_s_clip_rect_max_x,&__pyx_n_s_clip_rect_max_y,&__pyx_n_s_intersect_with_current_clip_rect,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip_rect_min_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip_rect_min_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_clip_rect", 0, 4, 5, 1); __PYX_ERR(0, 675, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip_rect_max_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_clip_rect", 0, 4, 5, 2); __PYX_ERR(0, 675, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip_rect_max_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_clip_rect", 0, 4, 5, 3); __PYX_ERR(0, 675, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_intersect_with_current_clip_rect); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "push_clip_rect") < 0)) __PYX_ERR(0, 675, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_clip_rect_min_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_clip_rect_min_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 677, __pyx_L3_error) __pyx_v_clip_rect_min_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_clip_rect_min_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 677, __pyx_L3_error) __pyx_v_clip_rect_max_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_clip_rect_max_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 678, __pyx_L3_error) __pyx_v_clip_rect_max_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_clip_rect_max_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 678, __pyx_L3_error) if (values[4]) { __pyx_v_intersect_with_current_clip_rect = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_intersect_with_current_clip_rect == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 679, __pyx_L3_error) } else { /* "imgui/core.pyx":679 * float clip_rect_min_x, float clip_rect_min_y, * float clip_rect_max_x, float clip_rect_max_y, * bool intersect_with_current_clip_rect = False # <<<<<<<<<<<<<< * ): * """Render-level scissoring. This is passed down to your render function */ __pyx_v_intersect_with_current_clip_rect = ((bool)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("push_clip_rect", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 675, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.push_clip_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_push_clip_rect(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_clip_rect_min_x, __pyx_v_clip_rect_min_y, __pyx_v_clip_rect_max_x, __pyx_v_clip_rect_max_y, __pyx_v_intersect_with_current_clip_rect); /* "imgui/core.pyx":675 * self._ptr.Flags = flags * * def push_clip_rect( # <<<<<<<<<<<<<< * self, * float clip_rect_min_x, float clip_rect_min_y, */ /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_push_clip_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_clip_rect_min_x, float __pyx_v_clip_rect_min_y, float __pyx_v_clip_rect_max_x, float __pyx_v_clip_rect_max_y, bool __pyx_v_intersect_with_current_clip_rect) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_clip_rect", 0); /* "imgui/core.pyx":689 * """ * self._ptr.PushClipRect( * _cast_args_ImVec2(clip_rect_min_x, clip_rect_min_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(clip_rect_max_x, clip_rect_max_y), * intersect_with_current_clip_rect */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_clip_rect_min_x, __pyx_v_clip_rect_min_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 689, __pyx_L1_error) /* "imgui/core.pyx":690 * self._ptr.PushClipRect( * _cast_args_ImVec2(clip_rect_min_x, clip_rect_min_y), * _cast_args_ImVec2(clip_rect_max_x, clip_rect_max_y), # <<<<<<<<<<<<<< * intersect_with_current_clip_rect * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_clip_rect_max_x, __pyx_v_clip_rect_max_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 690, __pyx_L1_error) /* "imgui/core.pyx":688 * void PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect = false) * """ * self._ptr.PushClipRect( # <<<<<<<<<<<<<< * _cast_args_ImVec2(clip_rect_min_x, clip_rect_min_y), * _cast_args_ImVec2(clip_rect_max_x, clip_rect_max_y), */ try { __pyx_v_self->_ptr->PushClipRect(__pyx_t_1, __pyx_t_2, __pyx_v_intersect_with_current_clip_rect); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 688, __pyx_L1_error) } /* "imgui/core.pyx":675 * self._ptr.Flags = flags * * def push_clip_rect( # <<<<<<<<<<<<<< * self, * float clip_rect_min_x, float clip_rect_min_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.push_clip_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":694 * ) * * def push_clip_rect_full_screen(self): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_3push_clip_rect_full_screen(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_2push_clip_rect_full_screen[] = "_DrawList.push_clip_rect_full_screen(self)\n\n .. wraps::\n void PushClipRectFullScreen()\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_3push_clip_rect_full_screen(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_clip_rect_full_screen (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_2push_clip_rect_full_screen(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_2push_clip_rect_full_screen(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_clip_rect_full_screen", 0); /* "imgui/core.pyx":699 * void PushClipRectFullScreen() * """ * self._ptr.PushClipRectFullScreen() # <<<<<<<<<<<<<< * * def pop_clip_rect(self): */ try { __pyx_v_self->_ptr->PushClipRectFullScreen(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 699, __pyx_L1_error) } /* "imgui/core.pyx":694 * ) * * def push_clip_rect_full_screen(self): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.push_clip_rect_full_screen", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":701 * self._ptr.PushClipRectFullScreen() * * def pop_clip_rect(self): # <<<<<<<<<<<<<< * """Render-level scisoring. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_5pop_clip_rect(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_4pop_clip_rect[] = "_DrawList.pop_clip_rect(self)\nRender-level scisoring. \n \n .. wraps::\n void PopClipRect()\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_5pop_clip_rect(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_clip_rect (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_4pop_clip_rect(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_4pop_clip_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_clip_rect", 0); /* "imgui/core.pyx":707 * void PopClipRect() * """ * self._ptr.PopClipRect() # <<<<<<<<<<<<<< * * def push_texture_id(self, texture_id): */ try { __pyx_v_self->_ptr->PopClipRect(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 707, __pyx_L1_error) } /* "imgui/core.pyx":701 * self._ptr.PushClipRectFullScreen() * * def pop_clip_rect(self): # <<<<<<<<<<<<<< * """Render-level scisoring. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.pop_clip_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":709 * self._ptr.PopClipRect() * * def push_texture_id(self, texture_id): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_7push_texture_id(PyObject *__pyx_v_self, PyObject *__pyx_v_texture_id); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_6push_texture_id[] = "_DrawList.push_texture_id(self, texture_id)\n\n .. wraps::\n void PushTextureID(ImTextureID texture_id)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_7push_texture_id(PyObject *__pyx_v_self, PyObject *__pyx_v_texture_id) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_texture_id (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_6push_texture_id(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), ((PyObject *)__pyx_v_texture_id)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_6push_texture_id(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, PyObject *__pyx_v_texture_id) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_texture_id", 0); /* "imgui/core.pyx":714 * void PushTextureID(ImTextureID texture_id) * """ * get_current_context()._keepalive_cache.append(texture_id) # <<<<<<<<<<<<<< * self._ptr.PushTextureID(texture_id) * */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_get_current_context); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_keepalive_cache); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_v_texture_id); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":715 * """ * get_current_context()._keepalive_cache.append(texture_id) * self._ptr.PushTextureID(texture_id) # <<<<<<<<<<<<<< * * */ try { __pyx_v_self->_ptr->PushTextureID(((void *)__pyx_v_texture_id)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 715, __pyx_L1_error) } /* "imgui/core.pyx":709 * self._ptr.PopClipRect() * * def push_texture_id(self, texture_id): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawList.push_texture_id", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":718 * * * def pop_texture_id(self): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_9pop_texture_id(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_8pop_texture_id[] = "_DrawList.pop_texture_id(self)\n\n .. wraps::\n void PopTextureID()\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_9pop_texture_id(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_texture_id (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_8pop_texture_id(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_8pop_texture_id(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_texture_id", 0); /* "imgui/core.pyx":723 * void PopTextureID() * """ * self._ptr.PopTextureID() # <<<<<<<<<<<<<< * * def get_clip_rect_min(self): */ try { __pyx_v_self->_ptr->PopTextureID(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 723, __pyx_L1_error) } /* "imgui/core.pyx":718 * * * def pop_texture_id(self): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.pop_texture_id", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":725 * self._ptr.PopTextureID() * * def get_clip_rect_min(self): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_11get_clip_rect_min(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_10get_clip_rect_min[] = "_DrawList.get_clip_rect_min(self)\n\n .. wraps::\n ImVec2 GetClipRectMin()\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_11get_clip_rect_min(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_clip_rect_min (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_10get_clip_rect_min(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_10get_clip_rect_min(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_clip_rect_min", 0); /* "imgui/core.pyx":730 * ImVec2 GetClipRectMin() * """ * return _cast_ImVec2_tuple(self._ptr.GetClipRectMin()) # <<<<<<<<<<<<<< * * def get_clip_rect_max(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetClipRectMin(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 730, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":725 * self._ptr.PopTextureID() * * def get_clip_rect_min(self): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._DrawList.get_clip_rect_min", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":732 * return _cast_ImVec2_tuple(self._ptr.GetClipRectMin()) * * def get_clip_rect_max(self): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_13get_clip_rect_max(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_12get_clip_rect_max[] = "_DrawList.get_clip_rect_max(self)\n\n .. wraps::\n ImVec2 GetClipRectMax()\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_13get_clip_rect_max(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_clip_rect_max (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_12get_clip_rect_max(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_12get_clip_rect_max(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_clip_rect_max", 0); /* "imgui/core.pyx":737 * ImVec2 GetClipRectMax() * """ * return _cast_ImVec2_tuple(self._ptr.GetClipRectMax()) # <<<<<<<<<<<<<< * * def add_line( */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetClipRectMax(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 737, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":732 * return _cast_ImVec2_tuple(self._ptr.GetClipRectMin()) * * def get_clip_rect_max(self): # <<<<<<<<<<<<<< * """ * .. wraps:: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._DrawList.get_clip_rect_max", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":739 * return _cast_ImVec2_tuple(self._ptr.GetClipRectMax()) * * def add_line( # <<<<<<<<<<<<<< * self, * float start_x, float start_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15add_line(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_14add_line[] = "_DrawList.add_line(self, float start_x, float start_y, float end_x, float end_y, ImU32 col, float thickness=1.0)\nAdd a straight line to the draw list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Line example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_line(20, 35, 180, 80, imgui.get_color_u32_rgba(1,1,0,1), 3)\n draw_list.add_line(180, 35, 20, 80, imgui.get_color_u32_rgba(1,0,0,1), 3)\n imgui.end()\n\n Args:\n start_x (float): X coordinate of first point\n start_y (float): Y coordinate of first point\n end_x (float): X coordinate of second point\n end_y (float): Y coordinate of second point\n col (ImU32): RGBA color specification\n thickness (float): Line thickness in pixels\n\n .. wraps::\n void ImDrawList::AddLine(\n const ImVec2& a,\n const ImVec2& b,\n ImU32 col,\n float thickness = 1.0f\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_15add_line(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_start_x; float __pyx_v_start_y; float __pyx_v_end_x; float __pyx_v_end_y; ImU32 __pyx_v_col; float __pyx_v_thickness; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_line (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_start_x,&__pyx_n_s_start_y,&__pyx_n_s_end_x,&__pyx_n_s_end_y,&__pyx_n_s_col,&__pyx_n_s_thickness,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_start_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_start_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_line", 0, 5, 6, 1); __PYX_ERR(0, 739, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_end_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_line", 0, 5, 6, 2); __PYX_ERR(0, 739, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_end_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_line", 0, 5, 6, 3); __PYX_ERR(0, 739, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_line", 0, 5, 6, 4); __PYX_ERR(0, 739, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_line") < 0)) __PYX_ERR(0, 739, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_start_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_start_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 741, __pyx_L3_error) __pyx_v_start_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_start_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 741, __pyx_L3_error) __pyx_v_end_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_end_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 742, __pyx_L3_error) __pyx_v_end_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_end_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 742, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 743, __pyx_L3_error) if (values[5]) { __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 745, __pyx_L3_error) } else { __pyx_v_thickness = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_line", 0, 5, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 739, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_line", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_14add_line(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_start_x, __pyx_v_start_y, __pyx_v_end_x, __pyx_v_end_y, __pyx_v_col, __pyx_v_thickness); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_14add_line(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_start_x, float __pyx_v_start_y, float __pyx_v_end_x, float __pyx_v_end_y, ImU32 __pyx_v_col, float __pyx_v_thickness) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_line", 0); /* "imgui/core.pyx":777 * """ * self._ptr.AddLine( * _cast_args_ImVec2(start_x, start_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(end_x, end_y), * col, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_start_x, __pyx_v_start_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 777, __pyx_L1_error) /* "imgui/core.pyx":778 * self._ptr.AddLine( * _cast_args_ImVec2(start_x, start_y), * _cast_args_ImVec2(end_x, end_y), # <<<<<<<<<<<<<< * col, * thickness, */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_end_x, __pyx_v_end_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 778, __pyx_L1_error) /* "imgui/core.pyx":776 * ) * """ * self._ptr.AddLine( # <<<<<<<<<<<<<< * _cast_args_ImVec2(start_x, start_y), * _cast_args_ImVec2(end_x, end_y), */ try { __pyx_v_self->_ptr->AddLine(__pyx_t_1, __pyx_t_2, __pyx_v_col, __pyx_v_thickness); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 776, __pyx_L1_error) } /* "imgui/core.pyx":739 * return _cast_ImVec2_tuple(self._ptr.GetClipRectMax()) * * def add_line( # <<<<<<<<<<<<<< * self, * float start_x, float start_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_line", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":783 * ) * * def add_rect( # <<<<<<<<<<<<<< * self, * float upper_left_x, float upper_left_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_17add_rect(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_16add_rect[] = "_DrawList.add_rect(self, float upper_left_x, float upper_left_y, float lower_right_x, float lower_right_y, ImU32 col, float rounding=0.0, ImDrawFlags flags=0, float thickness=1.0)\nAdd a rectangle outline to the draw list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Rect example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_rect(20, 35, 90, 80, imgui.get_color_u32_rgba(1,1,0,1), thickness=3)\n draw_list.add_rect(110, 35, 180, 80, imgui.get_color_u32_rgba(1,0,0,1), rounding=5, thickness=3)\n imgui.end()\n\n Args:\n upper_left_x (float): X coordinate of top-left corner\n upper_left_y (float): Y coordinate of top-left corner\n lower_right_x (float): X coordinate of lower-right corner\n lower_right_y (float): Y coordinate of lower-right corner\n col (ImU32): RGBA color specification\n rounding (float): Degree of rounding, defaults to 0.0\n flags (ImDrawFlags): Draw flags, defaults to 0. See:\n :ref:`list of available flags `.\n thickness (float): Line thickness, defaults to 1.0\n\n .. wraps::\n void ImDrawList::AddRect(\n const ImVec2& a,\n const ImVec2& b,\n ImU32 col,\n float rounding = 0.0f,\n ImDrawFlags flags = 0,\n float thickness = 1.0f\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_17add_rect(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_upper_left_x; float __pyx_v_upper_left_y; float __pyx_v_lower_right_x; float __pyx_v_lower_right_y; ImU32 __pyx_v_col; float __pyx_v_rounding; ImDrawFlags __pyx_v_flags; float __pyx_v_thickness; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_rect (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upper_left_x,&__pyx_n_s_upper_left_y,&__pyx_n_s_lower_right_x,&__pyx_n_s_lower_right_y,&__pyx_n_s_col,&__pyx_n_s_rounding,&__pyx_n_s_flags,&__pyx_n_s_thickness,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upper_left_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upper_left_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect", 0, 5, 8, 1); __PYX_ERR(0, 783, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lower_right_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect", 0, 5, 8, 2); __PYX_ERR(0, 783, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lower_right_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect", 0, 5, 8, 3); __PYX_ERR(0, 783, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect", 0, 5, 8, 4); __PYX_ERR(0, 783, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rounding); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_rect") < 0)) __PYX_ERR(0, 783, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_upper_left_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_upper_left_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 785, __pyx_L3_error) __pyx_v_upper_left_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_upper_left_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 785, __pyx_L3_error) __pyx_v_lower_right_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_lower_right_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 786, __pyx_L3_error) __pyx_v_lower_right_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_lower_right_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 786, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 787, __pyx_L3_error) if (values[5]) { __pyx_v_rounding = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_rounding == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 789, __pyx_L3_error) } else { __pyx_v_rounding = ((float)0.0); } if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImDrawFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImDrawFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 790, __pyx_L3_error) } else { __pyx_v_flags = ((ImDrawFlags)0); } if (values[7]) { __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 791, __pyx_L3_error) } else { __pyx_v_thickness = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_rect", 0, 5, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 783, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_16add_rect(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_upper_left_x, __pyx_v_upper_left_y, __pyx_v_lower_right_x, __pyx_v_lower_right_y, __pyx_v_col, __pyx_v_rounding, __pyx_v_flags, __pyx_v_thickness); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_16add_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_upper_left_x, float __pyx_v_upper_left_y, float __pyx_v_lower_right_x, float __pyx_v_lower_right_y, ImU32 __pyx_v_col, float __pyx_v_rounding, ImDrawFlags __pyx_v_flags, float __pyx_v_thickness) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_rect", 0); /* "imgui/core.pyx":828 * """ * self._ptr.AddRect( * _cast_args_ImVec2(upper_left_x, upper_left_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(lower_right_x, lower_right_y), * col, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_upper_left_x, __pyx_v_upper_left_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 828, __pyx_L1_error) /* "imgui/core.pyx":829 * self._ptr.AddRect( * _cast_args_ImVec2(upper_left_x, upper_left_y), * _cast_args_ImVec2(lower_right_x, lower_right_y), # <<<<<<<<<<<<<< * col, * rounding, */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_lower_right_x, __pyx_v_lower_right_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 829, __pyx_L1_error) /* "imgui/core.pyx":827 * ) * """ * self._ptr.AddRect( # <<<<<<<<<<<<<< * _cast_args_ImVec2(upper_left_x, upper_left_y), * _cast_args_ImVec2(lower_right_x, lower_right_y), */ try { __pyx_v_self->_ptr->AddRect(__pyx_t_1, __pyx_t_2, __pyx_v_col, __pyx_v_rounding, __pyx_v_flags, __pyx_v_thickness); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 827, __pyx_L1_error) } /* "imgui/core.pyx":783 * ) * * def add_rect( # <<<<<<<<<<<<<< * self, * float upper_left_x, float upper_left_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":836 * ) * * def add_rect_filled( # <<<<<<<<<<<<<< * self, * float upper_left_x, float upper_left_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_19add_rect_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_18add_rect_filled[] = "_DrawList.add_rect_filled(self, float upper_left_x, float upper_left_y, float lower_right_x, float lower_right_y, ImU32 col, float rounding=0.0, ImDrawFlags flags=0)\nAdd a filled rectangle to the draw list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Filled rect example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_rect_filled(20, 35, 90, 80, imgui.get_color_u32_rgba(1,1,0,1))\n draw_list.add_rect_filled(110, 35, 180, 80, imgui.get_color_u32_rgba(1,0,0,1), 5)\n imgui.end()\n\n Args:\n upper_left_x (float): X coordinate of top-left corner\n upper_left_y (float): Y coordinate of top-left corner\n lower_right_x (float): X coordinate of lower-right corner\n lower_right_y (float): Y coordinate of lower-right corner\n col (ImU32): RGBA color specification\n rounding (float): Degree of rounding, defaults to 0.0\n flags (ImDrawFlags): Draw flags, defaults to 0. See:\n :ref:`list of available flags `.\n\n .. wraps::\n void ImDrawList::AddRectFilled(\n const ImVec2& a,\n const ImVec2& b,\n ImU32 col,\n float rounding = 0.0f,\n ImDrawFlags flags = 0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_19add_rect_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_upper_left_x; float __pyx_v_upper_left_y; float __pyx_v_lower_right_x; float __pyx_v_lower_right_y; ImU32 __pyx_v_col; float __pyx_v_rounding; ImDrawFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_rect_filled (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upper_left_x,&__pyx_n_s_upper_left_y,&__pyx_n_s_lower_right_x,&__pyx_n_s_lower_right_y,&__pyx_n_s_col,&__pyx_n_s_rounding,&__pyx_n_s_flags,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upper_left_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upper_left_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled", 0, 5, 7, 1); __PYX_ERR(0, 836, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lower_right_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled", 0, 5, 7, 2); __PYX_ERR(0, 836, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lower_right_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled", 0, 5, 7, 3); __PYX_ERR(0, 836, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled", 0, 5, 7, 4); __PYX_ERR(0, 836, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rounding); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_rect_filled") < 0)) __PYX_ERR(0, 836, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_upper_left_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_upper_left_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 838, __pyx_L3_error) __pyx_v_upper_left_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_upper_left_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 838, __pyx_L3_error) __pyx_v_lower_right_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_lower_right_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 839, __pyx_L3_error) __pyx_v_lower_right_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_lower_right_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 839, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 840, __pyx_L3_error) if (values[5]) { __pyx_v_rounding = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_rounding == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 842, __pyx_L3_error) } else { __pyx_v_rounding = ((float)0.0); } if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImDrawFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImDrawFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 843, __pyx_L3_error) } else { __pyx_v_flags = ((ImDrawFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_rect_filled", 0, 5, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 836, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_rect_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_18add_rect_filled(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_upper_left_x, __pyx_v_upper_left_y, __pyx_v_lower_right_x, __pyx_v_lower_right_y, __pyx_v_col, __pyx_v_rounding, __pyx_v_flags); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_18add_rect_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_upper_left_x, float __pyx_v_upper_left_y, float __pyx_v_lower_right_x, float __pyx_v_lower_right_y, ImU32 __pyx_v_col, float __pyx_v_rounding, ImDrawFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_rect_filled", 0); /* "imgui/core.pyx":878 * """ * self._ptr.AddRectFilled( * _cast_args_ImVec2(upper_left_x, upper_left_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(lower_right_x, lower_right_y), * col, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_upper_left_x, __pyx_v_upper_left_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 878, __pyx_L1_error) /* "imgui/core.pyx":879 * self._ptr.AddRectFilled( * _cast_args_ImVec2(upper_left_x, upper_left_y), * _cast_args_ImVec2(lower_right_x, lower_right_y), # <<<<<<<<<<<<<< * col, * rounding, */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_lower_right_x, __pyx_v_lower_right_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 879, __pyx_L1_error) /* "imgui/core.pyx":877 * ) * """ * self._ptr.AddRectFilled( # <<<<<<<<<<<<<< * _cast_args_ImVec2(upper_left_x, upper_left_y), * _cast_args_ImVec2(lower_right_x, lower_right_y), */ try { __pyx_v_self->_ptr->AddRectFilled(__pyx_t_1, __pyx_t_2, __pyx_v_col, __pyx_v_rounding, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 877, __pyx_L1_error) } /* "imgui/core.pyx":836 * ) * * def add_rect_filled( # <<<<<<<<<<<<<< * self, * float upper_left_x, float upper_left_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_rect_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":885 * ) * * def add_rect_filled_multicolor( # <<<<<<<<<<<<<< * self, * float upper_left_x, float upper_left_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_21add_rect_filled_multicolor(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_20add_rect_filled_multicolor[] = "_DrawList.add_rect_filled_multicolor(self, float upper_left_x, float upper_left_y, float lower_right_x, float lower_right_y, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left)\nAdd a multicolor filled rectangle to the draw list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Multicolored filled rect example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_rect_filled_multicolor(20, 35, 190, 80, imgui.get_color_u32_rgba(1,0,0,1),\n imgui.get_color_u32_rgba(0,1,0,1), imgui.get_color_u32_rgba(0,0,1,1),\n imgui.get_color_u32_rgba(1,1,1,1))\n imgui.end()\n\n Args:\n upper_left_x (float): X coordinate of top-left corner\n upper_left_y (float): Y coordinate of top-left corner\n lower_right_x (float): X coordinate of lower-right corner\n lower_right_y (float): Y coordinate of lower-right corner\n col_upr_left (ImU32): RGBA color for the top left corner\n col_upr_right (ImU32): RGBA color for the top right corner\n col_bot_right (ImU32): RGBA color for the bottom right corner\n col_bot_left (ImU32): RGBA color for the bottom left corner\n\n .. wraps::\n void ImDrawList::AddRectFilledMultiColor(\n const ImVec2& a,\n const ImVec2& b,\n ImU32 col_upr_left,\n ImU32 col_upr_right,\n ImU32 col_bot_right,\n ImU32 col_bot_left\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_21add_rect_filled_multicolor(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_upper_left_x; float __pyx_v_upper_left_y; float __pyx_v_lower_right_x; float __pyx_v_lower_right_y; ImU32 __pyx_v_col_upr_left; ImU32 __pyx_v_col_upr_right; ImU32 __pyx_v_col_bot_right; ImU32 __pyx_v_col_bot_left; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_rect_filled_multicolor (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upper_left_x,&__pyx_n_s_upper_left_y,&__pyx_n_s_lower_right_x,&__pyx_n_s_lower_right_y,&__pyx_n_s_col_upr_left,&__pyx_n_s_col_upr_right,&__pyx_n_s_col_bot_right,&__pyx_n_s_col_bot_left,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upper_left_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upper_left_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled_multicolor", 1, 8, 8, 1); __PYX_ERR(0, 885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lower_right_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled_multicolor", 1, 8, 8, 2); __PYX_ERR(0, 885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lower_right_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled_multicolor", 1, 8, 8, 3); __PYX_ERR(0, 885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col_upr_left)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled_multicolor", 1, 8, 8, 4); __PYX_ERR(0, 885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col_upr_right)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled_multicolor", 1, 8, 8, 5); __PYX_ERR(0, 885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col_bot_right)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled_multicolor", 1, 8, 8, 6); __PYX_ERR(0, 885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col_bot_left)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_rect_filled_multicolor", 1, 8, 8, 7); __PYX_ERR(0, 885, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_rect_filled_multicolor") < 0)) __PYX_ERR(0, 885, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 8) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[7] = PyTuple_GET_ITEM(__pyx_args, 7); } __pyx_v_upper_left_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_upper_left_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 887, __pyx_L3_error) __pyx_v_upper_left_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_upper_left_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 887, __pyx_L3_error) __pyx_v_lower_right_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_lower_right_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 888, __pyx_L3_error) __pyx_v_lower_right_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_lower_right_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 888, __pyx_L3_error) __pyx_v_col_upr_left = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_col_upr_left == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 889, __pyx_L3_error) __pyx_v_col_upr_right = __Pyx_PyInt_As_ImU32(values[5]); if (unlikely((__pyx_v_col_upr_right == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 890, __pyx_L3_error) __pyx_v_col_bot_right = __Pyx_PyInt_As_ImU32(values[6]); if (unlikely((__pyx_v_col_bot_right == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 891, __pyx_L3_error) __pyx_v_col_bot_left = __Pyx_PyInt_As_ImU32(values[7]); if (unlikely((__pyx_v_col_bot_left == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 892, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_rect_filled_multicolor", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 885, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_rect_filled_multicolor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_20add_rect_filled_multicolor(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_upper_left_x, __pyx_v_upper_left_y, __pyx_v_lower_right_x, __pyx_v_lower_right_y, __pyx_v_col_upr_left, __pyx_v_col_upr_right, __pyx_v_col_bot_right, __pyx_v_col_bot_left); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_20add_rect_filled_multicolor(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_upper_left_x, float __pyx_v_upper_left_y, float __pyx_v_lower_right_x, float __pyx_v_lower_right_y, ImU32 __pyx_v_col_upr_left, ImU32 __pyx_v_col_upr_right, ImU32 __pyx_v_col_bot_right, ImU32 __pyx_v_col_bot_left) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_rect_filled_multicolor", 0); /* "imgui/core.pyx":929 * """ * self._ptr.AddRectFilledMultiColor( * _cast_args_ImVec2(upper_left_x, upper_left_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(lower_right_x, lower_right_y), * col_upr_left, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_upper_left_x, __pyx_v_upper_left_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 929, __pyx_L1_error) /* "imgui/core.pyx":930 * self._ptr.AddRectFilledMultiColor( * _cast_args_ImVec2(upper_left_x, upper_left_y), * _cast_args_ImVec2(lower_right_x, lower_right_y), # <<<<<<<<<<<<<< * col_upr_left, * col_upr_right, */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_lower_right_x, __pyx_v_lower_right_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 930, __pyx_L1_error) /* "imgui/core.pyx":928 * ) * """ * self._ptr.AddRectFilledMultiColor( # <<<<<<<<<<<<<< * _cast_args_ImVec2(upper_left_x, upper_left_y), * _cast_args_ImVec2(lower_right_x, lower_right_y), */ try { __pyx_v_self->_ptr->AddRectFilledMultiColor(__pyx_t_1, __pyx_t_2, __pyx_v_col_upr_left, __pyx_v_col_upr_right, __pyx_v_col_bot_right, __pyx_v_col_bot_left); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 928, __pyx_L1_error) } /* "imgui/core.pyx":885 * ) * * def add_rect_filled_multicolor( # <<<<<<<<<<<<<< * self, * float upper_left_x, float upper_left_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_rect_filled_multicolor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":937 * ) * * def add_quad( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_23add_quad(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_22add_quad[] = "_DrawList.add_quad(self, float point1_x, float point1_y, float point2_x, float point2_y, float point3_x, float point3_y, float point4_x, float point4_y, ImU32 col, float thickness=1.0)\nAdd a quad to the list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Quad example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_quad(20, 35, 85, 30, 90, 80, 17, 76, imgui.get_color_u32_rgba(1,1,0,1))\n draw_list.add_quad(110, 35, 177, 33, 180, 80, 112, 79, imgui.get_color_u32_rgba(1,0,0,1), 5)\n imgui.end()\n\n Args:\n point1_x (float): X coordinate of first corner\n point1_y (float): Y coordinate of first corner\n point2_x (float): X coordinate of second corner\n point2_y (float): Y coordinate of second corner\n point3_x (float): X coordinate of third corner\n point3_y (float): Y coordinate of third corner\n point4_x (float): X coordinate of fourth corner\n point4_y (float): Y coordinate of fourth corner\n col (ImU32): RGBA color specification\n thickness (float): Line thickness\n\n .. wraps::\n void ImDrawList::AddQuad(\n const ImVec2& p1,\n const ImVec2& p2,\n const ImVec2& p3,\n const ImVec2& p4,\n ImU32 col,\n float thickness = 1.0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_23add_quad(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_point1_x; float __pyx_v_point1_y; float __pyx_v_point2_x; float __pyx_v_point2_y; float __pyx_v_point3_x; float __pyx_v_point3_y; float __pyx_v_point4_x; float __pyx_v_point4_y; ImU32 __pyx_v_col; float __pyx_v_thickness; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_quad (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_point1_x,&__pyx_n_s_point1_y,&__pyx_n_s_point2_x,&__pyx_n_s_point2_y,&__pyx_n_s_point3_x,&__pyx_n_s_point3_y,&__pyx_n_s_point4_x,&__pyx_n_s_point4_y,&__pyx_n_s_col,&__pyx_n_s_thickness,0}; PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, 1); __PYX_ERR(0, 937, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, 2); __PYX_ERR(0, 937, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, 3); __PYX_ERR(0, 937, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, 4); __PYX_ERR(0, 937, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, 5); __PYX_ERR(0, 937, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point4_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, 6); __PYX_ERR(0, 937, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point4_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, 7); __PYX_ERR(0, 937, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, 8); __PYX_ERR(0, 937, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 9: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness); if (value) { values[9] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_quad") < 0)) __PYX_ERR(0, 937, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); values[7] = PyTuple_GET_ITEM(__pyx_args, 7); values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_point1_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_point1_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 939, __pyx_L3_error) __pyx_v_point1_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_point1_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 939, __pyx_L3_error) __pyx_v_point2_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_point2_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 940, __pyx_L3_error) __pyx_v_point2_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_point2_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 940, __pyx_L3_error) __pyx_v_point3_x = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_point3_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 941, __pyx_L3_error) __pyx_v_point3_y = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_point3_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 941, __pyx_L3_error) __pyx_v_point4_x = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_point4_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 942, __pyx_L3_error) __pyx_v_point4_y = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_point4_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 942, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[8]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 943, __pyx_L3_error) if (values[9]) { __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[9]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 945, __pyx_L3_error) } else { __pyx_v_thickness = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_quad", 0, 9, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 937, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_quad", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_22add_quad(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_point1_x, __pyx_v_point1_y, __pyx_v_point2_x, __pyx_v_point2_y, __pyx_v_point3_x, __pyx_v_point3_y, __pyx_v_point4_x, __pyx_v_point4_y, __pyx_v_col, __pyx_v_thickness); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_22add_quad(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, float __pyx_v_point4_x, float __pyx_v_point4_y, ImU32 __pyx_v_col, float __pyx_v_thickness) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; ImVec2 __pyx_t_3; ImVec2 __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_quad", 0); /* "imgui/core.pyx":983 * """ * self._ptr.AddQuad( * _cast_args_ImVec2(point1_x, point1_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point1_x, __pyx_v_point1_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 983, __pyx_L1_error) /* "imgui/core.pyx":984 * self._ptr.AddQuad( * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point3_x, point3_y), * _cast_args_ImVec2(point4_x, point4_y), */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point2_x, __pyx_v_point2_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 984, __pyx_L1_error) /* "imgui/core.pyx":985 * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point4_x, point4_y), * col, */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point3_x, __pyx_v_point3_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 985, __pyx_L1_error) /* "imgui/core.pyx":986 * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), * _cast_args_ImVec2(point4_x, point4_y), # <<<<<<<<<<<<<< * col, * thickness */ __pyx_t_4 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point4_x, __pyx_v_point4_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 986, __pyx_L1_error) /* "imgui/core.pyx":982 * ) * """ * self._ptr.AddQuad( # <<<<<<<<<<<<<< * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), */ try { __pyx_v_self->_ptr->AddQuad(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_v_col, __pyx_v_thickness); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 982, __pyx_L1_error) } /* "imgui/core.pyx":937 * ) * * def add_quad( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_quad", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":991 * ) * * def add_quad_filled( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_25add_quad_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_24add_quad_filled[] = "_DrawList.add_quad_filled(self, float point1_x, float point1_y, float point2_x, float point2_y, float point3_x, float point3_y, float point4_x, float point4_y, ImU32 col)\nAdd a filled quad to the list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Filled Quad example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_quad_filled(20, 35, 85, 30, 90, 80, 17, 76, imgui.get_color_u32_rgba(1,1,0,1))\n draw_list.add_quad_filled(110, 35, 177, 33, 180, 80, 112, 79, imgui.get_color_u32_rgba(1,0,0,1))\n imgui.end()\n\n Args:\n point1_x (float): X coordinate of first corner\n point1_y (float): Y coordinate of first corner\n point2_x (float): X coordinate of second corner\n point2_y (float): Y coordinate of second corner\n point3_x (float): X coordinate of third corner\n point3_y (float): Y coordinate of third corner\n point4_x (float): X coordinate of fourth corner\n point4_y (float): Y coordinate of fourth corner\n col (ImU32): RGBA color specification\n\n .. wraps::\n void ImDrawList::AddQuadFilled(\n const ImVec2& p1,\n const ImVec2& p2,\n const ImVec2& p3,\n const ImVec2& p4,\n ImU32 col\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_25add_quad_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_point1_x; float __pyx_v_point1_y; float __pyx_v_point2_x; float __pyx_v_point2_y; float __pyx_v_point3_x; float __pyx_v_point3_y; float __pyx_v_point4_x; float __pyx_v_point4_y; ImU32 __pyx_v_col; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_quad_filled (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_point1_x,&__pyx_n_s_point1_y,&__pyx_n_s_point2_x,&__pyx_n_s_point2_y,&__pyx_n_s_point3_x,&__pyx_n_s_point3_y,&__pyx_n_s_point4_x,&__pyx_n_s_point4_y,&__pyx_n_s_col,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, 1); __PYX_ERR(0, 991, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, 2); __PYX_ERR(0, 991, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, 3); __PYX_ERR(0, 991, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, 4); __PYX_ERR(0, 991, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, 5); __PYX_ERR(0, 991, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point4_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, 6); __PYX_ERR(0, 991, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point4_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, 7); __PYX_ERR(0, 991, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, 8); __PYX_ERR(0, 991, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_quad_filled") < 0)) __PYX_ERR(0, 991, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 9) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[7] = PyTuple_GET_ITEM(__pyx_args, 7); values[8] = PyTuple_GET_ITEM(__pyx_args, 8); } __pyx_v_point1_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_point1_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 993, __pyx_L3_error) __pyx_v_point1_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_point1_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 993, __pyx_L3_error) __pyx_v_point2_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_point2_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 994, __pyx_L3_error) __pyx_v_point2_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_point2_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 994, __pyx_L3_error) __pyx_v_point3_x = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_point3_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 995, __pyx_L3_error) __pyx_v_point3_y = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_point3_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 995, __pyx_L3_error) __pyx_v_point4_x = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_point4_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 996, __pyx_L3_error) __pyx_v_point4_y = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_point4_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 996, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[8]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 997, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_quad_filled", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 991, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_quad_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_24add_quad_filled(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_point1_x, __pyx_v_point1_y, __pyx_v_point2_x, __pyx_v_point2_y, __pyx_v_point3_x, __pyx_v_point3_y, __pyx_v_point4_x, __pyx_v_point4_y, __pyx_v_col); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_24add_quad_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, float __pyx_v_point4_x, float __pyx_v_point4_y, ImU32 __pyx_v_col) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; ImVec2 __pyx_t_3; ImVec2 __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_quad_filled", 0); /* "imgui/core.pyx":1033 * """ * self._ptr.AddQuadFilled( * _cast_args_ImVec2(point1_x, point1_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point1_x, __pyx_v_point1_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1033, __pyx_L1_error) /* "imgui/core.pyx":1034 * self._ptr.AddQuadFilled( * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point3_x, point3_y), * _cast_args_ImVec2(point4_x, point4_y), */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point2_x, __pyx_v_point2_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1034, __pyx_L1_error) /* "imgui/core.pyx":1035 * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point4_x, point4_y), * col */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point3_x, __pyx_v_point3_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1035, __pyx_L1_error) /* "imgui/core.pyx":1036 * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), * _cast_args_ImVec2(point4_x, point4_y), # <<<<<<<<<<<<<< * col * ) */ __pyx_t_4 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point4_x, __pyx_v_point4_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1036, __pyx_L1_error) /* "imgui/core.pyx":1032 * ) * """ * self._ptr.AddQuadFilled( # <<<<<<<<<<<<<< * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), */ try { __pyx_v_self->_ptr->AddQuadFilled(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_v_col); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1032, __pyx_L1_error) } /* "imgui/core.pyx":991 * ) * * def add_quad_filled( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_quad_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1040 * ) * * def add_triangle( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_27add_triangle(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_26add_triangle[] = "_DrawList.add_triangle(self, float point1_x, float point1_y, float point2_x, float point2_y, float point3_x, float point3_y, ImU32 col, float thickness=1.0)\nAdd a triangle to the list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Triangle example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_triangle(20, 35, 90, 35, 55, 80, imgui.get_color_u32_rgba(1,1,0,1))\n draw_list.add_triangle(110, 35, 180, 35, 145, 80, imgui.get_color_u32_rgba(1,0,0,1), 5)\n imgui.end()\n\n Args:\n point1_x (float): X coordinate of first corner\n point1_y (float): Y coordinate of first corner\n point2_x (float): X coordinate of second corner\n point2_y (float): Y coordinate of second corner\n point3_x (float): X coordinate of third corner\n point3_y (float): Y coordinate of third corner\n col (ImU32): RGBA color specification\n thickness (float): Line thickness\n\n .. wraps::\n void ImDrawList::AddTriangle(\n const ImVec2& p1,\n const ImVec2& p2,\n const ImVec2& p3,\n ImU32 col,\n float thickness = 1.0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_27add_triangle(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_point1_x; float __pyx_v_point1_y; float __pyx_v_point2_x; float __pyx_v_point2_y; float __pyx_v_point3_x; float __pyx_v_point3_y; ImU32 __pyx_v_col; float __pyx_v_thickness; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_triangle (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_point1_x,&__pyx_n_s_point1_y,&__pyx_n_s_point2_x,&__pyx_n_s_point2_y,&__pyx_n_s_point3_x,&__pyx_n_s_point3_y,&__pyx_n_s_col,&__pyx_n_s_thickness,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle", 0, 7, 8, 1); __PYX_ERR(0, 1040, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle", 0, 7, 8, 2); __PYX_ERR(0, 1040, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle", 0, 7, 8, 3); __PYX_ERR(0, 1040, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle", 0, 7, 8, 4); __PYX_ERR(0, 1040, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle", 0, 7, 8, 5); __PYX_ERR(0, 1040, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle", 0, 7, 8, 6); __PYX_ERR(0, 1040, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_triangle") < 0)) __PYX_ERR(0, 1040, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_point1_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_point1_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1042, __pyx_L3_error) __pyx_v_point1_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_point1_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1042, __pyx_L3_error) __pyx_v_point2_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_point2_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1043, __pyx_L3_error) __pyx_v_point2_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_point2_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1043, __pyx_L3_error) __pyx_v_point3_x = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_point3_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1044, __pyx_L3_error) __pyx_v_point3_y = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_point3_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1044, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[6]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1045, __pyx_L3_error) if (values[7]) { __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1047, __pyx_L3_error) } else { __pyx_v_thickness = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_triangle", 0, 7, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1040, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_triangle", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_26add_triangle(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_point1_x, __pyx_v_point1_y, __pyx_v_point2_x, __pyx_v_point2_y, __pyx_v_point3_x, __pyx_v_point3_y, __pyx_v_col, __pyx_v_thickness); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_26add_triangle(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, ImU32 __pyx_v_col, float __pyx_v_thickness) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; ImVec2 __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_triangle", 0); /* "imgui/core.pyx":1082 * """ * self._ptr.AddTriangle( * _cast_args_ImVec2(point1_x, point1_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point1_x, __pyx_v_point1_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1082, __pyx_L1_error) /* "imgui/core.pyx":1083 * self._ptr.AddTriangle( * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point3_x, point3_y), * col, */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point2_x, __pyx_v_point2_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1083, __pyx_L1_error) /* "imgui/core.pyx":1084 * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), # <<<<<<<<<<<<<< * col, * thickness */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point3_x, __pyx_v_point3_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1084, __pyx_L1_error) /* "imgui/core.pyx":1081 * ) * """ * self._ptr.AddTriangle( # <<<<<<<<<<<<<< * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), */ try { __pyx_v_self->_ptr->AddTriangle(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_v_col, __pyx_v_thickness); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1081, __pyx_L1_error) } /* "imgui/core.pyx":1040 * ) * * def add_triangle( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_triangle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1089 * ) * * def add_triangle_filled( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_29add_triangle_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_28add_triangle_filled[] = "_DrawList.add_triangle_filled(self, float point1_x, float point1_y, float point2_x, float point2_y, float point3_x, float point3_y, ImU32 col)\nAdd a filled triangle to the list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Filled triangle example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_triangle_filled(20, 35, 90, 35, 55, 80, imgui.get_color_u32_rgba(1,1,0,1))\n draw_list.add_triangle_filled(110, 35, 180, 35, 145, 80, imgui.get_color_u32_rgba(1,0,0,1))\n imgui.end()\n\n Args:\n point1_x (float): X coordinate of first corner\n point1_y (float): Y coordinate of first corner\n point2_x (float): X coordinate of second corner\n point2_y (float): Y coordinate of second corner\n point3_x (float): X coordinate of third corner\n point3_y (float): Y coordinate of third corner\n col (ImU32): RGBA color specification\n\n .. wraps::\n void ImDrawList::AddTriangleFilled(\n const ImVec2& p1,\n const ImVec2& p2,\n const ImVec2& p3,\n ImU32 col\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_29add_triangle_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_point1_x; float __pyx_v_point1_y; float __pyx_v_point2_x; float __pyx_v_point2_y; float __pyx_v_point3_x; float __pyx_v_point3_y; ImU32 __pyx_v_col; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_triangle_filled (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_point1_x,&__pyx_n_s_point1_y,&__pyx_n_s_point2_x,&__pyx_n_s_point2_y,&__pyx_n_s_point3_x,&__pyx_n_s_point3_y,&__pyx_n_s_col,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle_filled", 1, 7, 7, 1); __PYX_ERR(0, 1089, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle_filled", 1, 7, 7, 2); __PYX_ERR(0, 1089, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle_filled", 1, 7, 7, 3); __PYX_ERR(0, 1089, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle_filled", 1, 7, 7, 4); __PYX_ERR(0, 1089, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle_filled", 1, 7, 7, 5); __PYX_ERR(0, 1089, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_triangle_filled", 1, 7, 7, 6); __PYX_ERR(0, 1089, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_triangle_filled") < 0)) __PYX_ERR(0, 1089, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 7) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[6] = PyTuple_GET_ITEM(__pyx_args, 6); } __pyx_v_point1_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_point1_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1091, __pyx_L3_error) __pyx_v_point1_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_point1_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1091, __pyx_L3_error) __pyx_v_point2_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_point2_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1092, __pyx_L3_error) __pyx_v_point2_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_point2_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1092, __pyx_L3_error) __pyx_v_point3_x = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_point3_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1093, __pyx_L3_error) __pyx_v_point3_y = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_point3_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1093, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[6]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1094, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_triangle_filled", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1089, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_triangle_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_28add_triangle_filled(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_point1_x, __pyx_v_point1_y, __pyx_v_point2_x, __pyx_v_point2_y, __pyx_v_point3_x, __pyx_v_point3_y, __pyx_v_col); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_28add_triangle_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, ImU32 __pyx_v_col) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; ImVec2 __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_triangle_filled", 0); /* "imgui/core.pyx":1127 * """ * self._ptr.AddTriangleFilled( * _cast_args_ImVec2(point1_x, point1_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point1_x, __pyx_v_point1_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1127, __pyx_L1_error) /* "imgui/core.pyx":1128 * self._ptr.AddTriangleFilled( * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point3_x, point3_y), * col */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point2_x, __pyx_v_point2_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1128, __pyx_L1_error) /* "imgui/core.pyx":1129 * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), # <<<<<<<<<<<<<< * col * ) */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point3_x, __pyx_v_point3_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1129, __pyx_L1_error) /* "imgui/core.pyx":1126 * ) * """ * self._ptr.AddTriangleFilled( # <<<<<<<<<<<<<< * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), */ try { __pyx_v_self->_ptr->AddTriangleFilled(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_v_col); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1126, __pyx_L1_error) } /* "imgui/core.pyx":1089 * ) * * def add_triangle_filled( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_triangle_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1133 * ) * * def add_bezier_cubic( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_31add_bezier_cubic(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_30add_bezier_cubic[] = "_DrawList.add_bezier_cubic(self, float point1_x, float point1_y, float point2_x, float point2_y, float point3_x, float point3_y, float point4_x, float point4_y, ImU32 col, float thickness, int num_segments=0)\nAdd a cubic bezier curve to the list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Cubic bezier example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_bezier_cubic(20, 35, 90, 80, 110, 180, 145, 35, imgui.get_color_u32_rgba(1,1,0,1), 2)\n imgui.end()\n\n Args:\n point1_x (float): X coordinate of first point\n point1_y (float): Y coordinate of first point\n point2_x (float): X coordinate of second point\n point2_y (float): Y coordinate of second point\n point3_x (float): X coordinate of third point\n point3_y (float): Y coordinate of third point\n point4_x (float): X coordinate of fourth point\n point4_y (float): Y coordinate of fourth point\n col (ImU32): RGBA color specification\n thickness (float): Line thickness\n num_segments (ImU32): Number of segments, defaults to 0 meaning auto-tesselation\n\n .. wraps::\n void ImDrawList::AddBezierCubic(\n const ImVec2& p1,\n const ImVec2& p2,\n const ImVec2& p3,\n const ImVec2& p4,\n ImU32 col,\n float thickness,\n int num_segments = 0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_31add_bezier_cubic(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_point1_x; float __pyx_v_point1_y; float __pyx_v_point2_x; float __pyx_v_point2_y; float __pyx_v_point3_x; float __pyx_v_point3_y; float __pyx_v_point4_x; float __pyx_v_point4_y; ImU32 __pyx_v_col; float __pyx_v_thickness; int __pyx_v_num_segments; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_bezier_cubic (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_point1_x,&__pyx_n_s_point1_y,&__pyx_n_s_point2_x,&__pyx_n_s_point2_y,&__pyx_n_s_point3_x,&__pyx_n_s_point3_y,&__pyx_n_s_point4_x,&__pyx_n_s_point4_y,&__pyx_n_s_col,&__pyx_n_s_thickness,&__pyx_n_s_num_segments,0}; PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10); CYTHON_FALLTHROUGH; case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 1); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 2); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 3); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 4); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 5); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point4_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 6); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point4_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 7); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 8); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 9: if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, 9); __PYX_ERR(0, 1133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 10: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_num_segments); if (value) { values[10] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_bezier_cubic") < 0)) __PYX_ERR(0, 1133, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10); CYTHON_FALLTHROUGH; case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); values[8] = PyTuple_GET_ITEM(__pyx_args, 8); values[7] = PyTuple_GET_ITEM(__pyx_args, 7); values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_point1_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_point1_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1135, __pyx_L3_error) __pyx_v_point1_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_point1_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1135, __pyx_L3_error) __pyx_v_point2_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_point2_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1136, __pyx_L3_error) __pyx_v_point2_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_point2_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1136, __pyx_L3_error) __pyx_v_point3_x = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_point3_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1137, __pyx_L3_error) __pyx_v_point3_y = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_point3_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1137, __pyx_L3_error) __pyx_v_point4_x = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_point4_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1138, __pyx_L3_error) __pyx_v_point4_y = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_point4_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1138, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[8]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1139, __pyx_L3_error) __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[9]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1140, __pyx_L3_error) if (values[10]) { __pyx_v_num_segments = __Pyx_PyInt_As_int(values[10]); if (unlikely((__pyx_v_num_segments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1142, __pyx_L3_error) } else { __pyx_v_num_segments = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_bezier_cubic", 0, 10, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1133, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_bezier_cubic", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_30add_bezier_cubic(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_point1_x, __pyx_v_point1_y, __pyx_v_point2_x, __pyx_v_point2_y, __pyx_v_point3_x, __pyx_v_point3_y, __pyx_v_point4_x, __pyx_v_point4_y, __pyx_v_col, __pyx_v_thickness, __pyx_v_num_segments); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_30add_bezier_cubic(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, float __pyx_v_point4_x, float __pyx_v_point4_y, ImU32 __pyx_v_col, float __pyx_v_thickness, int __pyx_v_num_segments) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; ImVec2 __pyx_t_3; ImVec2 __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_bezier_cubic", 0); /* "imgui/core.pyx":1181 * """ * self._ptr.AddBezierCubic( * _cast_args_ImVec2(point1_x, point1_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point1_x, __pyx_v_point1_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1181, __pyx_L1_error) /* "imgui/core.pyx":1182 * self._ptr.AddBezierCubic( * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point3_x, point3_y), * _cast_args_ImVec2(point4_x, point4_y), */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point2_x, __pyx_v_point2_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1182, __pyx_L1_error) /* "imgui/core.pyx":1183 * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point4_x, point4_y), * col, */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point3_x, __pyx_v_point3_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1183, __pyx_L1_error) /* "imgui/core.pyx":1184 * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), * _cast_args_ImVec2(point4_x, point4_y), # <<<<<<<<<<<<<< * col, * thickness, */ __pyx_t_4 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point4_x, __pyx_v_point4_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1184, __pyx_L1_error) /* "imgui/core.pyx":1180 * ) * """ * self._ptr.AddBezierCubic( # <<<<<<<<<<<<<< * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), */ try { __pyx_v_self->_ptr->AddBezierCubic(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_v_col, __pyx_v_thickness, __pyx_v_num_segments); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1180, __pyx_L1_error) } /* "imgui/core.pyx":1133 * ) * * def add_bezier_cubic( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_bezier_cubic", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1190 * ) * * def add_bezier_quadratic( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_33add_bezier_quadratic(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_32add_bezier_quadratic[] = "_DrawList.add_bezier_quadratic(self, float point1_x, float point1_y, float point2_x, float point2_y, float point3_x, float point3_y, ImU32 col, float thickness, int num_segments=0)\nAdd a quadratic bezier curve to the list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Quadratic bezier example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_bezier_quadratic(20, 35, 90, 80, 145, 35, imgui.get_color_u32_rgba(1,1,0,1), 2)\n imgui.end()\n\n Args:\n point1_x (float): X coordinate of first point\n point1_y (float): Y coordinate of first point\n point2_x (float): X coordinate of second point\n point2_y (float): Y coordinate of second point\n point3_x (float): X coordinate of third point\n point3_y (float): Y coordinate of third point\n col (ImU32): RGBA color specification\n thickness (float): Line thickness\n num_segments (ImU32): Number of segments, defaults to 0 meaning auto-tesselation\n\n .. wraps::\n void ImDrawList::AddBezierCubic(\n const ImVec2& p1,\n const ImVec2& p2,\n const ImVec2& p3,\n ImU32 col,\n float thickness,\n int num_segments = 0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_33add_bezier_quadratic(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_point1_x; float __pyx_v_point1_y; float __pyx_v_point2_x; float __pyx_v_point2_y; float __pyx_v_point3_x; float __pyx_v_point3_y; ImU32 __pyx_v_col; float __pyx_v_thickness; int __pyx_v_num_segments; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_bezier_quadratic (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_point1_x,&__pyx_n_s_point1_y,&__pyx_n_s_point2_x,&__pyx_n_s_point2_y,&__pyx_n_s_point3_x,&__pyx_n_s_point3_y,&__pyx_n_s_col,&__pyx_n_s_thickness,&__pyx_n_s_num_segments,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_quadratic", 0, 8, 9, 1); __PYX_ERR(0, 1190, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_quadratic", 0, 8, 9, 2); __PYX_ERR(0, 1190, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_quadratic", 0, 8, 9, 3); __PYX_ERR(0, 1190, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_quadratic", 0, 8, 9, 4); __PYX_ERR(0, 1190, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point3_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_quadratic", 0, 8, 9, 5); __PYX_ERR(0, 1190, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_quadratic", 0, 8, 9, 6); __PYX_ERR(0, 1190, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_bezier_quadratic", 0, 8, 9, 7); __PYX_ERR(0, 1190, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_num_segments); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_bezier_quadratic") < 0)) __PYX_ERR(0, 1190, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_point1_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_point1_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1192, __pyx_L3_error) __pyx_v_point1_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_point1_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1192, __pyx_L3_error) __pyx_v_point2_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_point2_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1193, __pyx_L3_error) __pyx_v_point2_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_point2_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1193, __pyx_L3_error) __pyx_v_point3_x = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_point3_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1194, __pyx_L3_error) __pyx_v_point3_y = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_point3_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1194, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[6]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1195, __pyx_L3_error) __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1196, __pyx_L3_error) if (values[8]) { __pyx_v_num_segments = __Pyx_PyInt_As_int(values[8]); if (unlikely((__pyx_v_num_segments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1198, __pyx_L3_error) } else { __pyx_v_num_segments = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_bezier_quadratic", 0, 8, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1190, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_bezier_quadratic", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_32add_bezier_quadratic(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_point1_x, __pyx_v_point1_y, __pyx_v_point2_x, __pyx_v_point2_y, __pyx_v_point3_x, __pyx_v_point3_y, __pyx_v_col, __pyx_v_thickness, __pyx_v_num_segments); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_32add_bezier_quadratic(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_point3_x, float __pyx_v_point3_y, ImU32 __pyx_v_col, float __pyx_v_thickness, int __pyx_v_num_segments) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; ImVec2 __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_bezier_quadratic", 0); /* "imgui/core.pyx":1234 * """ * self._ptr.AddBezierQuadratic( * _cast_args_ImVec2(point1_x, point1_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point1_x, __pyx_v_point1_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1234, __pyx_L1_error) /* "imgui/core.pyx":1235 * self._ptr.AddBezierQuadratic( * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point3_x, point3_y), * col, */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point2_x, __pyx_v_point2_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1235, __pyx_L1_error) /* "imgui/core.pyx":1236 * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), * _cast_args_ImVec2(point3_x, point3_y), # <<<<<<<<<<<<<< * col, * thickness, */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point3_x, __pyx_v_point3_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1236, __pyx_L1_error) /* "imgui/core.pyx":1233 * ) * """ * self._ptr.AddBezierQuadratic( # <<<<<<<<<<<<<< * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), */ try { __pyx_v_self->_ptr->AddBezierQuadratic(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_v_col, __pyx_v_thickness, __pyx_v_num_segments); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1233, __pyx_L1_error) } /* "imgui/core.pyx":1190 * ) * * def add_bezier_quadratic( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_bezier_quadratic", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1242 * ) * * def add_circle( # <<<<<<<<<<<<<< * self, * float centre_x, float centre_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_35add_circle(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_34add_circle[] = "_DrawList.add_circle(self, float centre_x, float centre_y, float radius, ImU32 col, int num_segments=0, float thickness=1.0)\nAdd a circle to the draw list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Circle example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_circle(100, 60, 30, imgui.get_color_u32_rgba(1,1,0,1), thickness=3)\n imgui.end()\n\n Args:\n centre_x (float): circle centre coordinates\n centre_y (float): circle centre coordinates\n radius (float): circle radius\n col (ImU32): RGBA color specification\n num_segments (ImU32): Number of segments, defaults to 0 meaning auto-tesselation\n thickness (float): Line thickness\n\n .. wraps::\n void ImDrawList::AddCircle(\n const ImVec2& centre,\n float radius,\n ImU32 col,\n int num_segments = 0,\n float thickness = 1.0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_35add_circle(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_centre_x; float __pyx_v_centre_y; float __pyx_v_radius; ImU32 __pyx_v_col; int __pyx_v_num_segments; float __pyx_v_thickness; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_circle (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_centre_x,&__pyx_n_s_centre_y,&__pyx_n_s_radius,&__pyx_n_s_col,&__pyx_n_s_num_segments,&__pyx_n_s_thickness,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centre_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centre_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_circle", 0, 4, 6, 1); __PYX_ERR(0, 1242, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_radius)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_circle", 0, 4, 6, 2); __PYX_ERR(0, 1242, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_circle", 0, 4, 6, 3); __PYX_ERR(0, 1242, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_num_segments); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_circle") < 0)) __PYX_ERR(0, 1242, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_centre_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_centre_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1244, __pyx_L3_error) __pyx_v_centre_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_centre_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1244, __pyx_L3_error) __pyx_v_radius = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_radius == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1245, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[3]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1246, __pyx_L3_error) if (values[4]) { __pyx_v_num_segments = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_num_segments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1248, __pyx_L3_error) } else { __pyx_v_num_segments = ((int)0); } if (values[5]) { __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1249, __pyx_L3_error) } else { __pyx_v_thickness = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_circle", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1242, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_circle", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_34add_circle(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_centre_x, __pyx_v_centre_y, __pyx_v_radius, __pyx_v_col, __pyx_v_num_segments, __pyx_v_thickness); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_34add_circle(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_centre_x, float __pyx_v_centre_y, float __pyx_v_radius, ImU32 __pyx_v_col, int __pyx_v_num_segments, float __pyx_v_thickness) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_circle", 0); /* "imgui/core.pyx":1281 * """ * self._ptr.AddCircle( * _cast_args_ImVec2(centre_x, centre_y), # <<<<<<<<<<<<<< * radius, * col, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_centre_x, __pyx_v_centre_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1281, __pyx_L1_error) /* "imgui/core.pyx":1280 * ) * """ * self._ptr.AddCircle( # <<<<<<<<<<<<<< * _cast_args_ImVec2(centre_x, centre_y), * radius, */ try { __pyx_v_self->_ptr->AddCircle(__pyx_t_1, __pyx_v_radius, __pyx_v_col, __pyx_v_num_segments, __pyx_v_thickness); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1280, __pyx_L1_error) } /* "imgui/core.pyx":1242 * ) * * def add_circle( # <<<<<<<<<<<<<< * self, * float centre_x, float centre_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_circle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1288 * ) * * def add_circle_filled( # <<<<<<<<<<<<<< * self, * float centre_x, float centre_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_37add_circle_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_36add_circle_filled[] = "_DrawList.add_circle_filled(self, float centre_x, float centre_y, float radius, ImU32 col, ImU32 num_segments=0)\nAdd a filled circle to the draw list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Filled circle example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_circle_filled(100, 60, 30, imgui.get_color_u32_rgba(1,1,0,1))\n imgui.end()\n\n Args:\n centre_x (float): circle centre coordinates\n centre_y (float): circle centre coordinates\n radius (float): circle radius\n col (ImU32): RGBA color specification\n num_segments (ImU32): Number of segments, defaults to 0 meaning auto-tesselation\n\n .. wraps::\n void ImDrawList::AddCircleFilled(\n const ImVec2& centre,\n float radius,\n ImU32 col,\n int num_segments = 0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_37add_circle_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_centre_x; float __pyx_v_centre_y; float __pyx_v_radius; ImU32 __pyx_v_col; ImU32 __pyx_v_num_segments; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_circle_filled (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_centre_x,&__pyx_n_s_centre_y,&__pyx_n_s_radius,&__pyx_n_s_col,&__pyx_n_s_num_segments,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centre_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centre_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_circle_filled", 0, 4, 5, 1); __PYX_ERR(0, 1288, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_radius)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_circle_filled", 0, 4, 5, 2); __PYX_ERR(0, 1288, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_circle_filled", 0, 4, 5, 3); __PYX_ERR(0, 1288, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_num_segments); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_circle_filled") < 0)) __PYX_ERR(0, 1288, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_centre_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_centre_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1290, __pyx_L3_error) __pyx_v_centre_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_centre_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1290, __pyx_L3_error) __pyx_v_radius = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_radius == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1291, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[3]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1292, __pyx_L3_error) if (values[4]) { __pyx_v_num_segments = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_num_segments == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1294, __pyx_L3_error) } else { __pyx_v_num_segments = ((ImU32)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_circle_filled", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1288, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_circle_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_36add_circle_filled(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_centre_x, __pyx_v_centre_y, __pyx_v_radius, __pyx_v_col, __pyx_v_num_segments); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_36add_circle_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_centre_x, float __pyx_v_centre_y, float __pyx_v_radius, ImU32 __pyx_v_col, ImU32 __pyx_v_num_segments) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_circle_filled", 0); /* "imgui/core.pyx":1325 * """ * self._ptr.AddCircleFilled( * _cast_args_ImVec2(centre_x, centre_y), # <<<<<<<<<<<<<< * radius, * col, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_centre_x, __pyx_v_centre_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1325, __pyx_L1_error) /* "imgui/core.pyx":1324 * ) * """ * self._ptr.AddCircleFilled( # <<<<<<<<<<<<<< * _cast_args_ImVec2(centre_x, centre_y), * radius, */ try { __pyx_v_self->_ptr->AddCircleFilled(__pyx_t_1, __pyx_v_radius, __pyx_v_col, __pyx_v_num_segments); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1324, __pyx_L1_error) } /* "imgui/core.pyx":1288 * ) * * def add_circle_filled( # <<<<<<<<<<<<<< * self, * float centre_x, float centre_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_circle_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1331 * ) * * def add_ngon( # <<<<<<<<<<<<<< * self, * float centre_x, float centre_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_39add_ngon(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_38add_ngon[] = "_DrawList.add_ngon(self, float centre_x, float centre_y, float radius, ImU32 col, int num_segments, float thickness=1.0)\nDraw a regular Ngon\n \n Args:\n centre_x (float): circle centre coordinates\n centre_y (float): circle centre coordinates\n radius (float): Distance of points to center\n col (ImU32): RGBA color specification\n num_segments (int): Number of segments\n thickness (float): Line thickness\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Ngon Example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_ngon(100, 60, 30, imgui.get_color_u32_rgba(1,1,0,1), 5)\n imgui.end()\n \n .. wraps::\n void AddNgon(\n const ImVec2& center, \n float radius, \n ImU32 col, \n int num_segments, \n float thickness = 1.0f\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_39add_ngon(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_centre_x; float __pyx_v_centre_y; float __pyx_v_radius; ImU32 __pyx_v_col; int __pyx_v_num_segments; float __pyx_v_thickness; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_ngon (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_centre_x,&__pyx_n_s_centre_y,&__pyx_n_s_radius,&__pyx_n_s_col,&__pyx_n_s_num_segments,&__pyx_n_s_thickness,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centre_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centre_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_ngon", 0, 5, 6, 1); __PYX_ERR(0, 1331, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_radius)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_ngon", 0, 5, 6, 2); __PYX_ERR(0, 1331, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_ngon", 0, 5, 6, 3); __PYX_ERR(0, 1331, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_num_segments)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_ngon", 0, 5, 6, 4); __PYX_ERR(0, 1331, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_ngon") < 0)) __PYX_ERR(0, 1331, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_centre_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_centre_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1333, __pyx_L3_error) __pyx_v_centre_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_centre_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1333, __pyx_L3_error) __pyx_v_radius = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_radius == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1334, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[3]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1335, __pyx_L3_error) __pyx_v_num_segments = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_num_segments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1336, __pyx_L3_error) if (values[5]) { __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1337, __pyx_L3_error) } else { __pyx_v_thickness = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_ngon", 0, 5, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1331, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_ngon", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_38add_ngon(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_centre_x, __pyx_v_centre_y, __pyx_v_radius, __pyx_v_col, __pyx_v_num_segments, __pyx_v_thickness); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_38add_ngon(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_centre_x, float __pyx_v_centre_y, float __pyx_v_radius, ImU32 __pyx_v_col, int __pyx_v_num_segments, float __pyx_v_thickness) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_ngon", 0); /* "imgui/core.pyx":1369 * """ * self._ptr.AddNgon( * _cast_args_ImVec2(centre_x, centre_y), # <<<<<<<<<<<<<< * radius, col, num_segments, thickness * ) */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_centre_x, __pyx_v_centre_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1369, __pyx_L1_error) /* "imgui/core.pyx":1368 * ) * """ * self._ptr.AddNgon( # <<<<<<<<<<<<<< * _cast_args_ImVec2(centre_x, centre_y), * radius, col, num_segments, thickness */ try { __pyx_v_self->_ptr->AddNgon(__pyx_t_1, __pyx_v_radius, __pyx_v_col, __pyx_v_num_segments, __pyx_v_thickness); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1368, __pyx_L1_error) } /* "imgui/core.pyx":1331 * ) * * def add_ngon( # <<<<<<<<<<<<<< * self, * float centre_x, float centre_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_ngon", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1373 * ) * * def add_ngon_filled( # <<<<<<<<<<<<<< * self, * float centre_x, float centre_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_41add_ngon_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_40add_ngon_filled[] = "_DrawList.add_ngon_filled(self, float centre_x, float centre_y, float radius, ImU32 col, int num_segments)\nDraw a regular Ngon\n \n Args:\n centre_x (float): circle centre coordinates\n centre_y (float): circle centre coordinates\n radius (float): Distance of points to center\n col (ImU32): RGBA color specification\n num_segments (int): Number of segments\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Filled Ngon Example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_ngon_filled(100, 60, 30, imgui.get_color_u32_rgba(1,1,0,1), 5)\n imgui.end()\n \n .. wraps::\n void AddNgonFilled(\n const ImVec2& center, \n float radius, \n ImU32 col, \n int num_segments\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_41add_ngon_filled(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_centre_x; float __pyx_v_centre_y; float __pyx_v_radius; ImU32 __pyx_v_col; int __pyx_v_num_segments; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_ngon_filled (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_centre_x,&__pyx_n_s_centre_y,&__pyx_n_s_radius,&__pyx_n_s_col,&__pyx_n_s_num_segments,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centre_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centre_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_ngon_filled", 1, 5, 5, 1); __PYX_ERR(0, 1373, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_radius)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_ngon_filled", 1, 5, 5, 2); __PYX_ERR(0, 1373, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_ngon_filled", 1, 5, 5, 3); __PYX_ERR(0, 1373, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_num_segments)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_ngon_filled", 1, 5, 5, 4); __PYX_ERR(0, 1373, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_ngon_filled") < 0)) __PYX_ERR(0, 1373, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 5) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); } __pyx_v_centre_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_centre_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1375, __pyx_L3_error) __pyx_v_centre_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_centre_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1375, __pyx_L3_error) __pyx_v_radius = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_radius == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1376, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[3]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1377, __pyx_L3_error) __pyx_v_num_segments = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_num_segments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1378, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_ngon_filled", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1373, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_ngon_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_40add_ngon_filled(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_centre_x, __pyx_v_centre_y, __pyx_v_radius, __pyx_v_col, __pyx_v_num_segments); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_40add_ngon_filled(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_centre_x, float __pyx_v_centre_y, float __pyx_v_radius, ImU32 __pyx_v_col, int __pyx_v_num_segments) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_ngon_filled", 0); /* "imgui/core.pyx":1408 * """ * self._ptr.AddNgonFilled( * _cast_args_ImVec2(centre_x, centre_y), # <<<<<<<<<<<<<< * radius, col, num_segments * ) */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_centre_x, __pyx_v_centre_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1408, __pyx_L1_error) /* "imgui/core.pyx":1407 * ) * """ * self._ptr.AddNgonFilled( # <<<<<<<<<<<<<< * _cast_args_ImVec2(centre_x, centre_y), * radius, col, num_segments */ try { __pyx_v_self->_ptr->AddNgonFilled(__pyx_t_1, __pyx_v_radius, __pyx_v_col, __pyx_v_num_segments); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1407, __pyx_L1_error) } /* "imgui/core.pyx":1373 * ) * * def add_ngon_filled( # <<<<<<<<<<<<<< * self, * float centre_x, float centre_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_ngon_filled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1412 * ) * * def add_text( # <<<<<<<<<<<<<< * self, * float pos_x, float pos_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_43add_text(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_42add_text[] = "_DrawList.add_text(self, float pos_x, float pos_y, ImU32 col, str text)\nAdd text to the draw list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Text example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_text(20, 35, imgui.get_color_u32_rgba(1,1,0,1), \"Hello!\")\n imgui.end()\n\n Args:\n pos_x (float): X coordinate of the text's upper-left corner\n pos_y (float): Y coordinate of the text's upper-left corner\n col (ImU32): RGBA color specification\n text (str): text\n\n .. wraps::\n void ImDrawList::AddText(\n const ImVec2& pos,\n ImU32 col,\n const char* text_begin,\n const char* text_end = NULL\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_43add_text(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_pos_x; float __pyx_v_pos_y; ImU32 __pyx_v_col; PyObject *__pyx_v_text = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_text (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pos_x,&__pyx_n_s_pos_y,&__pyx_n_s_col,&__pyx_n_s_text,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pos_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pos_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_text", 1, 4, 4, 1); __PYX_ERR(0, 1412, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_text", 1, 4, 4, 2); __PYX_ERR(0, 1412, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_text", 1, 4, 4, 3); __PYX_ERR(0, 1412, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_text") < 0)) __PYX_ERR(0, 1412, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); } __pyx_v_pos_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_pos_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1414, __pyx_L3_error) __pyx_v_pos_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_pos_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1414, __pyx_L3_error) __pyx_v_col = __Pyx_PyInt_As_ImU32(values[2]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1415, __pyx_L3_error) __pyx_v_text = ((PyObject*)values[3]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_text", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1412, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 1416, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_42add_text(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_pos_x, __pyx_v_pos_y, __pyx_v_col, __pyx_v_text); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_42add_text(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_pos_x, float __pyx_v_pos_y, ImU32 __pyx_v_col, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_text", 0); /* "imgui/core.pyx":1445 * """ * self._ptr.AddText( * _cast_args_ImVec2(pos_x, pos_y), # <<<<<<<<<<<<<< * col, * _bytes(text), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_pos_x, __pyx_v_pos_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1445, __pyx_L1_error) /* "imgui/core.pyx":1447 * _cast_args_ImVec2(pos_x, pos_y), * col, * _bytes(text), # <<<<<<<<<<<<<< * NULL * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 1447, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 1447, __pyx_L1_error) /* "imgui/core.pyx":1444 * ) * """ * self._ptr.AddText( # <<<<<<<<<<<<<< * _cast_args_ImVec2(pos_x, pos_y), * col, */ try { __pyx_v_self->_ptr->AddText(__pyx_t_1, __pyx_v_col, __pyx_t_3, NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1444, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":1412 * ) * * def add_text( # <<<<<<<<<<<<<< * self, * float pos_x, float pos_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._DrawList.add_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1451 * ) * * def add_image(self, # <<<<<<<<<<<<<< * texture_id, * tuple a, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_45add_image(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_44add_image[] = "_DrawList.add_image(self, texture_id, tuple a, tuple b, tuple uv_a=(0, 0), tuple uv_b=(1, 1), ImU32 col=0xffffffff)\nAdd image to the draw list. Aspect ratio is not preserved.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Image example\")\n texture_id = imgui.get_io().fonts.texture_id\n draw_list = imgui.get_window_draw_list()\n draw_list.add_image(texture_id, (20, 35), (180, 80), col=imgui.get_color_u32_rgba(0.5,0.5,1,1))\n imgui.end()\n\n Args:\n texture_id (object): ID of the texture to draw\n a (tuple): top-left image corner coordinates,\n b (tuple): bottom-right image corner coordinates,\n uv_a (tuple): UV coordinates of the top-left corner, defaults to (0, 0)\n uv_b (tuple): UV coordinates of the bottom-right corner, defaults to (1, 1)\n col (ImU32): tint color, defaults to 0xffffffff (no tint)\n\n .. wraps::\n void ImDrawList::AddImage(\n ImTextureID user_texture_id,\n const ImVec2& a,\n const ImVec2& b,\n const ImVec2& uv_a = ImVec2(0,0),\n const ImVec2& uv_b = ImVec2(1,1),\n ImU32 col = 0xFFFFFFFF\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_45add_image(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_texture_id = 0; PyObject *__pyx_v_a = 0; PyObject *__pyx_v_b = 0; PyObject *__pyx_v_uv_a = 0; PyObject *__pyx_v_uv_b = 0; ImU32 __pyx_v_col; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_image (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_texture_id,&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_uv_a,&__pyx_n_s_uv_b,&__pyx_n_s_col,0}; PyObject* values[6] = {0,0,0,0,0,0}; /* "imgui/core.pyx":1455 * tuple a, * tuple b, * tuple uv_a=(0,0), # <<<<<<<<<<<<<< * tuple uv_b=(1,1), * cimgui.ImU32 col=0xffffffff): */ values[3] = ((PyObject*)__pyx_tuple__8); /* "imgui/core.pyx":1456 * tuple b, * tuple uv_a=(0,0), * tuple uv_b=(1,1), # <<<<<<<<<<<<<< * cimgui.ImU32 col=0xffffffff): * """Add image to the draw list. Aspect ratio is not preserved. */ values[4] = ((PyObject*)__pyx_tuple__9); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_texture_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_image", 0, 3, 6, 1); __PYX_ERR(0, 1451, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_image", 0, 3, 6, 2); __PYX_ERR(0, 1451, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_a); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_b); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_image") < 0)) __PYX_ERR(0, 1451, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_texture_id = values[0]; __pyx_v_a = ((PyObject*)values[1]); __pyx_v_b = ((PyObject*)values[2]); __pyx_v_uv_a = ((PyObject*)values[3]); __pyx_v_uv_b = ((PyObject*)values[4]); if (values[5]) { __pyx_v_col = __Pyx_PyInt_As_ImU32(values[5]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1457, __pyx_L3_error) } else { __pyx_v_col = ((ImU32)0xffffffff); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_image", 0, 3, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1451, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_image", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), (&PyTuple_Type), 1, "a", 1))) __PYX_ERR(0, 1453, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), (&PyTuple_Type), 1, "b", 1))) __PYX_ERR(0, 1454, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_a), (&PyTuple_Type), 1, "uv_a", 1))) __PYX_ERR(0, 1455, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_b), (&PyTuple_Type), 1, "uv_b", 1))) __PYX_ERR(0, 1456, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_44add_image(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_texture_id, __pyx_v_a, __pyx_v_b, __pyx_v_uv_a, __pyx_v_uv_b, __pyx_v_col); /* "imgui/core.pyx":1451 * ) * * def add_image(self, # <<<<<<<<<<<<<< * texture_id, * tuple a, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_44add_image(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, PyObject *__pyx_v_texture_id, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_uv_a, PyObject *__pyx_v_uv_b, ImU32 __pyx_v_col) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; ImVec2 __pyx_t_5; ImVec2 __pyx_t_6; ImVec2 __pyx_t_7; ImVec2 __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_image", 0); /* "imgui/core.pyx":1489 * ) * """ * get_current_context()._keepalive_cache.append(texture_id) # <<<<<<<<<<<<<< * self._ptr.AddImage( * texture_id, */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_get_current_context); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_keepalive_cache); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_v_texture_id); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1489, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":1492 * self._ptr.AddImage( * texture_id, * _cast_tuple_ImVec2(a), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(b), * _cast_tuple_ImVec2(uv_a), */ __pyx_t_5 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_a); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1492, __pyx_L1_error) /* "imgui/core.pyx":1493 * texture_id, * _cast_tuple_ImVec2(a), * _cast_tuple_ImVec2(b), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(uv_a), * _cast_tuple_ImVec2(uv_b), */ __pyx_t_6 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_b); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1493, __pyx_L1_error) /* "imgui/core.pyx":1494 * _cast_tuple_ImVec2(a), * _cast_tuple_ImVec2(b), * _cast_tuple_ImVec2(uv_a), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(uv_b), * col */ __pyx_t_7 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_uv_a); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1494, __pyx_L1_error) /* "imgui/core.pyx":1495 * _cast_tuple_ImVec2(b), * _cast_tuple_ImVec2(uv_a), * _cast_tuple_ImVec2(uv_b), # <<<<<<<<<<<<<< * col * ) */ __pyx_t_8 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_uv_b); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1495, __pyx_L1_error) /* "imgui/core.pyx":1490 * """ * get_current_context()._keepalive_cache.append(texture_id) * self._ptr.AddImage( # <<<<<<<<<<<<<< * texture_id, * _cast_tuple_ImVec2(a), */ try { __pyx_v_self->_ptr->AddImage(((void *)__pyx_v_texture_id), __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_v_col); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1490, __pyx_L1_error) } /* "imgui/core.pyx":1451 * ) * * def add_image(self, # <<<<<<<<<<<<<< * texture_id, * tuple a, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawList.add_image", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1499 * ) * * def add_image_rounded(self, # <<<<<<<<<<<<<< * texture_id, * tuple a, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_47add_image_rounded(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_46add_image_rounded[] = "_DrawList.add_image_rounded(self, texture_id, tuple a, tuple b, tuple uv_a=(0, 0), tuple uv_b=(1, 1), ImU32 col=0xffffffff, float rounding=0.0, ImDrawFlags flags=0)\nAdd rounded image to the draw list. Aspect ratio is not preserved.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Image example\")\n texture_id = imgui.get_io().fonts.texture_id\n draw_list = imgui.get_window_draw_list()\n draw_list.add_image_rounded(texture_id, (20, 35), (180, 80), col=imgui.get_color_u32_rgba(0.5,0.5,1,1), rounding=10)\n imgui.end()\n\n Args:\n texture_id (object): ID of the texture to draw\n a (tuple): top-left image corner coordinates,\n b (tuple): bottom-right image corner coordinates,\n uv_a (tuple): UV coordinates of the top-left corner, defaults to (0, 0)\n uv_b (tuple): UV coordinates of the bottom-right corner, defaults to (1, 1)\n col (ImU32): tint color, defaults to 0xffffffff (no tint)\n rounding (float): degree of rounding, defaults to 0.0\n flags (ImDrawFlags): draw flags, defaults to 0. See:\n :ref:`list of available flags `.\n\n .. wraps::\n void ImDrawList::AddImageRounded(\n ImTextureID user_texture_id,\n const ImVec2& a,\n const ImVec2& b,\n const ImVec2& uv_a = ImVec2(0,0),\n const ImVec2& uv_b = ImVec2(1,1),\n ImU32 col = 0xFFFFFFFF,\n float rounding = 0.0f,\n ImDrawFlags flags = 0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_47add_image_rounded(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_texture_id = 0; PyObject *__pyx_v_a = 0; PyObject *__pyx_v_b = 0; PyObject *__pyx_v_uv_a = 0; PyObject *__pyx_v_uv_b = 0; ImU32 __pyx_v_col; float __pyx_v_rounding; ImDrawFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_image_rounded (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_texture_id,&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_uv_a,&__pyx_n_s_uv_b,&__pyx_n_s_col,&__pyx_n_s_rounding,&__pyx_n_s_flags,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":1503 * tuple a, * tuple b, * tuple uv_a=(0,0), # <<<<<<<<<<<<<< * tuple uv_b=(1,1), * cimgui.ImU32 col=0xffffffff, */ values[3] = ((PyObject*)__pyx_tuple__8); /* "imgui/core.pyx":1504 * tuple b, * tuple uv_a=(0,0), * tuple uv_b=(1,1), # <<<<<<<<<<<<<< * cimgui.ImU32 col=0xffffffff, * float rounding = 0.0, */ values[4] = ((PyObject*)__pyx_tuple__9); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_texture_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_image_rounded", 0, 3, 8, 1); __PYX_ERR(0, 1499, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_image_rounded", 0, 3, 8, 2); __PYX_ERR(0, 1499, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_a); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_b); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rounding); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_image_rounded") < 0)) __PYX_ERR(0, 1499, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_texture_id = values[0]; __pyx_v_a = ((PyObject*)values[1]); __pyx_v_b = ((PyObject*)values[2]); __pyx_v_uv_a = ((PyObject*)values[3]); __pyx_v_uv_b = ((PyObject*)values[4]); if (values[5]) { __pyx_v_col = __Pyx_PyInt_As_ImU32(values[5]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1505, __pyx_L3_error) } else { __pyx_v_col = ((ImU32)0xffffffff); } if (values[6]) { __pyx_v_rounding = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_rounding == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1506, __pyx_L3_error) } else { __pyx_v_rounding = ((float)0.0); } if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImDrawFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImDrawFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1507, __pyx_L3_error) } else { __pyx_v_flags = ((ImDrawFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_image_rounded", 0, 3, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1499, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_image_rounded", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), (&PyTuple_Type), 1, "a", 1))) __PYX_ERR(0, 1501, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), (&PyTuple_Type), 1, "b", 1))) __PYX_ERR(0, 1502, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_a), (&PyTuple_Type), 1, "uv_a", 1))) __PYX_ERR(0, 1503, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_b), (&PyTuple_Type), 1, "uv_b", 1))) __PYX_ERR(0, 1504, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_46add_image_rounded(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_texture_id, __pyx_v_a, __pyx_v_b, __pyx_v_uv_a, __pyx_v_uv_b, __pyx_v_col, __pyx_v_rounding, __pyx_v_flags); /* "imgui/core.pyx":1499 * ) * * def add_image_rounded(self, # <<<<<<<<<<<<<< * texture_id, * tuple a, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_46add_image_rounded(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, PyObject *__pyx_v_texture_id, PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_uv_a, PyObject *__pyx_v_uv_b, ImU32 __pyx_v_col, float __pyx_v_rounding, ImDrawFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; ImVec2 __pyx_t_5; ImVec2 __pyx_t_6; ImVec2 __pyx_t_7; ImVec2 __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_image_rounded", 0); /* "imgui/core.pyx":1544 * ) * """ * get_current_context()._keepalive_cache.append(texture_id) # <<<<<<<<<<<<<< * self._ptr.AddImageRounded( * texture_id, */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_get_current_context); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_keepalive_cache); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_v_texture_id); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1544, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":1547 * self._ptr.AddImageRounded( * texture_id, * _cast_tuple_ImVec2(a), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(b), * _cast_tuple_ImVec2(uv_a), */ __pyx_t_5 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_a); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1547, __pyx_L1_error) /* "imgui/core.pyx":1548 * texture_id, * _cast_tuple_ImVec2(a), * _cast_tuple_ImVec2(b), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(uv_a), * _cast_tuple_ImVec2(uv_b), */ __pyx_t_6 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_b); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1548, __pyx_L1_error) /* "imgui/core.pyx":1549 * _cast_tuple_ImVec2(a), * _cast_tuple_ImVec2(b), * _cast_tuple_ImVec2(uv_a), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(uv_b), * col, */ __pyx_t_7 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_uv_a); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1549, __pyx_L1_error) /* "imgui/core.pyx":1550 * _cast_tuple_ImVec2(b), * _cast_tuple_ImVec2(uv_a), * _cast_tuple_ImVec2(uv_b), # <<<<<<<<<<<<<< * col, * rounding, */ __pyx_t_8 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_uv_b); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1550, __pyx_L1_error) /* "imgui/core.pyx":1545 * """ * get_current_context()._keepalive_cache.append(texture_id) * self._ptr.AddImageRounded( # <<<<<<<<<<<<<< * texture_id, * _cast_tuple_ImVec2(a), */ try { __pyx_v_self->_ptr->AddImageRounded(((void *)__pyx_v_texture_id), __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_v_col, __pyx_v_rounding, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1545, __pyx_L1_error) } /* "imgui/core.pyx":1499 * ) * * def add_image_rounded(self, # <<<<<<<<<<<<<< * texture_id, * tuple a, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawList.add_image_rounded", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1556 * ) * * def add_polyline( # <<<<<<<<<<<<<< * self, * list points, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_49add_polyline(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_48add_polyline[] = "_DrawList.add_polyline(self, list points, ImU32 col, ImDrawFlags flags=0, float thickness=1.0)\nAdd a optionally closed polyline to the draw list.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Polyline example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.add_polyline([(20, 35), (90, 35), (55, 80)], imgui.get_color_u32_rgba(1,1,0,1), flags=imgui.DRAW_NONE, thickness=3)\n draw_list.add_polyline([(110, 35), (180, 35), (145, 80)], imgui.get_color_u32_rgba(1,0,0,1), flags=imgui.DRAW_CLOSED, thickness=3)\n imgui.end()\n\n Args:\n points (list): list of points\n col (float): RGBA color specification\n flags (ImDrawFlags): Drawing flags. See:\n :ref:`list of available flags `.\n thickness (float): line thickness\n\n .. wraps::\n void ImDrawList::AddPolyline(\n const ImVec2* points,\n int num_points,\n ImU32 col,\n flags flags,\n float thickness\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_49add_polyline(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_points = 0; ImU32 __pyx_v_col; ImDrawFlags __pyx_v_flags; float __pyx_v_thickness; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_polyline (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_points,&__pyx_n_s_col,&__pyx_n_s_flags,&__pyx_n_s_thickness,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_points)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_polyline", 0, 2, 4, 1); __PYX_ERR(0, 1556, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_polyline") < 0)) __PYX_ERR(0, 1556, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_points = ((PyObject*)values[0]); __pyx_v_col = __Pyx_PyInt_As_ImU32(values[1]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1559, __pyx_L3_error) if (values[2]) { __pyx_v_flags = __Pyx_PyInt_As_ImDrawFlags(values[2]); if (unlikely((__pyx_v_flags == ((ImDrawFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1560, __pyx_L3_error) } else { __pyx_v_flags = ((ImDrawFlags)0); } if (values[3]) { __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1561, __pyx_L3_error) } else { __pyx_v_thickness = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_polyline", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1556, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.add_polyline", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_points), (&PyList_Type), 1, "points", 1))) __PYX_ERR(0, 1558, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_48add_polyline(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_points, __pyx_v_col, __pyx_v_flags, __pyx_v_thickness); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_48add_polyline(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, PyObject *__pyx_v_points, ImU32 __pyx_v_col, ImDrawFlags __pyx_v_flags, float __pyx_v_thickness) { PyObject *__pyx_v_num_points = NULL; ImVec2 *__pyx_v_pts; PyObject *__pyx_v_i = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; size_t __pyx_t_4; PyObject *(*__pyx_t_5)(PyObject *); PyObject *__pyx_t_6 = NULL; float __pyx_t_7; float __pyx_t_8; ImVec2 __pyx_t_9; Py_ssize_t __pyx_t_10; int __pyx_t_11; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_polyline", 0); /* "imgui/core.pyx":1592 * ) * """ * num_points = len(points) # <<<<<<<<<<<<<< * cdef cimgui.ImVec2 *pts * pts = malloc(num_points * cython.sizeof(cimgui.ImVec2)) */ if (unlikely(__pyx_v_points == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1592, __pyx_L1_error) } __pyx_t_1 = PyList_GET_SIZE(__pyx_v_points); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1592, __pyx_L1_error) __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_num_points = __pyx_t_2; __pyx_t_2 = 0; /* "imgui/core.pyx":1594 * num_points = len(points) * cdef cimgui.ImVec2 *pts * pts = malloc(num_points * cython.sizeof(cimgui.ImVec2)) # <<<<<<<<<<<<<< * for i in range(num_points): * pts[i] = _cast_args_ImVec2(points[i][0], points[i][1]) */ __pyx_t_2 = __Pyx_PyInt_FromSize_t((sizeof(ImVec2))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyNumber_Multiply(__pyx_v_num_points, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyInt_As_size_t(__pyx_t_3); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1594, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pts = ((ImVec2 *)malloc(__pyx_t_4)); /* "imgui/core.pyx":1595 * cdef cimgui.ImVec2 *pts * pts = malloc(num_points * cython.sizeof(cimgui.ImVec2)) * for i in range(num_points): # <<<<<<<<<<<<<< * pts[i] = _cast_args_ImVec2(points[i][0], points[i][1]) * self._ptr.AddPolyline( */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_num_points); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1595, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_2))) { if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(0, 1595, __pyx_L1_error) #else __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(0, 1595, __pyx_L1_error) #else __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } } else { __pyx_t_3 = __pyx_t_5(__pyx_t_2); if (unlikely(!__pyx_t_3)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 1595, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_3); } __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":1596 * pts = malloc(num_points * cython.sizeof(cimgui.ImVec2)) * for i in range(num_points): * pts[i] = _cast_args_ImVec2(points[i][0], points[i][1]) # <<<<<<<<<<<<<< * self._ptr.AddPolyline( * pts, */ if (unlikely(__pyx_v_points == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1596, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_points, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __pyx_PyFloat_AsFloat(__pyx_t_6); if (unlikely((__pyx_t_7 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1596, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v_points == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1596, __pyx_L1_error) } __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_points, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_6, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_8 = __pyx_PyFloat_AsFloat(__pyx_t_3); if (unlikely((__pyx_t_8 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1596, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_9 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_t_7, __pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1596, __pyx_L1_error) __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1596, __pyx_L1_error) (__pyx_v_pts[__pyx_t_10]) = __pyx_t_9; /* "imgui/core.pyx":1595 * cdef cimgui.ImVec2 *pts * pts = malloc(num_points * cython.sizeof(cimgui.ImVec2)) * for i in range(num_points): # <<<<<<<<<<<<<< * pts[i] = _cast_args_ImVec2(points[i][0], points[i][1]) * self._ptr.AddPolyline( */ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":1599 * self._ptr.AddPolyline( * pts, * num_points, # <<<<<<<<<<<<<< * col, * flags, */ __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_num_points); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1599, __pyx_L1_error) /* "imgui/core.pyx":1597 * for i in range(num_points): * pts[i] = _cast_args_ImVec2(points[i][0], points[i][1]) * self._ptr.AddPolyline( # <<<<<<<<<<<<<< * pts, * num_points, */ try { __pyx_v_self->_ptr->AddPolyline(__pyx_v_pts, __pyx_t_11, __pyx_v_col, __pyx_v_flags, __pyx_v_thickness); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1597, __pyx_L1_error) } /* "imgui/core.pyx":1604 * thickness * ) * free(pts) # <<<<<<<<<<<<<< * * # Path related functions */ free(__pyx_v_pts); /* "imgui/core.pyx":1556 * ) * * def add_polyline( # <<<<<<<<<<<<<< * self, * list points, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core._DrawList.add_polyline", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_num_points); __Pyx_XDECREF(__pyx_v_i); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1608 * # Path related functions * * def path_clear(self): # <<<<<<<<<<<<<< * """ * Clear the current list of path point */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_51path_clear(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_50path_clear[] = "_DrawList.path_clear(self)\n\n Clear the current list of path point\n\n .. wraps::\n void ImDrawList::PathClear()\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_51path_clear(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("path_clear (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_50path_clear(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_50path_clear(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("path_clear", 0); /* "imgui/core.pyx":1615 * void ImDrawList::PathClear() * """ * self._ptr.PathClear() # <<<<<<<<<<<<<< * * def path_line_to(self, float x, float y): */ try { __pyx_v_self->_ptr->PathClear(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1615, __pyx_L1_error) } /* "imgui/core.pyx":1608 * # Path related functions * * def path_clear(self): # <<<<<<<<<<<<<< * """ * Clear the current list of path point */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_clear", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1617 * self._ptr.PathClear() * * def path_line_to(self, float x, float y): # <<<<<<<<<<<<<< * """ * Add a point to the path list */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_53path_line_to(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_52path_line_to[] = "_DrawList.path_line_to(self, float x, float y)\n\n Add a point to the path list\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Path line to example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.path_clear()\n draw_list.path_line_to(20, 35)\n draw_list.path_line_to(180, 80)\n draw_list.path_stroke(imgui.get_color_u32_rgba(1,1,0,1), flags=0, thickness=3)\n draw_list.path_clear()\n draw_list.path_line_to(180, 35)\n draw_list.path_line_to(20, 80)\n draw_list.path_stroke(imgui.get_color_u32_rgba(1,0,0,1), flags=0, thickness=3)\n imgui.end()\n\n Args:\n x (float): path point x coordinate\n y (float): path point y coordinate\n\n .. wraps::\n void ImDrawList::PathLineTo(\n const ImVec2& pos,\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_53path_line_to(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_x; float __pyx_v_y; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("path_line_to (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_line_to", 1, 2, 2, 1); __PYX_ERR(0, 1617, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "path_line_to") < 0)) __PYX_ERR(0, 1617, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1617, __pyx_L3_error) __pyx_v_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1617, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("path_line_to", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1617, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_line_to", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_52path_line_to(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_x, __pyx_v_y); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_52path_line_to(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_x, float __pyx_v_y) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("path_line_to", 0); /* "imgui/core.pyx":1648 * """ * self._ptr.PathLineTo( * _cast_args_ImVec2(x, y) # <<<<<<<<<<<<<< * ) * */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1648, __pyx_L1_error) /* "imgui/core.pyx":1647 * ) * """ * self._ptr.PathLineTo( # <<<<<<<<<<<<<< * _cast_args_ImVec2(x, y) * ) */ try { __pyx_v_self->_ptr->PathLineTo(__pyx_t_1); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1647, __pyx_L1_error) } /* "imgui/core.pyx":1617 * self._ptr.PathClear() * * def path_line_to(self, float x, float y): # <<<<<<<<<<<<<< * """ * Add a point to the path list */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_line_to", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1651 * ) * * def path_arc_to( # <<<<<<<<<<<<<< * self, * float center_x, float center_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_55path_arc_to(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_54path_arc_to[] = "_DrawList.path_arc_to(self, float center_x, float center_y, float radius, float a_min, float a_max, ImU32 num_segments=0)\n\n Add an arc to the path list\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Path arc to example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.path_clear()\n draw_list.path_arc_to(55, 60, 30, 1, 5)\n draw_list.path_stroke(imgui.get_color_u32_rgba(1,1,0,1), flags=0, thickness=3)\n draw_list.path_clear()\n draw_list.path_arc_to(155, 60, 30, -2, 2)\n draw_list.path_fill_convex(imgui.get_color_u32_rgba(1,0,0,1))\n imgui.end()\n\n Args:\n center_x (float): arc center x coordinate\n center_y (float): arc center y coordinate\n radius (flaot): radius of the arc\n a_min (float): minimum angle of the arc (in radian)\n a_max (float): maximum angle of the arc (in radian)\n num_segments (ImU32): Number of segments, defaults to 0 meaning auto-tesselation\n\n .. wraps::\n void ImDrawList::PathArcTo(\n const ImVec2& center,\n float radius,\n float a_min,\n float a_max,\n int num_segments = 0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_55path_arc_to(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_center_x; float __pyx_v_center_y; float __pyx_v_radius; float __pyx_v_a_min; float __pyx_v_a_max; ImU32 __pyx_v_num_segments; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("path_arc_to (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_center_x,&__pyx_n_s_center_y,&__pyx_n_s_radius,&__pyx_n_s_a_min,&__pyx_n_s_a_max,&__pyx_n_s_num_segments,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_arc_to", 0, 5, 6, 1); __PYX_ERR(0, 1651, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_radius)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_arc_to", 0, 5, 6, 2); __PYX_ERR(0, 1651, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_min)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_arc_to", 0, 5, 6, 3); __PYX_ERR(0, 1651, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_max)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_arc_to", 0, 5, 6, 4); __PYX_ERR(0, 1651, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_num_segments); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "path_arc_to") < 0)) __PYX_ERR(0, 1651, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_center_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_center_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1653, __pyx_L3_error) __pyx_v_center_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_center_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1653, __pyx_L3_error) __pyx_v_radius = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_radius == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1654, __pyx_L3_error) __pyx_v_a_min = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_a_min == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1655, __pyx_L3_error) __pyx_v_a_max = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_a_max == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1655, __pyx_L3_error) if (values[5]) { __pyx_v_num_segments = __Pyx_PyInt_As_ImU32(values[5]); if (unlikely((__pyx_v_num_segments == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1657, __pyx_L3_error) } else { __pyx_v_num_segments = ((ImU32)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("path_arc_to", 0, 5, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1651, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_arc_to", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_54path_arc_to(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_center_x, __pyx_v_center_y, __pyx_v_radius, __pyx_v_a_min, __pyx_v_a_max, __pyx_v_num_segments); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_54path_arc_to(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_center_x, float __pyx_v_center_y, float __pyx_v_radius, float __pyx_v_a_min, float __pyx_v_a_max, ImU32 __pyx_v_num_segments) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("path_arc_to", 0); /* "imgui/core.pyx":1695 * """ * self._ptr.PathArcTo( * _cast_args_ImVec2(center_x, center_y), # <<<<<<<<<<<<<< * radius, * a_min, a_max, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_center_x, __pyx_v_center_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1695, __pyx_L1_error) /* "imgui/core.pyx":1694 * ) * """ * self._ptr.PathArcTo( # <<<<<<<<<<<<<< * _cast_args_ImVec2(center_x, center_y), * radius, */ try { __pyx_v_self->_ptr->PathArcTo(__pyx_t_1, __pyx_v_radius, __pyx_v_a_min, __pyx_v_a_max, __pyx_v_num_segments); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1694, __pyx_L1_error) } /* "imgui/core.pyx":1651 * ) * * def path_arc_to( # <<<<<<<<<<<<<< * self, * float center_x, float center_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_arc_to", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1701 * ) * * def path_arc_to_fast( # <<<<<<<<<<<<<< * self, * float center_x, float center_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_57path_arc_to_fast(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_56path_arc_to_fast[] = "_DrawList.path_arc_to_fast(self, float center_x, float center_y, float radius, ImU32 a_min_of_12, ImU32 a_max_of_12)\n\n Add an arc to the path list\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Path arc to fast example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.path_clear()\n draw_list.path_arc_to_fast(55, 60, 30, 0, 6)\n draw_list.path_stroke(imgui.get_color_u32_rgba(1,1,0,1), flags=0, thickness=3)\n draw_list.path_clear()\n draw_list.path_arc_to_fast(155, 60, 30, 3, 9)\n draw_list.path_fill_convex(imgui.get_color_u32_rgba(1,0,0,1))\n imgui.end()\n\n Args:\n center_x (float): arc center x coordinate\n center_y (float): arc center y coordinate\n radius (flaot): radius of the arc\n a_min_of_12 (ImU32): minimum angle of the arc\n a_max_of_12 (ImU32): maximum angle of the arc\n\n .. wraps::\n void ImDrawList::PathArcToFast(\n const ImVec2& center,\n float radius,\n int a_min_of_12,\n int a_max_of_12\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_57path_arc_to_fast(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_center_x; float __pyx_v_center_y; float __pyx_v_radius; ImU32 __pyx_v_a_min_of_12; ImU32 __pyx_v_a_max_of_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("path_arc_to_fast (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_center_x,&__pyx_n_s_center_y,&__pyx_n_s_radius,&__pyx_n_s_a_min_of_12,&__pyx_n_s_a_max_of_12,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_arc_to_fast", 1, 5, 5, 1); __PYX_ERR(0, 1701, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_radius)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_arc_to_fast", 1, 5, 5, 2); __PYX_ERR(0, 1701, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_min_of_12)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_arc_to_fast", 1, 5, 5, 3); __PYX_ERR(0, 1701, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_max_of_12)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_arc_to_fast", 1, 5, 5, 4); __PYX_ERR(0, 1701, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "path_arc_to_fast") < 0)) __PYX_ERR(0, 1701, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 5) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); } __pyx_v_center_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_center_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1703, __pyx_L3_error) __pyx_v_center_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_center_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1703, __pyx_L3_error) __pyx_v_radius = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_radius == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1704, __pyx_L3_error) __pyx_v_a_min_of_12 = __Pyx_PyInt_As_ImU32(values[3]); if (unlikely((__pyx_v_a_min_of_12 == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1705, __pyx_L3_error) __pyx_v_a_max_of_12 = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_a_max_of_12 == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1706, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("path_arc_to_fast", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1701, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_arc_to_fast", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_56path_arc_to_fast(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_center_x, __pyx_v_center_y, __pyx_v_radius, __pyx_v_a_min_of_12, __pyx_v_a_max_of_12); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_56path_arc_to_fast(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_center_x, float __pyx_v_center_y, float __pyx_v_radius, ImU32 __pyx_v_a_min_of_12, ImU32 __pyx_v_a_max_of_12) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("path_arc_to_fast", 0); /* "imgui/core.pyx":1742 * """ * self._ptr.PathArcToFast( * _cast_args_ImVec2(center_x, center_y), # <<<<<<<<<<<<<< * radius, * a_min_of_12, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_center_x, __pyx_v_center_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1742, __pyx_L1_error) /* "imgui/core.pyx":1741 * ) * """ * self._ptr.PathArcToFast( # <<<<<<<<<<<<<< * _cast_args_ImVec2(center_x, center_y), * radius, */ try { __pyx_v_self->_ptr->PathArcToFast(__pyx_t_1, __pyx_v_radius, __pyx_v_a_min_of_12, __pyx_v_a_max_of_12); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1741, __pyx_L1_error) } /* "imgui/core.pyx":1701 * ) * * def path_arc_to_fast( # <<<<<<<<<<<<<< * self, * float center_x, float center_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_arc_to_fast", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1748 * ) * * def path_rect( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_59path_rect(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_58path_rect[] = "_DrawList.path_rect(self, float point1_x, float point1_y, float point2_x, float point2_y, float rounding=0.0, ImDrawFlags flags=0)\n\n Add a rect to the path list\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Path arc to fast example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.path_clear()\n draw_list.path_rect(20, 35, 90, 80)\n draw_list.path_stroke(imgui.get_color_u32_rgba(1,1,0,1), flags=0, thickness=3)\n draw_list.path_clear()\n draw_list.path_rect(110, 35, 180, 80, 5)\n draw_list.path_fill_convex(imgui.get_color_u32_rgba(1,0,0,1))\n imgui.end()\n\n Args:\n point1_x (float): point1 x coordinate\n point1_y (float): point1 y coordinate\n point2_x (float): point2 x coordinate\n point2_y (float): point2 y coordinate\n rounding (flaot): Degree of rounding, defaults to 0.0\n flags (ImDrawFlags):Draw flags, defaults to 0. See:\n :ref:`list of available flags `.\n\n .. wraps::\n void ImDrawList::PathRect(\n const ImVec2& p1,\n const ImVec2& p2,\n float rounding = 0.0,\n ImDrawFlags flags = 0\n )\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_59path_rect(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_point1_x; float __pyx_v_point1_y; float __pyx_v_point2_x; float __pyx_v_point2_y; float __pyx_v_rounding; ImDrawFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("path_rect (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_point1_x,&__pyx_n_s_point1_y,&__pyx_n_s_point2_x,&__pyx_n_s_point2_y,&__pyx_n_s_rounding,&__pyx_n_s_flags,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point1_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_rect", 0, 4, 6, 1); __PYX_ERR(0, 1748, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_rect", 0, 4, 6, 2); __PYX_ERR(0, 1748, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_point2_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("path_rect", 0, 4, 6, 3); __PYX_ERR(0, 1748, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rounding); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "path_rect") < 0)) __PYX_ERR(0, 1748, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_point1_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_point1_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1750, __pyx_L3_error) __pyx_v_point1_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_point1_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1750, __pyx_L3_error) __pyx_v_point2_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_point2_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1751, __pyx_L3_error) __pyx_v_point2_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_point2_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1751, __pyx_L3_error) if (values[4]) { __pyx_v_rounding = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_rounding == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1753, __pyx_L3_error) } else { __pyx_v_rounding = ((float)0.0); } if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImDrawFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImDrawFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1754, __pyx_L3_error) } else { __pyx_v_flags = ((ImDrawFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("path_rect", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1748, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_58path_rect(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_point1_x, __pyx_v_point1_y, __pyx_v_point2_x, __pyx_v_point2_y, __pyx_v_rounding, __pyx_v_flags); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_58path_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_point1_x, float __pyx_v_point1_y, float __pyx_v_point2_x, float __pyx_v_point2_y, float __pyx_v_rounding, ImDrawFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("path_rect", 0); /* "imgui/core.pyx":1792 * """ * self._ptr.PathRect( * _cast_args_ImVec2(point1_x, point1_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(point2_x, point2_y), * rounding, */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point1_x, __pyx_v_point1_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1792, __pyx_L1_error) /* "imgui/core.pyx":1793 * self._ptr.PathRect( * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), # <<<<<<<<<<<<<< * rounding, * flags */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_point2_x, __pyx_v_point2_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1793, __pyx_L1_error) /* "imgui/core.pyx":1791 * ) * """ * self._ptr.PathRect( # <<<<<<<<<<<<<< * _cast_args_ImVec2(point1_x, point1_y), * _cast_args_ImVec2(point2_x, point2_y), */ try { __pyx_v_self->_ptr->PathRect(__pyx_t_1, __pyx_t_2, __pyx_v_rounding, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1791, __pyx_L1_error) } /* "imgui/core.pyx":1748 * ) * * def path_rect( # <<<<<<<<<<<<<< * self, * float point1_x, float point1_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1800 * # Path rendering functions * * def path_fill_convex(self, cimgui.ImU32 col): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_61path_fill_convex(PyObject *__pyx_v_self, PyObject *__pyx_arg_col); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_60path_fill_convex[] = "_DrawList.path_fill_convex(self, ImU32 col)\n\n\n Note: Filled shapes must always use clockwise winding order.\n The anti-aliasing fringe depends on it. Counter-clockwise shapes\n will have \"inward\" anti-aliasing.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Path fill convex example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.path_clear()\n draw_list.path_line_to(100, 60)\n draw_list.path_arc_to(100, 60, 30, 0.5, 5.5)\n draw_list.path_fill_convex(imgui.get_color_u32_rgba(1,1,0,1))\n imgui.end()\n\n Args:\n col (ImU32): color to fill the path shape with\n\n .. wraps::\n void ImDrawList::PathFillConvex(\n ImU32 col\n );\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_61path_fill_convex(PyObject *__pyx_v_self, PyObject *__pyx_arg_col) { ImU32 __pyx_v_col; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("path_fill_convex (wrapper)", 0); assert(__pyx_arg_col); { __pyx_v_col = __Pyx_PyInt_As_ImU32(__pyx_arg_col); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1800, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_fill_convex", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_60path_fill_convex(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), ((ImU32)__pyx_v_col)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_60path_fill_convex(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, ImU32 __pyx_v_col) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("path_fill_convex", 0); /* "imgui/core.pyx":1828 * ); * """ * self._ptr.PathFillConvex(col) # <<<<<<<<<<<<<< * * def path_stroke( */ try { __pyx_v_self->_ptr->PathFillConvex(__pyx_v_col); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1828, __pyx_L1_error) } /* "imgui/core.pyx":1800 * # Path rendering functions * * def path_fill_convex(self, cimgui.ImU32 col): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_fill_convex", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1830 * self._ptr.PathFillConvex(col) * * def path_stroke( # <<<<<<<<<<<<<< * self, * cimgui.ImU32 col, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_63path_stroke(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_62path_stroke[] = "_DrawList.path_stroke(self, ImU32 col, ImDrawFlags flags=0, float thickness=1.0)\n\n Args:\n col (ImU32): color to fill the path shape with\n flags (ImDrawFlags): draw flags, defaults to 0. See:\n :ref:`list of available flags `.\n thickness (float): Line thickness in pixels\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 100\n\n imgui.begin(\"Path stroke example\")\n draw_list = imgui.get_window_draw_list()\n draw_list.path_clear()\n draw_list.path_line_to(100, 60)\n draw_list.path_arc_to(100, 60, 30, 0.5, 5.5)\n draw_list.path_stroke(imgui.get_color_u32_rgba(1,1,0,1), flags=imgui.DRAW_CLOSED, thickness=3)\n imgui.end()\n\n\n .. wraps::\n void ImDrawList::PathStroke(\n ImU32 col,\n ImDrawFlags flags = 0,\n float thickness = 1.0\n );\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_63path_stroke(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImU32 __pyx_v_col; ImDrawFlags __pyx_v_flags; float __pyx_v_thickness; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("path_stroke (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_col,&__pyx_n_s_flags,&__pyx_n_s_thickness,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_col)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thickness); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "path_stroke") < 0)) __PYX_ERR(0, 1830, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_col = __Pyx_PyInt_As_ImU32(values[0]); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1832, __pyx_L3_error) if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImDrawFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImDrawFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1834, __pyx_L3_error) } else { __pyx_v_flags = ((ImDrawFlags)0); } if (values[2]) { __pyx_v_thickness = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_thickness == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1835, __pyx_L3_error) } else { __pyx_v_thickness = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("path_stroke", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1830, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_stroke", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_62path_stroke(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_col, __pyx_v_flags, __pyx_v_thickness); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_62path_stroke(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, ImU32 __pyx_v_col, ImDrawFlags __pyx_v_flags, float __pyx_v_thickness) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("path_stroke", 0); /* "imgui/core.pyx":1865 * ); * """ * self._ptr.PathStroke( # <<<<<<<<<<<<<< * col, * flags, */ try { __pyx_v_self->_ptr->PathStroke(__pyx_v_col, __pyx_v_flags, __pyx_v_thickness); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1865, __pyx_L1_error) } /* "imgui/core.pyx":1830 * self._ptr.PathFillConvex(col) * * def path_stroke( # <<<<<<<<<<<<<< * self, * cimgui.ImU32 col, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.path_stroke", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1873 * # channels * * def channels_split(self, int channels_count): # <<<<<<<<<<<<<< * """Use to split render into layers. * By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_65channels_split(PyObject *__pyx_v_self, PyObject *__pyx_arg_channels_count); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_64channels_split[] = "_DrawList.channels_split(self, int channels_count)\nUse to split render into layers. \n By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives)\n Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end)\n \n Prefer using your own persistent instance of ImDrawListSplitter as you can stack them.\n Using the ImDrawList::ChannelsXXXX you cannot stack a split over another.\n \n Warning - be careful with using channels as \"layers\".\n Child windows are always drawn after their parent, so they will\n paint over its channels.\n To paint over child windows, use `OverlayDrawList`.\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_65channels_split(PyObject *__pyx_v_self, PyObject *__pyx_arg_channels_count) { int __pyx_v_channels_count; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("channels_split (wrapper)", 0); assert(__pyx_arg_channels_count); { __pyx_v_channels_count = __Pyx_PyInt_As_int(__pyx_arg_channels_count); if (unlikely((__pyx_v_channels_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1873, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.channels_split", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_64channels_split(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), ((int)__pyx_v_channels_count)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_64channels_split(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, int __pyx_v_channels_count) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("channels_split", 0); /* "imgui/core.pyx":1887 * """ * # TODO: document * self._ptr.ChannelsSplit(channels_count) # <<<<<<<<<<<<<< * * def channels_set_current(self, int idx): */ try { __pyx_v_self->_ptr->ChannelsSplit(__pyx_v_channels_count); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1887, __pyx_L1_error) } /* "imgui/core.pyx":1873 * # channels * * def channels_split(self, int channels_count): # <<<<<<<<<<<<<< * """Use to split render into layers. * By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.channels_split", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1889 * self._ptr.ChannelsSplit(channels_count) * * def channels_set_current(self, int idx): # <<<<<<<<<<<<<< * # TODO: document * self._ptr.ChannelsSetCurrent(idx) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_67channels_set_current(PyObject *__pyx_v_self, PyObject *__pyx_arg_idx); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_66channels_set_current[] = "_DrawList.channels_set_current(self, int idx)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_67channels_set_current(PyObject *__pyx_v_self, PyObject *__pyx_arg_idx) { int __pyx_v_idx; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("channels_set_current (wrapper)", 0); assert(__pyx_arg_idx); { __pyx_v_idx = __Pyx_PyInt_As_int(__pyx_arg_idx); if (unlikely((__pyx_v_idx == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1889, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.channels_set_current", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_66channels_set_current(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), ((int)__pyx_v_idx)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_66channels_set_current(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, int __pyx_v_idx) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("channels_set_current", 0); /* "imgui/core.pyx":1891 * def channels_set_current(self, int idx): * # TODO: document * self._ptr.ChannelsSetCurrent(idx) # <<<<<<<<<<<<<< * * def channels_merge(self): */ try { __pyx_v_self->_ptr->ChannelsSetCurrent(__pyx_v_idx); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1891, __pyx_L1_error) } /* "imgui/core.pyx":1889 * self._ptr.ChannelsSplit(channels_count) * * def channels_set_current(self, int idx): # <<<<<<<<<<<<<< * # TODO: document * self._ptr.ChannelsSetCurrent(idx) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.channels_set_current", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1893 * self._ptr.ChannelsSetCurrent(idx) * * def channels_merge(self): # <<<<<<<<<<<<<< * # TODO: document * self._ptr.ChannelsMerge() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_69channels_merge(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_68channels_merge[] = "_DrawList.channels_merge(self)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_69channels_merge(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("channels_merge (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_68channels_merge(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_68channels_merge(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("channels_merge", 0); /* "imgui/core.pyx":1895 * def channels_merge(self): * # TODO: document * self._ptr.ChannelsMerge() # <<<<<<<<<<<<<< * * def prim_reserve(self, int idx_count, int vtx_count): */ try { __pyx_v_self->_ptr->ChannelsMerge(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1895, __pyx_L1_error) } /* "imgui/core.pyx":1893 * self._ptr.ChannelsSetCurrent(idx) * * def channels_merge(self): # <<<<<<<<<<<<<< * # TODO: document * self._ptr.ChannelsMerge() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.channels_merge", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1897 * self._ptr.ChannelsMerge() * * def prim_reserve(self, int idx_count, int vtx_count): # <<<<<<<<<<<<<< * """Reserve space for a number of vertices and indices. * You must finish filling your reserved data before calling `prim_reserve()` again, as it may */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_71prim_reserve(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_70prim_reserve[] = "_DrawList.prim_reserve(self, int idx_count, int vtx_count)\nReserve space for a number of vertices and indices.\n You must finish filling your reserved data before calling `prim_reserve()` again, as it may \n reallocate or submit the intermediate results. `prim_unreserve()` can be used to release \n unused allocations.\n \n Drawing a quad is 6 idx (2 triangles) with 2 sharing vertices for a total of 4 vertices.\n \n Args:\n idx_count (int): Number of indices to add to IdxBuffer\n vtx_count (int): Number of verticies to add to VtxBuffer\n \n .. wraps::\n void PrimReserve(int idx_count, int vtx_count)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_71prim_reserve(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_idx_count; int __pyx_v_vtx_count; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("prim_reserve (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_idx_count,&__pyx_n_s_vtx_count,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_idx_count)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vtx_count)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_reserve", 1, 2, 2, 1); __PYX_ERR(0, 1897, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "prim_reserve") < 0)) __PYX_ERR(0, 1897, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_idx_count = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_idx_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1897, __pyx_L3_error) __pyx_v_vtx_count = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_vtx_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1897, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("prim_reserve", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1897, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_reserve", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_70prim_reserve(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_idx_count, __pyx_v_vtx_count); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_70prim_reserve(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, int __pyx_v_idx_count, int __pyx_v_vtx_count) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("prim_reserve", 0); /* "imgui/core.pyx":1912 * void PrimReserve(int idx_count, int vtx_count) * """ * self._ptr.PrimReserve(idx_count, vtx_count) # <<<<<<<<<<<<<< * * def prim_unreserve(self, int idx_count, int vtx_count): */ try { __pyx_v_self->_ptr->PrimReserve(__pyx_v_idx_count, __pyx_v_vtx_count); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1912, __pyx_L1_error) } /* "imgui/core.pyx":1897 * self._ptr.ChannelsMerge() * * def prim_reserve(self, int idx_count, int vtx_count): # <<<<<<<<<<<<<< * """Reserve space for a number of vertices and indices. * You must finish filling your reserved data before calling `prim_reserve()` again, as it may */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_reserve", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1914 * self._ptr.PrimReserve(idx_count, vtx_count) * * def prim_unreserve(self, int idx_count, int vtx_count): # <<<<<<<<<<<<<< * """Release the a number of reserved vertices/indices from the end of the * last reservation made with `prim_reserve()`. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_73prim_unreserve(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_72prim_unreserve[] = "_DrawList.prim_unreserve(self, int idx_count, int vtx_count)\nRelease the a number of reserved vertices/indices from the end of the \n last reservation made with `prim_reserve()`.\n \n Args:\n idx_count (int): Number of indices to remove from IdxBuffer\n vtx_count (int): Number of verticies to remove from VtxBuffer\n \n .. wraps::\n void PrimUnreserve(int idx_count, int vtx_count)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_73prim_unreserve(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_idx_count; int __pyx_v_vtx_count; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("prim_unreserve (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_idx_count,&__pyx_n_s_vtx_count,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_idx_count)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vtx_count)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_unreserve", 1, 2, 2, 1); __PYX_ERR(0, 1914, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "prim_unreserve") < 0)) __PYX_ERR(0, 1914, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_idx_count = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_idx_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1914, __pyx_L3_error) __pyx_v_vtx_count = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_vtx_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1914, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("prim_unreserve", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1914, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_unreserve", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_72prim_unreserve(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_idx_count, __pyx_v_vtx_count); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_72prim_unreserve(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, int __pyx_v_idx_count, int __pyx_v_vtx_count) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("prim_unreserve", 0); /* "imgui/core.pyx":1925 * void PrimUnreserve(int idx_count, int vtx_count) * """ * self._ptr.PrimUnreserve(idx_count, vtx_count) # <<<<<<<<<<<<<< * * def prim_rect(self, float a_x, float a_y, float b_x, float b_y, cimgui.ImU32 color = 0xFFFFFFFF): */ try { __pyx_v_self->_ptr->PrimUnreserve(__pyx_v_idx_count, __pyx_v_vtx_count); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1925, __pyx_L1_error) } /* "imgui/core.pyx":1914 * self._ptr.PrimReserve(idx_count, vtx_count) * * def prim_unreserve(self, int idx_count, int vtx_count): # <<<<<<<<<<<<<< * """Release the a number of reserved vertices/indices from the end of the * last reservation made with `prim_reserve()`. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_unreserve", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1927 * self._ptr.PrimUnreserve(idx_count, vtx_count) * * def prim_rect(self, float a_x, float a_y, float b_x, float b_y, cimgui.ImU32 color = 0xFFFFFFFF): # <<<<<<<<<<<<<< * """Axis aligned rectangle (2 triangles) * Reserve primitive space with `prim_rect()` before calling `prim_quad_UV()`. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_75prim_rect(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_74prim_rect[] = "_DrawList.prim_rect(self, float a_x, float a_y, float b_x, float b_y, ImU32 color=0xFFFFFFFF)\nAxis aligned rectangle (2 triangles)\n Reserve primitive space with `prim_rect()` before calling `prim_quad_UV()`.\n Each call to `prim_rect()` is 6 idx and 4 vtx.\n \n Args:\n a_x, a_y (float): First rectangle point coordinates\n b_x, b_y (float): Opposite rectangle point coordinates\n color (ImU32): Color\n \n .. wraps::\n void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_75prim_rect(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_a_x; float __pyx_v_a_y; float __pyx_v_b_x; float __pyx_v_b_y; ImU32 __pyx_v_color; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("prim_rect (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a_x,&__pyx_n_s_a_y,&__pyx_n_s_b_x,&__pyx_n_s_b_y,&__pyx_n_s_color,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect", 0, 4, 5, 1); __PYX_ERR(0, 1927, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect", 0, 4, 5, 2); __PYX_ERR(0, 1927, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect", 0, 4, 5, 3); __PYX_ERR(0, 1927, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_color); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "prim_rect") < 0)) __PYX_ERR(0, 1927, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_a_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_a_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1927, __pyx_L3_error) __pyx_v_a_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_a_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1927, __pyx_L3_error) __pyx_v_b_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_b_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1927, __pyx_L3_error) __pyx_v_b_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1927, __pyx_L3_error) if (values[4]) { __pyx_v_color = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_color == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1927, __pyx_L3_error) } else { __pyx_v_color = ((ImU32)0xFFFFFFFF); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("prim_rect", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1927, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_74prim_rect(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_a_x, __pyx_v_a_y, __pyx_v_b_x, __pyx_v_b_y, __pyx_v_color); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_74prim_rect(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_a_x, float __pyx_v_a_y, float __pyx_v_b_x, float __pyx_v_b_y, ImU32 __pyx_v_color) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("prim_rect", 0); /* "imgui/core.pyx":1941 * """ * self._ptr.PrimRect( * _cast_args_ImVec2(a_x, a_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(b_x, b_y), * color */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_a_x, __pyx_v_a_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1941, __pyx_L1_error) /* "imgui/core.pyx":1942 * self._ptr.PrimRect( * _cast_args_ImVec2(a_x, a_y), * _cast_args_ImVec2(b_x, b_y), # <<<<<<<<<<<<<< * color * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_b_x, __pyx_v_b_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1942, __pyx_L1_error) /* "imgui/core.pyx":1940 * void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col) * """ * self._ptr.PrimRect( # <<<<<<<<<<<<<< * _cast_args_ImVec2(a_x, a_y), * _cast_args_ImVec2(b_x, b_y), */ try { __pyx_v_self->_ptr->PrimRect(__pyx_t_1, __pyx_t_2, __pyx_v_color); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1940, __pyx_L1_error) } /* "imgui/core.pyx":1927 * self._ptr.PrimUnreserve(idx_count, vtx_count) * * def prim_rect(self, float a_x, float a_y, float b_x, float b_y, cimgui.ImU32 color = 0xFFFFFFFF): # <<<<<<<<<<<<<< * """Axis aligned rectangle (2 triangles) * Reserve primitive space with `prim_rect()` before calling `prim_quad_UV()`. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1946 * ) * * def prim_rect_UV( # <<<<<<<<<<<<<< * self, * float a_x, float a_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_77prim_rect_UV(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_76prim_rect_UV[] = "_DrawList.prim_rect_UV(self, float a_x, float a_y, float b_x, float b_y, float uv_a_u, float uv_a_v, float uv_b_u, float uv_b_v, ImU32 color=0xFFFFFFFF)\nAxis aligned rectangle (2 triangles) with custom UV coordinates.\n Reserve primitive space with `prim_reserve()` before calling `prim_rect_UV()`.\n Each call to `prim_rect_UV()` is 6 idx and 4 vtx.\n Set the texture ID using `push_texture_id()`.\n \n Args:\n a_x, a_y (float): First rectangle point coordinates\n b_x, b_y (float): Opposite rectangle point coordinates\n uv_a_u, uv_a_v (float): First rectangle point UV coordinates\n uv_b_u, uv_b_v (float): Opposite rectangle point UV coordinates\n color (ImU32): Color\n \n .. wraps::\n void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_77prim_rect_UV(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_a_x; float __pyx_v_a_y; float __pyx_v_b_x; float __pyx_v_b_y; float __pyx_v_uv_a_u; float __pyx_v_uv_a_v; float __pyx_v_uv_b_u; float __pyx_v_uv_b_v; ImU32 __pyx_v_color; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("prim_rect_UV (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a_x,&__pyx_n_s_a_y,&__pyx_n_s_b_x,&__pyx_n_s_b_y,&__pyx_n_s_uv_a_u,&__pyx_n_s_uv_a_v,&__pyx_n_s_uv_b_u,&__pyx_n_s_uv_b_v,&__pyx_n_s_color,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect_UV", 0, 8, 9, 1); __PYX_ERR(0, 1946, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect_UV", 0, 8, 9, 2); __PYX_ERR(0, 1946, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect_UV", 0, 8, 9, 3); __PYX_ERR(0, 1946, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_a_u)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect_UV", 0, 8, 9, 4); __PYX_ERR(0, 1946, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_a_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect_UV", 0, 8, 9, 5); __PYX_ERR(0, 1946, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_b_u)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect_UV", 0, 8, 9, 6); __PYX_ERR(0, 1946, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_b_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_rect_UV", 0, 8, 9, 7); __PYX_ERR(0, 1946, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_color); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "prim_rect_UV") < 0)) __PYX_ERR(0, 1946, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_a_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_a_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1948, __pyx_L3_error) __pyx_v_a_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_a_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1948, __pyx_L3_error) __pyx_v_b_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_b_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1949, __pyx_L3_error) __pyx_v_b_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1949, __pyx_L3_error) __pyx_v_uv_a_u = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_uv_a_u == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1950, __pyx_L3_error) __pyx_v_uv_a_v = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_uv_a_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1950, __pyx_L3_error) __pyx_v_uv_b_u = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_uv_b_u == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1951, __pyx_L3_error) __pyx_v_uv_b_v = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_uv_b_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1951, __pyx_L3_error) if (values[8]) { __pyx_v_color = __Pyx_PyInt_As_ImU32(values[8]); if (unlikely((__pyx_v_color == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1952, __pyx_L3_error) } else { __pyx_v_color = ((ImU32)0xFFFFFFFF); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("prim_rect_UV", 0, 8, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1946, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_rect_UV", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_76prim_rect_UV(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_a_x, __pyx_v_a_y, __pyx_v_b_x, __pyx_v_b_y, __pyx_v_uv_a_u, __pyx_v_uv_a_v, __pyx_v_uv_b_u, __pyx_v_uv_b_v, __pyx_v_color); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_76prim_rect_UV(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_a_x, float __pyx_v_a_y, float __pyx_v_b_x, float __pyx_v_b_y, float __pyx_v_uv_a_u, float __pyx_v_uv_a_v, float __pyx_v_uv_b_u, float __pyx_v_uv_b_v, ImU32 __pyx_v_color) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; ImVec2 __pyx_t_3; ImVec2 __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("prim_rect_UV", 0); /* "imgui/core.pyx":1970 * """ * self._ptr.PrimRectUV( * _cast_args_ImVec2(a_x, a_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(b_x, b_y), * _cast_args_ImVec2(uv_a_u, uv_a_v), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_a_x, __pyx_v_a_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1970, __pyx_L1_error) /* "imgui/core.pyx":1971 * self._ptr.PrimRectUV( * _cast_args_ImVec2(a_x, a_y), * _cast_args_ImVec2(b_x, b_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(uv_a_u, uv_a_v), * _cast_args_ImVec2(uv_b_u, uv_b_v), */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_b_x, __pyx_v_b_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1971, __pyx_L1_error) /* "imgui/core.pyx":1972 * _cast_args_ImVec2(a_x, a_y), * _cast_args_ImVec2(b_x, b_y), * _cast_args_ImVec2(uv_a_u, uv_a_v), # <<<<<<<<<<<<<< * _cast_args_ImVec2(uv_b_u, uv_b_v), * color */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_uv_a_u, __pyx_v_uv_a_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1972, __pyx_L1_error) /* "imgui/core.pyx":1973 * _cast_args_ImVec2(b_x, b_y), * _cast_args_ImVec2(uv_a_u, uv_a_v), * _cast_args_ImVec2(uv_b_u, uv_b_v), # <<<<<<<<<<<<<< * color * ) */ __pyx_t_4 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_uv_b_u, __pyx_v_uv_b_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1973, __pyx_L1_error) /* "imgui/core.pyx":1969 * void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col) * """ * self._ptr.PrimRectUV( # <<<<<<<<<<<<<< * _cast_args_ImVec2(a_x, a_y), * _cast_args_ImVec2(b_x, b_y), */ try { __pyx_v_self->_ptr->PrimRectUV(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_v_color); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 1969, __pyx_L1_error) } /* "imgui/core.pyx":1946 * ) * * def prim_rect_UV( # <<<<<<<<<<<<<< * self, * float a_x, float a_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_rect_UV", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":1977 * ) * * def prim_quad_UV( # <<<<<<<<<<<<<< * self, * float a_x, float a_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_79prim_quad_UV(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_78prim_quad_UV[] = "_DrawList.prim_quad_UV(self, float a_x, float a_y, float b_x, float b_y, float c_x, float c_y, float d_x, float d_y, float uv_a_u, float uv_a_v, float uv_b_u, float uv_b_v, float uv_c_u, float uv_c_v, float uv_d_u, float uv_d_v, ImU32 color=0xFFFFFFFF)\nCustom quad (2 triangles) with custom UV coordinates.\n Reserve primitive space with `prim_reserve()` before calling `prim_quad_UV()`.\n Each call to `prim_quad_UV()` is 6 idx and 4 vtx.\n Set the texture ID using `push_texture_id()`.\n \n Args:\n a_x, a_y (float): Point 1 coordinates\n b_x, b_y (float): Point 2 coordinates\n c_x, c_y (float): Point 3 coordinates\n d_x, d_y (float): Point 4 coordinates\n uv_a_u, uv_a_v (float): Point 1 UV coordinates\n uv_b_u, uv_b_v (float): Point 2 UV coordinates\n uv_c_u, uv_c_v (float): Point 3 UV coordinates\n uv_d_u, uv_d_v (float): Point 4 UV coordinates\n color (ImU32): Color\n \n .. wraps::\n void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_79prim_quad_UV(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_a_x; float __pyx_v_a_y; float __pyx_v_b_x; float __pyx_v_b_y; float __pyx_v_c_x; float __pyx_v_c_y; float __pyx_v_d_x; float __pyx_v_d_y; float __pyx_v_uv_a_u; float __pyx_v_uv_a_v; float __pyx_v_uv_b_u; float __pyx_v_uv_b_v; float __pyx_v_uv_c_u; float __pyx_v_uv_c_v; float __pyx_v_uv_d_u; float __pyx_v_uv_d_v; ImU32 __pyx_v_color; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("prim_quad_UV (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a_x,&__pyx_n_s_a_y,&__pyx_n_s_b_x,&__pyx_n_s_b_y,&__pyx_n_s_c_x,&__pyx_n_s_c_y,&__pyx_n_s_d_x,&__pyx_n_s_d_y,&__pyx_n_s_uv_a_u,&__pyx_n_s_uv_a_v,&__pyx_n_s_uv_b_u,&__pyx_n_s_uv_b_v,&__pyx_n_s_uv_c_u,&__pyx_n_s_uv_c_v,&__pyx_n_s_uv_d_u,&__pyx_n_s_uv_d_v,&__pyx_n_s_color,0}; PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16); CYTHON_FALLTHROUGH; case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15); CYTHON_FALLTHROUGH; case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14); CYTHON_FALLTHROUGH; case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13); CYTHON_FALLTHROUGH; case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12); CYTHON_FALLTHROUGH; case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11); CYTHON_FALLTHROUGH; case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10); CYTHON_FALLTHROUGH; case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 1); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 2); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 3); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 4); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 5); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 6); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 7); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_a_u)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 8); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 9: if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_a_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 9); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 10: if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_b_u)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 10); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 11: if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_b_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 11); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 12: if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_c_u)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 12); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 13: if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_c_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 13); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 14: if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_d_u)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 14); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 15: if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_d_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, 15); __PYX_ERR(0, 1977, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 16: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_color); if (value) { values[16] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "prim_quad_UV") < 0)) __PYX_ERR(0, 1977, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16); CYTHON_FALLTHROUGH; case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15); values[14] = PyTuple_GET_ITEM(__pyx_args, 14); values[13] = PyTuple_GET_ITEM(__pyx_args, 13); values[12] = PyTuple_GET_ITEM(__pyx_args, 12); values[11] = PyTuple_GET_ITEM(__pyx_args, 11); values[10] = PyTuple_GET_ITEM(__pyx_args, 10); values[9] = PyTuple_GET_ITEM(__pyx_args, 9); values[8] = PyTuple_GET_ITEM(__pyx_args, 8); values[7] = PyTuple_GET_ITEM(__pyx_args, 7); values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_a_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_a_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1979, __pyx_L3_error) __pyx_v_a_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_a_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1979, __pyx_L3_error) __pyx_v_b_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_b_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1980, __pyx_L3_error) __pyx_v_b_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1980, __pyx_L3_error) __pyx_v_c_x = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_c_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1981, __pyx_L3_error) __pyx_v_c_y = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_c_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1981, __pyx_L3_error) __pyx_v_d_x = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_d_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1982, __pyx_L3_error) __pyx_v_d_y = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_d_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1982, __pyx_L3_error) __pyx_v_uv_a_u = __pyx_PyFloat_AsFloat(values[8]); if (unlikely((__pyx_v_uv_a_u == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1983, __pyx_L3_error) __pyx_v_uv_a_v = __pyx_PyFloat_AsFloat(values[9]); if (unlikely((__pyx_v_uv_a_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1983, __pyx_L3_error) __pyx_v_uv_b_u = __pyx_PyFloat_AsFloat(values[10]); if (unlikely((__pyx_v_uv_b_u == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1984, __pyx_L3_error) __pyx_v_uv_b_v = __pyx_PyFloat_AsFloat(values[11]); if (unlikely((__pyx_v_uv_b_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1984, __pyx_L3_error) __pyx_v_uv_c_u = __pyx_PyFloat_AsFloat(values[12]); if (unlikely((__pyx_v_uv_c_u == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1985, __pyx_L3_error) __pyx_v_uv_c_v = __pyx_PyFloat_AsFloat(values[13]); if (unlikely((__pyx_v_uv_c_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1985, __pyx_L3_error) __pyx_v_uv_d_u = __pyx_PyFloat_AsFloat(values[14]); if (unlikely((__pyx_v_uv_d_u == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1986, __pyx_L3_error) __pyx_v_uv_d_v = __pyx_PyFloat_AsFloat(values[15]); if (unlikely((__pyx_v_uv_d_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1986, __pyx_L3_error) if (values[16]) { __pyx_v_color = __Pyx_PyInt_As_ImU32(values[16]); if (unlikely((__pyx_v_color == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1987, __pyx_L3_error) } else { __pyx_v_color = ((ImU32)0xFFFFFFFF); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("prim_quad_UV", 0, 16, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1977, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_quad_UV", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_78prim_quad_UV(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_a_x, __pyx_v_a_y, __pyx_v_b_x, __pyx_v_b_y, __pyx_v_c_x, __pyx_v_c_y, __pyx_v_d_x, __pyx_v_d_y, __pyx_v_uv_a_u, __pyx_v_uv_a_v, __pyx_v_uv_b_u, __pyx_v_uv_b_v, __pyx_v_uv_c_u, __pyx_v_uv_c_v, __pyx_v_uv_d_u, __pyx_v_uv_d_v, __pyx_v_color); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_78prim_quad_UV(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_a_x, float __pyx_v_a_y, float __pyx_v_b_x, float __pyx_v_b_y, float __pyx_v_c_x, float __pyx_v_c_y, float __pyx_v_d_x, float __pyx_v_d_y, float __pyx_v_uv_a_u, float __pyx_v_uv_a_v, float __pyx_v_uv_b_u, float __pyx_v_uv_b_v, float __pyx_v_uv_c_u, float __pyx_v_uv_c_v, float __pyx_v_uv_d_u, float __pyx_v_uv_d_v, ImU32 __pyx_v_color) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; ImVec2 __pyx_t_3; ImVec2 __pyx_t_4; ImVec2 __pyx_t_5; ImVec2 __pyx_t_6; ImVec2 __pyx_t_7; ImVec2 __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("prim_quad_UV", 0); /* "imgui/core.pyx":2009 * """ * self._ptr.PrimQuadUV( * _cast_args_ImVec2(a_x, a_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(b_x, b_y), * _cast_args_ImVec2(c_x, c_y), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_a_x, __pyx_v_a_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2009, __pyx_L1_error) /* "imgui/core.pyx":2010 * self._ptr.PrimQuadUV( * _cast_args_ImVec2(a_x, a_y), * _cast_args_ImVec2(b_x, b_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(c_x, c_y), * _cast_args_ImVec2(d_x, d_y), */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_b_x, __pyx_v_b_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2010, __pyx_L1_error) /* "imgui/core.pyx":2011 * _cast_args_ImVec2(a_x, a_y), * _cast_args_ImVec2(b_x, b_y), * _cast_args_ImVec2(c_x, c_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(d_x, d_y), * _cast_args_ImVec2(uv_a_u, uv_a_v), */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_c_x, __pyx_v_c_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2011, __pyx_L1_error) /* "imgui/core.pyx":2012 * _cast_args_ImVec2(b_x, b_y), * _cast_args_ImVec2(c_x, c_y), * _cast_args_ImVec2(d_x, d_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(uv_a_u, uv_a_v), * _cast_args_ImVec2(uv_b_u, uv_b_v), */ __pyx_t_4 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_d_x, __pyx_v_d_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2012, __pyx_L1_error) /* "imgui/core.pyx":2013 * _cast_args_ImVec2(c_x, c_y), * _cast_args_ImVec2(d_x, d_y), * _cast_args_ImVec2(uv_a_u, uv_a_v), # <<<<<<<<<<<<<< * _cast_args_ImVec2(uv_b_u, uv_b_v), * _cast_args_ImVec2(uv_c_u, uv_c_v), */ __pyx_t_5 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_uv_a_u, __pyx_v_uv_a_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2013, __pyx_L1_error) /* "imgui/core.pyx":2014 * _cast_args_ImVec2(d_x, d_y), * _cast_args_ImVec2(uv_a_u, uv_a_v), * _cast_args_ImVec2(uv_b_u, uv_b_v), # <<<<<<<<<<<<<< * _cast_args_ImVec2(uv_c_u, uv_c_v), * _cast_args_ImVec2(uv_d_u, uv_d_v), */ __pyx_t_6 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_uv_b_u, __pyx_v_uv_b_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2014, __pyx_L1_error) /* "imgui/core.pyx":2015 * _cast_args_ImVec2(uv_a_u, uv_a_v), * _cast_args_ImVec2(uv_b_u, uv_b_v), * _cast_args_ImVec2(uv_c_u, uv_c_v), # <<<<<<<<<<<<<< * _cast_args_ImVec2(uv_d_u, uv_d_v), * color */ __pyx_t_7 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_uv_c_u, __pyx_v_uv_c_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2015, __pyx_L1_error) /* "imgui/core.pyx":2016 * _cast_args_ImVec2(uv_b_u, uv_b_v), * _cast_args_ImVec2(uv_c_u, uv_c_v), * _cast_args_ImVec2(uv_d_u, uv_d_v), # <<<<<<<<<<<<<< * color * ) */ __pyx_t_8 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_uv_d_u, __pyx_v_uv_d_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2016, __pyx_L1_error) /* "imgui/core.pyx":2008 * void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col) * """ * self._ptr.PrimQuadUV( # <<<<<<<<<<<<<< * _cast_args_ImVec2(a_x, a_y), * _cast_args_ImVec2(b_x, b_y), */ try { __pyx_v_self->_ptr->PrimQuadUV(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_v_color); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2008, __pyx_L1_error) } /* "imgui/core.pyx":1977 * ) * * def prim_quad_UV( # <<<<<<<<<<<<<< * self, * float a_x, float a_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_quad_UV", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2020 * ) * * def prim_write_vtx(self, float pos_x, float pos_y, float u, float v, cimgui.ImU32 color = 0xFFFFFFFF): # <<<<<<<<<<<<<< * """Write a vertex * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_81prim_write_vtx(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_80prim_write_vtx[] = "_DrawList.prim_write_vtx(self, float pos_x, float pos_y, float u, float v, ImU32 color=0xFFFFFFFF)\nWrite a vertex\n \n Args:\n pos_x, pos_y (float): Point coordinates\n u, v (float): Point UV coordinates\n color (ImU32): Color\n \n .. wraps::\n void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_81prim_write_vtx(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_pos_x; float __pyx_v_pos_y; float __pyx_v_u; float __pyx_v_v; ImU32 __pyx_v_color; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("prim_write_vtx (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pos_x,&__pyx_n_s_pos_y,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_color,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pos_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pos_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_write_vtx", 0, 4, 5, 1); __PYX_ERR(0, 2020, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_write_vtx", 0, 4, 5, 2); __PYX_ERR(0, 2020, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_write_vtx", 0, 4, 5, 3); __PYX_ERR(0, 2020, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_color); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "prim_write_vtx") < 0)) __PYX_ERR(0, 2020, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_pos_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_pos_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2020, __pyx_L3_error) __pyx_v_pos_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_pos_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2020, __pyx_L3_error) __pyx_v_u = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_u == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2020, __pyx_L3_error) __pyx_v_v = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2020, __pyx_L3_error) if (values[4]) { __pyx_v_color = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_color == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2020, __pyx_L3_error) } else { __pyx_v_color = ((ImU32)0xFFFFFFFF); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("prim_write_vtx", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2020, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_write_vtx", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_80prim_write_vtx(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_pos_x, __pyx_v_pos_y, __pyx_v_u, __pyx_v_v, __pyx_v_color); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_80prim_write_vtx(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_pos_x, float __pyx_v_pos_y, float __pyx_v_u, float __pyx_v_v, ImU32 __pyx_v_color) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("prim_write_vtx", 0); /* "imgui/core.pyx":2032 * """ * self._ptr.PrimWriteVtx( * _cast_args_ImVec2(pos_x, pos_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(u, v), * color */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_pos_x, __pyx_v_pos_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2032, __pyx_L1_error) /* "imgui/core.pyx":2033 * self._ptr.PrimWriteVtx( * _cast_args_ImVec2(pos_x, pos_y), * _cast_args_ImVec2(u, v), # <<<<<<<<<<<<<< * color * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_u, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2033, __pyx_L1_error) /* "imgui/core.pyx":2031 * void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) * """ * self._ptr.PrimWriteVtx( # <<<<<<<<<<<<<< * _cast_args_ImVec2(pos_x, pos_y), * _cast_args_ImVec2(u, v), */ try { __pyx_v_self->_ptr->PrimWriteVtx(__pyx_t_1, __pyx_t_2, __pyx_v_color); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2031, __pyx_L1_error) } /* "imgui/core.pyx":2020 * ) * * def prim_write_vtx(self, float pos_x, float pos_y, float u, float v, cimgui.ImU32 color = 0xFFFFFFFF): # <<<<<<<<<<<<<< * """Write a vertex * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_write_vtx", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2037 * ) * * def prim_write_idx(self, cimgui.ImDrawIdx idx): # <<<<<<<<<<<<<< * """Write index * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_83prim_write_idx(PyObject *__pyx_v_self, PyObject *__pyx_arg_idx); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_82prim_write_idx[] = "_DrawList.prim_write_idx(self, ImDrawIdx idx)\nWrite index\n \n Args:\n idx (ImDrawIdx): index to write\n \n .. wraps::\n void PrimWriteIdx(ImDrawIdx idx)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_83prim_write_idx(PyObject *__pyx_v_self, PyObject *__pyx_arg_idx) { ImDrawIdx __pyx_v_idx; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("prim_write_idx (wrapper)", 0); assert(__pyx_arg_idx); { __pyx_v_idx = __Pyx_PyInt_As_ImDrawIdx(__pyx_arg_idx); if (unlikely((__pyx_v_idx == ((ImDrawIdx)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2037, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_write_idx", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_82prim_write_idx(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), ((ImDrawIdx)__pyx_v_idx)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_82prim_write_idx(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, ImDrawIdx __pyx_v_idx) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("prim_write_idx", 0); /* "imgui/core.pyx":2046 * void PrimWriteIdx(ImDrawIdx idx) * """ * self._ptr.PrimWriteIdx(idx) # <<<<<<<<<<<<<< * * def prim_vtx(self, float pos_x, float pos_y, float u, float v, cimgui.ImU32 color = 0xFFFFFFFF): */ try { __pyx_v_self->_ptr->PrimWriteIdx(__pyx_v_idx); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2046, __pyx_L1_error) } /* "imgui/core.pyx":2037 * ) * * def prim_write_idx(self, cimgui.ImDrawIdx idx): # <<<<<<<<<<<<<< * """Write index * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_write_idx", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2048 * self._ptr.PrimWriteIdx(idx) * * def prim_vtx(self, float pos_x, float pos_y, float u, float v, cimgui.ImU32 color = 0xFFFFFFFF): # <<<<<<<<<<<<<< * """Write vertex with unique index * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_85prim_vtx(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_84prim_vtx[] = "_DrawList.prim_vtx(self, float pos_x, float pos_y, float u, float v, ImU32 color=0xFFFFFFFF)\nWrite vertex with unique index\n \n Args:\n pos_x, pos_y (float): Point coordinates\n u, v (float): Point UV coordinates\n color (ImU32): Color\n \n .. wraps::\n void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col)\n "; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_85prim_vtx(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_pos_x; float __pyx_v_pos_y; float __pyx_v_u; float __pyx_v_v; ImU32 __pyx_v_color; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("prim_vtx (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pos_x,&__pyx_n_s_pos_y,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_color,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pos_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pos_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_vtx", 0, 4, 5, 1); __PYX_ERR(0, 2048, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_vtx", 0, 4, 5, 2); __PYX_ERR(0, 2048, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("prim_vtx", 0, 4, 5, 3); __PYX_ERR(0, 2048, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_color); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "prim_vtx") < 0)) __PYX_ERR(0, 2048, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_pos_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_pos_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2048, __pyx_L3_error) __pyx_v_pos_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_pos_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2048, __pyx_L3_error) __pyx_v_u = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_u == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2048, __pyx_L3_error) __pyx_v_v = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2048, __pyx_L3_error) if (values[4]) { __pyx_v_color = __Pyx_PyInt_As_ImU32(values[4]); if (unlikely((__pyx_v_color == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2048, __pyx_L3_error) } else { __pyx_v_color = ((ImU32)0xFFFFFFFF); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("prim_vtx", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2048, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_vtx", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_84prim_vtx(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), __pyx_v_pos_x, __pyx_v_pos_y, __pyx_v_u, __pyx_v_v, __pyx_v_color); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_84prim_vtx(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, float __pyx_v_pos_x, float __pyx_v_pos_y, float __pyx_v_u, float __pyx_v_v, ImU32 __pyx_v_color) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("prim_vtx", 0); /* "imgui/core.pyx":2060 * """ * self._ptr.PrimVtx( * _cast_args_ImVec2(pos_x, pos_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(u,v), * color */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_pos_x, __pyx_v_pos_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2060, __pyx_L1_error) /* "imgui/core.pyx":2061 * self._ptr.PrimVtx( * _cast_args_ImVec2(pos_x, pos_y), * _cast_args_ImVec2(u,v), # <<<<<<<<<<<<<< * color * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_u, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2061, __pyx_L1_error) /* "imgui/core.pyx":2059 * void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) * """ * self._ptr.PrimVtx( # <<<<<<<<<<<<<< * _cast_args_ImVec2(pos_x, pos_y), * _cast_args_ImVec2(u,v), */ try { __pyx_v_self->_ptr->PrimVtx(__pyx_t_1, __pyx_t_2, __pyx_v_color); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2059, __pyx_L1_error) } /* "imgui/core.pyx":2048 * self._ptr.PrimWriteIdx(idx) * * def prim_vtx(self, float pos_x, float pos_y, float u, float v, cimgui.ImU32 color = 0xFFFFFFFF): # <<<<<<<<<<<<<< * """Write vertex with unique index * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._DrawList.prim_vtx", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2066 * * @property * def commands(self): # <<<<<<<<<<<<<< * return [ * # todo: consider operator overloading in pxd file */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_8commands_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_8commands_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_8commands___get__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_8commands___get__(struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { int __pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2067 * @property * def commands(self): * return [ # <<<<<<<<<<<<<< * # todo: consider operator overloading in pxd file * _DrawCmd.from_ptr(&self._ptr.CmdBuffer.Data[idx]) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":2072 * # perf: short-wiring instead of using property * # note: add py3k compat * for idx in xrange(self._ptr.CmdBuffer.Size) # <<<<<<<<<<<<<< * ] * */ __pyx_t_2 = __pyx_v_self->_ptr->CmdBuffer.Size; __pyx_t_3 = __pyx_t_2; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_idx = __pyx_t_4; /* "imgui/core.pyx":2069 * return [ * # todo: consider operator overloading in pxd file * _DrawCmd.from_ptr(&self._ptr.CmdBuffer.Data[idx]) # <<<<<<<<<<<<<< * # perf: short-wiring instead of using property * # note: add py3k compat */ __pyx_t_5 = __pyx_f_5imgui_4core_8_DrawCmd_from_ptr((&(__pyx_v_self->_ptr->CmdBuffer.Data[__pyx_v_idx]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 2067, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2066 * * @property * def commands(self): # <<<<<<<<<<<<<< * return [ * # todo: consider operator overloading in pxd file */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core._DrawList.commands.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_87__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_86__reduce_cython__[] = "_DrawList.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_87__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_86__reduce_cython__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_86__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawList_89__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawList_88__setstate_cython__[] = "_DrawList.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawList_89__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawList_88__setstate_cython__(((struct __pyx_obj_5imgui_4core__DrawList *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawList_88__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawList *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawList.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2079 * cdef GuiStyle _style * * def __cinit__(self): # <<<<<<<<<<<<<< * self._style = None * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_7_Colors_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_7_Colors_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_7_Colors___cinit__(((struct __pyx_obj_5imgui_4core__Colors *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_7_Colors___cinit__(struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":2080 * * def __cinit__(self): * self._style = None # <<<<<<<<<<<<<< * * def __init__(self, GuiStyle gui_style): */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->_style); __Pyx_DECREF(((PyObject *)__pyx_v_self->_style)); __pyx_v_self->_style = ((struct __pyx_obj_5imgui_4core_GuiStyle *)Py_None); /* "imgui/core.pyx":2079 * cdef GuiStyle _style * * def __cinit__(self): # <<<<<<<<<<<<<< * self._style = None * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2082 * self._style = None * * def __init__(self, GuiStyle gui_style): # <<<<<<<<<<<<<< * self._style = gui_style * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_7_Colors_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_7_Colors_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_gui_style = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_gui_style,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gui_style)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 2082, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_gui_style = ((struct __pyx_obj_5imgui_4core_GuiStyle *)values[0]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2082, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._Colors.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gui_style), __pyx_ptype_5imgui_4core_GuiStyle, 1, "gui_style", 0))) __PYX_ERR(0, 2082, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_7_Colors_2__init__(((struct __pyx_obj_5imgui_4core__Colors *)__pyx_v_self), __pyx_v_gui_style); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_7_Colors_2__init__(struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_gui_style) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* "imgui/core.pyx":2083 * * def __init__(self, GuiStyle gui_style): * self._style = gui_style # <<<<<<<<<<<<<< * * cdef inline _check_color(self, cimgui.ImGuiCol variable): */ __Pyx_INCREF(((PyObject *)__pyx_v_gui_style)); __Pyx_GIVEREF(((PyObject *)__pyx_v_gui_style)); __Pyx_GOTREF(__pyx_v_self->_style); __Pyx_DECREF(((PyObject *)__pyx_v_self->_style)); __pyx_v_self->_style = __pyx_v_gui_style; /* "imgui/core.pyx":2082 * self._style = None * * def __init__(self, GuiStyle gui_style): # <<<<<<<<<<<<<< * self._style = gui_style * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2085 * self._style = gui_style * * cdef inline _check_color(self, cimgui.ImGuiCol variable): # <<<<<<<<<<<<<< * if not (0 <= variable < enums.ImGuiCol_COUNT): * raise ValueError("Unknown style variable: {}".format(variable)) */ static CYTHON_INLINE PyObject *__pyx_f_5imgui_4core_7_Colors__check_color(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, ImGuiCol __pyx_v_variable) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_check_color", 0); /* "imgui/core.pyx":2086 * * cdef inline _check_color(self, cimgui.ImGuiCol variable): * if not (0 <= variable < enums.ImGuiCol_COUNT): # <<<<<<<<<<<<<< * raise ValueError("Unknown style variable: {}".format(variable)) * */ __pyx_t_1 = (0 <= __pyx_v_variable); if (__pyx_t_1) { __pyx_t_1 = (__pyx_v_variable < ImGuiCol_COUNT); } __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (unlikely(__pyx_t_2)) { /* "imgui/core.pyx":2087 * cdef inline _check_color(self, cimgui.ImGuiCol variable): * if not (0 <= variable < enums.ImGuiCol_COUNT): * raise ValueError("Unknown style variable: {}".format(variable)) # <<<<<<<<<<<<<< * * def __getitem__(self, cimgui.ImGuiCol variable): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Unknown_style_variable, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_ImGuiCol(__pyx_v_variable); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 2087, __pyx_L1_error) /* "imgui/core.pyx":2086 * * cdef inline _check_color(self, cimgui.ImGuiCol variable): * if not (0 <= variable < enums.ImGuiCol_COUNT): # <<<<<<<<<<<<<< * raise ValueError("Unknown style variable: {}".format(variable)) * */ } /* "imgui/core.pyx":2085 * self._style = gui_style * * cdef inline _check_color(self, cimgui.ImGuiCol variable): # <<<<<<<<<<<<<< * if not (0 <= variable < enums.ImGuiCol_COUNT): * raise ValueError("Unknown style variable: {}".format(variable)) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core._Colors._check_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2089 * raise ValueError("Unknown style variable: {}".format(variable)) * * def __getitem__(self, cimgui.ImGuiCol variable): # <<<<<<<<<<<<<< * self._check_color(variable) * self._style._check_ptr() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_7_Colors_5__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_variable); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_7_Colors_5__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_variable) { ImGuiCol __pyx_v_variable; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); assert(__pyx_arg_variable); { __pyx_v_variable = __Pyx_PyInt_As_ImGuiCol(__pyx_arg_variable); if (unlikely((__pyx_v_variable == ((ImGuiCol)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2089, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._Colors.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_7_Colors_4__getitem__(((struct __pyx_obj_5imgui_4core__Colors *)__pyx_v_self), ((ImGuiCol)__pyx_v_variable)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_7_Colors_4__getitem__(struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, ImGuiCol __pyx_v_variable) { int __pyx_v_ix; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); /* "imgui/core.pyx":2090 * * def __getitem__(self, cimgui.ImGuiCol variable): * self._check_color(variable) # <<<<<<<<<<<<<< * self._style._check_ptr() * cdef int ix = variable */ __pyx_t_1 = __pyx_f_5imgui_4core_7_Colors__check_color(__pyx_v_self, __pyx_v_variable); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2090, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2091 * def __getitem__(self, cimgui.ImGuiCol variable): * self._check_color(variable) * self._style._check_ptr() # <<<<<<<<<<<<<< * cdef int ix = variable * return _cast_ImVec4_tuple(self._style._ptr.Colors[ix]) */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self->_style); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2092 * self._check_color(variable) * self._style._check_ptr() * cdef int ix = variable # <<<<<<<<<<<<<< * return _cast_ImVec4_tuple(self._style._ptr.Colors[ix]) * */ __pyx_v_ix = __pyx_v_variable; /* "imgui/core.pyx":2093 * self._style._check_ptr() * cdef int ix = variable * return _cast_ImVec4_tuple(self._style._ptr.Colors[ix]) # <<<<<<<<<<<<<< * * def __setitem__(self, cimgui.ImGuiCol variable, value): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec4_tuple((__pyx_v_self->_style->_ptr->Colors[__pyx_v_ix])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2089 * raise ValueError("Unknown style variable: {}".format(variable)) * * def __getitem__(self, cimgui.ImGuiCol variable): # <<<<<<<<<<<<<< * self._check_color(variable) * self._style._check_ptr() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._Colors.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2095 * return _cast_ImVec4_tuple(self._style._ptr.Colors[ix]) * * def __setitem__(self, cimgui.ImGuiCol variable, value): # <<<<<<<<<<<<<< * self._check_color(variable) * self._style._check_ptr() */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_7_Colors_7__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_variable, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_7_Colors_7__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_variable, PyObject *__pyx_v_value) { ImGuiCol __pyx_v_variable; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0); assert(__pyx_arg_variable); { __pyx_v_variable = __Pyx_PyInt_As_ImGuiCol(__pyx_arg_variable); if (unlikely((__pyx_v_variable == ((ImGuiCol)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2095, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._Colors.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_7_Colors_6__setitem__(((struct __pyx_obj_5imgui_4core__Colors *)__pyx_v_self), ((ImGuiCol)__pyx_v_variable), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_7_Colors_6__setitem__(struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, ImGuiCol __pyx_v_variable, PyObject *__pyx_v_value) { int __pyx_v_ix; int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setitem__", 0); /* "imgui/core.pyx":2096 * * def __setitem__(self, cimgui.ImGuiCol variable, value): * self._check_color(variable) # <<<<<<<<<<<<<< * self._style._check_ptr() * cdef int ix = variable */ __pyx_t_1 = __pyx_f_5imgui_4core_7_Colors__check_color(__pyx_v_self, __pyx_v_variable); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2097 * def __setitem__(self, cimgui.ImGuiCol variable, value): * self._check_color(variable) * self._style._check_ptr() # <<<<<<<<<<<<<< * cdef int ix = variable * self._style._ptr.Colors[ix] = _cast_tuple_ImVec4(value) */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self->_style); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2098 * self._check_color(variable) * self._style._check_ptr() * cdef int ix = variable # <<<<<<<<<<<<<< * self._style._ptr.Colors[ix] = _cast_tuple_ImVec4(value) * */ __pyx_v_ix = __pyx_v_variable; /* "imgui/core.pyx":2099 * self._style._check_ptr() * cdef int ix = variable * self._style._ptr.Colors[ix] = _cast_tuple_ImVec4(value) # <<<<<<<<<<<<<< * * */ (__pyx_v_self->_style->_ptr->Colors[__pyx_v_ix]) = __pyx_f_5imgui_4core__cast_tuple_ImVec4(__pyx_v_value); /* "imgui/core.pyx":2095 * return _cast_ImVec4_tuple(self._style._ptr.Colors[ix]) * * def __setitem__(self, cimgui.ImGuiCol variable, value): # <<<<<<<<<<<<<< * self._check_color(variable) * self._style._check_ptr() */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._Colors.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_7_Colors_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_7_Colors_8__reduce_cython__[] = "_Colors.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_7_Colors_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_7_Colors_8__reduce_cython__(((struct __pyx_obj_5imgui_4core__Colors *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_7_Colors_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._Colors.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_7_Colors_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_7_Colors_10__setstate_cython__[] = "_Colors.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_7_Colors_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_7_Colors_10__setstate_cython__(((struct __pyx_obj_5imgui_4core__Colors *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_7_Colors_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Colors *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._Colors.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2111 * cdef _Colors _colors * * def __cinit__(self): # <<<<<<<<<<<<<< * self._ptr = NULL * self._owner = False */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle___cinit__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle___cinit__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":2112 * * def __cinit__(self): * self._ptr = NULL # <<<<<<<<<<<<<< * self._owner = False * self._colors = None */ __pyx_v_self->_ptr = NULL; /* "imgui/core.pyx":2113 * def __cinit__(self): * self._ptr = NULL * self._owner = False # <<<<<<<<<<<<<< * self._colors = None * */ __pyx_v_self->_owner = 0; /* "imgui/core.pyx":2114 * self._ptr = NULL * self._owner = False * self._colors = None # <<<<<<<<<<<<<< * * def __dealloc__(self): */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->_colors); __Pyx_DECREF(((PyObject *)__pyx_v_self->_colors)); __pyx_v_self->_colors = ((struct __pyx_obj_5imgui_4core__Colors *)Py_None); /* "imgui/core.pyx":2111 * cdef _Colors _colors * * def __cinit__(self): # <<<<<<<<<<<<<< * self._ptr = NULL * self._owner = False */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2116 * self._colors = None * * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._owner: * del self._ptr */ /* Python wrapper */ static void __pyx_pw_5imgui_4core_8GuiStyle_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_5imgui_4core_8GuiStyle_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_5imgui_4core_8GuiStyle_2__dealloc__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_5imgui_4core_8GuiStyle_2__dealloc__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("__dealloc__", 0); /* "imgui/core.pyx":2117 * * def __dealloc__(self): * if self._owner: # <<<<<<<<<<<<<< * del self._ptr * self._ptr = NULL */ __pyx_t_1 = (__pyx_v_self->_owner != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2118 * def __dealloc__(self): * if self._owner: * del self._ptr # <<<<<<<<<<<<<< * self._ptr = NULL * */ delete __pyx_v_self->_ptr; /* "imgui/core.pyx":2119 * if self._owner: * del self._ptr * self._ptr = NULL # <<<<<<<<<<<<<< * * */ __pyx_v_self->_ptr = NULL; /* "imgui/core.pyx":2117 * * def __dealloc__(self): * if self._owner: # <<<<<<<<<<<<<< * del self._ptr * self._ptr = NULL */ } /* "imgui/core.pyx":2116 * self._colors = None * * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._owner: * del self._ptr */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "imgui/core.pyx":2122 * * * cdef inline _check_ptr(self): # <<<<<<<<<<<<<< * if self._ptr is NULL: * raise RuntimeError( */ static CYTHON_INLINE PyObject *__pyx_f_5imgui_4core_8GuiStyle__check_ptr(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_check_ptr", 0); /* "imgui/core.pyx":2123 * * cdef inline _check_ptr(self): * if self._ptr is NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "Improperly initialized, use imgui.get_style() or " */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":2124 * cdef inline _check_ptr(self): * if self._ptr is NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "Improperly initialized, use imgui.get_style() or " * "GuiStyle.created() to obtain style classes" */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 2124, __pyx_L1_error) /* "imgui/core.pyx":2123 * * cdef inline _check_ptr(self): * if self._ptr is NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "Improperly initialized, use imgui.get_style() or " */ } /* "imgui/core.pyx":2122 * * * cdef inline _check_ptr(self): # <<<<<<<<<<<<<< * if self._ptr is NULL: * raise RuntimeError( */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.GuiStyle._check_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2129 * ) * * def __eq__(GuiStyle self, GuiStyle other): # <<<<<<<<<<<<<< * return other._ptr == self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_5__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_5__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_5imgui_4core_GuiStyle, 1, "other", 0))) __PYX_ERR(0, 2129, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_4__eq__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_other)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_4__eq__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":2130 * * def __eq__(GuiStyle self, GuiStyle other): * return other._ptr == self._ptr # <<<<<<<<<<<<<< * * @staticmethod */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_other->_ptr == __pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2129 * ) * * def __eq__(GuiStyle self, GuiStyle other): # <<<<<<<<<<<<<< * return other._ptr == self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2133 * * @staticmethod * def create(): # <<<<<<<<<<<<<< * return GuiStyle._create() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_7create(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_8GuiStyle_6create[] = "GuiStyle.create()"; static PyMethodDef __pyx_mdef_5imgui_4core_8GuiStyle_7create = {"create", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_8GuiStyle_7create, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_8GuiStyle_6create}; static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_7create(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("create (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("create", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return NULL;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "create", 0))) return NULL; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_6create(); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_6create(void) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("create", 0); /* "imgui/core.pyx":2134 * @staticmethod * def create(): * return GuiStyle._create() # <<<<<<<<<<<<<< * * @staticmethod */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((PyObject *)__pyx_f_5imgui_4core_8GuiStyle__create()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2133 * * @staticmethod * def create(): # <<<<<<<<<<<<<< * return GuiStyle._create() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.create", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2137 * * @staticmethod * cdef GuiStyle from_ref(cimgui.ImGuiStyle& ref): # <<<<<<<<<<<<<< * cdef GuiStyle instance = GuiStyle() * instance._ptr = &ref */ static struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_f_5imgui_4core_8GuiStyle_from_ref(ImGuiStyle &__pyx_v_ref) { struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_instance = 0; struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ref", 0); /* "imgui/core.pyx":2138 * @staticmethod * cdef GuiStyle from_ref(cimgui.ImGuiStyle& ref): * cdef GuiStyle instance = GuiStyle() # <<<<<<<<<<<<<< * instance._ptr = &ref * instance._colors = _Colors(instance) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core_GuiStyle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2139 * cdef GuiStyle from_ref(cimgui.ImGuiStyle& ref): * cdef GuiStyle instance = GuiStyle() * instance._ptr = &ref # <<<<<<<<<<<<<< * instance._colors = _Colors(instance) * return instance */ __pyx_v_instance->_ptr = (&__pyx_v_ref); /* "imgui/core.pyx":2140 * cdef GuiStyle instance = GuiStyle() * instance._ptr = &ref * instance._colors = _Colors(instance) # <<<<<<<<<<<<<< * return instance * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5imgui_4core__Colors), ((PyObject *)__pyx_v_instance)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_instance->_colors); __Pyx_DECREF(((PyObject *)__pyx_v_instance->_colors)); __pyx_v_instance->_colors = ((struct __pyx_obj_5imgui_4core__Colors *)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2141 * instance._ptr = &ref * instance._colors = _Colors(instance) * return instance # <<<<<<<<<<<<<< * * @staticmethod */ __Pyx_XDECREF(((PyObject *)__pyx_r)); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = __pyx_v_instance; goto __pyx_L0; /* "imgui/core.pyx":2137 * * @staticmethod * cdef GuiStyle from_ref(cimgui.ImGuiStyle& ref): # <<<<<<<<<<<<<< * cdef GuiStyle instance = GuiStyle() * instance._ptr = &ref */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.from_ref", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF((PyObject *)__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2144 * * @staticmethod * cdef GuiStyle _create(): # <<<<<<<<<<<<<< * cdef cimgui.ImGuiStyle* _ptr = new cimgui.ImGuiStyle() * cdef GuiStyle instance = GuiStyle.from_ref(deref(_ptr)) */ static struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_f_5imgui_4core_8GuiStyle__create(void) { ImGuiStyle *__pyx_v__ptr; struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_instance = 0; struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImGuiStyle *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_create", 0); /* "imgui/core.pyx":2145 * @staticmethod * cdef GuiStyle _create(): * cdef cimgui.ImGuiStyle* _ptr = new cimgui.ImGuiStyle() # <<<<<<<<<<<<<< * cdef GuiStyle instance = GuiStyle.from_ref(deref(_ptr)) * instance._owner = True */ try { __pyx_t_1 = new ImGuiStyle(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2145, __pyx_L1_error) } __pyx_v__ptr = __pyx_t_1; /* "imgui/core.pyx":2146 * cdef GuiStyle _create(): * cdef cimgui.ImGuiStyle* _ptr = new cimgui.ImGuiStyle() * cdef GuiStyle instance = GuiStyle.from_ref(deref(_ptr)) # <<<<<<<<<<<<<< * instance._owner = True * instance._colors = _Colors(instance) */ __pyx_t_2 = ((PyObject *)__pyx_f_5imgui_4core_8GuiStyle_from_ref((*__pyx_v__ptr))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2147 * cdef cimgui.ImGuiStyle* _ptr = new cimgui.ImGuiStyle() * cdef GuiStyle instance = GuiStyle.from_ref(deref(_ptr)) * instance._owner = True # <<<<<<<<<<<<<< * instance._colors = _Colors(instance) * return instance */ __pyx_v_instance->_owner = 1; /* "imgui/core.pyx":2148 * cdef GuiStyle instance = GuiStyle.from_ref(deref(_ptr)) * instance._owner = True * instance._colors = _Colors(instance) # <<<<<<<<<<<<<< * return instance * */ __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5imgui_4core__Colors), ((PyObject *)__pyx_v_instance)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF(__pyx_v_instance->_colors); __Pyx_DECREF(((PyObject *)__pyx_v_instance->_colors)); __pyx_v_instance->_colors = ((struct __pyx_obj_5imgui_4core__Colors *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2149 * instance._owner = True * instance._colors = _Colors(instance) * return instance # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(((PyObject *)__pyx_r)); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = __pyx_v_instance; goto __pyx_L0; /* "imgui/core.pyx":2144 * * @staticmethod * cdef GuiStyle _create(): # <<<<<<<<<<<<<< * cdef cimgui.ImGuiStyle* _ptr = new cimgui.ImGuiStyle() * cdef GuiStyle instance = GuiStyle.from_ref(deref(_ptr)) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.GuiStyle._create", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF((PyObject *)__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2152 * * @property * def alpha(self): # <<<<<<<<<<<<<< * """Global alpha blending parameter for windows * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_5alpha_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_5alpha_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_5alpha___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_5alpha___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2158 * float * """ * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.Alpha * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2159 * """ * self._check_ptr() * return self._ptr.Alpha # <<<<<<<<<<<<<< * * @alpha.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->Alpha); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2152 * * @property * def alpha(self): # <<<<<<<<<<<<<< * """Global alpha blending parameter for windows * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.alpha.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2162 * * @alpha.setter * def alpha(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.Alpha = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_5alpha_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_5alpha_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2162, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.alpha.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_5alpha_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_5alpha_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2163 * @alpha.setter * def alpha(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.Alpha = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2164 * def alpha(self, float value): * self._check_ptr() * self._ptr.Alpha = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->Alpha = __pyx_v_value; /* "imgui/core.pyx":2162 * * @alpha.setter * def alpha(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.Alpha = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.alpha.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2167 * * @property * def window_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowPadding) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14window_padding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14window_padding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14window_padding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14window_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2168 * @property * def window_padding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.WindowPadding) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2169 * def window_padding(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowPadding) # <<<<<<<<<<<<<< * * @window_padding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->WindowPadding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2167 * * @property * def window_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowPadding) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_padding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2172 * * @window_padding.setter * def window_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowPadding = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_14window_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_14window_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14window_padding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_14window_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2173 * @window_padding.setter * def window_padding(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.WindowPadding = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2174 * def window_padding(self, value): * self._check_ptr() * self._ptr.WindowPadding = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2174, __pyx_L1_error) __pyx_v_self->_ptr->WindowPadding = __pyx_t_2; /* "imgui/core.pyx":2172 * * @window_padding.setter * def window_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowPadding = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_padding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2177 * * @property * def window_min_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowMinSize) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_15window_min_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_15window_min_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_15window_min_size___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_15window_min_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2178 * @property * def window_min_size(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.WindowMinSize) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2179 * def window_min_size(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowMinSize) # <<<<<<<<<<<<<< * * @window_min_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->WindowMinSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2177 * * @property * def window_min_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowMinSize) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_min_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2182 * * @window_min_size.setter * def window_min_size(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowMinSize = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_15window_min_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_15window_min_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_15window_min_size_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_15window_min_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2183 * @window_min_size.setter * def window_min_size(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.WindowMinSize = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2184 * def window_min_size(self, value): * self._check_ptr() * self._ptr.WindowMinSize = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2184, __pyx_L1_error) __pyx_v_self->_ptr->WindowMinSize = __pyx_t_2; /* "imgui/core.pyx":2182 * * @window_min_size.setter * def window_min_size(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowMinSize = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_min_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2187 * * @property * def window_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.WindowRounding */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_15window_rounding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_15window_rounding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_15window_rounding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_15window_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2188 * @property * def window_rounding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.WindowRounding * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2189 * def window_rounding(self): * self._check_ptr() * return self._ptr.WindowRounding # <<<<<<<<<<<<<< * * @window_rounding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->WindowRounding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2187 * * @property * def window_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.WindowRounding */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_rounding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2192 * * @window_rounding.setter * def window_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowRounding = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_15window_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_15window_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2192, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.window_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_15window_rounding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_15window_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2193 * @window_rounding.setter * def window_rounding(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.WindowRounding = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2194 * def window_rounding(self, float value): * self._check_ptr() * self._ptr.WindowRounding = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->WindowRounding = __pyx_v_value; /* "imgui/core.pyx":2192 * * @window_rounding.setter * def window_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowRounding = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2197 * * @property * def window_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.WindowBorderSize */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18window_border_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18window_border_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18window_border_size___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18window_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2198 * @property * def window_border_size(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.WindowBorderSize * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2199 * def window_border_size(self): * self._check_ptr() * return self._ptr.WindowBorderSize # <<<<<<<<<<<<<< * * @window_border_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->WindowBorderSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2197 * * @property * def window_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.WindowBorderSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_border_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2202 * * @window_border_size.setter * def window_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowBorderSize = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_18window_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_18window_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2202, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.window_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18window_border_size_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_18window_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2203 * @window_border_size.setter * def window_border_size(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.WindowBorderSize = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2204 * def window_border_size(self, float value): * self._check_ptr() * self._ptr.WindowBorderSize = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->WindowBorderSize = __pyx_v_value; /* "imgui/core.pyx":2202 * * @window_border_size.setter * def window_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowBorderSize = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2207 * * @property * def child_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ChildRounding */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14child_rounding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14child_rounding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14child_rounding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14child_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2208 * @property * def child_rounding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.ChildRounding * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2209 * def child_rounding(self): * self._check_ptr() * return self._ptr.ChildRounding # <<<<<<<<<<<<<< * * @child_rounding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->ChildRounding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2207 * * @property * def child_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ChildRounding */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.child_rounding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2212 * * @child_rounding.setter * def child_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ChildRounding = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_14child_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_14child_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2212, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.child_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14child_rounding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_14child_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2213 * @child_rounding.setter * def child_rounding(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ChildRounding = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2214 * def child_rounding(self, float value): * self._check_ptr() * self._ptr.ChildRounding = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ChildRounding = __pyx_v_value; /* "imgui/core.pyx":2212 * * @child_rounding.setter * def child_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ChildRounding = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.child_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2217 * * @property * def child_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ChildBorderSize */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17child_border_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17child_border_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17child_border_size___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17child_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2218 * @property * def child_border_size(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.ChildBorderSize * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2219 * def child_border_size(self): * self._check_ptr() * return self._ptr.ChildBorderSize # <<<<<<<<<<<<<< * * @child_border_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->ChildBorderSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2217 * * @property * def child_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ChildBorderSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.child_border_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2222 * * @child_border_size.setter * def child_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ChildBorderSize = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_17child_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_17child_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2222, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.child_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17child_border_size_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_17child_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2223 * @child_border_size.setter * def child_border_size(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ChildBorderSize = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2224 * def child_border_size(self, float value): * self._check_ptr() * self._ptr.ChildBorderSize = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ChildBorderSize = __pyx_v_value; /* "imgui/core.pyx":2222 * * @child_border_size.setter * def child_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ChildBorderSize = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.child_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2227 * * @property * def popup_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.PopupRounding */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14popup_rounding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14popup_rounding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14popup_rounding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14popup_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2228 * @property * def popup_rounding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.PopupRounding * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2229 * def popup_rounding(self): * self._check_ptr() * return self._ptr.PopupRounding # <<<<<<<<<<<<<< * * @popup_rounding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->PopupRounding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2227 * * @property * def popup_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.PopupRounding */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.popup_rounding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2232 * * @popup_rounding.setter * def popup_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.PopupRounding = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_14popup_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_14popup_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2232, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.popup_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14popup_rounding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_14popup_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2233 * @popup_rounding.setter * def popup_rounding(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.PopupRounding = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2234 * def popup_rounding(self, float value): * self._check_ptr() * self._ptr.PopupRounding = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->PopupRounding = __pyx_v_value; /* "imgui/core.pyx":2232 * * @popup_rounding.setter * def popup_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.PopupRounding = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.popup_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2237 * * @property * def popup_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.PopupBorderSize */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17popup_border_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17popup_border_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17popup_border_size___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17popup_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2238 * @property * def popup_border_size(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.PopupBorderSize * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2239 * def popup_border_size(self): * self._check_ptr() * return self._ptr.PopupBorderSize # <<<<<<<<<<<<<< * * @popup_border_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->PopupBorderSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2237 * * @property * def popup_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.PopupBorderSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.popup_border_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2242 * * @popup_border_size.setter * def popup_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ChildBorderSize = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_17popup_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_17popup_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2242, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.popup_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17popup_border_size_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_17popup_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2243 * @popup_border_size.setter * def popup_border_size(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ChildBorderSize = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2244 * def popup_border_size(self, float value): * self._check_ptr() * self._ptr.ChildBorderSize = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ChildBorderSize = __pyx_v_value; /* "imgui/core.pyx":2242 * * @popup_border_size.setter * def popup_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ChildBorderSize = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.popup_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2247 * * @property * def window_title_align(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowTitleAlign) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18window_title_align_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18window_title_align_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18window_title_align___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18window_title_align___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2248 * @property * def window_title_align(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.WindowTitleAlign) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2249 * def window_title_align(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowTitleAlign) # <<<<<<<<<<<<<< * * @window_title_align.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->WindowTitleAlign); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2247 * * @property * def window_title_align(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.WindowTitleAlign) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_title_align.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2252 * * @window_title_align.setter * def window_title_align(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowTitleAlign = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_18window_title_align_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_18window_title_align_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18window_title_align_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_18window_title_align_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2253 * @window_title_align.setter * def window_title_align(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.WindowTitleAlign = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2254 * def window_title_align(self, value): * self._check_ptr() * self._ptr.WindowTitleAlign = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2254, __pyx_L1_error) __pyx_v_self->_ptr->WindowTitleAlign = __pyx_t_2; /* "imgui/core.pyx":2252 * * @window_title_align.setter * def window_title_align(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowTitleAlign = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_title_align.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2257 * * @property * def window_menu_button_position(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.WindowMenuButtonPosition */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_27window_menu_button_position_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_27window_menu_button_position_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_27window_menu_button_position___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_27window_menu_button_position___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2258 * @property * def window_menu_button_position(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.WindowMenuButtonPosition * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2259 * def window_menu_button_position(self): * self._check_ptr() * return self._ptr.WindowMenuButtonPosition # <<<<<<<<<<<<<< * * @window_menu_button_position.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiDir(__pyx_v_self->_ptr->WindowMenuButtonPosition); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2257 * * @property * def window_menu_button_position(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.WindowMenuButtonPosition */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_menu_button_position.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2262 * * @window_menu_button_position.setter * def window_menu_button_position(self, cimgui.ImGuiDir value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowMenuButtonPosition = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_27window_menu_button_position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_27window_menu_button_position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { ImGuiDir __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyInt_As_ImGuiDir(__pyx_arg_value); if (unlikely((__pyx_v_value == ((ImGuiDir)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2262, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.window_menu_button_position.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_27window_menu_button_position_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((ImGuiDir)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_27window_menu_button_position_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, ImGuiDir __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2263 * @window_menu_button_position.setter * def window_menu_button_position(self, cimgui.ImGuiDir value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.WindowMenuButtonPosition = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2264 * def window_menu_button_position(self, cimgui.ImGuiDir value): * self._check_ptr() * self._ptr.WindowMenuButtonPosition = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->WindowMenuButtonPosition = __pyx_v_value; /* "imgui/core.pyx":2262 * * @window_menu_button_position.setter * def window_menu_button_position(self, cimgui.ImGuiDir value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.WindowMenuButtonPosition = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.window_menu_button_position.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2267 * * @property * def frame_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.FramePadding) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_13frame_padding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_13frame_padding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_13frame_padding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_13frame_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2268 * @property * def frame_padding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.FramePadding) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2269 * def frame_padding(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.FramePadding) # <<<<<<<<<<<<<< * * @frame_padding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->FramePadding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2267 * * @property * def frame_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.FramePadding) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.frame_padding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2272 * * @frame_padding.setter * def frame_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.FramePadding = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_13frame_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_13frame_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_13frame_padding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_13frame_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2273 * @frame_padding.setter * def frame_padding(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.FramePadding = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2274 * def frame_padding(self, value): * self._check_ptr() * self._ptr.FramePadding = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2274, __pyx_L1_error) __pyx_v_self->_ptr->FramePadding = __pyx_t_2; /* "imgui/core.pyx":2272 * * @frame_padding.setter * def frame_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.FramePadding = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.frame_padding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2277 * * @property * def frame_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.FrameRounding */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14frame_rounding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14frame_rounding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14frame_rounding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14frame_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2278 * @property * def frame_rounding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.FrameRounding * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2279 * def frame_rounding(self): * self._check_ptr() * return self._ptr.FrameRounding # <<<<<<<<<<<<<< * * @frame_rounding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->FrameRounding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2277 * * @property * def frame_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.FrameRounding */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.frame_rounding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2282 * * @frame_rounding.setter * def frame_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.FrameRounding = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_14frame_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_14frame_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2282, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.frame_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14frame_rounding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_14frame_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2283 * @frame_rounding.setter * def frame_rounding(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.FrameRounding = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2284 * def frame_rounding(self, float value): * self._check_ptr() * self._ptr.FrameRounding = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->FrameRounding = __pyx_v_value; /* "imgui/core.pyx":2282 * * @frame_rounding.setter * def frame_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.FrameRounding = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.frame_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2287 * * @property * def frame_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.FrameBorderSize */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17frame_border_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17frame_border_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17frame_border_size___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17frame_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2288 * @property * def frame_border_size(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.FrameBorderSize * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2289 * def frame_border_size(self): * self._check_ptr() * return self._ptr.FrameBorderSize # <<<<<<<<<<<<<< * * @frame_border_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->FrameBorderSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2287 * * @property * def frame_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.FrameBorderSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.frame_border_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2292 * * @frame_border_size.setter * def frame_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.FrameBorderSize = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_17frame_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_17frame_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2292, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.frame_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17frame_border_size_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_17frame_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2293 * @frame_border_size.setter * def frame_border_size(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.FrameBorderSize = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2294 * def frame_border_size(self, float value): * self._check_ptr() * self._ptr.FrameBorderSize = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->FrameBorderSize = __pyx_v_value; /* "imgui/core.pyx":2292 * * @frame_border_size.setter * def frame_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.FrameBorderSize = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.frame_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2297 * * @property * def item_spacing(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ItemSpacing) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_12item_spacing_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_12item_spacing_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_12item_spacing___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_12item_spacing___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2298 * @property * def item_spacing(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.ItemSpacing) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2299 * def item_spacing(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ItemSpacing) # <<<<<<<<<<<<<< * * @item_spacing.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->ItemSpacing); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2297 * * @property * def item_spacing(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ItemSpacing) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.item_spacing.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2302 * * @item_spacing.setter * def item_spacing(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ItemSpacing = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_12item_spacing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_12item_spacing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_12item_spacing_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_12item_spacing_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2303 * @item_spacing.setter * def item_spacing(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ItemSpacing = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2304 * def item_spacing(self, value): * self._check_ptr() * self._ptr.ItemSpacing = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2304, __pyx_L1_error) __pyx_v_self->_ptr->ItemSpacing = __pyx_t_2; /* "imgui/core.pyx":2302 * * @item_spacing.setter * def item_spacing(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ItemSpacing = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.item_spacing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2307 * * @property * def item_inner_spacing(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ItemInnerSpacing) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18item_inner_spacing_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18item_inner_spacing_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18item_inner_spacing___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18item_inner_spacing___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2308 * @property * def item_inner_spacing(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.ItemInnerSpacing) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2309 * def item_inner_spacing(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ItemInnerSpacing) # <<<<<<<<<<<<<< * * @item_inner_spacing.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->ItemInnerSpacing); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2307 * * @property * def item_inner_spacing(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ItemInnerSpacing) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.item_inner_spacing.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2312 * * @item_inner_spacing.setter * def item_inner_spacing(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ItemInnerSpacing = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_18item_inner_spacing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_18item_inner_spacing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18item_inner_spacing_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_18item_inner_spacing_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2313 * @item_inner_spacing.setter * def item_inner_spacing(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ItemInnerSpacing = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2314 * def item_inner_spacing(self, value): * self._check_ptr() * self._ptr.ItemInnerSpacing = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2314, __pyx_L1_error) __pyx_v_self->_ptr->ItemInnerSpacing = __pyx_t_2; /* "imgui/core.pyx":2312 * * @item_inner_spacing.setter * def item_inner_spacing(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ItemInnerSpacing = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.item_inner_spacing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2317 * * @property * def cell_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.CellPadding) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_12cell_padding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_12cell_padding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_12cell_padding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_12cell_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2318 * @property * def cell_padding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.CellPadding) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2319 * def cell_padding(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.CellPadding) # <<<<<<<<<<<<<< * * @cell_padding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->CellPadding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2317 * * @property * def cell_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.CellPadding) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.cell_padding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2322 * * @cell_padding.setter * def cell_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.CellPadding = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_12cell_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_12cell_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_12cell_padding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_12cell_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2323 * @cell_padding.setter * def cell_padding(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.CellPadding = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2324 * def cell_padding(self, value): * self._check_ptr() * self._ptr.CellPadding = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2324, __pyx_L1_error) __pyx_v_self->_ptr->CellPadding = __pyx_t_2; /* "imgui/core.pyx":2322 * * @cell_padding.setter * def cell_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.CellPadding = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.cell_padding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2327 * * @property * def touch_extra_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.TouchExtraPadding) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_19touch_extra_padding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_19touch_extra_padding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_19touch_extra_padding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_19touch_extra_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2328 * @property * def touch_extra_padding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.TouchExtraPadding) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2329 * def touch_extra_padding(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.TouchExtraPadding) # <<<<<<<<<<<<<< * * @touch_extra_padding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->TouchExtraPadding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2327 * * @property * def touch_extra_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.TouchExtraPadding) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.touch_extra_padding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2332 * * @touch_extra_padding.setter * def touch_extra_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.TouchExtraPadding = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_19touch_extra_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_19touch_extra_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_19touch_extra_padding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_19touch_extra_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2333 * @touch_extra_padding.setter * def touch_extra_padding(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.TouchExtraPadding = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2334 * def touch_extra_padding(self, value): * self._check_ptr() * self._ptr.TouchExtraPadding = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2334, __pyx_L1_error) __pyx_v_self->_ptr->TouchExtraPadding = __pyx_t_2; /* "imgui/core.pyx":2332 * * @touch_extra_padding.setter * def touch_extra_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.TouchExtraPadding = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.touch_extra_padding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2337 * * @property * def indent_spacing(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.IndentSpacing */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14indent_spacing_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14indent_spacing_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14indent_spacing___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14indent_spacing___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2338 * @property * def indent_spacing(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.IndentSpacing * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2339 * def indent_spacing(self): * self._check_ptr() * return self._ptr.IndentSpacing # <<<<<<<<<<<<<< * * @indent_spacing.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->IndentSpacing); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2337 * * @property * def indent_spacing(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.IndentSpacing */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.indent_spacing.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2342 * * @indent_spacing.setter * def indent_spacing(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.IndentSpacing = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_14indent_spacing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_14indent_spacing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2342, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.indent_spacing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14indent_spacing_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_14indent_spacing_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2343 * @indent_spacing.setter * def indent_spacing(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.IndentSpacing = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2344 * def indent_spacing(self, float value): * self._check_ptr() * self._ptr.IndentSpacing = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->IndentSpacing = __pyx_v_value; /* "imgui/core.pyx":2342 * * @indent_spacing.setter * def indent_spacing(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.IndentSpacing = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.indent_spacing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2347 * * @property * def columns_min_spacing(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ColumnsMinSpacing */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_19columns_min_spacing_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_19columns_min_spacing_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_19columns_min_spacing___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_19columns_min_spacing___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2348 * @property * def columns_min_spacing(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.ColumnsMinSpacing * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2349 * def columns_min_spacing(self): * self._check_ptr() * return self._ptr.ColumnsMinSpacing # <<<<<<<<<<<<<< * * @columns_min_spacing.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->ColumnsMinSpacing); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2347 * * @property * def columns_min_spacing(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ColumnsMinSpacing */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.columns_min_spacing.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2352 * * @columns_min_spacing.setter * def columns_min_spacing(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ColumnsMinSpacing = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_19columns_min_spacing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_19columns_min_spacing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2352, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.columns_min_spacing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_19columns_min_spacing_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_19columns_min_spacing_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2353 * @columns_min_spacing.setter * def columns_min_spacing(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ColumnsMinSpacing = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2354 * def columns_min_spacing(self, float value): * self._check_ptr() * self._ptr.ColumnsMinSpacing = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ColumnsMinSpacing = __pyx_v_value; /* "imgui/core.pyx":2352 * * @columns_min_spacing.setter * def columns_min_spacing(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ColumnsMinSpacing = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.columns_min_spacing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2357 * * @property * def scrollbar_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ScrollbarSize */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14scrollbar_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_14scrollbar_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14scrollbar_size___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_14scrollbar_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2358 * @property * def scrollbar_size(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.ScrollbarSize * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2359 * def scrollbar_size(self): * self._check_ptr() * return self._ptr.ScrollbarSize # <<<<<<<<<<<<<< * * @scrollbar_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->ScrollbarSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2357 * * @property * def scrollbar_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ScrollbarSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.scrollbar_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2362 * * @scrollbar_size.setter * def scrollbar_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ScrollbarSize = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_14scrollbar_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_14scrollbar_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2362, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.scrollbar_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_14scrollbar_size_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_14scrollbar_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2363 * @scrollbar_size.setter * def scrollbar_size(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ScrollbarSize = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2364 * def scrollbar_size(self, float value): * self._check_ptr() * self._ptr.ScrollbarSize = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ScrollbarSize = __pyx_v_value; /* "imgui/core.pyx":2362 * * @scrollbar_size.setter * def scrollbar_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ScrollbarSize = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.scrollbar_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2367 * * @property * def scrollbar_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ScrollbarRounding */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18scrollbar_rounding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18scrollbar_rounding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18scrollbar_rounding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18scrollbar_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2368 * @property * def scrollbar_rounding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.ScrollbarRounding * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2369 * def scrollbar_rounding(self): * self._check_ptr() * return self._ptr.ScrollbarRounding # <<<<<<<<<<<<<< * * @scrollbar_rounding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->ScrollbarRounding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2367 * * @property * def scrollbar_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ScrollbarRounding */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.scrollbar_rounding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2372 * * @scrollbar_rounding.setter * def scrollbar_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ScrollbarRounding = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_18scrollbar_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_18scrollbar_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2372, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.scrollbar_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18scrollbar_rounding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_18scrollbar_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2373 * @scrollbar_rounding.setter * def scrollbar_rounding(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ScrollbarRounding = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2374 * def scrollbar_rounding(self, float value): * self._check_ptr() * self._ptr.ScrollbarRounding = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ScrollbarRounding = __pyx_v_value; /* "imgui/core.pyx":2372 * * @scrollbar_rounding.setter * def scrollbar_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ScrollbarRounding = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.scrollbar_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2377 * * @property * def grab_min_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.GrabMinSize */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_13grab_min_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_13grab_min_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_13grab_min_size___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_13grab_min_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2378 * @property * def grab_min_size(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.GrabMinSize * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2379 * def grab_min_size(self): * self._check_ptr() * return self._ptr.GrabMinSize # <<<<<<<<<<<<<< * * @grab_min_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->GrabMinSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2377 * * @property * def grab_min_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.GrabMinSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.grab_min_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2382 * * @grab_min_size.setter * def grab_min_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.GrabMinSize = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_13grab_min_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_13grab_min_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2382, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.grab_min_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_13grab_min_size_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_13grab_min_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2383 * @grab_min_size.setter * def grab_min_size(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.GrabMinSize = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2384 * def grab_min_size(self, float value): * self._check_ptr() * self._ptr.GrabMinSize = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->GrabMinSize = __pyx_v_value; /* "imgui/core.pyx":2382 * * @grab_min_size.setter * def grab_min_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.GrabMinSize = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.grab_min_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2387 * * @property * def grab_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.GrabRounding */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_13grab_rounding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_13grab_rounding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_13grab_rounding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_13grab_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2388 * @property * def grab_rounding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.GrabRounding * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2388, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2389 * def grab_rounding(self): * self._check_ptr() * return self._ptr.GrabRounding # <<<<<<<<<<<<<< * * @grab_rounding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->GrabRounding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2387 * * @property * def grab_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.GrabRounding */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.grab_rounding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2392 * * @grab_rounding.setter * def grab_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.GrabRounding = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_13grab_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_13grab_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2392, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.grab_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_13grab_rounding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_13grab_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2393 * @grab_rounding.setter * def grab_rounding(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.GrabRounding = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2394 * def grab_rounding(self, float value): * self._check_ptr() * self._ptr.GrabRounding = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->GrabRounding = __pyx_v_value; /* "imgui/core.pyx":2392 * * @grab_rounding.setter * def grab_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.GrabRounding = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.grab_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2397 * * @property * def log_slider_deadzone(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.LogSliderDeadzone */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_19log_slider_deadzone_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_19log_slider_deadzone_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_19log_slider_deadzone___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_19log_slider_deadzone___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2398 * @property * def log_slider_deadzone(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.LogSliderDeadzone * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2399 * def log_slider_deadzone(self): * self._check_ptr() * return self._ptr.LogSliderDeadzone # <<<<<<<<<<<<<< * * @log_slider_deadzone.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->LogSliderDeadzone); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2397 * * @property * def log_slider_deadzone(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.LogSliderDeadzone */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.log_slider_deadzone.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2402 * * @log_slider_deadzone.setter * def log_slider_deadzone(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.LogSliderDeadzone = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_19log_slider_deadzone_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_19log_slider_deadzone_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2402, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.log_slider_deadzone.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_19log_slider_deadzone_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_19log_slider_deadzone_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2403 * @log_slider_deadzone.setter * def log_slider_deadzone(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.LogSliderDeadzone = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2404 * def log_slider_deadzone(self, float value): * self._check_ptr() * self._ptr.LogSliderDeadzone = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->LogSliderDeadzone = __pyx_v_value; /* "imgui/core.pyx":2402 * * @log_slider_deadzone.setter * def log_slider_deadzone(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.LogSliderDeadzone = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.log_slider_deadzone.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2407 * * @property * def tab_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.TabRounding */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_12tab_rounding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_12tab_rounding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_12tab_rounding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_12tab_rounding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2408 * @property * def tab_rounding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.TabRounding * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2409 * def tab_rounding(self): * self._check_ptr() * return self._ptr.TabRounding # <<<<<<<<<<<<<< * * @tab_rounding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->TabRounding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2407 * * @property * def tab_rounding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.TabRounding */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.tab_rounding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2412 * * @tab_rounding.setter * def tab_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.TabRounding = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_12tab_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_12tab_rounding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2412, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.tab_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_12tab_rounding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_12tab_rounding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2413 * @tab_rounding.setter * def tab_rounding(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.TabRounding = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2414 * def tab_rounding(self, float value): * self._check_ptr() * self._ptr.TabRounding = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->TabRounding = __pyx_v_value; /* "imgui/core.pyx":2412 * * @tab_rounding.setter * def tab_rounding(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.TabRounding = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.tab_rounding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2417 * * @property * def tab_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.TabBorderSize */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_15tab_border_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_15tab_border_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_15tab_border_size___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_15tab_border_size___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2418 * @property * def tab_border_size(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.TabBorderSize * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2419 * def tab_border_size(self): * self._check_ptr() * return self._ptr.TabBorderSize # <<<<<<<<<<<<<< * * @tab_border_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->TabBorderSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2417 * * @property * def tab_border_size(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.TabBorderSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.tab_border_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2422 * * @tab_border_size.setter * def tab_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.TabBorderSize= value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_15tab_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_15tab_border_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2422, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.tab_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_15tab_border_size_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_15tab_border_size_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2423 * @tab_border_size.setter * def tab_border_size(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.TabBorderSize= value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2424 * def tab_border_size(self, float value): * self._check_ptr() * self._ptr.TabBorderSize= value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->TabBorderSize = __pyx_v_value; /* "imgui/core.pyx":2422 * * @tab_border_size.setter * def tab_border_size(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.TabBorderSize= value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.tab_border_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2427 * * @property * def tab_min_width_for_close_button(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.TabMinWidthForCloseButton */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2428 * @property * def tab_min_width_for_close_button(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.TabMinWidthForCloseButton * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2429 * def tab_min_width_for_close_button(self): * self._check_ptr() * return self._ptr.TabMinWidthForCloseButton # <<<<<<<<<<<<<< * * @tab_min_width_for_close_button.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->TabMinWidthForCloseButton); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2427 * * @property * def tab_min_width_for_close_button(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.TabMinWidthForCloseButton */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.tab_min_width_for_close_button.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2432 * * @tab_min_width_for_close_button.setter * def tab_min_width_for_close_button(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.TabMinWidthForCloseButton = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2432, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.tab_min_width_for_close_button.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2433 * @tab_min_width_for_close_button.setter * def tab_min_width_for_close_button(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.TabMinWidthForCloseButton = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2434 * def tab_min_width_for_close_button(self, float value): * self._check_ptr() * self._ptr.TabMinWidthForCloseButton = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->TabMinWidthForCloseButton = __pyx_v_value; /* "imgui/core.pyx":2432 * * @tab_min_width_for_close_button.setter * def tab_min_width_for_close_button(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.TabMinWidthForCloseButton = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.tab_min_width_for_close_button.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2437 * * @property * def color_button_position(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ColorButtonPosition */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_21color_button_position_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_21color_button_position_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_21color_button_position___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_21color_button_position___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2438 * @property * def color_button_position(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.ColorButtonPosition * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2439 * def color_button_position(self): * self._check_ptr() * return self._ptr.ColorButtonPosition # <<<<<<<<<<<<<< * * @color_button_position.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiDir(__pyx_v_self->_ptr->ColorButtonPosition); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2437 * * @property * def color_button_position(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.ColorButtonPosition */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.color_button_position.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2442 * * @color_button_position.setter * def color_button_position(self, cimgui.ImGuiDir value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ColorButtonPosition = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_21color_button_position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_21color_button_position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { ImGuiDir __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyInt_As_ImGuiDir(__pyx_arg_value); if (unlikely((__pyx_v_value == ((ImGuiDir)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2442, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.color_button_position.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_21color_button_position_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((ImGuiDir)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_21color_button_position_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, ImGuiDir __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2443 * @color_button_position.setter * def color_button_position(self, cimgui.ImGuiDir value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ColorButtonPosition = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2444 * def color_button_position(self, cimgui.ImGuiDir value): * self._check_ptr() * self._ptr.ColorButtonPosition = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ColorButtonPosition = __pyx_v_value; /* "imgui/core.pyx":2442 * * @color_button_position.setter * def color_button_position(self, cimgui.ImGuiDir value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ColorButtonPosition = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.color_button_position.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2447 * * @property * def button_text_align(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ButtonTextAlign) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17button_text_align_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17button_text_align_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17button_text_align___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17button_text_align___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2448 * @property * def button_text_align(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.ButtonTextAlign) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2449 * def button_text_align(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ButtonTextAlign) # <<<<<<<<<<<<<< * * @button_text_align.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->ButtonTextAlign); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2447 * * @property * def button_text_align(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.ButtonTextAlign) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.button_text_align.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2452 * * @button_text_align.setter * def button_text_align(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ButtonTextAlign = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_17button_text_align_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_17button_text_align_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17button_text_align_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_17button_text_align_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2453 * @button_text_align.setter * def button_text_align(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.ButtonTextAlign = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2454 * def button_text_align(self, value): * self._check_ptr() * self._ptr.ButtonTextAlign = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2454, __pyx_L1_error) __pyx_v_self->_ptr->ButtonTextAlign = __pyx_t_2; /* "imgui/core.pyx":2452 * * @button_text_align.setter * def button_text_align(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.ButtonTextAlign = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.button_text_align.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2457 * * @property * def selectable_text_align(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.SelectableTextAlign) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_21selectable_text_align_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_21selectable_text_align_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_21selectable_text_align___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_21selectable_text_align___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2458 * @property * def selectable_text_align(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.SelectableTextAlign) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2459 * def selectable_text_align(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.SelectableTextAlign) # <<<<<<<<<<<<<< * * @selectable_text_align.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->SelectableTextAlign); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2457 * * @property * def selectable_text_align(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.SelectableTextAlign) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.selectable_text_align.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2462 * * @selectable_text_align.setter * def selectable_text_align(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.SelectableTextAlign = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_21selectable_text_align_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_21selectable_text_align_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_21selectable_text_align_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_21selectable_text_align_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2463 * @selectable_text_align.setter * def selectable_text_align(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.SelectableTextAlign = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2464 * def selectable_text_align(self, value): * self._check_ptr() * self._ptr.SelectableTextAlign = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2464, __pyx_L1_error) __pyx_v_self->_ptr->SelectableTextAlign = __pyx_t_2; /* "imgui/core.pyx":2462 * * @selectable_text_align.setter * def selectable_text_align(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.SelectableTextAlign = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.selectable_text_align.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2467 * * @property * def display_window_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.DisplayWindowPadding) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_22display_window_padding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_22display_window_padding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_22display_window_padding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_22display_window_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2468 * @property * def display_window_padding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DisplayWindowPadding) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2469 * def display_window_padding(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.DisplayWindowPadding) # <<<<<<<<<<<<<< * * @display_window_padding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->DisplayWindowPadding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2467 * * @property * def display_window_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.DisplayWindowPadding) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.display_window_padding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2472 * * @display_window_padding.setter * def display_window_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.DisplayWindowPadding = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_22display_window_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_22display_window_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_22display_window_padding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_22display_window_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2473 * @display_window_padding.setter * def display_window_padding(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.DisplayWindowPadding = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2474 * def display_window_padding(self, value): * self._check_ptr() * self._ptr.DisplayWindowPadding = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2474, __pyx_L1_error) __pyx_v_self->_ptr->DisplayWindowPadding = __pyx_t_2; /* "imgui/core.pyx":2472 * * @display_window_padding.setter * def display_window_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.DisplayWindowPadding = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.display_window_padding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2477 * * @property * def display_safe_area_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.DisplaySafeAreaPadding) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_25display_safe_area_padding_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_25display_safe_area_padding_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_25display_safe_area_padding___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_25display_safe_area_padding___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2478 * @property * def display_safe_area_padding(self): * self._check_ptr() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DisplaySafeAreaPadding) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2479 * def display_safe_area_padding(self): * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.DisplaySafeAreaPadding) # <<<<<<<<<<<<<< * * @display_safe_area_padding.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->DisplaySafeAreaPadding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2477 * * @property * def display_safe_area_padding(self): # <<<<<<<<<<<<<< * self._check_ptr() * return _cast_ImVec2_tuple(self._ptr.DisplaySafeAreaPadding) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.display_safe_area_padding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2482 * * @display_safe_area_padding.setter * def display_safe_area_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.DisplaySafeAreaPadding = _cast_tuple_ImVec2(value) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_25display_safe_area_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_25display_safe_area_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_25display_safe_area_padding_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_25display_safe_area_padding_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2483 * @display_safe_area_padding.setter * def display_safe_area_padding(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.DisplaySafeAreaPadding = _cast_tuple_ImVec2(value) * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2484 * def display_safe_area_padding(self, value): * self._check_ptr() * self._ptr.DisplaySafeAreaPadding = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2484, __pyx_L1_error) __pyx_v_self->_ptr->DisplaySafeAreaPadding = __pyx_t_2; /* "imgui/core.pyx":2482 * * @display_safe_area_padding.setter * def display_safe_area_padding(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.DisplaySafeAreaPadding = _cast_tuple_ImVec2(value) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.display_safe_area_padding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2487 * * @property * def mouse_cursor_scale(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.MouseCursorScale */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18mouse_cursor_scale_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18mouse_cursor_scale_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18mouse_cursor_scale___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18mouse_cursor_scale___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2488 * @property * def mouse_cursor_scale(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.MouseCursorScale * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2488, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2489 * def mouse_cursor_scale(self): * self._check_ptr() * return self._ptr.MouseCursorScale # <<<<<<<<<<<<<< * * @mouse_cursor_scale.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->MouseCursorScale); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2487 * * @property * def mouse_cursor_scale(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.MouseCursorScale */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.mouse_cursor_scale.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2492 * * @mouse_cursor_scale.setter * def mouse_cursor_scale(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.MouseCursorScale = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_18mouse_cursor_scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_18mouse_cursor_scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18mouse_cursor_scale_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_18mouse_cursor_scale_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; float __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2493 * @mouse_cursor_scale.setter * def mouse_cursor_scale(self, value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.MouseCursorScale = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2494 * def mouse_cursor_scale(self, value): * self._check_ptr() * self._ptr.MouseCursorScale = value # <<<<<<<<<<<<<< * * @property */ __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_2 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2494, __pyx_L1_error) __pyx_v_self->_ptr->MouseCursorScale = __pyx_t_2; /* "imgui/core.pyx":2492 * * @mouse_cursor_scale.setter * def mouse_cursor_scale(self, value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.MouseCursorScale = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.mouse_cursor_scale.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2497 * * @property * def anti_aliased_lines(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.AntiAliasedLines */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18anti_aliased_lines_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_18anti_aliased_lines_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18anti_aliased_lines___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_18anti_aliased_lines___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2498 * @property * def anti_aliased_lines(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.AntiAliasedLines * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2499 * def anti_aliased_lines(self): * self._check_ptr() * return self._ptr.AntiAliasedLines # <<<<<<<<<<<<<< * * @anti_aliased_lines.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->AntiAliasedLines); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2497 * * @property * def anti_aliased_lines(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.AntiAliasedLines */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_lines.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2502 * * @anti_aliased_lines.setter * def anti_aliased_lines(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.AntiAliasedLines = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_18anti_aliased_lines_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_18anti_aliased_lines_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2502, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_lines.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_18anti_aliased_lines_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_18anti_aliased_lines_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2503 * @anti_aliased_lines.setter * def anti_aliased_lines(self, cimgui.bool value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.AntiAliasedLines = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2504 * def anti_aliased_lines(self, cimgui.bool value): * self._check_ptr() * self._ptr.AntiAliasedLines = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->AntiAliasedLines = __pyx_v_value; /* "imgui/core.pyx":2502 * * @anti_aliased_lines.setter * def anti_aliased_lines(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.AntiAliasedLines = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_lines.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2507 * * @property * def anti_aliased_line_use_tex(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.AntiAliasedLinesUseTex */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2508 * @property * def anti_aliased_line_use_tex(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.AntiAliasedLinesUseTex * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2509 * def anti_aliased_line_use_tex(self): * self._check_ptr() * return self._ptr.AntiAliasedLinesUseTex # <<<<<<<<<<<<<< * * @anti_aliased_line_use_tex.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->AntiAliasedLinesUseTex); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2507 * * @property * def anti_aliased_line_use_tex(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.AntiAliasedLinesUseTex */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_line_use_tex.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2512 * * @anti_aliased_line_use_tex.setter * def anti_aliased_line_use_tex(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.AntiAliasedLinesUseTex = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2512, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_line_use_tex.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2513 * @anti_aliased_line_use_tex.setter * def anti_aliased_line_use_tex(self, cimgui.bool value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.AntiAliasedLinesUseTex = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2514 * def anti_aliased_line_use_tex(self, cimgui.bool value): * self._check_ptr() * self._ptr.AntiAliasedLinesUseTex = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->AntiAliasedLinesUseTex = __pyx_v_value; /* "imgui/core.pyx":2512 * * @anti_aliased_line_use_tex.setter * def anti_aliased_line_use_tex(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.AntiAliasedLinesUseTex = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_line_use_tex.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2517 * * @property * def anti_aliased_fill(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.AntiAliasedFill */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17anti_aliased_fill_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_17anti_aliased_fill_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17anti_aliased_fill___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_17anti_aliased_fill___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2518 * @property * def anti_aliased_fill(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.AntiAliasedFill * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2519 * def anti_aliased_fill(self): * self._check_ptr() * return self._ptr.AntiAliasedFill # <<<<<<<<<<<<<< * * @anti_aliased_fill.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->AntiAliasedFill); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2517 * * @property * def anti_aliased_fill(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.AntiAliasedFill */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_fill.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2522 * * @anti_aliased_fill.setter * def anti_aliased_fill(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.AntiAliasedFill = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_17anti_aliased_fill_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_17anti_aliased_fill_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2522, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_fill.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_17anti_aliased_fill_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_17anti_aliased_fill_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2523 * @anti_aliased_fill.setter * def anti_aliased_fill(self, cimgui.bool value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.AntiAliasedFill = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2524 * def anti_aliased_fill(self, cimgui.bool value): * self._check_ptr() * self._ptr.AntiAliasedFill = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->AntiAliasedFill = __pyx_v_value; /* "imgui/core.pyx":2522 * * @anti_aliased_fill.setter * def anti_aliased_fill(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.AntiAliasedFill = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.anti_aliased_fill.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2527 * * @property * def curve_tessellation_tolerance(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.CurveTessellationTol */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2528 * @property * def curve_tessellation_tolerance(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.CurveTessellationTol * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2529 * def curve_tessellation_tolerance(self): * self._check_ptr() * return self._ptr.CurveTessellationTol # <<<<<<<<<<<<<< * * @curve_tessellation_tolerance.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->CurveTessellationTol); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2527 * * @property * def curve_tessellation_tolerance(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.CurveTessellationTol */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.curve_tessellation_tolerance.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2532 * * @curve_tessellation_tolerance.setter * def curve_tessellation_tolerance(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.CurveTessellationTol = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2532, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.curve_tessellation_tolerance.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2533 * @curve_tessellation_tolerance.setter * def curve_tessellation_tolerance(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.CurveTessellationTol = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2534 * def curve_tessellation_tolerance(self, float value): * self._check_ptr() * self._ptr.CurveTessellationTol = value # <<<<<<<<<<<<<< * * # OBSOLETED in 1.82 (from Mars 2021) */ __pyx_v_self->_ptr->CurveTessellationTol = __pyx_v_value; /* "imgui/core.pyx":2532 * * @curve_tessellation_tolerance.setter * def curve_tessellation_tolerance(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.CurveTessellationTol = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.curve_tessellation_tolerance.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2538 * # OBSOLETED in 1.82 (from Mars 2021) * @property * def circle_segment_max_error(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.CircleTessellationMaxError */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_24circle_segment_max_error_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_24circle_segment_max_error_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_24circle_segment_max_error___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_24circle_segment_max_error___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2539 * @property * def circle_segment_max_error(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.CircleTessellationMaxError * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2540 * def circle_segment_max_error(self): * self._check_ptr() * return self._ptr.CircleTessellationMaxError # <<<<<<<<<<<<<< * * # OBSOLETED in 1.82 (from Mars 2021) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->CircleTessellationMaxError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2538 * # OBSOLETED in 1.82 (from Mars 2021) * @property * def circle_segment_max_error(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.CircleTessellationMaxError */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.circle_segment_max_error.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2544 * # OBSOLETED in 1.82 (from Mars 2021) * @circle_segment_max_error.setter * def circle_segment_max_error(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.CircleTessellationMaxError = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_24circle_segment_max_error_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_24circle_segment_max_error_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2544, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.circle_segment_max_error.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_24circle_segment_max_error_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_24circle_segment_max_error_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2545 * @circle_segment_max_error.setter * def circle_segment_max_error(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.CircleTessellationMaxError = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2546 * def circle_segment_max_error(self, float value): * self._check_ptr() * self._ptr.CircleTessellationMaxError = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->CircleTessellationMaxError = __pyx_v_value; /* "imgui/core.pyx":2544 * # OBSOLETED in 1.82 (from Mars 2021) * @circle_segment_max_error.setter * def circle_segment_max_error(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.CircleTessellationMaxError = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.circle_segment_max_error.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2549 * * @property * def circle_tessellation_max_error(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.CircleTessellationMaxError */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_29circle_tessellation_max_error___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_29circle_tessellation_max_error___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2550 * @property * def circle_tessellation_max_error(self): * self._check_ptr() # <<<<<<<<<<<<<< * return self._ptr.CircleTessellationMaxError * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2551 * def circle_tessellation_max_error(self): * self._check_ptr() * return self._ptr.CircleTessellationMaxError # <<<<<<<<<<<<<< * * @circle_tessellation_max_error.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->CircleTessellationMaxError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2549 * * @property * def circle_tessellation_max_error(self): # <<<<<<<<<<<<<< * self._check_ptr() * return self._ptr.CircleTessellationMaxError */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.circle_tessellation_max_error.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2554 * * @circle_tessellation_max_error.setter * def circle_tessellation_max_error(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.CircleTessellationMaxError = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2554, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.circle_tessellation_max_error.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_2__set__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_2__set__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2555 * @circle_tessellation_max_error.setter * def circle_tessellation_max_error(self, float value): * self._check_ptr() # <<<<<<<<<<<<<< * self._ptr.CircleTessellationMaxError = value * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2556 * def circle_tessellation_max_error(self, float value): * self._check_ptr() * self._ptr.CircleTessellationMaxError = value # <<<<<<<<<<<<<< * * def color(self, cimgui.ImGuiCol variable): */ __pyx_v_self->_ptr->CircleTessellationMaxError = __pyx_v_value; /* "imgui/core.pyx":2554 * * @circle_tessellation_max_error.setter * def circle_tessellation_max_error(self, float value): # <<<<<<<<<<<<<< * self._check_ptr() * self._ptr.CircleTessellationMaxError = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.circle_tessellation_max_error.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2558 * self._ptr.CircleTessellationMaxError = value * * def color(self, cimgui.ImGuiCol variable): # <<<<<<<<<<<<<< * if not (0 <= variable < enums.ImGuiCol_COUNT): * raise ValueError("Unknown style variable: {}".format(variable)) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_9color(PyObject *__pyx_v_self, PyObject *__pyx_arg_variable); /*proto*/ static char __pyx_doc_5imgui_4core_8GuiStyle_8color[] = "GuiStyle.color(self, ImGuiCol variable)"; static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_9color(PyObject *__pyx_v_self, PyObject *__pyx_arg_variable) { ImGuiCol __pyx_v_variable; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("color (wrapper)", 0); assert(__pyx_arg_variable); { __pyx_v_variable = __Pyx_PyInt_As_ImGuiCol(__pyx_arg_variable); if (unlikely((__pyx_v_variable == ((ImGuiCol)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2558, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GuiStyle.color", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_8color(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((ImGuiCol)__pyx_v_variable)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_8color(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, ImGuiCol __pyx_v_variable) { int __pyx_v_ix; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("color", 0); /* "imgui/core.pyx":2559 * * def color(self, cimgui.ImGuiCol variable): * if not (0 <= variable < enums.ImGuiCol_COUNT): # <<<<<<<<<<<<<< * raise ValueError("Unknown style variable: {}".format(variable)) * */ __pyx_t_1 = (0 <= __pyx_v_variable); if (__pyx_t_1) { __pyx_t_1 = (__pyx_v_variable < ImGuiCol_COUNT); } __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (unlikely(__pyx_t_2)) { /* "imgui/core.pyx":2560 * def color(self, cimgui.ImGuiCol variable): * if not (0 <= variable < enums.ImGuiCol_COUNT): * raise ValueError("Unknown style variable: {}".format(variable)) # <<<<<<<<<<<<<< * * self._check_ptr() */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Unknown_style_variable, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_ImGuiCol(__pyx_v_variable); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 2560, __pyx_L1_error) /* "imgui/core.pyx":2559 * * def color(self, cimgui.ImGuiCol variable): * if not (0 <= variable < enums.ImGuiCol_COUNT): # <<<<<<<<<<<<<< * raise ValueError("Unknown style variable: {}".format(variable)) * */ } /* "imgui/core.pyx":2562 * raise ValueError("Unknown style variable: {}".format(variable)) * * self._check_ptr() # <<<<<<<<<<<<<< * cdef int ix = variable * return _cast_ImVec4_tuple(self._ptr.Colors[ix]) */ __pyx_t_4 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":2563 * * self._check_ptr() * cdef int ix = variable # <<<<<<<<<<<<<< * return _cast_ImVec4_tuple(self._ptr.Colors[ix]) * */ __pyx_v_ix = __pyx_v_variable; /* "imgui/core.pyx":2564 * self._check_ptr() * cdef int ix = variable * return _cast_ImVec4_tuple(self._ptr.Colors[ix]) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = __pyx_f_5imgui_4core__cast_ImVec4_tuple((__pyx_v_self->_ptr->Colors[__pyx_v_ix])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":2558 * self._ptr.CircleTessellationMaxError = value * * def color(self, cimgui.ImGuiCol variable): # <<<<<<<<<<<<<< * if not (0 <= variable < enums.ImGuiCol_COUNT): * raise ValueError("Unknown style variable: {}".format(variable)) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.GuiStyle.color", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2567 * * @property * def colors(self): # <<<<<<<<<<<<<< * """Retrieve and modify style colors through list-like interface. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_6colors_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_6colors_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_6colors___get__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_6colors___get__(struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2585 * imgui.end() * """ * self._check_ptr() # <<<<<<<<<<<<<< * return self._colors * */ __pyx_t_1 = __pyx_f_5imgui_4core_8GuiStyle__check_ptr(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2586 * """ * self._check_ptr() * return self._colors # <<<<<<<<<<<<<< * * cdef class _ImGuiTableColumnSortSpecs(object): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self->_colors)); __pyx_r = ((PyObject *)__pyx_v_self->_colors); goto __pyx_L0; /* "imgui/core.pyx":2567 * * @property * def colors(self): # <<<<<<<<<<<<<< * """Retrieve and modify style colors through list-like interface. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.colors.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_8GuiStyle_10__reduce_cython__[] = "GuiStyle.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_10__reduce_cython__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_8GuiStyle_12__setstate_cython__[] = "GuiStyle.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_8GuiStyle_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8GuiStyle_12__setstate_cython__(((struct __pyx_obj_5imgui_4core_GuiStyle *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8GuiStyle_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GuiStyle.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2591 * cdef cimgui.ImGuiTableColumnSortSpecs* _ptr * * def __init__(self): # <<<<<<<<<<<<<< * pass * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs___init__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2594 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_26_ImGuiTableColumnSortSpecs_2_require_pointer[] = "_ImGuiTableColumnSortSpecs._require_pointer(self)"; static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_require_pointer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_2_require_pointer(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_require_pointer", 0); /* "imgui/core.pyx":2595 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":2597 * if self._ptr == NULL: * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_improperly_initialized, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":2596 * def _require_pointer(self): * if self._ptr == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "%s improperly initialized" % self.__class__.__name__ * ) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 2596, __pyx_L1_error) /* "imgui/core.pyx":2595 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ } /* "imgui/core.pyx":2594 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs._require_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2601 * * @staticmethod * cdef from_ptr(cimgui.ImGuiTableColumnSortSpecs* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_26_ImGuiTableColumnSortSpecs_from_ptr(ImGuiTableColumnSortSpecs *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":2602 * @staticmethod * cdef from_ptr(cimgui.ImGuiTableColumnSortSpecs* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * instance = _ImGuiTableColumnSortSpecs() */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2603 * cdef from_ptr(cimgui.ImGuiTableColumnSortSpecs* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * instance = _ImGuiTableColumnSortSpecs() * instance._ptr = ptr */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":2602 * @staticmethod * cdef from_ptr(cimgui.ImGuiTableColumnSortSpecs* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * instance = _ImGuiTableColumnSortSpecs() */ } /* "imgui/core.pyx":2604 * if ptr == NULL: * return None * instance = _ImGuiTableColumnSortSpecs() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__ImGuiTableColumnSortSpecs)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2605 * return None * instance = _ImGuiTableColumnSortSpecs() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":2606 * instance = _ImGuiTableColumnSortSpecs() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":2601 * * @staticmethod * cdef from_ptr(cimgui.ImGuiTableColumnSortSpecs* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2609 * * @property * def column_user_id(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.ColumnUserID */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id___get__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id___get__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2610 * @property * def column_user_id(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.ColumnUserID * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2611 * def column_user_id(self): * self._require_pointer() * return self._ptr.ColumnUserID # <<<<<<<<<<<<<< * * @column_user_id.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiID(__pyx_v_self->_ptr->ColumnUserID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2609 * * @property * def column_user_id(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.ColumnUserID */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.column_user_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2614 * * @column_user_id.setter * def column_user_id(self, cimgui.ImGuiID column_user_id): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.ColumnUserID = column_user_id */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_column_user_id); /*proto*/ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_column_user_id) { ImGuiID __pyx_v_column_user_id; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_column_user_id); { __pyx_v_column_user_id = __Pyx_PyInt_As_ImGuiID(__pyx_arg_column_user_id); if (unlikely((__pyx_v_column_user_id == ((ImGuiID)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2614, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.column_user_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self), ((ImGuiID)__pyx_v_column_user_id)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, ImGuiID __pyx_v_column_user_id) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2615 * @column_user_id.setter * def column_user_id(self, cimgui.ImGuiID column_user_id): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.ColumnUserID = column_user_id * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2616 * def column_user_id(self, cimgui.ImGuiID column_user_id): * self._require_pointer() * self._ptr.ColumnUserID = column_user_id # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ColumnUserID = __pyx_v_column_user_id; /* "imgui/core.pyx":2614 * * @column_user_id.setter * def column_user_id(self, cimgui.ImGuiID column_user_id): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.ColumnUserID = column_user_id */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.column_user_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2619 * * @property * def column_index(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.ColumnIndex */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index___get__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index___get__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2620 * @property * def column_index(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.ColumnIndex * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2621 * def column_index(self): * self._require_pointer() * return self._ptr.ColumnIndex # <<<<<<<<<<<<<< * * @column_index.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImS16(__pyx_v_self->_ptr->ColumnIndex); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2619 * * @property * def column_index(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.ColumnIndex */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.column_index.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2624 * * @column_index.setter * def column_index(self, cimgui.ImS16 column_index): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.ColumnIndex = column_index */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_column_index); /*proto*/ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_column_index) { ImS16 __pyx_v_column_index; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_column_index); { __pyx_v_column_index = __Pyx_PyInt_As_ImS16(__pyx_arg_column_index); if (unlikely((__pyx_v_column_index == ((ImS16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2624, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.column_index.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self), ((ImS16)__pyx_v_column_index)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, ImS16 __pyx_v_column_index) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2625 * @column_index.setter * def column_index(self, cimgui.ImS16 column_index): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.ColumnIndex = column_index * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2626 * def column_index(self, cimgui.ImS16 column_index): * self._require_pointer() * self._ptr.ColumnIndex = column_index # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ColumnIndex = __pyx_v_column_index; /* "imgui/core.pyx":2624 * * @column_index.setter * def column_index(self, cimgui.ImS16 column_index): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.ColumnIndex = column_index */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.column_index.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2629 * * @property * def sort_order(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SortOrder */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order___get__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order___get__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2630 * @property * def sort_order(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.SortOrder * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2631 * def sort_order(self): * self._require_pointer() * return self._ptr.SortOrder # <<<<<<<<<<<<<< * * @sort_order.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImS16(__pyx_v_self->_ptr->SortOrder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2629 * * @property * def sort_order(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SortOrder */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.sort_order.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2634 * * @sort_order.setter * def sort_order(self, cimgui.ImS16 sort_order): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SortOrder = sort_order */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sort_order); /*proto*/ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sort_order) { ImS16 __pyx_v_sort_order; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_sort_order); { __pyx_v_sort_order = __Pyx_PyInt_As_ImS16(__pyx_arg_sort_order); if (unlikely((__pyx_v_sort_order == ((ImS16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2634, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.sort_order.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self), ((ImS16)__pyx_v_sort_order)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, ImS16 __pyx_v_sort_order) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2635 * @sort_order.setter * def sort_order(self, cimgui.ImS16 sort_order): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.SortOrder = sort_order * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2636 * def sort_order(self, cimgui.ImS16 sort_order): * self._require_pointer() * self._ptr.SortOrder = sort_order # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->SortOrder = __pyx_v_sort_order; /* "imgui/core.pyx":2634 * * @sort_order.setter * def sort_order(self, cimgui.ImS16 sort_order): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SortOrder = sort_order */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.sort_order.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2639 * * @property * def sort_direction(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SortDirection */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction___get__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction___get__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2640 * @property * def sort_direction(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.SortDirection * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2641 * def sort_direction(self): * self._require_pointer() * return self._ptr.SortDirection # <<<<<<<<<<<<<< * * @sort_direction.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiSortDirection(__pyx_v_self->_ptr->SortDirection); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2639 * * @property * def sort_direction(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SortDirection */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.sort_direction.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2644 * * @sort_direction.setter * def sort_direction(self, cimgui.ImGuiSortDirection sort_direction): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SortDirection = sort_direction */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sort_direction); /*proto*/ static int __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sort_direction) { ImGuiSortDirection __pyx_v_sort_direction; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_sort_direction); { __pyx_v_sort_direction = __Pyx_PyInt_As_ImGuiSortDirection(__pyx_arg_sort_direction); if (unlikely((__pyx_v_sort_direction == ((ImGuiSortDirection)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2644, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.sort_direction.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self), ((ImGuiSortDirection)__pyx_v_sort_direction)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, ImGuiSortDirection __pyx_v_sort_direction) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2645 * @sort_direction.setter * def sort_direction(self, cimgui.ImGuiSortDirection sort_direction): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.SortDirection = sort_direction * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2646 * def sort_direction(self, cimgui.ImGuiSortDirection sort_direction): * self._require_pointer() * self._ptr.SortDirection = sort_direction # <<<<<<<<<<<<<< * * */ __pyx_v_self->_ptr->SortDirection = __pyx_v_sort_direction; /* "imgui/core.pyx":2644 * * @sort_direction.setter * def sort_direction(self, cimgui.ImGuiSortDirection sort_direction): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SortDirection = sort_direction */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.sort_direction.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_26_ImGuiTableColumnSortSpecs_4__reduce_cython__[] = "_ImGuiTableColumnSortSpecs.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_4__reduce_cython__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_26_ImGuiTableColumnSortSpecs_6__setstate_cython__[] = "_ImGuiTableColumnSortSpecs.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_6__setstate_cython__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_26_ImGuiTableColumnSortSpecs_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2655 * cdef size_t idx * * def __init__(self): # <<<<<<<<<<<<<< * self.idx = 0 * pass */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array___init__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array___init__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* "imgui/core.pyx":2656 * * def __init__(self): * self.idx = 0 # <<<<<<<<<<<<<< * pass * */ __pyx_v_self->idx = 0; /* "imgui/core.pyx":2655 * cdef size_t idx * * def __init__(self): # <<<<<<<<<<<<<< * self.idx = 0 * pass */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2659 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_2_require_pointer[] = "_ImGuiTableColumnSortSpecs_array._require_pointer(self)"; static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_require_pointer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_2_require_pointer(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_require_pointer", 0); /* "imgui/core.pyx":2660 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":2662 * if self._ptr == NULL: * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_improperly_initialized, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":2661 * def _require_pointer(self): * if self._ptr == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "%s improperly initialized" % self.__class__.__name__ * ) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 2661, __pyx_L1_error) /* "imgui/core.pyx":2660 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ } /* "imgui/core.pyx":2659 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs_array._require_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2666 * * @staticmethod * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_from_ptr(ImGuiTableSortSpecs *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":2667 * @staticmethod * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * instance = _ImGuiTableColumnSortSpecs_array() */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2668 * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * instance = _ImGuiTableColumnSortSpecs_array() * instance._ptr = ptr */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":2667 * @staticmethod * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * instance = _ImGuiTableColumnSortSpecs_array() */ } /* "imgui/core.pyx":2669 * if ptr == NULL: * return None * instance = _ImGuiTableColumnSortSpecs_array() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__ImGuiTableColumnSortSpecs_array)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2670 * return None * instance = _ImGuiTableColumnSortSpecs_array() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":2671 * instance = _ImGuiTableColumnSortSpecs_array() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * cdef _get_item(self, size_t idx): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":2666 * * @staticmethod * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs_array.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2673 * return instance * * cdef _get_item(self, size_t idx): # <<<<<<<<<<<<<< * self._require_pointer() * if idx >= self._ptr.SpecsCount: */ static PyObject *__pyx_f_5imgui_4core_32_ImGuiTableColumnSortSpecs_array__get_item(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self, size_t __pyx_v_idx) { size_t __pyx_v_offset; size_t __pyx_v_pointer; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_item", 0); /* "imgui/core.pyx":2674 * * cdef _get_item(self, size_t idx): * self._require_pointer() # <<<<<<<<<<<<<< * if idx >= self._ptr.SpecsCount: * raise ValueError("Out of bound access to idx %i of an array of size %i" % (idx, self._ptr.SpecsCount)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2675 * cdef _get_item(self, size_t idx): * self._require_pointer() * if idx >= self._ptr.SpecsCount: # <<<<<<<<<<<<<< * raise ValueError("Out of bound access to idx %i of an array of size %i" % (idx, self._ptr.SpecsCount)) * cdef size_t offset = idx*sizeof(cimgui.ImGuiTableColumnSortSpecs) */ __pyx_t_4 = ((__pyx_v_idx >= __pyx_v_self->_ptr->SpecsCount) != 0); if (unlikely(__pyx_t_4)) { /* "imgui/core.pyx":2676 * self._require_pointer() * if idx >= self._ptr.SpecsCount: * raise ValueError("Out of bound access to idx %i of an array of size %i" % (idx, self._ptr.SpecsCount)) # <<<<<<<<<<<<<< * cdef size_t offset = idx*sizeof(cimgui.ImGuiTableColumnSortSpecs) * cdef size_t pointer = self._ptr.Specs + offset */ __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_idx); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->SpecsCount); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bound_access_to_idx_i_of, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 2676, __pyx_L1_error) /* "imgui/core.pyx":2675 * cdef _get_item(self, size_t idx): * self._require_pointer() * if idx >= self._ptr.SpecsCount: # <<<<<<<<<<<<<< * raise ValueError("Out of bound access to idx %i of an array of size %i" % (idx, self._ptr.SpecsCount)) * cdef size_t offset = idx*sizeof(cimgui.ImGuiTableColumnSortSpecs) */ } /* "imgui/core.pyx":2677 * if idx >= self._ptr.SpecsCount: * raise ValueError("Out of bound access to idx %i of an array of size %i" % (idx, self._ptr.SpecsCount)) * cdef size_t offset = idx*sizeof(cimgui.ImGuiTableColumnSortSpecs) # <<<<<<<<<<<<<< * cdef size_t pointer = self._ptr.Specs + offset * return _ImGuiTableColumnSortSpecs.from_ptr(pointer) */ __pyx_v_offset = (__pyx_v_idx * (sizeof(ImGuiTableColumnSortSpecs))); /* "imgui/core.pyx":2678 * raise ValueError("Out of bound access to idx %i of an array of size %i" % (idx, self._ptr.SpecsCount)) * cdef size_t offset = idx*sizeof(cimgui.ImGuiTableColumnSortSpecs) * cdef size_t pointer = self._ptr.Specs + offset # <<<<<<<<<<<<<< * return _ImGuiTableColumnSortSpecs.from_ptr(pointer) * */ __pyx_v_pointer = (((size_t)__pyx_v_self->_ptr->Specs) + __pyx_v_offset); /* "imgui/core.pyx":2679 * cdef size_t offset = idx*sizeof(cimgui.ImGuiTableColumnSortSpecs) * cdef size_t pointer = self._ptr.Specs + offset * return _ImGuiTableColumnSortSpecs.from_ptr(pointer) # <<<<<<<<<<<<<< * * def __getitem__(self, idx): */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __pyx_f_5imgui_4core_26_ImGuiTableColumnSortSpecs_from_ptr(((ImGuiTableColumnSortSpecs *)__pyx_v_pointer)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":2673 * return instance * * cdef _get_item(self, size_t idx): # <<<<<<<<<<<<<< * self._require_pointer() * if idx >= self._ptr.SpecsCount: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs_array._get_item", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2681 * return _ImGuiTableColumnSortSpecs.from_ptr(pointer) * * def __getitem__(self, idx): # <<<<<<<<<<<<<< * return self._get_item(idx) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_5__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_idx); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_5__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_idx) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_4__getitem__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self), ((PyObject *)__pyx_v_idx)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_4__getitem__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self, PyObject *__pyx_v_idx) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations size_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); /* "imgui/core.pyx":2682 * * def __getitem__(self, idx): * return self._get_item(idx) # <<<<<<<<<<<<<< * * def __iter__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_As_size_t(__pyx_v_idx); if (unlikely((__pyx_t_1 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2682, __pyx_L1_error) __pyx_t_2 = ((struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self->__pyx_vtab)->_get_item(__pyx_v_self, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":2681 * return _ImGuiTableColumnSortSpecs.from_ptr(pointer) * * def __getitem__(self, idx): # <<<<<<<<<<<<<< * return self._get_item(idx) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs_array.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2684 * return self._get_item(idx) * * def __iter__(self): # <<<<<<<<<<<<<< * self.idx = 0 * return self */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_7__iter__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_7__iter__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_6__iter__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_6__iter__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__", 0); /* "imgui/core.pyx":2685 * * def __iter__(self): * self.idx = 0 # <<<<<<<<<<<<<< * return self * */ __pyx_v_self->idx = 0; /* "imgui/core.pyx":2686 * def __iter__(self): * self.idx = 0 * return self # <<<<<<<<<<<<<< * * def __next__(self): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":2684 * return self._get_item(idx) * * def __iter__(self): # <<<<<<<<<<<<<< * self.idx = 0 * return self */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2688 * return self * * def __next__(self): # <<<<<<<<<<<<<< * if self.idx < self._ptr.SpecsCount: * item = self._get_item(self.idx) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_9__next__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_9__next__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__next__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_8__next__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_8__next__(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self) { PyObject *__pyx_v_item = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__next__", 0); /* "imgui/core.pyx":2689 * * def __next__(self): * if self.idx < self._ptr.SpecsCount: # <<<<<<<<<<<<<< * item = self._get_item(self.idx) * self.idx += 1 */ __pyx_t_1 = ((__pyx_v_self->idx < __pyx_v_self->_ptr->SpecsCount) != 0); if (likely(__pyx_t_1)) { /* "imgui/core.pyx":2690 * def __next__(self): * if self.idx < self._ptr.SpecsCount: * item = self._get_item(self.idx) # <<<<<<<<<<<<<< * self.idx += 1 * return item */ __pyx_t_2 = ((struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self->__pyx_vtab)->_get_item(__pyx_v_self, __pyx_v_self->idx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_item = __pyx_t_2; __pyx_t_2 = 0; /* "imgui/core.pyx":2691 * if self.idx < self._ptr.SpecsCount: * item = self._get_item(self.idx) * self.idx += 1 # <<<<<<<<<<<<<< * return item * else: */ __pyx_v_self->idx = (__pyx_v_self->idx + 1); /* "imgui/core.pyx":2692 * item = self._get_item(self.idx) * self.idx += 1 * return item # <<<<<<<<<<<<<< * else: * raise StopIteration */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_item); __pyx_r = __pyx_v_item; goto __pyx_L0; /* "imgui/core.pyx":2689 * * def __next__(self): * if self.idx < self._ptr.SpecsCount: # <<<<<<<<<<<<<< * item = self._get_item(self.idx) * self.idx += 1 */ } /* "imgui/core.pyx":2694 * return item * else: * raise StopIteration # <<<<<<<<<<<<<< * * #def __setitem__(self, idx): */ /*else*/ { __Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0); __PYX_ERR(0, 2694, __pyx_L1_error) } /* "imgui/core.pyx":2688 * return self * * def __next__(self): # <<<<<<<<<<<<<< * if self.idx < self._ptr.SpecsCount: * item = self._get_item(self.idx) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs_array.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_item); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_10__reduce_cython__[] = "_ImGuiTableColumnSortSpecs_array.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_10__reduce_cython__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs_array.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_12__setstate_cython__[] = "_ImGuiTableColumnSortSpecs_array.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_12__setstate_cython__(((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiTableColumnSortSpecs_array.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2703 * cdef _ImGuiTableColumnSortSpecs_array specs * * def __init__(self): # <<<<<<<<<<<<<< * #self.specs = _ImGuiTableColumnSortSpecs_array(self) * pass */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs___init__(((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2707 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_20_ImGuiTableSortSpecs_2_require_pointer[] = "_ImGuiTableSortSpecs._require_pointer(self)"; static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_require_pointer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_2_require_pointer(((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_require_pointer", 0); /* "imgui/core.pyx":2708 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":2710 * if self._ptr == NULL: * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_improperly_initialized, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":2709 * def _require_pointer(self): * if self._ptr == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "%s improperly initialized" % self.__class__.__name__ * ) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 2709, __pyx_L1_error) /* "imgui/core.pyx":2708 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ } /* "imgui/core.pyx":2707 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableSortSpecs._require_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2714 * * @staticmethod * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_20_ImGuiTableSortSpecs_from_ptr(ImGuiTableSortSpecs *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":2715 * @staticmethod * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * instance = _ImGuiTableSortSpecs() */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2716 * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * instance = _ImGuiTableSortSpecs() * instance._ptr = ptr */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":2715 * @staticmethod * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * instance = _ImGuiTableSortSpecs() */ } /* "imgui/core.pyx":2717 * if ptr == NULL: * return None * instance = _ImGuiTableSortSpecs() # <<<<<<<<<<<<<< * instance._ptr = ptr * instance.specs = _ImGuiTableColumnSortSpecs_array.from_ptr(ptr) */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__ImGuiTableSortSpecs)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2718 * return None * instance = _ImGuiTableSortSpecs() * instance._ptr = ptr # <<<<<<<<<<<<<< * instance.specs = _ImGuiTableColumnSortSpecs_array.from_ptr(ptr) * return instance */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":2719 * instance = _ImGuiTableSortSpecs() * instance._ptr = ptr * instance.specs = _ImGuiTableColumnSortSpecs_array.from_ptr(ptr) # <<<<<<<<<<<<<< * return instance * */ __pyx_t_2 = __pyx_f_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_from_ptr(__pyx_v_ptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5imgui_4core__ImGuiTableColumnSortSpecs_array))))) __PYX_ERR(0, 2719, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF(__pyx_v_instance->specs); __Pyx_DECREF(((PyObject *)__pyx_v_instance->specs)); __pyx_v_instance->specs = ((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2720 * instance._ptr = ptr * instance.specs = _ImGuiTableColumnSortSpecs_array.from_ptr(ptr) * return instance # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":2714 * * @staticmethod * cdef from_ptr(cimgui.ImGuiTableSortSpecs* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._ImGuiTableSortSpecs.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2723 * * @property * def specs(self): # <<<<<<<<<<<<<< * return self.specs * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_5specs_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_5specs_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_5specs___get__(((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_5specs___get__(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2724 * @property * def specs(self): * return self.specs # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self->specs)); __pyx_r = ((PyObject *)__pyx_v_self->specs); goto __pyx_L0; /* "imgui/core.pyx":2723 * * @property * def specs(self): # <<<<<<<<<<<<<< * return self.specs * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2727 * * @property * def specs_count(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SpecsCount */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_count_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_count_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_count___get__(((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_count___get__(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2728 * @property * def specs_count(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.SpecsCount * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2729 * def specs_count(self): * self._require_pointer() * return self._ptr.SpecsCount # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->SpecsCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2727 * * @property * def specs_count(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SpecsCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableSortSpecs.specs_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2732 * * @property * def specs_dirty(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SpecsDirty */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty___get__(((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty___get__(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2733 * @property * def specs_dirty(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.SpecsDirty * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2734 * def specs_dirty(self): * self._require_pointer() * return self._ptr.SpecsDirty # <<<<<<<<<<<<<< * * @specs_dirty.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->SpecsDirty); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2732 * * @property * def specs_dirty(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SpecsDirty */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableSortSpecs.specs_dirty.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2737 * * @specs_dirty.setter * def specs_dirty(self, cimgui.bool specs_dirty): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SpecsDirty = specs_dirty */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_specs_dirty); /*proto*/ static int __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_specs_dirty) { bool __pyx_v_specs_dirty; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_specs_dirty); { __pyx_v_specs_dirty = __Pyx_PyObject_IsTrue(__pyx_arg_specs_dirty); if (unlikely((__pyx_v_specs_dirty == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2737, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiTableSortSpecs.specs_dirty.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_v_self), ((bool)__pyx_v_specs_dirty)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_2__set__(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self, bool __pyx_v_specs_dirty) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":2738 * @specs_dirty.setter * def specs_dirty(self, cimgui.bool specs_dirty): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.SpecsDirty = specs_dirty * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2739 * def specs_dirty(self, cimgui.bool specs_dirty): * self._require_pointer() * self._ptr.SpecsDirty = specs_dirty # <<<<<<<<<<<<<< * * cdef class _ImGuiViewport(object): */ __pyx_v_self->_ptr->SpecsDirty = __pyx_v_specs_dirty; /* "imgui/core.pyx":2737 * * @specs_dirty.setter * def specs_dirty(self, cimgui.bool specs_dirty): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SpecsDirty = specs_dirty */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiTableSortSpecs.specs_dirty.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_20_ImGuiTableSortSpecs_4__reduce_cython__[] = "_ImGuiTableSortSpecs.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_4__reduce_cython__(((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiTableSortSpecs.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_20_ImGuiTableSortSpecs_6__setstate_cython__[] = "_ImGuiTableSortSpecs.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_6__setstate_cython__(((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_ImGuiTableSortSpecs_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiTableSortSpecs.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2752 * cdef cimgui.ImGuiViewport* _ptr * * def __init__(self): # <<<<<<<<<<<<<< * pass * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_ImGuiViewport_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_14_ImGuiViewport_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport___init__(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_ImGuiViewport___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2755 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_ImGuiViewport_2_require_pointer[] = "_ImGuiViewport._require_pointer(self)"; static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_require_pointer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_2_require_pointer(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_require_pointer", 0); /* "imgui/core.pyx":2756 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":2758 * if self._ptr == NULL: * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_improperly_initialized, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":2757 * def _require_pointer(self): * if self._ptr == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "%s improperly initialized" % self.__class__.__name__ * ) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 2757, __pyx_L1_error) /* "imgui/core.pyx":2756 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ } /* "imgui/core.pyx":2755 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiViewport._require_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2762 * * @staticmethod * cdef from_ptr(cimgui.ImGuiViewport* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_14_ImGuiViewport_from_ptr(ImGuiViewport *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":2763 * @staticmethod * cdef from_ptr(cimgui.ImGuiViewport* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2764 * cdef from_ptr(cimgui.ImGuiViewport* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _ImGuiViewport() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":2763 * @staticmethod * cdef from_ptr(cimgui.ImGuiViewport* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":2766 * return None * * instance = _ImGuiViewport() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__ImGuiViewport)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2767 * * instance = _ImGuiViewport() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":2768 * instance = _ImGuiViewport() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":2762 * * @staticmethod * cdef from_ptr(cimgui.ImGuiViewport* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._ImGuiViewport.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2771 * * @property * def flags(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.Flags */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_5flags_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_5flags___get__(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_5flags___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2772 * @property * def flags(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.Flags * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2773 * def flags(self): * self._require_pointer() * return self._ptr.Flags # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiViewportFlags(__pyx_v_self->_ptr->Flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2771 * * @property * def flags(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.Flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiViewport.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2776 * * @property * def pos(self): # <<<<<<<<<<<<<< * """Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates)""" * self._require_pointer() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_3pos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_3pos_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_3pos___get__(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_3pos___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2778 * def pos(self): * """Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates)""" * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.Pos) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2779 * """Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates)""" * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.Pos) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->Pos); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2776 * * @property * def pos(self): # <<<<<<<<<<<<<< * """Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates)""" * self._require_pointer() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiViewport.pos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2782 * * @property * def size(self): # <<<<<<<<<<<<<< * """Main Area: Size of the viewport.""" * self._require_pointer() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_4size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_4size___get__(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_4size___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2784 * def size(self): * """Main Area: Size of the viewport.""" * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.Size) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2785 * """Main Area: Size of the viewport.""" * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.Size) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->Size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2782 * * @property * def size(self): # <<<<<<<<<<<<<< * """Main Area: Size of the viewport.""" * self._require_pointer() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiViewport.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2788 * * @property * def work_pos(self): # <<<<<<<<<<<<<< * """Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos)""" * self._require_pointer() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_8work_pos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_8work_pos_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_8work_pos___get__(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_8work_pos___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2790 * def work_pos(self): * """Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos)""" * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.WorkPos) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2791 * """Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos)""" * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.WorkPos) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->WorkPos); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2788 * * @property * def work_pos(self): # <<<<<<<<<<<<<< * """Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos)""" * self._require_pointer() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiViewport.work_pos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2794 * * @property * def work_size(self): # <<<<<<<<<<<<<< * """Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size)""" * self._require_pointer() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_9work_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_9work_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_9work_size___get__(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_9work_size___get__(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2796 * def work_size(self): * """Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size)""" * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.WorkSize) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2797 * """Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size)""" * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.WorkSize) # <<<<<<<<<<<<<< * * def get_center(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->WorkSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2794 * * @property * def work_size(self): # <<<<<<<<<<<<<< * """Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size)""" * self._require_pointer() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiViewport.work_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2799 * return _cast_ImVec2_tuple(self._ptr.WorkSize) * * def get_center(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.GetCenter()) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_5get_center(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_ImGuiViewport_4get_center[] = "_ImGuiViewport.get_center(self)"; static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_5get_center(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_center (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_4get_center(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_4get_center(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; ImVec2 __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_center", 0); /* "imgui/core.pyx":2800 * * def get_center(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.GetCenter()) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2801 * def get_center(self): * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.GetCenter()) # <<<<<<<<<<<<<< * * def get_work_center(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_4 = __pyx_v_self->_ptr->GetCenter(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2801, __pyx_L1_error) } __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2799 * return _cast_ImVec2_tuple(self._ptr.WorkSize) * * def get_center(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.GetCenter()) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiViewport.get_center", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2803 * return _cast_ImVec2_tuple(self._ptr.GetCenter()) * * def get_work_center(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.GetWorkCenter()) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_7get_work_center(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_ImGuiViewport_6get_work_center[] = "_ImGuiViewport.get_work_center(self)"; static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_7get_work_center(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_work_center (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_6get_work_center(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_6get_work_center(struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; ImVec2 __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_work_center", 0); /* "imgui/core.pyx":2804 * * def get_work_center(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.GetWorkCenter()) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2805 * def get_work_center(self): * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.GetWorkCenter()) # <<<<<<<<<<<<<< * * cdef class _DrawData(object): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_4 = __pyx_v_self->_ptr->GetWorkCenter(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2805, __pyx_L1_error) } __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2803 * return _cast_ImVec2_tuple(self._ptr.GetCenter()) * * def get_work_center(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.GetWorkCenter()) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiViewport.get_work_center", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_ImGuiViewport_8__reduce_cython__[] = "_ImGuiViewport.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_8__reduce_cython__(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiViewport.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_14_ImGuiViewport_10__setstate_cython__[] = "_ImGuiViewport.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_14_ImGuiViewport_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_ImGuiViewport_10__setstate_cython__(((struct __pyx_obj_5imgui_4core__ImGuiViewport *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_ImGuiViewport_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiViewport *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiViewport.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2810 * cdef cimgui.ImDrawData* _ptr * * def __init__(self): # <<<<<<<<<<<<<< * pass * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_9_DrawData_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_9_DrawData_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_9_DrawData___init__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_9_DrawData___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2813 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawData_2_require_pointer[] = "_DrawData._require_pointer(self)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawData_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_require_pointer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_2_require_pointer(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_2_require_pointer(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_require_pointer", 0); /* "imgui/core.pyx":2814 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":2816 * if self._ptr == NULL: * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_improperly_initialized, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":2815 * def _require_pointer(self): * if self._ptr == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "%s improperly initialized" % self.__class__.__name__ * ) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 2815, __pyx_L1_error) /* "imgui/core.pyx":2814 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ } /* "imgui/core.pyx":2813 * pass * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData._require_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2820 * * @staticmethod * cdef from_ptr(cimgui.ImDrawData* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_9_DrawData_from_ptr(ImDrawData *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":2821 * @staticmethod * cdef from_ptr(cimgui.ImDrawData* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2822 * cdef from_ptr(cimgui.ImDrawData* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _DrawData() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":2821 * @staticmethod * cdef from_ptr(cimgui.ImDrawData* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":2824 * return None * * instance = _DrawData() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__DrawData)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2825 * * instance = _DrawData() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":2826 * instance = _DrawData() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * def deindex_all_buffers(self): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":2820 * * @staticmethod * cdef from_ptr(cimgui.ImDrawData* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._DrawData.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2828 * return instance * * def deindex_all_buffers(self): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.DeIndexAllBuffers() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_5deindex_all_buffers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawData_4deindex_all_buffers[] = "_DrawData.deindex_all_buffers(self)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawData_5deindex_all_buffers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deindex_all_buffers (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_4deindex_all_buffers(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_4deindex_all_buffers(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deindex_all_buffers", 0); /* "imgui/core.pyx":2829 * * def deindex_all_buffers(self): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.DeIndexAllBuffers() * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2830 * def deindex_all_buffers(self): * self._require_pointer() * self._ptr.DeIndexAllBuffers() # <<<<<<<<<<<<<< * * def scale_clip_rects(self, width, height): */ try { __pyx_v_self->_ptr->DeIndexAllBuffers(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2830, __pyx_L1_error) } /* "imgui/core.pyx":2828 * return instance * * def deindex_all_buffers(self): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.DeIndexAllBuffers() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.deindex_all_buffers", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2832 * self._ptr.DeIndexAllBuffers() * * def scale_clip_rects(self, width, height): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.ScaleClipRects(_cast_args_ImVec2(width, height)) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_7scale_clip_rects(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawData_6scale_clip_rects[] = "_DrawData.scale_clip_rects(self, width, height)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawData_7scale_clip_rects(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_width = 0; PyObject *__pyx_v_height = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("scale_clip_rects (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,&__pyx_n_s_height,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("scale_clip_rects", 1, 2, 2, 1); __PYX_ERR(0, 2832, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "scale_clip_rects") < 0)) __PYX_ERR(0, 2832, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_width = values[0]; __pyx_v_height = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("scale_clip_rects", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2832, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._DrawData.scale_clip_rects", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_6scale_clip_rects(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self), __pyx_v_width, __pyx_v_height); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_6scale_clip_rects(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self, PyObject *__pyx_v_width, PyObject *__pyx_v_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; float __pyx_t_4; float __pyx_t_5; ImVec2 __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("scale_clip_rects", 0); /* "imgui/core.pyx":2833 * * def scale_clip_rects(self, width, height): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.ScaleClipRects(_cast_args_ImVec2(width, height)) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2834 * def scale_clip_rects(self, width, height): * self._require_pointer() * self._ptr.ScaleClipRects(_cast_args_ImVec2(width, height)) # <<<<<<<<<<<<<< * * @property */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_width); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2834, __pyx_L1_error) __pyx_t_5 = __pyx_PyFloat_AsFloat(__pyx_v_height); if (unlikely((__pyx_t_5 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2834, __pyx_L1_error) __pyx_t_6 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_t_4, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2834, __pyx_L1_error) try { __pyx_v_self->_ptr->ScaleClipRects(__pyx_t_6); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 2834, __pyx_L1_error) } /* "imgui/core.pyx":2832 * self._ptr.DeIndexAllBuffers() * * def scale_clip_rects(self, width, height): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.ScaleClipRects(_cast_args_ImVec2(width, height)) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.scale_clip_rects", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2837 * * @property * def valid(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.Valid */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_5valid_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_5valid_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_5valid___get__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_5valid___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2838 * @property * def valid(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.Valid * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2839 * def valid(self): * self._require_pointer() * return self._ptr.Valid # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->Valid); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2837 * * @property * def valid(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.Valid */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.valid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2842 * * @property * def cmd_count(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.CmdListsCount */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_9cmd_count_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_9cmd_count_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_9cmd_count___get__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_9cmd_count___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2843 * @property * def cmd_count(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.CmdListsCount * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2844 * def cmd_count(self): * self._require_pointer() * return self._ptr.CmdListsCount # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->CmdListsCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2842 * * @property * def cmd_count(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.CmdListsCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.cmd_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2847 * * @property * def total_vtx_count(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.TotalVtxCount */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_15total_vtx_count_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_15total_vtx_count_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_15total_vtx_count___get__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_15total_vtx_count___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2848 * @property * def total_vtx_count(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.TotalVtxCount * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2849 * def total_vtx_count(self): * self._require_pointer() * return self._ptr.TotalVtxCount # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->TotalVtxCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2847 * * @property * def total_vtx_count(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.TotalVtxCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.total_vtx_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2852 * * @property * def display_pos(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DisplayPos) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_11display_pos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_11display_pos_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_11display_pos___get__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_11display_pos___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2853 * @property * def display_pos(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DisplayPos) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2854 * def display_pos(self): * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DisplayPos) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->DisplayPos); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2852 * * @property * def display_pos(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DisplayPos) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.display_pos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2857 * * @property * def display_size(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DisplaySize) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_12display_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_12display_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_12display_size___get__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_12display_size___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2858 * @property * def display_size(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DisplaySize) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2859 * def display_size(self): * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DisplaySize) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->DisplaySize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2857 * * @property * def display_size(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DisplaySize) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.display_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2862 * * @property * def frame_buffer_scale(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.FramebufferScale) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_18frame_buffer_scale_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_18frame_buffer_scale_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_18frame_buffer_scale___get__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_18frame_buffer_scale___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2863 * @property * def frame_buffer_scale(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.FramebufferScale) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2864 * def frame_buffer_scale(self): * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.FramebufferScale) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->FramebufferScale); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2862 * * @property * def frame_buffer_scale(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.FramebufferScale) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.frame_buffer_scale.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2867 * * @property * def total_idx_count(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.TotalIdxCount */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_15total_idx_count_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_15total_idx_count_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_15total_idx_count___get__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_15total_idx_count___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2868 * @property * def total_idx_count(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.TotalIdxCount * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2869 * def total_idx_count(self): * self._require_pointer() * return self._ptr.TotalIdxCount # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->TotalIdxCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2867 * * @property * def total_idx_count(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.TotalIdxCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._DrawData.total_idx_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2872 * * @property * def commands_lists(self): # <<<<<<<<<<<<<< * return [ * _DrawList.from_ptr(self._ptr.CmdLists[idx]) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_14commands_lists_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_14commands_lists_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_14commands_lists___get__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_14commands_lists___get__(struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { int __pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":2873 * @property * def commands_lists(self): * return [ # <<<<<<<<<<<<<< * _DrawList.from_ptr(self._ptr.CmdLists[idx]) * # perf: short-wiring instead of using property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":2876 * _DrawList.from_ptr(self._ptr.CmdLists[idx]) * # perf: short-wiring instead of using property * for idx in xrange(self._ptr.CmdListsCount) # <<<<<<<<<<<<<< * ] * */ __pyx_t_2 = __pyx_v_self->_ptr->CmdListsCount; __pyx_t_3 = __pyx_t_2; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_idx = __pyx_t_4; /* "imgui/core.pyx":2874 * def commands_lists(self): * return [ * _DrawList.from_ptr(self._ptr.CmdLists[idx]) # <<<<<<<<<<<<<< * # perf: short-wiring instead of using property * for idx in xrange(self._ptr.CmdListsCount) */ __pyx_t_5 = __pyx_f_5imgui_4core_9_DrawList_from_ptr((__pyx_v_self->_ptr->CmdLists[__pyx_v_idx])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 2873, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":2872 * * @property * def commands_lists(self): # <<<<<<<<<<<<<< * return [ * _DrawList.from_ptr(self._ptr.CmdLists[idx]) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core._DrawData.commands_lists.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawData_8__reduce_cython__[] = "_DrawData.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawData_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_8__reduce_cython__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawData.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_DrawData_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_9_DrawData_10__setstate_cython__[] = "_DrawData.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_9_DrawData_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_DrawData_10__setstate_cython__(((struct __pyx_obj_5imgui_4core__DrawData *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_DrawData_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__DrawData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._DrawData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2883 * * @staticmethod * cdef from_ptr(const cimgui.ImWchar* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(ImWchar const *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__StaticGlyphRanges *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":2884 * @staticmethod * cdef from_ptr(const cimgui.ImWchar* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2885 * cdef from_ptr(const cimgui.ImWchar* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _StaticGlyphRanges() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":2884 * @staticmethod * cdef from_ptr(const cimgui.ImWchar* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":2887 * return None * * instance = _StaticGlyphRanges() # <<<<<<<<<<<<<< * instance.ranges_ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__StaticGlyphRanges)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__StaticGlyphRanges *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2888 * * instance = _StaticGlyphRanges() * instance.ranges_ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->ranges_ptr = __pyx_v_ptr; /* "imgui/core.pyx":2889 * instance = _StaticGlyphRanges() * instance.ranges_ptr = ptr * return instance # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":2883 * * @staticmethod * cdef from_ptr(const cimgui.ImWchar* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._StaticGlyphRanges.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_18_StaticGlyphRanges_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_18_StaticGlyphRanges___reduce_cython__[] = "_StaticGlyphRanges.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_18_StaticGlyphRanges_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_18_StaticGlyphRanges___reduce_cython__(((struct __pyx_obj_5imgui_4core__StaticGlyphRanges *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_18_StaticGlyphRanges___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__StaticGlyphRanges *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._StaticGlyphRanges.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_18_StaticGlyphRanges_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_18_StaticGlyphRanges_2__setstate_cython__[] = "_StaticGlyphRanges.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_18_StaticGlyphRanges_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_18_StaticGlyphRanges_2__setstate_cython__(((struct __pyx_obj_5imgui_4core__StaticGlyphRanges *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_18_StaticGlyphRanges_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__StaticGlyphRanges *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._StaticGlyphRanges.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2895 * cdef const cimgui.ImWchar* ranges_ptr * * def __init__(self, glyph_ranges): # <<<<<<<<<<<<<< * self.ranges_ptr = NULL * range_list = list(glyph_ranges) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_11GlyphRanges_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_11GlyphRanges_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_glyph_ranges = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_glyph_ranges,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_glyph_ranges)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 2895, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_glyph_ranges = values[0]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2895, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.GlyphRanges.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_11GlyphRanges___init__(((struct __pyx_obj_5imgui_4core_GlyphRanges *)__pyx_v_self), __pyx_v_glyph_ranges); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_11GlyphRanges___init__(struct __pyx_obj_5imgui_4core_GlyphRanges *__pyx_v_self, PyObject *__pyx_v_glyph_ranges) { PyObject *__pyx_v_range_list = NULL; ImWchar *__pyx_v_arr; PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_value = NULL; PyObject *__pyx_v_i_value = NULL; int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; ImWchar __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); /* "imgui/core.pyx":2896 * * def __init__(self, glyph_ranges): * self.ranges_ptr = NULL # <<<<<<<<<<<<<< * range_list = list(glyph_ranges) * if len(range_list) % 2 != 1 or range_list[-1] != 0: */ __pyx_v_self->ranges_ptr = NULL; /* "imgui/core.pyx":2897 * def __init__(self, glyph_ranges): * self.ranges_ptr = NULL * range_list = list(glyph_ranges) # <<<<<<<<<<<<<< * if len(range_list) % 2 != 1 or range_list[-1] != 0: * raise RuntimeError('glyph_ranges must be pairs of integers (inclusive range) followed by a zero') */ __pyx_t_1 = PySequence_List(__pyx_v_glyph_ranges); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_range_list = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":2898 * self.ranges_ptr = NULL * range_list = list(glyph_ranges) * if len(range_list) % 2 != 1 or range_list[-1] != 0: # <<<<<<<<<<<<<< * raise RuntimeError('glyph_ranges must be pairs of integers (inclusive range) followed by a zero') * arr = malloc(sizeof(cimgui.ImWchar) * len(range_list)) */ __pyx_t_3 = PyList_GET_SIZE(__pyx_v_range_list); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2898, __pyx_L1_error) __pyx_t_4 = ((__Pyx_mod_Py_ssize_t(__pyx_t_3, 2) != 1) != 0); if (!__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_range_list, -1L, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyInt_NeObjC(__pyx_t_1, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 2898, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_2)) { /* "imgui/core.pyx":2899 * range_list = list(glyph_ranges) * if len(range_list) % 2 != 1 or range_list[-1] != 0: * raise RuntimeError('glyph_ranges must be pairs of integers (inclusive range) followed by a zero') # <<<<<<<<<<<<<< * arr = malloc(sizeof(cimgui.ImWchar) * len(range_list)) * self.ranges_ptr = arr */ __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2899, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 2899, __pyx_L1_error) /* "imgui/core.pyx":2898 * self.ranges_ptr = NULL * range_list = list(glyph_ranges) * if len(range_list) % 2 != 1 or range_list[-1] != 0: # <<<<<<<<<<<<<< * raise RuntimeError('glyph_ranges must be pairs of integers (inclusive range) followed by a zero') * arr = malloc(sizeof(cimgui.ImWchar) * len(range_list)) */ } /* "imgui/core.pyx":2900 * if len(range_list) % 2 != 1 or range_list[-1] != 0: * raise RuntimeError('glyph_ranges must be pairs of integers (inclusive range) followed by a zero') * arr = malloc(sizeof(cimgui.ImWchar) * len(range_list)) # <<<<<<<<<<<<<< * self.ranges_ptr = arr * for i, value in enumerate(range_list): */ __pyx_t_3 = PyList_GET_SIZE(__pyx_v_range_list); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2900, __pyx_L1_error) __pyx_v_arr = ((ImWchar *)malloc(((sizeof(ImWchar)) * __pyx_t_3))); /* "imgui/core.pyx":2901 * raise RuntimeError('glyph_ranges must be pairs of integers (inclusive range) followed by a zero') * arr = malloc(sizeof(cimgui.ImWchar) * len(range_list)) * self.ranges_ptr = arr # <<<<<<<<<<<<<< * for i, value in enumerate(range_list): * i_value = int(value) */ __pyx_v_self->ranges_ptr = __pyx_v_arr; /* "imgui/core.pyx":2902 * arr = malloc(sizeof(cimgui.ImWchar) * len(range_list)) * self.ranges_ptr = arr * for i, value in enumerate(range_list): # <<<<<<<<<<<<<< * i_value = int(value) * if i_value < 0: */ __Pyx_INCREF(__pyx_int_0); __pyx_t_5 = __pyx_int_0; __pyx_t_1 = __pyx_v_range_list; __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = 0; for (;;) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 2902, __pyx_L1_error) #else __pyx_t_6 = PySequence_ITEM(__pyx_t_1, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_5, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = __pyx_t_6; __pyx_t_6 = 0; /* "imgui/core.pyx":2903 * self.ranges_ptr = arr * for i, value in enumerate(range_list): * i_value = int(value) # <<<<<<<<<<<<<< * if i_value < 0: * raise RuntimeError('glyph_ranges cannot contain negative values') */ __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_v_value); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2903, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_i_value, __pyx_t_6); __pyx_t_6 = 0; /* "imgui/core.pyx":2904 * for i, value in enumerate(range_list): * i_value = int(value) * if i_value < 0: # <<<<<<<<<<<<<< * raise RuntimeError('glyph_ranges cannot contain negative values') * arr[i] = i_value */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_i_value, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2904, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2904, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_t_2)) { /* "imgui/core.pyx":2905 * i_value = int(value) * if i_value < 0: * raise RuntimeError('glyph_ranges cannot contain negative values') # <<<<<<<<<<<<<< * arr[i] = i_value * */ __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 2905, __pyx_L1_error) /* "imgui/core.pyx":2904 * for i, value in enumerate(range_list): * i_value = int(value) * if i_value < 0: # <<<<<<<<<<<<<< * raise RuntimeError('glyph_ranges cannot contain negative values') * arr[i] = i_value */ } /* "imgui/core.pyx":2906 * if i_value < 0: * raise RuntimeError('glyph_ranges cannot contain negative values') * arr[i] = i_value # <<<<<<<<<<<<<< * * def __del__(self): */ __pyx_t_7 = __Pyx_PyInt_As_ImWchar32(__pyx_v_i_value); if (unlikely((__pyx_t_7 == ((ImWchar)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2906, __pyx_L1_error) __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2906, __pyx_L1_error) (__pyx_v_arr[__pyx_t_8]) = __pyx_t_7; /* "imgui/core.pyx":2902 * arr = malloc(sizeof(cimgui.ImWchar) * len(range_list)) * self.ranges_ptr = arr * for i, value in enumerate(range_list): # <<<<<<<<<<<<<< * i_value = int(value) * if i_value < 0: */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "imgui/core.pyx":2895 * cdef const cimgui.ImWchar* ranges_ptr * * def __init__(self, glyph_ranges): # <<<<<<<<<<<<<< * self.ranges_ptr = NULL * range_list = list(glyph_ranges) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.GlyphRanges.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_range_list); __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_value); __Pyx_XDECREF(__pyx_v_i_value); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2908 * arr[i] = i_value * * def __del__(self): # <<<<<<<<<<<<<< * free(self.ranges_ptr) * self.ranges_ptr = NULL */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_11GlyphRanges_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_11GlyphRanges_2__del__[] = "GlyphRanges.__del__(self)"; static PyObject *__pyx_pw_5imgui_4core_11GlyphRanges_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_11GlyphRanges_2__del__(((struct __pyx_obj_5imgui_4core_GlyphRanges *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_11GlyphRanges_2__del__(struct __pyx_obj_5imgui_4core_GlyphRanges *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); /* "imgui/core.pyx":2909 * * def __del__(self): * free(self.ranges_ptr) # <<<<<<<<<<<<<< * self.ranges_ptr = NULL * */ free(((void *)__pyx_v_self->ranges_ptr)); /* "imgui/core.pyx":2910 * def __del__(self): * free(self.ranges_ptr) * self.ranges_ptr = NULL # <<<<<<<<<<<<<< * * */ __pyx_v_self->ranges_ptr = NULL; /* "imgui/core.pyx":2908 * arr[i] = i_value * * def __del__(self): # <<<<<<<<<<<<<< * free(self.ranges_ptr) * self.ranges_ptr = NULL */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_11GlyphRanges_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_11GlyphRanges_4__reduce_cython__[] = "GlyphRanges.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_11GlyphRanges_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_11GlyphRanges_4__reduce_cython__(((struct __pyx_obj_5imgui_4core_GlyphRanges *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_11GlyphRanges_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_GlyphRanges *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GlyphRanges.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_11GlyphRanges_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_11GlyphRanges_6__setstate_cython__[] = "GlyphRanges.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_11GlyphRanges_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_11GlyphRanges_6__setstate_cython__(((struct __pyx_obj_5imgui_4core_GlyphRanges *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_11GlyphRanges_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_GlyphRanges *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.GlyphRanges.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2916 * cdef cimgui.ImFontConfig config * * def __init__( # <<<<<<<<<<<<<< * self, * font_no=None, */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_10FontConfig_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_10FontConfig_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_font_no = 0; PyObject *__pyx_v_size_pixels = 0; PyObject *__pyx_v_oversample_h = 0; PyObject *__pyx_v_oversample_v = 0; PyObject *__pyx_v_pixel_snap_h = 0; PyObject *__pyx_v_glyph_extra_spacing_x = 0; PyObject *__pyx_v_glyph_extra_spacing_y = 0; PyObject *__pyx_v_glyph_offset_x = 0; PyObject *__pyx_v_glyph_offset_y = 0; PyObject *__pyx_v_glyph_min_advance_x = 0; PyObject *__pyx_v_glyph_max_advance_x = 0; PyObject *__pyx_v_merge_mode = 0; CYTHON_UNUSED PyObject *__pyx_v_font_builder_flags = 0; PyObject *__pyx_v_rasterizer_multiply = 0; PyObject *__pyx_v_ellipsis_char = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_font_no,&__pyx_n_s_size_pixels,&__pyx_n_s_oversample_h,&__pyx_n_s_oversample_v,&__pyx_n_s_pixel_snap_h,&__pyx_n_s_glyph_extra_spacing_x,&__pyx_n_s_glyph_extra_spacing_y,&__pyx_n_s_glyph_offset_x,&__pyx_n_s_glyph_offset_y,&__pyx_n_s_glyph_min_advance_x,&__pyx_n_s_glyph_max_advance_x,&__pyx_n_s_merge_mode,&__pyx_n_s_font_builder_flags,&__pyx_n_s_rasterizer_multiply,&__pyx_n_s_ellipsis_char,0}; PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":2918 * def __init__( * self, * font_no=None, # <<<<<<<<<<<<<< * size_pixels=None, * oversample_h=None, */ values[0] = ((PyObject *)Py_None); /* "imgui/core.pyx":2919 * self, * font_no=None, * size_pixels=None, # <<<<<<<<<<<<<< * oversample_h=None, * oversample_v=None, */ values[1] = ((PyObject *)Py_None); /* "imgui/core.pyx":2920 * font_no=None, * size_pixels=None, * oversample_h=None, # <<<<<<<<<<<<<< * oversample_v=None, * pixel_snap_h=None, */ values[2] = ((PyObject *)Py_None); /* "imgui/core.pyx":2921 * size_pixels=None, * oversample_h=None, * oversample_v=None, # <<<<<<<<<<<<<< * pixel_snap_h=None, * glyph_extra_spacing_x=None, */ values[3] = ((PyObject *)Py_None); /* "imgui/core.pyx":2922 * oversample_h=None, * oversample_v=None, * pixel_snap_h=None, # <<<<<<<<<<<<<< * glyph_extra_spacing_x=None, * glyph_extra_spacing_y=None, */ values[4] = ((PyObject *)Py_None); /* "imgui/core.pyx":2923 * oversample_v=None, * pixel_snap_h=None, * glyph_extra_spacing_x=None, # <<<<<<<<<<<<<< * glyph_extra_spacing_y=None, * glyph_offset_x=None, */ values[5] = ((PyObject *)Py_None); /* "imgui/core.pyx":2924 * pixel_snap_h=None, * glyph_extra_spacing_x=None, * glyph_extra_spacing_y=None, # <<<<<<<<<<<<<< * glyph_offset_x=None, * glyph_offset_y=None, */ values[6] = ((PyObject *)Py_None); /* "imgui/core.pyx":2925 * glyph_extra_spacing_x=None, * glyph_extra_spacing_y=None, * glyph_offset_x=None, # <<<<<<<<<<<<<< * glyph_offset_y=None, * glyph_min_advance_x=None, */ values[7] = ((PyObject *)Py_None); /* "imgui/core.pyx":2926 * glyph_extra_spacing_y=None, * glyph_offset_x=None, * glyph_offset_y=None, # <<<<<<<<<<<<<< * glyph_min_advance_x=None, * glyph_max_advance_x=None, */ values[8] = ((PyObject *)Py_None); /* "imgui/core.pyx":2927 * glyph_offset_x=None, * glyph_offset_y=None, * glyph_min_advance_x=None, # <<<<<<<<<<<<<< * glyph_max_advance_x=None, * merge_mode=None, */ values[9] = ((PyObject *)Py_None); /* "imgui/core.pyx":2928 * glyph_offset_y=None, * glyph_min_advance_x=None, * glyph_max_advance_x=None, # <<<<<<<<<<<<<< * merge_mode=None, * font_builder_flags=None, */ values[10] = ((PyObject *)Py_None); /* "imgui/core.pyx":2929 * glyph_min_advance_x=None, * glyph_max_advance_x=None, * merge_mode=None, # <<<<<<<<<<<<<< * font_builder_flags=None, * rasterizer_multiply=None, */ values[11] = ((PyObject *)Py_None); /* "imgui/core.pyx":2930 * glyph_max_advance_x=None, * merge_mode=None, * font_builder_flags=None, # <<<<<<<<<<<<<< * rasterizer_multiply=None, * ellipsis_char=None */ values[12] = ((PyObject *)Py_None); /* "imgui/core.pyx":2931 * merge_mode=None, * font_builder_flags=None, * rasterizer_multiply=None, # <<<<<<<<<<<<<< * ellipsis_char=None * ): */ values[13] = ((PyObject *)Py_None); /* "imgui/core.pyx":2932 * font_builder_flags=None, * rasterizer_multiply=None, * ellipsis_char=None # <<<<<<<<<<<<<< * ): * if font_no is not None: */ values[14] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14); CYTHON_FALLTHROUGH; case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13); CYTHON_FALLTHROUGH; case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12); CYTHON_FALLTHROUGH; case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11); CYTHON_FALLTHROUGH; case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10); CYTHON_FALLTHROUGH; case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_font_no); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size_pixels); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_oversample_h); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_oversample_v); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pixel_snap_h); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_glyph_extra_spacing_x); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_glyph_extra_spacing_y); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_glyph_offset_x); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_glyph_offset_y); if (value) { values[8] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 9: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_glyph_min_advance_x); if (value) { values[9] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 10: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_glyph_max_advance_x); if (value) { values[10] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 11: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_merge_mode); if (value) { values[11] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 12: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_font_builder_flags); if (value) { values[12] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 13: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rasterizer_multiply); if (value) { values[13] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 14: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ellipsis_char); if (value) { values[14] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 2916, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14); CYTHON_FALLTHROUGH; case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13); CYTHON_FALLTHROUGH; case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12); CYTHON_FALLTHROUGH; case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11); CYTHON_FALLTHROUGH; case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10); CYTHON_FALLTHROUGH; case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_font_no = values[0]; __pyx_v_size_pixels = values[1]; __pyx_v_oversample_h = values[2]; __pyx_v_oversample_v = values[3]; __pyx_v_pixel_snap_h = values[4]; __pyx_v_glyph_extra_spacing_x = values[5]; __pyx_v_glyph_extra_spacing_y = values[6]; __pyx_v_glyph_offset_x = values[7]; __pyx_v_glyph_offset_y = values[8]; __pyx_v_glyph_min_advance_x = values[9]; __pyx_v_glyph_max_advance_x = values[10]; __pyx_v_merge_mode = values[11]; __pyx_v_font_builder_flags = values[12]; __pyx_v_rasterizer_multiply = values[13]; __pyx_v_ellipsis_char = values[14]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2916, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.FontConfig.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_10FontConfig___init__(((struct __pyx_obj_5imgui_4core_FontConfig *)__pyx_v_self), __pyx_v_font_no, __pyx_v_size_pixels, __pyx_v_oversample_h, __pyx_v_oversample_v, __pyx_v_pixel_snap_h, __pyx_v_glyph_extra_spacing_x, __pyx_v_glyph_extra_spacing_y, __pyx_v_glyph_offset_x, __pyx_v_glyph_offset_y, __pyx_v_glyph_min_advance_x, __pyx_v_glyph_max_advance_x, __pyx_v_merge_mode, __pyx_v_font_builder_flags, __pyx_v_rasterizer_multiply, __pyx_v_ellipsis_char); /* "imgui/core.pyx":2916 * cdef cimgui.ImFontConfig config * * def __init__( # <<<<<<<<<<<<<< * self, * font_no=None, */ /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_10FontConfig___init__(struct __pyx_obj_5imgui_4core_FontConfig *__pyx_v_self, PyObject *__pyx_v_font_no, PyObject *__pyx_v_size_pixels, PyObject *__pyx_v_oversample_h, PyObject *__pyx_v_oversample_v, PyObject *__pyx_v_pixel_snap_h, PyObject *__pyx_v_glyph_extra_spacing_x, PyObject *__pyx_v_glyph_extra_spacing_y, PyObject *__pyx_v_glyph_offset_x, PyObject *__pyx_v_glyph_offset_y, PyObject *__pyx_v_glyph_min_advance_x, PyObject *__pyx_v_glyph_max_advance_x, PyObject *__pyx_v_merge_mode, CYTHON_UNUSED PyObject *__pyx_v_font_builder_flags, PyObject *__pyx_v_rasterizer_multiply, PyObject *__pyx_v_ellipsis_char) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; float __pyx_t_4; bool __pyx_t_5; ImWchar __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); /* "imgui/core.pyx":2934 * ellipsis_char=None * ): * if font_no is not None: # <<<<<<<<<<<<<< * self.config.FontNo = font_no * if size_pixels is not None: */ __pyx_t_1 = (__pyx_v_font_no != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":2935 * ): * if font_no is not None: * self.config.FontNo = font_no # <<<<<<<<<<<<<< * if size_pixels is not None: * self.config.SizePixels = size_pixels */ __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_font_no); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2935, __pyx_L1_error) __pyx_v_self->config.FontNo = __pyx_t_3; /* "imgui/core.pyx":2934 * ellipsis_char=None * ): * if font_no is not None: # <<<<<<<<<<<<<< * self.config.FontNo = font_no * if size_pixels is not None: */ } /* "imgui/core.pyx":2936 * if font_no is not None: * self.config.FontNo = font_no * if size_pixels is not None: # <<<<<<<<<<<<<< * self.config.SizePixels = size_pixels * if oversample_h is not None: */ __pyx_t_2 = (__pyx_v_size_pixels != Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2937 * self.config.FontNo = font_no * if size_pixels is not None: * self.config.SizePixels = size_pixels # <<<<<<<<<<<<<< * if oversample_h is not None: * self.config.OversampleH = oversample_h */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_size_pixels); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2937, __pyx_L1_error) __pyx_v_self->config.SizePixels = __pyx_t_4; /* "imgui/core.pyx":2936 * if font_no is not None: * self.config.FontNo = font_no * if size_pixels is not None: # <<<<<<<<<<<<<< * self.config.SizePixels = size_pixels * if oversample_h is not None: */ } /* "imgui/core.pyx":2938 * if size_pixels is not None: * self.config.SizePixels = size_pixels * if oversample_h is not None: # <<<<<<<<<<<<<< * self.config.OversampleH = oversample_h * if oversample_v is not None: */ __pyx_t_1 = (__pyx_v_oversample_h != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":2939 * self.config.SizePixels = size_pixels * if oversample_h is not None: * self.config.OversampleH = oversample_h # <<<<<<<<<<<<<< * if oversample_v is not None: * self.config.OversampleV = oversample_v */ __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_oversample_h); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2939, __pyx_L1_error) __pyx_v_self->config.OversampleH = __pyx_t_3; /* "imgui/core.pyx":2938 * if size_pixels is not None: * self.config.SizePixels = size_pixels * if oversample_h is not None: # <<<<<<<<<<<<<< * self.config.OversampleH = oversample_h * if oversample_v is not None: */ } /* "imgui/core.pyx":2940 * if oversample_h is not None: * self.config.OversampleH = oversample_h * if oversample_v is not None: # <<<<<<<<<<<<<< * self.config.OversampleV = oversample_v * if pixel_snap_h is not None: */ __pyx_t_2 = (__pyx_v_oversample_v != Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2941 * self.config.OversampleH = oversample_h * if oversample_v is not None: * self.config.OversampleV = oversample_v # <<<<<<<<<<<<<< * if pixel_snap_h is not None: * self.config.PixelSnapH = pixel_snap_h */ __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_oversample_v); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2941, __pyx_L1_error) __pyx_v_self->config.OversampleV = __pyx_t_3; /* "imgui/core.pyx":2940 * if oversample_h is not None: * self.config.OversampleH = oversample_h * if oversample_v is not None: # <<<<<<<<<<<<<< * self.config.OversampleV = oversample_v * if pixel_snap_h is not None: */ } /* "imgui/core.pyx":2942 * if oversample_v is not None: * self.config.OversampleV = oversample_v * if pixel_snap_h is not None: # <<<<<<<<<<<<<< * self.config.PixelSnapH = pixel_snap_h * if glyph_extra_spacing_x is not None: */ __pyx_t_1 = (__pyx_v_pixel_snap_h != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":2943 * self.config.OversampleV = oversample_v * if pixel_snap_h is not None: * self.config.PixelSnapH = pixel_snap_h # <<<<<<<<<<<<<< * if glyph_extra_spacing_x is not None: * self.config.GlyphExtraSpacing.x = glyph_extra_spacing_x */ __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_pixel_snap_h); if (unlikely((__pyx_t_5 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2943, __pyx_L1_error) __pyx_v_self->config.PixelSnapH = __pyx_t_5; /* "imgui/core.pyx":2942 * if oversample_v is not None: * self.config.OversampleV = oversample_v * if pixel_snap_h is not None: # <<<<<<<<<<<<<< * self.config.PixelSnapH = pixel_snap_h * if glyph_extra_spacing_x is not None: */ } /* "imgui/core.pyx":2944 * if pixel_snap_h is not None: * self.config.PixelSnapH = pixel_snap_h * if glyph_extra_spacing_x is not None: # <<<<<<<<<<<<<< * self.config.GlyphExtraSpacing.x = glyph_extra_spacing_x * if glyph_extra_spacing_y is not None: */ __pyx_t_2 = (__pyx_v_glyph_extra_spacing_x != Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2945 * self.config.PixelSnapH = pixel_snap_h * if glyph_extra_spacing_x is not None: * self.config.GlyphExtraSpacing.x = glyph_extra_spacing_x # <<<<<<<<<<<<<< * if glyph_extra_spacing_y is not None: * self.config.GlyphExtraSpacing.y = glyph_extra_spacing_y */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_glyph_extra_spacing_x); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2945, __pyx_L1_error) __pyx_v_self->config.GlyphExtraSpacing.x = __pyx_t_4; /* "imgui/core.pyx":2944 * if pixel_snap_h is not None: * self.config.PixelSnapH = pixel_snap_h * if glyph_extra_spacing_x is not None: # <<<<<<<<<<<<<< * self.config.GlyphExtraSpacing.x = glyph_extra_spacing_x * if glyph_extra_spacing_y is not None: */ } /* "imgui/core.pyx":2946 * if glyph_extra_spacing_x is not None: * self.config.GlyphExtraSpacing.x = glyph_extra_spacing_x * if glyph_extra_spacing_y is not None: # <<<<<<<<<<<<<< * self.config.GlyphExtraSpacing.y = glyph_extra_spacing_y * if glyph_offset_x is not None: */ __pyx_t_1 = (__pyx_v_glyph_extra_spacing_y != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":2947 * self.config.GlyphExtraSpacing.x = glyph_extra_spacing_x * if glyph_extra_spacing_y is not None: * self.config.GlyphExtraSpacing.y = glyph_extra_spacing_y # <<<<<<<<<<<<<< * if glyph_offset_x is not None: * self.config.GlyphOffset.x = glyph_offset_x */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_glyph_extra_spacing_y); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2947, __pyx_L1_error) __pyx_v_self->config.GlyphExtraSpacing.y = __pyx_t_4; /* "imgui/core.pyx":2946 * if glyph_extra_spacing_x is not None: * self.config.GlyphExtraSpacing.x = glyph_extra_spacing_x * if glyph_extra_spacing_y is not None: # <<<<<<<<<<<<<< * self.config.GlyphExtraSpacing.y = glyph_extra_spacing_y * if glyph_offset_x is not None: */ } /* "imgui/core.pyx":2948 * if glyph_extra_spacing_y is not None: * self.config.GlyphExtraSpacing.y = glyph_extra_spacing_y * if glyph_offset_x is not None: # <<<<<<<<<<<<<< * self.config.GlyphOffset.x = glyph_offset_x * if glyph_offset_y is not None: */ __pyx_t_2 = (__pyx_v_glyph_offset_x != Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2949 * self.config.GlyphExtraSpacing.y = glyph_extra_spacing_y * if glyph_offset_x is not None: * self.config.GlyphOffset.x = glyph_offset_x # <<<<<<<<<<<<<< * if glyph_offset_y is not None: * self.config.GlyphOffset.y = glyph_offset_y */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_glyph_offset_x); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2949, __pyx_L1_error) __pyx_v_self->config.GlyphOffset.x = __pyx_t_4; /* "imgui/core.pyx":2948 * if glyph_extra_spacing_y is not None: * self.config.GlyphExtraSpacing.y = glyph_extra_spacing_y * if glyph_offset_x is not None: # <<<<<<<<<<<<<< * self.config.GlyphOffset.x = glyph_offset_x * if glyph_offset_y is not None: */ } /* "imgui/core.pyx":2950 * if glyph_offset_x is not None: * self.config.GlyphOffset.x = glyph_offset_x * if glyph_offset_y is not None: # <<<<<<<<<<<<<< * self.config.GlyphOffset.y = glyph_offset_y * if glyph_min_advance_x is not None: */ __pyx_t_1 = (__pyx_v_glyph_offset_y != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":2951 * self.config.GlyphOffset.x = glyph_offset_x * if glyph_offset_y is not None: * self.config.GlyphOffset.y = glyph_offset_y # <<<<<<<<<<<<<< * if glyph_min_advance_x is not None: * self.config.GlyphMinAdvanceX = glyph_min_advance_x */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_glyph_offset_y); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2951, __pyx_L1_error) __pyx_v_self->config.GlyphOffset.y = __pyx_t_4; /* "imgui/core.pyx":2950 * if glyph_offset_x is not None: * self.config.GlyphOffset.x = glyph_offset_x * if glyph_offset_y is not None: # <<<<<<<<<<<<<< * self.config.GlyphOffset.y = glyph_offset_y * if glyph_min_advance_x is not None: */ } /* "imgui/core.pyx":2952 * if glyph_offset_y is not None: * self.config.GlyphOffset.y = glyph_offset_y * if glyph_min_advance_x is not None: # <<<<<<<<<<<<<< * self.config.GlyphMinAdvanceX = glyph_min_advance_x * if glyph_max_advance_x is not None: */ __pyx_t_2 = (__pyx_v_glyph_min_advance_x != Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2953 * self.config.GlyphOffset.y = glyph_offset_y * if glyph_min_advance_x is not None: * self.config.GlyphMinAdvanceX = glyph_min_advance_x # <<<<<<<<<<<<<< * if glyph_max_advance_x is not None: * self.config.GlyphMaxAdvanceX = glyph_max_advance_x */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_glyph_min_advance_x); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2953, __pyx_L1_error) __pyx_v_self->config.GlyphMinAdvanceX = __pyx_t_4; /* "imgui/core.pyx":2952 * if glyph_offset_y is not None: * self.config.GlyphOffset.y = glyph_offset_y * if glyph_min_advance_x is not None: # <<<<<<<<<<<<<< * self.config.GlyphMinAdvanceX = glyph_min_advance_x * if glyph_max_advance_x is not None: */ } /* "imgui/core.pyx":2954 * if glyph_min_advance_x is not None: * self.config.GlyphMinAdvanceX = glyph_min_advance_x * if glyph_max_advance_x is not None: # <<<<<<<<<<<<<< * self.config.GlyphMaxAdvanceX = glyph_max_advance_x * if merge_mode is not None: */ __pyx_t_1 = (__pyx_v_glyph_max_advance_x != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":2955 * self.config.GlyphMinAdvanceX = glyph_min_advance_x * if glyph_max_advance_x is not None: * self.config.GlyphMaxAdvanceX = glyph_max_advance_x # <<<<<<<<<<<<<< * if merge_mode is not None: * self.config.MergeMode = merge_mode */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_glyph_max_advance_x); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2955, __pyx_L1_error) __pyx_v_self->config.GlyphMaxAdvanceX = __pyx_t_4; /* "imgui/core.pyx":2954 * if glyph_min_advance_x is not None: * self.config.GlyphMinAdvanceX = glyph_min_advance_x * if glyph_max_advance_x is not None: # <<<<<<<<<<<<<< * self.config.GlyphMaxAdvanceX = glyph_max_advance_x * if merge_mode is not None: */ } /* "imgui/core.pyx":2956 * if glyph_max_advance_x is not None: * self.config.GlyphMaxAdvanceX = glyph_max_advance_x * if merge_mode is not None: # <<<<<<<<<<<<<< * self.config.MergeMode = merge_mode * #if font_builder_flags is not None: */ __pyx_t_2 = (__pyx_v_merge_mode != Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2957 * self.config.GlyphMaxAdvanceX = glyph_max_advance_x * if merge_mode is not None: * self.config.MergeMode = merge_mode # <<<<<<<<<<<<<< * #if font_builder_flags is not None: * # self.config.FontBuilderFlags = font_builder_flags */ __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_merge_mode); if (unlikely((__pyx_t_5 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2957, __pyx_L1_error) __pyx_v_self->config.MergeMode = __pyx_t_5; /* "imgui/core.pyx":2956 * if glyph_max_advance_x is not None: * self.config.GlyphMaxAdvanceX = glyph_max_advance_x * if merge_mode is not None: # <<<<<<<<<<<<<< * self.config.MergeMode = merge_mode * #if font_builder_flags is not None: */ } /* "imgui/core.pyx":2960 * #if font_builder_flags is not None: * # self.config.FontBuilderFlags = font_builder_flags * if rasterizer_multiply is not None: # <<<<<<<<<<<<<< * self.config.RasterizerMultiply = rasterizer_multiply * if ellipsis_char is not None: */ __pyx_t_1 = (__pyx_v_rasterizer_multiply != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":2961 * # self.config.FontBuilderFlags = font_builder_flags * if rasterizer_multiply is not None: * self.config.RasterizerMultiply = rasterizer_multiply # <<<<<<<<<<<<<< * if ellipsis_char is not None: * self.config.EllipsisChar = ellipsis_char */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_rasterizer_multiply); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 2961, __pyx_L1_error) __pyx_v_self->config.RasterizerMultiply = __pyx_t_4; /* "imgui/core.pyx":2960 * #if font_builder_flags is not None: * # self.config.FontBuilderFlags = font_builder_flags * if rasterizer_multiply is not None: # <<<<<<<<<<<<<< * self.config.RasterizerMultiply = rasterizer_multiply * if ellipsis_char is not None: */ } /* "imgui/core.pyx":2962 * if rasterizer_multiply is not None: * self.config.RasterizerMultiply = rasterizer_multiply * if ellipsis_char is not None: # <<<<<<<<<<<<<< * self.config.EllipsisChar = ellipsis_char * */ __pyx_t_2 = (__pyx_v_ellipsis_char != Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2963 * self.config.RasterizerMultiply = rasterizer_multiply * if ellipsis_char is not None: * self.config.EllipsisChar = ellipsis_char # <<<<<<<<<<<<<< * * */ __pyx_t_6 = __Pyx_PyInt_As_ImWchar32(__pyx_v_ellipsis_char); if (unlikely((__pyx_t_6 == ((ImWchar)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2963, __pyx_L1_error) __pyx_v_self->config.EllipsisChar = __pyx_t_6; /* "imgui/core.pyx":2962 * if rasterizer_multiply is not None: * self.config.RasterizerMultiply = rasterizer_multiply * if ellipsis_char is not None: # <<<<<<<<<<<<<< * self.config.EllipsisChar = ellipsis_char * */ } /* "imgui/core.pyx":2916 * cdef cimgui.ImFontConfig config * * def __init__( # <<<<<<<<<<<<<< * self, * font_no=None, */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.FontConfig.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self.config cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10FontConfig_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10FontConfig_2__reduce_cython__[] = "FontConfig.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_10FontConfig_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10FontConfig_2__reduce_cython__(((struct __pyx_obj_5imgui_4core_FontConfig *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10FontConfig_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_FontConfig *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self.config cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.config cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self.config cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.FontConfig.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self.config cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self.config cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10FontConfig_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_10FontConfig_4__setstate_cython__[] = "FontConfig.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_10FontConfig_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10FontConfig_4__setstate_cython__(((struct __pyx_obj_5imgui_4core_FontConfig *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10FontConfig_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core_FontConfig *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self.config cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.config cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self.config cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self.config cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.FontConfig.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2968 * cdef class _Font(object): * @staticmethod * cdef from_ptr(cimgui.ImFont* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_5_Font_from_ptr(ImFont *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__Font *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":2969 * @staticmethod * cdef from_ptr(cimgui.ImFont* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":2970 * cdef from_ptr(cimgui.ImFont* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _Font() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":2969 * @staticmethod * cdef from_ptr(cimgui.ImFont* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":2972 * return None * * instance = _Font() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__Font)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__Font *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":2973 * * instance = _Font() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":2974 * instance = _Font() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":2968 * cdef class _Font(object): * @staticmethod * cdef from_ptr(cimgui.ImFont* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._Font.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_5_Font_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_5_Font___reduce_cython__[] = "_Font.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_5_Font_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_5_Font___reduce_cython__(((struct __pyx_obj_5imgui_4core__Font *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_5_Font___reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Font *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._Font.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_5_Font_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_5_Font_2__setstate_cython__[] = "_Font.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_5_Font_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_5_Font_2__setstate_cython__(((struct __pyx_obj_5imgui_4core__Font *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_5_Font_2__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__Font *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._Font.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2994 * cdef cimgui.ImFontAtlas* _ptr * * def __init__(self): # <<<<<<<<<<<<<< * pass * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_10_FontAtlas_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_10_FontAtlas_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas___init__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_10_FontAtlas___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":2998 * * @staticmethod * cdef from_ptr(cimgui.ImFontAtlas* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_10_FontAtlas_from_ptr(ImFontAtlas *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":2999 * @staticmethod * cdef from_ptr(cimgui.ImFontAtlas* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":3000 * cdef from_ptr(cimgui.ImFontAtlas* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _FontAtlas() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":2999 * @staticmethod * cdef from_ptr(cimgui.ImFontAtlas* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":3002 * return None * * instance = _FontAtlas() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__FontAtlas)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3003 * * instance = _FontAtlas() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":3004 * instance = _FontAtlas() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * def _require_pointer(self): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":2998 * * @staticmethod * cdef from_ptr(cimgui.ImFontAtlas* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3006 * return instance * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_2_require_pointer[] = "_FontAtlas._require_pointer(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_require_pointer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_2_require_pointer(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_2_require_pointer(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_require_pointer", 0); /* "imgui/core.pyx":3007 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":3009 * if self._ptr == NULL: * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_improperly_initialized, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":3008 * def _require_pointer(self): * if self._ptr == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "%s improperly initialized" % self.__class__.__name__ * ) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 3008, __pyx_L1_error) /* "imgui/core.pyx":3007 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ } /* "imgui/core.pyx":3012 * ) * * return self._ptr != NULL # <<<<<<<<<<<<<< * * def add_font_default(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __Pyx_PyBool_FromLong((__pyx_v_self->_ptr != NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":3006 * return instance * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._FontAtlas._require_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3014 * return self._ptr != NULL * * def add_font_default(self): # <<<<<<<<<<<<<< * self._require_pointer() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_5add_font_default(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_4add_font_default[] = "_FontAtlas.add_font_default(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_5add_font_default(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_font_default (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_4add_font_default(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_4add_font_default(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; ImFont *__pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_font_default", 0); /* "imgui/core.pyx":3015 * * def add_font_default(self): * self._require_pointer() # <<<<<<<<<<<<<< * * return _Font.from_ptr(self._ptr.AddFontDefault(NULL)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3017 * self._require_pointer() * * return _Font.from_ptr(self._ptr.AddFontDefault(NULL)) # <<<<<<<<<<<<<< * * def add_font_from_file_ttf( */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_4 = __pyx_v_self->_ptr->AddFontDefault(NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3017, __pyx_L1_error) } __pyx_t_1 = __pyx_f_5imgui_4core_5_Font_from_ptr(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3014 * return self._ptr != NULL * * def add_font_default(self): # <<<<<<<<<<<<<< * self._require_pointer() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._FontAtlas.add_font_default", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3019 * return _Font.from_ptr(self._ptr.AddFontDefault(NULL)) * * def add_font_from_file_ttf( # <<<<<<<<<<<<<< * self, str filename, float size_pixels, * font_config=None, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_7add_font_from_file_ttf(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_6add_font_from_file_ttf[] = "_FontAtlas.add_font_from_file_ttf(self, str filename, float size_pixels, font_config=None, glyph_ranges=None)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_7add_font_from_file_ttf(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_filename = 0; float __pyx_v_size_pixels; PyObject *__pyx_v_font_config = 0; PyObject *__pyx_v_glyph_ranges = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_font_from_file_ttf (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_filename,&__pyx_n_s_size_pixels,&__pyx_n_s_font_config,&__pyx_n_s_glyph_ranges,0}; PyObject* values[4] = {0,0,0,0}; /* "imgui/core.pyx":3021 * def add_font_from_file_ttf( * self, str filename, float size_pixels, * font_config=None, # <<<<<<<<<<<<<< * glyph_ranges=None * ): */ values[2] = ((PyObject *)Py_None); /* "imgui/core.pyx":3022 * self, str filename, float size_pixels, * font_config=None, * glyph_ranges=None # <<<<<<<<<<<<<< * ): * self._require_pointer() */ values[3] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filename)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size_pixels)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("add_font_from_file_ttf", 0, 2, 4, 1); __PYX_ERR(0, 3019, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_font_config); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_glyph_ranges); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_font_from_file_ttf") < 0)) __PYX_ERR(0, 3019, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_filename = ((PyObject*)values[0]); __pyx_v_size_pixels = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_size_pixels == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3020, __pyx_L3_error) __pyx_v_font_config = values[2]; __pyx_v_glyph_ranges = values[3]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("add_font_from_file_ttf", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3019, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._FontAtlas.add_font_from_file_ttf", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filename), (&PyString_Type), 1, "filename", 1))) __PYX_ERR(0, 3020, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_6add_font_from_file_ttf(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self), __pyx_v_filename, __pyx_v_size_pixels, __pyx_v_font_config, __pyx_v_glyph_ranges); /* "imgui/core.pyx":3019 * return _Font.from_ptr(self._ptr.AddFontDefault(NULL)) * * def add_font_from_file_ttf( # <<<<<<<<<<<<<< * self, str filename, float size_pixels, * font_config=None, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_6add_font_from_file_ttf(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self, PyObject *__pyx_v_filename, float __pyx_v_size_pixels, PyObject *__pyx_v_font_config, PyObject *__pyx_v_glyph_ranges) { ImWchar const *__pyx_v_p_glyph_ranges; ImFontConfig __pyx_v_config; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_t_5; ImWchar const *__pyx_t_6; ImWchar const *__pyx_t_7; ImFontConfig __pyx_t_8; char const *__pyx_t_9; ImFont *__pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_font_from_file_ttf", 0); /* "imgui/core.pyx":3024 * glyph_ranges=None * ): * self._require_pointer() # <<<<<<<<<<<<<< * * cdef const cimgui.ImWchar* p_glyph_ranges; */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3028 * cdef const cimgui.ImWchar* p_glyph_ranges; * * if glyph_ranges is None: # <<<<<<<<<<<<<< * p_glyph_ranges = NULL * elif isinstance(glyph_ranges, _StaticGlyphRanges): */ __pyx_t_4 = (__pyx_v_glyph_ranges == Py_None); __pyx_t_5 = (__pyx_t_4 != 0); if (__pyx_t_5) { /* "imgui/core.pyx":3029 * * if glyph_ranges is None: * p_glyph_ranges = NULL # <<<<<<<<<<<<<< * elif isinstance(glyph_ranges, _StaticGlyphRanges): * p_glyph_ranges = (<_StaticGlyphRanges>glyph_ranges).ranges_ptr */ __pyx_v_p_glyph_ranges = NULL; /* "imgui/core.pyx":3028 * cdef const cimgui.ImWchar* p_glyph_ranges; * * if glyph_ranges is None: # <<<<<<<<<<<<<< * p_glyph_ranges = NULL * elif isinstance(glyph_ranges, _StaticGlyphRanges): */ goto __pyx_L3; } /* "imgui/core.pyx":3030 * if glyph_ranges is None: * p_glyph_ranges = NULL * elif isinstance(glyph_ranges, _StaticGlyphRanges): # <<<<<<<<<<<<<< * p_glyph_ranges = (<_StaticGlyphRanges>glyph_ranges).ranges_ptr * elif isinstance(glyph_ranges, GlyphRanges): */ __pyx_t_5 = __Pyx_TypeCheck(__pyx_v_glyph_ranges, __pyx_ptype_5imgui_4core__StaticGlyphRanges); __pyx_t_4 = (__pyx_t_5 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":3031 * p_glyph_ranges = NULL * elif isinstance(glyph_ranges, _StaticGlyphRanges): * p_glyph_ranges = (<_StaticGlyphRanges>glyph_ranges).ranges_ptr # <<<<<<<<<<<<<< * elif isinstance(glyph_ranges, GlyphRanges): * p_glyph_ranges = (glyph_ranges).ranges_ptr */ __pyx_t_6 = ((struct __pyx_obj_5imgui_4core__StaticGlyphRanges *)__pyx_v_glyph_ranges)->ranges_ptr; __pyx_v_p_glyph_ranges = __pyx_t_6; /* "imgui/core.pyx":3030 * if glyph_ranges is None: * p_glyph_ranges = NULL * elif isinstance(glyph_ranges, _StaticGlyphRanges): # <<<<<<<<<<<<<< * p_glyph_ranges = (<_StaticGlyphRanges>glyph_ranges).ranges_ptr * elif isinstance(glyph_ranges, GlyphRanges): */ goto __pyx_L3; } /* "imgui/core.pyx":3032 * elif isinstance(glyph_ranges, _StaticGlyphRanges): * p_glyph_ranges = (<_StaticGlyphRanges>glyph_ranges).ranges_ptr * elif isinstance(glyph_ranges, GlyphRanges): # <<<<<<<<<<<<<< * p_glyph_ranges = (glyph_ranges).ranges_ptr * else: */ __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_glyph_ranges, __pyx_ptype_5imgui_4core_GlyphRanges); __pyx_t_5 = (__pyx_t_4 != 0); if (likely(__pyx_t_5)) { /* "imgui/core.pyx":3033 * p_glyph_ranges = (<_StaticGlyphRanges>glyph_ranges).ranges_ptr * elif isinstance(glyph_ranges, GlyphRanges): * p_glyph_ranges = (glyph_ranges).ranges_ptr # <<<<<<<<<<<<<< * else: * raise RuntimeError('glyph_ranges: invalid type') */ __pyx_t_7 = ((struct __pyx_obj_5imgui_4core_GlyphRanges *)__pyx_v_glyph_ranges)->ranges_ptr; __pyx_v_p_glyph_ranges = __pyx_t_7; /* "imgui/core.pyx":3032 * elif isinstance(glyph_ranges, _StaticGlyphRanges): * p_glyph_ranges = (<_StaticGlyphRanges>glyph_ranges).ranges_ptr * elif isinstance(glyph_ranges, GlyphRanges): # <<<<<<<<<<<<<< * p_glyph_ranges = (glyph_ranges).ranges_ptr * else: */ goto __pyx_L3; } /* "imgui/core.pyx":3035 * p_glyph_ranges = (glyph_ranges).ranges_ptr * else: * raise RuntimeError('glyph_ranges: invalid type') # <<<<<<<<<<<<<< * * cdef cimgui.ImFontConfig config */ /*else*/ { __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 3035, __pyx_L1_error) } __pyx_L3:; /* "imgui/core.pyx":3038 * * cdef cimgui.ImFontConfig config * if font_config is not None: # <<<<<<<<<<<<<< * config = (font_config).config * */ __pyx_t_5 = (__pyx_v_font_config != Py_None); __pyx_t_4 = (__pyx_t_5 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":3039 * cdef cimgui.ImFontConfig config * if font_config is not None: * config = (font_config).config # <<<<<<<<<<<<<< * * return _Font.from_ptr(self._ptr.AddFontFromFileTTF( */ __pyx_t_8 = ((struct __pyx_obj_5imgui_4core_FontConfig *)__pyx_v_font_config)->config; __pyx_v_config = __pyx_t_8; /* "imgui/core.pyx":3038 * * cdef cimgui.ImFontConfig config * if font_config is not None: # <<<<<<<<<<<<<< * config = (font_config).config * */ } /* "imgui/core.pyx":3041 * config = (font_config).config * * return _Font.from_ptr(self._ptr.AddFontFromFileTTF( # <<<<<<<<<<<<<< * _bytes(filename), size_pixels, &config, * p_glyph_ranges */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":3042 * * return _Font.from_ptr(self._ptr.AddFontFromFileTTF( * _bytes(filename), size_pixels, &config, # <<<<<<<<<<<<<< * p_glyph_ranges * )) */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_filename); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3042, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 3042, __pyx_L1_error) } __pyx_t_9 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(0, 3042, __pyx_L1_error) /* "imgui/core.pyx":3041 * config = (font_config).config * * return _Font.from_ptr(self._ptr.AddFontFromFileTTF( # <<<<<<<<<<<<<< * _bytes(filename), size_pixels, &config, * p_glyph_ranges */ try { __pyx_t_10 = __pyx_v_self->_ptr->AddFontFromFileTTF(__pyx_t_9, __pyx_v_size_pixels, (&__pyx_v_config), __pyx_v_p_glyph_ranges); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3041, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __pyx_f_5imgui_4core_5_Font_from_ptr(__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3019 * return _Font.from_ptr(self._ptr.AddFontDefault(NULL)) * * def add_font_from_file_ttf( # <<<<<<<<<<<<<< * self, str filename, float size_pixels, * font_config=None, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._FontAtlas.add_font_from_file_ttf", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3046 * )) * * def clear_tex_data(self): # <<<<<<<<<<<<<< * self._ptr.ClearTexData() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_9clear_tex_data(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_8clear_tex_data[] = "_FontAtlas.clear_tex_data(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_9clear_tex_data(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("clear_tex_data (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_8clear_tex_data(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_8clear_tex_data(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("clear_tex_data", 0); /* "imgui/core.pyx":3047 * * def clear_tex_data(self): * self._ptr.ClearTexData() # <<<<<<<<<<<<<< * * def clear_input_data(self): */ try { __pyx_v_self->_ptr->ClearTexData(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3047, __pyx_L1_error) } /* "imgui/core.pyx":3046 * )) * * def clear_tex_data(self): # <<<<<<<<<<<<<< * self._ptr.ClearTexData() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._FontAtlas.clear_tex_data", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3049 * self._ptr.ClearTexData() * * def clear_input_data(self): # <<<<<<<<<<<<<< * self._ptr.ClearInputData() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_11clear_input_data(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_10clear_input_data[] = "_FontAtlas.clear_input_data(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_11clear_input_data(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("clear_input_data (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_10clear_input_data(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_10clear_input_data(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("clear_input_data", 0); /* "imgui/core.pyx":3050 * * def clear_input_data(self): * self._ptr.ClearInputData() # <<<<<<<<<<<<<< * * def clear_fonts(self): */ try { __pyx_v_self->_ptr->ClearInputData(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3050, __pyx_L1_error) } /* "imgui/core.pyx":3049 * self._ptr.ClearTexData() * * def clear_input_data(self): # <<<<<<<<<<<<<< * self._ptr.ClearInputData() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._FontAtlas.clear_input_data", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3052 * self._ptr.ClearInputData() * * def clear_fonts(self): # <<<<<<<<<<<<<< * self._ptr.ClearFonts() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_13clear_fonts(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_12clear_fonts[] = "_FontAtlas.clear_fonts(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_13clear_fonts(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("clear_fonts (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_12clear_fonts(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_12clear_fonts(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("clear_fonts", 0); /* "imgui/core.pyx":3053 * * def clear_fonts(self): * self._ptr.ClearFonts() # <<<<<<<<<<<<<< * * def clear(self): */ try { __pyx_v_self->_ptr->ClearFonts(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3053, __pyx_L1_error) } /* "imgui/core.pyx":3052 * self._ptr.ClearInputData() * * def clear_fonts(self): # <<<<<<<<<<<<<< * self._ptr.ClearFonts() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._FontAtlas.clear_fonts", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3055 * self._ptr.ClearFonts() * * def clear(self): # <<<<<<<<<<<<<< * self._ptr.Clear() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_15clear(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_14clear[] = "_FontAtlas.clear(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_15clear(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("clear (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_14clear(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_14clear(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("clear", 0); /* "imgui/core.pyx":3056 * * def clear(self): * self._ptr.Clear() # <<<<<<<<<<<<<< * * def get_glyph_ranges_default(self): */ try { __pyx_v_self->_ptr->Clear(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3056, __pyx_L1_error) } /* "imgui/core.pyx":3055 * self._ptr.ClearFonts() * * def clear(self): # <<<<<<<<<<<<<< * self._ptr.Clear() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._FontAtlas.clear", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3058 * self._ptr.Clear() * * def get_glyph_ranges_default(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesDefault()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_17get_glyph_ranges_default(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_16get_glyph_ranges_default[] = "_FontAtlas.get_glyph_ranges_default(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_17get_glyph_ranges_default(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_default (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_16get_glyph_ranges_default(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_16get_glyph_ranges_default(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImWchar const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_default", 0); /* "imgui/core.pyx":3059 * * def get_glyph_ranges_default(self): * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesDefault()) # <<<<<<<<<<<<<< * * def get_glyph_ranges_korean(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetGlyphRangesDefault(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3059, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3058 * self._ptr.Clear() * * def get_glyph_ranges_default(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesDefault()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_default", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3061 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesDefault()) * * def get_glyph_ranges_korean(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesKorean()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_19get_glyph_ranges_korean(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_18get_glyph_ranges_korean[] = "_FontAtlas.get_glyph_ranges_korean(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_19get_glyph_ranges_korean(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_korean (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_18get_glyph_ranges_korean(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_18get_glyph_ranges_korean(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImWchar const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_korean", 0); /* "imgui/core.pyx":3062 * * def get_glyph_ranges_korean(self): * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesKorean()) # <<<<<<<<<<<<<< * * def get_glyph_ranges_japanese(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetGlyphRangesKorean(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3062, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3061 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesDefault()) * * def get_glyph_ranges_korean(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesKorean()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_korean", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3064 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesKorean()) * * def get_glyph_ranges_japanese(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesJapanese()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_21get_glyph_ranges_japanese(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_20get_glyph_ranges_japanese[] = "_FontAtlas.get_glyph_ranges_japanese(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_21get_glyph_ranges_japanese(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_japanese (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_20get_glyph_ranges_japanese(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_20get_glyph_ranges_japanese(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImWchar const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_japanese", 0); /* "imgui/core.pyx":3065 * * def get_glyph_ranges_japanese(self): * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesJapanese()) # <<<<<<<<<<<<<< * * def get_glyph_ranges_chinese_full(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetGlyphRangesJapanese(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3065, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3064 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesKorean()) * * def get_glyph_ranges_japanese(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesJapanese()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_japanese", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3067 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesJapanese()) * * def get_glyph_ranges_chinese_full(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseFull()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_23get_glyph_ranges_chinese_full(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_22get_glyph_ranges_chinese_full[] = "_FontAtlas.get_glyph_ranges_chinese_full(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_23get_glyph_ranges_chinese_full(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_chinese_full (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_22get_glyph_ranges_chinese_full(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_22get_glyph_ranges_chinese_full(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImWchar const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_chinese_full", 0); /* "imgui/core.pyx":3068 * * def get_glyph_ranges_chinese_full(self): * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseFull()) # <<<<<<<<<<<<<< * * def get_glyph_ranges_chinese(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetGlyphRangesChineseFull(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3068, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3067 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesJapanese()) * * def get_glyph_ranges_chinese_full(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseFull()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_chinese_full", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3070 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseFull()) * * def get_glyph_ranges_chinese(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseSimplifiedCommon()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_25get_glyph_ranges_chinese(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_24get_glyph_ranges_chinese[] = "_FontAtlas.get_glyph_ranges_chinese(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_25get_glyph_ranges_chinese(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_chinese (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_24get_glyph_ranges_chinese(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_24get_glyph_ranges_chinese(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImWchar const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_chinese", 0); /* "imgui/core.pyx":3071 * * def get_glyph_ranges_chinese(self): * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseSimplifiedCommon()) # <<<<<<<<<<<<<< * * def get_glyph_ranges_cyrillic(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetGlyphRangesChineseSimplifiedCommon(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3071, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3070 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseFull()) * * def get_glyph_ranges_chinese(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseSimplifiedCommon()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_chinese", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3073 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseSimplifiedCommon()) * * def get_glyph_ranges_cyrillic(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesCyrillic()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_27get_glyph_ranges_cyrillic(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_26get_glyph_ranges_cyrillic[] = "_FontAtlas.get_glyph_ranges_cyrillic(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_27get_glyph_ranges_cyrillic(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_cyrillic (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_26get_glyph_ranges_cyrillic(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_26get_glyph_ranges_cyrillic(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImWchar const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_cyrillic", 0); /* "imgui/core.pyx":3074 * * def get_glyph_ranges_cyrillic(self): * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesCyrillic()) # <<<<<<<<<<<<<< * * def get_glyph_ranges_thai(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetGlyphRangesCyrillic(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3074, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3074, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3073 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesChineseSimplifiedCommon()) * * def get_glyph_ranges_cyrillic(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesCyrillic()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_cyrillic", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3076 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesCyrillic()) * * def get_glyph_ranges_thai(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesThai()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_29get_glyph_ranges_thai(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_28get_glyph_ranges_thai[] = "_FontAtlas.get_glyph_ranges_thai(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_29get_glyph_ranges_thai(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_thai (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_28get_glyph_ranges_thai(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_28get_glyph_ranges_thai(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImWchar const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_thai", 0); /* "imgui/core.pyx":3077 * * def get_glyph_ranges_thai(self): * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesThai()) # <<<<<<<<<<<<<< * * def get_glyph_ranges_vietnamese(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetGlyphRangesThai(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3077, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3076 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesCyrillic()) * * def get_glyph_ranges_thai(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesThai()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_thai", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3079 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesThai()) * * def get_glyph_ranges_vietnamese(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesVietnamese()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_31get_glyph_ranges_vietnamese(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_30get_glyph_ranges_vietnamese[] = "_FontAtlas.get_glyph_ranges_vietnamese(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_31get_glyph_ranges_vietnamese(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_vietnamese (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_30get_glyph_ranges_vietnamese(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_30get_glyph_ranges_vietnamese(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImWchar const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_vietnamese", 0); /* "imgui/core.pyx":3080 * * def get_glyph_ranges_vietnamese(self): * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesVietnamese()) # <<<<<<<<<<<<<< * * def get_glyph_ranges_latin(self): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = __pyx_v_self->_ptr->GetGlyphRangesVietnamese(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3080, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3079 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesThai()) * * def get_glyph_ranges_vietnamese(self): # <<<<<<<<<<<<<< * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesVietnamese()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_vietnamese", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3082 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesVietnamese()) * * def get_glyph_ranges_latin(self): # <<<<<<<<<<<<<< * # note: this is a custom glyph range with full latin character set * return _StaticGlyphRanges.from_ptr(_LATIN_ALL) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_33get_glyph_ranges_latin(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_32get_glyph_ranges_latin[] = "_FontAtlas.get_glyph_ranges_latin(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_33get_glyph_ranges_latin(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_glyph_ranges_latin (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_32get_glyph_ranges_latin(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_32get_glyph_ranges_latin(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_glyph_ranges_latin", 0); /* "imgui/core.pyx":3084 * def get_glyph_ranges_latin(self): * # note: this is a custom glyph range with full latin character set * return _StaticGlyphRanges.from_ptr(_LATIN_ALL) # <<<<<<<<<<<<<< * * def get_tex_data_as_alpha8(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr(__pyx_v_5imgui_4core__LATIN_ALL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3082 * return _StaticGlyphRanges.from_ptr(self._ptr.GetGlyphRangesVietnamese()) * * def get_glyph_ranges_latin(self): # <<<<<<<<<<<<<< * # note: this is a custom glyph range with full latin character set * return _StaticGlyphRanges.from_ptr(_LATIN_ALL) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._FontAtlas.get_glyph_ranges_latin", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3086 * return _StaticGlyphRanges.from_ptr(_LATIN_ALL) * * def get_tex_data_as_alpha8(self): # <<<<<<<<<<<<<< * self._require_pointer() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_35get_tex_data_as_alpha8(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_34get_tex_data_as_alpha8[] = "_FontAtlas.get_tex_data_as_alpha8(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_35get_tex_data_as_alpha8(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_tex_data_as_alpha8 (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_34get_tex_data_as_alpha8(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_34get_tex_data_as_alpha8(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { int __pyx_v_width; int __pyx_v_height; unsigned char *__pyx_v_pixels; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_tex_data_as_alpha8", 0); /* "imgui/core.pyx":3087 * * def get_tex_data_as_alpha8(self): * self._require_pointer() # <<<<<<<<<<<<<< * * cdef int width */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3093 * cdef unsigned char* pixels * * self._ptr.GetTexDataAsAlpha8(&pixels, &width, &height) # <<<<<<<<<<<<<< * * return width, height, bytes(pixels[:width*height]) */ try { __pyx_v_self->_ptr->GetTexDataAsAlpha8((&__pyx_v_pixels), (&__pyx_v_width), (&__pyx_v_height), NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3093, __pyx_L1_error) } /* "imgui/core.pyx":3095 * self._ptr.GetTexDataAsAlpha8(&pixels, &width, &height) * * return width, height, bytes(pixels[:width*height]) # <<<<<<<<<<<<<< * * def get_tex_data_as_rgba32(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyBytes_FromStringAndSize(((const char*)__pyx_v_pixels) + 0, (__pyx_v_width * __pyx_v_height) - 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyBytes_Type)), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_4); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":3086 * return _StaticGlyphRanges.from_ptr(_LATIN_ALL) * * def get_tex_data_as_alpha8(self): # <<<<<<<<<<<<<< * self._require_pointer() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._FontAtlas.get_tex_data_as_alpha8", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3097 * return width, height, bytes(pixels[:width*height]) * * def get_tex_data_as_rgba32(self): # <<<<<<<<<<<<<< * self._require_pointer() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_37get_tex_data_as_rgba32(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_36get_tex_data_as_rgba32[] = "_FontAtlas.get_tex_data_as_rgba32(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_37get_tex_data_as_rgba32(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_tex_data_as_rgba32 (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_36get_tex_data_as_rgba32(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_36get_tex_data_as_rgba32(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { int __pyx_v_width; int __pyx_v_height; unsigned char *__pyx_v_pixels; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_tex_data_as_rgba32", 0); /* "imgui/core.pyx":3098 * * def get_tex_data_as_rgba32(self): * self._require_pointer() # <<<<<<<<<<<<<< * * cdef int width */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3103 * cdef int height * cdef unsigned char* pixels * self._ptr.GetTexDataAsRGBA32(&pixels, &width, &height) # <<<<<<<<<<<<<< * * return width, height, bytes(pixels[:width*height*4]) */ try { __pyx_v_self->_ptr->GetTexDataAsRGBA32((&__pyx_v_pixels), (&__pyx_v_width), (&__pyx_v_height), NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3103, __pyx_L1_error) } /* "imgui/core.pyx":3105 * self._ptr.GetTexDataAsRGBA32(&pixels, &width, &height) * * return width, height, bytes(pixels[:width*height*4]) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyBytes_FromStringAndSize(((const char*)__pyx_v_pixels) + 0, ((__pyx_v_width * __pyx_v_height) * 4) - 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyBytes_Type)), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_4); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":3097 * return width, height, bytes(pixels[:width*height]) * * def get_tex_data_as_rgba32(self): # <<<<<<<<<<<<<< * self._require_pointer() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._FontAtlas.get_tex_data_as_rgba32", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3108 * * @property * def texture_id(self): # <<<<<<<<<<<<<< * """ * Note: difference in mapping (maps actual TexID and not TextureID) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_10texture_id_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_10texture_id_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_10texture_id___get__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_10texture_id___get__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3116 * * """ * return self._ptr.TexID # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self->_ptr->TexID)); __pyx_r = ((PyObject *)__pyx_v_self->_ptr->TexID); goto __pyx_L0; /* "imgui/core.pyx":3108 * * @property * def texture_id(self): # <<<<<<<<<<<<<< * """ * Note: difference in mapping (maps actual TexID and not TextureID) */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3137 * * @texture_id.setter * def texture_id(self, value): # <<<<<<<<<<<<<< * get_current_context()._keepalive_cache.append(value) * self._ptr.TexID = value */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_10_FontAtlas_10texture_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_10_FontAtlas_10texture_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_10texture_id_2__set__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_10_FontAtlas_10texture_id_2__set__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3138 * @texture_id.setter * def texture_id(self, value): * get_current_context()._keepalive_cache.append(value) # <<<<<<<<<<<<<< * self._ptr.TexID = value * */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_get_current_context); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_keepalive_cache); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_v_value); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 3138, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3139 * def texture_id(self, value): * get_current_context()._keepalive_cache.append(value) * self._ptr.TexID = value # <<<<<<<<<<<<<< * * cdef class _IO(object): */ __pyx_v_self->_ptr->TexID = ((void *)__pyx_v_value); /* "imgui/core.pyx":3137 * * @texture_id.setter * def texture_id(self, value): # <<<<<<<<<<<<<< * get_current_context()._keepalive_cache.append(value) * self._ptr.TexID = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._FontAtlas.texture_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3120 * * @property * def texture_width(self): # <<<<<<<<<<<<<< * return self._ptr.TexWidth * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_13texture_width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_13texture_width_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_13texture_width___get__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_13texture_width___get__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3121 * @property * def texture_width(self): * return self._ptr.TexWidth # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->_ptr->TexWidth)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3120 * * @property * def texture_width(self): # <<<<<<<<<<<<<< * return self._ptr.TexWidth * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._FontAtlas.texture_width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3124 * * @property * def texture_height(self): # <<<<<<<<<<<<<< * return self._ptr.TexHeight * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_14texture_height_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_14texture_height_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_14texture_height___get__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_14texture_height___get__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3125 * @property * def texture_height(self): * return self._ptr.TexHeight # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->_ptr->TexHeight)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3124 * * @property * def texture_height(self): # <<<<<<<<<<<<<< * return self._ptr.TexHeight * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._FontAtlas.texture_height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3128 * * @property * def texture_desired_width(self): # <<<<<<<<<<<<<< * return self._ptr.TexDesiredWidth * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_21texture_desired_width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_21texture_desired_width_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_21texture_desired_width___get__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_21texture_desired_width___get__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3129 * @property * def texture_desired_width(self): * return self._ptr.TexDesiredWidth # <<<<<<<<<<<<<< * * @texture_desired_width.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->_ptr->TexDesiredWidth)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3128 * * @property * def texture_desired_width(self): # <<<<<<<<<<<<<< * return self._ptr.TexDesiredWidth * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._FontAtlas.texture_desired_width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3132 * * @texture_desired_width.setter * def texture_desired_width(self, int value): # <<<<<<<<<<<<<< * self._ptr.TexDesiredWidth = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_10_FontAtlas_21texture_desired_width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_10_FontAtlas_21texture_desired_width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { int __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyInt_As_int(__pyx_arg_value); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3132, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._FontAtlas.texture_desired_width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_21texture_desired_width_2__set__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self), ((int)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_10_FontAtlas_21texture_desired_width_2__set__(struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self, int __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3133 * @texture_desired_width.setter * def texture_desired_width(self, int value): * self._ptr.TexDesiredWidth = value # <<<<<<<<<<<<<< * * */ __pyx_v_self->_ptr->TexDesiredWidth = __pyx_v_value; /* "imgui/core.pyx":3132 * * @texture_desired_width.setter * def texture_desired_width(self, int value): # <<<<<<<<<<<<<< * self._ptr.TexDesiredWidth = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_39__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_38__reduce_cython__[] = "_FontAtlas.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_39__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_38__reduce_cython__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_38__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._FontAtlas.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_41__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_10_FontAtlas_40__setstate_cython__[] = "_FontAtlas.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_10_FontAtlas_41__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10_FontAtlas_40__setstate_cython__(((struct __pyx_obj_5imgui_4core__FontAtlas *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10_FontAtlas_40__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__39, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._FontAtlas.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3160 * cdef object _keep_logfile_alive * * def __init__(self): # <<<<<<<<<<<<<< * * self._ptr = &cimgui.GetIO() */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_3_IO___init__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO___init__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_FakeReference __pyx_t_1; PyObject *__pyx_t_2 = NULL; ImGuiContext *__pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; int __pyx_t_6; uintptr_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); /* "imgui/core.pyx":3162 * def __init__(self): * * self._ptr = &cimgui.GetIO() # <<<<<<<<<<<<<< * self._fonts = _FontAtlas.from_ptr(self._ptr.Fonts) * */ try { __pyx_t_1 = ImGui::GetIO(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3162, __pyx_L1_error) } __pyx_v_self->_ptr = (&__pyx_t_1); /* "imgui/core.pyx":3163 * * self._ptr = &cimgui.GetIO() * self._fonts = _FontAtlas.from_ptr(self._ptr.Fonts) # <<<<<<<<<<<<<< * * self._keep_ini_alive = None */ __pyx_t_2 = __pyx_f_5imgui_4core_10_FontAtlas_from_ptr(__pyx_v_self->_ptr->Fonts); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF(__pyx_v_self->_fonts); __Pyx_DECREF(__pyx_v_self->_fonts); __pyx_v_self->_fonts = __pyx_t_2; __pyx_t_2 = 0; /* "imgui/core.pyx":3165 * self._fonts = _FontAtlas.from_ptr(self._ptr.Fonts) * * self._keep_ini_alive = None # <<<<<<<<<<<<<< * self._keep_logfile_alive = None * */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->_keep_ini_alive); __Pyx_DECREF(__pyx_v_self->_keep_ini_alive); __pyx_v_self->_keep_ini_alive = Py_None; /* "imgui/core.pyx":3166 * * self._keep_ini_alive = None * self._keep_logfile_alive = None # <<<<<<<<<<<<<< * * if cimgui.GetCurrentContext() not in _io_clipboard: */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->_keep_logfile_alive); __Pyx_DECREF(__pyx_v_self->_keep_logfile_alive); __pyx_v_self->_keep_logfile_alive = Py_None; /* "imgui/core.pyx":3168 * self._keep_logfile_alive = None * * if cimgui.GetCurrentContext() not in _io_clipboard: # <<<<<<<<<<<<<< * _io_clipboard[cimgui.GetCurrentContext()] = {'_get_clipboard_text_fn': None, * '_set_clipboard_text_fn': None} */ try { __pyx_t_3 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3168, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_io_clipboard); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_t_2, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 3168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = (__pyx_t_5 != 0); if (__pyx_t_6) { /* "imgui/core.pyx":3169 * * if cimgui.GetCurrentContext() not in _io_clipboard: * _io_clipboard[cimgui.GetCurrentContext()] = {'_get_clipboard_text_fn': None, # <<<<<<<<<<<<<< * '_set_clipboard_text_fn': None} * */ __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_get_clipboard_text_fn, Py_None) < 0) __PYX_ERR(0, 3169, __pyx_L1_error) /* "imgui/core.pyx":3170 * if cimgui.GetCurrentContext() not in _io_clipboard: * _io_clipboard[cimgui.GetCurrentContext()] = {'_get_clipboard_text_fn': None, * '_set_clipboard_text_fn': None} # <<<<<<<<<<<<<< * * # ... maping of input properties ... */ if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_set_clipboard_text_fn, Py_None) < 0) __PYX_ERR(0, 3169, __pyx_L1_error) /* "imgui/core.pyx":3169 * * if cimgui.GetCurrentContext() not in _io_clipboard: * _io_clipboard[cimgui.GetCurrentContext()] = {'_get_clipboard_text_fn': None, # <<<<<<<<<<<<<< * '_set_clipboard_text_fn': None} * */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_io_clipboard); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); try { __pyx_t_3 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3169, __pyx_L1_error) } __pyx_t_7 = ((uintptr_t)__pyx_t_3); if (unlikely(__Pyx_SetItemInt(__pyx_t_2, __pyx_t_7, __pyx_t_4, uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1) < 0)) __PYX_ERR(0, 3169, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":3168 * self._keep_logfile_alive = None * * if cimgui.GetCurrentContext() not in _io_clipboard: # <<<<<<<<<<<<<< * _io_clipboard[cimgui.GetCurrentContext()] = {'_get_clipboard_text_fn': None, * '_set_clipboard_text_fn': None} */ } /* "imgui/core.pyx":3160 * cdef object _keep_logfile_alive * * def __init__(self): # <<<<<<<<<<<<<< * * self._ptr = &cimgui.GetIO() */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._IO.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3174 * # ... maping of input properties ... * @property * def config_flags(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigFlags * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_12config_flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_12config_flags_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_12config_flags___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_12config_flags___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3175 * @property * def config_flags(self): * return self._ptr.ConfigFlags # <<<<<<<<<<<<<< * * @config_flags.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiConfigFlags(__pyx_v_self->_ptr->ConfigFlags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3174 * # ... maping of input properties ... * @property * def config_flags(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigFlags * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.config_flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3178 * * @config_flags.setter * def config_flags(self, cimgui.ImGuiConfigFlags value): # <<<<<<<<<<<<<< * self._ptr.ConfigFlags = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_12config_flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_12config_flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { ImGuiConfigFlags __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyInt_As_ImGuiConfigFlags(__pyx_arg_value); if (unlikely((__pyx_v_value == ((ImGuiConfigFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3178, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.config_flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_12config_flags_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((ImGuiConfigFlags)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_12config_flags_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, ImGuiConfigFlags __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3179 * @config_flags.setter * def config_flags(self, cimgui.ImGuiConfigFlags value): * self._ptr.ConfigFlags = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ConfigFlags = __pyx_v_value; /* "imgui/core.pyx":3178 * * @config_flags.setter * def config_flags(self, cimgui.ImGuiConfigFlags value): # <<<<<<<<<<<<<< * self._ptr.ConfigFlags = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3182 * * @property * def backend_flags(self): # <<<<<<<<<<<<<< * return self._ptr.BackendFlags * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_13backend_flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_13backend_flags_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_13backend_flags___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_13backend_flags___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3183 * @property * def backend_flags(self): * return self._ptr.BackendFlags # <<<<<<<<<<<<<< * * @backend_flags.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiBackendFlags(__pyx_v_self->_ptr->BackendFlags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3182 * * @property * def backend_flags(self): # <<<<<<<<<<<<<< * return self._ptr.BackendFlags * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.backend_flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3186 * * @backend_flags.setter * def backend_flags(self, cimgui.ImGuiBackendFlags value): # <<<<<<<<<<<<<< * self._ptr.BackendFlags = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_13backend_flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_13backend_flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { ImGuiBackendFlags __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyInt_As_ImGuiBackendFlags(__pyx_arg_value); if (unlikely((__pyx_v_value == ((ImGuiBackendFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3186, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.backend_flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_13backend_flags_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((ImGuiBackendFlags)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_13backend_flags_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, ImGuiBackendFlags __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3187 * @backend_flags.setter * def backend_flags(self, cimgui.ImGuiBackendFlags value): * self._ptr.BackendFlags = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->BackendFlags = __pyx_v_value; /* "imgui/core.pyx":3186 * * @backend_flags.setter * def backend_flags(self, cimgui.ImGuiBackendFlags value): # <<<<<<<<<<<<<< * self._ptr.BackendFlags = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3190 * * @property * def display_size(self): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DisplaySize) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_12display_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_12display_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_12display_size___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_12display_size___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3191 * @property * def display_size(self): * return _cast_ImVec2_tuple(self._ptr.DisplaySize) # <<<<<<<<<<<<<< * * @display_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->DisplaySize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3190 * * @property * def display_size(self): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DisplaySize) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.display_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3194 * * @display_size.setter * def display_size(self, value): # <<<<<<<<<<<<<< * self._ptr.DisplaySize = _cast_tuple_ImVec2(value) * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_12display_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_12display_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_12display_size_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_12display_size_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3195 * @display_size.setter * def display_size(self, value): * self._ptr.DisplaySize = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3195, __pyx_L1_error) __pyx_v_self->_ptr->DisplaySize = __pyx_t_1; /* "imgui/core.pyx":3194 * * @display_size.setter * def display_size(self, value): # <<<<<<<<<<<<<< * self._ptr.DisplaySize = _cast_tuple_ImVec2(value) * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._IO.display_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3198 * * @property * def delta_time(self): # <<<<<<<<<<<<<< * return self._ptr.DeltaTime * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_10delta_time_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_10delta_time_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_10delta_time___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_10delta_time___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3199 * @property * def delta_time(self): * return self._ptr.DeltaTime # <<<<<<<<<<<<<< * * @delta_time.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->DeltaTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3198 * * @property * def delta_time(self): # <<<<<<<<<<<<<< * return self._ptr.DeltaTime * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.delta_time.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3202 * * @delta_time.setter * def delta_time(self, float time): # <<<<<<<<<<<<<< * self._ptr.DeltaTime = time * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_10delta_time_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_time); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_10delta_time_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_time) { float __pyx_v_time; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_time); { __pyx_v_time = __pyx_PyFloat_AsFloat(__pyx_arg_time); if (unlikely((__pyx_v_time == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3202, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.delta_time.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_10delta_time_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_time)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_10delta_time_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_time) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3203 * @delta_time.setter * def delta_time(self, float time): * self._ptr.DeltaTime = time # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->DeltaTime = __pyx_v_time; /* "imgui/core.pyx":3202 * * @delta_time.setter * def delta_time(self, float time): # <<<<<<<<<<<<<< * self._ptr.DeltaTime = time * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3206 * * @property * def ini_saving_rate(self): # <<<<<<<<<<<<<< * return self._ptr.IniSavingRate * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_15ini_saving_rate_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_15ini_saving_rate_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_15ini_saving_rate___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_15ini_saving_rate___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3207 * @property * def ini_saving_rate(self): * return self._ptr.IniSavingRate # <<<<<<<<<<<<<< * * @ini_saving_rate.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->IniSavingRate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3206 * * @property * def ini_saving_rate(self): # <<<<<<<<<<<<<< * return self._ptr.IniSavingRate * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.ini_saving_rate.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3210 * * @ini_saving_rate.setter * def ini_saving_rate(self, float value): # <<<<<<<<<<<<<< * self._ptr.IniSavingRate = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_15ini_saving_rate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_15ini_saving_rate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3210, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.ini_saving_rate.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_15ini_saving_rate_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_15ini_saving_rate_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3211 * @ini_saving_rate.setter * def ini_saving_rate(self, float value): * self._ptr.IniSavingRate = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->IniSavingRate = __pyx_v_value; /* "imgui/core.pyx":3210 * * @ini_saving_rate.setter * def ini_saving_rate(self, float value): # <<<<<<<<<<<<<< * self._ptr.IniSavingRate = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3214 * * @property * def log_file_name(self): # <<<<<<<<<<<<<< * return _from_bytes(self._ptr.LogFilename) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_13log_file_name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_13log_file_name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_13log_file_name___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_13log_file_name___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3215 * @property * def log_file_name(self): * return _from_bytes(self._ptr.LogFilename) # <<<<<<<<<<<<<< * * @log_file_name.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->_ptr->LogFilename); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3214 * * @property * def log_file_name(self): # <<<<<<<<<<<<<< * return _from_bytes(self._ptr.LogFilename) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._IO.log_file_name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3218 * * @log_file_name.setter * def log_file_name(self, value): # <<<<<<<<<<<<<< * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`log_file_name` must be a string or None" * value_bytes = None */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_13log_file_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_13log_file_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_13log_file_name_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_13log_file_name_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value) { PyObject *__pyx_v_value_bytes = NULL; int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3219 * @log_file_name.setter * def log_file_name(self, value): * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`log_file_name` must be a string or None" # <<<<<<<<<<<<<< * value_bytes = None * if value is None: value_bytes = b'' */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { __pyx_t_2 = (__pyx_v_value == Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L3_bool_binop_done; } __pyx_t_3 = PyString_Check(__pyx_v_value); __pyx_t_2 = (__pyx_t_3 != 0); if (!__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L3_bool_binop_done; } __pyx_t_2 = PyBytes_Check(__pyx_v_value); __pyx_t_3 = (__pyx_t_2 != 0); __pyx_t_1 = __pyx_t_3; __pyx_L3_bool_binop_done:; if (unlikely(!__pyx_t_1)) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_log_file_name_must_be_a_string); __PYX_ERR(0, 3219, __pyx_L1_error) } } #endif /* "imgui/core.pyx":3220 * def log_file_name(self, value): * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`log_file_name` must be a string or None" * value_bytes = None # <<<<<<<<<<<<<< * if value is None: value_bytes = b'' * elif isinstance(value, str): value_bytes = _bytes(value) */ __Pyx_INCREF(Py_None); __pyx_v_value_bytes = Py_None; /* "imgui/core.pyx":3221 * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`log_file_name` must be a string or None" * value_bytes = None * if value is None: value_bytes = b'' # <<<<<<<<<<<<<< * elif isinstance(value, str): value_bytes = _bytes(value) * else: value_bytes = value */ __pyx_t_1 = (__pyx_v_value == Py_None); __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { __Pyx_INCREF(__pyx_kp_b__40); __Pyx_DECREF_SET(__pyx_v_value_bytes, __pyx_kp_b__40); goto __pyx_L6; } /* "imgui/core.pyx":3222 * value_bytes = None * if value is None: value_bytes = b'' * elif isinstance(value, str): value_bytes = _bytes(value) # <<<<<<<<<<<<<< * else: value_bytes = value * */ __pyx_t_3 = PyString_Check(__pyx_v_value); __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { if (!(likely(PyString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 3222, __pyx_L1_error) __pyx_t_4 = __pyx_f_5imgui_4core__bytes(((PyObject*)__pyx_v_value)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_value_bytes, __pyx_t_4); __pyx_t_4 = 0; goto __pyx_L6; } /* "imgui/core.pyx":3223 * if value is None: value_bytes = b'' * elif isinstance(value, str): value_bytes = _bytes(value) * else: value_bytes = value # <<<<<<<<<<<<<< * * self._keep_logfile_alive = value_bytes */ /*else*/ { __Pyx_INCREF(__pyx_v_value); __Pyx_DECREF_SET(__pyx_v_value_bytes, __pyx_v_value); } __pyx_L6:; /* "imgui/core.pyx":3225 * else: value_bytes = value * * self._keep_logfile_alive = value_bytes # <<<<<<<<<<<<<< * self._ptr.LogFilename = value_bytes * */ __Pyx_INCREF(__pyx_v_value_bytes); __Pyx_GIVEREF(__pyx_v_value_bytes); __Pyx_GOTREF(__pyx_v_self->_keep_logfile_alive); __Pyx_DECREF(__pyx_v_self->_keep_logfile_alive); __pyx_v_self->_keep_logfile_alive = __pyx_v_value_bytes; /* "imgui/core.pyx":3226 * * self._keep_logfile_alive = value_bytes * self._ptr.LogFilename = value_bytes # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_value_bytes); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 3226, __pyx_L1_error) __pyx_v_self->_ptr->LogFilename = __pyx_t_5; /* "imgui/core.pyx":3218 * * @log_file_name.setter * def log_file_name(self, value): # <<<<<<<<<<<<<< * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`log_file_name` must be a string or None" * value_bytes = None */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._IO.log_file_name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_value_bytes); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3229 * * @property * def ini_file_name(self): # <<<<<<<<<<<<<< * return _from_bytes(self._ptr.IniFilename) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_13ini_file_name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_13ini_file_name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_13ini_file_name___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_13ini_file_name___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3230 * @property * def ini_file_name(self): * return _from_bytes(self._ptr.IniFilename) # <<<<<<<<<<<<<< * * @ini_file_name.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->_ptr->IniFilename); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3229 * * @property * def ini_file_name(self): # <<<<<<<<<<<<<< * return _from_bytes(self._ptr.IniFilename) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._IO.ini_file_name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3233 * * @ini_file_name.setter * def ini_file_name(self, value): # <<<<<<<<<<<<<< * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`ini_file_name` must be a string or None" * value_bytes = None */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_13ini_file_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_13ini_file_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_13ini_file_name_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_13ini_file_name_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value) { PyObject *__pyx_v_value_bytes = NULL; int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3234 * @ini_file_name.setter * def ini_file_name(self, value): * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`ini_file_name` must be a string or None" # <<<<<<<<<<<<<< * value_bytes = None * if value is None: value_bytes = b'' */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { __pyx_t_2 = (__pyx_v_value == Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L3_bool_binop_done; } __pyx_t_3 = PyString_Check(__pyx_v_value); __pyx_t_2 = (__pyx_t_3 != 0); if (!__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L3_bool_binop_done; } __pyx_t_2 = PyBytes_Check(__pyx_v_value); __pyx_t_3 = (__pyx_t_2 != 0); __pyx_t_1 = __pyx_t_3; __pyx_L3_bool_binop_done:; if (unlikely(!__pyx_t_1)) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_ini_file_name_must_be_a_string); __PYX_ERR(0, 3234, __pyx_L1_error) } } #endif /* "imgui/core.pyx":3235 * def ini_file_name(self, value): * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`ini_file_name` must be a string or None" * value_bytes = None # <<<<<<<<<<<<<< * if value is None: value_bytes = b'' * elif isinstance(value, str): value_bytes = _bytes(value) */ __Pyx_INCREF(Py_None); __pyx_v_value_bytes = Py_None; /* "imgui/core.pyx":3236 * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`ini_file_name` must be a string or None" * value_bytes = None * if value is None: value_bytes = b'' # <<<<<<<<<<<<<< * elif isinstance(value, str): value_bytes = _bytes(value) * else: value_bytes = value */ __pyx_t_1 = (__pyx_v_value == Py_None); __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { __Pyx_INCREF(__pyx_kp_b__40); __Pyx_DECREF_SET(__pyx_v_value_bytes, __pyx_kp_b__40); goto __pyx_L6; } /* "imgui/core.pyx":3237 * value_bytes = None * if value is None: value_bytes = b'' * elif isinstance(value, str): value_bytes = _bytes(value) # <<<<<<<<<<<<<< * else: value_bytes = value * */ __pyx_t_3 = PyString_Check(__pyx_v_value); __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { if (!(likely(PyString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 3237, __pyx_L1_error) __pyx_t_4 = __pyx_f_5imgui_4core__bytes(((PyObject*)__pyx_v_value)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_value_bytes, __pyx_t_4); __pyx_t_4 = 0; goto __pyx_L6; } /* "imgui/core.pyx":3238 * if value is None: value_bytes = b'' * elif isinstance(value, str): value_bytes = _bytes(value) * else: value_bytes = value # <<<<<<<<<<<<<< * * self._keep_ini_alive = value_bytes */ /*else*/ { __Pyx_INCREF(__pyx_v_value); __Pyx_DECREF_SET(__pyx_v_value_bytes, __pyx_v_value); } __pyx_L6:; /* "imgui/core.pyx":3240 * else: value_bytes = value * * self._keep_ini_alive = value_bytes # <<<<<<<<<<<<<< * self._ptr.IniFilename = value_bytes * */ __Pyx_INCREF(__pyx_v_value_bytes); __Pyx_GIVEREF(__pyx_v_value_bytes); __Pyx_GOTREF(__pyx_v_self->_keep_ini_alive); __Pyx_DECREF(__pyx_v_self->_keep_ini_alive); __pyx_v_self->_keep_ini_alive = __pyx_v_value_bytes; /* "imgui/core.pyx":3241 * * self._keep_ini_alive = value_bytes * self._ptr.IniFilename = value_bytes # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_value_bytes); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 3241, __pyx_L1_error) __pyx_v_self->_ptr->IniFilename = __pyx_t_5; /* "imgui/core.pyx":3233 * * @ini_file_name.setter * def ini_file_name(self, value): # <<<<<<<<<<<<<< * assert (value is None or isinstance(value, str) or isinstance(value, bytes)), "`ini_file_name` must be a string or None" * value_bytes = None */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._IO.ini_file_name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_value_bytes); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3244 * * @property * def mouse_double_click_time(self): # <<<<<<<<<<<<<< * return self._ptr.MouseDoubleClickTime * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_23mouse_double_click_time_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_23mouse_double_click_time_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_23mouse_double_click_time___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_23mouse_double_click_time___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3245 * @property * def mouse_double_click_time(self): * return self._ptr.MouseDoubleClickTime # <<<<<<<<<<<<<< * * @mouse_double_click_time.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->MouseDoubleClickTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3244 * * @property * def mouse_double_click_time(self): # <<<<<<<<<<<<<< * return self._ptr.MouseDoubleClickTime * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.mouse_double_click_time.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3248 * * @mouse_double_click_time.setter * def mouse_double_click_time(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseDoubleClickTime = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_23mouse_double_click_time_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_23mouse_double_click_time_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3248, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.mouse_double_click_time.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_23mouse_double_click_time_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_23mouse_double_click_time_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3249 * @mouse_double_click_time.setter * def mouse_double_click_time(self, float value): * self._ptr.MouseDoubleClickTime = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->MouseDoubleClickTime = __pyx_v_value; /* "imgui/core.pyx":3248 * * @mouse_double_click_time.setter * def mouse_double_click_time(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseDoubleClickTime = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3252 * * @property * def mouse_double_click_max_distance(self): # <<<<<<<<<<<<<< * return self._ptr.MouseDoubleClickMaxDist * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_31mouse_double_click_max_distance_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_31mouse_double_click_max_distance_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_31mouse_double_click_max_distance___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_31mouse_double_click_max_distance___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3253 * @property * def mouse_double_click_max_distance(self): * return self._ptr.MouseDoubleClickMaxDist # <<<<<<<<<<<<<< * * @mouse_double_click_max_distance.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->MouseDoubleClickMaxDist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3252 * * @property * def mouse_double_click_max_distance(self): # <<<<<<<<<<<<<< * return self._ptr.MouseDoubleClickMaxDist * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.mouse_double_click_max_distance.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3256 * * @mouse_double_click_max_distance.setter * def mouse_double_click_max_distance(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseDoubleClickMaxDist = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_31mouse_double_click_max_distance_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_31mouse_double_click_max_distance_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3256, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.mouse_double_click_max_distance.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_31mouse_double_click_max_distance_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_31mouse_double_click_max_distance_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3257 * @mouse_double_click_max_distance.setter * def mouse_double_click_max_distance(self, float value): * self._ptr.MouseDoubleClickMaxDist = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->MouseDoubleClickMaxDist = __pyx_v_value; /* "imgui/core.pyx":3256 * * @mouse_double_click_max_distance.setter * def mouse_double_click_max_distance(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseDoubleClickMaxDist = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3260 * * @property * def mouse_drag_threshold(self): # <<<<<<<<<<<<<< * return self._ptr.MouseDragThreshold * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_20mouse_drag_threshold_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_20mouse_drag_threshold_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_20mouse_drag_threshold___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_20mouse_drag_threshold___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3261 * @property * def mouse_drag_threshold(self): * return self._ptr.MouseDragThreshold # <<<<<<<<<<<<<< * * @mouse_drag_threshold.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->MouseDragThreshold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3260 * * @property * def mouse_drag_threshold(self): # <<<<<<<<<<<<<< * return self._ptr.MouseDragThreshold * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.mouse_drag_threshold.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3264 * * @mouse_drag_threshold.setter * def mouse_drag_threshold(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseDragThreshold = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_20mouse_drag_threshold_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_20mouse_drag_threshold_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3264, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.mouse_drag_threshold.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_20mouse_drag_threshold_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_20mouse_drag_threshold_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3265 * @mouse_drag_threshold.setter * def mouse_drag_threshold(self, float value): * self._ptr.MouseDragThreshold = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->MouseDragThreshold = __pyx_v_value; /* "imgui/core.pyx":3264 * * @mouse_drag_threshold.setter * def mouse_drag_threshold(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseDragThreshold = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3268 * * @property * def key_map(self): # <<<<<<<<<<<<<< * cdef cvarray key_map = cvarray( * shape=(enums.ImGuiKey_COUNT,), */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_7key_map_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_7key_map_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_7key_map___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_7key_map___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { struct __pyx_array_obj *__pyx_v_key_map = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3270 * def key_map(self): * cdef cvarray key_map = cvarray( * shape=(enums.ImGuiKey_COUNT,), # <<<<<<<<<<<<<< * format='i', * itemsize=sizeof(int), */ __pyx_t_1 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_COUNT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_shape, __pyx_t_3) < 0) __PYX_ERR(0, 3270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_format, __pyx_n_s_i) < 0) __PYX_ERR(0, 3270, __pyx_L1_error) /* "imgui/core.pyx":3272 * shape=(enums.ImGuiKey_COUNT,), * format='i', * itemsize=sizeof(int), # <<<<<<<<<<<<<< * allocate_buffer=False * ) */ __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_itemsize, __pyx_t_3) < 0) __PYX_ERR(0, 3270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":3273 * format='i', * itemsize=sizeof(int), * allocate_buffer=False # <<<<<<<<<<<<<< * ) * key_map.data = self._ptr.KeyMap */ if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_allocate_buffer, Py_False) < 0) __PYX_ERR(0, 3270, __pyx_L1_error) /* "imgui/core.pyx":3269 * @property * def key_map(self): * cdef cvarray key_map = cvarray( # <<<<<<<<<<<<<< * shape=(enums.ImGuiKey_COUNT,), * format='i', */ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_key_map = ((struct __pyx_array_obj *)__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":3275 * allocate_buffer=False * ) * key_map.data = self._ptr.KeyMap # <<<<<<<<<<<<<< * return key_map * */ __pyx_v_key_map->data = ((char *)__pyx_v_self->_ptr->KeyMap); /* "imgui/core.pyx":3276 * ) * key_map.data = self._ptr.KeyMap * return key_map # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_key_map)); __pyx_r = ((PyObject *)__pyx_v_key_map); goto __pyx_L0; /* "imgui/core.pyx":3268 * * @property * def key_map(self): # <<<<<<<<<<<<<< * cdef cvarray key_map = cvarray( * shape=(enums.ImGuiKey_COUNT,), */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._IO.key_map.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_key_map); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3279 * * @property * def key_repeat_delay(self): # <<<<<<<<<<<<<< * return self._ptr.KeyRepeatDelay * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_16key_repeat_delay_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_16key_repeat_delay_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_16key_repeat_delay___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_16key_repeat_delay___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3280 * @property * def key_repeat_delay(self): * return self._ptr.KeyRepeatDelay # <<<<<<<<<<<<<< * * @key_repeat_delay.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->KeyRepeatDelay); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3279 * * @property * def key_repeat_delay(self): # <<<<<<<<<<<<<< * return self._ptr.KeyRepeatDelay * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.key_repeat_delay.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3283 * * @key_repeat_delay.setter * def key_repeat_delay(self, float value): # <<<<<<<<<<<<<< * self._ptr.KeyRepeatDelay = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_16key_repeat_delay_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_16key_repeat_delay_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3283, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.key_repeat_delay.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_16key_repeat_delay_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_16key_repeat_delay_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3284 * @key_repeat_delay.setter * def key_repeat_delay(self, float value): * self._ptr.KeyRepeatDelay = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->KeyRepeatDelay = __pyx_v_value; /* "imgui/core.pyx":3283 * * @key_repeat_delay.setter * def key_repeat_delay(self, float value): # <<<<<<<<<<<<<< * self._ptr.KeyRepeatDelay = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3287 * * @property * def key_repeat_rate(self): # <<<<<<<<<<<<<< * return self._ptr.KeyRepeatRate * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_15key_repeat_rate_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_15key_repeat_rate_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_15key_repeat_rate___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_15key_repeat_rate___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3288 * @property * def key_repeat_rate(self): * return self._ptr.KeyRepeatRate # <<<<<<<<<<<<<< * * @key_repeat_rate.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->KeyRepeatRate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3287 * * @property * def key_repeat_rate(self): # <<<<<<<<<<<<<< * return self._ptr.KeyRepeatRate * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.key_repeat_rate.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3291 * * @key_repeat_rate.setter * def key_repeat_rate(self, float value): # <<<<<<<<<<<<<< * self._ptr.KeyRepeatRate = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_15key_repeat_rate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_15key_repeat_rate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3291, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.key_repeat_rate.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_15key_repeat_rate_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_15key_repeat_rate_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3292 * @key_repeat_rate.setter * def key_repeat_rate(self, float value): * self._ptr.KeyRepeatRate = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->KeyRepeatRate = __pyx_v_value; /* "imgui/core.pyx":3291 * * @key_repeat_rate.setter * def key_repeat_rate(self, float value): # <<<<<<<<<<<<<< * self._ptr.KeyRepeatRate = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3295 * * @property * def fonts(self): # <<<<<<<<<<<<<< * return self._fonts * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_5fonts_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_5fonts_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_5fonts___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_5fonts___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3296 * @property * def fonts(self): * return self._fonts # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_fonts); __pyx_r = __pyx_v_self->_fonts; goto __pyx_L0; /* "imgui/core.pyx":3295 * * @property * def fonts(self): # <<<<<<<<<<<<<< * return self._fonts * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3299 * * @property * def font_global_scale(self): # <<<<<<<<<<<<<< * return self._ptr.FontGlobalScale * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_17font_global_scale_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_17font_global_scale_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_17font_global_scale___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_17font_global_scale___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3300 * @property * def font_global_scale(self): * return self._ptr.FontGlobalScale # <<<<<<<<<<<<<< * * @font_global_scale.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->FontGlobalScale); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3299 * * @property * def font_global_scale(self): # <<<<<<<<<<<<<< * return self._ptr.FontGlobalScale * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.font_global_scale.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3303 * * @font_global_scale.setter * def font_global_scale(self, float value): # <<<<<<<<<<<<<< * self._ptr.FontGlobalScale = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_17font_global_scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_17font_global_scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3303, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.font_global_scale.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_17font_global_scale_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_17font_global_scale_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3304 * @font_global_scale.setter * def font_global_scale(self, float value): * self._ptr.FontGlobalScale = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->FontGlobalScale = __pyx_v_value; /* "imgui/core.pyx":3303 * * @font_global_scale.setter * def font_global_scale(self, float value): # <<<<<<<<<<<<<< * self._ptr.FontGlobalScale = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3307 * * @property * def font_allow_user_scaling(self): # <<<<<<<<<<<<<< * return self._ptr.FontAllowUserScaling * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_23font_allow_user_scaling_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_23font_allow_user_scaling_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_23font_allow_user_scaling___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_23font_allow_user_scaling___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3308 * @property * def font_allow_user_scaling(self): * return self._ptr.FontAllowUserScaling # <<<<<<<<<<<<<< * * @font_allow_user_scaling.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->FontAllowUserScaling); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3307 * * @property * def font_allow_user_scaling(self): # <<<<<<<<<<<<<< * return self._ptr.FontAllowUserScaling * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.font_allow_user_scaling.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3311 * * @font_allow_user_scaling.setter * def font_allow_user_scaling(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.FontAllowUserScaling = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_23font_allow_user_scaling_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_23font_allow_user_scaling_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3311, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.font_allow_user_scaling.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_23font_allow_user_scaling_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_23font_allow_user_scaling_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3312 * @font_allow_user_scaling.setter * def font_allow_user_scaling(self, cimgui.bool value): * self._ptr.FontAllowUserScaling = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->FontAllowUserScaling = __pyx_v_value; /* "imgui/core.pyx":3311 * * @font_allow_user_scaling.setter * def font_allow_user_scaling(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.FontAllowUserScaling = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3315 * * @property * def display_fb_scale(self): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DisplayFramebufferScale) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_16display_fb_scale_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_16display_fb_scale_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_16display_fb_scale___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_16display_fb_scale___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3316 * @property * def display_fb_scale(self): * return _cast_ImVec2_tuple(self._ptr.DisplayFramebufferScale) # <<<<<<<<<<<<<< * * @display_fb_scale.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->DisplayFramebufferScale); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3315 * * @property * def display_fb_scale(self): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DisplayFramebufferScale) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.display_fb_scale.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3319 * * @display_fb_scale.setter * def display_fb_scale(self, value): # <<<<<<<<<<<<<< * self._ptr.DisplayFramebufferScale = _cast_tuple_ImVec2(value) * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_16display_fb_scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_16display_fb_scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_16display_fb_scale_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_16display_fb_scale_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3320 * @display_fb_scale.setter * def display_fb_scale(self, value): * self._ptr.DisplayFramebufferScale = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * # DEPRECIATED */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3320, __pyx_L1_error) __pyx_v_self->_ptr->DisplayFramebufferScale = __pyx_t_1; /* "imgui/core.pyx":3319 * * @display_fb_scale.setter * def display_fb_scale(self, value): # <<<<<<<<<<<<<< * self._ptr.DisplayFramebufferScale = _cast_tuple_ImVec2(value) * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._IO.display_fb_scale.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3343 * * @property * def config_mac_osx_behaviors(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigMacOSXBehaviors * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_24config_mac_osx_behaviors_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_24config_mac_osx_behaviors_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_24config_mac_osx_behaviors___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_24config_mac_osx_behaviors___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3344 * @property * def config_mac_osx_behaviors(self): * return self._ptr.ConfigMacOSXBehaviors # <<<<<<<<<<<<<< * * @config_mac_osx_behaviors.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->ConfigMacOSXBehaviors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3343 * * @property * def config_mac_osx_behaviors(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigMacOSXBehaviors * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.config_mac_osx_behaviors.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3347 * * @config_mac_osx_behaviors.setter * def config_mac_osx_behaviors(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigMacOSXBehaviors = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_24config_mac_osx_behaviors_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_24config_mac_osx_behaviors_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3347, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.config_mac_osx_behaviors.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_24config_mac_osx_behaviors_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_24config_mac_osx_behaviors_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3348 * @config_mac_osx_behaviors.setter * def config_mac_osx_behaviors(self, cimgui.bool value): * self._ptr.ConfigMacOSXBehaviors = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ConfigMacOSXBehaviors = __pyx_v_value; /* "imgui/core.pyx":3347 * * @config_mac_osx_behaviors.setter * def config_mac_osx_behaviors(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigMacOSXBehaviors = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3351 * * @property * def config_cursor_blink(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigInputTextCursorBlink * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_19config_cursor_blink_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_19config_cursor_blink_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_19config_cursor_blink___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_19config_cursor_blink___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3352 * @property * def config_cursor_blink(self): * return self._ptr.ConfigInputTextCursorBlink # <<<<<<<<<<<<<< * * @config_cursor_blink.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->ConfigInputTextCursorBlink); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3351 * * @property * def config_cursor_blink(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigInputTextCursorBlink * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.config_cursor_blink.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3355 * * @config_cursor_blink.setter * def config_cursor_blink(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigInputTextCursorBlink = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_19config_cursor_blink_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_19config_cursor_blink_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3355, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.config_cursor_blink.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_19config_cursor_blink_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_19config_cursor_blink_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3356 * @config_cursor_blink.setter * def config_cursor_blink(self, cimgui.bool value): * self._ptr.ConfigInputTextCursorBlink = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ConfigInputTextCursorBlink = __pyx_v_value; /* "imgui/core.pyx":3355 * * @config_cursor_blink.setter * def config_cursor_blink(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigInputTextCursorBlink = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3359 * * @property * def config_drag_click_to_input_text(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigDragClickToInputText * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_31config_drag_click_to_input_text_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_31config_drag_click_to_input_text_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_31config_drag_click_to_input_text___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_31config_drag_click_to_input_text___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3360 * @property * def config_drag_click_to_input_text(self): * return self._ptr.ConfigDragClickToInputText # <<<<<<<<<<<<<< * * @config_drag_click_to_input_text.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->ConfigDragClickToInputText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3359 * * @property * def config_drag_click_to_input_text(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigDragClickToInputText * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.config_drag_click_to_input_text.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3363 * * @config_drag_click_to_input_text.setter * def config_drag_click_to_input_text(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigDragClickToInputText = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_31config_drag_click_to_input_text_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_31config_drag_click_to_input_text_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3363, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.config_drag_click_to_input_text.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_31config_drag_click_to_input_text_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_31config_drag_click_to_input_text_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3364 * @config_drag_click_to_input_text.setter * def config_drag_click_to_input_text(self, cimgui.bool value): * self._ptr.ConfigDragClickToInputText = value # <<<<<<<<<<<<<< * * # RENAMED from config_resize_windows_from_edges */ __pyx_v_self->_ptr->ConfigDragClickToInputText = __pyx_v_value; /* "imgui/core.pyx":3363 * * @config_drag_click_to_input_text.setter * def config_drag_click_to_input_text(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigDragClickToInputText = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3368 * # RENAMED from config_resize_windows_from_edges * @property * def config_windows_resize_from_edges(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigWindowsResizeFromEdges * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_32config_windows_resize_from_edges_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_32config_windows_resize_from_edges_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_32config_windows_resize_from_edges___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_32config_windows_resize_from_edges___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3369 * @property * def config_windows_resize_from_edges(self): * return self._ptr.ConfigWindowsResizeFromEdges # <<<<<<<<<<<<<< * * # RENAMED from config_resize_windows_from_edges */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->ConfigWindowsResizeFromEdges); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3368 * # RENAMED from config_resize_windows_from_edges * @property * def config_windows_resize_from_edges(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigWindowsResizeFromEdges * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.config_windows_resize_from_edges.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3373 * # RENAMED from config_resize_windows_from_edges * @config_windows_resize_from_edges.setter * def config_windows_resize_from_edges(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigWindowsResizeFromEdges = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_32config_windows_resize_from_edges_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_32config_windows_resize_from_edges_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3373, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.config_windows_resize_from_edges.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_32config_windows_resize_from_edges_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_32config_windows_resize_from_edges_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3374 * @config_windows_resize_from_edges.setter * def config_windows_resize_from_edges(self, cimgui.bool value): * self._ptr.ConfigWindowsResizeFromEdges = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ConfigWindowsResizeFromEdges = __pyx_v_value; /* "imgui/core.pyx":3373 * # RENAMED from config_resize_windows_from_edges * @config_windows_resize_from_edges.setter * def config_windows_resize_from_edges(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigWindowsResizeFromEdges = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3377 * * @property * def config_windows_move_from_title_bar_only(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigWindowsMoveFromTitleBarOnly * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3378 * @property * def config_windows_move_from_title_bar_only(self): * return self._ptr.ConfigWindowsMoveFromTitleBarOnly # <<<<<<<<<<<<<< * * @config_windows_move_from_title_bar_only.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->ConfigWindowsMoveFromTitleBarOnly); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3377 * * @property * def config_windows_move_from_title_bar_only(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigWindowsMoveFromTitleBarOnly * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.config_windows_move_from_title_bar_only.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3381 * * @config_windows_move_from_title_bar_only.setter * def config_windows_move_from_title_bar_only(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigWindowsMoveFromTitleBarOnly = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3381, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.config_windows_move_from_title_bar_only.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3382 * @config_windows_move_from_title_bar_only.setter * def config_windows_move_from_title_bar_only(self, cimgui.bool value): * self._ptr.ConfigWindowsMoveFromTitleBarOnly = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->ConfigWindowsMoveFromTitleBarOnly = __pyx_v_value; /* "imgui/core.pyx":3381 * * @config_windows_move_from_title_bar_only.setter * def config_windows_move_from_title_bar_only(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.ConfigWindowsMoveFromTitleBarOnly = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3385 * * @property * def config_memory_compact_timer(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigMemoryCompactTimer * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_27config_memory_compact_timer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_27config_memory_compact_timer_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_27config_memory_compact_timer___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_27config_memory_compact_timer___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3386 * @property * def config_memory_compact_timer(self): * return self._ptr.ConfigMemoryCompactTimer # <<<<<<<<<<<<<< * * @config_memory_compact_timer.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->ConfigMemoryCompactTimer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3385 * * @property * def config_memory_compact_timer(self): # <<<<<<<<<<<<<< * return self._ptr.ConfigMemoryCompactTimer * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.config_memory_compact_timer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3389 * * @config_memory_compact_timer.setter * def config_memory_compact_timer(self, float value): # <<<<<<<<<<<<<< * self._ptr.ConfigMemoryCompactTimer = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_27config_memory_compact_timer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_27config_memory_compact_timer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3389, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.config_memory_compact_timer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_27config_memory_compact_timer_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_27config_memory_compact_timer_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3390 * @config_memory_compact_timer.setter * def config_memory_compact_timer(self, float value): * self._ptr.ConfigMemoryCompactTimer = value # <<<<<<<<<<<<<< * * @staticmethod */ __pyx_v_self->_ptr->ConfigMemoryCompactTimer = __pyx_v_value; /* "imgui/core.pyx":3389 * * @config_memory_compact_timer.setter * def config_memory_compact_timer(self, float value): # <<<<<<<<<<<<<< * self._ptr.ConfigMemoryCompactTimer = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3393 * * @staticmethod * cdef const char* _get_clipboard_text(void* user_data): # <<<<<<<<<<<<<< * text = _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn']() * */ static char const *__pyx_f_5imgui_4core_3_IO__get_clipboard_text(CYTHON_UNUSED void *__pyx_v_user_data) { PyObject *__pyx_v_text = NULL; char const *__pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; ImGuiContext *__pyx_t_3; uintptr_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; int __pyx_t_7; char const *__pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_clipboard_text", 0); /* "imgui/core.pyx":3394 * @staticmethod * cdef const char* _get_clipboard_text(void* user_data): * text = _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn']() # <<<<<<<<<<<<<< * * # get_clipboard_text_fn() may return None */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_io_clipboard); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); try { __pyx_t_3 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3394, __pyx_L1_error) } __pyx_t_4 = ((uintptr_t)__pyx_t_3); __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_2, __pyx_t_4, uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_5, __pyx_n_s_get_clipboard_text_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_text = __pyx_t_1; __pyx_t_1 = 0; /* "imgui/core.pyx":3398 * # get_clipboard_text_fn() may return None * # (e.g. if the user copied non text data) * if text is None: # <<<<<<<<<<<<<< * return "" * */ __pyx_t_6 = (__pyx_v_text == Py_None); __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { /* "imgui/core.pyx":3399 * # (e.g. if the user copied non text data) * if text is None: * return "" # <<<<<<<<<<<<<< * * if type(text) is bytes: */ __pyx_r = ((char const *)""); goto __pyx_L0; /* "imgui/core.pyx":3398 * # get_clipboard_text_fn() may return None * # (e.g. if the user copied non text data) * if text is None: # <<<<<<<<<<<<<< * return "" * */ } /* "imgui/core.pyx":3401 * return "" * * if type(text) is bytes: # <<<<<<<<<<<<<< * return text * return _bytes(text) */ __pyx_t_7 = (((PyObject *)Py_TYPE(__pyx_v_text)) == ((PyObject *)(&PyBytes_Type))); __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { /* "imgui/core.pyx":3402 * * if type(text) is bytes: * return text # <<<<<<<<<<<<<< * return _bytes(text) * */ __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_text); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(0, 3402, __pyx_L1_error) __pyx_r = __pyx_t_8; goto __pyx_L0; /* "imgui/core.pyx":3401 * return "" * * if type(text) is bytes: # <<<<<<<<<<<<<< * return text * return _bytes(text) */ } /* "imgui/core.pyx":3403 * if type(text) is bytes: * return text * return _bytes(text) # <<<<<<<<<<<<<< * * @property */ if (!(likely(PyString_CheckExact(__pyx_v_text))||((__pyx_v_text) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_text)->tp_name), 0))) __PYX_ERR(0, 3403, __pyx_L1_error) __pyx_t_1 = __pyx_f_5imgui_4core__bytes(((PyObject*)__pyx_v_text)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 3403, __pyx_L1_error) } __pyx_t_8 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(0, 3403, __pyx_L1_error) __pyx_r = __pyx_t_8; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3393 * * @staticmethod * cdef const char* _get_clipboard_text(void* user_data): # <<<<<<<<<<<<<< * text = _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn']() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_WriteUnraisable("imgui.core._IO._get_clipboard_text", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_text); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3406 * * @property * def get_clipboard_text_fn(self): # <<<<<<<<<<<<<< * return _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_21get_clipboard_text_fn_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_21get_clipboard_text_fn_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_21get_clipboard_text_fn___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_21get_clipboard_text_fn___get__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImGuiContext *__pyx_t_2; uintptr_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3407 * @property * def get_clipboard_text_fn(self): * return _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] # <<<<<<<<<<<<<< * * @get_clipboard_text_fn.setter */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_io_clipboard); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); try { __pyx_t_2 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3407, __pyx_L1_error) } __pyx_t_3 = ((uintptr_t)__pyx_t_2); __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_3, uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_t_4, __pyx_n_s_get_clipboard_text_fn); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3406 * * @property * def get_clipboard_text_fn(self): # <<<<<<<<<<<<<< * return _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._IO.get_clipboard_text_fn.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3410 * * @get_clipboard_text_fn.setter * def get_clipboard_text_fn(self, func): # <<<<<<<<<<<<<< * if callable(func): * _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] = func */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_21get_clipboard_text_fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_21get_clipboard_text_fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_21get_clipboard_text_fn_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject *)__pyx_v_func)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_21get_clipboard_text_fn_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_func) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; ImGuiContext *__pyx_t_4; uintptr_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; char const *(*__pyx_t_7)(void *); int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3411 * @get_clipboard_text_fn.setter * def get_clipboard_text_fn(self, func): * if callable(func): # <<<<<<<<<<<<<< * _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] = func * self._ptr.GetClipboardTextFn = self._get_clipboard_text */ __pyx_t_1 = __Pyx_PyCallable_Check(__pyx_v_func); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3411, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 0); if (likely(__pyx_t_2)) { /* "imgui/core.pyx":3412 * def get_clipboard_text_fn(self, func): * if callable(func): * _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] = func # <<<<<<<<<<<<<< * self._ptr.GetClipboardTextFn = self._get_clipboard_text * else: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_io_clipboard); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); try { __pyx_t_4 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3412, __pyx_L1_error) } __pyx_t_5 = ((uintptr_t)__pyx_t_4); __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_3, __pyx_t_5, uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_s_get_clipboard_text_fn, __pyx_v_func) < 0)) __PYX_ERR(0, 3412, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "imgui/core.pyx":3413 * if callable(func): * _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] = func * self._ptr.GetClipboardTextFn = self._get_clipboard_text # <<<<<<<<<<<<<< * else: * raise ValueError("func is not a callable: %s" % str(func)) */ __pyx_t_7 = ((struct __pyx_vtabstruct_5imgui_4core__IO *)__pyx_v_self->__pyx_vtab)->_get_clipboard_text; __pyx_v_self->_ptr->GetClipboardTextFn = __pyx_t_7; /* "imgui/core.pyx":3411 * @get_clipboard_text_fn.setter * def get_clipboard_text_fn(self, func): * if callable(func): # <<<<<<<<<<<<<< * _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] = func * self._ptr.GetClipboardTextFn = self._get_clipboard_text */ goto __pyx_L3; } /* "imgui/core.pyx":3415 * self._ptr.GetClipboardTextFn = self._get_clipboard_text * else: * raise ValueError("func is not a callable: %s" % str(func)) # <<<<<<<<<<<<<< * * @staticmethod */ /*else*/ { __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_v_func); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyString_FormatSafe(__pyx_kp_s_func_is_not_a_callable_s, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 3415, __pyx_L1_error) } __pyx_L3:; /* "imgui/core.pyx":3410 * * @get_clipboard_text_fn.setter * def get_clipboard_text_fn(self, func): # <<<<<<<<<<<<<< * if callable(func): * _io_clipboard[cimgui.GetCurrentContext()]['_get_clipboard_text_fn'] = func */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core._IO.get_clipboard_text_fn.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3418 * * @staticmethod * cdef void _set_clipboard_text(void* user_data, const char* text): # <<<<<<<<<<<<<< * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'](_from_bytes(text)) * */ static void __pyx_f_5imgui_4core_3_IO__set_clipboard_text(CYTHON_UNUSED void *__pyx_v_user_data, char const *__pyx_v_text) { __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; ImGuiContext *__pyx_t_3; uintptr_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_set_clipboard_text", 0); /* "imgui/core.pyx":3419 * @staticmethod * cdef void _set_clipboard_text(void* user_data, const char* text): * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'](_from_bytes(text)) # <<<<<<<<<<<<<< * * @property */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_io_clipboard); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); try { __pyx_t_3 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3419, __pyx_L1_error) } __pyx_t_4 = ((uintptr_t)__pyx_t_3); __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_2, __pyx_t_4, uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_5, __pyx_n_s_set_clipboard_text_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_5)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3418 * * @staticmethod * cdef void _set_clipboard_text(void* user_data, const char* text): # <<<<<<<<<<<<<< * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'](_from_bytes(text)) * */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_WriteUnraisable("imgui.core._IO._set_clipboard_text", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_RefNannyFinishContext(); } /* "imgui/core.pyx":3422 * * @property * def set_clipboard_text_fn(self): # <<<<<<<<<<<<<< * return _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_21set_clipboard_text_fn_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_21set_clipboard_text_fn_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_21set_clipboard_text_fn___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_21set_clipboard_text_fn___get__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImGuiContext *__pyx_t_2; uintptr_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3423 * @property * def set_clipboard_text_fn(self): * return _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] # <<<<<<<<<<<<<< * * @set_clipboard_text_fn.setter */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_io_clipboard); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); try { __pyx_t_2 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3423, __pyx_L1_error) } __pyx_t_3 = ((uintptr_t)__pyx_t_2); __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_3, uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_t_4, __pyx_n_s_set_clipboard_text_fn); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3422 * * @property * def set_clipboard_text_fn(self): # <<<<<<<<<<<<<< * return _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._IO.set_clipboard_text_fn.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3426 * * @set_clipboard_text_fn.setter * def set_clipboard_text_fn(self, func): # <<<<<<<<<<<<<< * if callable(func): * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] = func */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_21set_clipboard_text_fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_21set_clipboard_text_fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_21set_clipboard_text_fn_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject *)__pyx_v_func)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_21set_clipboard_text_fn_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_func) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; ImGuiContext *__pyx_t_4; uintptr_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; void (*__pyx_t_7)(void *, char const *); int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3427 * @set_clipboard_text_fn.setter * def set_clipboard_text_fn(self, func): * if callable(func): # <<<<<<<<<<<<<< * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] = func * self._ptr.SetClipboardTextFn = self._set_clipboard_text */ __pyx_t_1 = __Pyx_PyCallable_Check(__pyx_v_func); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3427, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 0); if (likely(__pyx_t_2)) { /* "imgui/core.pyx":3428 * def set_clipboard_text_fn(self, func): * if callable(func): * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] = func # <<<<<<<<<<<<<< * self._ptr.SetClipboardTextFn = self._set_clipboard_text * else: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_io_clipboard); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); try { __pyx_t_4 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3428, __pyx_L1_error) } __pyx_t_5 = ((uintptr_t)__pyx_t_4); __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_3, __pyx_t_5, uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_s_set_clipboard_text_fn, __pyx_v_func) < 0)) __PYX_ERR(0, 3428, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "imgui/core.pyx":3429 * if callable(func): * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] = func * self._ptr.SetClipboardTextFn = self._set_clipboard_text # <<<<<<<<<<<<<< * else: * raise ValueError("func is not a callable: %s" % str(func)) */ __pyx_t_7 = ((struct __pyx_vtabstruct_5imgui_4core__IO *)__pyx_v_self->__pyx_vtab)->_set_clipboard_text; __pyx_v_self->_ptr->SetClipboardTextFn = __pyx_t_7; /* "imgui/core.pyx":3427 * @set_clipboard_text_fn.setter * def set_clipboard_text_fn(self, func): * if callable(func): # <<<<<<<<<<<<<< * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] = func * self._ptr.SetClipboardTextFn = self._set_clipboard_text */ goto __pyx_L3; } /* "imgui/core.pyx":3431 * self._ptr.SetClipboardTextFn = self._set_clipboard_text * else: * raise ValueError("func is not a callable: %s" % str(func)) # <<<<<<<<<<<<<< * * @property */ /*else*/ { __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_v_func); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyString_FormatSafe(__pyx_kp_s_func_is_not_a_callable_s, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 3431, __pyx_L1_error) } __pyx_L3:; /* "imgui/core.pyx":3426 * * @set_clipboard_text_fn.setter * def set_clipboard_text_fn(self, func): # <<<<<<<<<<<<<< * if callable(func): * _io_clipboard[cimgui.GetCurrentContext()]['_set_clipboard_text_fn'] = func */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core._IO.set_clipboard_text_fn.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3434 * * @property * def mouse_pos(self): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.MousePos) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_9mouse_pos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_9mouse_pos_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_9mouse_pos___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_9mouse_pos___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3435 * @property * def mouse_pos(self): * return _cast_ImVec2_tuple(self._ptr.MousePos) # <<<<<<<<<<<<<< * * @mouse_pos.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->MousePos); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3434 * * @property * def mouse_pos(self): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.MousePos) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.mouse_pos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3438 * * @mouse_pos.setter * def mouse_pos(self, value): # <<<<<<<<<<<<<< * self._ptr.MousePos = _cast_tuple_ImVec2(value) * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_9mouse_pos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_9mouse_pos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_9mouse_pos_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_9mouse_pos_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3439 * @mouse_pos.setter * def mouse_pos(self, value): * self._ptr.MousePos = _cast_tuple_ImVec2(value) # <<<<<<<<<<<<<< * * @property */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3439, __pyx_L1_error) __pyx_v_self->_ptr->MousePos = __pyx_t_1; /* "imgui/core.pyx":3438 * * @mouse_pos.setter * def mouse_pos(self, value): # <<<<<<<<<<<<<< * self._ptr.MousePos = _cast_tuple_ImVec2(value) * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._IO.mouse_pos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3442 * * @property * def mouse_down(self): # <<<<<<<<<<<<<< * # todo: consider adding setter despite the fact that it can be * # todo: modified in place */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_10mouse_down_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_10mouse_down_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_10mouse_down___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_10mouse_down___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { struct __pyx_array_obj *__pyx_v_mouse_down = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3446 * # todo: modified in place * cdef cvarray mouse_down = cvarray( * shape=(5,), # <<<<<<<<<<<<<< * format='b', * itemsize=sizeof(bool), */ __pyx_t_1 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_shape, __pyx_tuple__41) < 0) __PYX_ERR(0, 3446, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_format, __pyx_n_s_b) < 0) __PYX_ERR(0, 3446, __pyx_L1_error) /* "imgui/core.pyx":3448 * shape=(5,), * format='b', * itemsize=sizeof(bool), # <<<<<<<<<<<<<< * allocate_buffer=False * ) */ __pyx_t_2 = __Pyx_PyInt_FromSize_t((sizeof(bool))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_itemsize, __pyx_t_2) < 0) __PYX_ERR(0, 3446, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3449 * format='b', * itemsize=sizeof(bool), * allocate_buffer=False # <<<<<<<<<<<<<< * ) * mouse_down.data = self._ptr.MouseDown */ if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_allocate_buffer, Py_False) < 0) __PYX_ERR(0, 3446, __pyx_L1_error) /* "imgui/core.pyx":3445 * # todo: consider adding setter despite the fact that it can be * # todo: modified in place * cdef cvarray mouse_down = cvarray( # <<<<<<<<<<<<<< * shape=(5,), * format='b', */ __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_mouse_down = ((struct __pyx_array_obj *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3451 * allocate_buffer=False * ) * mouse_down.data = self._ptr.MouseDown # <<<<<<<<<<<<<< * return mouse_down * */ __pyx_v_mouse_down->data = ((char *)__pyx_v_self->_ptr->MouseDown); /* "imgui/core.pyx":3452 * ) * mouse_down.data = self._ptr.MouseDown * return mouse_down # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_mouse_down)); __pyx_r = ((PyObject *)__pyx_v_mouse_down); goto __pyx_L0; /* "imgui/core.pyx":3442 * * @property * def mouse_down(self): # <<<<<<<<<<<<<< * # todo: consider adding setter despite the fact that it can be * # todo: modified in place */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._IO.mouse_down.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_mouse_down); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3455 * * @property * def mouse_wheel(self): # <<<<<<<<<<<<<< * return self._ptr.MouseWheel * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_11mouse_wheel_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_11mouse_wheel_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_11mouse_wheel___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_11mouse_wheel___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3456 * @property * def mouse_wheel(self): * return self._ptr.MouseWheel # <<<<<<<<<<<<<< * * @mouse_wheel.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->MouseWheel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3455 * * @property * def mouse_wheel(self): # <<<<<<<<<<<<<< * return self._ptr.MouseWheel * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.mouse_wheel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3459 * * @mouse_wheel.setter * def mouse_wheel(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseWheel = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_11mouse_wheel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_11mouse_wheel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3459, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.mouse_wheel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_11mouse_wheel_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_11mouse_wheel_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3460 * @mouse_wheel.setter * def mouse_wheel(self, float value): * self._ptr.MouseWheel = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->MouseWheel = __pyx_v_value; /* "imgui/core.pyx":3459 * * @mouse_wheel.setter * def mouse_wheel(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseWheel = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3463 * * @property * def mouse_wheel_horizontal(self): # <<<<<<<<<<<<<< * return self._ptr.MouseWheelH * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_22mouse_wheel_horizontal_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_22mouse_wheel_horizontal_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_22mouse_wheel_horizontal___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_22mouse_wheel_horizontal___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3464 * @property * def mouse_wheel_horizontal(self): * return self._ptr.MouseWheelH # <<<<<<<<<<<<<< * * @mouse_wheel_horizontal.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->MouseWheelH); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3463 * * @property * def mouse_wheel_horizontal(self): # <<<<<<<<<<<<<< * return self._ptr.MouseWheelH * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.mouse_wheel_horizontal.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3467 * * @mouse_wheel_horizontal.setter * def mouse_wheel_horizontal(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseWheelH = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_22mouse_wheel_horizontal_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_22mouse_wheel_horizontal_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { float __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __pyx_PyFloat_AsFloat(__pyx_arg_value); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3467, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.mouse_wheel_horizontal.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_22mouse_wheel_horizontal_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((float)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_22mouse_wheel_horizontal_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, float __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3468 * @mouse_wheel_horizontal.setter * def mouse_wheel_horizontal(self, float value): * self._ptr.MouseWheelH = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->MouseWheelH = __pyx_v_value; /* "imgui/core.pyx":3467 * * @mouse_wheel_horizontal.setter * def mouse_wheel_horizontal(self, float value): # <<<<<<<<<<<<<< * self._ptr.MouseWheelH = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3471 * * @property * def mouse_draw_cursor(self): # <<<<<<<<<<<<<< * return self._ptr.MouseDrawCursor * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_17mouse_draw_cursor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_17mouse_draw_cursor_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_17mouse_draw_cursor___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_17mouse_draw_cursor___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3472 * @property * def mouse_draw_cursor(self): * return self._ptr.MouseDrawCursor # <<<<<<<<<<<<<< * * @mouse_draw_cursor.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->MouseDrawCursor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3471 * * @property * def mouse_draw_cursor(self): # <<<<<<<<<<<<<< * return self._ptr.MouseDrawCursor * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.mouse_draw_cursor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3475 * * @mouse_draw_cursor.setter * def mouse_draw_cursor(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.MouseDrawCursor = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_17mouse_draw_cursor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_17mouse_draw_cursor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3475, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.mouse_draw_cursor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_17mouse_draw_cursor_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_17mouse_draw_cursor_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3476 * @mouse_draw_cursor.setter * def mouse_draw_cursor(self, cimgui.bool value): * self._ptr.MouseDrawCursor = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->MouseDrawCursor = __pyx_v_value; /* "imgui/core.pyx":3475 * * @mouse_draw_cursor.setter * def mouse_draw_cursor(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.MouseDrawCursor = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3479 * * @property * def key_ctrl(self): # <<<<<<<<<<<<<< * return self._ptr.KeyCtrl * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_8key_ctrl_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_8key_ctrl_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_8key_ctrl___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_8key_ctrl___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3480 * @property * def key_ctrl(self): * return self._ptr.KeyCtrl # <<<<<<<<<<<<<< * * @key_ctrl.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->KeyCtrl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3479 * * @property * def key_ctrl(self): # <<<<<<<<<<<<<< * return self._ptr.KeyCtrl * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.key_ctrl.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3483 * * @key_ctrl.setter * def key_ctrl(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.KeyCtrl = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_8key_ctrl_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_8key_ctrl_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3483, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.key_ctrl.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_8key_ctrl_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_8key_ctrl_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3484 * @key_ctrl.setter * def key_ctrl(self, cimgui.bool value): * self._ptr.KeyCtrl = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->KeyCtrl = __pyx_v_value; /* "imgui/core.pyx":3483 * * @key_ctrl.setter * def key_ctrl(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.KeyCtrl = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3487 * * @property * def key_shift(self): # <<<<<<<<<<<<<< * return self._ptr.KeyShift * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_9key_shift_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_9key_shift_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_9key_shift___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_9key_shift___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3488 * @property * def key_shift(self): * return self._ptr.KeyShift # <<<<<<<<<<<<<< * * @key_shift.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->KeyShift); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3488, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3487 * * @property * def key_shift(self): # <<<<<<<<<<<<<< * return self._ptr.KeyShift * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.key_shift.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3491 * * @key_shift.setter * def key_shift(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.KeyShift = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_9key_shift_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_9key_shift_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3491, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.key_shift.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_9key_shift_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_9key_shift_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3492 * @key_shift.setter * def key_shift(self, cimgui.bool value): * self._ptr.KeyShift = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->KeyShift = __pyx_v_value; /* "imgui/core.pyx":3491 * * @key_shift.setter * def key_shift(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.KeyShift = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3495 * * @property * def key_alt(self): # <<<<<<<<<<<<<< * return self._ptr.KeyAlt * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_7key_alt_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_7key_alt_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_7key_alt___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_7key_alt___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3496 * @property * def key_alt(self): * return self._ptr.KeyAlt # <<<<<<<<<<<<<< * * @key_alt.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->KeyAlt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3495 * * @property * def key_alt(self): # <<<<<<<<<<<<<< * return self._ptr.KeyAlt * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.key_alt.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3499 * * @key_alt.setter * def key_alt(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.KeyAlt = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_7key_alt_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_7key_alt_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3499, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.key_alt.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_7key_alt_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_7key_alt_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3500 * @key_alt.setter * def key_alt(self, cimgui.bool value): * self._ptr.KeyAlt = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->KeyAlt = __pyx_v_value; /* "imgui/core.pyx":3499 * * @key_alt.setter * def key_alt(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.KeyAlt = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3503 * * @property * def key_super(self): # <<<<<<<<<<<<<< * return self._ptr.KeySuper * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_9key_super_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_9key_super_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_9key_super___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_9key_super___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3504 * @property * def key_super(self): * return self._ptr.KeySuper # <<<<<<<<<<<<<< * * @key_super.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->KeySuper); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3503 * * @property * def key_super(self): # <<<<<<<<<<<<<< * return self._ptr.KeySuper * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.key_super.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3507 * * @key_super.setter * def key_super(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.KeySuper = value * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_3_IO_9key_super_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_5imgui_4core_3_IO_9key_super_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) { bool __pyx_v_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_value); { __pyx_v_value = __Pyx_PyObject_IsTrue(__pyx_arg_value); if (unlikely((__pyx_v_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3507, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.key_super.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_9key_super_2__set__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((bool)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_3_IO_9key_super_2__set__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, bool __pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3508 * @key_super.setter * def key_super(self, cimgui.bool value): * self._ptr.KeySuper = value # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->KeySuper = __pyx_v_value; /* "imgui/core.pyx":3507 * * @key_super.setter * def key_super(self, cimgui.bool value): # <<<<<<<<<<<<<< * self._ptr.KeySuper = value * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3511 * * @property * def keys_down(self): # <<<<<<<<<<<<<< * # todo: consider adding setter despite the fact that it can be * # todo: modified in place */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_9keys_down_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_9keys_down_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_9keys_down___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_9keys_down___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { struct __pyx_array_obj *__pyx_v_keys_down = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3515 * # todo: modified in place * cdef cvarray keys_down = cvarray( * shape=(512,), # <<<<<<<<<<<<<< * format='b', * itemsize=sizeof(bool), */ __pyx_t_1 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_shape, __pyx_tuple__42) < 0) __PYX_ERR(0, 3515, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_format, __pyx_n_s_b) < 0) __PYX_ERR(0, 3515, __pyx_L1_error) /* "imgui/core.pyx":3517 * shape=(512,), * format='b', * itemsize=sizeof(bool), # <<<<<<<<<<<<<< * allocate_buffer=False * ) */ __pyx_t_2 = __Pyx_PyInt_FromSize_t((sizeof(bool))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_itemsize, __pyx_t_2) < 0) __PYX_ERR(0, 3515, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3518 * format='b', * itemsize=sizeof(bool), * allocate_buffer=False # <<<<<<<<<<<<<< * ) * keys_down.data = self._ptr.KeysDown */ if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_allocate_buffer, Py_False) < 0) __PYX_ERR(0, 3515, __pyx_L1_error) /* "imgui/core.pyx":3514 * # todo: consider adding setter despite the fact that it can be * # todo: modified in place * cdef cvarray keys_down = cvarray( # <<<<<<<<<<<<<< * shape=(512,), * format='b', */ __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_keys_down = ((struct __pyx_array_obj *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3520 * allocate_buffer=False * ) * keys_down.data = self._ptr.KeysDown # <<<<<<<<<<<<<< * return keys_down * */ __pyx_v_keys_down->data = ((char *)__pyx_v_self->_ptr->KeysDown); /* "imgui/core.pyx":3521 * ) * keys_down.data = self._ptr.KeysDown * return keys_down # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_keys_down)); __pyx_r = ((PyObject *)__pyx_v_keys_down); goto __pyx_L0; /* "imgui/core.pyx":3511 * * @property * def keys_down(self): # <<<<<<<<<<<<<< * # todo: consider adding setter despite the fact that it can be * # todo: modified in place */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._IO.keys_down.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_keys_down); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3524 * * @property * def nav_inputs(self): # <<<<<<<<<<<<<< * cdef cvarray nav_inputs = cvarray( * shape=(enums.ImGuiNavInput_COUNT,), */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_10nav_inputs_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_10nav_inputs_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_10nav_inputs___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_10nav_inputs___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { struct __pyx_array_obj *__pyx_v_nav_inputs = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3526 * def nav_inputs(self): * cdef cvarray nav_inputs = cvarray( * shape=(enums.ImGuiNavInput_COUNT,), # <<<<<<<<<<<<<< * format='f', * itemsize=sizeof(float), */ __pyx_t_1 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_COUNT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_shape, __pyx_t_3) < 0) __PYX_ERR(0, 3526, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_format, __pyx_n_s_f) < 0) __PYX_ERR(0, 3526, __pyx_L1_error) /* "imgui/core.pyx":3528 * shape=(enums.ImGuiNavInput_COUNT,), * format='f', * itemsize=sizeof(float), # <<<<<<<<<<<<<< * allocate_buffer=False * ) */ __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(float))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_itemsize, __pyx_t_3) < 0) __PYX_ERR(0, 3526, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":3529 * format='f', * itemsize=sizeof(float), * allocate_buffer=False # <<<<<<<<<<<<<< * ) * nav_inputs.data = self._ptr.NavInputs */ if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_allocate_buffer, Py_False) < 0) __PYX_ERR(0, 3526, __pyx_L1_error) /* "imgui/core.pyx":3525 * @property * def nav_inputs(self): * cdef cvarray nav_inputs = cvarray( # <<<<<<<<<<<<<< * shape=(enums.ImGuiNavInput_COUNT,), * format='f', */ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_nav_inputs = ((struct __pyx_array_obj *)__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":3531 * allocate_buffer=False * ) * nav_inputs.data = self._ptr.NavInputs # <<<<<<<<<<<<<< * return nav_inputs * */ __pyx_v_nav_inputs->data = ((char *)__pyx_v_self->_ptr->NavInputs); /* "imgui/core.pyx":3532 * ) * nav_inputs.data = self._ptr.NavInputs * return nav_inputs # <<<<<<<<<<<<<< * * def add_input_character(self, unsigned int c): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_nav_inputs)); __pyx_r = ((PyObject *)__pyx_v_nav_inputs); goto __pyx_L0; /* "imgui/core.pyx":3524 * * @property * def nav_inputs(self): # <<<<<<<<<<<<<< * cdef cvarray nav_inputs = cvarray( * shape=(enums.ImGuiNavInput_COUNT,), */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._IO.nav_inputs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_nav_inputs); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3534 * return nav_inputs * * def add_input_character(self, unsigned int c): # <<<<<<<<<<<<<< * self._ptr.AddInputCharacter(c) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_3add_input_character(PyObject *__pyx_v_self, PyObject *__pyx_arg_c); /*proto*/ static char __pyx_doc_5imgui_4core_3_IO_2add_input_character[] = "_IO.add_input_character(self, unsigned int c)"; static PyObject *__pyx_pw_5imgui_4core_3_IO_3add_input_character(PyObject *__pyx_v_self, PyObject *__pyx_arg_c) { unsigned int __pyx_v_c; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_input_character (wrapper)", 0); assert(__pyx_arg_c); { __pyx_v_c = __Pyx_PyInt_As_unsigned_int(__pyx_arg_c); if (unlikely((__pyx_v_c == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3534, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._IO.add_input_character", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_3_IO_2add_input_character(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((unsigned int)__pyx_v_c)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_2add_input_character(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, unsigned int __pyx_v_c) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_input_character", 0); /* "imgui/core.pyx":3535 * * def add_input_character(self, unsigned int c): * self._ptr.AddInputCharacter(c) # <<<<<<<<<<<<<< * * def add_input_character_utf16(self, str utf16_chars): */ try { __pyx_v_self->_ptr->AddInputCharacter(__pyx_v_c); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3535, __pyx_L1_error) } /* "imgui/core.pyx":3534 * return nav_inputs * * def add_input_character(self, unsigned int c): # <<<<<<<<<<<<<< * self._ptr.AddInputCharacter(c) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._IO.add_input_character", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3537 * self._ptr.AddInputCharacter(c) * * def add_input_character_utf16(self, str utf16_chars): # <<<<<<<<<<<<<< * self._ptr.AddInputCharacterUTF16(_bytes(utf16_chars)) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_5add_input_character_utf16(PyObject *__pyx_v_self, PyObject *__pyx_v_utf16_chars); /*proto*/ static char __pyx_doc_5imgui_4core_3_IO_4add_input_character_utf16[] = "_IO.add_input_character_utf16(self, str utf16_chars)"; static PyObject *__pyx_pw_5imgui_4core_3_IO_5add_input_character_utf16(PyObject *__pyx_v_self, PyObject *__pyx_v_utf16_chars) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_input_character_utf16 (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_utf16_chars), (&PyString_Type), 1, "utf16_chars", 1))) __PYX_ERR(0, 3537, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_3_IO_4add_input_character_utf16(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject*)__pyx_v_utf16_chars)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_4add_input_character_utf16(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_utf16_chars) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; ImWchar16 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_input_character_utf16", 0); /* "imgui/core.pyx":3538 * * def add_input_character_utf16(self, str utf16_chars): * self._ptr.AddInputCharacterUTF16(_bytes(utf16_chars)) # <<<<<<<<<<<<<< * * def add_input_characters_utf8(self, str utf8_chars): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_utf16_chars); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_ImWchar16(__pyx_t_1); if (unlikely((__pyx_t_2 == ((ImWchar16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3538, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; try { __pyx_v_self->_ptr->AddInputCharacterUTF16(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3538, __pyx_L1_error) } /* "imgui/core.pyx":3537 * self._ptr.AddInputCharacter(c) * * def add_input_character_utf16(self, str utf16_chars): # <<<<<<<<<<<<<< * self._ptr.AddInputCharacterUTF16(_bytes(utf16_chars)) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.add_input_character_utf16", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3540 * self._ptr.AddInputCharacterUTF16(_bytes(utf16_chars)) * * def add_input_characters_utf8(self, str utf8_chars): # <<<<<<<<<<<<<< * self._ptr.AddInputCharactersUTF8(_bytes(utf8_chars)) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_7add_input_characters_utf8(PyObject *__pyx_v_self, PyObject *__pyx_v_utf8_chars); /*proto*/ static char __pyx_doc_5imgui_4core_3_IO_6add_input_characters_utf8[] = "_IO.add_input_characters_utf8(self, str utf8_chars)"; static PyObject *__pyx_pw_5imgui_4core_3_IO_7add_input_characters_utf8(PyObject *__pyx_v_self, PyObject *__pyx_v_utf8_chars) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("add_input_characters_utf8 (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_utf8_chars), (&PyString_Type), 1, "utf8_chars", 1))) __PYX_ERR(0, 3540, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_3_IO_6add_input_characters_utf8(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject*)__pyx_v_utf8_chars)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_6add_input_characters_utf8(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, PyObject *__pyx_v_utf8_chars) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_input_characters_utf8", 0); /* "imgui/core.pyx":3541 * * def add_input_characters_utf8(self, str utf8_chars): * self._ptr.AddInputCharactersUTF8(_bytes(utf8_chars)) # <<<<<<<<<<<<<< * * def clear_input_characters(self): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_utf8_chars); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 3541, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 3541, __pyx_L1_error) try { __pyx_v_self->_ptr->AddInputCharactersUTF8(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3541, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3540 * self._ptr.AddInputCharacterUTF16(_bytes(utf16_chars)) * * def add_input_characters_utf8(self, str utf8_chars): # <<<<<<<<<<<<<< * self._ptr.AddInputCharactersUTF8(_bytes(utf8_chars)) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.add_input_characters_utf8", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3543 * self._ptr.AddInputCharactersUTF8(_bytes(utf8_chars)) * * def clear_input_characters(self): # <<<<<<<<<<<<<< * self._ptr.ClearInputCharacters() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_9clear_input_characters(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_3_IO_8clear_input_characters[] = "_IO.clear_input_characters(self)"; static PyObject *__pyx_pw_5imgui_4core_3_IO_9clear_input_characters(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("clear_input_characters (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_8clear_input_characters(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_8clear_input_characters(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("clear_input_characters", 0); /* "imgui/core.pyx":3544 * * def clear_input_characters(self): * self._ptr.ClearInputCharacters() # <<<<<<<<<<<<<< * * # ... mapping of output properties ... */ try { __pyx_v_self->_ptr->ClearInputCharacters(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3544, __pyx_L1_error) } /* "imgui/core.pyx":3543 * self._ptr.AddInputCharactersUTF8(_bytes(utf8_chars)) * * def clear_input_characters(self): # <<<<<<<<<<<<<< * self._ptr.ClearInputCharacters() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._IO.clear_input_characters", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3548 * # ... mapping of output properties ... * @property * def want_capture_mouse(self): # <<<<<<<<<<<<<< * return self._ptr.WantCaptureMouse * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_18want_capture_mouse_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_18want_capture_mouse_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_18want_capture_mouse___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_18want_capture_mouse___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3549 * @property * def want_capture_mouse(self): * return self._ptr.WantCaptureMouse # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->WantCaptureMouse); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3548 * # ... mapping of output properties ... * @property * def want_capture_mouse(self): # <<<<<<<<<<<<<< * return self._ptr.WantCaptureMouse * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.want_capture_mouse.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3552 * * @property * def want_capture_keyboard(self): # <<<<<<<<<<<<<< * return self._ptr.WantCaptureKeyboard * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_21want_capture_keyboard_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_21want_capture_keyboard_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_21want_capture_keyboard___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_21want_capture_keyboard___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3553 * @property * def want_capture_keyboard(self): * return self._ptr.WantCaptureKeyboard # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->WantCaptureKeyboard); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3552 * * @property * def want_capture_keyboard(self): # <<<<<<<<<<<<<< * return self._ptr.WantCaptureKeyboard * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.want_capture_keyboard.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3556 * * @property * def want_text_input(self): # <<<<<<<<<<<<<< * return self._ptr.WantTextInput * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_15want_text_input_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_15want_text_input_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_15want_text_input___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_15want_text_input___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3557 * @property * def want_text_input(self): * return self._ptr.WantTextInput # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->WantTextInput); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3556 * * @property * def want_text_input(self): # <<<<<<<<<<<<<< * return self._ptr.WantTextInput * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.want_text_input.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3560 * * @property * def want_set_mouse_pos(self): # <<<<<<<<<<<<<< * return self._ptr.WantSetMousePos * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_18want_set_mouse_pos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_18want_set_mouse_pos_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_18want_set_mouse_pos___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_18want_set_mouse_pos___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3561 * @property * def want_set_mouse_pos(self): * return self._ptr.WantSetMousePos # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->WantSetMousePos); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3560 * * @property * def want_set_mouse_pos(self): # <<<<<<<<<<<<<< * return self._ptr.WantSetMousePos * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.want_set_mouse_pos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3564 * * @property * def want_save_ini_settings(self): # <<<<<<<<<<<<<< * return self._ptr.WantSaveIniSettings * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_22want_save_ini_settings_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_22want_save_ini_settings_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_22want_save_ini_settings___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_22want_save_ini_settings___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3565 * @property * def want_save_ini_settings(self): * return self._ptr.WantSaveIniSettings # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->WantSaveIniSettings); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3564 * * @property * def want_save_ini_settings(self): # <<<<<<<<<<<<<< * return self._ptr.WantSaveIniSettings * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.want_save_ini_settings.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3568 * * @property * def nav_active(self): # <<<<<<<<<<<<<< * return self._ptr.NavActive * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_10nav_active_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_10nav_active_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_10nav_active___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_10nav_active___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3569 * @property * def nav_active(self): * return self._ptr.NavActive # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->NavActive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3568 * * @property * def nav_active(self): # <<<<<<<<<<<<<< * return self._ptr.NavActive * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.nav_active.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3572 * * @property * def nav_visible(self): # <<<<<<<<<<<<<< * return self._ptr.NavVisible * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_11nav_visible_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_11nav_visible_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_11nav_visible___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_11nav_visible___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3573 * @property * def nav_visible(self): * return self._ptr.NavVisible # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->NavVisible); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3572 * * @property * def nav_visible(self): # <<<<<<<<<<<<<< * return self._ptr.NavVisible * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.nav_visible.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3576 * * @property * def framerate(self): # <<<<<<<<<<<<<< * return self._ptr.Framerate * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_9framerate_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_9framerate_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_9framerate___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_9framerate___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3577 * @property * def framerate(self): * return self._ptr.Framerate # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_ptr->Framerate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3576 * * @property * def framerate(self): # <<<<<<<<<<<<<< * return self._ptr.Framerate * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.framerate.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3580 * * @property * def metrics_render_vertices(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsRenderVertices * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_23metrics_render_vertices_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_23metrics_render_vertices_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_23metrics_render_vertices___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_23metrics_render_vertices___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3581 * @property * def metrics_render_vertices(self): * return self._ptr.MetricsRenderVertices # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->MetricsRenderVertices); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3580 * * @property * def metrics_render_vertices(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsRenderVertices * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.metrics_render_vertices.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3584 * * @property * def metrics_render_indices(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsRenderIndices * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_22metrics_render_indices_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_22metrics_render_indices_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_22metrics_render_indices___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_22metrics_render_indices___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3585 * @property * def metrics_render_indices(self): * return self._ptr.MetricsRenderIndices # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->MetricsRenderIndices); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3584 * * @property * def metrics_render_indices(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsRenderIndices * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.metrics_render_indices.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3588 * * @property * def metrics_render_windows(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsRenderWindows * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_22metrics_render_windows_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_22metrics_render_windows_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_22metrics_render_windows___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_22metrics_render_windows___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3589 * @property * def metrics_render_windows(self): * return self._ptr.MetricsRenderWindows # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->MetricsRenderWindows); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3588 * * @property * def metrics_render_windows(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsRenderWindows * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.metrics_render_windows.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3592 * * @property * def metrics_active_windows(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsActiveWindows * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_22metrics_active_windows_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_22metrics_active_windows_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_22metrics_active_windows___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_22metrics_active_windows___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3593 * @property * def metrics_active_windows(self): * return self._ptr.MetricsActiveWindows # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->MetricsActiveWindows); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3592 * * @property * def metrics_active_windows(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsActiveWindows * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.metrics_active_windows.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3596 * * @property * def metrics_active_allocations(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsActiveAllocations * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_26metrics_active_allocations_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_26metrics_active_allocations_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_26metrics_active_allocations___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_26metrics_active_allocations___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3597 * @property * def metrics_active_allocations(self): * return self._ptr.MetricsActiveAllocations # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->MetricsActiveAllocations); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3596 * * @property * def metrics_active_allocations(self): # <<<<<<<<<<<<<< * return self._ptr.MetricsActiveAllocations * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.metrics_active_allocations.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3600 * * @property * def mouse_delta(self): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.MouseDelta) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_11mouse_delta_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_3_IO_11mouse_delta_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_11mouse_delta___get__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_11mouse_delta___get__(struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3601 * @property * def mouse_delta(self): * return _cast_ImVec2_tuple(self._ptr.MouseDelta) # <<<<<<<<<<<<<< * * cdef class _callback_user_info(object): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->MouseDelta); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3600 * * @property * def mouse_delta(self): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.MouseDelta) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.mouse_delta.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_3_IO_10__reduce_cython__[] = "_IO.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_3_IO_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_10__reduce_cython__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__IO *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3_IO_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_3_IO_12__setstate_cython__[] = "_IO.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_3_IO_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_3_IO_12__setstate_cython__(((struct __pyx_obj_5imgui_4core__IO *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_3_IO_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__IO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._IO.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3608 * cdef user_data * * def __init__(self): # <<<<<<<<<<<<<< * pass * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_19_callback_user_info_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_19_callback_user_info_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_19_callback_user_info___init__(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_19_callback_user_info___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3611 * pass * * def __cinit__(self): # <<<<<<<<<<<<<< * text_input_buffer = NULL * text_input_buffer_size = 0 */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_19_callback_user_info_3__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_19_callback_user_info_3__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_19_callback_user_info_2__cinit__(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_19_callback_user_info_2__cinit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self) { CYTHON_UNUSED void *__pyx_v_text_input_buffer; CYTHON_UNUSED long __pyx_v_text_input_buffer_size; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":3612 * * def __cinit__(self): * text_input_buffer = NULL # <<<<<<<<<<<<<< * text_input_buffer_size = 0 * */ __pyx_v_text_input_buffer = NULL; /* "imgui/core.pyx":3613 * def __cinit__(self): * text_input_buffer = NULL * text_input_buffer_size = 0 # <<<<<<<<<<<<<< * * def populate(self, callback_fn, user_data): */ __pyx_v_text_input_buffer_size = 0; /* "imgui/core.pyx":3611 * pass * * def __cinit__(self): # <<<<<<<<<<<<<< * text_input_buffer = NULL * text_input_buffer_size = 0 */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3615 * text_input_buffer_size = 0 * * def populate(self, callback_fn, user_data): # <<<<<<<<<<<<<< * if callable(callback_fn): * self.callback_fn = callback_fn */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_callback_user_info_5populate(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_19_callback_user_info_4populate[] = "_callback_user_info.populate(self, callback_fn, user_data)"; static PyObject *__pyx_pw_5imgui_4core_19_callback_user_info_5populate(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_callback_fn = 0; PyObject *__pyx_v_user_data = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("populate (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_callback_fn,&__pyx_n_s_user_data,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_callback_fn)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_user_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("populate", 1, 2, 2, 1); __PYX_ERR(0, 3615, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "populate") < 0)) __PYX_ERR(0, 3615, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_callback_fn = values[0]; __pyx_v_user_data = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("populate", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3615, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._callback_user_info.populate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_19_callback_user_info_4populate(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self), __pyx_v_callback_fn, __pyx_v_user_data); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_callback_user_info_4populate(struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self, PyObject *__pyx_v_callback_fn, PyObject *__pyx_v_user_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("populate", 0); /* "imgui/core.pyx":3616 * * def populate(self, callback_fn, user_data): * if callable(callback_fn): # <<<<<<<<<<<<<< * self.callback_fn = callback_fn * self.user_data = user_data */ __pyx_t_1 = __Pyx_PyCallable_Check(__pyx_v_callback_fn); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3616, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 0); if (likely(__pyx_t_2)) { /* "imgui/core.pyx":3617 * def populate(self, callback_fn, user_data): * if callable(callback_fn): * self.callback_fn = callback_fn # <<<<<<<<<<<<<< * self.user_data = user_data * else: */ __Pyx_INCREF(__pyx_v_callback_fn); __Pyx_GIVEREF(__pyx_v_callback_fn); __Pyx_GOTREF(__pyx_v_self->callback_fn); __Pyx_DECREF(__pyx_v_self->callback_fn); __pyx_v_self->callback_fn = __pyx_v_callback_fn; /* "imgui/core.pyx":3618 * if callable(callback_fn): * self.callback_fn = callback_fn * self.user_data = user_data # <<<<<<<<<<<<<< * else: * raise ValueError("callback_fn is not a callable: %s" % str(callback_fn)) */ __Pyx_INCREF(__pyx_v_user_data); __Pyx_GIVEREF(__pyx_v_user_data); __Pyx_GOTREF(__pyx_v_self->user_data); __Pyx_DECREF(__pyx_v_self->user_data); __pyx_v_self->user_data = __pyx_v_user_data; /* "imgui/core.pyx":3616 * * def populate(self, callback_fn, user_data): * if callable(callback_fn): # <<<<<<<<<<<<<< * self.callback_fn = callback_fn * self.user_data = user_data */ goto __pyx_L3; } /* "imgui/core.pyx":3620 * self.user_data = user_data * else: * raise ValueError("callback_fn is not a callable: %s" % str(callback_fn)) # <<<<<<<<<<<<<< * * cdef set_text_input_buffer(self, char* text_input_buffer, int text_input_buffer_size): */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_v_callback_fn); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyString_FormatSafe(__pyx_kp_s_callback_fn_is_not_a_callable_s, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 3620, __pyx_L1_error) } __pyx_L3:; /* "imgui/core.pyx":3615 * text_input_buffer_size = 0 * * def populate(self, callback_fn, user_data): # <<<<<<<<<<<<<< * if callable(callback_fn): * self.callback_fn = callback_fn */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._callback_user_info.populate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3622 * raise ValueError("callback_fn is not a callable: %s" % str(callback_fn)) * * cdef set_text_input_buffer(self, char* text_input_buffer, int text_input_buffer_size): # <<<<<<<<<<<<<< * self.text_input_buffer = text_input_buffer * self.text_input_buffer_size = text_input_buffer_size */ static PyObject *__pyx_f_5imgui_4core_19_callback_user_info_set_text_input_buffer(struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self, char *__pyx_v_text_input_buffer, int __pyx_v_text_input_buffer_size) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_text_input_buffer", 0); /* "imgui/core.pyx":3623 * * cdef set_text_input_buffer(self, char* text_input_buffer, int text_input_buffer_size): * self.text_input_buffer = text_input_buffer # <<<<<<<<<<<<<< * self.text_input_buffer_size = text_input_buffer_size * */ __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_text_input_buffer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3623, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text_input_buffer, __pyx_t_1) < 0) __PYX_ERR(0, 3623, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3624 * cdef set_text_input_buffer(self, char* text_input_buffer, int text_input_buffer_size): * self.text_input_buffer = text_input_buffer * self.text_input_buffer_size = text_input_buffer_size # <<<<<<<<<<<<<< * * cdef class _InputTextSharedBuffer(object): */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_text_input_buffer_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text_input_buffer_size, __pyx_t_1) < 0) __PYX_ERR(0, 3624, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3622 * raise ValueError("callback_fn is not a callable: %s" % str(callback_fn)) * * cdef set_text_input_buffer(self, char* text_input_buffer, int text_input_buffer_size): # <<<<<<<<<<<<<< * self.text_input_buffer = text_input_buffer * self.text_input_buffer_size = text_input_buffer_size */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._callback_user_info.set_text_input_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_callback_user_info_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_19_callback_user_info_6__reduce_cython__[] = "_callback_user_info.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_19_callback_user_info_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_callback_user_info_6__reduce_cython__(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_callback_user_info_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._callback_user_info.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_callback_user_info_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_19_callback_user_info_8__setstate_cython__[] = "_callback_user_info.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_19_callback_user_info_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_callback_user_info_8__setstate_cython__(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_callback_user_info_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._callback_user_info.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3632 * cdef int capacity * * def __cinit__(self): # <<<<<<<<<<<<<< * self.buffer = NULL * self.size = 0 */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_22_InputTextSharedBuffer_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_22_InputTextSharedBuffer_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_22_InputTextSharedBuffer___cinit__(((struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_22_InputTextSharedBuffer___cinit__(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":3633 * * def __cinit__(self): * self.buffer = NULL # <<<<<<<<<<<<<< * self.size = 0 * self.capacity = 0 */ __pyx_v_self->buffer = NULL; /* "imgui/core.pyx":3634 * def __cinit__(self): * self.buffer = NULL * self.size = 0 # <<<<<<<<<<<<<< * self.capacity = 0 * */ __pyx_v_self->size = 0; /* "imgui/core.pyx":3635 * self.buffer = NULL * self.size = 0 * self.capacity = 0 # <<<<<<<<<<<<<< * * cdef reserve_memory(self, int buffer_size): */ __pyx_v_self->capacity = 0; /* "imgui/core.pyx":3632 * cdef int capacity * * def __cinit__(self): # <<<<<<<<<<<<<< * self.buffer = NULL * self.size = 0 */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3637 * self.capacity = 0 * * cdef reserve_memory(self, int buffer_size): # <<<<<<<<<<<<<< * if self.buffer is NULL: * self.buffer = malloc(buffer_size*sizeof(char)) */ static PyObject *__pyx_f_5imgui_4core_22_InputTextSharedBuffer_reserve_memory(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self, int __pyx_v_buffer_size) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("reserve_memory", 0); /* "imgui/core.pyx":3638 * * cdef reserve_memory(self, int buffer_size): * if self.buffer is NULL: # <<<<<<<<<<<<<< * self.buffer = malloc(buffer_size*sizeof(char)) * self.size = buffer_size */ __pyx_t_1 = ((__pyx_v_self->buffer == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":3639 * cdef reserve_memory(self, int buffer_size): * if self.buffer is NULL: * self.buffer = malloc(buffer_size*sizeof(char)) # <<<<<<<<<<<<<< * self.size = buffer_size * self.capacity = buffer_size */ __pyx_v_self->buffer = ((char *)malloc((__pyx_v_buffer_size * (sizeof(char))))); /* "imgui/core.pyx":3640 * if self.buffer is NULL: * self.buffer = malloc(buffer_size*sizeof(char)) * self.size = buffer_size # <<<<<<<<<<<<<< * self.capacity = buffer_size * elif buffer_size > self.capacity: */ __pyx_v_self->size = __pyx_v_buffer_size; /* "imgui/core.pyx":3641 * self.buffer = malloc(buffer_size*sizeof(char)) * self.size = buffer_size * self.capacity = buffer_size # <<<<<<<<<<<<<< * elif buffer_size > self.capacity: * while self.capacity < buffer_size: */ __pyx_v_self->capacity = __pyx_v_buffer_size; /* "imgui/core.pyx":3638 * * cdef reserve_memory(self, int buffer_size): * if self.buffer is NULL: # <<<<<<<<<<<<<< * self.buffer = malloc(buffer_size*sizeof(char)) * self.size = buffer_size */ goto __pyx_L3; } /* "imgui/core.pyx":3642 * self.size = buffer_size * self.capacity = buffer_size * elif buffer_size > self.capacity: # <<<<<<<<<<<<<< * while self.capacity < buffer_size: * self.capacity = self.capacity * 2 */ __pyx_t_1 = ((__pyx_v_buffer_size > __pyx_v_self->capacity) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":3643 * self.capacity = buffer_size * elif buffer_size > self.capacity: * while self.capacity < buffer_size: # <<<<<<<<<<<<<< * self.capacity = self.capacity * 2 * self.buffer = realloc(self.buffer, self.capacity*sizeof(char)) */ while (1) { __pyx_t_1 = ((__pyx_v_self->capacity < __pyx_v_buffer_size) != 0); if (!__pyx_t_1) break; /* "imgui/core.pyx":3644 * elif buffer_size > self.capacity: * while self.capacity < buffer_size: * self.capacity = self.capacity * 2 # <<<<<<<<<<<<<< * self.buffer = realloc(self.buffer, self.capacity*sizeof(char)) * self.size = buffer_size */ __pyx_v_self->capacity = (__pyx_v_self->capacity * 2); } /* "imgui/core.pyx":3645 * while self.capacity < buffer_size: * self.capacity = self.capacity * 2 * self.buffer = realloc(self.buffer, self.capacity*sizeof(char)) # <<<<<<<<<<<<<< * self.size = buffer_size * else: */ __pyx_v_self->buffer = ((char *)realloc(__pyx_v_self->buffer, (__pyx_v_self->capacity * (sizeof(char))))); /* "imgui/core.pyx":3646 * self.capacity = self.capacity * 2 * self.buffer = realloc(self.buffer, self.capacity*sizeof(char)) * self.size = buffer_size # <<<<<<<<<<<<<< * else: * self.size = buffer_size */ __pyx_v_self->size = __pyx_v_buffer_size; /* "imgui/core.pyx":3642 * self.size = buffer_size * self.capacity = buffer_size * elif buffer_size > self.capacity: # <<<<<<<<<<<<<< * while self.capacity < buffer_size: * self.capacity = self.capacity * 2 */ goto __pyx_L3; } /* "imgui/core.pyx":3648 * self.size = buffer_size * else: * self.size = buffer_size # <<<<<<<<<<<<<< * * cdef free_memory(self): */ /*else*/ { __pyx_v_self->size = __pyx_v_buffer_size; } __pyx_L3:; /* "imgui/core.pyx":3637 * self.capacity = 0 * * cdef reserve_memory(self, int buffer_size): # <<<<<<<<<<<<<< * if self.buffer is NULL: * self.buffer = malloc(buffer_size*sizeof(char)) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3650 * self.size = buffer_size * * cdef free_memory(self): # <<<<<<<<<<<<<< * if self.buffer != NULL: * free(self.buffer) */ static PyObject *__pyx_f_5imgui_4core_22_InputTextSharedBuffer_free_memory(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("free_memory", 0); /* "imgui/core.pyx":3651 * * cdef free_memory(self): * if self.buffer != NULL: # <<<<<<<<<<<<<< * free(self.buffer) * self.buffer = NULL */ __pyx_t_1 = ((__pyx_v_self->buffer != NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":3652 * cdef free_memory(self): * if self.buffer != NULL: * free(self.buffer) # <<<<<<<<<<<<<< * self.buffer = NULL * self.size = 0 */ free(__pyx_v_self->buffer); /* "imgui/core.pyx":3653 * if self.buffer != NULL: * free(self.buffer) * self.buffer = NULL # <<<<<<<<<<<<<< * self.size = 0 * self.capacity = 0 */ __pyx_v_self->buffer = NULL; /* "imgui/core.pyx":3654 * free(self.buffer) * self.buffer = NULL * self.size = 0 # <<<<<<<<<<<<<< * self.capacity = 0 * */ __pyx_v_self->size = 0; /* "imgui/core.pyx":3655 * self.buffer = NULL * self.size = 0 * self.capacity = 0 # <<<<<<<<<<<<<< * * def __dealloc__(self): */ __pyx_v_self->capacity = 0; /* "imgui/core.pyx":3651 * * cdef free_memory(self): * if self.buffer != NULL: # <<<<<<<<<<<<<< * free(self.buffer) * self.buffer = NULL */ } /* "imgui/core.pyx":3650 * self.size = buffer_size * * cdef free_memory(self): # <<<<<<<<<<<<<< * if self.buffer != NULL: * free(self.buffer) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3657 * self.capacity = 0 * * def __dealloc__(self): # <<<<<<<<<<<<<< * self.free_memory() * */ /* Python wrapper */ static void __pyx_pw_5imgui_4core_22_InputTextSharedBuffer_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_5imgui_4core_22_InputTextSharedBuffer_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_5imgui_4core_22_InputTextSharedBuffer_2__dealloc__(((struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_5imgui_4core_22_InputTextSharedBuffer_2__dealloc__(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self) { __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__dealloc__", 0); /* "imgui/core.pyx":3658 * * def __dealloc__(self): * self.free_memory() # <<<<<<<<<<<<<< * * cdef _InputTextSharedBuffer _input_text_shared_buffer = _InputTextSharedBuffer() */ __pyx_t_1 = ((struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer *)__pyx_v_self->__pyx_vtab)->free_memory(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3657 * self.capacity = 0 * * def __dealloc__(self): # <<<<<<<<<<<<<< * self.free_memory() * */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_WriteUnraisable("imgui.core._InputTextSharedBuffer.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_RefNannyFinishContext(); } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_InputTextSharedBuffer_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_22_InputTextSharedBuffer_4__reduce_cython__[] = "_InputTextSharedBuffer.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_22_InputTextSharedBuffer_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_InputTextSharedBuffer_4__reduce_cython__(((struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_InputTextSharedBuffer_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._InputTextSharedBuffer.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_InputTextSharedBuffer_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_22_InputTextSharedBuffer_6__setstate_cython__[] = "_InputTextSharedBuffer.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_22_InputTextSharedBuffer_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_InputTextSharedBuffer_6__setstate_cython__(((struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_InputTextSharedBuffer_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._InputTextSharedBuffer.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3662 * cdef _InputTextSharedBuffer _input_text_shared_buffer = _InputTextSharedBuffer() * * cdef int _ImGuiInputTextCallback(cimgui.ImGuiInputTextCallbackData* data): # <<<<<<<<<<<<<< * cdef _ImGuiInputTextCallbackData callback_data = _ImGuiInputTextCallbackData.from_ptr(data) * callback_data._require_pointer() */ static int __pyx_f_5imgui_4core__ImGuiInputTextCallback(ImGuiInputTextCallbackData *__pyx_v_data) { struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_callback_data = 0; PyObject *__pyx_v_ret = 0; int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; char *__pyx_t_5; int __pyx_t_6; int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_ImGuiInputTextCallback", 0); /* "imgui/core.pyx":3663 * * cdef int _ImGuiInputTextCallback(cimgui.ImGuiInputTextCallbackData* data): * cdef _ImGuiInputTextCallbackData callback_data = _ImGuiInputTextCallbackData.from_ptr(data) # <<<<<<<<<<<<<< * callback_data._require_pointer() * */ __pyx_t_1 = __pyx_f_5imgui_4core_27_ImGuiInputTextCallbackData_from_ptr(__pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5imgui_4core__ImGuiInputTextCallbackData))))) __PYX_ERR(0, 3663, __pyx_L1_error) __pyx_v_callback_data = ((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3664 * cdef int _ImGuiInputTextCallback(cimgui.ImGuiInputTextCallbackData* data): * cdef _ImGuiInputTextCallbackData callback_data = _ImGuiInputTextCallbackData.from_ptr(data) * callback_data._require_pointer() # <<<<<<<<<<<<<< * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_callback_data), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3666 * callback_data._require_pointer() * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * if data.BufSize != _input_text_shared_buffer.size: * _input_text_shared_buffer.reserve_memory(data.BufSize) */ __pyx_t_4 = ((__pyx_v_data->EventFlag == ImGuiInputTextFlags_CallbackResize) != 0); if (__pyx_t_4) { /* "imgui/core.pyx":3667 * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: * if data.BufSize != _input_text_shared_buffer.size: # <<<<<<<<<<<<<< * _input_text_shared_buffer.reserve_memory(data.BufSize) * data.Buf = _input_text_shared_buffer.buffer */ __pyx_t_4 = ((__pyx_v_data->BufSize != __pyx_v_5imgui_4core__input_text_shared_buffer->size) != 0); if (__pyx_t_4) { /* "imgui/core.pyx":3668 * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: * if data.BufSize != _input_text_shared_buffer.size: * _input_text_shared_buffer.reserve_memory(data.BufSize) # <<<<<<<<<<<<<< * data.Buf = _input_text_shared_buffer.buffer * */ __pyx_t_1 = ((struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer *)__pyx_v_5imgui_4core__input_text_shared_buffer->__pyx_vtab)->reserve_memory(__pyx_v_5imgui_4core__input_text_shared_buffer, __pyx_v_data->BufSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3669 * if data.BufSize != _input_text_shared_buffer.size: * _input_text_shared_buffer.reserve_memory(data.BufSize) * data.Buf = _input_text_shared_buffer.buffer # <<<<<<<<<<<<<< * * cdef ret = (<_callback_user_info>callback_data._ptr.UserData).callback_fn(callback_data) */ __pyx_t_5 = __pyx_v_5imgui_4core__input_text_shared_buffer->buffer; __pyx_v_data->Buf = __pyx_t_5; /* "imgui/core.pyx":3667 * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: * if data.BufSize != _input_text_shared_buffer.size: # <<<<<<<<<<<<<< * _input_text_shared_buffer.reserve_memory(data.BufSize) * data.Buf = _input_text_shared_buffer.buffer */ } /* "imgui/core.pyx":3666 * callback_data._require_pointer() * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * if data.BufSize != _input_text_shared_buffer.size: * _input_text_shared_buffer.reserve_memory(data.BufSize) */ } /* "imgui/core.pyx":3671 * data.Buf = _input_text_shared_buffer.buffer * * cdef ret = (<_callback_user_info>callback_data._ptr.UserData).callback_fn(callback_data) # <<<<<<<<<<<<<< * return ret if ret is not None else 0 * */ __Pyx_INCREF(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_callback_data->_ptr->UserData)->callback_fn); __pyx_t_2 = ((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_callback_data->_ptr->UserData)->callback_fn; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_v_callback_data)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_v_callback_data)); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_ret = __pyx_t_1; __pyx_t_1 = 0; /* "imgui/core.pyx":3672 * * cdef ret = (<_callback_user_info>callback_data._ptr.UserData).callback_fn(callback_data) * return ret if ret is not None else 0 # <<<<<<<<<<<<<< * * cdef int _ImGuiInputTextOnlyResizeCallback(cimgui.ImGuiInputTextCallbackData* data): */ __pyx_t_4 = (__pyx_v_ret != Py_None); if ((__pyx_t_4 != 0)) { __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_ret); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3672, __pyx_L1_error) __pyx_t_6 = __pyx_t_7; } else { __pyx_t_6 = 0; } __pyx_r = __pyx_t_6; goto __pyx_L0; /* "imgui/core.pyx":3662 * cdef _InputTextSharedBuffer _input_text_shared_buffer = _InputTextSharedBuffer() * * cdef int _ImGuiInputTextCallback(cimgui.ImGuiInputTextCallbackData* data): # <<<<<<<<<<<<<< * cdef _ImGuiInputTextCallbackData callback_data = _ImGuiInputTextCallbackData.from_ptr(data) * callback_data._require_pointer() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_WriteUnraisable("imgui.core._ImGuiInputTextCallback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_callback_data); __Pyx_XDECREF(__pyx_v_ret); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3674 * return ret if ret is not None else 0 * * cdef int _ImGuiInputTextOnlyResizeCallback(cimgui.ImGuiInputTextCallbackData* data): # <<<<<<<<<<<<<< * # This callback is used internally if user asks for buffer resizing but does not provide any python callback function. * */ static int __pyx_f_5imgui_4core__ImGuiInputTextOnlyResizeCallback(ImGuiInputTextCallbackData *__pyx_v_data) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; char *__pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_ImGuiInputTextOnlyResizeCallback", 0); /* "imgui/core.pyx":3677 * # This callback is used internally if user asks for buffer resizing but does not provide any python callback function. * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * if data.BufSize != _input_text_shared_buffer.size: * _input_text_shared_buffer.reserve_memory(data.BufSize) */ __pyx_t_1 = ((__pyx_v_data->EventFlag == ImGuiInputTextFlags_CallbackResize) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":3678 * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: * if data.BufSize != _input_text_shared_buffer.size: # <<<<<<<<<<<<<< * _input_text_shared_buffer.reserve_memory(data.BufSize) * data.Buf = _input_text_shared_buffer.buffer */ __pyx_t_1 = ((__pyx_v_data->BufSize != __pyx_v_5imgui_4core__input_text_shared_buffer->size) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":3679 * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: * if data.BufSize != _input_text_shared_buffer.size: * _input_text_shared_buffer.reserve_memory(data.BufSize) # <<<<<<<<<<<<<< * data.Buf = _input_text_shared_buffer.buffer * */ __pyx_t_2 = ((struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer *)__pyx_v_5imgui_4core__input_text_shared_buffer->__pyx_vtab)->reserve_memory(__pyx_v_5imgui_4core__input_text_shared_buffer, __pyx_v_data->BufSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3680 * if data.BufSize != _input_text_shared_buffer.size: * _input_text_shared_buffer.reserve_memory(data.BufSize) * data.Buf = _input_text_shared_buffer.buffer # <<<<<<<<<<<<<< * * return 0 */ __pyx_t_3 = __pyx_v_5imgui_4core__input_text_shared_buffer->buffer; __pyx_v_data->Buf = __pyx_t_3; /* "imgui/core.pyx":3678 * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: * if data.BufSize != _input_text_shared_buffer.size: # <<<<<<<<<<<<<< * _input_text_shared_buffer.reserve_memory(data.BufSize) * data.Buf = _input_text_shared_buffer.buffer */ } /* "imgui/core.pyx":3677 * # This callback is used internally if user asks for buffer resizing but does not provide any python callback function. * * if data.EventFlag == enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * if data.BufSize != _input_text_shared_buffer.size: * _input_text_shared_buffer.reserve_memory(data.BufSize) */ } /* "imgui/core.pyx":3682 * data.Buf = _input_text_shared_buffer.buffer * * return 0 # <<<<<<<<<<<<<< * * cdef class _ImGuiInputTextCallbackData(object): */ __pyx_r = 0; goto __pyx_L0; /* "imgui/core.pyx":3674 * return ret if ret is not None else 0 * * cdef int _ImGuiInputTextOnlyResizeCallback(cimgui.ImGuiInputTextCallbackData* data): # <<<<<<<<<<<<<< * # This callback is used internally if user asks for buffer resizing but does not provide any python callback function. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_WriteUnraisable("imgui.core._ImGuiInputTextOnlyResizeCallback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_r = 0; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3688 * cdef cimgui.ImGuiInputTextCallbackData* _ptr * * def __init__(self): # <<<<<<<<<<<<<< * pass * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData___init__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3692 * * @staticmethod * cdef from_ptr(cimgui.ImGuiInputTextCallbackData* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_27_ImGuiInputTextCallbackData_from_ptr(ImGuiInputTextCallbackData *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":3693 * @staticmethod * cdef from_ptr(cimgui.ImGuiInputTextCallbackData* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":3694 * cdef from_ptr(cimgui.ImGuiInputTextCallbackData* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _ImGuiInputTextCallbackData() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":3693 * @staticmethod * cdef from_ptr(cimgui.ImGuiInputTextCallbackData* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":3696 * return None * * instance = _ImGuiInputTextCallbackData() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__ImGuiInputTextCallbackData)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3697 * * instance = _ImGuiInputTextCallbackData() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":3698 * instance = _ImGuiInputTextCallbackData() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * def _require_pointer(self): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":3692 * * @staticmethod * cdef from_ptr(cimgui.ImGuiInputTextCallbackData* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3700 * return instance * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_2_require_pointer[] = "_ImGuiInputTextCallbackData._require_pointer(self)"; static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_require_pointer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_2_require_pointer(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_require_pointer", 0); /* "imgui/core.pyx":3701 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":3703 * if self._ptr == NULL: * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_improperly_initialized, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":3702 * def _require_pointer(self): * if self._ptr == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "%s improperly initialized" % self.__class__.__name__ * ) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 3702, __pyx_L1_error) /* "imgui/core.pyx":3701 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ } /* "imgui/core.pyx":3706 * ) * * return self._ptr != NULL # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __Pyx_PyBool_FromLong((__pyx_v_self->_ptr != NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":3700 * return instance * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData._require_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3709 * * @property * def event_flag(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.EventFlag */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_flag_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_flag_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_flag___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_flag___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3710 * @property * def event_flag(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.EventFlag * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3711 * def event_flag(self): * self._require_pointer() * return self._ptr.EventFlag # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiInputTextFlags(__pyx_v_self->_ptr->EventFlag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3709 * * @property * def event_flag(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.EventFlag */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.event_flag.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3714 * * @property * def flags(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.Flags */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_5flags_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_5flags___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_5flags___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3715 * @property * def flags(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.Flags * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3716 * def flags(self): * self._require_pointer() * return self._ptr.Flags # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiInputTextFlags(__pyx_v_self->_ptr->Flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3714 * * @property * def flags(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.Flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3719 * * @property * def user_data(self): # <<<<<<<<<<<<<< * self._require_pointer() * return (<_callback_user_info>self._ptr.UserData).user_data */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9user_data_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9user_data_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_9user_data___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_9user_data___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3720 * @property * def user_data(self): * self._require_pointer() # <<<<<<<<<<<<<< * return (<_callback_user_info>self._ptr.UserData).user_data * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3721 * def user_data(self): * self._require_pointer() * return (<_callback_user_info>self._ptr.UserData).user_data # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self->_ptr->UserData)->user_data); __pyx_r = ((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self->_ptr->UserData)->user_data; goto __pyx_L0; /* "imgui/core.pyx":3719 * * @property * def user_data(self): # <<<<<<<<<<<<<< * self._require_pointer() * return (<_callback_user_info>self._ptr.UserData).user_data */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.user_data.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3724 * * @property * def event_char(self): # <<<<<<<<<<<<<< * self._require_pointer() * return chr(self._ptr.EventChar) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3725 * @property * def event_char(self): * self._require_pointer() # <<<<<<<<<<<<<< * return chr(self._ptr.EventChar) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3726 * def event_char(self): * self._require_pointer() * return chr(self._ptr.EventChar) # <<<<<<<<<<<<<< * * @event_char.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImWchar32(__pyx_v_self->_ptr->EventChar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3726, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_chr, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3726, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3724 * * @property * def event_char(self): # <<<<<<<<<<<<<< * self._require_pointer() * return chr(self._ptr.EventChar) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.event_char.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3729 * * @event_char.setter * def event_char(self, str event_char): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.EventChar = ord(event_char) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event_char); /*proto*/ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event_char) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_event_char), (&PyString_Type), 1, "event_char", 1))) __PYX_ERR(0, 3729, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), ((PyObject*)__pyx_v_event_char)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, PyObject *__pyx_v_event_char) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; long __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3730 * @event_char.setter * def event_char(self, str event_char): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.EventChar = ord(event_char) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3731 * def event_char(self, str event_char): * self._require_pointer() * self._ptr.EventChar = ord(event_char) # <<<<<<<<<<<<<< * * @property */ __pyx_t_4 = __Pyx_PyObject_Ord(__pyx_v_event_char); if (unlikely(__pyx_t_4 == ((long)(long)(Py_UCS4)-1))) __PYX_ERR(0, 3731, __pyx_L1_error) __pyx_v_self->_ptr->EventChar = __pyx_t_4; /* "imgui/core.pyx":3729 * * @event_char.setter * def event_char(self, str event_char): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.EventChar = ord(event_char) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.event_char.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3734 * * @property * def event_key(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.EventKey */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9event_key_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9event_key_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_9event_key___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_9event_key___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3735 * @property * def event_key(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.EventKey * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3736 * def event_key(self): * self._require_pointer() * return self._ptr.EventKey # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_ImGuiKey(__pyx_v_self->_ptr->EventKey); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3734 * * @property * def event_key(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.EventKey */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.event_key.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3739 * * @property * def buffer(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _from_bytes(self._ptr.Buf) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3740 * @property * def buffer(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _from_bytes(self._ptr.Buf) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3741 * def buffer(self): * self._require_pointer() * return _from_bytes(self._ptr.Buf) # <<<<<<<<<<<<<< * * @buffer.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->_ptr->Buf); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3739 * * @property * def buffer(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _from_bytes(self._ptr.Buf) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.buffer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3744 * * @buffer.setter * def buffer(self, str buffer): # <<<<<<<<<<<<<< * self._require_pointer() * _buffer = _bytes(buffer) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_buffer); /*proto*/ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_buffer) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_buffer), (&PyString_Type), 1, "buffer", 1))) __PYX_ERR(0, 3744, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), ((PyObject*)__pyx_v_buffer)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, PyObject *__pyx_v_buffer) { PyObject *__pyx_v__buffer = NULL; Py_ssize_t __pyx_v__buffer_length; int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; Py_ssize_t __pyx_t_4; int __pyx_t_5; char const *__pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3745 * @buffer.setter * def buffer(self, str buffer): * self._require_pointer() # <<<<<<<<<<<<<< * _buffer = _bytes(buffer) * _buffer_length = len(_buffer) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3746 * def buffer(self, str buffer): * self._require_pointer() * _buffer = _bytes(buffer) # <<<<<<<<<<<<<< * _buffer_length = len(_buffer) * if _buffer_length < self._ptr.BufSize: */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_buffer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__buffer = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3747 * self._require_pointer() * _buffer = _bytes(buffer) * _buffer_length = len(_buffer) # <<<<<<<<<<<<<< * if _buffer_length < self._ptr.BufSize: * # Note: When copying several characters at once, there is this */ if (unlikely(__pyx_v__buffer == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 3747, __pyx_L1_error) } __pyx_t_4 = PyBytes_GET_SIZE(__pyx_v__buffer); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 3747, __pyx_L1_error) __pyx_v__buffer_length = __pyx_t_4; /* "imgui/core.pyx":3748 * _buffer = _bytes(buffer) * _buffer_length = len(_buffer) * if _buffer_length < self._ptr.BufSize: # <<<<<<<<<<<<<< * # Note: When copying several characters at once, there is this * # one frame where _ptr.BufSize is not yet updated (bug?). */ __pyx_t_5 = ((__pyx_v__buffer_length < __pyx_v_self->_ptr->BufSize) != 0); if (__pyx_t_5) { /* "imgui/core.pyx":3752 * # one frame where _ptr.BufSize is not yet updated (bug?). * # thus we skip it here. * strncpy(self._ptr.Buf, _buffer, _buffer_length) # <<<<<<<<<<<<<< * self._ptr.BufTextLen = _buffer_length * self._ptr.BufDirty = True */ if (unlikely(__pyx_v__buffer == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 3752, __pyx_L1_error) } __pyx_t_6 = __Pyx_PyBytes_AsString(__pyx_v__buffer); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 3752, __pyx_L1_error) (void)(strncpy(__pyx_v_self->_ptr->Buf, __pyx_t_6, __pyx_v__buffer_length)); /* "imgui/core.pyx":3753 * # thus we skip it here. * strncpy(self._ptr.Buf, _buffer, _buffer_length) * self._ptr.BufTextLen = _buffer_length # <<<<<<<<<<<<<< * self._ptr.BufDirty = True * */ __pyx_v_self->_ptr->BufTextLen = __pyx_v__buffer_length; /* "imgui/core.pyx":3754 * strncpy(self._ptr.Buf, _buffer, _buffer_length) * self._ptr.BufTextLen = _buffer_length * self._ptr.BufDirty = True # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->BufDirty = 1; /* "imgui/core.pyx":3748 * _buffer = _bytes(buffer) * _buffer_length = len(_buffer) * if _buffer_length < self._ptr.BufSize: # <<<<<<<<<<<<<< * # Note: When copying several characters at once, there is this * # one frame where _ptr.BufSize is not yet updated (bug?). */ } /* "imgui/core.pyx":3744 * * @buffer.setter * def buffer(self, str buffer): # <<<<<<<<<<<<<< * self._require_pointer() * _buffer = _bytes(buffer) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.buffer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__buffer); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3757 * * @property * def buffer_text_length(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.BufTextLen */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_18buffer_text_length_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_18buffer_text_length_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_18buffer_text_length___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_18buffer_text_length___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3758 * @property * def buffer_text_length(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.BufTextLen * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3759 * def buffer_text_length(self): * self._require_pointer() * return self._ptr.BufTextLen # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->BufTextLen); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3757 * * @property * def buffer_text_length(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.BufTextLen */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.buffer_text_length.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3762 * * @property * def buffer_size(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.BufSize */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_11buffer_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_11buffer_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_11buffer_size___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_11buffer_size___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3763 * @property * def buffer_size(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.BufSize * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3764 * def buffer_size(self): * self._require_pointer() * return self._ptr.BufSize # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->BufSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3762 * * @property * def buffer_size(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.BufSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.buffer_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3767 * * @property * def buffer_dirty(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.BufDirty */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3768 * @property * def buffer_dirty(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.BufDirty * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3768, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3768, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3769 * def buffer_dirty(self): * self._require_pointer() * return self._ptr.BufDirty # <<<<<<<<<<<<<< * * @buffer_dirty.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_ptr->BufDirty); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3767 * * @property * def buffer_dirty(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.BufDirty */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.buffer_dirty.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3772 * * @buffer_dirty.setter * def buffer_dirty(self, bool dirty): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.BufDirty = dirty */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_dirty); /*proto*/ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_dirty) { bool __pyx_v_dirty; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_dirty); { __pyx_v_dirty = __Pyx_PyObject_IsTrue(__pyx_arg_dirty); if (unlikely((__pyx_v_dirty == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3772, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.buffer_dirty.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), ((bool)__pyx_v_dirty)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, bool __pyx_v_dirty) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3773 * @buffer_dirty.setter * def buffer_dirty(self, bool dirty): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.BufDirty = dirty * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3774 * def buffer_dirty(self, bool dirty): * self._require_pointer() * self._ptr.BufDirty = dirty # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->BufDirty = __pyx_v_dirty; /* "imgui/core.pyx":3772 * * @buffer_dirty.setter * def buffer_dirty(self, bool dirty): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.BufDirty = dirty */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.buffer_dirty.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3777 * * @property * def cursor_pos(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.CursorPos */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3778 * @property * def cursor_pos(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.CursorPos * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3779 * def cursor_pos(self): * self._require_pointer() * return self._ptr.CursorPos # <<<<<<<<<<<<<< * * @cursor_pos.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->CursorPos); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3777 * * @property * def cursor_pos(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.CursorPos */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.cursor_pos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3782 * * @cursor_pos.setter * def cursor_pos(self, int pos): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.CursorPos = pos */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pos); /*proto*/ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pos) { int __pyx_v_pos; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_pos); { __pyx_v_pos = __Pyx_PyInt_As_int(__pyx_arg_pos); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3782, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.cursor_pos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), ((int)__pyx_v_pos)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_pos) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3783 * @cursor_pos.setter * def cursor_pos(self, int pos): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.CursorPos = pos * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3784 * def cursor_pos(self, int pos): * self._require_pointer() * self._ptr.CursorPos = pos # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->CursorPos = __pyx_v_pos; /* "imgui/core.pyx":3782 * * @cursor_pos.setter * def cursor_pos(self, int pos): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.CursorPos = pos */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.cursor_pos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3787 * * @property * def selection_start(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SelectionStart */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3788 * @property * def selection_start(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.SelectionStart * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3789 * def selection_start(self): * self._require_pointer() * return self._ptr.SelectionStart # <<<<<<<<<<<<<< * * @selection_start.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->SelectionStart); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3787 * * @property * def selection_start(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SelectionStart */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.selection_start.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3792 * * @selection_start.setter * def selection_start(self, int start): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SelectionStart = start */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_start); /*proto*/ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_start) { int __pyx_v_start; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_start); { __pyx_v_start = __Pyx_PyInt_As_int(__pyx_arg_start); if (unlikely((__pyx_v_start == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3792, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.selection_start.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), ((int)__pyx_v_start)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_start) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3793 * @selection_start.setter * def selection_start(self, int start): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.SelectionStart = start * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3794 * def selection_start(self, int start): * self._require_pointer() * self._ptr.SelectionStart = start # <<<<<<<<<<<<<< * * @property */ __pyx_v_self->_ptr->SelectionStart = __pyx_v_start; /* "imgui/core.pyx":3792 * * @selection_start.setter * def selection_start(self, int start): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SelectionStart = start */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.selection_start.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3797 * * @property * def selection_end(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SelectionEnd */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end___get__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end___get__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3798 * @property * def selection_end(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.SelectionEnd * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3799 * def selection_end(self): * self._require_pointer() * return self._ptr.SelectionEnd # <<<<<<<<<<<<<< * * @selection_end.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_ptr->SelectionEnd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3797 * * @property * def selection_end(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.SelectionEnd */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.selection_end.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3802 * * @selection_end.setter * def selection_end(self, int end): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SelectionEnd = end */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_end); /*proto*/ static int __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_end) { int __pyx_v_end; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_end); { __pyx_v_end = __Pyx_PyInt_As_int(__pyx_arg_end); if (unlikely((__pyx_v_end == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3802, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.selection_end.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), ((int)__pyx_v_end)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_2__set__(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_end) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3803 * @selection_end.setter * def selection_end(self, int end): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.SelectionEnd = end * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3804 * def selection_end(self, int end): * self._require_pointer() * self._ptr.SelectionEnd = end # <<<<<<<<<<<<<< * * def delete_chars(self, int pos, int bytes_count): */ __pyx_v_self->_ptr->SelectionEnd = __pyx_v_end; /* "imgui/core.pyx":3802 * * @selection_end.setter * def selection_end(self, int end): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SelectionEnd = end */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.selection_end.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3806 * self._ptr.SelectionEnd = end * * def delete_chars(self, int pos, int bytes_count): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.DeleteChars(pos, bytes_count) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_5delete_chars(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_4delete_chars[] = "_ImGuiInputTextCallbackData.delete_chars(self, int pos, int bytes_count)"; static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_5delete_chars(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_pos; int __pyx_v_bytes_count; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("delete_chars (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pos,&__pyx_n_s_bytes_count,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pos)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bytes_count)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("delete_chars", 1, 2, 2, 1); __PYX_ERR(0, 3806, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "delete_chars") < 0)) __PYX_ERR(0, 3806, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_pos = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3806, __pyx_L3_error) __pyx_v_bytes_count = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_bytes_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3806, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("delete_chars", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3806, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.delete_chars", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_4delete_chars(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), __pyx_v_pos, __pyx_v_bytes_count); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_4delete_chars(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_pos, int __pyx_v_bytes_count) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("delete_chars", 0); /* "imgui/core.pyx":3807 * * def delete_chars(self, int pos, int bytes_count): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.DeleteChars(pos, bytes_count) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3808 * def delete_chars(self, int pos, int bytes_count): * self._require_pointer() * self._ptr.DeleteChars(pos, bytes_count) # <<<<<<<<<<<<<< * * def insert_chars(self, int pos, str text): */ try { __pyx_v_self->_ptr->DeleteChars(__pyx_v_pos, __pyx_v_bytes_count); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3808, __pyx_L1_error) } /* "imgui/core.pyx":3806 * self._ptr.SelectionEnd = end * * def delete_chars(self, int pos, int bytes_count): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.DeleteChars(pos, bytes_count) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.delete_chars", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3810 * self._ptr.DeleteChars(pos, bytes_count) * * def insert_chars(self, int pos, str text): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.InsertChars(pos, _bytes(text)) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_7insert_chars(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_6insert_chars[] = "_ImGuiInputTextCallbackData.insert_chars(self, int pos, str text)"; static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_7insert_chars(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_pos; PyObject *__pyx_v_text = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("insert_chars (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pos,&__pyx_n_s_text,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pos)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("insert_chars", 1, 2, 2, 1); __PYX_ERR(0, 3810, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "insert_chars") < 0)) __PYX_ERR(0, 3810, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_pos = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3810, __pyx_L3_error) __pyx_v_text = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("insert_chars", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3810, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.insert_chars", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 3810, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6insert_chars(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), __pyx_v_pos, __pyx_v_text); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_6insert_chars(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, int __pyx_v_pos, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("insert_chars", 0); /* "imgui/core.pyx":3811 * * def insert_chars(self, int pos, str text): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.InsertChars(pos, _bytes(text)) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3812 * def insert_chars(self, int pos, str text): * self._require_pointer() * self._ptr.InsertChars(pos, _bytes(text)) # <<<<<<<<<<<<<< * * def select_all(self): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 3812, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 3812, __pyx_L1_error) try { __pyx_v_self->_ptr->InsertChars(__pyx_v_pos, __pyx_t_4, NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3812, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3810 * self._ptr.DeleteChars(pos, bytes_count) * * def insert_chars(self, int pos, str text): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.InsertChars(pos, _bytes(text)) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.insert_chars", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3814 * self._ptr.InsertChars(pos, _bytes(text)) * * def select_all(self): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SelectAll() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9select_all(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_8select_all[] = "_ImGuiInputTextCallbackData.select_all(self)"; static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9select_all(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("select_all (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_8select_all(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_8select_all(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("select_all", 0); /* "imgui/core.pyx":3815 * * def select_all(self): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.SelectAll() * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3816 * def select_all(self): * self._require_pointer() * self._ptr.SelectAll() # <<<<<<<<<<<<<< * * def clear_selection(self): */ try { __pyx_v_self->_ptr->SelectAll(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3816, __pyx_L1_error) } /* "imgui/core.pyx":3814 * self._ptr.InsertChars(pos, _bytes(text)) * * def select_all(self): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.SelectAll() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.select_all", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3818 * self._ptr.SelectAll() * * def clear_selection(self): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.ClearSelection() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_11clear_selection(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_10clear_selection[] = "_ImGuiInputTextCallbackData.clear_selection(self)"; static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_11clear_selection(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("clear_selection (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10clear_selection(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_10clear_selection(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("clear_selection", 0); /* "imgui/core.pyx":3819 * * def clear_selection(self): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.ClearSelection() * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3820 * def clear_selection(self): * self._require_pointer() * self._ptr.ClearSelection() # <<<<<<<<<<<<<< * * def has_selection(self): */ try { __pyx_v_self->_ptr->ClearSelection(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3820, __pyx_L1_error) } /* "imgui/core.pyx":3818 * self._ptr.SelectAll() * * def clear_selection(self): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.ClearSelection() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.clear_selection", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3822 * self._ptr.ClearSelection() * * def has_selection(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.HasSelection() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13has_selection(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_12has_selection[] = "_ImGuiInputTextCallbackData.has_selection(self)"; static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13has_selection(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("has_selection (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12has_selection(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_12has_selection(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; bool __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("has_selection", 0); /* "imgui/core.pyx":3823 * * def has_selection(self): * self._require_pointer() # <<<<<<<<<<<<<< * return self._ptr.HasSelection() * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3824 * def has_selection(self): * self._require_pointer() * return self._ptr.HasSelection() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_4 = __pyx_v_self->_ptr->HasSelection(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3824, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3822 * self._ptr.ClearSelection() * * def has_selection(self): # <<<<<<<<<<<<<< * self._require_pointer() * return self._ptr.HasSelection() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.has_selection", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_14__reduce_cython__[] = "_ImGuiInputTextCallbackData.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_14__reduce_cython__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_16__setstate_cython__[] = "_ImGuiInputTextCallbackData.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_16__setstate_cython__(((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_27_ImGuiInputTextCallbackData_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiInputTextCallbackData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3828 * * * cdef void _ImGuiSizeCallback(cimgui.ImGuiSizeCallbackData* data): # <<<<<<<<<<<<<< * cdef _ImGuiSizeCallbackData callback_data = _ImGuiSizeCallbackData.from_ptr(data) * callback_data._require_pointer() */ static void __pyx_f_5imgui_4core__ImGuiSizeCallback(ImGuiSizeCallbackData *__pyx_v_data) { struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_callback_data = 0; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_ImGuiSizeCallback", 0); /* "imgui/core.pyx":3829 * * cdef void _ImGuiSizeCallback(cimgui.ImGuiSizeCallbackData* data): * cdef _ImGuiSizeCallbackData callback_data = _ImGuiSizeCallbackData.from_ptr(data) # <<<<<<<<<<<<<< * callback_data._require_pointer() * (<_callback_user_info>callback_data._ptr.UserData).callback_fn(callback_data) */ __pyx_t_1 = __pyx_f_5imgui_4core_22_ImGuiSizeCallbackData_from_ptr(__pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5imgui_4core__ImGuiSizeCallbackData))))) __PYX_ERR(0, 3829, __pyx_L1_error) __pyx_v_callback_data = ((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3830 * cdef void _ImGuiSizeCallback(cimgui.ImGuiSizeCallbackData* data): * cdef _ImGuiSizeCallbackData callback_data = _ImGuiSizeCallbackData.from_ptr(data) * callback_data._require_pointer() # <<<<<<<<<<<<<< * (<_callback_user_info>callback_data._ptr.UserData).callback_fn(callback_data) * return */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_callback_data), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3831 * cdef _ImGuiSizeCallbackData callback_data = _ImGuiSizeCallbackData.from_ptr(data) * callback_data._require_pointer() * (<_callback_user_info>callback_data._ptr.UserData).callback_fn(callback_data) # <<<<<<<<<<<<<< * return * */ __Pyx_INCREF(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_callback_data->_ptr->UserData)->callback_fn); __pyx_t_2 = ((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_callback_data->_ptr->UserData)->callback_fn; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_v_callback_data)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_v_callback_data)); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3832 * callback_data._require_pointer() * (<_callback_user_info>callback_data._ptr.UserData).callback_fn(callback_data) * return # <<<<<<<<<<<<<< * * cdef class _ImGuiSizeCallbackData(object): */ goto __pyx_L0; /* "imgui/core.pyx":3828 * * * cdef void _ImGuiSizeCallback(cimgui.ImGuiSizeCallbackData* data): # <<<<<<<<<<<<<< * cdef _ImGuiSizeCallbackData callback_data = _ImGuiSizeCallbackData.from_ptr(data) * callback_data._require_pointer() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_WriteUnraisable("imgui.core._ImGuiSizeCallback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_callback_data); __Pyx_RefNannyFinishContext(); } /* "imgui/core.pyx":3838 * cdef cimgui.ImGuiSizeCallbackData* _ptr * * def __init__(self): # <<<<<<<<<<<<<< * pass * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData___init__(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData___init__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3842 * * @staticmethod * cdef from_ptr(cimgui.ImGuiSizeCallbackData* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ static PyObject *__pyx_f_5imgui_4core_22_ImGuiSizeCallbackData_from_ptr(ImGuiSizeCallbackData *__pyx_v_ptr) { struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_instance = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("from_ptr", 0); /* "imgui/core.pyx":3843 * @staticmethod * cdef from_ptr(cimgui.ImGuiSizeCallbackData* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((__pyx_v_ptr == NULL) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":3844 * cdef from_ptr(cimgui.ImGuiSizeCallbackData* ptr): * if ptr == NULL: * return None # <<<<<<<<<<<<<< * * instance = _ImGuiSizeCallbackData() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":3843 * @staticmethod * cdef from_ptr(cimgui.ImGuiSizeCallbackData* ptr): * if ptr == NULL: # <<<<<<<<<<<<<< * return None * */ } /* "imgui/core.pyx":3846 * return None * * instance = _ImGuiSizeCallbackData() # <<<<<<<<<<<<<< * instance._ptr = ptr * return instance */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__ImGuiSizeCallbackData)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_instance = ((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3847 * * instance = _ImGuiSizeCallbackData() * instance._ptr = ptr # <<<<<<<<<<<<<< * return instance * */ __pyx_v_instance->_ptr = __pyx_v_ptr; /* "imgui/core.pyx":3848 * instance = _ImGuiSizeCallbackData() * instance._ptr = ptr * return instance # <<<<<<<<<<<<<< * * def _require_pointer(self): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_instance)); __pyx_r = ((PyObject *)__pyx_v_instance); goto __pyx_L0; /* "imgui/core.pyx":3842 * * @staticmethod * cdef from_ptr(cimgui.ImGuiSizeCallbackData* ptr): # <<<<<<<<<<<<<< * if ptr == NULL: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData.from_ptr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_instance); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3850 * return instance * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_22_ImGuiSizeCallbackData_2_require_pointer[] = "_ImGuiSizeCallbackData._require_pointer(self)"; static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_3_require_pointer(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_require_pointer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_2_require_pointer(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_2_require_pointer(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_require_pointer", 0); /* "imgui/core.pyx":3851 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ __pyx_t_1 = ((__pyx_v_self->_ptr == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "imgui/core.pyx":3853 * if self._ptr == NULL: * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_improperly_initialized, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":3852 * def _require_pointer(self): * if self._ptr == NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "%s improperly initialized" % self.__class__.__name__ * ) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 3852, __pyx_L1_error) /* "imgui/core.pyx":3851 * * def _require_pointer(self): * if self._ptr == NULL: # <<<<<<<<<<<<<< * raise RuntimeError( * "%s improperly initialized" % self.__class__.__name__ */ } /* "imgui/core.pyx":3856 * ) * * return self._ptr != NULL # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __Pyx_PyBool_FromLong((__pyx_v_self->_ptr != NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":3850 * return instance * * def _require_pointer(self): # <<<<<<<<<<<<<< * if self._ptr == NULL: * raise RuntimeError( */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData._require_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3859 * * @property * def user_data(self): # <<<<<<<<<<<<<< * self._require_pointer() * return (<_callback_user_info>self._ptr.UserData).user_data */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_9user_data_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_9user_data_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_9user_data___get__(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_9user_data___get__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3860 * @property * def user_data(self): * self._require_pointer() # <<<<<<<<<<<<<< * return (<_callback_user_info>self._ptr.UserData).user_data * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3861 * def user_data(self): * self._require_pointer() * return (<_callback_user_info>self._ptr.UserData).user_data # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self->_ptr->UserData)->user_data); __pyx_r = ((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_v_self->_ptr->UserData)->user_data; goto __pyx_L0; /* "imgui/core.pyx":3859 * * @property * def user_data(self): # <<<<<<<<<<<<<< * self._require_pointer() * return (<_callback_user_info>self._ptr.UserData).user_data */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData.user_data.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3864 * * @property * def pos(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.Pos) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_3pos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_3pos_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_3pos___get__(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_3pos___get__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3865 * @property * def pos(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.Pos) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3866 * def pos(self): * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.Pos) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->Pos); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3864 * * @property * def pos(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.Pos) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData.pos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3869 * * @property * def current_size(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.CurrentSize) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12current_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12current_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12current_size___get__(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12current_size___get__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3870 * @property * def current_size(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.CurrentSize) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3871 * def current_size(self): * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.CurrentSize) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->CurrentSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3869 * * @property * def current_size(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.CurrentSize) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData.current_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3874 * * @property * def desired_size(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DesiredSize) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size___get__(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size___get__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "imgui/core.pyx":3875 * @property * def desired_size(self): * self._require_pointer() # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(self._ptr.DesiredSize) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3876 * def desired_size(self): * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DesiredSize) # <<<<<<<<<<<<<< * * @desired_size.setter */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_v_self->_ptr->DesiredSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3874 * * @property * def desired_size(self): # <<<<<<<<<<<<<< * self._require_pointer() * return _cast_ImVec2_tuple(self._ptr.DesiredSize) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData.desired_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3879 * * @desired_size.setter * def desired_size(self, tuple size): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.DesiredSize = _cast_args_ImVec2(size[0], size[1]) */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_size); /*proto*/ static int __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_size) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_size), (&PyTuple_Type), 1, "size", 1))) __PYX_ERR(0, 3879, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_2__set__(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self), ((PyObject*)__pyx_v_size)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_2__set__(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self, PyObject *__pyx_v_size) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; float __pyx_t_4; float __pyx_t_5; ImVec2 __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); /* "imgui/core.pyx":3880 * @desired_size.setter * def desired_size(self, tuple size): * self._require_pointer() # <<<<<<<<<<<<<< * self._ptr.DesiredSize = _cast_args_ImVec2(size[0], size[1]) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_require_pointer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3881 * def desired_size(self, tuple size): * self._require_pointer() * self._ptr.DesiredSize = _cast_args_ImVec2(size[0], size[1]) # <<<<<<<<<<<<<< * * _io_clipboard = {} */ if (unlikely(__pyx_v_size == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 3881, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v_size, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3881, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v_size == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 3881, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v_size, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_5 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 3881, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_t_4, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3881, __pyx_L1_error) __pyx_v_self->_ptr->DesiredSize = __pyx_t_6; /* "imgui/core.pyx":3879 * * @desired_size.setter * def desired_size(self, tuple size): # <<<<<<<<<<<<<< * self._require_pointer() * self._ptr.DesiredSize = _cast_args_ImVec2(size[0], size[1]) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData.desired_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_22_ImGuiSizeCallbackData_4__reduce_cython__[] = "_ImGuiSizeCallbackData.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_4__reduce_cython__(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_22_ImGuiSizeCallbackData_6__setstate_cython__[] = "_ImGuiSizeCallbackData.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_6__setstate_cython__(((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22_ImGuiSizeCallbackData_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ImGuiSizeCallbackData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3884 * * _io_clipboard = {} * def get_io(): # <<<<<<<<<<<<<< * return _IO() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_1get_io(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_get_io[] = "get_io()"; static PyMethodDef __pyx_mdef_5imgui_4core_1get_io = {"get_io", (PyCFunction)__pyx_pw_5imgui_4core_1get_io, METH_NOARGS, __pyx_doc_5imgui_4core_get_io}; static PyObject *__pyx_pw_5imgui_4core_1get_io(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_io (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_get_io(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_get_io(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_io", 0); /* "imgui/core.pyx":3885 * _io_clipboard = {} * def get_io(): * return _IO() # <<<<<<<<<<<<<< * * def get_style(): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__IO)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":3884 * * _io_clipboard = {} * def get_io(): # <<<<<<<<<<<<<< * return _IO() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.get_io", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3887 * return _IO() * * def get_style(): # <<<<<<<<<<<<<< * return GuiStyle.from_ref(cimgui.GetStyle()) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_3get_style(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_2get_style[] = "get_style()"; static PyMethodDef __pyx_mdef_5imgui_4core_3get_style = {"get_style", (PyCFunction)__pyx_pw_5imgui_4core_3get_style, METH_NOARGS, __pyx_doc_5imgui_4core_2get_style}; static PyObject *__pyx_pw_5imgui_4core_3get_style(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_style (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_2get_style(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_2get_style(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_FakeReference __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_style", 0); /* "imgui/core.pyx":3888 * * def get_style(): * return GuiStyle.from_ref(cimgui.GetStyle()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetStyle(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3888, __pyx_L1_error) } __pyx_t_2 = ((PyObject *)__pyx_f_5imgui_4core_8GuiStyle_from_ref(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3887 * return _IO() * * def get_style(): # <<<<<<<<<<<<<< * return GuiStyle.from_ref(cimgui.GetStyle()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_style", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3891 * * * def new_frame(): # <<<<<<<<<<<<<< * """Start a new frame. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_5new_frame(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_4new_frame[] = "new_frame()\nStart a new frame.\n\n After calling this you can submit any command from this point until\n next :any:`new_frame()` or :any:`render()`.\n\n .. wraps::\n void NewFrame()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_5new_frame = {"new_frame", (PyCFunction)__pyx_pw_5imgui_4core_5new_frame, METH_NOARGS, __pyx_doc_5imgui_4core_4new_frame}; static PyObject *__pyx_pw_5imgui_4core_5new_frame(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("new_frame (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_4new_frame(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_4new_frame(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("new_frame", 0); /* "imgui/core.pyx":3900 * void NewFrame() * """ * get_current_context()._keepalive_cache.clear() # <<<<<<<<<<<<<< * cimgui.NewFrame() * */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_get_current_context); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_keepalive_cache); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_clear); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":3901 * """ * get_current_context()._keepalive_cache.clear() * cimgui.NewFrame() # <<<<<<<<<<<<<< * * */ try { ImGui::NewFrame(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3901, __pyx_L1_error) } /* "imgui/core.pyx":3891 * * * def new_frame(): # <<<<<<<<<<<<<< * """Start a new frame. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.new_frame", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3904 * * * def end_frame(): # <<<<<<<<<<<<<< * """End a frame. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_7end_frame(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_6end_frame[] = "end_frame()\nEnd a frame.\n\n ends the ImGui frame. automatically called by Render(), so most likely\n don't need to ever call that yourself directly. If you don't need to\n render you may call end_frame() but you'll have wasted CPU already.\n If you don't need to render, better to not create any imgui windows\n instead!\n\n .. wraps::\n void EndFrame()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_7end_frame = {"end_frame", (PyCFunction)__pyx_pw_5imgui_4core_7end_frame, METH_NOARGS, __pyx_doc_5imgui_4core_6end_frame}; static PyObject *__pyx_pw_5imgui_4core_7end_frame(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_frame (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_6end_frame(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_6end_frame(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_frame", 0); /* "imgui/core.pyx":3916 * void EndFrame() * """ * cimgui.EndFrame() # <<<<<<<<<<<<<< * * */ try { ImGui::EndFrame(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3916, __pyx_L1_error) } /* "imgui/core.pyx":3904 * * * def end_frame(): # <<<<<<<<<<<<<< * """End a frame. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_frame", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3919 * * * def render(): # <<<<<<<<<<<<<< * """Finalize frame, set rendering data, and run render callback (if set). * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9render(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_8render[] = "render()\nFinalize frame, set rendering data, and run render callback (if set).\n\n .. wraps::\n void Render()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_9render = {"render", (PyCFunction)__pyx_pw_5imgui_4core_9render, METH_NOARGS, __pyx_doc_5imgui_4core_8render}; static PyObject *__pyx_pw_5imgui_4core_9render(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("render (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_8render(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_8render(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("render", 0); /* "imgui/core.pyx":3925 * void Render() * """ * cimgui.Render() # <<<<<<<<<<<<<< * * */ try { ImGui::Render(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3925, __pyx_L1_error) } /* "imgui/core.pyx":3919 * * * def render(): # <<<<<<<<<<<<<< * """Finalize frame, set rendering data, and run render callback (if set). * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.render", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3928 * * * def show_user_guide(): # <<<<<<<<<<<<<< * """Show ImGui user guide editor. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_11show_user_guide(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_10show_user_guide[] = "show_user_guide()\nShow ImGui user guide editor.\n\n .. visual-example::\n :width: 700\n :height: 500\n :auto_layout:\n\n imgui.begin(\"Example: user guide\")\n imgui.show_user_guide()\n imgui.end()\n\n\n .. wraps::\n void ShowUserGuide()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_11show_user_guide = {"show_user_guide", (PyCFunction)__pyx_pw_5imgui_4core_11show_user_guide, METH_NOARGS, __pyx_doc_5imgui_4core_10show_user_guide}; static PyObject *__pyx_pw_5imgui_4core_11show_user_guide(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("show_user_guide (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_10show_user_guide(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_10show_user_guide(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("show_user_guide", 0); /* "imgui/core.pyx":3944 * void ShowUserGuide() * """ * cimgui.ShowUserGuide() # <<<<<<<<<<<<<< * * */ try { ImGui::ShowUserGuide(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3944, __pyx_L1_error) } /* "imgui/core.pyx":3928 * * * def show_user_guide(): # <<<<<<<<<<<<<< * """Show ImGui user guide editor. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.show_user_guide", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3947 * * * def get_version(): # <<<<<<<<<<<<<< * """Get the version of Dear ImGui. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13get_version(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_12get_version[] = "get_version()\nGet the version of Dear ImGui.\n\n .. wraps::\n void GetVersion()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_13get_version = {"get_version", (PyCFunction)__pyx_pw_5imgui_4core_13get_version, METH_NOARGS, __pyx_doc_5imgui_4core_12get_version}; static PyObject *__pyx_pw_5imgui_4core_13get_version(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_version (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_12get_version(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_12get_version(CYTHON_UNUSED PyObject *__pyx_self) { char const *__pyx_v_c_string; CYTHON_UNUSED PyObject *__pyx_v_py_string = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_version", 0); /* "imgui/core.pyx":3953 * void GetVersion() * """ * cdef const char* c_string = cimgui.GetVersion() # <<<<<<<<<<<<<< * cdef bytes py_string = c_string * return c_string.decode("utf-8") */ try { __pyx_t_1 = ImGui::GetVersion(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3953, __pyx_L1_error) } __pyx_v_c_string = __pyx_t_1; /* "imgui/core.pyx":3954 * """ * cdef const char* c_string = cimgui.GetVersion() * cdef bytes py_string = c_string # <<<<<<<<<<<<<< * return c_string.decode("utf-8") * */ __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_c_string); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_py_string = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3955 * cdef const char* c_string = cimgui.GetVersion() * cdef bytes py_string = c_string * return c_string.decode("utf-8") # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_decode_c_string(__pyx_v_c_string, 0, strlen(__pyx_v_c_string), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":3947 * * * def get_version(): # <<<<<<<<<<<<<< * """Get the version of Dear ImGui. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_version", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_py_string); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3958 * * * def style_colors_dark(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Dark. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_15style_colors_dark(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_14style_colors_dark[] = "style_colors_dark(GuiStyle dst=None)\nSet the style to Dark.\n\n new, recommended style (default)\n\n .. wraps::\n void StyleColorsDark(ImGuiStyle* dst = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_15style_colors_dark = {"style_colors_dark", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_15style_colors_dark, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_14style_colors_dark}; static PyObject *__pyx_pw_5imgui_4core_15style_colors_dark(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("style_colors_dark (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst,0}; PyObject* values[1] = {0}; values[0] = (PyObject *)((struct __pyx_obj_5imgui_4core_GuiStyle *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dst); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "style_colors_dark") < 0)) __PYX_ERR(0, 3958, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_dst = ((struct __pyx_obj_5imgui_4core_GuiStyle *)values[0]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("style_colors_dark", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3958, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.style_colors_dark", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dst), __pyx_ptype_5imgui_4core_GuiStyle, 1, "dst", 0))) __PYX_ERR(0, 3958, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_14style_colors_dark(__pyx_self, __pyx_v_dst); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14style_colors_dark(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("style_colors_dark", 0); /* "imgui/core.pyx":3966 * void StyleColorsDark(ImGuiStyle* dst = NULL) * """ * if dst: # <<<<<<<<<<<<<< * cimgui.StyleColorsDark(dst._ptr) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_dst)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 3966, __pyx_L1_error) if (__pyx_t_1) { /* "imgui/core.pyx":3967 * """ * if dst: * cimgui.StyleColorsDark(dst._ptr) # <<<<<<<<<<<<<< * else: * cimgui.StyleColorsDark(NULL) */ try { ImGui::StyleColorsDark(__pyx_v_dst->_ptr); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3967, __pyx_L1_error) } /* "imgui/core.pyx":3966 * void StyleColorsDark(ImGuiStyle* dst = NULL) * """ * if dst: # <<<<<<<<<<<<<< * cimgui.StyleColorsDark(dst._ptr) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":3969 * cimgui.StyleColorsDark(dst._ptr) * else: * cimgui.StyleColorsDark(NULL) # <<<<<<<<<<<<<< * * */ /*else*/ { try { ImGui::StyleColorsDark(NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3969, __pyx_L1_error) } } __pyx_L3:; /* "imgui/core.pyx":3958 * * * def style_colors_dark(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Dark. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.style_colors_dark", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3972 * * * def style_colors_classic(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Classic. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_17style_colors_classic(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_16style_colors_classic[] = "style_colors_classic(GuiStyle dst=None)\nSet the style to Classic.\n\n classic imgui style.\n\n .. wraps::\n void StyleColorsClassic(ImGuiStyle* dst = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_17style_colors_classic = {"style_colors_classic", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_17style_colors_classic, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_16style_colors_classic}; static PyObject *__pyx_pw_5imgui_4core_17style_colors_classic(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("style_colors_classic (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst,0}; PyObject* values[1] = {0}; values[0] = (PyObject *)((struct __pyx_obj_5imgui_4core_GuiStyle *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dst); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "style_colors_classic") < 0)) __PYX_ERR(0, 3972, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_dst = ((struct __pyx_obj_5imgui_4core_GuiStyle *)values[0]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("style_colors_classic", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3972, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.style_colors_classic", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dst), __pyx_ptype_5imgui_4core_GuiStyle, 1, "dst", 0))) __PYX_ERR(0, 3972, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_16style_colors_classic(__pyx_self, __pyx_v_dst); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16style_colors_classic(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("style_colors_classic", 0); /* "imgui/core.pyx":3980 * void StyleColorsClassic(ImGuiStyle* dst = NULL) * """ * if dst: # <<<<<<<<<<<<<< * cimgui.StyleColorsClassic(dst._ptr) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_dst)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 3980, __pyx_L1_error) if (__pyx_t_1) { /* "imgui/core.pyx":3981 * """ * if dst: * cimgui.StyleColorsClassic(dst._ptr) # <<<<<<<<<<<<<< * else: * cimgui.StyleColorsClassic(NULL) */ try { ImGui::StyleColorsClassic(__pyx_v_dst->_ptr); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3981, __pyx_L1_error) } /* "imgui/core.pyx":3980 * void StyleColorsClassic(ImGuiStyle* dst = NULL) * """ * if dst: # <<<<<<<<<<<<<< * cimgui.StyleColorsClassic(dst._ptr) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":3983 * cimgui.StyleColorsClassic(dst._ptr) * else: * cimgui.StyleColorsClassic(NULL) # <<<<<<<<<<<<<< * * */ /*else*/ { try { ImGui::StyleColorsClassic(NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3983, __pyx_L1_error) } } __pyx_L3:; /* "imgui/core.pyx":3972 * * * def style_colors_classic(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Classic. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.style_colors_classic", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":3987 * * * def style_colors_light(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Light. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19style_colors_light(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_18style_colors_light[] = "style_colors_light(GuiStyle dst=None)\nSet the style to Light.\n\n best used with borders and a custom, thicker font\n\n .. wraps::\n void StyleColorsLight(ImGuiStyle* dst = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_19style_colors_light = {"style_colors_light", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_19style_colors_light, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_18style_colors_light}; static PyObject *__pyx_pw_5imgui_4core_19style_colors_light(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("style_colors_light (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst,0}; PyObject* values[1] = {0}; values[0] = (PyObject *)((struct __pyx_obj_5imgui_4core_GuiStyle *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dst); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "style_colors_light") < 0)) __PYX_ERR(0, 3987, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_dst = ((struct __pyx_obj_5imgui_4core_GuiStyle *)values[0]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("style_colors_light", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3987, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.style_colors_light", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dst), __pyx_ptype_5imgui_4core_GuiStyle, 1, "dst", 0))) __PYX_ERR(0, 3987, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_18style_colors_light(__pyx_self, __pyx_v_dst); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_18style_colors_light(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_dst) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("style_colors_light", 0); /* "imgui/core.pyx":3995 * void StyleColorsLight(ImGuiStyle* dst = NULL) * """ * if dst: # <<<<<<<<<<<<<< * cimgui.StyleColorsLight(dst._ptr) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_dst)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 3995, __pyx_L1_error) if (__pyx_t_1) { /* "imgui/core.pyx":3996 * """ * if dst: * cimgui.StyleColorsLight(dst._ptr) # <<<<<<<<<<<<<< * else: * cimgui.StyleColorsLight(NULL) */ try { ImGui::StyleColorsLight(__pyx_v_dst->_ptr); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3996, __pyx_L1_error) } /* "imgui/core.pyx":3995 * void StyleColorsLight(ImGuiStyle* dst = NULL) * """ * if dst: # <<<<<<<<<<<<<< * cimgui.StyleColorsLight(dst._ptr) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":3998 * cimgui.StyleColorsLight(dst._ptr) * else: * cimgui.StyleColorsLight(NULL) # <<<<<<<<<<<<<< * * */ /*else*/ { try { ImGui::StyleColorsLight(NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 3998, __pyx_L1_error) } } __pyx_L3:; /* "imgui/core.pyx":3987 * * * def style_colors_light(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Light. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.style_colors_light", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4001 * * * def show_style_editor(GuiStyle style=None): # <<<<<<<<<<<<<< * """Show ImGui style editor. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_21show_style_editor(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_20show_style_editor[] = "show_style_editor(GuiStyle style=None)\nShow ImGui style editor.\n\n .. visual-example::\n :width: 300\n :height: 300\n :auto_layout:\n\n imgui.begin(\"Example: my style editor\")\n imgui.show_style_editor()\n imgui.end()\n\n Args:\n style (GuiStyle): style editor state container.\n\n .. wraps::\n void ShowStyleEditor(ImGuiStyle* ref = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_21show_style_editor = {"show_style_editor", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_21show_style_editor, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_20show_style_editor}; static PyObject *__pyx_pw_5imgui_4core_21show_style_editor(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_style = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("show_style_editor (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_style,0}; PyObject* values[1] = {0}; values[0] = (PyObject *)((struct __pyx_obj_5imgui_4core_GuiStyle *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_style); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "show_style_editor") < 0)) __PYX_ERR(0, 4001, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_style = ((struct __pyx_obj_5imgui_4core_GuiStyle *)values[0]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("show_style_editor", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4001, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.show_style_editor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_style), __pyx_ptype_5imgui_4core_GuiStyle, 1, "style", 0))) __PYX_ERR(0, 4001, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_20show_style_editor(__pyx_self, __pyx_v_style); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20show_style_editor(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core_GuiStyle *__pyx_v_style) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("show_style_editor", 0); /* "imgui/core.pyx":4019 * void ShowStyleEditor(ImGuiStyle* ref = NULL) * """ * if style: # <<<<<<<<<<<<<< * cimgui.ShowStyleEditor(style._ptr) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_style)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 4019, __pyx_L1_error) if (__pyx_t_1) { /* "imgui/core.pyx":4020 * """ * if style: * cimgui.ShowStyleEditor(style._ptr) # <<<<<<<<<<<<<< * else: * cimgui.ShowStyleEditor() */ try { ImGui::ShowStyleEditor(__pyx_v_style->_ptr); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4020, __pyx_L1_error) } /* "imgui/core.pyx":4019 * void ShowStyleEditor(ImGuiStyle* ref = NULL) * """ * if style: # <<<<<<<<<<<<<< * cimgui.ShowStyleEditor(style._ptr) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":4022 * cimgui.ShowStyleEditor(style._ptr) * else: * cimgui.ShowStyleEditor() # <<<<<<<<<<<<<< * * */ /*else*/ { try { ImGui::ShowStyleEditor(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4022, __pyx_L1_error) } } __pyx_L3:; /* "imgui/core.pyx":4001 * * * def show_style_editor(GuiStyle style=None): # <<<<<<<<<<<<<< * """Show ImGui style editor. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.show_style_editor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4025 * * * def show_demo_window(closable=False): # <<<<<<<<<<<<<< * """Show ImGui demo window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23show_demo_window(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_22show_demo_window[] = "show_demo_window(closable=False)\nShow ImGui demo window.\n\n .. visual-example::\n :width: 700\n :height: 600\n :auto_layout:\n\n imgui.show_demo_window()\n\n Args:\n closable (bool): define if window is closable.\n\n Returns:\n bool: True if window is not closed (False trigerred by close button).\n\n .. wraps::\n void ShowDemoWindow(bool* p_open = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_23show_demo_window = {"show_demo_window", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_23show_demo_window, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_22show_demo_window}; static PyObject *__pyx_pw_5imgui_4core_23show_demo_window(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_closable = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("show_demo_window (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_closable,0}; PyObject* values[1] = {0}; values[0] = ((PyObject *)Py_False); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_closable); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "show_demo_window") < 0)) __PYX_ERR(0, 4025, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_closable = values[0]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("show_demo_window", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4025, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.show_demo_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_22show_demo_window(__pyx_self, __pyx_v_closable); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_22show_demo_window(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_closable) { bool __pyx_v_opened; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("show_demo_window", 0); /* "imgui/core.pyx":4044 * void ShowDemoWindow(bool* p_open = NULL) * """ * cdef cimgui.bool opened = True # <<<<<<<<<<<<<< * * if closable: */ __pyx_v_opened = 1; /* "imgui/core.pyx":4046 * cdef cimgui.bool opened = True * * if closable: # <<<<<<<<<<<<<< * cimgui.ShowDemoWindow(&opened) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_closable); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 4046, __pyx_L1_error) if (__pyx_t_1) { /* "imgui/core.pyx":4047 * * if closable: * cimgui.ShowDemoWindow(&opened) # <<<<<<<<<<<<<< * else: * cimgui.ShowDemoWindow() */ try { ImGui::ShowDemoWindow((&__pyx_v_opened)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4047, __pyx_L1_error) } /* "imgui/core.pyx":4046 * cdef cimgui.bool opened = True * * if closable: # <<<<<<<<<<<<<< * cimgui.ShowDemoWindow(&opened) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":4049 * cimgui.ShowDemoWindow(&opened) * else: * cimgui.ShowDemoWindow() # <<<<<<<<<<<<<< * * return opened */ /*else*/ { try { ImGui::ShowDemoWindow(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4049, __pyx_L1_error) } } __pyx_L3:; /* "imgui/core.pyx":4051 * cimgui.ShowDemoWindow() * * return opened # <<<<<<<<<<<<<< * * def show_about_window(closable=False): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4025 * * * def show_demo_window(closable=False): # <<<<<<<<<<<<<< * """Show ImGui demo window. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.show_demo_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4053 * return opened * * def show_about_window(closable=False): # <<<<<<<<<<<<<< * """ Create About window. * Display Dear ImGui version, credits and build/system information. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_25show_about_window(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_24show_about_window[] = "show_about_window(closable=False)\n Create About window. \n Display Dear ImGui version, credits and build/system information.\n \n Args:\n closable (bool): define if window is closable\n \n Return:\n bool: True if window is not closed (False trigerred by close button).\n \n .. wraps::\n void ShowAboutWindow(bool* p_open = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_25show_about_window = {"show_about_window", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_25show_about_window, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_24show_about_window}; static PyObject *__pyx_pw_5imgui_4core_25show_about_window(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_closable = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("show_about_window (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_closable,0}; PyObject* values[1] = {0}; values[0] = ((PyObject *)Py_False); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_closable); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "show_about_window") < 0)) __PYX_ERR(0, 4053, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_closable = values[0]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("show_about_window", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4053, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.show_about_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_24show_about_window(__pyx_self, __pyx_v_closable); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_24show_about_window(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_closable) { bool __pyx_v_opened; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("show_about_window", 0); /* "imgui/core.pyx":4066 * void ShowAboutWindow(bool* p_open = NULL) * """ * cdef cimgui.bool opened = True # <<<<<<<<<<<<<< * * if closable: */ __pyx_v_opened = 1; /* "imgui/core.pyx":4068 * cdef cimgui.bool opened = True * * if closable: # <<<<<<<<<<<<<< * cimgui.ShowAboutWindow(&opened) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_closable); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 4068, __pyx_L1_error) if (__pyx_t_1) { /* "imgui/core.pyx":4069 * * if closable: * cimgui.ShowAboutWindow(&opened) # <<<<<<<<<<<<<< * else: * cimgui.ShowAboutWindow() */ try { ImGui::ShowAboutWindow((&__pyx_v_opened)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4069, __pyx_L1_error) } /* "imgui/core.pyx":4068 * cdef cimgui.bool opened = True * * if closable: # <<<<<<<<<<<<<< * cimgui.ShowAboutWindow(&opened) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":4071 * cimgui.ShowAboutWindow(&opened) * else: * cimgui.ShowAboutWindow() # <<<<<<<<<<<<<< * * return opened */ /*else*/ { try { ImGui::ShowAboutWindow(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4071, __pyx_L1_error) } } __pyx_L3:; /* "imgui/core.pyx":4073 * cimgui.ShowAboutWindow() * * return opened # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4053 * return opened * * def show_about_window(closable=False): # <<<<<<<<<<<<<< * """ Create About window. * Display Dear ImGui version, credits and build/system information. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.show_about_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4076 * * * def show_test_window(): # <<<<<<<<<<<<<< * """Show ImGui demo window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_27show_test_window(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_26show_test_window[] = "show_test_window()\nShow ImGui demo window.\n\n .. visual-example::\n :width: 700\n :height: 600\n :auto_layout:\n\n imgui.show_test_window()\n\n .. wraps::\n void ShowDemoWindow()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_27show_test_window = {"show_test_window", (PyCFunction)__pyx_pw_5imgui_4core_27show_test_window, METH_NOARGS, __pyx_doc_5imgui_4core_26show_test_window}; static PyObject *__pyx_pw_5imgui_4core_27show_test_window(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("show_test_window (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_26show_test_window(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_26show_test_window(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("show_test_window", 0); /* "imgui/core.pyx":4089 * void ShowDemoWindow() * """ * cimgui.ShowDemoWindow() # <<<<<<<<<<<<<< * * */ try { ImGui::ShowDemoWindow(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4089, __pyx_L1_error) } /* "imgui/core.pyx":4076 * * * def show_test_window(): # <<<<<<<<<<<<<< * """Show ImGui demo window. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.show_test_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4093 * * * def show_metrics_window(closable=False): # <<<<<<<<<<<<<< * """Show ImGui metrics window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_29show_metrics_window(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_28show_metrics_window[] = "show_metrics_window(closable=False)\nShow ImGui metrics window.\n\n .. visual-example::\n :width: 700\n :height: 200\n :auto_layout:\n\n imgui.show_metrics_window()\n\n Args:\n closable (bool): define if window is closable.\n\n Returns:\n bool: True if window is not closed (False trigerred by close button).\n\n .. wraps::\n void ShowMetricsWindow(bool* p_open = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_29show_metrics_window = {"show_metrics_window", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_29show_metrics_window, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_28show_metrics_window}; static PyObject *__pyx_pw_5imgui_4core_29show_metrics_window(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_closable = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("show_metrics_window (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_closable,0}; PyObject* values[1] = {0}; values[0] = ((PyObject *)Py_False); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_closable); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "show_metrics_window") < 0)) __PYX_ERR(0, 4093, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_closable = values[0]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("show_metrics_window", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4093, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.show_metrics_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_28show_metrics_window(__pyx_self, __pyx_v_closable); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_28show_metrics_window(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_closable) { bool __pyx_v_opened; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("show_metrics_window", 0); /* "imgui/core.pyx":4112 * void ShowMetricsWindow(bool* p_open = NULL) * """ * cdef cimgui.bool opened = True # <<<<<<<<<<<<<< * * if closable: */ __pyx_v_opened = 1; /* "imgui/core.pyx":4114 * cdef cimgui.bool opened = True * * if closable: # <<<<<<<<<<<<<< * cimgui.ShowMetricsWindow(&opened) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_closable); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 4114, __pyx_L1_error) if (__pyx_t_1) { /* "imgui/core.pyx":4115 * * if closable: * cimgui.ShowMetricsWindow(&opened) # <<<<<<<<<<<<<< * else: * cimgui.ShowMetricsWindow() */ try { ImGui::ShowMetricsWindow((&__pyx_v_opened)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4115, __pyx_L1_error) } /* "imgui/core.pyx":4114 * cdef cimgui.bool opened = True * * if closable: # <<<<<<<<<<<<<< * cimgui.ShowMetricsWindow(&opened) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":4117 * cimgui.ShowMetricsWindow(&opened) * else: * cimgui.ShowMetricsWindow() # <<<<<<<<<<<<<< * * return opened */ /*else*/ { try { ImGui::ShowMetricsWindow(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4117, __pyx_L1_error) } } __pyx_L3:; /* "imgui/core.pyx":4119 * cimgui.ShowMetricsWindow() * * return opened # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4093 * * * def show_metrics_window(closable=False): # <<<<<<<<<<<<<< * """Show ImGui metrics window. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.show_metrics_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4122 * * * def show_style_selector(str label): # <<<<<<<<<<<<<< * return cimgui.ShowStyleSelector(_bytes(label)) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_31show_style_selector(PyObject *__pyx_self, PyObject *__pyx_v_label); /*proto*/ static char __pyx_doc_5imgui_4core_30show_style_selector[] = "show_style_selector(str label)"; static PyMethodDef __pyx_mdef_5imgui_4core_31show_style_selector = {"show_style_selector", (PyCFunction)__pyx_pw_5imgui_4core_31show_style_selector, METH_O, __pyx_doc_5imgui_4core_30show_style_selector}; static PyObject *__pyx_pw_5imgui_4core_31show_style_selector(PyObject *__pyx_self, PyObject *__pyx_v_label) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("show_style_selector (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 4122, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_30show_style_selector(__pyx_self, ((PyObject*)__pyx_v_label)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_30show_style_selector(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("show_style_selector", 0); /* "imgui/core.pyx":4123 * * def show_style_selector(str label): * return cimgui.ShowStyleSelector(_bytes(label)) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 4123, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 4123, __pyx_L1_error) try { __pyx_t_3 = ImGui::ShowStyleSelector(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4123, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":4122 * * * def show_style_selector(str label): # <<<<<<<<<<<<<< * return cimgui.ShowStyleSelector(_bytes(label)) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.show_style_selector", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4126 * * * def show_font_selector(str label): # <<<<<<<<<<<<<< * cimgui.ShowFontSelector(_bytes(label)) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_33show_font_selector(PyObject *__pyx_self, PyObject *__pyx_v_label); /*proto*/ static char __pyx_doc_5imgui_4core_32show_font_selector[] = "show_font_selector(str label)"; static PyMethodDef __pyx_mdef_5imgui_4core_33show_font_selector = {"show_font_selector", (PyCFunction)__pyx_pw_5imgui_4core_33show_font_selector, METH_O, __pyx_doc_5imgui_4core_32show_font_selector}; static PyObject *__pyx_pw_5imgui_4core_33show_font_selector(PyObject *__pyx_self, PyObject *__pyx_v_label) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("show_font_selector (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 4126, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_32show_font_selector(__pyx_self, ((PyObject*)__pyx_v_label)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_32show_font_selector(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("show_font_selector", 0); /* "imgui/core.pyx":4127 * * def show_font_selector(str label): * cimgui.ShowFontSelector(_bytes(label)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 4127, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 4127, __pyx_L1_error) try { ImGui::ShowFontSelector(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4127, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":4126 * * * def show_font_selector(str label): # <<<<<<<<<<<<<< * cimgui.ShowFontSelector(_bytes(label)) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.show_font_selector", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4147 * cdef readonly bool opened * * def __cinit__(self, bool expanded, bool opened): # <<<<<<<<<<<<<< * self.expanded = expanded * self.opened = opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_9_BeginEnd_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_9_BeginEnd_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_expanded; bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_expanded,&__pyx_n_s_opened,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_expanded)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); __PYX_ERR(0, 4147, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4147, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_expanded = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_expanded == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4147, __pyx_L3_error) __pyx_v_opened = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4147, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4147, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEnd.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd___cinit__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self), __pyx_v_expanded, __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_9_BeginEnd___cinit__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, bool __pyx_v_expanded, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":4148 * * def __cinit__(self, bool expanded, bool opened): * self.expanded = expanded # <<<<<<<<<<<<<< * self.opened = opened * */ __pyx_v_self->expanded = __pyx_v_expanded; /* "imgui/core.pyx":4149 * def __cinit__(self, bool expanded, bool opened): * self.expanded = expanded * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":4147 * cdef readonly bool opened * * def __cinit__(self, bool expanded, bool opened): # <<<<<<<<<<<<<< * self.expanded = expanded * self.opened = opened */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4151 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_BeginEnd_2__enter__[] = "_BeginEnd.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_2__enter__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":4152 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":4151 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4154 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * cimgui.End() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_9_BeginEnd_4__exit__[] = "_BeginEnd.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 4154, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 4154, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 4154, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4154, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEnd.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_4__exit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":4155 * * def __exit__(self, exc_type, exc_val, exc_tb): * cimgui.End() # <<<<<<<<<<<<<< * * def __getitem__(self, item): */ try { ImGui::End(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4155, __pyx_L1_error) } /* "imgui/core.pyx":4154 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * cimgui.End() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEnd.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4157 * cimgui.End() * * def __getitem__(self, item): # <<<<<<<<<<<<<< * """For legacy support, returns ``(expanded, opened)[item]``.""" * return (self.expanded, self.opened)[item] */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item); /*proto*/ static char __pyx_doc_5imgui_4core_9_BeginEnd_6__getitem__[] = "For legacy support, returns ``(expanded, opened)[item]``."; #if CYTHON_UPDATE_DESCRIPTOR_DOC struct wrapperbase __pyx_wrapperbase_5imgui_4core_9_BeginEnd_6__getitem__; #endif static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_6__getitem__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self), ((PyObject *)__pyx_v_item)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_6__getitem__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); /* "imgui/core.pyx":4159 * def __getitem__(self, item): * """For legacy support, returns ``(expanded, opened)[item]``.""" * return (self.expanded, self.opened)[item] # <<<<<<<<<<<<<< * * def __iter__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->expanded); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4157 * cimgui.End() * * def __getitem__(self, item): # <<<<<<<<<<<<<< * """For legacy support, returns ``(expanded, opened)[item]``.""" * return (self.expanded, self.opened)[item] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._BeginEnd.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4161 * return (self.expanded, self.opened)[item] * * def __iter__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``iter((expanded, opened))``.""" * return iter((self.expanded, self.opened)) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_9__iter__(PyObject *__pyx_v_self); /*proto*/ static char __pyx_doc_5imgui_4core_9_BeginEnd_8__iter__[] = "For legacy support, returns ``iter((expanded, opened))``."; #if CYTHON_UPDATE_DESCRIPTOR_DOC struct wrapperbase __pyx_wrapperbase_5imgui_4core_9_BeginEnd_8__iter__; #endif static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_9__iter__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_8__iter__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_8__iter__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__iter__", 0); /* "imgui/core.pyx":4163 * def __iter__(self): * """For legacy support, returns ``iter((expanded, opened))``.""" * return iter((self.expanded, self.opened)) # <<<<<<<<<<<<<< * * def __repr__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->expanded); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4161 * return (self.expanded, self.opened)[item] * * def __iter__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``iter((expanded, opened))``.""" * return iter((self.expanded, self.opened)) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._BeginEnd.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4165 * return iter((self.expanded, self.opened)) * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(expanded={}, opened={})".format( * self.__class__.__name__, self.expanded, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_11__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_11__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_10__repr__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_10__repr__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":4166 * * def __repr__(self): * return "{}(expanded={}, opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.expanded, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_expanded_opened, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":4167 * def __repr__(self): * return "{}(expanded={}, opened={})".format( * self.__class__.__name__, self.expanded, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->expanded); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_7 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4166, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4166, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_5); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":4165 * return iter((self.expanded, self.opened)) * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(expanded={}, opened={})".format( * self.__class__.__name__, self.expanded, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core._BeginEnd.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4170 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return (self.expanded, self.opened) == (other.expanded, other.opened) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_13__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_13__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_12__eq__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_12__eq__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":4171 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return (self.expanded, self.opened) == (other.expanded, other.opened) * return (self.expanded, self.opened) == other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":4172 * def __eq__(self, other): * if other.__class__ is self.__class__: * return (self.expanded, self.opened) == (other.expanded, other.opened) # <<<<<<<<<<<<<< * return (self.expanded, self.opened) == other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->expanded); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_expanded); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_5, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4171 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return (self.expanded, self.opened) == (other.expanded, other.opened) * return (self.expanded, self.opened) == other */ } /* "imgui/core.pyx":4173 * if other.__class__ is self.__class__: * return (self.expanded, self.opened) == (other.expanded, other.opened) * return (self.expanded, self.opened) == other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->expanded); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_v_other, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4173, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":4170 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return (self.expanded, self.opened) == (other.expanded, other.opened) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core._BeginEnd.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4144 * """ * * cdef readonly bool expanded # <<<<<<<<<<<<<< * cdef readonly bool opened * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_8expanded_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_8expanded_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_8expanded___get__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_8expanded___get__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->expanded); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEnd.expanded.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4145 * * cdef readonly bool expanded * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool expanded, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEnd.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_9_BeginEnd_14__reduce_cython__[] = "_BeginEnd.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_14__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEnd.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_9_BeginEnd_16__setstate_cython__[] = "_BeginEnd.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_9_BeginEnd_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_9_BeginEnd_16__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEnd *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_9_BeginEnd_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEnd *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEnd.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4176 * * * def begin(str label, closable=False, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Begin a window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_35begin(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_34begin[] = "begin(str label, closable=False, ImGuiWindowFlags flags=0)\nBegin a window.\n\n .. visual-example::\n :auto_layout:\n\n with imgui.begin(\"Example: empty window\"):\n pass\n\n Example::\n imgui.begin(\"Example: empty window\")\n imgui.end()\n\n Args:\n label (str): label of the window.\n closable (bool): define if window is closable.\n flags: Window flags. See:\n :ref:`list of available flags `.\n\n Returns:\n _BeginEnd: ``(expanded, opened)`` struct of bools. If window is collapsed\n ``expanded==True``. The value of ``opened`` is always True for\n non-closable and open windows but changes state to False on close\n button click for closable windows. Use with ``with`` to automatically call\n :func:`end` when the block ends.\n\n .. wraps::\n Begin(\n const char* name,\n bool* p_open = NULL,\n ImGuiWindowFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_35begin = {"begin", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_35begin, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_34begin}; static PyObject *__pyx_pw_5imgui_4core_35begin(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_closable = 0; ImGuiWindowFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_closable,&__pyx_n_s_flags,0}; PyObject* values[3] = {0,0,0}; values[1] = ((PyObject *)Py_False); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_closable); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin") < 0)) __PYX_ERR(0, 4176, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_closable = values[1]; if (values[2]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiWindowFlags(values[2]); if (unlikely((__pyx_v_flags == ((ImGuiWindowFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4176, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiWindowFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4176, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 4176, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_34begin(__pyx_self, __pyx_v_label, __pyx_v_closable, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_34begin(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_closable, ImGuiWindowFlags __pyx_v_flags) { bool __pyx_v_opened; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool *__pyx_t_3; int __pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin", 0); /* "imgui/core.pyx":4209 * ) * """ * cdef cimgui.bool opened = True # <<<<<<<<<<<<<< * * return _BeginEnd.__new__( */ __pyx_v_opened = 1; /* "imgui/core.pyx":4211 * cdef cimgui.bool opened = True * * return _BeginEnd.__new__( # <<<<<<<<<<<<<< * _BeginEnd, * cimgui.Begin(_bytes(label), &opened if closable else NULL, flags), */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":4213 * return _BeginEnd.__new__( * _BeginEnd, * cimgui.Begin(_bytes(label), &opened if closable else NULL, flags), # <<<<<<<<<<<<<< * opened * ) */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 4213, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 4213, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_closable); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 4213, __pyx_L1_error) if (__pyx_t_4) { __pyx_t_3 = (&__pyx_v_opened); } else { __pyx_t_3 = NULL; } try { __pyx_t_5 = ImGui::Begin(__pyx_t_2, __pyx_t_3, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4213, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":4214 * _BeginEnd, * cimgui.Begin(_bytes(label), &opened if closable else NULL, flags), * opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_opened); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); /* "imgui/core.pyx":4211 * cdef cimgui.bool opened = True * * return _BeginEnd.__new__( # <<<<<<<<<<<<<< * _BeginEnd, * cimgui.Begin(_bytes(label), &opened if closable else NULL, flags), */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6); __pyx_t_1 = 0; __pyx_t_6 = 0; __pyx_t_6 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEnd(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEnd), __pyx_t_7, NULL)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4211, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_6)); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_r = ((PyObject *)__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":4176 * * * def begin(str label, closable=False, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Begin a window. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.begin", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4218 * * * def get_draw_data(): # <<<<<<<<<<<<<< * """Get draw data. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_37get_draw_data(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_36get_draw_data[] = "get_draw_data()\nGet draw data.\n\n valid after :any:`render()` and until the next call\n to :any:`new_frame()`. This is what you have to render.\n\n Returns:\n _DrawData: draw data for all draw calls required to display gui\n\n .. wraps::\n ImDrawData* GetDrawData()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_37get_draw_data = {"get_draw_data", (PyCFunction)__pyx_pw_5imgui_4core_37get_draw_data, METH_NOARGS, __pyx_doc_5imgui_4core_36get_draw_data}; static PyObject *__pyx_pw_5imgui_4core_37get_draw_data(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_draw_data (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_36get_draw_data(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_36get_draw_data(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImDrawData *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_draw_data", 0); /* "imgui/core.pyx":4230 * ImDrawData* GetDrawData() * """ * return _DrawData.from_ptr(cimgui.GetDrawData()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetDrawData(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4230, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_9_DrawData_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4218 * * * def get_draw_data(): # <<<<<<<<<<<<<< * """Get draw data. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_draw_data", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4233 * * * def end(): # <<<<<<<<<<<<<< * """End a window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_39end(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_38end[] = "end()\nEnd a window.\n\n This finishes appending to current window, and pops it off the window\n stack. See: :any:`begin()`.\n\n .. wraps::\n void End()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_39end = {"end", (PyCFunction)__pyx_pw_5imgui_4core_39end, METH_NOARGS, __pyx_doc_5imgui_4core_38end}; static PyObject *__pyx_pw_5imgui_4core_39end(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_38end(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_38end(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end", 0); /* "imgui/core.pyx":4242 * void End() * """ * cimgui.End() # <<<<<<<<<<<<<< * * */ try { ImGui::End(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4242, __pyx_L1_error) } /* "imgui/core.pyx":4233 * * * def end(): # <<<<<<<<<<<<<< * """End a window. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4260 * cdef readonly bool visible * * def __cinit__(self, bool visible): # <<<<<<<<<<<<<< * self.visible = visible * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_BeginEndChild_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_14_BeginEndChild_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_visible; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_visible,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_visible)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4260, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_visible = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_visible == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4260, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4260, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndChild.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self), __pyx_v_visible); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_BeginEndChild___cinit__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self, bool __pyx_v_visible) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":4261 * * def __cinit__(self, bool visible): * self.visible = visible # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->visible = __pyx_v_visible; /* "imgui/core.pyx":4260 * cdef readonly bool visible * * def __cinit__(self, bool visible): # <<<<<<<<<<<<<< * self.visible = visible * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4263 * self.visible = visible * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndChild_2__enter__[] = "_BeginEndChild.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":4264 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":4263 * self.visible = visible * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4266 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * cimgui.EndChild() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndChild_4__exit__[] = "_BeginEndChild.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 4266, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 4266, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 4266, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4266, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndChild.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_4__exit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":4267 * * def __exit__(self, exc_type, exc_val, exc_tb): * cimgui.EndChild() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndChild(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4267, __pyx_L1_error) } /* "imgui/core.pyx":4266 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * cimgui.EndChild() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndChild.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4269 * cimgui.EndChild() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``visible``.""" * return self.visible */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_BeginEndChild_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_14_BeginEndChild_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_BeginEndChild_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":4271 * def __bool__(self): * """For legacy support, returns ``visible``.""" * return self.visible # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->visible; goto __pyx_L0; /* "imgui/core.pyx":4269 * cimgui.EndChild() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``visible``.""" * return self.visible */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4273 * return self.visible * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(visible={})".format( * self.__class__.__name__, self.visible */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":4274 * * def __repr__(self): * return "{}(visible={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.visible * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_visible_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":4275 * def __repr__(self): * return "{}(visible={})".format( * self.__class__.__name__, self.visible # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4274, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4274, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":4273 * return self.visible * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(visible={})".format( * self.__class__.__name__, self.visible */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndChild.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4278 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.visible is other.visible */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":4279 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.visible is other.visible * return self.visible is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":4280 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.visible is other.visible # <<<<<<<<<<<<<< * return self.visible is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_visible); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":4279 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.visible is other.visible * return self.visible is other */ } /* "imgui/core.pyx":4281 * if other.__class__ is self.__class__: * return self.visible is other.visible * return self.visible is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":4278 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.visible is other.visible */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndChild.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4258 * """ * * cdef readonly bool visible # <<<<<<<<<<<<<< * * def __cinit__(self, bool visible): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_7visible_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_7visible_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild_7visible___get__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_7visible___get__(struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndChild.visible.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndChild_12__reduce_cython__[] = "_BeginEndChild.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__55, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndChild.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndChild_14__setstate_cython__[] = "_BeginEndChild.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndChild_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndChild_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndChild *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndChild_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndChild *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__56, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndChild.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4289 * * * def begin_child( # <<<<<<<<<<<<<< * child_id label, float width = 0, float height = 0, bool border = False, * cimgui.ImGuiWindowFlags flags = 0 */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_41begin_child(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_40begin_child[] = "begin_child(signatures, args, kwargs, defaults)\nBegin a scrolling region.\n\n **Note:** sizing of child region allows for three modes:\n * ``0.0`` - use remaining window size\n * ``>0.0`` - fixed size\n * ``<0.0`` - use remaining window size minus abs(size)\n\n .. visual-example::\n :width: 200\n :height: 200\n :auto_layout:\n\n with imgui.begin(\"Example: child region\"):\n with imgui.begin_child(\"region\", 150, -50, border=True):\n imgui.text(\"inside region\")\n imgui.text(\"outside region\")\n\n Example::\n imgui.begin(\"Example: child region\")\n\n imgui.begin_child(\"region\", 150, -50, border=True)\n imgui.text(\"inside region\")\n imgui.end_child()\n\n imgui.text(\"outside region\")\n imgui.end()\n\n Args:\n label (str or int): Child region identifier.\n width (float): Region width. See note about sizing.\n height (float): Region height. See note about sizing.\n border (bool): True if should display border. Defaults to False.\n flags: Window flags. See:\n :ref:`list of available flags `.\n\n Returns:\n _BeginEndChild: Struct with ``visible`` bool attribute. Use with ``with``\n to automatically call :func:`end_child` when the block ends.`\n\n .. wraps::\n bool BeginChild(\n const char* str_id,\n const ImVec2& size = ImVec2(0,0),\n bool border = false,\n ImGuiWindowFlags flags = 0\n )\n\n bool BeginChild(\n ImGuiID id,\n const ImVec2& size = ImVec2(0,0),\n bool border = false,\n ImGuiWindowFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_41begin_child = {"begin_child", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_41begin_child, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_40begin_child}; static PyObject *__pyx_pw_5imgui_4core_41begin_child(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_signatures = 0; PyObject *__pyx_v_args = 0; PyObject *__pyx_v_kwargs = 0; CYTHON_UNUSED PyObject *__pyx_v_defaults = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_fused_cpdef (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_signatures,&__pyx_n_s_args,&__pyx_n_s_kwargs,&__pyx_n_s_defaults,0}; PyObject* values[4] = {0,0,0,0}; values[1] = __pyx_k__57; values[2] = __pyx_k__58; values[3] = __pyx_k__59; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_signatures)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_args); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kwargs); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_defaults); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_fused_cpdef") < 0)) __PYX_ERR(0, 4289, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); } __pyx_v_signatures = values[0]; __pyx_v_args = values[1]; __pyx_v_kwargs = values[2]; __pyx_v_defaults = values[3]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_fused_cpdef", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4289, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.__pyx_fused_cpdef", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_40begin_child(__pyx_self, __pyx_v_signatures, __pyx_v_args, __pyx_v_kwargs, __pyx_v_defaults); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_40begin_child(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_signatures, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs, CYTHON_UNUSED PyObject *__pyx_v_defaults) { PyObject *__pyx_v_dest_sig = NULL; Py_ssize_t __pyx_v_i; CYTHON_UNUSED PyTypeObject *__pyx_v_ndarray = 0; CYTHON_UNUSED Py_ssize_t __pyx_v_itemsize; PyObject *__pyx_v_arg = NULL; PyObject *__pyx_v_candidates = NULL; PyObject *__pyx_v_sig = NULL; int __pyx_v_match_found; PyObject *__pyx_v_src_sig = NULL; PyObject *__pyx_v_dst_type = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; Py_ssize_t __pyx_t_7; int __pyx_t_8; int __pyx_t_9; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; Py_ssize_t __pyx_t_13; Py_ssize_t __pyx_t_14; Py_ssize_t __pyx_t_15; int __pyx_t_16; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_child", 0); __Pyx_INCREF(__pyx_v_kwargs); __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyList_SET_ITEM(__pyx_t_1, 0, Py_None); __pyx_v_dest_sig = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = (__pyx_v_kwargs != Py_None); __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_kwargs); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 4289, __pyx_L1_error) __pyx_t_3 = ((!__pyx_t_4) != 0); __pyx_t_2 = __pyx_t_3; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { __Pyx_INCREF(Py_None); __Pyx_DECREF_SET(__pyx_v_kwargs, Py_None); } __pyx_t_1 = ((PyObject *)__Pyx_ImportNumPyArrayTypeIfAvailable()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_ndarray = ((PyTypeObject*)__pyx_t_1); __pyx_t_1 = 0; __pyx_v_itemsize = -1L; if (unlikely(__pyx_v_args == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_t_5 = PyTuple_GET_SIZE(((PyObject*)__pyx_v_args)); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 4289, __pyx_L1_error) __pyx_t_2 = ((0 < __pyx_t_5) != 0); if (__pyx_t_2) { if (unlikely(__pyx_v_args == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(((PyObject*)__pyx_v_args), 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_arg = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L6; } __pyx_t_3 = (__pyx_v_kwargs != Py_None); __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L7_bool_binop_done; } if (unlikely(__pyx_v_kwargs == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_t_4 = (__Pyx_PyDict_ContainsTF(__pyx_n_s_label, ((PyObject*)__pyx_v_kwargs), Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 4289, __pyx_L1_error) __pyx_t_3 = (__pyx_t_4 != 0); __pyx_t_2 = __pyx_t_3; __pyx_L7_bool_binop_done:; if (__pyx_t_2) { if (unlikely(__pyx_v_kwargs == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyDict_GetItem(((PyObject*)__pyx_v_kwargs), __pyx_n_s_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_arg = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L6; } /*else*/ { if (unlikely(__pyx_v_args == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_t_5 = PyTuple_GET_SIZE(((PyObject*)__pyx_v_args)); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 4289, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_int_1); __Pyx_INCREF(__pyx_kp_s__40); __Pyx_GIVEREF(__pyx_kp_s__40); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_kp_s__40); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Expected_at_least_d_argument_s_g, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_L6:; while (1) { __pyx_t_3 = PyInt_Check(__pyx_v_arg); __pyx_t_4 = (__pyx_t_3 != 0); if (!__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L12_bool_binop_done; } __pyx_t_4 = PyLong_Check(__pyx_v_arg); __pyx_t_3 = (__pyx_t_4 != 0); __pyx_t_2 = __pyx_t_3; __pyx_L12_bool_binop_done:; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { if (unlikely(__Pyx_SetItemInt(__pyx_v_dest_sig, 0, __pyx_n_s_ImGuiID, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(0, 4289, __pyx_L1_error) goto __pyx_L10_break; } __pyx_t_3 = PyString_Check(__pyx_v_arg); __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { if (unlikely(__Pyx_SetItemInt(__pyx_v_dest_sig, 0, __pyx_n_s_str, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(0, 4289, __pyx_L1_error) goto __pyx_L10_break; } if (unlikely(__Pyx_SetItemInt(__pyx_v_dest_sig, 0, Py_None, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(0, 4289, __pyx_L1_error) goto __pyx_L10_break; } __pyx_L10_break:; __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_candidates = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; __pyx_t_5 = 0; if (unlikely(__pyx_v_signatures == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_t_1 = __Pyx_dict_iterator(((PyObject*)__pyx_v_signatures), 1, ((PyObject *)NULL), (&__pyx_t_7), (&__pyx_t_8)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = __pyx_t_1; __pyx_t_1 = 0; while (1) { __pyx_t_9 = __Pyx_dict_iter_next(__pyx_t_6, __pyx_t_7, &__pyx_t_5, &__pyx_t_1, NULL, NULL, __pyx_t_8); if (unlikely(__pyx_t_9 == 0)) break; if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_sig, __pyx_t_1); __pyx_t_1 = 0; __pyx_v_match_found = 0; __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_strip); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_11); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_11, function); } } __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_12, __pyx_kp_s__60) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_kp_s__60); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_split); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_11); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_11, function); } } __pyx_t_1 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_10, __pyx_kp_s__61) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_kp_s__61); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF_SET(__pyx_v_src_sig, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_13 = PyList_GET_SIZE(__pyx_v_dest_sig); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(0, 4289, __pyx_L1_error) __pyx_t_14 = __pyx_t_13; for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) { __pyx_v_i = __pyx_t_15; __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_dest_sig, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_dst_type, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (__pyx_v_dst_type != Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_src_sig, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = PyObject_RichCompare(__pyx_t_1, __pyx_v_dst_type, Py_EQ); __Pyx_XGOTREF(__pyx_t_11); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (__pyx_t_3) { __pyx_v_match_found = 1; goto __pyx_L20; } /*else*/ { __pyx_v_match_found = 0; goto __pyx_L18_break; } __pyx_L20:; } } __pyx_L18_break:; __pyx_t_3 = (__pyx_v_match_found != 0); if (__pyx_t_3) { __pyx_t_16 = __Pyx_PyList_Append(__pyx_v_candidates, __pyx_v_sig); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(0, 4289, __pyx_L1_error) } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = (PyList_GET_SIZE(__pyx_v_candidates) != 0); __pyx_t_2 = ((!__pyx_t_3) != 0); if (__pyx_t_2) { __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_t_7 = PyList_GET_SIZE(__pyx_v_candidates); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 4289, __pyx_L1_error) __pyx_t_2 = ((__pyx_t_7 > 1) != 0); if (__pyx_t_2) { __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 4289, __pyx_L1_error) } /*else*/ { __Pyx_XDECREF(__pyx_r); if (unlikely(__pyx_v_signatures == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 4289, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_candidates, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_11 = __Pyx_PyDict_GetItem(((PyObject*)__pyx_v_signatures), __pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_r = __pyx_t_11; __pyx_t_11 = 0; goto __pyx_L0; } /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("imgui.core.__pyx_fused_cpdef", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dest_sig); __Pyx_XDECREF(__pyx_v_ndarray); __Pyx_XDECREF(__pyx_v_arg); __Pyx_XDECREF(__pyx_v_candidates); __Pyx_XDECREF(__pyx_v_sig); __Pyx_XDECREF(__pyx_v_src_sig); __Pyx_XDECREF(__pyx_v_dst_type); __Pyx_XDECREF(__pyx_v_kwargs); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_647__defaults__(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__defaults__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_self)->__pyx_arg_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyFloat_FromDouble(__Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_self)->__pyx_arg_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyBool_FromLong(__Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_self)->__pyx_arg_border); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_ImGuiWindowFlags(__Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_self)->__pyx_arg_flags); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None); __pyx_t_5 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_fuse_0__pyx_pw_5imgui_4core_634begin_child(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_fuse_0__pyx_mdef_5imgui_4core_634begin_child = {"__pyx_fuse_0begin_child", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_fuse_0__pyx_pw_5imgui_4core_634begin_child, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_40begin_child}; static PyObject *__pyx_fuse_0__pyx_pw_5imgui_4core_634begin_child(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_width; float __pyx_v_height; bool __pyx_v_border; ImGuiWindowFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_child (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_border,&__pyx_n_s_flags,0}; PyObject* values[5] = {0,0,0,0,0}; __pyx_defaults2 *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_self); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_border); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_child") < 0)) __PYX_ERR(0, 4289, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4290, __pyx_L3_error) } else { __pyx_v_width = __pyx_dynamic_args->__pyx_arg_width; } if (values[2]) { __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4290, __pyx_L3_error) } else { __pyx_v_height = __pyx_dynamic_args->__pyx_arg_height; } if (values[3]) { __pyx_v_border = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_border == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4290, __pyx_L3_error) } else { __pyx_v_border = __pyx_dynamic_args->__pyx_arg_border; } if (values[4]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiWindowFlags(values[4]); if (unlikely((__pyx_v_flags == ((ImGuiWindowFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4291, __pyx_L3_error) } else { __pyx_v_flags = __pyx_dynamic_args->__pyx_arg_flags; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_child", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4289, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_child", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 4290, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_633begin_child(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_633begin_child(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, bool __pyx_v_border, ImGuiWindowFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImVec2 __pyx_t_3; bool __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_fuse_0begin_child", 0); /* "imgui/core.pyx":4349 * # note: we do not take advantage of C++ function overloading * # in order to take advantage of Python keyword arguments * return _BeginEndChild.__new__( # <<<<<<<<<<<<<< * _BeginEndChild, * cimgui.BeginChild( */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":4352 * _BeginEndChild, * cimgui.BeginChild( * _bytes(label), _cast_args_ImVec2(width, height), border, flags # <<<<<<<<<<<<<< * ) * ) */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 4352, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 4352, __pyx_L1_error) __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4352, __pyx_L1_error) /* "imgui/core.pyx":4351 * return _BeginEndChild.__new__( * _BeginEndChild, * cimgui.BeginChild( # <<<<<<<<<<<<<< * _bytes(label), _cast_args_ImVec2(width, height), border, flags * ) */ try { __pyx_t_4 = ImGui::BeginChild(__pyx_t_2, __pyx_t_3, __pyx_v_border, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4351, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":4349 * # note: we do not take advantage of C++ function overloading * # in order to take advantage of Python keyword arguments * return _BeginEndChild.__new__( # <<<<<<<<<<<<<< * _BeginEndChild, * cimgui.BeginChild( */ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndChild(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndChild), __pyx_t_5, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4349, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":4289 * * * def begin_child( # <<<<<<<<<<<<<< * child_id label, float width = 0, float height = 0, bool border = False, * cimgui.ImGuiWindowFlags flags = 0 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.begin_child", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_649__defaults__(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__defaults__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_self)->__pyx_arg_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyFloat_FromDouble(__Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_self)->__pyx_arg_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyBool_FromLong(__Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_self)->__pyx_arg_border); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_ImGuiWindowFlags(__Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_self)->__pyx_arg_flags); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None); __pyx_t_5 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_fuse_1__pyx_pw_5imgui_4core_636begin_child(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_fuse_1__pyx_mdef_5imgui_4core_636begin_child = {"__pyx_fuse_1begin_child", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_fuse_1__pyx_pw_5imgui_4core_636begin_child, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_40begin_child}; static PyObject *__pyx_fuse_1__pyx_pw_5imgui_4core_636begin_child(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiID __pyx_v_label; float __pyx_v_width; float __pyx_v_height; bool __pyx_v_border; ImGuiWindowFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_child (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_border,&__pyx_n_s_flags,0}; PyObject* values[5] = {0,0,0,0,0}; __pyx_defaults3 *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_self); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_border); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_child") < 0)) __PYX_ERR(0, 4289, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = __Pyx_PyInt_As_ImGuiID(values[0]); if (unlikely((__pyx_v_label == ((ImGuiID)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4290, __pyx_L3_error) if (values[1]) { __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4290, __pyx_L3_error) } else { __pyx_v_width = __pyx_dynamic_args->__pyx_arg_width; } if (values[2]) { __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4290, __pyx_L3_error) } else { __pyx_v_height = __pyx_dynamic_args->__pyx_arg_height; } if (values[3]) { __pyx_v_border = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_border == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4290, __pyx_L3_error) } else { __pyx_v_border = __pyx_dynamic_args->__pyx_arg_border; } if (values[4]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiWindowFlags(values[4]); if (unlikely((__pyx_v_flags == ((ImGuiWindowFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4291, __pyx_L3_error) } else { __pyx_v_flags = __pyx_dynamic_args->__pyx_arg_flags; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_child", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4289, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_child", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_635begin_child(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_flags); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_635begin_child(CYTHON_UNUSED PyObject *__pyx_self, ImGuiID __pyx_v_label, float __pyx_v_width, float __pyx_v_height, bool __pyx_v_border, ImGuiWindowFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; ImVec2 __pyx_t_4; bool __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_fuse_1begin_child", 0); /* "imgui/core.pyx":4349 * # note: we do not take advantage of C++ function overloading * # in order to take advantage of Python keyword arguments * return _BeginEndChild.__new__( # <<<<<<<<<<<<<< * _BeginEndChild, * cimgui.BeginChild( */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":4352 * _BeginEndChild, * cimgui.BeginChild( * _bytes(label), _cast_args_ImVec2(width, height), border, flags # <<<<<<<<<<<<<< * ) * ) */ __pyx_t_1 = __Pyx_PyInt_From_ImGuiID(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyString_CheckExact(__pyx_t_1))||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 4352, __pyx_L1_error) __pyx_t_2 = __pyx_f_5imgui_4core__bytes(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 4352, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 4352, __pyx_L1_error) __pyx_t_4 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4352, __pyx_L1_error) /* "imgui/core.pyx":4351 * return _BeginEndChild.__new__( * _BeginEndChild, * cimgui.BeginChild( # <<<<<<<<<<<<<< * _bytes(label), _cast_args_ImVec2(width, height), border, flags * ) */ try { __pyx_t_5 = ImGui::BeginChild(__pyx_t_3, __pyx_t_4, __pyx_v_border, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4351, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":4349 * # note: we do not take advantage of C++ function overloading * # in order to take advantage of Python keyword arguments * return _BeginEndChild.__new__( # <<<<<<<<<<<<<< * _BeginEndChild, * cimgui.BeginChild( */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndChild(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndChild), __pyx_t_1, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4349, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4289 * * * def begin_child( # <<<<<<<<<<<<<< * child_id label, float width = 0, float height = 0, bool border = False, * cimgui.ImGuiWindowFlags flags = 0 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.begin_child", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4355 * ) * ) * def end_child(): # <<<<<<<<<<<<<< * """End scrolling region. * Only call if ``begin_child().visible`` is True. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_43end_child(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_42end_child[] = "end_child()\nEnd scrolling region.\n Only call if ``begin_child().visible`` is True.\n\n .. wraps::\n void EndChild()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_43end_child = {"end_child", (PyCFunction)__pyx_pw_5imgui_4core_43end_child, METH_NOARGS, __pyx_doc_5imgui_4core_42end_child}; static PyObject *__pyx_pw_5imgui_4core_43end_child(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_child (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_42end_child(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_42end_child(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_child", 0); /* "imgui/core.pyx":4362 * void EndChild() * """ * cimgui.EndChild() # <<<<<<<<<<<<<< * * */ try { ImGui::EndChild(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4362, __pyx_L1_error) } /* "imgui/core.pyx":4355 * ) * ) * def end_child(): # <<<<<<<<<<<<<< * """End scrolling region. * Only call if ``begin_child().visible`` is True. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_child", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4365 * * * def get_content_region_max(): # <<<<<<<<<<<<<< * """Get current content boundaries in window coordinates. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_45get_content_region_max(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_44get_content_region_max[] = "get_content_region_max()\nGet current content boundaries in window coordinates.\n\n Typically window boundaries include scrolling, or current\n column boundaries.\n\n Returns:\n Vec2: content boundaries two-tuple ``(width, height)``\n\n .. wraps::\n ImVec2 GetContentRegionMax()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_45get_content_region_max = {"get_content_region_max", (PyCFunction)__pyx_pw_5imgui_4core_45get_content_region_max, METH_NOARGS, __pyx_doc_5imgui_4core_44get_content_region_max}; static PyObject *__pyx_pw_5imgui_4core_45get_content_region_max(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_content_region_max (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_44get_content_region_max(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_44get_content_region_max(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_content_region_max", 0); /* "imgui/core.pyx":4377 * ImVec2 GetContentRegionMax() * """ * return _cast_ImVec2_tuple(cimgui.GetContentRegionMax()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetContentRegionMax(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4377, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4365 * * * def get_content_region_max(): # <<<<<<<<<<<<<< * """Get current content boundaries in window coordinates. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_content_region_max", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4380 * * * def get_content_region_available(): # <<<<<<<<<<<<<< * """Get available content region. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_47get_content_region_available(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_46get_content_region_available[] = "get_content_region_available()\nGet available content region.\n\n It is shortcut for:\n\n .. code-block: python\n imgui.get_content_region_max() - imgui.get_cursor_position()\n\n Returns:\n Vec2: available content region size two-tuple ``(width, height)``\n\n .. wraps::\n ImVec2 GetContentRegionMax()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_47get_content_region_available = {"get_content_region_available", (PyCFunction)__pyx_pw_5imgui_4core_47get_content_region_available, METH_NOARGS, __pyx_doc_5imgui_4core_46get_content_region_available}; static PyObject *__pyx_pw_5imgui_4core_47get_content_region_available(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_content_region_available (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_46get_content_region_available(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_46get_content_region_available(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_content_region_available", 0); /* "imgui/core.pyx":4394 * ImVec2 GetContentRegionMax() * """ * return _cast_ImVec2_tuple(cimgui.GetContentRegionAvail()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetContentRegionAvail(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4394, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4380 * * * def get_content_region_available(): # <<<<<<<<<<<<<< * """Get available content region. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_content_region_available", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4398 * * # OBSOLETED in 1.70 (from May 2019) * def get_content_region_available_width(): # <<<<<<<<<<<<<< * """Get available content region width. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_49get_content_region_available_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_48get_content_region_available_width[] = "get_content_region_available_width()\nGet available content region width.\n\n Returns:\n float: available content region width.\n\n .. wraps::\n float GetContentRegionAvailWidth()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_49get_content_region_available_width = {"get_content_region_available_width", (PyCFunction)__pyx_pw_5imgui_4core_49get_content_region_available_width, METH_NOARGS, __pyx_doc_5imgui_4core_48get_content_region_available_width}; static PyObject *__pyx_pw_5imgui_4core_49get_content_region_available_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_content_region_available_width (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_48get_content_region_available_width(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_48get_content_region_available_width(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_content_region_available_width", 0); /* "imgui/core.pyx":4407 * float GetContentRegionAvailWidth() * """ * return cimgui.GetContentRegionAvailWidth() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetContentRegionAvailWidth(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4407, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4398 * * # OBSOLETED in 1.70 (from May 2019) * def get_content_region_available_width(): # <<<<<<<<<<<<<< * """Get available content region width. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_content_region_available_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4410 * * * def get_window_content_region_min(): # <<<<<<<<<<<<<< * """Get minimal current window content boundaries in window coordinates. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_51get_window_content_region_min(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_50get_window_content_region_min[] = "get_window_content_region_min()\nGet minimal current window content boundaries in window coordinates.\n\n It translates roughly to: ``(0, 0) - Scroll``\n\n Returns:\n Vec2: content boundaries two-tuple ``(width, height)``\n\n .. wraps::\n ImVec2 GetWindowContentRegionMin()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_51get_window_content_region_min = {"get_window_content_region_min", (PyCFunction)__pyx_pw_5imgui_4core_51get_window_content_region_min, METH_NOARGS, __pyx_doc_5imgui_4core_50get_window_content_region_min}; static PyObject *__pyx_pw_5imgui_4core_51get_window_content_region_min(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_window_content_region_min (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_50get_window_content_region_min(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_50get_window_content_region_min(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_window_content_region_min", 0); /* "imgui/core.pyx":4421 * ImVec2 GetWindowContentRegionMin() * """ * return _cast_ImVec2_tuple(cimgui.GetWindowContentRegionMin()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetWindowContentRegionMin(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4421, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4410 * * * def get_window_content_region_min(): # <<<<<<<<<<<<<< * """Get minimal current window content boundaries in window coordinates. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_window_content_region_min", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4424 * * * def get_window_content_region_max(): # <<<<<<<<<<<<<< * """Get maximal current window content boundaries in window coordinates. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_53get_window_content_region_max(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_52get_window_content_region_max[] = "get_window_content_region_max()\nGet maximal current window content boundaries in window coordinates.\n\n It translates roughly to: ``(0, 0) + Size - Scroll``\n\n Returns:\n Vec2: content boundaries two-tuple ``(width, height)``\n\n .. wraps::\n ImVec2 GetWindowContentRegionMin()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_53get_window_content_region_max = {"get_window_content_region_max", (PyCFunction)__pyx_pw_5imgui_4core_53get_window_content_region_max, METH_NOARGS, __pyx_doc_5imgui_4core_52get_window_content_region_max}; static PyObject *__pyx_pw_5imgui_4core_53get_window_content_region_max(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_window_content_region_max (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_52get_window_content_region_max(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_52get_window_content_region_max(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_window_content_region_max", 0); /* "imgui/core.pyx":4435 * ImVec2 GetWindowContentRegionMin() * """ * return _cast_ImVec2_tuple(cimgui.GetWindowContentRegionMax()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetWindowContentRegionMax(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4435, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4424 * * * def get_window_content_region_max(): # <<<<<<<<<<<<<< * """Get maximal current window content boundaries in window coordinates. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_window_content_region_max", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4438 * * * def get_window_content_region_width(): # <<<<<<<<<<<<<< * """Get available current window content region width. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_55get_window_content_region_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_54get_window_content_region_width[] = "get_window_content_region_width()\nGet available current window content region width.\n\n Returns:\n float: available content region width.\n\n .. wraps::\n float GetWindowContentRegionWidth()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_55get_window_content_region_width = {"get_window_content_region_width", (PyCFunction)__pyx_pw_5imgui_4core_55get_window_content_region_width, METH_NOARGS, __pyx_doc_5imgui_4core_54get_window_content_region_width}; static PyObject *__pyx_pw_5imgui_4core_55get_window_content_region_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_window_content_region_width (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_54get_window_content_region_width(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_54get_window_content_region_width(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_window_content_region_width", 0); /* "imgui/core.pyx":4447 * float GetWindowContentRegionWidth() * """ * return cimgui.GetWindowContentRegionWidth() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetWindowContentRegionWidth(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4447, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4438 * * * def get_window_content_region_width(): # <<<<<<<<<<<<<< * """Get available current window content region width. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_window_content_region_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4450 * * * def set_window_focus(): # <<<<<<<<<<<<<< * """Set window to be focused * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_57set_window_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_56set_window_focus[] = "set_window_focus()\nSet window to be focused\n\n Call inside :func:`begin()`.\n\n .. visual-example::\n :title: Window focus\n :height: 100\n\n imgui.begin(\"Window 1\")\n imgui.end()\n\n imgui.begin(\"Window 2\")\n imgui.set_window_focus()\n imgui.end()\n\n .. wraps::\n void SetWindowFocus()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_57set_window_focus = {"set_window_focus", (PyCFunction)__pyx_pw_5imgui_4core_57set_window_focus, METH_NOARGS, __pyx_doc_5imgui_4core_56set_window_focus}; static PyObject *__pyx_pw_5imgui_4core_57set_window_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_focus (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_56set_window_focus(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_56set_window_focus(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_focus", 0); /* "imgui/core.pyx":4469 * void SetWindowFocus() * """ * cimgui.SetWindowFocus() # <<<<<<<<<<<<<< * * def set_window_focus_labeled(str label): */ try { ImGui::SetWindowFocus(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4469, __pyx_L1_error) } /* "imgui/core.pyx":4450 * * * def set_window_focus(): # <<<<<<<<<<<<<< * """Set window to be focused * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_window_focus", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4471 * cimgui.SetWindowFocus() * * def set_window_focus_labeled(str label): # <<<<<<<<<<<<<< * """Set focus to the window named label * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_59set_window_focus_labeled(PyObject *__pyx_self, PyObject *__pyx_v_label); /*proto*/ static char __pyx_doc_5imgui_4core_58set_window_focus_labeled[] = "set_window_focus_labeled(str label)\nSet focus to the window named label\n\n Args:\n label(string): the name of the window that will be focused\n\n .. visual-example::\n :title: Window focus\n :height: 100\n\n imgui.set_window_focus_labeled(\"Window 2\")\n\n imgui.begin(\"Window 1\", True)\n imgui.text(\"Apples\")\n imgui.end()\n\n imgui.begin(\"Window 2\", True)\n imgui.text(\"Orange\")\n imgui.end()\n\n imgui.begin(\"Window 3\", True)\n imgui.text(\"Mango\")\n imgui.end()\n\n .. wraps::\n void SetWindowFocus(\n const char* name\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_59set_window_focus_labeled = {"set_window_focus_labeled", (PyCFunction)__pyx_pw_5imgui_4core_59set_window_focus_labeled, METH_O, __pyx_doc_5imgui_4core_58set_window_focus_labeled}; static PyObject *__pyx_pw_5imgui_4core_59set_window_focus_labeled(PyObject *__pyx_self, PyObject *__pyx_v_label) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_focus_labeled (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 4471, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_58set_window_focus_labeled(__pyx_self, ((PyObject*)__pyx_v_label)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_58set_window_focus_labeled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_focus_labeled", 0); /* "imgui/core.pyx":4500 * ) * """ * cimgui.SetWindowFocus(_bytes(label)) # <<<<<<<<<<<<<< * * def set_window_size( */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 4500, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 4500, __pyx_L1_error) try { ImGui::SetWindowFocus(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4500, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":4471 * cimgui.SetWindowFocus() * * def set_window_focus_labeled(str label): # <<<<<<<<<<<<<< * """Set focus to the window named label * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_window_focus_labeled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4502 * cimgui.SetWindowFocus(_bytes(label)) * * def set_window_size( # <<<<<<<<<<<<<< * float width, float height, cimgui.ImGuiCond condition=ONCE): * """Set window size */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_61set_window_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_60set_window_size[] = "set_window_size(float width, float height, ImGuiCond condition=ONCE)\nSet window size\n\n Call inside :func:`begin()`.\n\n **Note:** usage of this function is not recommended. prefer using\n :func:`set_next_window_size()` as this may incur tearing and minor\n side-effects.\n\n Args:\n width (float): window width. Value 0.0 enables autofit.\n height (float): window height. Value 0.0 enables autofit.\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ONCE`.\n\n .. visual-example::\n :title: window sizing\n :height: 200\n\n imgui.begin(\"Window size\")\n imgui.set_window_size(80, 180)\n imgui.end()\n\n .. wraps::\n void SetWindowSize(\n const ImVec2& size,\n ImGuiCond cond = 0,\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_61set_window_size = {"set_window_size", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_61set_window_size, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_60set_window_size}; static PyObject *__pyx_pw_5imgui_4core_61set_window_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_width; float __pyx_v_height; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_size (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_condition,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_window_size", 0, 2, 3, 1); __PYX_ERR(0, 4502, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_window_size") < 0)) __PYX_ERR(0, 4502, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_width = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4503, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4503, __pyx_L3_error) if (values[2]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[2]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4503, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__64; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_window_size", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4502, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_window_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_60set_window_size(__pyx_self, __pyx_v_width, __pyx_v_height, __pyx_v_condition); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_60set_window_size(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width, float __pyx_v_height, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_size", 0); /* "imgui/core.pyx":4532 * ) * """ * cimgui.SetWindowSize(_cast_args_ImVec2(width, height), condition) # <<<<<<<<<<<<<< * * def set_window_size_named(str label, float width, float height, cimgui.ImGuiCond condition = ONCE): */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4532, __pyx_L1_error) try { ImGui::SetWindowSize(__pyx_t_1, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4532, __pyx_L1_error) } /* "imgui/core.pyx":4502 * cimgui.SetWindowFocus(_bytes(label)) * * def set_window_size( # <<<<<<<<<<<<<< * float width, float height, cimgui.ImGuiCond condition=ONCE): * """Set window size */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_window_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4534 * cimgui.SetWindowSize(_cast_args_ImVec2(width, height), condition) * * def set_window_size_named(str label, float width, float height, cimgui.ImGuiCond condition = ONCE): # <<<<<<<<<<<<<< * """Set the window with label to some size * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_63set_window_size_named(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_62set_window_size_named[] = "set_window_size_named(str label, float width, float height, ImGuiCond condition=ONCE)\nSet the window with label to some size\n\n Args:\n label(string): name of the window\n width(float): new width of the window\n height(float): new height of the window\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ONCE`.\n\n .. visual-example::\n :title: Window size\n :height: 200\n\n imgui.set_window_size_named(\"Window 1\",100,100)\n imgui.set_window_size_named(\"Window 2\",100,200)\n\n imgui.begin(\"Window 1\")\n imgui.end()\n\n imgui.begin(\"Window 2\")\n imgui.end()\n\n .. wraps::\n void SetWindowSize(\n const char* name,\n const ImVec2& size,\n ImGuiCond cond\n )\n \n "; static PyMethodDef __pyx_mdef_5imgui_4core_63set_window_size_named = {"set_window_size_named", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_63set_window_size_named, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_62set_window_size_named}; static PyObject *__pyx_pw_5imgui_4core_63set_window_size_named(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_width; float __pyx_v_height; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_size_named (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_condition,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_window_size_named", 0, 3, 4, 1); __PYX_ERR(0, 4534, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_window_size_named", 0, 3, 4, 2); __PYX_ERR(0, 4534, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_window_size_named") < 0)) __PYX_ERR(0, 4534, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4534, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4534, __pyx_L3_error) if (values[3]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[3]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4534, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__65; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_window_size_named", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4534, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_window_size_named", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 4534, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_62set_window_size_named(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height, __pyx_v_condition); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_62set_window_size_named(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImVec2 __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_size_named", 0); /* "imgui/core.pyx":4566 * """ * cimgui.SetWindowSize( * _bytes(label), # <<<<<<<<<<<<<< * _cast_args_ImVec2(width, height), * condition */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 4566, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 4566, __pyx_L1_error) /* "imgui/core.pyx":4567 * cimgui.SetWindowSize( * _bytes(label), * _cast_args_ImVec2(width, height), # <<<<<<<<<<<<<< * condition * ) */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4567, __pyx_L1_error) /* "imgui/core.pyx":4565 * * """ * cimgui.SetWindowSize( # <<<<<<<<<<<<<< * _bytes(label), * _cast_args_ImVec2(width, height), */ try { ImGui::SetWindowSize(__pyx_t_2, __pyx_t_3, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4565, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":4534 * cimgui.SetWindowSize(_cast_args_ImVec2(width, height), condition) * * def set_window_size_named(str label, float width, float height, cimgui.ImGuiCond condition = ONCE): # <<<<<<<<<<<<<< * """Set the window with label to some size * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_window_size_named", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4571 * ) * * def get_scroll_x(): # <<<<<<<<<<<<<< * """get scrolling amount [0..GetScrollMaxX()] * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_65get_scroll_x(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_64get_scroll_x[] = "get_scroll_x()\nget scrolling amount [0..GetScrollMaxX()]\n\n Returns:\n float: the current scroll X value\n\n .. wraps::\n int GetScrollX()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_65get_scroll_x = {"get_scroll_x", (PyCFunction)__pyx_pw_5imgui_4core_65get_scroll_x, METH_NOARGS, __pyx_doc_5imgui_4core_64get_scroll_x}; static PyObject *__pyx_pw_5imgui_4core_65get_scroll_x(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_scroll_x (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_64get_scroll_x(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_64get_scroll_x(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_scroll_x", 0); /* "imgui/core.pyx":4580 * int GetScrollX() * """ * return cimgui.GetScrollX() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetScrollX(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4580, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4571 * ) * * def get_scroll_x(): # <<<<<<<<<<<<<< * """get scrolling amount [0..GetScrollMaxX()] * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_scroll_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4583 * * * def get_scroll_y(): # <<<<<<<<<<<<<< * """get scrolling amount [0..GetScrollMaxY()] * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_67get_scroll_y(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_66get_scroll_y[] = "get_scroll_y()\nget scrolling amount [0..GetScrollMaxY()]\n\n Returns:\n float: the current scroll Y value\n\n .. wraps::\n int GetScrollY()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_67get_scroll_y = {"get_scroll_y", (PyCFunction)__pyx_pw_5imgui_4core_67get_scroll_y, METH_NOARGS, __pyx_doc_5imgui_4core_66get_scroll_y}; static PyObject *__pyx_pw_5imgui_4core_67get_scroll_y(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_scroll_y (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_66get_scroll_y(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_66get_scroll_y(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_scroll_y", 0); /* "imgui/core.pyx":4592 * int GetScrollY() * """ * return cimgui.GetScrollY() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetScrollY(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4592, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4583 * * * def get_scroll_y(): # <<<<<<<<<<<<<< * """get scrolling amount [0..GetScrollMaxY()] * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_scroll_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4595 * * * def get_scroll_max_x(): # <<<<<<<<<<<<<< * """get maximum scrolling amount ~~ ContentSize.X - WindowSize.X * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_69get_scroll_max_x(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_68get_scroll_max_x[] = "get_scroll_max_x()\nget maximum scrolling amount ~~ ContentSize.X - WindowSize.X\n\n Returns:\n float: the maximum scroll X amount\n\n .. wraps::\n int GetScrollMaxX()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_69get_scroll_max_x = {"get_scroll_max_x", (PyCFunction)__pyx_pw_5imgui_4core_69get_scroll_max_x, METH_NOARGS, __pyx_doc_5imgui_4core_68get_scroll_max_x}; static PyObject *__pyx_pw_5imgui_4core_69get_scroll_max_x(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_scroll_max_x (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_68get_scroll_max_x(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_68get_scroll_max_x(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_scroll_max_x", 0); /* "imgui/core.pyx":4604 * int GetScrollMaxX() * """ * return cimgui.GetScrollMaxX() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetScrollMaxX(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4604, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4595 * * * def get_scroll_max_x(): # <<<<<<<<<<<<<< * """get maximum scrolling amount ~~ ContentSize.X - WindowSize.X * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_scroll_max_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4607 * * * def get_scroll_max_y(): # <<<<<<<<<<<<<< * """get maximum scrolling amount ~~ ContentSize.X - WindowSize.X * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_71get_scroll_max_y(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_70get_scroll_max_y[] = "get_scroll_max_y()\nget maximum scrolling amount ~~ ContentSize.X - WindowSize.X\n\n Returns:\n float: the maximum scroll Y amount\n\n .. wraps::\n int GetScrollMaxY()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_71get_scroll_max_y = {"get_scroll_max_y", (PyCFunction)__pyx_pw_5imgui_4core_71get_scroll_max_y, METH_NOARGS, __pyx_doc_5imgui_4core_70get_scroll_max_y}; static PyObject *__pyx_pw_5imgui_4core_71get_scroll_max_y(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_scroll_max_y (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_70get_scroll_max_y(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_70get_scroll_max_y(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_scroll_max_y", 0); /* "imgui/core.pyx":4616 * int GetScrollMaxY() * """ * return cimgui.GetScrollMaxY() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetScrollMaxY(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4616, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4607 * * * def get_scroll_max_y(): # <<<<<<<<<<<<<< * """get maximum scrolling amount ~~ ContentSize.X - WindowSize.X * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_scroll_max_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4619 * * * def set_scroll_x(float scroll_x): # <<<<<<<<<<<<<< * """set scrolling amount [0..SetScrollMaxX()] * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_73set_scroll_x(PyObject *__pyx_self, PyObject *__pyx_arg_scroll_x); /*proto*/ static char __pyx_doc_5imgui_4core_72set_scroll_x[] = "set_scroll_x(float scroll_x)\nset scrolling amount [0..SetScrollMaxX()]\n\n .. wraps::\n int SetScrollX(float)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_73set_scroll_x = {"set_scroll_x", (PyCFunction)__pyx_pw_5imgui_4core_73set_scroll_x, METH_O, __pyx_doc_5imgui_4core_72set_scroll_x}; static PyObject *__pyx_pw_5imgui_4core_73set_scroll_x(PyObject *__pyx_self, PyObject *__pyx_arg_scroll_x) { float __pyx_v_scroll_x; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_scroll_x (wrapper)", 0); assert(__pyx_arg_scroll_x); { __pyx_v_scroll_x = __pyx_PyFloat_AsFloat(__pyx_arg_scroll_x); if (unlikely((__pyx_v_scroll_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4619, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_scroll_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_72set_scroll_x(__pyx_self, ((float)__pyx_v_scroll_x)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_72set_scroll_x(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_scroll_x) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_scroll_x", 0); /* "imgui/core.pyx":4625 * int SetScrollX(float) * """ * cimgui.SetScrollX(scroll_x) # <<<<<<<<<<<<<< * * */ try { ImGui::SetScrollX(__pyx_v_scroll_x); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4625, __pyx_L1_error) } /* "imgui/core.pyx":4619 * * * def set_scroll_x(float scroll_x): # <<<<<<<<<<<<<< * """set scrolling amount [0..SetScrollMaxX()] * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_scroll_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4628 * * * def set_scroll_y(float scroll_y): # <<<<<<<<<<<<<< * """set scrolling amount [0..SetScrollMaxY()] * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_75set_scroll_y(PyObject *__pyx_self, PyObject *__pyx_arg_scroll_y); /*proto*/ static char __pyx_doc_5imgui_4core_74set_scroll_y[] = "set_scroll_y(float scroll_y)\nset scrolling amount [0..SetScrollMaxY()]\n\n .. wraps::\n int SetScrollY(flot)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_75set_scroll_y = {"set_scroll_y", (PyCFunction)__pyx_pw_5imgui_4core_75set_scroll_y, METH_O, __pyx_doc_5imgui_4core_74set_scroll_y}; static PyObject *__pyx_pw_5imgui_4core_75set_scroll_y(PyObject *__pyx_self, PyObject *__pyx_arg_scroll_y) { float __pyx_v_scroll_y; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_scroll_y (wrapper)", 0); assert(__pyx_arg_scroll_y); { __pyx_v_scroll_y = __pyx_PyFloat_AsFloat(__pyx_arg_scroll_y); if (unlikely((__pyx_v_scroll_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4628, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_scroll_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_74set_scroll_y(__pyx_self, ((float)__pyx_v_scroll_y)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_74set_scroll_y(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_scroll_y) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_scroll_y", 0); /* "imgui/core.pyx":4634 * int SetScrollY(flot) * """ * return cimgui.SetScrollY(scroll_y) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { ImGui::SetScrollY(__pyx_v_scroll_y); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4634, __pyx_L1_error) } __pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":4628 * * * def set_scroll_y(float scroll_y): # <<<<<<<<<<<<<< * """set scrolling amount [0..SetScrollMaxY()] * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_scroll_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4637 * * * def set_window_font_scale(float scale): # <<<<<<<<<<<<<< * """Adjust per-window font scale for current window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_77set_window_font_scale(PyObject *__pyx_self, PyObject *__pyx_arg_scale); /*proto*/ static char __pyx_doc_5imgui_4core_76set_window_font_scale[] = "set_window_font_scale(float scale)\nAdjust per-window font scale for current window.\n\n Function should be called inside window context so after calling\n :any:`begin()`.\n\n Note: use ``get_io().font_global_scale`` if you want to scale all windows.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n\n imgui.begin(\"Example: font scale\")\n imgui.set_window_font_scale(2.0)\n imgui.text(\"Bigger font\")\n imgui.end()\n\n Args:\n scale (float): font scale\n\n .. wraps::\n void SetWindowFontScale(float scale)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_77set_window_font_scale = {"set_window_font_scale", (PyCFunction)__pyx_pw_5imgui_4core_77set_window_font_scale, METH_O, __pyx_doc_5imgui_4core_76set_window_font_scale}; static PyObject *__pyx_pw_5imgui_4core_77set_window_font_scale(PyObject *__pyx_self, PyObject *__pyx_arg_scale) { float __pyx_v_scale; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_font_scale (wrapper)", 0); assert(__pyx_arg_scale); { __pyx_v_scale = __pyx_PyFloat_AsFloat(__pyx_arg_scale); if (unlikely((__pyx_v_scale == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4637, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_window_font_scale", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_76set_window_font_scale(__pyx_self, ((float)__pyx_v_scale)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_76set_window_font_scale(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_scale) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_font_scale", 0); /* "imgui/core.pyx":4660 * void SetWindowFontScale(float scale) * """ * cimgui.SetWindowFontScale(scale) # <<<<<<<<<<<<<< * * */ try { ImGui::SetWindowFontScale(__pyx_v_scale); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4660, __pyx_L1_error) } /* "imgui/core.pyx":4637 * * * def set_window_font_scale(float scale): # <<<<<<<<<<<<<< * """Adjust per-window font scale for current window. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_window_font_scale", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4663 * * * def set_next_window_collapsed( # <<<<<<<<<<<<<< * cimgui.bool collapsed, cimgui.ImGuiCond condition=ALWAYS * ): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_79set_next_window_collapsed(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_78set_next_window_collapsed[] = "set_next_window_collapsed(bool collapsed, ImGuiCond condition=ALWAYS)\nSet next window collapsed state.\n\n .. visual-example::\n :auto_layout:\n :height: 60\n :width: 400\n\n imgui.set_next_window_collapsed(True)\n imgui.begin(\"Example: collapsed window\")\n imgui.end()\n\n\n Args:\n collapsed (bool): set to True if window has to be collapsed.\n condition (:ref:`condition flag `): defines on\n which condition value should be set. Defaults to\n :any:`imgui.ALWAYS`.\n\n .. wraps::\n void SetNextWindowCollapsed(\n bool collapsed, ImGuiCond cond = 0\n )\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_79set_next_window_collapsed = {"set_next_window_collapsed", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_79set_next_window_collapsed, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_78set_next_window_collapsed}; static PyObject *__pyx_pw_5imgui_4core_79set_next_window_collapsed(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_collapsed; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_window_collapsed (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_collapsed,&__pyx_n_s_condition,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_collapsed)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_next_window_collapsed") < 0)) __PYX_ERR(0, 4663, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_collapsed = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_collapsed == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4664, __pyx_L3_error) if (values[1]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[1]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4664, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__66; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_next_window_collapsed", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4663, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_next_window_collapsed", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_78set_next_window_collapsed(__pyx_self, __pyx_v_collapsed, __pyx_v_condition); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_78set_next_window_collapsed(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_collapsed, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_window_collapsed", 0); /* "imgui/core.pyx":4690 * * """ * cimgui.SetNextWindowCollapsed(collapsed, condition) # <<<<<<<<<<<<<< * * */ try { ImGui::SetNextWindowCollapsed(__pyx_v_collapsed, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4690, __pyx_L1_error) } /* "imgui/core.pyx":4663 * * * def set_next_window_collapsed( # <<<<<<<<<<<<<< * cimgui.bool collapsed, cimgui.ImGuiCond condition=ALWAYS * ): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_next_window_collapsed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4693 * * * def set_next_window_focus(): # <<<<<<<<<<<<<< * """Set next window to be focused (most front). * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_81set_next_window_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_80set_next_window_focus[] = "set_next_window_focus()\nSet next window to be focused (most front).\n\n .. wraps::\n void SetNextWindowFocus()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_81set_next_window_focus = {"set_next_window_focus", (PyCFunction)__pyx_pw_5imgui_4core_81set_next_window_focus, METH_NOARGS, __pyx_doc_5imgui_4core_80set_next_window_focus}; static PyObject *__pyx_pw_5imgui_4core_81set_next_window_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_window_focus (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_80set_next_window_focus(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_80set_next_window_focus(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_window_focus", 0); /* "imgui/core.pyx":4699 * void SetNextWindowFocus() * """ * cimgui.SetNextWindowFocus() # <<<<<<<<<<<<<< * * */ try { ImGui::SetNextWindowFocus(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4699, __pyx_L1_error) } /* "imgui/core.pyx":4693 * * * def set_next_window_focus(): # <<<<<<<<<<<<<< * """Set next window to be focused (most front). * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_next_window_focus", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4702 * * * def set_next_window_bg_alpha(float alpha): # <<<<<<<<<<<<<< * """set next window background color alpha. helper to easily modify ImGuiCol_WindowBg/ChildBg/PopupBg. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_83set_next_window_bg_alpha(PyObject *__pyx_self, PyObject *__pyx_arg_alpha); /*proto*/ static char __pyx_doc_5imgui_4core_82set_next_window_bg_alpha[] = "set_next_window_bg_alpha(float alpha)\nset next window background color alpha. helper to easily modify ImGuiCol_WindowBg/ChildBg/PopupBg.\n\n .. wraps::\n void SetNextWindowBgAlpha(float)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_83set_next_window_bg_alpha = {"set_next_window_bg_alpha", (PyCFunction)__pyx_pw_5imgui_4core_83set_next_window_bg_alpha, METH_O, __pyx_doc_5imgui_4core_82set_next_window_bg_alpha}; static PyObject *__pyx_pw_5imgui_4core_83set_next_window_bg_alpha(PyObject *__pyx_self, PyObject *__pyx_arg_alpha) { float __pyx_v_alpha; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_window_bg_alpha (wrapper)", 0); assert(__pyx_arg_alpha); { __pyx_v_alpha = __pyx_PyFloat_AsFloat(__pyx_arg_alpha); if (unlikely((__pyx_v_alpha == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4702, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_next_window_bg_alpha", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_82set_next_window_bg_alpha(__pyx_self, ((float)__pyx_v_alpha)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_82set_next_window_bg_alpha(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_alpha) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_window_bg_alpha", 0); /* "imgui/core.pyx":4708 * void SetNextWindowBgAlpha(float) * """ * cimgui.SetNextWindowBgAlpha(alpha) # <<<<<<<<<<<<<< * * */ try { ImGui::SetNextWindowBgAlpha(__pyx_v_alpha); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4708, __pyx_L1_error) } /* "imgui/core.pyx":4702 * * * def set_next_window_bg_alpha(float alpha): # <<<<<<<<<<<<<< * """set next window background color alpha. helper to easily modify ImGuiCol_WindowBg/ChildBg/PopupBg. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_next_window_bg_alpha", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4711 * * * def get_window_draw_list(): # <<<<<<<<<<<<<< * """Get the draw list associated with the window, to append your own drawing primitives * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_85get_window_draw_list(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_84get_window_draw_list[] = "get_window_draw_list()\nGet the draw list associated with the window, to append your own drawing primitives\n\n It may be useful if you want to do your own drawing via the :class:`_DrawList`\n API.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 200\n :click: 10 10\n\n\n pos_x = 10\n pos_y = 10\n sz = 20\n\n draw_list = imgui.get_window_draw_list()\n\n for i in range(0, imgui.COLOR_COUNT):\n name = imgui.get_style_color_name(i);\n draw_list.add_rect_filled(pos_x, pos_y, pos_x+sz, pos_y+sz, imgui.get_color_u32_idx(i));\n imgui.dummy(sz, sz);\n imgui.same_line();\n\n rgba_color = imgui.get_color_u32_rgba(1, 1, 0, 1);\n draw_list.add_rect_filled(pos_x, pos_y, pos_x+sz, pos_y+sz, rgba_color);\n\n\n Returns:\n ImDrawList*\n\n .. wraps::\n ImDrawList* GetWindowDrawList()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_85get_window_draw_list = {"get_window_draw_list", (PyCFunction)__pyx_pw_5imgui_4core_85get_window_draw_list, METH_NOARGS, __pyx_doc_5imgui_4core_84get_window_draw_list}; static PyObject *__pyx_pw_5imgui_4core_85get_window_draw_list(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_window_draw_list (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_84get_window_draw_list(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_84get_window_draw_list(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImDrawList *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_window_draw_list", 0); /* "imgui/core.pyx":4746 * ImDrawList* GetWindowDrawList() * """ * return _DrawList.from_ptr(cimgui.GetWindowDrawList()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetWindowDrawList(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4746, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_9_DrawList_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4711 * * * def get_window_draw_list(): # <<<<<<<<<<<<<< * """Get the draw list associated with the window, to append your own drawing primitives * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_window_draw_list", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4750 * * # OBSOLETED in 1.69 (from Mar 2019) * def get_overlay_draw_list(): # <<<<<<<<<<<<<< * """Get a special draw list that will be drawn last (over all windows). * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_87get_overlay_draw_list(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_86get_overlay_draw_list[] = "get_overlay_draw_list()\nGet a special draw list that will be drawn last (over all windows).\n\n Useful for drawing overlays.\n\n Returns:\n ImDrawList*\n\n .. wraps::\n ImDrawList* GetWindowDrawList()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_87get_overlay_draw_list = {"get_overlay_draw_list", (PyCFunction)__pyx_pw_5imgui_4core_87get_overlay_draw_list, METH_NOARGS, __pyx_doc_5imgui_4core_86get_overlay_draw_list}; static PyObject *__pyx_pw_5imgui_4core_87get_overlay_draw_list(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_overlay_draw_list (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_86get_overlay_draw_list(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_86get_overlay_draw_list(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImDrawList *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_overlay_draw_list", 0); /* "imgui/core.pyx":4761 * ImDrawList* GetWindowDrawList() * """ * return _DrawList.from_ptr(cimgui.GetOverlayDrawList()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetOverlayDrawList(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4761, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_9_DrawList_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4750 * * # OBSOLETED in 1.69 (from Mar 2019) * def get_overlay_draw_list(): # <<<<<<<<<<<<<< * """Get a special draw list that will be drawn last (over all windows). * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_overlay_draw_list", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4764 * * * def get_window_position(): # <<<<<<<<<<<<<< * """Get current window position. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_89get_window_position(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_88get_window_position[] = "get_window_position()\nGet current window position.\n\n It may be useful if you want to do your own drawing via the DrawList\n api.\n\n Returns:\n Vec2: two-tuple of window coordinates in screen space.\n\n .. wraps::\n ImVec2 GetWindowPos()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_89get_window_position = {"get_window_position", (PyCFunction)__pyx_pw_5imgui_4core_89get_window_position, METH_NOARGS, __pyx_doc_5imgui_4core_88get_window_position}; static PyObject *__pyx_pw_5imgui_4core_89get_window_position(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_window_position (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_88get_window_position(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_88get_window_position(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_window_position", 0); /* "imgui/core.pyx":4776 * ImVec2 GetWindowPos() * """ * return _cast_ImVec2_tuple(cimgui.GetWindowPos()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetWindowPos(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4776, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4764 * * * def get_window_position(): # <<<<<<<<<<<<<< * """Get current window position. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_window_position", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4779 * * * def get_window_size(): # <<<<<<<<<<<<<< * """Get current window size. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_91get_window_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_90get_window_size[] = "get_window_size()\nGet current window size.\n\n Returns:\n Vec2: two-tuple of window dimensions.\n\n .. wraps::\n ImVec2 GetWindowSize()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_91get_window_size = {"get_window_size", (PyCFunction)__pyx_pw_5imgui_4core_91get_window_size, METH_NOARGS, __pyx_doc_5imgui_4core_90get_window_size}; static PyObject *__pyx_pw_5imgui_4core_91get_window_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_window_size (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_90get_window_size(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_90get_window_size(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_window_size", 0); /* "imgui/core.pyx":4788 * ImVec2 GetWindowSize() * """ * return _cast_ImVec2_tuple(cimgui.GetWindowSize()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetWindowSize(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4788, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4779 * * * def get_window_size(): # <<<<<<<<<<<<<< * """Get current window size. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_window_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4791 * * * def get_window_width(): # <<<<<<<<<<<<<< * """Get current window width. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_93get_window_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_92get_window_width[] = "get_window_width()\nGet current window width.\n\n Returns:\n float: width of current window.\n\n .. wraps::\n float GetWindowWidth()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_93get_window_width = {"get_window_width", (PyCFunction)__pyx_pw_5imgui_4core_93get_window_width, METH_NOARGS, __pyx_doc_5imgui_4core_92get_window_width}; static PyObject *__pyx_pw_5imgui_4core_93get_window_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_window_width (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_92get_window_width(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_92get_window_width(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_window_width", 0); /* "imgui/core.pyx":4800 * float GetWindowWidth() * """ * return cimgui.GetWindowWidth() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetWindowWidth(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4800, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4791 * * * def get_window_width(): # <<<<<<<<<<<<<< * """Get current window width. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_window_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4803 * * * def get_window_height(): # <<<<<<<<<<<<<< * """Get current window height. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_95get_window_height(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_94get_window_height[] = "get_window_height()\nGet current window height.\n\n Returns:\n float: height of current window.\n\n .. wraps::\n float GetWindowHeight()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_95get_window_height = {"get_window_height", (PyCFunction)__pyx_pw_5imgui_4core_95get_window_height, METH_NOARGS, __pyx_doc_5imgui_4core_94get_window_height}; static PyObject *__pyx_pw_5imgui_4core_95get_window_height(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_window_height (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_94get_window_height(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_94get_window_height(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_window_height", 0); /* "imgui/core.pyx":4812 * float GetWindowHeight() * """ * return cimgui.GetWindowHeight() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetWindowHeight(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4812, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":4803 * * * def get_window_height(): # <<<<<<<<<<<<<< * """Get current window height. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_window_height", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4815 * * * def set_next_window_position( # <<<<<<<<<<<<<< * float x, float y, cimgui.ImGuiCond condition=ALWAYS, float pivot_x=0, float pivot_y=0 * ): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_97set_next_window_position(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_96set_next_window_position[] = "set_next_window_position(float x, float y, ImGuiCond condition=ALWAYS, float pivot_x=0, float pivot_y=0)\nSet next window position.\n\n Call before :func:`begin()`.\n\n Args:\n x (float): x window coordinate\n y (float): y window coordinate\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ALWAYS`.\n pivot_x (float): pivot x window coordinate\n pivot_y (float): pivot y window coordinate\n\n .. visual-example::\n :title: window positioning\n :height: 50\n\n imgui.set_next_window_size(20, 20)\n\n for index in range(5):\n imgui.set_next_window_position(index * 40, 5)\n imgui.begin(str(index))\n imgui.end()\n\n .. wraps::\n void SetNextWindowPos(\n const ImVec2& pos,\n ImGuiCond cond = 0,\n const ImVec2& pivot = ImVec2(0,0)\n )\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_97set_next_window_position = {"set_next_window_position", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_97set_next_window_position, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_96set_next_window_position}; static PyObject *__pyx_pw_5imgui_4core_97set_next_window_position(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_x; float __pyx_v_y; ImGuiCond __pyx_v_condition; float __pyx_v_pivot_x; float __pyx_v_pivot_y; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_window_position (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_condition,&__pyx_n_s_pivot_x,&__pyx_n_s_pivot_y,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_next_window_position", 0, 2, 5, 1); __PYX_ERR(0, 4815, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pivot_x); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pivot_y); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_next_window_position") < 0)) __PYX_ERR(0, 4815, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4816, __pyx_L3_error) __pyx_v_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4816, __pyx_L3_error) if (values[2]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[2]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4816, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__67; } if (values[3]) { __pyx_v_pivot_x = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_pivot_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4816, __pyx_L3_error) } else { __pyx_v_pivot_x = ((float)0.0); } if (values[4]) { __pyx_v_pivot_y = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_pivot_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4816, __pyx_L3_error) } else { __pyx_v_pivot_y = ((float)0.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_next_window_position", 0, 2, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4815, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_next_window_position", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_96set_next_window_position(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_condition, __pyx_v_pivot_x, __pyx_v_pivot_y); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_96set_next_window_position(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_x, float __pyx_v_y, ImGuiCond __pyx_v_condition, float __pyx_v_pivot_x, float __pyx_v_pivot_y) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_window_position", 0); /* "imgui/core.pyx":4849 * * """ * cimgui.SetNextWindowPos(_cast_args_ImVec2(x, y), condition, _cast_args_ImVec2(pivot_x, pivot_y)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4849, __pyx_L1_error) __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_pivot_x, __pyx_v_pivot_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4849, __pyx_L1_error) try { ImGui::SetNextWindowPos(__pyx_t_1, __pyx_v_condition, __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4849, __pyx_L1_error) } /* "imgui/core.pyx":4815 * * * def set_next_window_position( # <<<<<<<<<<<<<< * float x, float y, cimgui.ImGuiCond condition=ALWAYS, float pivot_x=0, float pivot_y=0 * ): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_next_window_position", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4852 * * * def set_next_window_size( # <<<<<<<<<<<<<< * float width, float height, cimgui.ImGuiCond condition=ALWAYS * ): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_99set_next_window_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_98set_next_window_size[] = "set_next_window_size(float width, float height, ImGuiCond condition=ALWAYS)\nSet next window size.\n\n Call before :func:`begin()`.\n\n Args:\n width (float): window width. Value 0.0 enables autofit.\n height (float): window height. Value 0.0 enables autofit.\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ALWAYS`.\n\n .. visual-example::\n :title: window sizing\n :height: 200\n\n imgui.set_next_window_position(io.display_size.x * 0.5, io.display_size.y * 0.5, 1, pivot_x = 0.5, pivot_y = 0.5)\n\n imgui.set_next_window_size(80, 180)\n imgui.begin(\"High\")\n imgui.end()\n\n\n .. wraps::\n void SetNextWindowSize(\n const ImVec2& size, ImGuiCond cond = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_99set_next_window_size = {"set_next_window_size", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_99set_next_window_size, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_98set_next_window_size}; static PyObject *__pyx_pw_5imgui_4core_99set_next_window_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_width; float __pyx_v_height; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_window_size (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_condition,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_next_window_size", 0, 2, 3, 1); __PYX_ERR(0, 4852, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_next_window_size") < 0)) __PYX_ERR(0, 4852, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_width = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4853, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4853, __pyx_L3_error) if (values[2]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[2]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4853, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__68; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_next_window_size", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4852, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_next_window_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_98set_next_window_size(__pyx_self, __pyx_v_width, __pyx_v_height, __pyx_v_condition); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_98set_next_window_size(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width, float __pyx_v_height, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_window_size", 0); /* "imgui/core.pyx":4881 * ) * """ * cimgui.SetNextWindowSize(_cast_args_ImVec2(width, height), condition) # <<<<<<<<<<<<<< * * # Useful for non trivial constraints */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4881, __pyx_L1_error) try { ImGui::SetNextWindowSize(__pyx_t_1, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4881, __pyx_L1_error) } /* "imgui/core.pyx":4852 * * * def set_next_window_size( # <<<<<<<<<<<<<< * float width, float height, cimgui.ImGuiCond condition=ALWAYS * ): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_next_window_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4885 * # Useful for non trivial constraints * cdef _callback_user_info _global_next_window_size_constraints_callback_user_info = _callback_user_info() * def set_next_window_size_constraints( # <<<<<<<<<<<<<< * tuple size_min, * tuple size_max, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_101set_next_window_size_constraints(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_100set_next_window_size_constraints[] = "set_next_window_size_constraints(tuple size_min, tuple size_max, callback=None, user_data=None)\nSet next window size limits. use -1,-1 on either X/Y axis to preserve the current size.\n Sizes will be rounded down.\n\n Call before :func:`begin()`.\n\n Args:\n size_min (tuple): Minimum window size, use -1 to conserve current size\n size_max (tuple): Maximum window size, use -1 to conserve current size\n callback (callable): a callable.\n Callable takes an imgui._ImGuiSizeCallbackData object as argument\n Callable should return None\n user_data: Any data that the user want to use in the callback.\n\n .. visual-example::\n :title: Window size constraints\n :height: 200\n\n imgui.set_next_window_size_constraints((175,50), (200, 100))\n imgui.begin(\"Constrained Window\")\n imgui.text(\"...\")\n imgui.end()\n\n .. wraps::\n void SetNextWindowSizeConstraints(\n const ImVec2& size_min,\n const ImVec2& size_max,\n ImGuiSizeCallback custom_callback = NULL,\n void* custom_callback_user_data = NULL\n )\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_101set_next_window_size_constraints = {"set_next_window_size_constraints", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_101set_next_window_size_constraints, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_100set_next_window_size_constraints}; static PyObject *__pyx_pw_5imgui_4core_101set_next_window_size_constraints(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_size_min = 0; PyObject *__pyx_v_size_max = 0; PyObject *__pyx_v_callback = 0; PyObject *__pyx_v_user_data = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_window_size_constraints (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size_min,&__pyx_n_s_size_max,&__pyx_n_s_callback,&__pyx_n_s_user_data,0}; PyObject* values[4] = {0,0,0,0}; /* "imgui/core.pyx":4888 * tuple size_min, * tuple size_max, * object callback = None, # <<<<<<<<<<<<<< * user_data = None): * """Set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. */ values[2] = ((PyObject *)Py_None); /* "imgui/core.pyx":4889 * tuple size_max, * object callback = None, * user_data = None): # <<<<<<<<<<<<<< * """Set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. * Sizes will be rounded down. */ values[3] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size_min)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size_max)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_next_window_size_constraints", 0, 2, 4, 1); __PYX_ERR(0, 4885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_callback); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_user_data); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_next_window_size_constraints") < 0)) __PYX_ERR(0, 4885, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_size_min = ((PyObject*)values[0]); __pyx_v_size_max = ((PyObject*)values[1]); __pyx_v_callback = values[2]; __pyx_v_user_data = values[3]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_next_window_size_constraints", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4885, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_next_window_size_constraints", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_size_min), (&PyTuple_Type), 1, "size_min", 1))) __PYX_ERR(0, 4886, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_size_max), (&PyTuple_Type), 1, "size_max", 1))) __PYX_ERR(0, 4887, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_100set_next_window_size_constraints(__pyx_self, __pyx_v_size_min, __pyx_v_size_max, __pyx_v_callback, __pyx_v_user_data); /* "imgui/core.pyx":4885 * # Useful for non trivial constraints * cdef _callback_user_info _global_next_window_size_constraints_callback_user_info = _callback_user_info() * def set_next_window_size_constraints( # <<<<<<<<<<<<<< * tuple size_min, * tuple size_max, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_100set_next_window_size_constraints(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_size_min, PyObject *__pyx_v_size_max, PyObject *__pyx_v_callback, PyObject *__pyx_v_user_data) { ImGuiSizeCallback __pyx_v__callback; void *__pyx_v__user_data; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; ImVec2 __pyx_t_8; ImVec2 __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_window_size_constraints", 0); /* "imgui/core.pyx":4921 * * """ * cdef cimgui.ImGuiSizeCallback _callback = NULL # <<<<<<<<<<<<<< * cdef void *_user_data = NULL * if callback is not None: */ __pyx_v__callback = NULL; /* "imgui/core.pyx":4922 * """ * cdef cimgui.ImGuiSizeCallback _callback = NULL * cdef void *_user_data = NULL # <<<<<<<<<<<<<< * if callback is not None: * _callback = _ImGuiSizeCallback */ __pyx_v__user_data = NULL; /* "imgui/core.pyx":4923 * cdef cimgui.ImGuiSizeCallback _callback = NULL * cdef void *_user_data = NULL * if callback is not None: # <<<<<<<<<<<<<< * _callback = _ImGuiSizeCallback * _global_next_window_size_constraints_callback_user_info.populate(callback, user_data) */ __pyx_t_1 = (__pyx_v_callback != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":4924 * cdef void *_user_data = NULL * if callback is not None: * _callback = _ImGuiSizeCallback # <<<<<<<<<<<<<< * _global_next_window_size_constraints_callback_user_info.populate(callback, user_data) * _user_data = _global_next_window_size_constraints_callback_user_info */ __pyx_v__callback = __pyx_f_5imgui_4core__ImGuiSizeCallback; /* "imgui/core.pyx":4925 * if callback is not None: * _callback = _ImGuiSizeCallback * _global_next_window_size_constraints_callback_user_info.populate(callback, user_data) # <<<<<<<<<<<<<< * _user_data = _global_next_window_size_constraints_callback_user_info * */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_5imgui_4core__global_next_window_size_constraints_callback_user_info), __pyx_n_s_populate); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_callback, __pyx_v_user_data}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4925, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_callback, __pyx_v_user_data}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4925, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_INCREF(__pyx_v_callback); __Pyx_GIVEREF(__pyx_v_callback); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_callback); __Pyx_INCREF(__pyx_v_user_data); __Pyx_GIVEREF(__pyx_v_user_data); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_user_data); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":4926 * _callback = _ImGuiSizeCallback * _global_next_window_size_constraints_callback_user_info.populate(callback, user_data) * _user_data = _global_next_window_size_constraints_callback_user_info # <<<<<<<<<<<<<< * * cimgui.SetNextWindowSizeConstraints( */ __pyx_v__user_data = ((void *)__pyx_v_5imgui_4core__global_next_window_size_constraints_callback_user_info); /* "imgui/core.pyx":4923 * cdef cimgui.ImGuiSizeCallback _callback = NULL * cdef void *_user_data = NULL * if callback is not None: # <<<<<<<<<<<<<< * _callback = _ImGuiSizeCallback * _global_next_window_size_constraints_callback_user_info.populate(callback, user_data) */ } /* "imgui/core.pyx":4929 * * cimgui.SetNextWindowSizeConstraints( * _cast_tuple_ImVec2(size_min), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(size_max), * _callback, _user_data) */ __pyx_t_8 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_size_min); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4929, __pyx_L1_error) /* "imgui/core.pyx":4930 * cimgui.SetNextWindowSizeConstraints( * _cast_tuple_ImVec2(size_min), * _cast_tuple_ImVec2(size_max), # <<<<<<<<<<<<<< * _callback, _user_data) * */ __pyx_t_9 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_size_max); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4930, __pyx_L1_error) /* "imgui/core.pyx":4928 * _user_data = _global_next_window_size_constraints_callback_user_info * * cimgui.SetNextWindowSizeConstraints( # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(size_min), * _cast_tuple_ImVec2(size_max), */ try { ImGui::SetNextWindowSizeConstraints(__pyx_t_8, __pyx_t_9, __pyx_v__callback, __pyx_v__user_data); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4928, __pyx_L1_error) } /* "imgui/core.pyx":4885 * # Useful for non trivial constraints * cdef _callback_user_info _global_next_window_size_constraints_callback_user_info = _callback_user_info() * def set_next_window_size_constraints( # <<<<<<<<<<<<<< * tuple size_min, * tuple size_max, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.set_next_window_size_constraints", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4933 * _callback, _user_data) * * def set_next_window_content_size(float width, float height): # <<<<<<<<<<<<<< * """Set content size of the next window. Show scrollbars * if content doesn't fit in the window */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_103set_next_window_content_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_102set_next_window_content_size[] = "set_next_window_content_size(float width, float height)\nSet content size of the next window. Show scrollbars\n if content doesn't fit in the window\n\n Call before :func:`begin()`.\n\n Args:\n width(float): width of the content area\n height(float): height of the content area\n\n .. visual-example::\n :title: Content Size Demo\n :height: 30\n\n imgui.set_window_size(20,20)\n imgui.set_next_window_content_size(100,100)\n\n imgui.begin(\"Window\", True)\n imgui.text(\"Some example text\")\n imgui.end()\n\n .. wraps::\n void SetNextWindowContentSize(\n const ImVec2& size\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_103set_next_window_content_size = {"set_next_window_content_size", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_103set_next_window_content_size, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_102set_next_window_content_size}; static PyObject *__pyx_pw_5imgui_4core_103set_next_window_content_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_width; float __pyx_v_height; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_window_content_size (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,&__pyx_n_s_height,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_next_window_content_size", 1, 2, 2, 1); __PYX_ERR(0, 4933, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_next_window_content_size") < 0)) __PYX_ERR(0, 4933, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_width = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4933, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4933, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_next_window_content_size", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4933, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_next_window_content_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_102set_next_window_content_size(__pyx_self, __pyx_v_width, __pyx_v_height); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_102set_next_window_content_size(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width, float __pyx_v_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_window_content_size", 0); /* "imgui/core.pyx":4959 * ) * """ * cimgui.SetNextWindowContentSize(_cast_args_ImVec2(width, height)) # <<<<<<<<<<<<<< * * def set_window_position(float x, float y, cimgui.ImGuiCond condition = ALWAYS): */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4959, __pyx_L1_error) try { ImGui::SetNextWindowContentSize(__pyx_t_1); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4959, __pyx_L1_error) } /* "imgui/core.pyx":4933 * _callback, _user_data) * * def set_next_window_content_size(float width, float height): # <<<<<<<<<<<<<< * """Set content size of the next window. Show scrollbars * if content doesn't fit in the window */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_next_window_content_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4961 * cimgui.SetNextWindowContentSize(_cast_args_ImVec2(width, height)) * * def set_window_position(float x, float y, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the size of the current window * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_105set_window_position(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_104set_window_position[] = "set_window_position(float x, float y, ImGuiCond condition=ALWAYS)\nSet the size of the current window\n\n Call inside: func: 'begin()'\n\n Args:\n x(float): position on the x axis\n y(float): position on the y axis\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ALWAYS`.\n\n .. visual-example::\n :title: Window Size Demo\n :height: 200\n\n imgui.begin(\"Window 1\")\n imgui.set_window_position(20,20)\n imgui.end()\n\n imgui.begin(\"Window 2\")\n imgui.set_window_position(20,50)\n imgui.end()\n\n .. wraps::\n void SetWindowPos(\n const ImVec2& pos,\n ImGuiCond cond\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_105set_window_position = {"set_window_position", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_105set_window_position, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_104set_window_position}; static PyObject *__pyx_pw_5imgui_4core_105set_window_position(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_x; float __pyx_v_y; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_position (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_condition,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_window_position", 0, 2, 3, 1); __PYX_ERR(0, 4961, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_window_position") < 0)) __PYX_ERR(0, 4961, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4961, __pyx_L3_error) __pyx_v_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4961, __pyx_L3_error) if (values[2]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[2]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4961, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__69; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_window_position", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4961, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_window_position", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_104set_window_position(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_condition); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_104set_window_position(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_x, float __pyx_v_y, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_position", 0); /* "imgui/core.pyx":4990 * ) * """ * cimgui.SetWindowPos(_cast_args_ImVec2(x,y), condition) # <<<<<<<<<<<<<< * * def set_window_position_labeled(str label, float x, float y, cimgui.ImGuiCond condition = ALWAYS): */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4990, __pyx_L1_error) try { ImGui::SetWindowPos(__pyx_t_1, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 4990, __pyx_L1_error) } /* "imgui/core.pyx":4961 * cimgui.SetNextWindowContentSize(_cast_args_ImVec2(width, height)) * * def set_window_position(float x, float y, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the size of the current window * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_window_position", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":4992 * cimgui.SetWindowPos(_cast_args_ImVec2(x,y), condition) * * def set_window_position_labeled(str label, float x, float y, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the size of the window with label * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_107set_window_position_labeled(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_106set_window_position_labeled[] = "set_window_position_labeled(str label, float x, float y, ImGuiCond condition=ALWAYS)\nSet the size of the window with label\n\n Args:\n label(str): name of the window to be resized\n x(float): position on the x axis\n y(float): position on the y axis\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ALWAYS`.\n\n .. visual-example::\n :title: Window Size Demo\n :height: 200\n\n imgui.set_window_position_labeled(\"Window 1\", 20, 50)\n imgui.set_window_position_labeled(\"Window 2\", 20, 100)\n\n imgui.begin(\"Window 1\")\n imgui.end()\n\n imgui.begin(\"Window 2\")\n imgui.end()\n\n .. wraps::\n void SetWindowPos(\n const char* name,\n const ImVec2& pos,\n ImGuiCond cond\n )\n \n "; static PyMethodDef __pyx_mdef_5imgui_4core_107set_window_position_labeled = {"set_window_position_labeled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_107set_window_position_labeled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_106set_window_position_labeled}; static PyObject *__pyx_pw_5imgui_4core_107set_window_position_labeled(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_x; float __pyx_v_y; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_position_labeled (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_condition,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_window_position_labeled", 0, 3, 4, 1); __PYX_ERR(0, 4992, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_window_position_labeled", 0, 3, 4, 2); __PYX_ERR(0, 4992, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_window_position_labeled") < 0)) __PYX_ERR(0, 4992, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_x = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4992, __pyx_L3_error) __pyx_v_y = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 4992, __pyx_L3_error) if (values[3]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[3]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4992, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__70; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_window_position_labeled", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4992, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_window_position_labeled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 4992, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_106set_window_position_labeled(__pyx_self, __pyx_v_label, __pyx_v_x, __pyx_v_y, __pyx_v_condition); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_106set_window_position_labeled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_x, float __pyx_v_y, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImVec2 __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_position_labeled", 0); /* "imgui/core.pyx":5024 * """ * cimgui.SetWindowPos( * _bytes(label), # <<<<<<<<<<<<<< * _cast_args_ImVec2(x,y), * condition */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5024, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 5024, __pyx_L1_error) /* "imgui/core.pyx":5025 * cimgui.SetWindowPos( * _bytes(label), * _cast_args_ImVec2(x,y), # <<<<<<<<<<<<<< * condition * ) */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5025, __pyx_L1_error) /* "imgui/core.pyx":5023 * * """ * cimgui.SetWindowPos( # <<<<<<<<<<<<<< * _bytes(label), * _cast_args_ImVec2(x,y), */ try { ImGui::SetWindowPos(__pyx_t_2, __pyx_t_3, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5023, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":4992 * cimgui.SetWindowPos(_cast_args_ImVec2(x,y), condition) * * def set_window_position_labeled(str label, float x, float y, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the size of the window with label * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_window_position_labeled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5029 * ) * * def set_window_collapsed(bool collapsed, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the current window to be collapsed * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_109set_window_collapsed(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_108set_window_collapsed[] = "set_window_collapsed(bool collapsed, ImGuiCond condition=ALWAYS)\nSet the current window to be collapsed\n\n Call inside: func: 'begin()'\n\n Args:\n collapsed(bool): set boolean for collapsing the window. Set True for closed\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ALWAYS`.\n\n .. visual-example::\n :title: Window Collapsed Demo\n :height: 200\n\n imgui.begin(\"Window 1\")\n imgui.set_window_collapsed(True)\n imgui.end()\n\n .. wraps::\n void SetWindowCollapsed(\n bool collapsed,\n ImGuiCond cond\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_109set_window_collapsed = {"set_window_collapsed", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_109set_window_collapsed, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_108set_window_collapsed}; static PyObject *__pyx_pw_5imgui_4core_109set_window_collapsed(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_collapsed; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_collapsed (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_collapsed,&__pyx_n_s_condition,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_collapsed)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_window_collapsed") < 0)) __PYX_ERR(0, 5029, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_collapsed = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_collapsed == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5029, __pyx_L3_error) if (values[1]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[1]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5029, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__71; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_window_collapsed", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5029, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_window_collapsed", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_108set_window_collapsed(__pyx_self, __pyx_v_collapsed, __pyx_v_condition); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_108set_window_collapsed(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_collapsed, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_collapsed", 0); /* "imgui/core.pyx":5053 * ) * """ * cimgui.SetWindowCollapsed(collapsed, condition) # <<<<<<<<<<<<<< * * def set_window_collapsed_labeled(str label, bool collapsed, cimgui.ImGuiCond condition = ALWAYS): */ try { ImGui::SetWindowCollapsed(__pyx_v_collapsed, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5053, __pyx_L1_error) } /* "imgui/core.pyx":5029 * ) * * def set_window_collapsed(bool collapsed, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the current window to be collapsed * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_window_collapsed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5055 * cimgui.SetWindowCollapsed(collapsed, condition) * * def set_window_collapsed_labeled(str label, bool collapsed, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set window with label to collapse * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_111set_window_collapsed_labeled(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_110set_window_collapsed_labeled[] = "set_window_collapsed_labeled(str label, bool collapsed, ImGuiCond condition=ALWAYS)\nSet window with label to collapse\n\n Args:\n label(string): name of the window\n collapsed(bool): set boolean for collapsing the window. Set True for closed\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ALWAYS`.\n\n .. visual-example::\n :title: Window Collapsed Demo\n :height: 200\n\n imgui.set_window_collapsed_labeled(\"Window 1\", True)\n imgui.begin(\"Window 1\")\n imgui.end()\n\n .. wraps::\n void SetWindowCollapsed(\n const char* name,\n bool collapsed,\n ImGuiCond cond\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_111set_window_collapsed_labeled = {"set_window_collapsed_labeled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_111set_window_collapsed_labeled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_110set_window_collapsed_labeled}; static PyObject *__pyx_pw_5imgui_4core_111set_window_collapsed_labeled(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; bool __pyx_v_collapsed; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_window_collapsed_labeled (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_collapsed,&__pyx_n_s_condition,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_collapsed)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_window_collapsed_labeled", 0, 2, 3, 1); __PYX_ERR(0, 5055, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_window_collapsed_labeled") < 0)) __PYX_ERR(0, 5055, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_collapsed = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_collapsed == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5055, __pyx_L3_error) if (values[2]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[2]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5055, __pyx_L3_error) } else { __pyx_v_condition = __pyx_k__72; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_window_collapsed_labeled", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5055, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_window_collapsed_labeled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 5055, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_110set_window_collapsed_labeled(__pyx_self, __pyx_v_label, __pyx_v_collapsed, __pyx_v_condition); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_110set_window_collapsed_labeled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, bool __pyx_v_collapsed, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_window_collapsed_labeled", 0); /* "imgui/core.pyx":5079 * ) * """ * cimgui.SetWindowCollapsed(_bytes(label), collapsed, condition) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5079, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 5079, __pyx_L1_error) try { ImGui::SetWindowCollapsed(__pyx_t_2, __pyx_v_collapsed, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5079, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":5055 * cimgui.SetWindowCollapsed(collapsed, condition) * * def set_window_collapsed_labeled(str label, bool collapsed, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set window with label to collapse * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_window_collapsed_labeled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5082 * * * def is_window_collapsed(): # <<<<<<<<<<<<<< * """Check if current window is collapsed. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_113is_window_collapsed(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_112is_window_collapsed[] = "is_window_collapsed()\nCheck if current window is collapsed.\n\n Returns:\n bool: True if window is collapsed\n "; static PyMethodDef __pyx_mdef_5imgui_4core_113is_window_collapsed = {"is_window_collapsed", (PyCFunction)__pyx_pw_5imgui_4core_113is_window_collapsed, METH_NOARGS, __pyx_doc_5imgui_4core_112is_window_collapsed}; static PyObject *__pyx_pw_5imgui_4core_113is_window_collapsed(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_window_collapsed (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_112is_window_collapsed(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_112is_window_collapsed(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_window_collapsed", 0); /* "imgui/core.pyx":5088 * bool: True if window is collapsed * """ * return cimgui.IsWindowCollapsed() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsWindowCollapsed(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5088, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":5082 * * * def is_window_collapsed(): # <<<<<<<<<<<<<< * """Check if current window is collapsed. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_window_collapsed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5091 * * * def is_window_appearing(): # <<<<<<<<<<<<<< * """Check if current window is appearing. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_115is_window_appearing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_114is_window_appearing[] = "is_window_appearing()\nCheck if current window is appearing.\n\n Returns:\n bool: True if window is appearing\n "; static PyMethodDef __pyx_mdef_5imgui_4core_115is_window_appearing = {"is_window_appearing", (PyCFunction)__pyx_pw_5imgui_4core_115is_window_appearing, METH_NOARGS, __pyx_doc_5imgui_4core_114is_window_appearing}; static PyObject *__pyx_pw_5imgui_4core_115is_window_appearing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_window_appearing (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_114is_window_appearing(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_114is_window_appearing(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_window_appearing", 0); /* "imgui/core.pyx":5097 * bool: True if window is appearing * """ * return cimgui.IsWindowAppearing() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsWindowAppearing(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5097, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":5091 * * * def is_window_appearing(): # <<<<<<<<<<<<<< * """Check if current window is appearing. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_window_appearing", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5101 * * * def tree_node(str text, cimgui.ImGuiTreeNodeFlags flags=0): # <<<<<<<<<<<<<< * """Draw a tree node. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_117tree_node(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_116tree_node[] = "tree_node(str text, ImGuiTreeNodeFlags flags=0)\nDraw a tree node.\n\n Returns 'true' if the node is drawn, call :func:`tree_pop()` to finish.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 200\n :click: 80 40\n\n imgui.begin(\"Example: tree node\")\n if imgui.tree_node(\"Expand me!\", imgui.TREE_NODE_DEFAULT_OPEN):\n imgui.text(\"Lorem Ipsum\")\n imgui.tree_pop()\n imgui.end()\n\n Args:\n text (str): Tree node label\n flags: TreeNode flags. See:\n :ref:`list of available flags `.\n\n Returns:\n bool: True if tree node is displayed (opened).\n\n .. wraps::\n bool TreeNode(const char* label)\n bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_117tree_node = {"tree_node", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_117tree_node, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_116tree_node}; static PyObject *__pyx_pw_5imgui_4core_117tree_node(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_text = 0; ImGuiTreeNodeFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("tree_node (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_text,&__pyx_n_s_flags,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "tree_node") < 0)) __PYX_ERR(0, 5101, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_text = ((PyObject*)values[0]); if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiTreeNodeFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImGuiTreeNodeFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5101, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiTreeNodeFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("tree_node", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5101, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.tree_node", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 5101, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_116tree_node(__pyx_self, __pyx_v_text, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_116tree_node(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, ImGuiTreeNodeFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("tree_node", 0); /* "imgui/core.pyx":5130 * bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0) * """ * return cimgui.TreeNodeEx(_bytes(text), flags) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5130, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 5130, __pyx_L1_error) try { __pyx_t_3 = ImGui::TreeNodeEx(__pyx_t_2, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5130, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5101 * * * def tree_node(str text, cimgui.ImGuiTreeNodeFlags flags=0): # <<<<<<<<<<<<<< * """Draw a tree node. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.tree_node", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5133 * * * def tree_pop(): # <<<<<<<<<<<<<< * """Called to clear the tree nodes stack and return back the identation. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_119tree_pop(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_118tree_pop[] = "tree_pop()\nCalled to clear the tree nodes stack and return back the identation.\n\n For a tree example see :func:`tree_node()`.\n Same as calls to :func:`unindent()` and :func:`pop_id()`.\n\n .. wraps::\n void TreePop()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_119tree_pop = {"tree_pop", (PyCFunction)__pyx_pw_5imgui_4core_119tree_pop, METH_NOARGS, __pyx_doc_5imgui_4core_118tree_pop}; static PyObject *__pyx_pw_5imgui_4core_119tree_pop(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("tree_pop (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_118tree_pop(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_118tree_pop(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("tree_pop", 0); /* "imgui/core.pyx":5142 * void TreePop() * """ * cimgui.TreePop() # <<<<<<<<<<<<<< * * def get_tree_node_to_label_spacing(): */ try { ImGui::TreePop(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5142, __pyx_L1_error) } /* "imgui/core.pyx":5133 * * * def tree_pop(): # <<<<<<<<<<<<<< * """Called to clear the tree nodes stack and return back the identation. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.tree_pop", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5144 * cimgui.TreePop() * * def get_tree_node_to_label_spacing(): # <<<<<<<<<<<<<< * """Horizontal distance preceding label when using ``tree_node*()`` * or ``bullet() == (g.FontSize + style.FramePadding.x*2)`` for a */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_121get_tree_node_to_label_spacing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_120get_tree_node_to_label_spacing[] = "get_tree_node_to_label_spacing()\nHorizontal distance preceding label when using ``tree_node*()``\n or ``bullet() == (g.FontSize + style.FramePadding.x*2)`` for a\n regular unframed TreeNode\n\n Returns:\n float: spacing\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 200\n\n imgui.begin(\"TreeNode\")\n imgui.text(\"<- 0px offset here\")\n if imgui.tree_node(\"Expand me!\", imgui.TREE_NODE_DEFAULT_OPEN):\n imgui.text(\"<- %.2fpx offset here\" % imgui.get_tree_node_to_label_spacing())\n imgui.tree_pop()\n imgui.end()\n\n .. wraps::\n float GetTreeNodeToLabelSpacing()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_121get_tree_node_to_label_spacing = {"get_tree_node_to_label_spacing", (PyCFunction)__pyx_pw_5imgui_4core_121get_tree_node_to_label_spacing, METH_NOARGS, __pyx_doc_5imgui_4core_120get_tree_node_to_label_spacing}; static PyObject *__pyx_pw_5imgui_4core_121get_tree_node_to_label_spacing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_tree_node_to_label_spacing (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_120get_tree_node_to_label_spacing(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_120get_tree_node_to_label_spacing(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_tree_node_to_label_spacing", 0); /* "imgui/core.pyx":5167 * float GetTreeNodeToLabelSpacing() * """ * return cimgui.GetTreeNodeToLabelSpacing() # <<<<<<<<<<<<<< * * def collapsing_header( */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetTreeNodeToLabelSpacing(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5167, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":5144 * cimgui.TreePop() * * def get_tree_node_to_label_spacing(): # <<<<<<<<<<<<<< * """Horizontal distance preceding label when using ``tree_node*()`` * or ``bullet() == (g.FontSize + style.FramePadding.x*2)`` for a */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_tree_node_to_label_spacing", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5169 * return cimgui.GetTreeNodeToLabelSpacing() * * def collapsing_header( # <<<<<<<<<<<<<< * str text, * visible=None, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_123collapsing_header(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_122collapsing_header[] = "collapsing_header(str text, visible=None, ImGuiTreeNodeFlags flags=0)\nCollapsable/Expandable header view.\n\n Returns 'true' if the header is open. Doesn't indent or push to stack,\n so no need to call any pop function.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 200\n :click: 80 40\n\n visible = True\n\n imgui.begin(\"Example: collapsing header\")\n expanded, visible = imgui.collapsing_header(\"Expand me!\", visible)\n\n if expanded:\n imgui.text(\"Now you see me!\")\n imgui.end()\n\n Args:\n text (str): Tree node label\n visible (bool or None): Force visibility of a header. If set to True\n shows additional (X) close button. If set to False header is not\n visible at all. If set to None header is always visible and close\n button is not displayed.\n flags: TreeNode flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(expanded, visible)`` two-tuple indicating if item was\n expanded and whether the header is visible or not (only if ``visible``\n input argument is True/False).\n\n .. wraps::\n bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0)\n\n bool CollapsingHeader(\n const char* label,\n bool* p_visible,\n ImGuiTreeNodeFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_123collapsing_header = {"collapsing_header", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_123collapsing_header, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_122collapsing_header}; static PyObject *__pyx_pw_5imgui_4core_123collapsing_header(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_text = 0; PyObject *__pyx_v_visible = 0; ImGuiTreeNodeFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("collapsing_header (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_text,&__pyx_n_s_visible,&__pyx_n_s_flags,0}; PyObject* values[3] = {0,0,0}; /* "imgui/core.pyx":5171 * def collapsing_header( * str text, * visible=None, # <<<<<<<<<<<<<< * cimgui.ImGuiTreeNodeFlags flags=0 * ): */ values[1] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_visible); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "collapsing_header") < 0)) __PYX_ERR(0, 5169, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_text = ((PyObject*)values[0]); __pyx_v_visible = values[1]; if (values[2]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiTreeNodeFlags(values[2]); if (unlikely((__pyx_v_flags == ((ImGuiTreeNodeFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5172, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiTreeNodeFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("collapsing_header", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5169, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.collapsing_header", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 5170, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_122collapsing_header(__pyx_self, __pyx_v_text, __pyx_v_visible, __pyx_v_flags); /* "imgui/core.pyx":5169 * return cimgui.GetTreeNodeToLabelSpacing() * * def collapsing_header( # <<<<<<<<<<<<<< * str text, * visible=None, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_122collapsing_header(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, PyObject *__pyx_v_visible, ImGuiTreeNodeFlags __pyx_v_flags) { bool __pyx_v_inout_opened; bool __pyx_v_clicked; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("collapsing_header", 0); /* "imgui/core.pyx":5217 * ) * """ * cdef cimgui.bool inout_opened = visible # <<<<<<<<<<<<<< * if visible is None: * clicked = cimgui.CollapsingHeader(_bytes(text), NULL, flags) */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_visible); if (unlikely((__pyx_t_1 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5217, __pyx_L1_error) __pyx_v_inout_opened = __pyx_t_1; /* "imgui/core.pyx":5218 * """ * cdef cimgui.bool inout_opened = visible * if visible is None: # <<<<<<<<<<<<<< * clicked = cimgui.CollapsingHeader(_bytes(text), NULL, flags) * else: */ __pyx_t_2 = (__pyx_v_visible == Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":5219 * cdef cimgui.bool inout_opened = visible * if visible is None: * clicked = cimgui.CollapsingHeader(_bytes(text), NULL, flags) # <<<<<<<<<<<<<< * else: * clicked = cimgui.CollapsingHeader(_bytes(text), &inout_opened, flags) */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5219, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 5219, __pyx_L1_error) try { __pyx_t_1 = ImGui::CollapsingHeader(__pyx_t_5, NULL, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5219, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_clicked = __pyx_t_1; /* "imgui/core.pyx":5218 * """ * cdef cimgui.bool inout_opened = visible * if visible is None: # <<<<<<<<<<<<<< * clicked = cimgui.CollapsingHeader(_bytes(text), NULL, flags) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":5221 * clicked = cimgui.CollapsingHeader(_bytes(text), NULL, flags) * else: * clicked = cimgui.CollapsingHeader(_bytes(text), &inout_opened, flags) # <<<<<<<<<<<<<< * return clicked, None if visible is None else inout_opened * */ /*else*/ { __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5221, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 5221, __pyx_L1_error) try { __pyx_t_1 = ImGui::CollapsingHeader(__pyx_t_5, (&__pyx_v_inout_opened), __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5221, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_clicked = __pyx_t_1; } __pyx_L3:; /* "imgui/core.pyx":5222 * else: * clicked = cimgui.CollapsingHeader(_bytes(text), &inout_opened, flags) * return clicked, None if visible is None else inout_opened # <<<<<<<<<<<<<< * * def set_next_item_open(bool is_open, cimgui.ImGuiCond condition = 0): */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_clicked); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = (__pyx_v_visible == Py_None); if ((__pyx_t_3 != 0)) { __Pyx_INCREF(Py_None); __pyx_t_6 = Py_None; } else { __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_inout_opened); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __pyx_t_7; __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6); __pyx_t_4 = 0; __pyx_t_6 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":5169 * return cimgui.GetTreeNodeToLabelSpacing() * * def collapsing_header( # <<<<<<<<<<<<<< * str text, * visible=None, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.collapsing_header", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5224 * return clicked, None if visible is None else inout_opened * * def set_next_item_open(bool is_open, cimgui.ImGuiCond condition = 0): # <<<<<<<<<<<<<< * """Set next TreeNode/CollapsingHeader open state. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_125set_next_item_open(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_124set_next_item_open[] = "set_next_item_open(bool is_open, ImGuiCond condition=0)\nSet next TreeNode/CollapsingHeader open state.\n\n Args:\n is_open (bool):\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.NONE`.\n\n .. wraps::\n void SetNextItemOpen(bool is_open, ImGuiCond cond = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_125set_next_item_open = {"set_next_item_open", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_125set_next_item_open, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_124set_next_item_open}; static PyObject *__pyx_pw_5imgui_4core_125set_next_item_open(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_is_open; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_item_open (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_is_open,&__pyx_n_s_condition,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_is_open)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_next_item_open") < 0)) __PYX_ERR(0, 5224, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_is_open = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_is_open == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5224, __pyx_L3_error) if (values[1]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[1]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5224, __pyx_L3_error) } else { __pyx_v_condition = ((ImGuiCond)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_next_item_open", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5224, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_next_item_open", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_124set_next_item_open(__pyx_self, __pyx_v_is_open, __pyx_v_condition); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_124set_next_item_open(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_is_open, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_item_open", 0); /* "imgui/core.pyx":5235 * void SetNextItemOpen(bool is_open, ImGuiCond cond = 0) * """ * cimgui.SetNextItemOpen(is_open, condition) # <<<<<<<<<<<<<< * * def selectable( */ try { ImGui::SetNextItemOpen(__pyx_v_is_open, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5235, __pyx_L1_error) } /* "imgui/core.pyx":5224 * return clicked, None if visible is None else inout_opened * * def set_next_item_open(bool is_open, cimgui.ImGuiCond condition = 0): # <<<<<<<<<<<<<< * """Set next TreeNode/CollapsingHeader open state. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_next_item_open", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5237 * cimgui.SetNextItemOpen(is_open, condition) * * def selectable( # <<<<<<<<<<<<<< * str label, * selected=False, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_127selectable(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_126selectable[] = "selectable(str label, selected=False, ImGuiTreeNodeFlags flags=0, width=0, height=0)\nSelectable text. Returns 'true' if the item is pressed.\n\n Width of 0.0 will use the available width in the parent container.\n Height of 0.0 will use the available height in the parent container.\n\n .. visual-example::\n :auto_layout:\n :height: 200\n :width: 200\n :click: 80 40\n\n selected = [False, False]\n imgui.begin(\"Example: selectable\")\n _, selected[0] = imgui.selectable(\n \"1. I am selectable\", selected[0]\n )\n _, selected[1] = imgui.selectable(\n \"2. I am selectable too\", selected[1]\n )\n imgui.text(\"3. I am not selectable\")\n imgui.end()\n\n Args:\n label (str): The label.\n selected (bool): defines if item is selected or not.\n flags: Selectable flags. See:\n :ref:`list of available flags `.\n width (float): button width.\n height (float): button height.\n\n Returns:\n tuple: a ``(opened, selected)`` two-tuple indicating if item was\n clicked by the user and the current state of item.\n\n .. wraps::\n bool Selectable(\n const char* label,\n bool selected = false,\n ImGuiSelectableFlags flags = 0,\n const ImVec2& size = ImVec2(0,0)\n )\n\n bool Selectable(\n const char* label,\n bool* selected,\n ImGuiSelectableFlags flags = 0,\n const ImVec2& size = ImVec2(0,0)\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_127selectable = {"selectable", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_127selectable, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_126selectable}; static PyObject *__pyx_pw_5imgui_4core_127selectable(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_selected = 0; ImGuiTreeNodeFlags __pyx_v_flags; PyObject *__pyx_v_width = 0; PyObject *__pyx_v_height = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("selectable (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_selected,&__pyx_n_s_flags,&__pyx_n_s_width,&__pyx_n_s_height,0}; PyObject* values[5] = {0,0,0,0,0}; /* "imgui/core.pyx":5239 * def selectable( * str label, * selected=False, # <<<<<<<<<<<<<< * cimgui.ImGuiTreeNodeFlags flags=0, * width=0, */ values[1] = ((PyObject *)Py_False); values[3] = ((PyObject *)__pyx_int_0); values[4] = ((PyObject *)__pyx_int_0); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_selected); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "selectable") < 0)) __PYX_ERR(0, 5237, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_selected = values[1]; if (values[2]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiTreeNodeFlags(values[2]); if (unlikely((__pyx_v_flags == ((ImGuiTreeNodeFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5240, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiTreeNodeFlags)0); } __pyx_v_width = values[3]; __pyx_v_height = values[4]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("selectable", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5237, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.selectable", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 5238, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_126selectable(__pyx_self, __pyx_v_label, __pyx_v_selected, __pyx_v_flags, __pyx_v_width, __pyx_v_height); /* "imgui/core.pyx":5237 * cimgui.SetNextItemOpen(is_open, condition) * * def selectable( # <<<<<<<<<<<<<< * str label, * selected=False, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_126selectable(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_selected, ImGuiTreeNodeFlags __pyx_v_flags, PyObject *__pyx_v_width, PyObject *__pyx_v_height) { bool __pyx_v_inout_selected; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; float __pyx_t_4; float __pyx_t_5; ImVec2 __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("selectable", 0); /* "imgui/core.pyx":5293 * ) * """ * cdef cimgui.bool inout_selected = selected # <<<<<<<<<<<<<< * return cimgui.Selectable( * _bytes(label), */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_selected); if (unlikely((__pyx_t_1 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5293, __pyx_L1_error) __pyx_v_inout_selected = __pyx_t_1; /* "imgui/core.pyx":5294 * """ * cdef cimgui.bool inout_selected = selected * return cimgui.Selectable( # <<<<<<<<<<<<<< * _bytes(label), * &inout_selected, */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":5295 * cdef cimgui.bool inout_selected = selected * return cimgui.Selectable( * _bytes(label), # <<<<<<<<<<<<<< * &inout_selected, * flags, */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5295, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 5295, __pyx_L1_error) /* "imgui/core.pyx":5298 * &inout_selected, * flags, * _cast_args_ImVec2(width, height)), inout_selected # <<<<<<<<<<<<<< * * */ __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_width); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 5298, __pyx_L1_error) __pyx_t_5 = __pyx_PyFloat_AsFloat(__pyx_v_height); if (unlikely((__pyx_t_5 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 5298, __pyx_L1_error) __pyx_t_6 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_t_4, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5298, __pyx_L1_error) /* "imgui/core.pyx":5294 * """ * cdef cimgui.bool inout_selected = selected * return cimgui.Selectable( # <<<<<<<<<<<<<< * _bytes(label), * &inout_selected, */ try { __pyx_t_1 = ImGui::Selectable(__pyx_t_3, (&__pyx_v_inout_selected), __pyx_v_flags, __pyx_t_6); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5294, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":5298 * &inout_selected, * flags, * _cast_args_ImVec2(width, height)), inout_selected # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_inout_selected); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); /* "imgui/core.pyx":5294 * """ * cdef cimgui.bool inout_selected = selected * return cimgui.Selectable( # <<<<<<<<<<<<<< * _bytes(label), * &inout_selected, */ __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "imgui/core.pyx":5237 * cimgui.SetNextItemOpen(is_open, condition) * * def selectable( # <<<<<<<<<<<<<< * str label, * selected=False, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.selectable", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5301 * * * def listbox( # <<<<<<<<<<<<<< * str label, * int current, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_129listbox(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_128listbox[] = "listbox(str label, int current, list items, int height_in_items=-1)\nShow listbox widget.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 200\n\n current = 2\n imgui.begin(\"Example: listbox widget\")\n\n clicked, current = imgui.listbox(\n \"List\", current, [\"first\", \"second\", \"third\"]\n )\n\n imgui.end()\n\n Args:\n label (str): The label.\n current (int): index of selected item.\n items (list): list of string labels for items.\n height_in_items (int): height of dropdown in items. Defaults to -1\n (autosized).\n\n Returns:\n tuple: a ``(changed, current)`` tuple indicating change of selection\n and current index of selected item.\n\n .. wraps::\n bool ListBox(\n const char* label,\n int* current_item,\n const char* items[],\n int items_count,\n int height_in_items = -1\n )\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_129listbox = {"listbox", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_129listbox, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_128listbox}; static PyObject *__pyx_pw_5imgui_4core_129listbox(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_current; PyObject *__pyx_v_items = 0; int __pyx_v_height_in_items; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("listbox (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_current,&__pyx_n_s_items,&__pyx_n_s_height_in_items,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_current)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("listbox", 0, 3, 4, 1); __PYX_ERR(0, 5301, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_items)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("listbox", 0, 3, 4, 2); __PYX_ERR(0, 5301, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height_in_items); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "listbox") < 0)) __PYX_ERR(0, 5301, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_current = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_current == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5303, __pyx_L3_error) __pyx_v_items = ((PyObject*)values[2]); if (values[3]) { __pyx_v_height_in_items = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_height_in_items == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5305, __pyx_L3_error) } else { __pyx_v_height_in_items = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("listbox", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5301, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.listbox", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 5302, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_items), (&PyList_Type), 1, "items", 1))) __PYX_ERR(0, 5304, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_128listbox(__pyx_self, __pyx_v_label, __pyx_v_current, __pyx_v_items, __pyx_v_height_in_items); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_128listbox(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_current, PyObject *__pyx_v_items, int __pyx_v_height_in_items) { int __pyx_v_inout_current; char const **__pyx_v_in_items; Py_ssize_t __pyx_v_index; PyObject *__pyx_v_item = NULL; bool __pyx_v_opened; Py_ssize_t __pyx_v_i; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; Py_ssize_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; char const *__pyx_t_6; bool __pyx_t_7; Py_ssize_t __pyx_t_8; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("listbox", 0); /* "imgui/core.pyx":5345 * """ * * cdef int inout_current = current # <<<<<<<<<<<<<< * cdef const char** in_items = malloc(len(items) * sizeof(char*)) * */ __pyx_v_inout_current = __pyx_v_current; /* "imgui/core.pyx":5346 * * cdef int inout_current = current * cdef const char** in_items = malloc(len(items) * sizeof(char*)) # <<<<<<<<<<<<<< * * for index, item in enumerate(items): */ if (unlikely(__pyx_v_items == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 5346, __pyx_L1_error) } __pyx_t_1 = PyList_GET_SIZE(__pyx_v_items); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 5346, __pyx_L1_error) __pyx_v_in_items = ((char const **)malloc((__pyx_t_1 * (sizeof(char *))))); /* "imgui/core.pyx":5348 * cdef const char** in_items = malloc(len(items) * sizeof(char*)) * * for index, item in enumerate(items): # <<<<<<<<<<<<<< * in_items[index] = strdup(_bytes(item)) * */ __pyx_t_1 = 0; __pyx_t_2 = __pyx_v_items; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0; for (;;) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 5348, __pyx_L1_error) #else __pyx_t_4 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; __pyx_v_index = __pyx_t_1; __pyx_t_1 = (__pyx_t_1 + 1); /* "imgui/core.pyx":5349 * * for index, item in enumerate(items): * in_items[index] = strdup(_bytes(item)) # <<<<<<<<<<<<<< * * opened = cimgui.ListBox( */ if (!(likely(PyString_CheckExact(__pyx_v_item))||((__pyx_v_item) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_item)->tp_name), 0))) __PYX_ERR(0, 5349, __pyx_L1_error) __pyx_t_4 = __pyx_f_5imgui_4core__bytes(((PyObject*)__pyx_v_item)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5349, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 5349, __pyx_L1_error) (__pyx_v_in_items[__pyx_v_index]) = strdup(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":5348 * cdef const char** in_items = malloc(len(items) * sizeof(char*)) * * for index, item in enumerate(items): # <<<<<<<<<<<<<< * in_items[index] = strdup(_bytes(item)) * */ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":5352 * * opened = cimgui.ListBox( * _bytes(label), # <<<<<<<<<<<<<< * &inout_current, * in_items, */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5352, __pyx_L1_error) } __pyx_t_6 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 5352, __pyx_L1_error) /* "imgui/core.pyx":5355 * &inout_current, * in_items, * len(items), # <<<<<<<<<<<<<< * height_in_items * ) */ if (unlikely(__pyx_v_items == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 5355, __pyx_L1_error) } __pyx_t_1 = PyList_GET_SIZE(__pyx_v_items); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 5355, __pyx_L1_error) /* "imgui/core.pyx":5351 * in_items[index] = strdup(_bytes(item)) * * opened = cimgui.ListBox( # <<<<<<<<<<<<<< * _bytes(label), * &inout_current, */ try { __pyx_t_7 = ImGui::ListBox(__pyx_t_6, (&__pyx_v_inout_current), __pyx_v_in_items, ((int)__pyx_t_1), __pyx_v_height_in_items); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5351, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_opened = __pyx_t_7; /* "imgui/core.pyx":5359 * ) * * for i in range(len(items)): # <<<<<<<<<<<<<< * free(in_items[i]) * */ if (unlikely(__pyx_v_items == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 5359, __pyx_L1_error) } __pyx_t_1 = PyList_GET_SIZE(__pyx_v_items); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 5359, __pyx_L1_error) __pyx_t_3 = __pyx_t_1; for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_3; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; /* "imgui/core.pyx":5360 * * for i in range(len(items)): * free(in_items[i]) # <<<<<<<<<<<<<< * * free(in_items) */ free(((char *)(__pyx_v_in_items[__pyx_v_i]))); } /* "imgui/core.pyx":5362 * free(in_items[i]) * * free(in_items) # <<<<<<<<<<<<<< * * return opened, inout_current */ free(__pyx_v_in_items); /* "imgui/core.pyx":5364 * free(in_items) * * return opened, inout_current # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_inout_current); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_4); __pyx_t_2 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; /* "imgui/core.pyx":5301 * * * def listbox( # <<<<<<<<<<<<<< * str label, * int current, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.listbox", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_item); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5382 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_16_BeginEndListBox_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_16_BeginEndListBox_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5382, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5382, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5382, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndListBox.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self), __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_16_BeginEndListBox___cinit__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":5383 * * def __cinit__(self, bool opened): * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":5382 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5385 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndListBox_2__enter__[] = "_BeginEndListBox.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":5386 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":5385 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5388 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndListBox() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndListBox_4__exit__[] = "_BeginEndListBox.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 5388, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 5388, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 5388, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5388, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndListBox.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":5389 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndListBox() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":5390 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndListBox() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndListBox(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5390, __pyx_L1_error) } /* "imgui/core.pyx":5389 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndListBox() * */ } /* "imgui/core.pyx":5388 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndListBox() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndListBox.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5392 * cimgui.EndListBox() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_16_BeginEndListBox_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_16_BeginEndListBox_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_16_BeginEndListBox_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":5394 * def __bool__(self): * """For legacy support, returns ``opened``.""" * return self.opened # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->opened; goto __pyx_L0; /* "imgui/core.pyx":5392 * cimgui.EndListBox() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5396 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":5397 * * def __repr__(self): * return "{}(opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":5398 * def __repr__(self): * return "{}(opened={})".format( * self.__class__.__name__, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5397, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5397, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5396 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndListBox.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5401 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":5402 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":5403 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.opened is other.opened # <<<<<<<<<<<<<< * return self.opened is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5402 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ } /* "imgui/core.pyx":5404 * if other.__class__ is self.__class__: * return self.opened is other.opened * return self.opened is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5401 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndListBox.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5380 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndListBox.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndListBox_12__reduce_cython__[] = "_BeginEndListBox.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__73, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndListBox.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndListBox_14__setstate_cython__[] = "_BeginEndListBox.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndListBox_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndListBox_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndListBox *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndListBox_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndListBox *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__74, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndListBox.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5407 * * * def begin_list_box( # <<<<<<<<<<<<<< * str label, * width = 0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_131begin_list_box(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_130begin_list_box[] = "begin_list_box(str label, width=0, height=0)\nOpen a framed scrolling region.\n\n For use if you want to reimplement :func:`listbox` with custom data\n or interactions. You need to call :func:`end_list_box` at the end\n if ``opened`` is True, or use ``with`` to do so automatically.\n\n .. visual-example::\n :auto_layout:\n :height: 200\n :width: 200\n :click: 80 40\n\n with imgui.begin(\"Example: custom listbox\"):\n with imgui.begin_list_box(\"List\", 200, 100) as list_box:\n if list_box.opened:\n imgui.selectable(\"Selected\", True)\n imgui.selectable(\"Not Selected\", False)\n\n Example::\n imgui.begin(\"Example: custom listbox\")\n\n if imgui.begin_list_box(\"List\", 200, 100).opened:\n\n imgui.selectable(\"Selected\", True)\n imgui.selectable(\"Not Selected\", False)\n\n imgui.end_list_box()\n\n imgui.end()\n\n Args:\n label (str): The label.\n width (float): Button width. w > 0.0f: custom; w < 0.0f or -FLT_MIN: right-align; w = 0.0f (default): use current ItemWidth\n height (float): Button height. h > 0.0f: custom; h < 0.0f or -FLT_MIN: bottom-align; h = 0.0f (default): arbitrary default height which can fit ~7 items\n\n Returns:\n _BeginEndListBox: Use ``opened`` bool attribute to tell if the item is opened or closed.\n Only call :func:`end_list_box` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_list_box` if necessary when the block ends.\n\n .. wraps::\n bool BeginListBox(\n const char* label,\n const ImVec2& size = ImVec2(0,0)\n )\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_131begin_list_box = {"begin_list_box", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_131begin_list_box, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_130begin_list_box}; static PyObject *__pyx_pw_5imgui_4core_131begin_list_box(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_width = 0; PyObject *__pyx_v_height = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_list_box (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,0}; PyObject* values[3] = {0,0,0}; values[1] = ((PyObject *)__pyx_int_0); values[2] = ((PyObject *)__pyx_int_0); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_list_box") < 0)) __PYX_ERR(0, 5407, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_width = values[1]; __pyx_v_height = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_list_box", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5407, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_list_box", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 5408, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_130begin_list_box(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_130begin_list_box(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_width, PyObject *__pyx_v_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; float __pyx_t_3; float __pyx_t_4; ImVec2 __pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_list_box", 0); /* "imgui/core.pyx":5459 * * """ * return _BeginEndListBox.__new__( # <<<<<<<<<<<<<< * _BeginEndListBox, * cimgui.BeginListBox( */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":5462 * _BeginEndListBox, * cimgui.BeginListBox( * _bytes(label), # <<<<<<<<<<<<<< * _cast_args_ImVec2(width, height) * ) */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5462, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 5462, __pyx_L1_error) /* "imgui/core.pyx":5463 * cimgui.BeginListBox( * _bytes(label), * _cast_args_ImVec2(width, height) # <<<<<<<<<<<<<< * ) * ) */ __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_width); if (unlikely((__pyx_t_3 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 5463, __pyx_L1_error) __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_height); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 5463, __pyx_L1_error) __pyx_t_5 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_t_3, __pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5463, __pyx_L1_error) /* "imgui/core.pyx":5461 * return _BeginEndListBox.__new__( * _BeginEndListBox, * cimgui.BeginListBox( # <<<<<<<<<<<<<< * _bytes(label), * _cast_args_ImVec2(width, height) */ try { __pyx_t_6 = ImGui::BeginListBox(__pyx_t_2, __pyx_t_5); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5461, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":5459 * * """ * return _BeginEndListBox.__new__( # <<<<<<<<<<<<<< * _BeginEndListBox, * cimgui.BeginListBox( */ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndListBox(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndListBox), __pyx_t_7, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5459, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5407 * * * def begin_list_box( # <<<<<<<<<<<<<< * str label, * width = 0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.begin_list_box", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5467 * ) * * def listbox_header( # OBSOLETED in 1.81 (from February 2021) # <<<<<<<<<<<<<< * str label, * width=0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_133listbox_header(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_132listbox_header[] = "listbox_header(str label, width=0, height=0)\n*Obsoleted in imgui v1.81 from February 2021, refer to :func:`begin_list_box()`*\n\n For use if you want to reimplement :func:`listbox()` with custom data\n or interactions. You need to call :func:`listbox_footer()` at the end.\n\n Args:\n label (str): The label.\n width (float): button width.\n height (float): button height.\n\n Returns:\n opened (bool): If the item is opened or closed.\n\n .. wraps::\n bool ListBoxHeader(\n const char* label,\n const ImVec2& size = ImVec2(0,0)\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_133listbox_header = {"listbox_header", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_133listbox_header, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_132listbox_header}; static PyObject *__pyx_pw_5imgui_4core_133listbox_header(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_width = 0; PyObject *__pyx_v_height = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("listbox_header (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,0}; PyObject* values[3] = {0,0,0}; values[1] = ((PyObject *)__pyx_int_0); values[2] = ((PyObject *)__pyx_int_0); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "listbox_header") < 0)) __PYX_ERR(0, 5467, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_width = values[1]; __pyx_v_height = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("listbox_header", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5467, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.listbox_header", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 5468, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_132listbox_header(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_132listbox_header(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_width, PyObject *__pyx_v_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("listbox_header", 0); /* "imgui/core.pyx":5491 * ) * """ * return begin_list_box(label, width, height) # <<<<<<<<<<<<<< * * def end_list_box(): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_begin_list_box); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_label, __pyx_v_width, __pyx_v_height}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5491, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_label, __pyx_v_width, __pyx_v_height}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5491, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_5 = PyTuple_New(3+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_v_label); __Pyx_GIVEREF(__pyx_v_label); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_label); __Pyx_INCREF(__pyx_v_width); __Pyx_GIVEREF(__pyx_v_width); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_width); __Pyx_INCREF(__pyx_v_height); __Pyx_GIVEREF(__pyx_v_height); PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_4, __pyx_v_height); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5467 * ) * * def listbox_header( # OBSOLETED in 1.81 (from February 2021) # <<<<<<<<<<<<<< * str label, * width=0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.listbox_header", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5493 * return begin_list_box(label, width, height) * * def end_list_box(): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_135end_list_box(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_134end_list_box[] = "end_list_box()\n\n\n Closing the listbox, previously opened by :func:`begin_list_box()`.\n Only call if ``begin_list_box().opened`` is True.\n\n See :func:`begin_list_box()` for usage example.\n\n .. wraps::\n void EndListBox()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_135end_list_box = {"end_list_box", (PyCFunction)__pyx_pw_5imgui_4core_135end_list_box, METH_NOARGS, __pyx_doc_5imgui_4core_134end_list_box}; static PyObject *__pyx_pw_5imgui_4core_135end_list_box(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_list_box (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_134end_list_box(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_134end_list_box(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_list_box", 0); /* "imgui/core.pyx":5504 * void EndListBox() * """ * cimgui.EndListBox() # <<<<<<<<<<<<<< * * def listbox_footer(): # OBSOLETED in 1.81 (from February 2021) */ try { ImGui::EndListBox(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5504, __pyx_L1_error) } /* "imgui/core.pyx":5493 * return begin_list_box(label, width, height) * * def end_list_box(): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_list_box", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5506 * cimgui.EndListBox() * * def listbox_footer(): # OBSOLETED in 1.81 (from February 2021) # <<<<<<<<<<<<<< * """*Obsoleted in imgui v1.81 from February 2021, refer to :func:`end_list_box()`* * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_137listbox_footer(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_136listbox_footer[] = "listbox_footer()\n*Obsoleted in imgui v1.81 from February 2021, refer to :func:`end_list_box()`*\n\n Closing the listbox, previously opened by :func:`listbox_header()`.\n\n See :func:`listbox_header()` for usage example.\n\n .. wraps::\n void ListBoxFooter()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_137listbox_footer = {"listbox_footer", (PyCFunction)__pyx_pw_5imgui_4core_137listbox_footer, METH_NOARGS, __pyx_doc_5imgui_4core_136listbox_footer}; static PyObject *__pyx_pw_5imgui_4core_137listbox_footer(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("listbox_footer (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_136listbox_footer(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_136listbox_footer(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("listbox_footer", 0); /* "imgui/core.pyx":5516 * void ListBoxFooter() * """ * end_list_box() # <<<<<<<<<<<<<< * * */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_end_list_box); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":5506 * cimgui.EndListBox() * * def listbox_footer(): # OBSOLETED in 1.81 (from February 2021) # <<<<<<<<<<<<<< * """*Obsoleted in imgui v1.81 from February 2021, refer to :func:`end_list_box()`* * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.listbox_footer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5519 * * * def set_tooltip(str text): # <<<<<<<<<<<<<< * """Set tooltip under mouse-cursor. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_139set_tooltip(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/ static char __pyx_doc_5imgui_4core_138set_tooltip[] = "set_tooltip(str text)\nSet tooltip under mouse-cursor.\n\n Usually used with :func:`is_item_hovered()`.\n For a complex tooltip window see :func:`begin_tooltip()`.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 200\n :click: 80 40\n\n imgui.begin(\"Example: tooltip\")\n imgui.button(\"Hover me!\")\n if imgui.is_item_hovered():\n imgui.set_tooltip(\"Please?\")\n imgui.end()\n\n .. wraps::\n void SetTooltip(const char* fmt, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_139set_tooltip = {"set_tooltip", (PyCFunction)__pyx_pw_5imgui_4core_139set_tooltip, METH_O, __pyx_doc_5imgui_4core_138set_tooltip}; static PyObject *__pyx_pw_5imgui_4core_139set_tooltip(PyObject *__pyx_self, PyObject *__pyx_v_text) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_tooltip (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 5519, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_138set_tooltip(__pyx_self, ((PyObject*)__pyx_v_text)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_138set_tooltip(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_tooltip", 0); /* "imgui/core.pyx":5541 * """ * # note: "%s" required for safety and to favor of Python string formatting * cimgui.SetTooltip("%s", _bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5541, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 5541, __pyx_L1_error) try { ImGui::SetTooltip(((char const *)"%s"), __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5541, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":5519 * * * def set_tooltip(str text): # <<<<<<<<<<<<<< * """Set tooltip under mouse-cursor. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_tooltip", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5557 * """ * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_1__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTooltip___enter__[] = "_BeginEndTooltip.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_1__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTooltip___enter__(((struct __pyx_obj_5imgui_4core__BeginEndTooltip *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip___enter__(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":5558 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":5557 * """ * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5560 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * cimgui.EndTooltip() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_3__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTooltip_2__exit__[] = "_BeginEndTooltip.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_3__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 5560, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 5560, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 5560, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5560, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndTooltip.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTooltip_2__exit__(((struct __pyx_obj_5imgui_4core__BeginEndTooltip *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip_2__exit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":5561 * * def __exit__(self, exc_type, exc_val, exc_tb): * cimgui.EndTooltip() # <<<<<<<<<<<<<< * * def __repr__(self): */ try { ImGui::EndTooltip(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5561, __pyx_L1_error) } /* "imgui/core.pyx":5560 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * cimgui.EndTooltip() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndTooltip.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5563 * cimgui.EndTooltip() * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}()".format(self.__class__.__name__) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_5__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTooltip_4__repr__(((struct __pyx_obj_5imgui_4core__BeginEndTooltip *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip_4__repr__(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":5564 * * def __repr__(self): * return "{}()".format(self.__class__.__name__) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s__75, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5563 * cimgui.EndTooltip() * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}()".format(self.__class__.__name__) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._BeginEndTooltip.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTooltip_6__reduce_cython__[] = "_BeginEndTooltip.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTooltip_6__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndTooltip *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip_6__reduce_cython__(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = () # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __Pyx_INCREF(__pyx_empty_tuple); __pyx_v_state = __pyx_empty_tuple; /* "(tree fragment)":6 * cdef bint use_setstate * state = () * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__dict = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":7 * state = () * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_2 = (__pyx_v__dict != Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict); __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = False */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = () * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = False # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, None), state */ /*else*/ { __pyx_v_use_setstate = 0; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, None), state * else: */ __pyx_t_3 = (__pyx_v_use_setstate != 0); if (__pyx_t_3) { /* "(tree fragment)":13 * use_setstate = False * if use_setstate: * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle__BeginEndTooltip); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_INCREF(__pyx_int_222419149); __Pyx_GIVEREF(__pyx_int_222419149); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_222419149); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state); __pyx_t_4 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, None), state * else: * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle__BeginEndTooltip__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle__BeginEndTooltip); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_INCREF(__pyx_int_222419149); __Pyx_GIVEREF(__pyx_int_222419149); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_222419149); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1); __pyx_t_5 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core._BeginEndTooltip.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle__BeginEndTooltip__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTooltip_8__setstate_cython__[] = "_BeginEndTooltip.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTooltip_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTooltip_8__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndTooltip *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTooltip_8__setstate_cython__(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":17 * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle__BeginEndTooltip__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_5imgui_4core___pyx_unpickle__BeginEndTooltip__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle__BeginEndTooltip, (type(self), 0xd41d8cd, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle__BeginEndTooltip__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTooltip.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5567 * * * def begin_tooltip(): # <<<<<<<<<<<<<< * """Use to create full-featured tooltip windows that aren't just text. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_141begin_tooltip(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_140begin_tooltip[] = "begin_tooltip()\nUse to create full-featured tooltip windows that aren't just text.\n\n .. visual-example::\n :auto_layout:\n :width: 600\n :height: 200\n :click: 80 40\n\n with imgui.begin(\"Example: tooltip\"):\n imgui.button(\"Click me!\")\n if imgui.is_item_hovered():\n with imgui.begin_tooltip():\n imgui.text(\"This button is clickable.\")\n imgui.text(\"This button has full window tooltip.\")\n texture_id = imgui.get_io().fonts.texture_id\n imgui.image(texture_id, 512, 64, border_color=(1, 0, 0, 1))\n \n .. wraps::\n void BeginTooltip()\n \n Returns:\n _BeginEndTooltip: Use with ``with`` to automatically call :func:`end_tooltip` when the block ends.\n\n \n "; static PyMethodDef __pyx_mdef_5imgui_4core_141begin_tooltip = {"begin_tooltip", (PyCFunction)__pyx_pw_5imgui_4core_141begin_tooltip, METH_NOARGS, __pyx_doc_5imgui_4core_140begin_tooltip}; static PyObject *__pyx_pw_5imgui_4core_141begin_tooltip(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_tooltip (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_140begin_tooltip(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_140begin_tooltip(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_tooltip", 0); /* "imgui/core.pyx":5593 * * """ * cimgui.BeginTooltip() # <<<<<<<<<<<<<< * return _BeginEndTooltip.__new__(_BeginEndTooltip) * */ try { ImGui::BeginTooltip(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5593, __pyx_L1_error) } /* "imgui/core.pyx":5594 * """ * cimgui.BeginTooltip() * return _BeginEndTooltip.__new__(_BeginEndTooltip) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndTooltip(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndTooltip), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5594, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5567 * * * def begin_tooltip(): # <<<<<<<<<<<<<< * """Use to create full-featured tooltip windows that aren't just text. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.begin_tooltip", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5597 * * * def end_tooltip(): # <<<<<<<<<<<<<< * """End tooltip window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_143end_tooltip(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_142end_tooltip[] = "end_tooltip()\nEnd tooltip window.\n\n See :func:`begin_tooltip()` for full usage example.\n\n .. wraps::\n void EndTooltip()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_143end_tooltip = {"end_tooltip", (PyCFunction)__pyx_pw_5imgui_4core_143end_tooltip, METH_NOARGS, __pyx_doc_5imgui_4core_142end_tooltip}; static PyObject *__pyx_pw_5imgui_4core_143end_tooltip(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_tooltip (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_142end_tooltip(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_142end_tooltip(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_tooltip", 0); /* "imgui/core.pyx":5605 * void EndTooltip() * """ * cimgui.EndTooltip() # <<<<<<<<<<<<<< * * */ try { ImGui::EndTooltip(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5605, __pyx_L1_error) } /* "imgui/core.pyx":5597 * * * def end_tooltip(): # <<<<<<<<<<<<<< * """End tooltip window. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_tooltip", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5623 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5623, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5623, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5623, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndMainMenuBar.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self), __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar___cinit__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":5624 * * def __cinit__(self, bool opened): * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":5623 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5626 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_20_BeginEndMainMenuBar_2__enter__[] = "_BeginEndMainMenuBar.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":5627 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":5626 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5629 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndMainMenuBar() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_20_BeginEndMainMenuBar_4__exit__[] = "_BeginEndMainMenuBar.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 5629, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 5629, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 5629, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5629, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndMainMenuBar.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":5630 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndMainMenuBar() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":5631 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndMainMenuBar() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndMainMenuBar(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5631, __pyx_L1_error) } /* "imgui/core.pyx":5630 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndMainMenuBar() * */ } /* "imgui/core.pyx":5629 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndMainMenuBar() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndMainMenuBar.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5633 * cimgui.EndMainMenuBar() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":5635 * def __bool__(self): * """For legacy support, returns ``opened``.""" * return self.opened # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->opened; goto __pyx_L0; /* "imgui/core.pyx":5633 * cimgui.EndMainMenuBar() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5637 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":5638 * * def __repr__(self): * return "{}(opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":5639 * def __repr__(self): * return "{}(opened={})".format( * self.__class__.__name__, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5638, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5638, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5637 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndMainMenuBar.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5642 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":5643 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":5644 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.opened is other.opened # <<<<<<<<<<<<<< * return self.opened is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5643 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ } /* "imgui/core.pyx":5645 * if other.__class__ is self.__class__: * return self.opened is other.opened * return self.opened is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5642 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndMainMenuBar.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5621 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMainMenuBar.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_20_BeginEndMainMenuBar_12__reduce_cython__[] = "_BeginEndMainMenuBar.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__76, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMainMenuBar.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_20_BeginEndMainMenuBar_14__setstate_cython__[] = "_BeginEndMainMenuBar.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_20_BeginEndMainMenuBar_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__77, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMainMenuBar.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5648 * * * def begin_main_menu_bar(): # <<<<<<<<<<<<<< * """Create new full-screen menu bar. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_145begin_main_menu_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_144begin_main_menu_bar[] = "begin_main_menu_bar()\nCreate new full-screen menu bar.\n\n Use with ``with`` to automatically call :func:`end_main_menu_bar` if necessary.\n Otherwise, only call :func:`end_main_menu_bar` if ``opened`` is True.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 200\n :click: 10 10\n\n with imgui.begin_main_menu_bar() as main_menu_bar:\n if main_menu_bar.opened:\n # first menu dropdown\n with imgui.begin_menu('File', True) as file_menu:\n if file_menu.opened:\n imgui.menu_item('New', 'Ctrl+N', False, True)\n imgui.menu_item('Open ...', 'Ctrl+O', False, True)\n\n # submenu\n with imgui.begin_menu('Open Recent', True) as open_recent_menu:\n if open_recent_menu.opened:\n imgui.menu_item('doc.txt', None, False, True)\n\n Example::\n\n if imgui.begin_main_menu_bar().opened:\n # first menu dropdown\n if imgui.begin_menu('File', True).opened:\n imgui.menu_item('New', 'Ctrl+N', False, True)\n imgui.menu_item('Open ...', 'Ctrl+O', False, True)\n\n # submenu\n if imgui.begin_menu('Open Recent', True).opened:\n imgui.menu_item('doc.txt', None, False, True)\n imgui.end_menu()\n\n imgui.end_menu()\n\n imgui.end_main_menu_bar()\n\n Returns:\n _BeginEndMainMenuBar: Use ``opened`` to tell if main menu bar is displayed (opened).\n Only call :func:`end_main_menu_bar` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_main_menu_bar` if necessary when the block ends.\n\n .. wraps::\n bool BeginMainMenuBar()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_145begin_main_menu_bar = {"begin_main_menu_bar", (PyCFunction)__pyx_pw_5imgui_4core_145begin_main_menu_bar, METH_NOARGS, __pyx_doc_5imgui_4core_144begin_main_menu_bar}; static PyObject *__pyx_pw_5imgui_4core_145begin_main_menu_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_main_menu_bar (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_144begin_main_menu_bar(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_144begin_main_menu_bar(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_main_menu_bar", 0); /* "imgui/core.pyx":5698 * bool BeginMainMenuBar() * """ * return _BeginEndMainMenuBar.__new__( # <<<<<<<<<<<<<< * _BeginEndMainMenuBar, * cimgui.BeginMainMenuBar() */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":5700 * return _BeginEndMainMenuBar.__new__( * _BeginEndMainMenuBar, * cimgui.BeginMainMenuBar() # <<<<<<<<<<<<<< * ) * */ try { __pyx_t_1 = ImGui::BeginMainMenuBar(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5700, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":5698 * bool BeginMainMenuBar() * """ * return _BeginEndMainMenuBar.__new__( # <<<<<<<<<<<<<< * _BeginEndMainMenuBar, * cimgui.BeginMainMenuBar() */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndMainMenuBar(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndMainMenuBar), __pyx_t_3, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5698, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":5648 * * * def begin_main_menu_bar(): # <<<<<<<<<<<<<< * """Create new full-screen menu bar. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.begin_main_menu_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5704 * * * def end_main_menu_bar(): # <<<<<<<<<<<<<< * """Close main menu bar context. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_147end_main_menu_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_146end_main_menu_bar[] = "end_main_menu_bar()\nClose main menu bar context.\n\n Only call this function if the ``end_main_menu_bar().opened`` is True.\n\n For practical example how to use this function see documentation of\n :func:`begin_main_menu_bar`.\n\n .. wraps::\n bool EndMainMenuBar()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_147end_main_menu_bar = {"end_main_menu_bar", (PyCFunction)__pyx_pw_5imgui_4core_147end_main_menu_bar, METH_NOARGS, __pyx_doc_5imgui_4core_146end_main_menu_bar}; static PyObject *__pyx_pw_5imgui_4core_147end_main_menu_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_main_menu_bar (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_146end_main_menu_bar(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_146end_main_menu_bar(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_main_menu_bar", 0); /* "imgui/core.pyx":5715 * bool EndMainMenuBar() * """ * cimgui.EndMainMenuBar() # <<<<<<<<<<<<<< * * */ try { ImGui::EndMainMenuBar(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5715, __pyx_L1_error) } /* "imgui/core.pyx":5704 * * * def end_main_menu_bar(): # <<<<<<<<<<<<<< * """Close main menu bar context. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_main_menu_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5733 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_16_BeginEndMenuBar_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_16_BeginEndMenuBar_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5733, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5733, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5733, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndMenuBar.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self), __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_16_BeginEndMenuBar___cinit__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":5734 * * def __cinit__(self, bool opened): * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":5733 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5736 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndMenuBar_2__enter__[] = "_BeginEndMenuBar.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":5737 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":5736 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5739 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndMenuBar() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndMenuBar_4__exit__[] = "_BeginEndMenuBar.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 5739, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 5739, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 5739, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5739, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndMenuBar.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":5740 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndMenuBar() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":5741 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndMenuBar() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndMenuBar(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5741, __pyx_L1_error) } /* "imgui/core.pyx":5740 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndMenuBar() * */ } /* "imgui/core.pyx":5739 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndMenuBar() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndMenuBar.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5743 * cimgui.EndMenuBar() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_16_BeginEndMenuBar_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_16_BeginEndMenuBar_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_16_BeginEndMenuBar_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":5745 * def __bool__(self): * """For legacy support, returns ``opened``.""" * return self.opened # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->opened; goto __pyx_L0; /* "imgui/core.pyx":5743 * cimgui.EndMenuBar() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5747 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":5748 * * def __repr__(self): * return "{}(opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":5749 * def __repr__(self): * return "{}(opened={})".format( * self.__class__.__name__, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5748, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5748, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5747 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndMenuBar.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5752 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":5753 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":5754 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.opened is other.opened # <<<<<<<<<<<<<< * return self.opened is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5753 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ } /* "imgui/core.pyx":5755 * if other.__class__ is self.__class__: * return self.opened is other.opened * return self.opened is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5752 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndMenuBar.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5731 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMenuBar.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndMenuBar_12__reduce_cython__[] = "_BeginEndMenuBar.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__78, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMenuBar.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndMenuBar_14__setstate_cython__[] = "_BeginEndMenuBar.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndMenuBar_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndMenuBar_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndMenuBar *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndMenuBar_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMenuBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__79, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMenuBar.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5758 * * * def begin_menu_bar(): # <<<<<<<<<<<<<< * """Append new menu menu bar to current window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_149begin_menu_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_148begin_menu_bar[] = "begin_menu_bar()\nAppend new menu menu bar to current window.\n\n This function is different from :func:`begin_main_menu_bar`, as this is\n child-window specific. Use with ``with`` to automatically call\n :func:`end_menu_bar` if necessary.\n Otherwise, only call :func:`end_menu_bar` if ``opened`` is True.\n\n **Note:** this requires :ref:`WINDOW_MENU_BAR ` flag\n to be set for the current window. Without this flag set the\n ``begin_menu_bar()`` function will always return ``False``.\n\n .. visual-example::\n :auto_layout:\n :click: 25 30\n\n flags = imgui.WINDOW_MENU_BAR\n\n with imgui.begin(\"Child Window - File Browser\", flags=flags):\n with imgui.begin_menu_bar() as menu_bar:\n if menu_bar.opened:\n with imgui.begin_menu('File') as file_menu:\n if file_menu.opened:\n imgui.menu_item('Close')\n\n Example::\n\n flags = imgui.WINDOW_MENU_BAR\n\n imgui.begin(\"Child Window - File Browser\", flags=flags)\n\n if imgui.begin_menu_bar().opened:\n if imgui.begin_menu('File').opened:\n imgui.menu_item('Close')\n imgui.end_menu()\n\n imgui.end_menu_bar()\n\n imgui.end()\n\n Returns:\n _BeginEndMenuBar: Use ``opened`` to tell if menu bar is displayed (opened).\n Only call :func:`end_menu_bar` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_menu_bar` if necessary when the block ends.\n\n .. wraps::\n bool BeginMenuBar()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_149begin_menu_bar = {"begin_menu_bar", (PyCFunction)__pyx_pw_5imgui_4core_149begin_menu_bar, METH_NOARGS, __pyx_doc_5imgui_4core_148begin_menu_bar}; static PyObject *__pyx_pw_5imgui_4core_149begin_menu_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_menu_bar (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_148begin_menu_bar(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_148begin_menu_bar(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_menu_bar", 0); /* "imgui/core.pyx":5806 * bool BeginMenuBar() * """ * return _BeginEndMenuBar.__new__( # <<<<<<<<<<<<<< * _BeginEndMenuBar, * cimgui.BeginMenuBar() */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":5808 * return _BeginEndMenuBar.__new__( * _BeginEndMenuBar, * cimgui.BeginMenuBar() # <<<<<<<<<<<<<< * ) * */ try { __pyx_t_1 = ImGui::BeginMenuBar(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5808, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":5806 * bool BeginMenuBar() * """ * return _BeginEndMenuBar.__new__( # <<<<<<<<<<<<<< * _BeginEndMenuBar, * cimgui.BeginMenuBar() */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndMenuBar(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndMenuBar), __pyx_t_3, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5806, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":5758 * * * def begin_menu_bar(): # <<<<<<<<<<<<<< * """Append new menu menu bar to current window. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.begin_menu_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5812 * * * def end_menu_bar(): # <<<<<<<<<<<<<< * """Close menu bar context. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_151end_menu_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_150end_menu_bar[] = "end_menu_bar()\nClose menu bar context.\n\n Only call this function if ``begin_menu_bar().opened`` is True.\n\n For practical example how to use this function see documentation of\n :func:`begin_menu_bar`.\n\n .. wraps::\n void EndMenuBar()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_151end_menu_bar = {"end_menu_bar", (PyCFunction)__pyx_pw_5imgui_4core_151end_menu_bar, METH_NOARGS, __pyx_doc_5imgui_4core_150end_menu_bar}; static PyObject *__pyx_pw_5imgui_4core_151end_menu_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_menu_bar (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_150end_menu_bar(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_150end_menu_bar(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_menu_bar", 0); /* "imgui/core.pyx":5823 * void EndMenuBar() * """ * cimgui.EndMenuBar() # <<<<<<<<<<<<<< * * */ try { ImGui::EndMenuBar(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5823, __pyx_L1_error) } /* "imgui/core.pyx":5812 * * * def end_menu_bar(): # <<<<<<<<<<<<<< * """Close menu bar context. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_menu_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5841 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_13_BeginEndMenu_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_13_BeginEndMenu_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5841, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5841, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5841, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndMenu.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self), __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_13_BeginEndMenu___cinit__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":5842 * * def __cinit__(self, bool opened): * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":5841 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5844 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_13_BeginEndMenu_2__enter__[] = "_BeginEndMenu.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":5845 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":5844 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5847 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndMenu() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_13_BeginEndMenu_4__exit__[] = "_BeginEndMenu.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 5847, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 5847, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 5847, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5847, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndMenu.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":5848 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndMenu() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":5849 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndMenu() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndMenu(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5849, __pyx_L1_error) } /* "imgui/core.pyx":5848 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndMenu() * */ } /* "imgui/core.pyx":5847 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndMenu() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndMenu.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5851 * cimgui.EndMenu() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_13_BeginEndMenu_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_13_BeginEndMenu_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_13_BeginEndMenu_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":5853 * def __bool__(self): * """For legacy support, returns ``opened``.""" * return self.opened # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->opened; goto __pyx_L0; /* "imgui/core.pyx":5851 * cimgui.EndMenu() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5855 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":5856 * * def __repr__(self): * return "{}(opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":5857 * def __repr__(self): * return "{}(opened={})".format( * self.__class__.__name__, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5856, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5856, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5855 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndMenu.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5860 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":5861 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":5862 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.opened is other.opened # <<<<<<<<<<<<<< * return self.opened is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5862, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5862, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5862, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5861 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ } /* "imgui/core.pyx":5863 * if other.__class__ is self.__class__: * return self.opened is other.opened * return self.opened is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5860 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndMenu.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5839 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMenu.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_13_BeginEndMenu_12__reduce_cython__[] = "_BeginEndMenu.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMenu.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_13_BeginEndMenu_14__setstate_cython__[] = "_BeginEndMenu.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_13_BeginEndMenu_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_13_BeginEndMenu_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndMenu *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_13_BeginEndMenu_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndMenu *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__81, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndMenu.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5866 * * * def begin_menu(str label, enabled=True): # <<<<<<<<<<<<<< * """Create new expandable menu in current menu bar. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_153begin_menu(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_152begin_menu[] = "begin_menu(str label, enabled=True)\nCreate new expandable menu in current menu bar.\n\n Use with ``with`` to automatically call :func:`end_menu` if necessary.\n Otherwise, only call :func:`end_menu` if ``opened`` is True.\n\n For practical example how to use this function, please see documentation\n of :func:`begin_main_menu_bar` or :func:`begin_menu_bar`.\n\n Args:\n label (str): label of the menu.\n enabled (bool): define if menu is enabled or disabled.\n\n Returns:\n _BeginEndMenu: Use ``opened`` to tell if the menu is displayed (opened).\n Only call :func:`end_menu` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_menu` if necessary when the block ends.\n\n .. wraps::\n bool BeginMenu(\n const char* label,\n bool enabled\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_153begin_menu = {"begin_menu", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_153begin_menu, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_152begin_menu}; static PyObject *__pyx_pw_5imgui_4core_153begin_menu(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_enabled = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_menu (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_enabled,0}; PyObject* values[2] = {0,0}; values[1] = ((PyObject *)Py_True); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_enabled); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_menu") < 0)) __PYX_ERR(0, 5866, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_enabled = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_menu", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5866, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_menu", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 5866, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_152begin_menu(__pyx_self, __pyx_v_label, __pyx_v_enabled); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_152begin_menu(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_enabled) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; bool __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_menu", 0); /* "imgui/core.pyx":5890 * ) * """ * return _BeginEndMenu.__new__( # <<<<<<<<<<<<<< * _BeginEndMenu, * cimgui.BeginMenu(_bytes(label), enabled) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":5892 * return _BeginEndMenu.__new__( * _BeginEndMenu, * cimgui.BeginMenu(_bytes(label), enabled) # <<<<<<<<<<<<<< * ) * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5892, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 5892, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_enabled); if (unlikely((__pyx_t_3 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5892, __pyx_L1_error) try { __pyx_t_4 = ImGui::BeginMenu(__pyx_t_2, __pyx_t_3); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5892, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":5890 * ) * """ * return _BeginEndMenu.__new__( # <<<<<<<<<<<<<< * _BeginEndMenu, * cimgui.BeginMenu(_bytes(label), enabled) */ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndMenu(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndMenu), __pyx_t_5, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5890, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":5866 * * * def begin_menu(str label, enabled=True): # <<<<<<<<<<<<<< * """Create new expandable menu in current menu bar. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.begin_menu", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5896 * * * def end_menu(): # <<<<<<<<<<<<<< * """Close menu context. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_155end_menu(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_154end_menu[] = "end_menu()\nClose menu context.\n\n Only call this function if ``begin_menu().opened`` returns True.\n\n For practical example how to use this function, please see documentation\n of :func:`begin_main_menu_bar` or :func:`begin_menu_bar`.\n\n .. wraps::\n void EndMenu()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_155end_menu = {"end_menu", (PyCFunction)__pyx_pw_5imgui_4core_155end_menu, METH_NOARGS, __pyx_doc_5imgui_4core_154end_menu}; static PyObject *__pyx_pw_5imgui_4core_155end_menu(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_menu (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_154end_menu(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_154end_menu(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_menu", 0); /* "imgui/core.pyx":5907 * void EndMenu() * """ * cimgui.EndMenu() # <<<<<<<<<<<<<< * * */ try { ImGui::EndMenu(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5907, __pyx_L1_error) } /* "imgui/core.pyx":5896 * * * def end_menu(): # <<<<<<<<<<<<<< * """Close menu context. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_menu", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5910 * * * def menu_item( # <<<<<<<<<<<<<< * str label, str shortcut=None, cimgui.bool selected=False, enabled=True * ): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_157menu_item(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_156menu_item[] = "menu_item(str label, str shortcut=None, bool selected=False, enabled=True)\nCreate a menu item.\n\n Item shortcuts are displayed for convenience but not processed by ImGui at\n the moment. Using ``selected`` argument it is possible to show and trigger\n a check mark next to the menu item label.\n\n For practical example how to use this function, please see documentation\n of :func:`begin_main_menu_bar` or :func:`begin_menu_bar`.\n\n Args:\n label (str): label of the menu item.\n shortcut (str): shortcut text of the menu item.\n selected (bool): define if menu item is selected.\n enabled (bool): define if menu item is enabled or disabled.\n\n Returns:\n tuple: a ``(clicked, state)`` two-tuple indicating if item was\n clicked by the user and the current state of item (visibility of\n the check mark).\n\n .. wraps::\n MenuItem(\n const char* label,\n const char* shortcut,\n bool* p_selected,\n bool enabled = true\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_157menu_item = {"menu_item", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_157menu_item, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_156menu_item}; static PyObject *__pyx_pw_5imgui_4core_157menu_item(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_shortcut = 0; bool __pyx_v_selected; PyObject *__pyx_v_enabled = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("menu_item (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_shortcut,&__pyx_n_s_selected,&__pyx_n_s_enabled,0}; PyObject* values[4] = {0,0,0,0}; /* "imgui/core.pyx":5911 * * def menu_item( * str label, str shortcut=None, cimgui.bool selected=False, enabled=True # <<<<<<<<<<<<<< * ): * """Create a menu item. */ values[1] = ((PyObject*)Py_None); values[3] = ((PyObject *)Py_True); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shortcut); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_selected); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_enabled); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "menu_item") < 0)) __PYX_ERR(0, 5910, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_shortcut = ((PyObject*)values[1]); if (values[2]) { __pyx_v_selected = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_selected == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5911, __pyx_L3_error) } else { __pyx_v_selected = ((bool)0); } __pyx_v_enabled = values[3]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("menu_item", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5910, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.menu_item", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 5911, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_shortcut), (&PyString_Type), 1, "shortcut", 1))) __PYX_ERR(0, 5911, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_156menu_item(__pyx_self, __pyx_v_label, __pyx_v_shortcut, __pyx_v_selected, __pyx_v_enabled); /* "imgui/core.pyx":5910 * * * def menu_item( # <<<<<<<<<<<<<< * str label, str shortcut=None, cimgui.bool selected=False, enabled=True * ): */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_156menu_item(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_shortcut, bool __pyx_v_selected, PyObject *__pyx_v_enabled) { bool __pyx_v_inout_selected; bool __pyx_v_clicked; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; char const *__pyx_t_8; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("menu_item", 0); /* "imgui/core.pyx":5941 * ) * """ * cdef cimgui.bool inout_selected = selected # <<<<<<<<<<<<<< * * # note: wee need to split this into two separate calls depending */ __pyx_v_inout_selected = __pyx_v_selected; /* "imgui/core.pyx":5946 * # on the value of shortcut in order to support None instead * # of empty strings. * if shortcut is None: # <<<<<<<<<<<<<< * clicked = cimgui.MenuItem( * _bytes(label), */ __pyx_t_1 = (__pyx_v_shortcut == ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":5948 * if shortcut is None: * clicked = cimgui.MenuItem( * _bytes(label), # <<<<<<<<<<<<<< * NULL, * &inout_selected, */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5948, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 5948, __pyx_L1_error) /* "imgui/core.pyx":5951 * NULL, * &inout_selected, * enabled # <<<<<<<<<<<<<< * ) * else: */ __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_enabled); if (unlikely((__pyx_t_5 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5951, __pyx_L1_error) /* "imgui/core.pyx":5947 * # of empty strings. * if shortcut is None: * clicked = cimgui.MenuItem( # <<<<<<<<<<<<<< * _bytes(label), * NULL, */ try { __pyx_t_6 = ImGui::MenuItem(__pyx_t_4, NULL, (&__pyx_v_inout_selected), ((bool)__pyx_t_5)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5947, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_clicked = __pyx_t_6; /* "imgui/core.pyx":5946 * # on the value of shortcut in order to support None instead * # of empty strings. * if shortcut is None: # <<<<<<<<<<<<<< * clicked = cimgui.MenuItem( * _bytes(label), */ goto __pyx_L3; } /* "imgui/core.pyx":5954 * ) * else: * clicked = cimgui.MenuItem( # <<<<<<<<<<<<<< * _bytes(label), * _bytes(shortcut), */ /*else*/ { /* "imgui/core.pyx":5955 * else: * clicked = cimgui.MenuItem( * _bytes(label), # <<<<<<<<<<<<<< * _bytes(shortcut), * &inout_selected, */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5955, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 5955, __pyx_L1_error) /* "imgui/core.pyx":5956 * clicked = cimgui.MenuItem( * _bytes(label), * _bytes(shortcut), # <<<<<<<<<<<<<< * &inout_selected, * enabled */ __pyx_t_7 = __pyx_f_5imgui_4core__bytes(__pyx_v_shortcut); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (unlikely(__pyx_t_7 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5956, __pyx_L1_error) } __pyx_t_8 = __Pyx_PyBytes_AsString(__pyx_t_7); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(0, 5956, __pyx_L1_error) /* "imgui/core.pyx":5958 * _bytes(shortcut), * &inout_selected, * enabled # <<<<<<<<<<<<<< * ) * return clicked, inout_selected */ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_enabled); if (unlikely((__pyx_t_6 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5958, __pyx_L1_error) /* "imgui/core.pyx":5954 * ) * else: * clicked = cimgui.MenuItem( # <<<<<<<<<<<<<< * _bytes(label), * _bytes(shortcut), */ try { __pyx_t_5 = ImGui::MenuItem(__pyx_t_4, __pyx_t_8, (&__pyx_v_inout_selected), ((bool)__pyx_t_6)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5954, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_clicked = __pyx_t_5; } __pyx_L3:; /* "imgui/core.pyx":5960 * enabled * ) * return clicked, inout_selected # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_clicked); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_inout_selected); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_3); __pyx_t_7 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; /* "imgui/core.pyx":5910 * * * def menu_item( # <<<<<<<<<<<<<< * str label, str shortcut=None, cimgui.bool selected=False, enabled=True * ): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.menu_item", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":5963 * * * def open_popup(str label, cimgui.ImGuiPopupFlags flags=0): # <<<<<<<<<<<<<< * """Open a popup window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_159open_popup(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_158open_popup[] = "open_popup(str label, ImGuiPopupFlags flags=0)\nOpen a popup window.\n\n Marks a popup window as open. Popups are closed when user click outside,\n or activate a pressable item, or :func:`close_current_popup()` is\n called within a :func:`begin_popup()`/:func:`end_popup()` block.\n Popup identifiers are relative to the current ID-stack\n (so :func:`open_popup` and :func:`begin_popup` needs to be at\n the same level).\n\n .. visual-example::\n :title: Simple popup window\n :height: 100\n :width: 220\n :auto_layout:\n\n imgui.begin(\"Example: simple popup\")\n if imgui.button('Toggle..'):\n imgui.open_popup(\"toggle\")\n if imgui.begin_popup(\"toggle\"):\n if imgui.begin_menu('Sub-menu'):\n _, _ = imgui.menu_item('Click me')\n imgui.end_menu()\n imgui.end_popup()\n imgui.end()\n\n Args:\n label (str): label of the modal window.\n\n .. wraps::\n void OpenPopup(\n const char* str_id,\n ImGuiPopupFlags popup_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_159open_popup = {"open_popup", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_159open_popup, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_158open_popup}; static PyObject *__pyx_pw_5imgui_4core_159open_popup(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiPopupFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("open_popup (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_flags,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "open_popup") < 0)) __PYX_ERR(0, 5963, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiPopupFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImGuiPopupFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5963, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiPopupFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("open_popup", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5963, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.open_popup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 5963, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_158open_popup(__pyx_self, __pyx_v_label, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_158open_popup(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("open_popup", 0); /* "imgui/core.pyx":5998 * ) * """ * cimgui.OpenPopup(_bytes(label), flags) # <<<<<<<<<<<<<< * * def open_popup_on_item_click(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 5998, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 5998, __pyx_L1_error) try { ImGui::OpenPopup(__pyx_t_2, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 5998, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":5963 * * * def open_popup(str label, cimgui.ImGuiPopupFlags flags=0): # <<<<<<<<<<<<<< * """Open a popup window. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.open_popup", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6000 * cimgui.OpenPopup(_bytes(label), flags) * * def open_popup_on_item_click(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): # <<<<<<<<<<<<<< * """Helper to open popup when clicked on last item. * (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_161open_popup_on_item_click(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_160open_popup_on_item_click[] = "open_popup_on_item_click(str label=None, ImGuiPopupFlags popup_flags=1)\nHelper to open popup when clicked on last item.\n (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors)\n\n Args:\n label (str): label of the modal window\n flags: ImGuiWindowFlags\n\n .. wraps::\n void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_161open_popup_on_item_click = {"open_popup_on_item_click", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_161open_popup_on_item_click, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_160open_popup_on_item_click}; static PyObject *__pyx_pw_5imgui_4core_161open_popup_on_item_click(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiPopupFlags __pyx_v_popup_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("open_popup_on_item_click (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_popup_flags,0}; PyObject* values[2] = {0,0}; values[0] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_popup_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "open_popup_on_item_click") < 0)) __PYX_ERR(0, 6000, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_popup_flags = __Pyx_PyInt_As_ImGuiPopupFlags(values[1]); if (unlikely((__pyx_v_popup_flags == ((ImGuiPopupFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6000, __pyx_L3_error) } else { __pyx_v_popup_flags = ((ImGuiPopupFlags)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("open_popup_on_item_click", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6000, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.open_popup_on_item_click", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6000, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_160open_popup_on_item_click(__pyx_self, __pyx_v_label, __pyx_v_popup_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_160open_popup_on_item_click(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_popup_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("open_popup_on_item_click", 0); /* "imgui/core.pyx":6011 * void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1) * """ * if label is None: # <<<<<<<<<<<<<< * cimgui.OpenPopupOnItemClick(NULL, popup_flags) * else: */ __pyx_t_1 = (__pyx_v_label == ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":6012 * """ * if label is None: * cimgui.OpenPopupOnItemClick(NULL, popup_flags) # <<<<<<<<<<<<<< * else: * cimgui.OpenPopupOnItemClick(_bytes(label), popup_flags) */ try { ImGui::OpenPopupOnItemClick(NULL, __pyx_v_popup_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6012, __pyx_L1_error) } /* "imgui/core.pyx":6011 * void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1) * """ * if label is None: # <<<<<<<<<<<<<< * cimgui.OpenPopupOnItemClick(NULL, popup_flags) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":6014 * cimgui.OpenPopupOnItemClick(NULL, popup_flags) * else: * cimgui.OpenPopupOnItemClick(_bytes(label), popup_flags) # <<<<<<<<<<<<<< * * */ /*else*/ { __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6014, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 6014, __pyx_L1_error) try { ImGui::OpenPopupOnItemClick(__pyx_t_4, __pyx_v_popup_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6014, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_L3:; /* "imgui/core.pyx":6000 * cimgui.OpenPopup(_bytes(label), flags) * * def open_popup_on_item_click(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): # <<<<<<<<<<<<<< * """Helper to open popup when clicked on last item. * (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.open_popup_on_item_click", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6032 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_BeginEndPopup_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_14_BeginEndPopup_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6032, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6032, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6032, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndPopup.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self), __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_BeginEndPopup___cinit__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":6033 * * def __cinit__(self, bool opened): * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":6032 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6035 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndPopup_2__enter__[] = "_BeginEndPopup.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":6036 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":6035 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6038 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndPopup() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndPopup_4__exit__[] = "_BeginEndPopup.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 6038, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 6038, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 6038, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6038, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndPopup.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":6039 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndPopup() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":6040 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndPopup() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndPopup(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6040, __pyx_L1_error) } /* "imgui/core.pyx":6039 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndPopup() * */ } /* "imgui/core.pyx":6038 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndPopup() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndPopup.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6042 * cimgui.EndPopup() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_BeginEndPopup_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_14_BeginEndPopup_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_BeginEndPopup_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":6044 * def __bool__(self): * """For legacy support, returns ``opened``.""" * return self.opened # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->opened; goto __pyx_L0; /* "imgui/core.pyx":6042 * cimgui.EndPopup() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6046 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":6047 * * def __repr__(self): * return "{}(opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":6048 * def __repr__(self): * return "{}(opened={})".format( * self.__class__.__name__, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6047, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6047, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6046 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndPopup.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6051 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":6052 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":6053 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.opened is other.opened # <<<<<<<<<<<<<< * return self.opened is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6052 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ } /* "imgui/core.pyx":6054 * if other.__class__ is self.__class__: * return self.opened is other.opened * return self.opened is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6051 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndPopup.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6030 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndPopup.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndPopup_12__reduce_cython__[] = "_BeginEndPopup.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__82, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndPopup.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndPopup_14__setstate_cython__[] = "_BeginEndPopup.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndPopup_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndPopup_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndPopup *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndPopup_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndPopup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__83, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndPopup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6057 * * * def begin_popup(str label, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Open a popup window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_163begin_popup(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_162begin_popup[] = "begin_popup(str label, ImGuiWindowFlags flags=0)\nOpen a popup window.\n\n The attribute ``opened`` is True if the popup is open and you can start outputting\n content to it.\n Use with ``with`` to automatically call :func:`end_popup` if necessary.\n Otherwise, only call :func:`end_popup` if ``opened`` is True.\n\n .. visual-example::\n :title: Simple popup window\n :height: 100\n :width: 220\n :auto_layout:\n\n with imgui.begin(\"Example: simple popup\"):\n if imgui.button(\"select\"):\n imgui.open_popup(\"select-popup\")\n\n imgui.same_line()\n\n with imgui.begin_popup(\"select-popup\") as select_popup:\n if select_popup.opened:\n imgui.text(\"Select one\")\n imgui.separator()\n imgui.selectable(\"One\")\n imgui.selectable(\"Two\")\n imgui.selectable(\"Three\")\n\n Example::\n\n imgui.begin(\"Example: simple popup\")\n\n if imgui.button(\"select\"):\n imgui.open_popup(\"select-popup\")\n\n imgui.same_line()\n\n if imgui.begin_popup(\"select-popup\"):\n imgui.text(\"Select one\")\n imgui.separator()\n imgui.selectable(\"One\")\n imgui.selectable(\"Two\")\n imgui.selectable(\"Three\")\n imgui.end_popup()\n\n imgui.end()\n\n Args:\n label (str): label of the modal window.\n\n Returns:\n _BeginEndPopup: Use ``opened`` bool attribute to tell if the popup is opened.\n Only call :func:`end_popup` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_popup` if necessary when the block ends.\n\n .. wraps::\n bool BeginPopup(\n const char* str_id,\n ImGuiWindowFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_163begin_popup = {"begin_popup", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_163begin_popup, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_162begin_popup}; static PyObject *__pyx_pw_5imgui_4core_163begin_popup(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiWindowFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_popup (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_flags,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_popup") < 0)) __PYX_ERR(0, 6057, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiWindowFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImGuiWindowFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6057, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiWindowFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_popup", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6057, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_popup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6057, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_162begin_popup(__pyx_self, __pyx_v_label, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_162begin_popup(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiWindowFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_popup", 0); /* "imgui/core.pyx":6118 * ) * """ * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopup(_bytes(label), flags) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":6120 * return _BeginEndPopup.__new__( * _BeginEndPopup, * cimgui.BeginPopup(_bytes(label), flags) # <<<<<<<<<<<<<< * ) * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6120, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6120, __pyx_L1_error) try { __pyx_t_3 = ImGui::BeginPopup(__pyx_t_2, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6120, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":6118 * ) * """ * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopup(_bytes(label), flags) */ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndPopup(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndPopup), __pyx_t_4, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6118, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6057 * * * def begin_popup(str label, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Open a popup window. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.begin_popup", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6142 * cdef readonly bool visible * * def __cinit__(self, bool opened, bool visible): # <<<<<<<<<<<<<< * self.opened = opened * self.visible = visible */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_19_BeginEndPopupModal_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_19_BeginEndPopupModal_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; bool __pyx_v_visible; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,&__pyx_n_s_visible,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_visible)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); __PYX_ERR(0, 6142, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6142, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6142, __pyx_L3_error) __pyx_v_visible = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_visible == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6142, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6142, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self), __pyx_v_opened, __pyx_v_visible); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_19_BeginEndPopupModal___cinit__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, bool __pyx_v_opened, bool __pyx_v_visible) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":6143 * * def __cinit__(self, bool opened, bool visible): * self.opened = opened # <<<<<<<<<<<<<< * self.visible = visible * */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":6144 * def __cinit__(self, bool opened, bool visible): * self.opened = opened * self.visible = visible # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->visible = __pyx_v_visible; /* "imgui/core.pyx":6142 * cdef readonly bool visible * * def __cinit__(self, bool opened, bool visible): # <<<<<<<<<<<<<< * self.opened = opened * self.visible = visible */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6146 * self.visible = visible * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_19_BeginEndPopupModal_2__enter__[] = "_BeginEndPopupModal.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":6147 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":6146 * self.visible = visible * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6149 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndPopup() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_19_BeginEndPopupModal_4__exit__[] = "_BeginEndPopupModal.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 6149, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 6149, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 6149, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6149, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":6150 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndPopup() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":6151 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndPopup() # <<<<<<<<<<<<<< * * def __getitem__(self, item): */ try { ImGui::EndPopup(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6151, __pyx_L1_error) } /* "imgui/core.pyx":6150 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndPopup() * */ } /* "imgui/core.pyx":6149 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndPopup() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6153 * cimgui.EndPopup() * * def __getitem__(self, item): # <<<<<<<<<<<<<< * """For legacy support, returns ``(opened, visible)[item]``.""" * return (self.opened, self.visible)[item] */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item); /*proto*/ static char __pyx_doc_5imgui_4core_19_BeginEndPopupModal_6__getitem__[] = "For legacy support, returns ``(opened, visible)[item]``."; #if CYTHON_UPDATE_DESCRIPTOR_DOC struct wrapperbase __pyx_wrapperbase_5imgui_4core_19_BeginEndPopupModal_6__getitem__; #endif static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_6__getitem__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self), ((PyObject *)__pyx_v_item)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_6__getitem__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); /* "imgui/core.pyx":6155 * def __getitem__(self, item): * """For legacy support, returns ``(opened, visible)[item]``.""" * return (self.opened, self.visible)[item] # <<<<<<<<<<<<<< * * def __iter__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6153 * cimgui.EndPopup() * * def __getitem__(self, item): # <<<<<<<<<<<<<< * """For legacy support, returns ``(opened, visible)[item]``.""" * return (self.opened, self.visible)[item] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6157 * return (self.opened, self.visible)[item] * * def __iter__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``iter((opened, visible))``.""" * return iter((self.opened, self.visible)) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_9__iter__(PyObject *__pyx_v_self); /*proto*/ static char __pyx_doc_5imgui_4core_19_BeginEndPopupModal_8__iter__[] = "For legacy support, returns ``iter((opened, visible))``."; #if CYTHON_UPDATE_DESCRIPTOR_DOC struct wrapperbase __pyx_wrapperbase_5imgui_4core_19_BeginEndPopupModal_8__iter__; #endif static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_9__iter__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_8__iter__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_8__iter__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__iter__", 0); /* "imgui/core.pyx":6159 * def __iter__(self): * """For legacy support, returns ``iter((opened, visible))``.""" * return iter((self.opened, self.visible)) # <<<<<<<<<<<<<< * * def __repr__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6157 * return (self.opened, self.visible)[item] * * def __iter__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``iter((opened, visible))``.""" * return iter((self.opened, self.visible)) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6161 * return iter((self.opened, self.visible)) * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={}, visible={})".format( * self.__class__.__name__, self.opened, self.visible */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_11__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_11__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_10__repr__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_10__repr__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":6162 * * def __repr__(self): * return "{}(opened={}, visible={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened, self.visible * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_visible, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":6163 * def __repr__(self): * return "{}(opened={}, visible={})".format( * self.__class__.__name__, self.opened, self.visible # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_7 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6162, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6162, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_5); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6161 * return iter((self.opened, self.visible)) * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={}, visible={})".format( * self.__class__.__name__, self.opened, self.visible */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6166 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return (self.opened, self.visible) == (other.opened, other.visible) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_13__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_13__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_12__eq__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_12__eq__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":6167 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return (self.opened, self.visible) == (other.opened, other.visible) * return (self.opened, self.visible) == other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":6168 * def __eq__(self, other): * if other.__class__ is self.__class__: * return (self.opened, self.visible) == (other.opened, other.visible) # <<<<<<<<<<<<<< * return (self.opened, self.visible) == other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_visible); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_5, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6167 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return (self.opened, self.visible) == (other.opened, other.visible) * return (self.opened, self.visible) == other */ } /* "imgui/core.pyx":6169 * if other.__class__ is self.__class__: * return (self.opened, self.visible) == (other.opened, other.visible) * return (self.opened, self.visible) == other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_v_other, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6169, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":6166 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return (self.opened, self.visible) == (other.opened, other.visible) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6139 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * cdef readonly bool visible * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6140 * * cdef readonly bool opened * cdef readonly bool visible # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened, bool visible): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_7visible_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_7visible_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_7visible___get__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_7visible___get__(struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->visible); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.visible.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_19_BeginEndPopupModal_14__reduce_cython__[] = "_BeginEndPopupModal.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_14__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__84, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_19_BeginEndPopupModal_16__setstate_cython__[] = "_BeginEndPopupModal.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_19_BeginEndPopupModal_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_19_BeginEndPopupModal_16__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndPopupModal *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_19_BeginEndPopupModal_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndPopupModal *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__85, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndPopupModal.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6172 * * * def begin_popup_modal(str title, visible=None, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Begin pouring popup contents. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_165begin_popup_modal(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_164begin_popup_modal[] = "begin_popup_modal(str title, visible=None, ImGuiWindowFlags flags=0)\nBegin pouring popup contents.\n\n Differs from :func:`begin_popup` with its modality - meaning it\n opens up on top of every other window.\n\n The attribute ``opened`` is True if the popup is open and you can start outputting\n content to it.\n Use with ``with`` to automatically call :func:`end_popup` if necessary.\n Otherwise, only call :func:`end_popup` if ``opened`` is True.\n\n .. visual-example::\n :title: Simple popup window\n :height: 100\n :width: 220\n :auto_layout:\n\n with imgui.begin(\"Example: simple popup modal\"):\n if imgui.button(\"Open Modal popup\"):\n imgui.open_popup(\"select-popup\")\n\n imgui.same_line()\n\n with imgui.begin_popup_modal(\"select-popup\") as select_popup:\n if select_popup.opened:\n imgui.text(\"Select an option:\")\n imgui.separator()\n imgui.selectable(\"One\")\n imgui.selectable(\"Two\")\n imgui.selectable(\"Three\")\n\n Example::\n\n imgui.begin(\"Example: simple popup modal\")\n\n if imgui.button(\"Open Modal popup\"):\n imgui.open_popup(\"select-popup\")\n\n imgui.same_line()\n\n if imgui.begin_popup_modal(\"select-popup\").opened:\n imgui.text(\"Select an option:\")\n imgui.separator()\n imgui.selectable(\"One\")\n imgui.selectable(\"Two\")\n imgui.selectable(\"Three\")\n imgui.end_popup()\n\n imgui.end()\n\n Args:\n title (str): label of the modal window.\n visible (bool): define if popup is visible or not.\n flags: Window flags. See:\n :ref:`list of available flags `.\n\n Returns:\n _BeginEndPopupModal: ``(opened, visible)`` struct of bools.\n Only call :f""unc:`end_popup` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_popup` if necessary when the block ends.\n The ``opened`` attribute can be False when the popup is completely clipped\n (e.g. zero size display).\n\n .. wraps::\n bool BeginPopupModal(\n const char* name,\n bool* p_open = NULL,\n ImGuiWindowFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_165begin_popup_modal = {"begin_popup_modal", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_165begin_popup_modal, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_164begin_popup_modal}; static PyObject *__pyx_pw_5imgui_4core_165begin_popup_modal(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_title = 0; PyObject *__pyx_v_visible = 0; ImGuiWindowFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_popup_modal (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_title,&__pyx_n_s_visible,&__pyx_n_s_flags,0}; PyObject* values[3] = {0,0,0}; values[1] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_title)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_visible); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_popup_modal") < 0)) __PYX_ERR(0, 6172, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_title = ((PyObject*)values[0]); __pyx_v_visible = values[1]; if (values[2]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiWindowFlags(values[2]); if (unlikely((__pyx_v_flags == ((ImGuiWindowFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6172, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiWindowFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_popup_modal", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6172, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_popup_modal", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_title), (&PyString_Type), 1, "title", 1))) __PYX_ERR(0, 6172, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_164begin_popup_modal(__pyx_self, __pyx_v_title, __pyx_v_visible, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_164begin_popup_modal(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_title, PyObject *__pyx_v_visible, ImGuiWindowFlags __pyx_v_flags) { bool __pyx_v_inout_visible; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; bool *__pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_popup_modal", 0); /* "imgui/core.pyx":6242 * ) * """ * cdef cimgui.bool inout_visible = visible # <<<<<<<<<<<<<< * * return _BeginEndPopupModal.__new__( */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_visible); if (unlikely((__pyx_t_1 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6242, __pyx_L1_error) __pyx_v_inout_visible = __pyx_t_1; /* "imgui/core.pyx":6244 * cdef cimgui.bool inout_visible = visible * * return _BeginEndPopupModal.__new__( # <<<<<<<<<<<<<< * _BeginEndPopupModal, * cimgui.BeginPopupModal( */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":6247 * _BeginEndPopupModal, * cimgui.BeginPopupModal( * _bytes(title), # <<<<<<<<<<<<<< * &inout_visible if visible is not None else NULL, * flags */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_title); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6247, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 6247, __pyx_L1_error) /* "imgui/core.pyx":6248 * cimgui.BeginPopupModal( * _bytes(title), * &inout_visible if visible is not None else NULL, # <<<<<<<<<<<<<< * flags * ), */ __pyx_t_5 = (__pyx_v_visible != Py_None); if ((__pyx_t_5 != 0)) { __pyx_t_4 = (&__pyx_v_inout_visible); } else { __pyx_t_4 = NULL; } /* "imgui/core.pyx":6246 * return _BeginEndPopupModal.__new__( * _BeginEndPopupModal, * cimgui.BeginPopupModal( # <<<<<<<<<<<<<< * _bytes(title), * &inout_visible if visible is not None else NULL, */ try { __pyx_t_1 = ImGui::BeginPopupModal(__pyx_t_3, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6246, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":6251 * flags * ), * inout_visible # <<<<<<<<<<<<<< * ) * */ __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_inout_visible); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); /* "imgui/core.pyx":6244 * cdef cimgui.bool inout_visible = visible * * return _BeginEndPopupModal.__new__( # <<<<<<<<<<<<<< * _BeginEndPopupModal, * cimgui.BeginPopupModal( */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_6 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndPopupModal(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndPopupModal), __pyx_t_7, NULL)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6244, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_6)); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_r = ((PyObject *)__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":6172 * * * def begin_popup_modal(str title, visible=None, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Begin pouring popup contents. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.begin_popup_modal", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6255 * * * def begin_popup_context_item(str label = None, cimgui.ImGuiPopupFlags mouse_button = 1): # <<<<<<<<<<<<<< * """This is a helper function to handle the most simple case of associating * one named popup to one given widget. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_167begin_popup_context_item(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_166begin_popup_context_item[] = "begin_popup_context_item(str label=None, ImGuiPopupFlags mouse_button=1)\nThis is a helper function to handle the most simple case of associating\n one named popup to one given widget.\n\n .. visual-example::\n :title: Popup context view\n :height: 100\n :width: 200\n :auto_layout:\n :click: 40 40\n\n with imgui.begin(\"Example: popup context view\"):\n imgui.text(\"Right-click to set value.\")\n with imgui.begin_popup_context_item(\"Item Context Menu\", mouse_button=0) as popup:\n if popup.opened:\n imgui.selectable(\"Set to Zero\")\n\n Example::\n\n imgui.begin(\"Example: popup context view\")\n imgui.text(\"Right-click to set value.\")\n if imgui.begin_popup_context_item(\"Item Context Menu\", mouse_button=0):\n imgui.selectable(\"Set to Zero\")\n imgui.end_popup()\n imgui.end()\n\n Args:\n label (str): label of item.\n mouse_button: ImGuiPopupFlags\n\n Returns:\n _BeginEndPopup: Use ``opened`` bool attribute to tell if the popup is opened.\n Only call :func:`end_popup` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_popup` if necessary when the block ends.\n\n .. wraps::\n bool BeginPopupContextItem(\n const char* str_id = NULL,\n int mouse_button = 1\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_167begin_popup_context_item = {"begin_popup_context_item", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_167begin_popup_context_item, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_166begin_popup_context_item}; static PyObject *__pyx_pw_5imgui_4core_167begin_popup_context_item(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiPopupFlags __pyx_v_mouse_button; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_popup_context_item (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_mouse_button,0}; PyObject* values[2] = {0,0}; values[0] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mouse_button); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_popup_context_item") < 0)) __PYX_ERR(0, 6255, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_mouse_button = __Pyx_PyInt_As_ImGuiPopupFlags(values[1]); if (unlikely((__pyx_v_mouse_button == ((ImGuiPopupFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6255, __pyx_L3_error) } else { __pyx_v_mouse_button = ((ImGuiPopupFlags)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_popup_context_item", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6255, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_popup_context_item", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6255, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_166begin_popup_context_item(__pyx_self, __pyx_v_label, __pyx_v_mouse_button); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_166begin_popup_context_item(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_mouse_button) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; bool __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; char const *__pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_popup_context_item", 0); /* "imgui/core.pyx":6296 * ) * """ * if label is None: # <<<<<<<<<<<<<< * return _BeginEndPopup.__new__(_BeginEndPopup, cimgui.BeginPopupContextItem(NULL, mouse_button)) * else: */ __pyx_t_1 = (__pyx_v_label == ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":6297 * """ * if label is None: * return _BeginEndPopup.__new__(_BeginEndPopup, cimgui.BeginPopupContextItem(NULL, mouse_button)) # <<<<<<<<<<<<<< * else: * return _BeginEndPopup.__new__(_BeginEndPopup, cimgui.BeginPopupContextItem(_bytes(label), mouse_button)) */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_3 = ImGui::BeginPopupContextItem(NULL, __pyx_v_mouse_button); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6297, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndPopup(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndPopup), __pyx_t_5, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6297, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_4)); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":6296 * ) * """ * if label is None: # <<<<<<<<<<<<<< * return _BeginEndPopup.__new__(_BeginEndPopup, cimgui.BeginPopupContextItem(NULL, mouse_button)) * else: */ } /* "imgui/core.pyx":6299 * return _BeginEndPopup.__new__(_BeginEndPopup, cimgui.BeginPopupContextItem(NULL, mouse_button)) * else: * return _BeginEndPopup.__new__(_BeginEndPopup, cimgui.BeginPopupContextItem(_bytes(label), mouse_button)) # <<<<<<<<<<<<<< * * */ /*else*/ { __Pyx_XDECREF(__pyx_r); __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6299, __pyx_L1_error) } __pyx_t_6 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 6299, __pyx_L1_error) try { __pyx_t_3 = ImGui::BeginPopupContextItem(__pyx_t_6, __pyx_v_mouse_button); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6299, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndPopup(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndPopup), __pyx_t_5, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6299, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_4)); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L0; } /* "imgui/core.pyx":6255 * * * def begin_popup_context_item(str label = None, cimgui.ImGuiPopupFlags mouse_button = 1): # <<<<<<<<<<<<<< * """This is a helper function to handle the most simple case of associating * one named popup to one given widget. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.begin_popup_context_item", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6302 * * * def begin_popup_context_window( # <<<<<<<<<<<<<< * str label = None, * cimgui.ImGuiPopupFlags popup_flags = 1, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_169begin_popup_context_window(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_168begin_popup_context_window[] = "begin_popup_context_window(str label=None, ImGuiPopupFlags popup_flags=1, bool also_over_items=True)\nHelper function to open and begin popup when clicked on current window.\n\n As all popup functions it should end with :func:`end_popup`.\n\n .. visual-example::\n :title: Popup context view\n :height: 100\n :width: 200\n :auto_layout:\n :click: 40 40\n\n with imgui.begin(\"Example: popup context window\"):\n with imgui.begin_popup_context_window(popup_flags=imgui.POPUP_NONE) as context_window:\n if context_window.opened:\n imgui.selectable(\"Clear\")\n\n Example::\n\n imgui.begin(\"Example: popup context window\")\n if imgui.begin_popup_context_window(popup_flags=imgui.POPUP_NONE):\n imgui.selectable(\"Clear\")\n imgui.end_popup()\n imgui.end()\n\n Args:\n label (str): label of the window\n popup_flags: ImGuiPopupFlags\n also_over_items (bool): display on top of widget. OBSOLETED in ImGui 1.77 (from June 2020)\n\n Returns:\n _BeginEndPopup: Use ``opened`` bool attribute to tell if the context window is opened.\n Only call :func:`end_popup` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_popup` if necessary when the block ends.\n\n .. wraps::\n bool BeginPopupContextWindow(\n const char* str_id = NULL,\n ImGuiPopupFlags popup_flags = 1\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_169begin_popup_context_window = {"begin_popup_context_window", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_169begin_popup_context_window, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_168begin_popup_context_window}; static PyObject *__pyx_pw_5imgui_4core_169begin_popup_context_window(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiPopupFlags __pyx_v_popup_flags; bool __pyx_v_also_over_items; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_popup_context_window (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_popup_flags,&__pyx_n_s_also_over_items,0}; PyObject* values[3] = {0,0,0}; /* "imgui/core.pyx":6303 * * def begin_popup_context_window( * str label = None, # <<<<<<<<<<<<<< * cimgui.ImGuiPopupFlags popup_flags = 1, * bool also_over_items = True # OBSOLETED in 1.77 (from June 2020) */ values[0] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_popup_flags); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_also_over_items); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_popup_context_window") < 0)) __PYX_ERR(0, 6302, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_popup_flags = __Pyx_PyInt_As_ImGuiPopupFlags(values[1]); if (unlikely((__pyx_v_popup_flags == ((ImGuiPopupFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6304, __pyx_L3_error) } else { __pyx_v_popup_flags = ((ImGuiPopupFlags)1); } if (values[2]) { __pyx_v_also_over_items = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_also_over_items == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6305, __pyx_L3_error) } else { /* "imgui/core.pyx":6305 * str label = None, * cimgui.ImGuiPopupFlags popup_flags = 1, * bool also_over_items = True # OBSOLETED in 1.77 (from June 2020) # <<<<<<<<<<<<<< * ): * """Helper function to open and begin popup when clicked on current window. */ __pyx_v_also_over_items = ((bool)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_popup_context_window", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6302, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_popup_context_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6303, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_168begin_popup_context_window(__pyx_self, __pyx_v_label, __pyx_v_popup_flags, __pyx_v_also_over_items); /* "imgui/core.pyx":6302 * * * def begin_popup_context_window( # <<<<<<<<<<<<<< * str label = None, * cimgui.ImGuiPopupFlags popup_flags = 1, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_168begin_popup_context_window(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_popup_flags, bool __pyx_v_also_over_items) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; ImGuiPopupFlags __pyx_t_6; bool __pyx_t_7; char const *__pyx_t_8; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_popup_context_window", 0); /* "imgui/core.pyx":6348 * """ * * if label is None: # <<<<<<<<<<<<<< * return _BeginEndPopup.__new__( * _BeginEndPopup, */ __pyx_t_1 = (__pyx_v_label == ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":6349 * * if label is None: * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopupContextWindow( */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":6353 * cimgui.BeginPopupContextWindow( * NULL, * popup_flags | (0 if also_over_items else POPUP_NO_OPEN_OVER_ITEMS) # <<<<<<<<<<<<<< * ) * ) */ __pyx_t_3 = __Pyx_PyInt_From_ImGuiPopupFlags(__pyx_v_popup_flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if ((__pyx_v_also_over_items != 0)) { __Pyx_INCREF(__pyx_int_0); __pyx_t_4 = __pyx_int_0; } else { __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_POPUP_NO_OPEN_OVER_ITEMS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __pyx_t_5; __pyx_t_5 = 0; } __pyx_t_5 = PyNumber_Or(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyInt_As_ImGuiPopupFlags(__pyx_t_5); if (unlikely((__pyx_t_6 == ((ImGuiPopupFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6353, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "imgui/core.pyx":6351 * return _BeginEndPopup.__new__( * _BeginEndPopup, * cimgui.BeginPopupContextWindow( # <<<<<<<<<<<<<< * NULL, * popup_flags | (0 if also_over_items else POPUP_NO_OPEN_OVER_ITEMS) */ try { __pyx_t_7 = ImGui::BeginPopupContextWindow(NULL, __pyx_t_6); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6351, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); /* "imgui/core.pyx":6349 * * if label is None: * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopupContextWindow( */ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndPopup(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndPopup), __pyx_t_4, NULL)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6349, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_5)); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = ((PyObject *)__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L0; /* "imgui/core.pyx":6348 * """ * * if label is None: # <<<<<<<<<<<<<< * return _BeginEndPopup.__new__( * _BeginEndPopup, */ } /* "imgui/core.pyx":6357 * ) * else: * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopupContextWindow( */ /*else*/ { __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":6360 * _BeginEndPopup, * cimgui.BeginPopupContextWindow( * _bytes(label), # <<<<<<<<<<<<<< * popup_flags | (0 if also_over_items else POPUP_NO_OPEN_OVER_ITEMS) * ) */ __pyx_t_5 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__pyx_t_5 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6360, __pyx_L1_error) } __pyx_t_8 = __Pyx_PyBytes_AsString(__pyx_t_5); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(0, 6360, __pyx_L1_error) /* "imgui/core.pyx":6361 * cimgui.BeginPopupContextWindow( * _bytes(label), * popup_flags | (0 if also_over_items else POPUP_NO_OPEN_OVER_ITEMS) # <<<<<<<<<<<<<< * ) * ) */ __pyx_t_4 = __Pyx_PyInt_From_ImGuiPopupFlags(__pyx_v_popup_flags); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if ((__pyx_v_also_over_items != 0)) { __Pyx_INCREF(__pyx_int_0); __pyx_t_3 = __pyx_int_0; } else { __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_POPUP_NO_OPEN_OVER_ITEMS); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __pyx_t_9; __pyx_t_9 = 0; } __pyx_t_9 = PyNumber_Or(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyInt_As_ImGuiPopupFlags(__pyx_t_9); if (unlikely((__pyx_t_6 == ((ImGuiPopupFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6361, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":6359 * return _BeginEndPopup.__new__( * _BeginEndPopup, * cimgui.BeginPopupContextWindow( # <<<<<<<<<<<<<< * _bytes(label), * popup_flags | (0 if also_over_items else POPUP_NO_OPEN_OVER_ITEMS) */ try { __pyx_t_7 = ImGui::BeginPopupContextWindow(__pyx_t_8, __pyx_t_6); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6359, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); /* "imgui/core.pyx":6357 * ) * else: * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopupContextWindow( */ __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndPopup(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndPopup), __pyx_t_9, NULL)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6357, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_5)); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = ((PyObject *)__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L0; } /* "imgui/core.pyx":6302 * * * def begin_popup_context_window( # <<<<<<<<<<<<<< * str label = None, * cimgui.ImGuiPopupFlags popup_flags = 1, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.begin_popup_context_window", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6365 * ) * * def begin_popup_context_void(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): # <<<<<<<<<<<<<< * """Open+begin popup when clicked in void (where there are no windows). * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_171begin_popup_context_void(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_170begin_popup_context_void[] = "begin_popup_context_void(str label=None, ImGuiPopupFlags popup_flags=1)\nOpen+begin popup when clicked in void (where there are no windows).\n\n Args:\n label (str): label of the window\n popup_flags: ImGuiPopupFlags\n\n Returns:\n _BeginEndPopup: Use ``opened`` bool attribute to tell if the context window is opened.\n Only call :func:`end_popup` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_popup` if necessary when the block ends.\n\n .. wraps::\n bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_171begin_popup_context_void = {"begin_popup_context_void", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_171begin_popup_context_void, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_170begin_popup_context_void}; static PyObject *__pyx_pw_5imgui_4core_171begin_popup_context_void(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiPopupFlags __pyx_v_popup_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_popup_context_void (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_popup_flags,0}; PyObject* values[2] = {0,0}; values[0] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_popup_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_popup_context_void") < 0)) __PYX_ERR(0, 6365, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_popup_flags = __Pyx_PyInt_As_ImGuiPopupFlags(values[1]); if (unlikely((__pyx_v_popup_flags == ((ImGuiPopupFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6365, __pyx_L3_error) } else { __pyx_v_popup_flags = ((ImGuiPopupFlags)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_popup_context_void", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6365, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_popup_context_void", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6365, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_170begin_popup_context_void(__pyx_self, __pyx_v_label, __pyx_v_popup_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_170begin_popup_context_void(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_popup_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; bool __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; char const *__pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_popup_context_void", 0); /* "imgui/core.pyx":6381 * """ * * if label is None: # <<<<<<<<<<<<<< * return _BeginEndPopup.__new__( * _BeginEndPopup, */ __pyx_t_1 = (__pyx_v_label == ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":6382 * * if label is None: * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopupContextVoid(NULL, popup_flags) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":6384 * return _BeginEndPopup.__new__( * _BeginEndPopup, * cimgui.BeginPopupContextVoid(NULL, popup_flags) # <<<<<<<<<<<<<< * ) * else: */ try { __pyx_t_3 = ImGui::BeginPopupContextVoid(NULL, __pyx_v_popup_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6384, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":6382 * * if label is None: * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopupContextVoid(NULL, popup_flags) */ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndPopup(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndPopup), __pyx_t_5, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6382, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_4)); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":6381 * """ * * if label is None: # <<<<<<<<<<<<<< * return _BeginEndPopup.__new__( * _BeginEndPopup, */ } /* "imgui/core.pyx":6387 * ) * else: * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopupContextVoid(_bytes(label), popup_flags) */ /*else*/ { __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":6389 * return _BeginEndPopup.__new__( * _BeginEndPopup, * cimgui.BeginPopupContextVoid(_bytes(label), popup_flags) # <<<<<<<<<<<<<< * ) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6389, __pyx_L1_error) } __pyx_t_6 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 6389, __pyx_L1_error) try { __pyx_t_3 = ImGui::BeginPopupContextVoid(__pyx_t_6, __pyx_v_popup_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6389, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":6387 * ) * else: * return _BeginEndPopup.__new__( # <<<<<<<<<<<<<< * _BeginEndPopup, * cimgui.BeginPopupContextVoid(_bytes(label), popup_flags) */ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndPopup(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndPopup), __pyx_t_5, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6387, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_4)); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L0; } /* "imgui/core.pyx":6365 * ) * * def begin_popup_context_void(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): # <<<<<<<<<<<<<< * """Open+begin popup when clicked in void (where there are no windows). * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.begin_popup_context_void", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6392 * ) * * def is_popup_open( str label, cimgui.ImGuiPopupFlags flags = 0): # <<<<<<<<<<<<<< * """Popups: test function * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_173is_popup_open(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_172is_popup_open[] = "is_popup_open(str label, ImGuiPopupFlags flags=0)\nPopups: test function\n\n * ``is_popup_open()`` with POPUP_ANY_POPUP_ID: return true if any popup is open at the current BeginPopup() level of the popup stack.\n * ``is_popup_open()`` with POPUP_ANY_POPUP_ID + POPUP_ANY_POPUP_LEVEL: return true if any popup is open.\n\n Returns:\n bool: True if the popup is open at the current ``begin_popup()`` level of the popup stack.\n\n .. wraps::\n bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_173is_popup_open = {"is_popup_open", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_173is_popup_open, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_172is_popup_open}; static PyObject *__pyx_pw_5imgui_4core_173is_popup_open(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiPopupFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_popup_open (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_flags,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_popup_open") < 0)) __PYX_ERR(0, 6392, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiPopupFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImGuiPopupFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6392, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiPopupFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_popup_open", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6392, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_popup_open", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6392, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_172is_popup_open(__pyx_self, __pyx_v_label, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_172is_popup_open(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiPopupFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_popup_open", 0); /* "imgui/core.pyx":6404 * bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0) * """ * return cimgui.IsPopupOpen(_bytes(label), flags) # <<<<<<<<<<<<<< * * def end_popup(): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6404, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6404, __pyx_L1_error) try { __pyx_t_3 = ImGui::IsPopupOpen(__pyx_t_2, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6404, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6392 * ) * * def is_popup_open( str label, cimgui.ImGuiPopupFlags flags = 0): # <<<<<<<<<<<<<< * """Popups: test function * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.is_popup_open", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6406 * return cimgui.IsPopupOpen(_bytes(label), flags) * * def end_popup(): # <<<<<<<<<<<<<< * """End a popup window. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_175end_popup(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_174end_popup[] = "end_popup()\nEnd a popup window.\n\n Should be called after each XYZPopupXYZ function.\n Only call this function if ``begin_popup_XYZ().opened`` is True.\n\n For practical example how to use this function, please see documentation\n of :func:`open_popup`.\n\n .. wraps::\n void EndPopup()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_175end_popup = {"end_popup", (PyCFunction)__pyx_pw_5imgui_4core_175end_popup, METH_NOARGS, __pyx_doc_5imgui_4core_174end_popup}; static PyObject *__pyx_pw_5imgui_4core_175end_popup(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_popup (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_174end_popup(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_174end_popup(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_popup", 0); /* "imgui/core.pyx":6418 * void EndPopup() * """ * cimgui.EndPopup() # <<<<<<<<<<<<<< * * */ try { ImGui::EndPopup(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6418, __pyx_L1_error) } /* "imgui/core.pyx":6406 * return cimgui.IsPopupOpen(_bytes(label), flags) * * def end_popup(): # <<<<<<<<<<<<<< * """End a popup window. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_popup", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6421 * * * def close_current_popup(): # <<<<<<<<<<<<<< * """Close the current popup window begin-ed directly above this call. * Clicking on a :func:`menu_item()` or :func:`selectable()` automatically */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_177close_current_popup(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_176close_current_popup[] = "close_current_popup()\nClose the current popup window begin-ed directly above this call.\n Clicking on a :func:`menu_item()` or :func:`selectable()` automatically\n close the current popup.\n\n For practical example how to use this function, please see documentation\n of :func:`open_popup`.\n\n .. wraps::\n void CloseCurrentPopup()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_177close_current_popup = {"close_current_popup", (PyCFunction)__pyx_pw_5imgui_4core_177close_current_popup, METH_NOARGS, __pyx_doc_5imgui_4core_176close_current_popup}; static PyObject *__pyx_pw_5imgui_4core_177close_current_popup(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("close_current_popup (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_176close_current_popup(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_176close_current_popup(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("close_current_popup", 0); /* "imgui/core.pyx":6432 * void CloseCurrentPopup() * """ * cimgui.CloseCurrentPopup() # <<<<<<<<<<<<<< * * */ try { ImGui::CloseCurrentPopup(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6432, __pyx_L1_error) } /* "imgui/core.pyx":6421 * * * def close_current_popup(): # <<<<<<<<<<<<<< * """Close the current popup window begin-ed directly above this call. * Clicking on a :func:`menu_item()` or :func:`selectable()` automatically */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.close_current_popup", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6450 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_BeginEndTable_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_14_BeginEndTable_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6450, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6450, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6450, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndTable.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self), __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_BeginEndTable___cinit__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":6451 * * def __cinit__(self, bool opened): * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":6450 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6453 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndTable_2__enter__[] = "_BeginEndTable.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":6454 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":6453 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6456 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndTable() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndTable_4__exit__[] = "_BeginEndTable.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 6456, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 6456, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 6456, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6456, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndTable.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":6457 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndTable() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":6458 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndTable() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndTable(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6458, __pyx_L1_error) } /* "imgui/core.pyx":6457 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndTable() * */ } /* "imgui/core.pyx":6456 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndTable() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndTable.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6460 * cimgui.EndTable() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_BeginEndTable_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_14_BeginEndTable_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_BeginEndTable_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":6462 * def __bool__(self): * """For legacy support, returns ``opened``.""" * return self.opened # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->opened; goto __pyx_L0; /* "imgui/core.pyx":6460 * cimgui.EndTable() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6464 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":6465 * * def __repr__(self): * return "{}(opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":6466 * def __repr__(self): * return "{}(opened={})".format( * self.__class__.__name__, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6465, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6465, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6464 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndTable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6469 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":6470 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":6471 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.opened is other.opened # <<<<<<<<<<<<<< * return self.opened is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6470 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ } /* "imgui/core.pyx":6472 * if other.__class__ is self.__class__: * return self.opened is other.opened * return self.opened is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6469 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndTable.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6448 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTable.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndTable_12__reduce_cython__[] = "_BeginEndTable.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__86, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTable.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndTable_14__setstate_cython__[] = "_BeginEndTable.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndTable_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndTable_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndTable *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndTable_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__87, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTable.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6475 * * * def begin_table( # <<<<<<<<<<<<<< * str label, * int column, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_179begin_table(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_178begin_table[] = "begin_table(str label, int column, ImGuiTableFlags flags=0, float outer_size_width=0.0, float outer_size_height=0.0, float inner_width=0.0)\n\n\n Returns:\n _BeginEndPopup: Use ``opened`` bool attribute to tell if the table is opened.\n Only call :func:`end_table` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_table` if necessary when the block ends.\n\n .. wraps::\n bool BeginTable(\n const char* str_id,\n int column,\n ImGuiTableFlags flags = 0,\n const ImVec2& outer_size = ImVec2(0.0f, 0.0f),\n float inner_width = 0.0f\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_179begin_table = {"begin_table", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_179begin_table, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_178begin_table}; static PyObject *__pyx_pw_5imgui_4core_179begin_table(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_column; ImGuiTableFlags __pyx_v_flags; float __pyx_v_outer_size_width; float __pyx_v_outer_size_height; float __pyx_v_inner_width; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_table (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_column,&__pyx_n_s_flags,&__pyx_n_s_outer_size_width,&__pyx_n_s_outer_size_height,&__pyx_n_s_inner_width,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_column)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("begin_table", 0, 2, 6, 1); __PYX_ERR(0, 6475, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_outer_size_width); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_outer_size_height); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inner_width); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_table") < 0)) __PYX_ERR(0, 6475, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_column = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_column == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6477, __pyx_L3_error) if (values[2]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiTableFlags(values[2]); if (unlikely((__pyx_v_flags == ((ImGuiTableFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6478, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiTableFlags)0); } if (values[3]) { __pyx_v_outer_size_width = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_outer_size_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6479, __pyx_L3_error) } else { __pyx_v_outer_size_width = ((float)0.0); } if (values[4]) { __pyx_v_outer_size_height = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_outer_size_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6480, __pyx_L3_error) } else { __pyx_v_outer_size_height = ((float)0.0); } if (values[5]) { __pyx_v_inner_width = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_inner_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6481, __pyx_L3_error) } else { __pyx_v_inner_width = ((float)0.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_table", 0, 2, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6475, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_table", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6476, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_178begin_table(__pyx_self, __pyx_v_label, __pyx_v_column, __pyx_v_flags, __pyx_v_outer_size_width, __pyx_v_outer_size_height, __pyx_v_inner_width); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_178begin_table(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_column, ImGuiTableFlags __pyx_v_flags, float __pyx_v_outer_size_width, float __pyx_v_outer_size_height, float __pyx_v_inner_width) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImVec2 __pyx_t_3; bool __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_table", 0); /* "imgui/core.pyx":6499 * ) * """ * return _BeginEndTable.__new__( # <<<<<<<<<<<<<< * _BeginEndTable, * cimgui.BeginTable( */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":6502 * _BeginEndTable, * cimgui.BeginTable( * _bytes(label), # <<<<<<<<<<<<<< * column, * flags, */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6502, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6502, __pyx_L1_error) /* "imgui/core.pyx":6505 * column, * flags, * _cast_args_ImVec2(outer_size_width, outer_size_height), # <<<<<<<<<<<<<< * inner_width * ) */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_outer_size_width, __pyx_v_outer_size_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6505, __pyx_L1_error) /* "imgui/core.pyx":6501 * return _BeginEndTable.__new__( * _BeginEndTable, * cimgui.BeginTable( # <<<<<<<<<<<<<< * _bytes(label), * column, */ try { __pyx_t_4 = ImGui::BeginTable(__pyx_t_2, __pyx_v_column, __pyx_v_flags, __pyx_t_3, __pyx_v_inner_width); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6501, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":6499 * ) * """ * return _BeginEndTable.__new__( # <<<<<<<<<<<<<< * _BeginEndTable, * cimgui.BeginTable( */ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndTable(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndTable), __pyx_t_5, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6499, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6475 * * * def begin_table( # <<<<<<<<<<<<<< * str label, * int column, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.begin_table", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6510 * ) * * def end_table(): # <<<<<<<<<<<<<< * """ * End a previously opened table. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_181end_table(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_180end_table[] = "end_table()\n\n End a previously opened table.\n Only call this function if ``begin_table().opened`` is True.\n\n .. wraps::\n void EndTable()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_181end_table = {"end_table", (PyCFunction)__pyx_pw_5imgui_4core_181end_table, METH_NOARGS, __pyx_doc_5imgui_4core_180end_table}; static PyObject *__pyx_pw_5imgui_4core_181end_table(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_table (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_180end_table(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_180end_table(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_table", 0); /* "imgui/core.pyx":6518 * void EndTable() * """ * cimgui.EndTable() # <<<<<<<<<<<<<< * * def table_next_row( */ try { ImGui::EndTable(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6518, __pyx_L1_error) } /* "imgui/core.pyx":6510 * ) * * def end_table(): # <<<<<<<<<<<<<< * """ * End a previously opened table. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_table", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6520 * cimgui.EndTable() * * def table_next_row( # <<<<<<<<<<<<<< * cimgui.ImGuiTableRowFlags row_flags = 0, * float min_row_height = 0.0 */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_183table_next_row(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_182table_next_row[] = "table_next_row(ImGuiTableRowFlags row_flags=0, float min_row_height=0.0)\n\n\n .. wraps::\n void TableNextRow(\n ImGuiTableRowFlags row_flags = 0,\n float min_row_height = 0.0f\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_183table_next_row = {"table_next_row", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_183table_next_row, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_182table_next_row}; static PyObject *__pyx_pw_5imgui_4core_183table_next_row(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiTableRowFlags __pyx_v_row_flags; float __pyx_v_min_row_height; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_next_row (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_row_flags,&__pyx_n_s_min_row_height,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_row_flags); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_row_height); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "table_next_row") < 0)) __PYX_ERR(0, 6520, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_row_flags = __Pyx_PyInt_As_ImGuiTableRowFlags(values[0]); if (unlikely((__pyx_v_row_flags == ((ImGuiTableRowFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6521, __pyx_L3_error) } else { __pyx_v_row_flags = ((ImGuiTableRowFlags)0); } if (values[1]) { __pyx_v_min_row_height = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_min_row_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6522, __pyx_L3_error) } else { __pyx_v_min_row_height = ((float)0.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("table_next_row", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6520, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.table_next_row", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_182table_next_row(__pyx_self, __pyx_v_row_flags, __pyx_v_min_row_height); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_182table_next_row(CYTHON_UNUSED PyObject *__pyx_self, ImGuiTableRowFlags __pyx_v_row_flags, float __pyx_v_min_row_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_next_row", 0); /* "imgui/core.pyx":6532 * ) * """ * cimgui.TableNextRow(row_flags, min_row_height) # <<<<<<<<<<<<<< * * def table_next_column(): */ try { ImGui::TableNextRow(__pyx_v_row_flags, __pyx_v_min_row_height); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6532, __pyx_L1_error) } /* "imgui/core.pyx":6520 * cimgui.EndTable() * * def table_next_row( # <<<<<<<<<<<<<< * cimgui.ImGuiTableRowFlags row_flags = 0, * float min_row_height = 0.0 */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.table_next_row", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6534 * cimgui.TableNextRow(row_flags, min_row_height) * * def table_next_column(): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_185table_next_column(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_184table_next_column[] = "table_next_column()\n\n\n .. wraps::\n bool TableNextColumn()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_185table_next_column = {"table_next_column", (PyCFunction)__pyx_pw_5imgui_4core_185table_next_column, METH_NOARGS, __pyx_doc_5imgui_4core_184table_next_column}; static PyObject *__pyx_pw_5imgui_4core_185table_next_column(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_next_column (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_184table_next_column(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_184table_next_column(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_next_column", 0); /* "imgui/core.pyx":6540 * bool TableNextColumn() * """ * return cimgui.TableNextColumn() # <<<<<<<<<<<<<< * * def table_set_column_index(int column_n): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::TableNextColumn(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6540, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6534 * cimgui.TableNextRow(row_flags, min_row_height) * * def table_next_column(): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.table_next_column", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6542 * return cimgui.TableNextColumn() * * def table_set_column_index(int column_n): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_187table_set_column_index(PyObject *__pyx_self, PyObject *__pyx_arg_column_n); /*proto*/ static char __pyx_doc_5imgui_4core_186table_set_column_index[] = "table_set_column_index(int column_n)\n\n\n .. wraps::\n bool TableSetColumnIndex(int column_n)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_187table_set_column_index = {"table_set_column_index", (PyCFunction)__pyx_pw_5imgui_4core_187table_set_column_index, METH_O, __pyx_doc_5imgui_4core_186table_set_column_index}; static PyObject *__pyx_pw_5imgui_4core_187table_set_column_index(PyObject *__pyx_self, PyObject *__pyx_arg_column_n) { int __pyx_v_column_n; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_set_column_index (wrapper)", 0); assert(__pyx_arg_column_n); { __pyx_v_column_n = __Pyx_PyInt_As_int(__pyx_arg_column_n); if (unlikely((__pyx_v_column_n == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6542, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.table_set_column_index", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_186table_set_column_index(__pyx_self, ((int)__pyx_v_column_n)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_186table_set_column_index(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_n) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_set_column_index", 0); /* "imgui/core.pyx":6548 * bool TableSetColumnIndex(int column_n) * """ * return cimgui.TableSetColumnIndex(column_n) # <<<<<<<<<<<<<< * * def table_setup_column( */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::TableSetColumnIndex(__pyx_v_column_n); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6548, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6542 * return cimgui.TableNextColumn() * * def table_set_column_index(int column_n): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.table_set_column_index", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6550 * return cimgui.TableSetColumnIndex(column_n) * * def table_setup_column( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiTableColumnFlags flags = 0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_189table_setup_column(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_188table_setup_column[] = "table_setup_column(str label, ImGuiTableColumnFlags flags=0, float init_width_or_weight=0.0, ImU32 user_id=0)\n\n\n .. wraps::\n void TableSetupColumn(\n const char* label,\n ImGuiTableColumnFlags flags = 0,\n float init_width_or_weight = 0.0f,\n ImU32 user_id = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_189table_setup_column = {"table_setup_column", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_189table_setup_column, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_188table_setup_column}; static PyObject *__pyx_pw_5imgui_4core_189table_setup_column(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiTableColumnFlags __pyx_v_flags; float __pyx_v_init_width_or_weight; ImU32 __pyx_v_user_id; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_setup_column (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_flags,&__pyx_n_s_init_width_or_weight,&__pyx_n_s_user_id,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_init_width_or_weight); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_user_id); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "table_setup_column") < 0)) __PYX_ERR(0, 6550, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiTableColumnFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImGuiTableColumnFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6552, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiTableColumnFlags)0); } if (values[2]) { __pyx_v_init_width_or_weight = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_init_width_or_weight == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6553, __pyx_L3_error) } else { __pyx_v_init_width_or_weight = ((float)0.0); } if (values[3]) { __pyx_v_user_id = __Pyx_PyInt_As_ImU32(values[3]); if (unlikely((__pyx_v_user_id == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6554, __pyx_L3_error) } else { __pyx_v_user_id = ((ImU32)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("table_setup_column", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6550, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.table_setup_column", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6551, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_188table_setup_column(__pyx_self, __pyx_v_label, __pyx_v_flags, __pyx_v_init_width_or_weight, __pyx_v_user_id); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_188table_setup_column(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiTableColumnFlags __pyx_v_flags, float __pyx_v_init_width_or_weight, ImU32 __pyx_v_user_id) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_setup_column", 0); /* "imgui/core.pyx":6567 * """ * cimgui.TableSetupColumn( * _bytes(label), # <<<<<<<<<<<<<< * flags, * init_width_or_weight, */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6567, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6567, __pyx_L1_error) /* "imgui/core.pyx":6566 * ) * """ * cimgui.TableSetupColumn( # <<<<<<<<<<<<<< * _bytes(label), * flags, */ try { ImGui::TableSetupColumn(__pyx_t_2, __pyx_v_flags, __pyx_v_init_width_or_weight, __pyx_v_user_id); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6566, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":6550 * return cimgui.TableSetColumnIndex(column_n) * * def table_setup_column( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiTableColumnFlags flags = 0, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.table_setup_column", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6572 * user_id) * * def table_setup_scroll_freeze(int cols, int rows): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_191table_setup_scroll_freeze(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_190table_setup_scroll_freeze[] = "table_setup_scroll_freeze(int cols, int rows)\n\n\n .. wraps::\n void TableSetupScrollFreeze(int cols, int rows)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_191table_setup_scroll_freeze = {"table_setup_scroll_freeze", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_191table_setup_scroll_freeze, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_190table_setup_scroll_freeze}; static PyObject *__pyx_pw_5imgui_4core_191table_setup_scroll_freeze(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_cols; int __pyx_v_rows; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_setup_scroll_freeze (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cols,&__pyx_n_s_rows,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cols)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rows)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("table_setup_scroll_freeze", 1, 2, 2, 1); __PYX_ERR(0, 6572, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "table_setup_scroll_freeze") < 0)) __PYX_ERR(0, 6572, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_cols = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_cols == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6572, __pyx_L3_error) __pyx_v_rows = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_rows == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6572, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("table_setup_scroll_freeze", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6572, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.table_setup_scroll_freeze", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_190table_setup_scroll_freeze(__pyx_self, __pyx_v_cols, __pyx_v_rows); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_190table_setup_scroll_freeze(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_cols, int __pyx_v_rows) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_setup_scroll_freeze", 0); /* "imgui/core.pyx":6578 * void TableSetupScrollFreeze(int cols, int rows) * """ * cimgui.TableSetupScrollFreeze(cols, rows) # <<<<<<<<<<<<<< * * def table_headers_row(): */ try { ImGui::TableSetupScrollFreeze(__pyx_v_cols, __pyx_v_rows); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6578, __pyx_L1_error) } /* "imgui/core.pyx":6572 * user_id) * * def table_setup_scroll_freeze(int cols, int rows): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.table_setup_scroll_freeze", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6580 * cimgui.TableSetupScrollFreeze(cols, rows) * * def table_headers_row(): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_193table_headers_row(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_192table_headers_row[] = "table_headers_row()\n\n\n .. wraps::\n void TableHeadersRow()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_193table_headers_row = {"table_headers_row", (PyCFunction)__pyx_pw_5imgui_4core_193table_headers_row, METH_NOARGS, __pyx_doc_5imgui_4core_192table_headers_row}; static PyObject *__pyx_pw_5imgui_4core_193table_headers_row(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_headers_row (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_192table_headers_row(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_192table_headers_row(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_headers_row", 0); /* "imgui/core.pyx":6586 * void TableHeadersRow() * """ * cimgui.TableHeadersRow() # <<<<<<<<<<<<<< * * def table_header(str label): */ try { ImGui::TableHeadersRow(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6586, __pyx_L1_error) } /* "imgui/core.pyx":6580 * cimgui.TableSetupScrollFreeze(cols, rows) * * def table_headers_row(): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.table_headers_row", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6588 * cimgui.TableHeadersRow() * * def table_header(str label): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_195table_header(PyObject *__pyx_self, PyObject *__pyx_v_label); /*proto*/ static char __pyx_doc_5imgui_4core_194table_header[] = "table_header(str label)\n\n\n .. wraps::\n void TableHeader(const char* label)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_195table_header = {"table_header", (PyCFunction)__pyx_pw_5imgui_4core_195table_header, METH_O, __pyx_doc_5imgui_4core_194table_header}; static PyObject *__pyx_pw_5imgui_4core_195table_header(PyObject *__pyx_self, PyObject *__pyx_v_label) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_header (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6588, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_194table_header(__pyx_self, ((PyObject*)__pyx_v_label)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_194table_header(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_header", 0); /* "imgui/core.pyx":6594 * void TableHeader(const char* label) * """ * cimgui.TableHeader(_bytes(label)) # <<<<<<<<<<<<<< * * def table_get_sort_specs(): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6594, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6594, __pyx_L1_error) try { ImGui::TableHeader(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6594, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":6588 * cimgui.TableHeadersRow() * * def table_header(str label): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.table_header", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6596 * cimgui.TableHeader(_bytes(label)) * * def table_get_sort_specs(): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_197table_get_sort_specs(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_196table_get_sort_specs[] = "table_get_sort_specs()\n\n\n .. wraps::\n ImGuiTableSortSpecs* TableGetSortSpecs()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_197table_get_sort_specs = {"table_get_sort_specs", (PyCFunction)__pyx_pw_5imgui_4core_197table_get_sort_specs, METH_NOARGS, __pyx_doc_5imgui_4core_196table_get_sort_specs}; static PyObject *__pyx_pw_5imgui_4core_197table_get_sort_specs(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_get_sort_specs (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_196table_get_sort_specs(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_196table_get_sort_specs(CYTHON_UNUSED PyObject *__pyx_self) { ImGuiTableSortSpecs *__pyx_v_imgui_sort_spec; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImGuiTableSortSpecs *__pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_get_sort_specs", 0); /* "imgui/core.pyx":6602 * ImGuiTableSortSpecs* TableGetSortSpecs() * """ * cdef cimgui.ImGuiTableSortSpecs* imgui_sort_spec = cimgui.TableGetSortSpecs() # <<<<<<<<<<<<<< * if imgui_sort_spec == NULL: * return None */ try { __pyx_t_1 = ImGui::TableGetSortSpecs(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6602, __pyx_L1_error) } __pyx_v_imgui_sort_spec = __pyx_t_1; /* "imgui/core.pyx":6603 * """ * cdef cimgui.ImGuiTableSortSpecs* imgui_sort_spec = cimgui.TableGetSortSpecs() * if imgui_sort_spec == NULL: # <<<<<<<<<<<<<< * return None * else: */ __pyx_t_2 = ((__pyx_v_imgui_sort_spec == NULL) != 0); if (__pyx_t_2) { /* "imgui/core.pyx":6604 * cdef cimgui.ImGuiTableSortSpecs* imgui_sort_spec = cimgui.TableGetSortSpecs() * if imgui_sort_spec == NULL: * return None # <<<<<<<<<<<<<< * else: * return _ImGuiTableSortSpecs.from_ptr(imgui_sort_spec) */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":6603 * """ * cdef cimgui.ImGuiTableSortSpecs* imgui_sort_spec = cimgui.TableGetSortSpecs() * if imgui_sort_spec == NULL: # <<<<<<<<<<<<<< * return None * else: */ } /* "imgui/core.pyx":6606 * return None * else: * return _ImGuiTableSortSpecs.from_ptr(imgui_sort_spec) # <<<<<<<<<<<<<< * * def table_get_column_count(): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __pyx_f_5imgui_4core_20_ImGuiTableSortSpecs_from_ptr(__pyx_v_imgui_sort_spec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; } /* "imgui/core.pyx":6596 * cimgui.TableHeader(_bytes(label)) * * def table_get_sort_specs(): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.table_get_sort_specs", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6608 * return _ImGuiTableSortSpecs.from_ptr(imgui_sort_spec) * * def table_get_column_count(): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_199table_get_column_count(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_198table_get_column_count[] = "table_get_column_count()\n\n\n .. wraps::\n int TableGetColumnCount()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_199table_get_column_count = {"table_get_column_count", (PyCFunction)__pyx_pw_5imgui_4core_199table_get_column_count, METH_NOARGS, __pyx_doc_5imgui_4core_198table_get_column_count}; static PyObject *__pyx_pw_5imgui_4core_199table_get_column_count(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_get_column_count (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_198table_get_column_count(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_198table_get_column_count(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_get_column_count", 0); /* "imgui/core.pyx":6614 * int TableGetColumnCount() * """ * return cimgui.TableGetColumnCount() # <<<<<<<<<<<<<< * * def table_get_column_index(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::TableGetColumnCount(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6614, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6608 * return _ImGuiTableSortSpecs.from_ptr(imgui_sort_spec) * * def table_get_column_count(): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.table_get_column_count", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6616 * return cimgui.TableGetColumnCount() * * def table_get_column_index(): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_201table_get_column_index(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_200table_get_column_index[] = "table_get_column_index()\n\n\n .. wraps::\n int TableGetColumnIndex()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_201table_get_column_index = {"table_get_column_index", (PyCFunction)__pyx_pw_5imgui_4core_201table_get_column_index, METH_NOARGS, __pyx_doc_5imgui_4core_200table_get_column_index}; static PyObject *__pyx_pw_5imgui_4core_201table_get_column_index(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_get_column_index (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_200table_get_column_index(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_200table_get_column_index(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_get_column_index", 0); /* "imgui/core.pyx":6622 * int TableGetColumnIndex() * """ * return cimgui.TableGetColumnIndex() # <<<<<<<<<<<<<< * * def table_get_row_index(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::TableGetColumnIndex(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6622, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6616 * return cimgui.TableGetColumnCount() * * def table_get_column_index(): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.table_get_column_index", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6624 * return cimgui.TableGetColumnIndex() * * def table_get_row_index(): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_203table_get_row_index(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_202table_get_row_index[] = "table_get_row_index()\n\n\n .. wraps::\n int TableGetRowIndex()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_203table_get_row_index = {"table_get_row_index", (PyCFunction)__pyx_pw_5imgui_4core_203table_get_row_index, METH_NOARGS, __pyx_doc_5imgui_4core_202table_get_row_index}; static PyObject *__pyx_pw_5imgui_4core_203table_get_row_index(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_get_row_index (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_202table_get_row_index(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_202table_get_row_index(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_get_row_index", 0); /* "imgui/core.pyx":6630 * int TableGetRowIndex() * """ * return cimgui.TableGetRowIndex() # <<<<<<<<<<<<<< * * def table_get_column_name(int column_n = -1): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::TableGetRowIndex(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6630, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6624 * return cimgui.TableGetColumnIndex() * * def table_get_row_index(): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.table_get_row_index", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6632 * return cimgui.TableGetRowIndex() * * def table_get_column_name(int column_n = -1): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_205table_get_column_name(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_204table_get_column_name[] = "table_get_column_name(int column_n=-1)\n\n\n .. wraps::\n const char* TableGetColumnName(\n int column_n = -1\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_205table_get_column_name = {"table_get_column_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_205table_get_column_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_204table_get_column_name}; static PyObject *__pyx_pw_5imgui_4core_205table_get_column_name(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_column_n; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_get_column_name (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_column_n,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_column_n); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "table_get_column_name") < 0)) __PYX_ERR(0, 6632, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_column_n = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_column_n == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6632, __pyx_L3_error) } else { __pyx_v_column_n = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("table_get_column_name", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6632, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.table_get_column_name", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_204table_get_column_name(__pyx_self, __pyx_v_column_n); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_204table_get_column_name(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_n) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_get_column_name", 0); /* "imgui/core.pyx":6640 * ) * """ * return _from_bytes(cimgui.TableGetColumnName(column_n)) # <<<<<<<<<<<<<< * * def table_get_column_flags(int column_n = -1): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::TableGetColumnName(__pyx_v_column_n); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6640, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":6632 * return cimgui.TableGetRowIndex() * * def table_get_column_name(int column_n = -1): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.table_get_column_name", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6642 * return _from_bytes(cimgui.TableGetColumnName(column_n)) * * def table_get_column_flags(int column_n = -1): # <<<<<<<<<<<<<< * """ * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_207table_get_column_flags(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_206table_get_column_flags[] = "table_get_column_flags(int column_n=-1)\n\n\n .. wraps::\n ImGuiTableColumnFlags TableGetColumnFlags(\n int column_n = -1\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_207table_get_column_flags = {"table_get_column_flags", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_207table_get_column_flags, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_206table_get_column_flags}; static PyObject *__pyx_pw_5imgui_4core_207table_get_column_flags(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_column_n; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_get_column_flags (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_column_n,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_column_n); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "table_get_column_flags") < 0)) __PYX_ERR(0, 6642, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_column_n = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_column_n == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6642, __pyx_L3_error) } else { __pyx_v_column_n = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("table_get_column_flags", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6642, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.table_get_column_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_206table_get_column_flags(__pyx_self, __pyx_v_column_n); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_206table_get_column_flags(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_n) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImGuiTableColumnFlags __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_get_column_flags", 0); /* "imgui/core.pyx":6650 * ) * """ * return cimgui.TableGetColumnFlags(column_n) # <<<<<<<<<<<<<< * * def table_set_background_color( */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::TableGetColumnFlags(__pyx_v_column_n); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6650, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_ImGuiTableColumnFlags(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":6642 * return _from_bytes(cimgui.TableGetColumnName(column_n)) * * def table_get_column_flags(int column_n = -1): # <<<<<<<<<<<<<< * """ * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.table_get_column_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6652 * return cimgui.TableGetColumnFlags(column_n) * * def table_set_background_color( # <<<<<<<<<<<<<< * cimgui.ImGuiTableBgTarget target, * cimgui.ImU32 color, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_209table_set_background_color(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_208table_set_background_color[] = "table_set_background_color(ImGuiTableBgTarget target, ImU32 color, int column_n=-1)\n\n\n .. wraps::\n void TableSetBgColor(\n ImGuiTableBgTarget target,\n ImU32 color,\n int column_n = -1\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_209table_set_background_color = {"table_set_background_color", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_209table_set_background_color, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_208table_set_background_color}; static PyObject *__pyx_pw_5imgui_4core_209table_set_background_color(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiTableBgTarget __pyx_v_target; ImU32 __pyx_v_color; int __pyx_v_column_n; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("table_set_background_color (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_target,&__pyx_n_s_color,&__pyx_n_s_column_n,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_color)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("table_set_background_color", 0, 2, 3, 1); __PYX_ERR(0, 6652, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_column_n); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "table_set_background_color") < 0)) __PYX_ERR(0, 6652, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_target = __Pyx_PyInt_As_ImGuiTableBgTarget(values[0]); if (unlikely((__pyx_v_target == ((ImGuiTableBgTarget)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6653, __pyx_L3_error) __pyx_v_color = __Pyx_PyInt_As_ImU32(values[1]); if (unlikely((__pyx_v_color == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6654, __pyx_L3_error) if (values[2]) { __pyx_v_column_n = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_column_n == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6655, __pyx_L3_error) } else { __pyx_v_column_n = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("table_set_background_color", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6652, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.table_set_background_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_208table_set_background_color(__pyx_self, __pyx_v_target, __pyx_v_color, __pyx_v_column_n); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_208table_set_background_color(CYTHON_UNUSED PyObject *__pyx_self, ImGuiTableBgTarget __pyx_v_target, ImU32 __pyx_v_color, int __pyx_v_column_n) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("table_set_background_color", 0); /* "imgui/core.pyx":6666 * ) * """ * cimgui.TableSetBgColor(target, color, column_n) # <<<<<<<<<<<<<< * * def text(str text): */ try { ImGui::TableSetBgColor(__pyx_v_target, __pyx_v_color, __pyx_v_column_n); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6666, __pyx_L1_error) } /* "imgui/core.pyx":6652 * return cimgui.TableGetColumnFlags(column_n) * * def table_set_background_color( # <<<<<<<<<<<<<< * cimgui.ImGuiTableBgTarget target, * cimgui.ImU32 color, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.table_set_background_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6668 * cimgui.TableSetBgColor(target, color, column_n) * * def text(str text): # <<<<<<<<<<<<<< * """Add text to current widget stack. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_211text(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/ static char __pyx_doc_5imgui_4core_210text[] = "text(str text)\nAdd text to current widget stack.\n\n .. visual-example::\n :title: simple text widget\n :height: 80\n :auto_layout:\n\n imgui.begin(\"Example: simple text\")\n imgui.text(\"Simple text\")\n imgui.end()\n\n Args:\n text (str): text to display.\n\n .. wraps::\n Text(const char* fmt, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_211text = {"text", (PyCFunction)__pyx_pw_5imgui_4core_211text, METH_O, __pyx_doc_5imgui_4core_210text}; static PyObject *__pyx_pw_5imgui_4core_211text(PyObject *__pyx_self, PyObject *__pyx_v_text) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("text (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 6668, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_210text(__pyx_self, ((PyObject*)__pyx_v_text)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_210text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("text", 0); /* "imgui/core.pyx":6687 * """ * # note: "%s" required for safety and to favor of Python string formating * cimgui.Text("%s", _bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6687, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6687, __pyx_L1_error) try { ImGui::Text(((char const *)"%s"), __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6687, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":6668 * cimgui.TableSetBgColor(target, color, column_n) * * def text(str text): # <<<<<<<<<<<<<< * """Add text to current widget stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.text", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6690 * * * def text_colored(str text, float r, float g, float b, float a=1.): # <<<<<<<<<<<<<< * """Add colored text to current widget stack. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_213text_colored(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_212text_colored[] = "text_colored(str text, float r, float g, float b, float a=1.)\nAdd colored text to current widget stack.\n\n It is a shortcut for:\n\n .. code-block:: python\n\n imgui.push_style_color(imgui.COLOR_TEXT, r, g, b, a)\n imgui.text(text)\n imgui.pop_style_color()\n\n\n .. visual-example::\n :title: colored text widget\n :height: 100\n :auto_layout:\n\n imgui.begin(\"Example: colored text\")\n imgui.text_colored(\"Colored text\", 1, 0, 0)\n imgui.end()\n\n Args:\n text (str): text to display.\n r (float): red color intensity.\n g (float): green color intensity.\n b (float): blue color instensity.\n a (float): alpha intensity.\n\n .. wraps::\n TextColored(const ImVec4& col, const char* fmt, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_213text_colored = {"text_colored", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_213text_colored, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_212text_colored}; static PyObject *__pyx_pw_5imgui_4core_213text_colored(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_text = 0; float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; float __pyx_v_a; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("text_colored (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_text,&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_a,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("text_colored", 0, 4, 5, 1); __PYX_ERR(0, 6690, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("text_colored", 0, 4, 5, 2); __PYX_ERR(0, 6690, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("text_colored", 0, 4, 5, 3); __PYX_ERR(0, 6690, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "text_colored") < 0)) __PYX_ERR(0, 6690, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_text = ((PyObject*)values[0]); __pyx_v_r = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6690, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6690, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6690, __pyx_L3_error) if (values[4]) { __pyx_v_a = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_a == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6690, __pyx_L3_error) } else { __pyx_v_a = ((float)1.); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("text_colored", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6690, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.text_colored", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 6690, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_212text_colored(__pyx_self, __pyx_v_text, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_212text_colored(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("text_colored", 0); /* "imgui/core.pyx":6722 * """ * # note: "%s" required for safety and to favor of Python string formating * cimgui.TextColored(_cast_args_ImVec4(r, g, b, a), "%s", _bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6722, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6722, __pyx_L1_error) try { ImGui::TextColored(__pyx_f_5imgui_4core__cast_args_ImVec4(__pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a), ((char const *)"%s"), __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6722, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":6690 * * * def text_colored(str text, float r, float g, float b, float a=1.): # <<<<<<<<<<<<<< * """Add colored text to current widget stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.text_colored", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6725 * * * def text_disabled(str text): # <<<<<<<<<<<<<< * """Add disabled(grayed out) text to current widget stack. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_215text_disabled(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/ static char __pyx_doc_5imgui_4core_214text_disabled[] = "text_disabled(str text)\nAdd disabled(grayed out) text to current widget stack.\n\n .. visual-example::\n :title: disabled text widget\n :height: 80\n :auto_layout:\n\n imgui.begin(\"Example: disabled text\")\n imgui.text_disabled(\"Disabled text\")\n imgui.end()\n\n Args:\n text (str): text to display.\n\n .. wraps::\n TextDisabled(const char*, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_215text_disabled = {"text_disabled", (PyCFunction)__pyx_pw_5imgui_4core_215text_disabled, METH_O, __pyx_doc_5imgui_4core_214text_disabled}; static PyObject *__pyx_pw_5imgui_4core_215text_disabled(PyObject *__pyx_self, PyObject *__pyx_v_text) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("text_disabled (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 6725, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_214text_disabled(__pyx_self, ((PyObject*)__pyx_v_text)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_214text_disabled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("text_disabled", 0); /* "imgui/core.pyx":6744 * """ * # note: "%s" required for safety and to favor of Python string formating * cimgui.TextDisabled("%s", _bytes(text)) # <<<<<<<<<<<<<< * * def text_wrapped(str text): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6744, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6744, __pyx_L1_error) try { ImGui::TextDisabled(((char const *)"%s"), __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6744, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":6725 * * * def text_disabled(str text): # <<<<<<<<<<<<<< * """Add disabled(grayed out) text to current widget stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.text_disabled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6746 * cimgui.TextDisabled("%s", _bytes(text)) * * def text_wrapped(str text): # <<<<<<<<<<<<<< * """Add wrappable text to current widget stack. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_217text_wrapped(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/ static char __pyx_doc_5imgui_4core_216text_wrapped[] = "text_wrapped(str text)\nAdd wrappable text to current widget stack.\n\n .. visual-example::\n :title: Wrappable Text\n :height: 80\n :width: 40\n :auto_layout:\n\n imgui.begin(\"Text wrap\")\n # Resize the window to see text wrapping\n imgui.text_wrapped(\"This text will wrap around.\")\n imgui.end()\n\n Args:\n text (str): text to display\n\n .. wraps::\n TextWrapped(const char* fmt, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_217text_wrapped = {"text_wrapped", (PyCFunction)__pyx_pw_5imgui_4core_217text_wrapped, METH_O, __pyx_doc_5imgui_4core_216text_wrapped}; static PyObject *__pyx_pw_5imgui_4core_217text_wrapped(PyObject *__pyx_self, PyObject *__pyx_v_text) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("text_wrapped (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 6746, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_216text_wrapped(__pyx_self, ((PyObject*)__pyx_v_text)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_216text_wrapped(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("text_wrapped", 0); /* "imgui/core.pyx":6767 * """ * # note: "%s" required for safety and to favor of Python string formating * cimgui.TextWrapped("%s", _bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6767, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6767, __pyx_L1_error) try { ImGui::TextWrapped(((char const *)"%s"), __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6767, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":6746 * cimgui.TextDisabled("%s", _bytes(text)) * * def text_wrapped(str text): # <<<<<<<<<<<<<< * """Add wrappable text to current widget stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.text_wrapped", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6770 * * * def label_text(str label, str text): # <<<<<<<<<<<<<< * """Display text+label aligned the same way as value+label widgets. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_219label_text(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_218label_text[] = "label_text(str label, str text)\nDisplay text+label aligned the same way as value+label widgets.\n\n .. visual-example::\n :auto_layout:\n :height: 80\n :width: 300\n\n imgui.begin(\"Example: text with label\")\n imgui.label_text(\"my label\", \"my text\")\n imgui.end()\n\n Args:\n label (str): label to display.\n text (str): text to display.\n\n .. wraps::\n void LabelText(const char* label, const char* fmt, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_219label_text = {"label_text", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_219label_text, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_218label_text}; static PyObject *__pyx_pw_5imgui_4core_219label_text(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_text = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("label_text (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_text,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("label_text", 1, 2, 2, 1); __PYX_ERR(0, 6770, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "label_text") < 0)) __PYX_ERR(0, 6770, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_text = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("label_text", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6770, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.label_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6770, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 6770, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_218label_text(__pyx_self, __pyx_v_label, __pyx_v_text); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_218label_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char *__pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("label_text", 0); /* "imgui/core.pyx":6790 * """ * # note: "%s" required for safety and to favor of Python string formating * cimgui.LabelText(_bytes(label), "%s", _bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6790, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6790, __pyx_L1_error) __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6790, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsWritableString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 6790, __pyx_L1_error) try { ImGui::LabelText(__pyx_t_2, ((char const *)"%s"), __pyx_t_4); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6790, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":6770 * * * def label_text(str label, str text): # <<<<<<<<<<<<<< * """Display text+label aligned the same way as value+label widgets. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.label_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6793 * * * def text_unformatted(str text): # <<<<<<<<<<<<<< * """Big area text display - the size is defined by it's container. * Recommended for long chunks of text. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_221text_unformatted(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/ static char __pyx_doc_5imgui_4core_220text_unformatted[] = "text_unformatted(str text)\nBig area text display - the size is defined by it's container.\n Recommended for long chunks of text.\n\n .. visual-example::\n :title: simple text widget\n :height: 100\n :width: 200\n :auto_layout:\n\n imgui.begin(\"Example: unformatted text\")\n imgui.text_unformatted(\"Really ... long ... text\")\n imgui.end()\n\n Args:\n text (str): text to display.\n\n .. wraps::\n TextUnformatted(const char* text, const char* text_end = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_221text_unformatted = {"text_unformatted", (PyCFunction)__pyx_pw_5imgui_4core_221text_unformatted, METH_O, __pyx_doc_5imgui_4core_220text_unformatted}; static PyObject *__pyx_pw_5imgui_4core_221text_unformatted(PyObject *__pyx_self, PyObject *__pyx_v_text) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("text_unformatted (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 6793, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_220text_unformatted(__pyx_self, ((PyObject*)__pyx_v_text)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_220text_unformatted(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("text_unformatted", 0); /* "imgui/core.pyx":6813 * TextUnformatted(const char* text, const char* text_end = NULL) * """ * cimgui.TextUnformatted(_bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6813, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6813, __pyx_L1_error) try { ImGui::TextUnformatted(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6813, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":6793 * * * def text_unformatted(str text): # <<<<<<<<<<<<<< * """Big area text display - the size is defined by it's container. * Recommended for long chunks of text. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.text_unformatted", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6816 * * * def bullet(): # <<<<<<<<<<<<<< * """Display a small circle and keep the cursor on the same line. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_223bullet(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_222bullet[] = "bullet()\nDisplay a small circle and keep the cursor on the same line.\n\n .. advance cursor x position by ``get_tree_node_to_label_spacing()``,\n same distance that TreeNode() uses\n\n .. visual-example::\n :auto_layout:\n :height: 80\n\n imgui.begin(\"Example: bullets\")\n\n for i in range(10):\n imgui.bullet()\n\n imgui.end()\n\n .. wraps::\n void Bullet()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_223bullet = {"bullet", (PyCFunction)__pyx_pw_5imgui_4core_223bullet, METH_NOARGS, __pyx_doc_5imgui_4core_222bullet}; static PyObject *__pyx_pw_5imgui_4core_223bullet(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("bullet (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_222bullet(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_222bullet(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("bullet", 0); /* "imgui/core.pyx":6836 * void Bullet() * """ * cimgui.Bullet() # <<<<<<<<<<<<<< * * */ try { ImGui::Bullet(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6836, __pyx_L1_error) } /* "imgui/core.pyx":6816 * * * def bullet(): # <<<<<<<<<<<<<< * """Display a small circle and keep the cursor on the same line. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.bullet", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6839 * * * def bullet_text(str text): # <<<<<<<<<<<<<< * """Display bullet and text. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_225bullet_text(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/ static char __pyx_doc_5imgui_4core_224bullet_text[] = "bullet_text(str text)\nDisplay bullet and text.\n\n This is shortcut for:\n\n .. code-block:: python\n\n imgui.bullet()\n imgui.text(text)\n\n .. visual-example::\n :auto_layout:\n :height: 100\n\n imgui.begin(\"Example: bullet text\")\n imgui.bullet_text(\"Bullet 1\")\n imgui.bullet_text(\"Bullet 2\")\n imgui.bullet_text(\"Bullet 3\")\n imgui.end()\n\n Args:\n text (str): text to display.\n\n .. wraps::\n void BulletText(const char* fmt, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_225bullet_text = {"bullet_text", (PyCFunction)__pyx_pw_5imgui_4core_225bullet_text, METH_O, __pyx_doc_5imgui_4core_224bullet_text}; static PyObject *__pyx_pw_5imgui_4core_225bullet_text(PyObject *__pyx_self, PyObject *__pyx_v_text) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("bullet_text (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 6839, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_224bullet_text(__pyx_self, ((PyObject*)__pyx_v_text)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_224bullet_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("bullet_text", 0); /* "imgui/core.pyx":6866 * """ * # note: "%s" required for safety and to favor of Python string formating * cimgui.BulletText("%s", _bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6866, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6866, __pyx_L1_error) try { ImGui::BulletText(((char const *)"%s"), __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6866, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":6839 * * * def bullet_text(str text): # <<<<<<<<<<<<<< * """Display bullet and text. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.bullet_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6869 * * * def button(str label, width=0, height=0): # <<<<<<<<<<<<<< * """Display button. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_227button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_226button[] = "button(str label, width=0, height=0)\nDisplay button.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n\n imgui.begin(\"Example: button\")\n imgui.button(\"Button 1\")\n imgui.button(\"Button 2\")\n imgui.end()\n\n Args:\n label (str): button label.\n width (float): button width.\n height (float): button height.\n\n Returns:\n bool: True if clicked.\n\n .. wraps::\n bool Button(const char* label, const ImVec2& size = ImVec2(0,0))\n "; static PyMethodDef __pyx_mdef_5imgui_4core_227button = {"button", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_227button, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_226button}; static PyObject *__pyx_pw_5imgui_4core_227button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_width = 0; PyObject *__pyx_v_height = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("button (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,0}; PyObject* values[3] = {0,0,0}; values[1] = ((PyObject *)__pyx_int_0); values[2] = ((PyObject *)__pyx_int_0); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "button") < 0)) __PYX_ERR(0, 6869, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_width = values[1]; __pyx_v_height = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("button", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6869, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.button", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6869, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_226button(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_226button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_width, PyObject *__pyx_v_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; float __pyx_t_3; float __pyx_t_4; ImVec2 __pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("button", 0); /* "imgui/core.pyx":6892 * bool Button(const char* label, const ImVec2& size = ImVec2(0,0)) * """ * return cimgui.Button(_bytes(label), _cast_args_ImVec2(width, height)) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6892, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6892, __pyx_L1_error) __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_width); if (unlikely((__pyx_t_3 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6892, __pyx_L1_error) __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_v_height); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6892, __pyx_L1_error) __pyx_t_5 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_t_3, __pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6892, __pyx_L1_error) try { __pyx_t_6 = ImGui::Button(__pyx_t_2, __pyx_t_5); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6892, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6869 * * * def button(str label, width=0, height=0): # <<<<<<<<<<<<<< * """Display button. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.button", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6895 * * * def small_button(str label): # <<<<<<<<<<<<<< * """Display small button (with 0 frame padding). * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_229small_button(PyObject *__pyx_self, PyObject *__pyx_v_label); /*proto*/ static char __pyx_doc_5imgui_4core_228small_button[] = "small_button(str label)\nDisplay small button (with 0 frame padding).\n\n .. visual-example::\n :auto_layout:\n :height: 100\n\n imgui.begin(\"Example: button\")\n imgui.small_button(\"Button 1\")\n imgui.small_button(\"Button 2\")\n imgui.end()\n\n Args:\n label (str): button label.\n\n Returns:\n bool: True if clicked.\n\n .. wraps::\n bool SmallButton(const char* label)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_229small_button = {"small_button", (PyCFunction)__pyx_pw_5imgui_4core_229small_button, METH_O, __pyx_doc_5imgui_4core_228small_button}; static PyObject *__pyx_pw_5imgui_4core_229small_button(PyObject *__pyx_self, PyObject *__pyx_v_label) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("small_button (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6895, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_228small_button(__pyx_self, ((PyObject*)__pyx_v_label)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_228small_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("small_button", 0); /* "imgui/core.pyx":6916 * bool SmallButton(const char* label) * """ * return cimgui.SmallButton(_bytes(label)) # <<<<<<<<<<<<<< * * def arrow_button(str label, cimgui.ImGuiDir direction = DIRECTION_NONE): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6916, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6916, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6916, __pyx_L1_error) try { __pyx_t_3 = ImGui::SmallButton(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6916, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6916, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6895 * * * def small_button(str label): # <<<<<<<<<<<<<< * """Display small button (with 0 frame padding). * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.small_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6918 * return cimgui.SmallButton(_bytes(label)) * * def arrow_button(str label, cimgui.ImGuiDir direction = DIRECTION_NONE): # <<<<<<<<<<<<<< * """Display an arrow button * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_231arrow_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_230arrow_button[] = "arrow_button(str label, ImGuiDir direction=DIRECTION_NONE)\nDisplay an arrow button\n\n .. visual-example::\n :auto_layout:\n :height: 100\n\n imgui.begin(\"Arrow button\")\n imgui.arrow_button(\"Button\", imgui.DIRECTION_LEFT)\n imgui.end()\n\n Args:\n label (str): button label.\n direction = imgui direction constant\n\n Returns:\n bool: True if clicked.\n\n .. wraps::\n bool ArrowButton(const char*, ImGuiDir)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_231arrow_button = {"arrow_button", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_231arrow_button, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_230arrow_button}; static PyObject *__pyx_pw_5imgui_4core_231arrow_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiDir __pyx_v_direction; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("arrow_button (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_direction,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_direction); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "arrow_button") < 0)) __PYX_ERR(0, 6918, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_direction = __Pyx_PyInt_As_ImGuiDir(values[1]); if (unlikely((__pyx_v_direction == ((ImGuiDir)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6918, __pyx_L3_error) } else { __pyx_v_direction = __pyx_k__88; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("arrow_button", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6918, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.arrow_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 6918, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_230arrow_button(__pyx_self, __pyx_v_label, __pyx_v_direction); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_230arrow_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDir __pyx_v_direction) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; char const *__pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("arrow_button", 0); /* "imgui/core.pyx":6939 * bool ArrowButton(const char*, ImGuiDir) * """ * if direction == DIRECTION_NONE: # <<<<<<<<<<<<<< * raise ValueError("Direction wasn't specified.") * return cimgui.ArrowButton(_bytes(label), direction) */ __pyx_t_1 = __Pyx_PyInt_From_ImGuiDir(__pyx_v_direction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DIRECTION_NONE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6939, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 6939, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__pyx_t_4)) { /* "imgui/core.pyx":6940 * """ * if direction == DIRECTION_NONE: * raise ValueError("Direction wasn't specified.") # <<<<<<<<<<<<<< * return cimgui.ArrowButton(_bytes(label), direction) * */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__89, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 6940, __pyx_L1_error) /* "imgui/core.pyx":6939 * bool ArrowButton(const char*, ImGuiDir) * """ * if direction == DIRECTION_NONE: # <<<<<<<<<<<<<< * raise ValueError("Direction wasn't specified.") * return cimgui.ArrowButton(_bytes(label), direction) */ } /* "imgui/core.pyx":6941 * if direction == DIRECTION_NONE: * raise ValueError("Direction wasn't specified.") * return cimgui.ArrowButton(_bytes(label), direction) # <<<<<<<<<<<<<< * * def invisible_button(str identifier, float width, float height, cimgui.ImGuiButtonFlags flags = 0): */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6941, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 6941, __pyx_L1_error) try { __pyx_t_6 = ImGui::ArrowButton(__pyx_t_5, __pyx_v_direction); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6941, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":6918 * return cimgui.SmallButton(_bytes(label)) * * def arrow_button(str label, cimgui.ImGuiDir direction = DIRECTION_NONE): # <<<<<<<<<<<<<< * """Display an arrow button * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.arrow_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6943 * return cimgui.ArrowButton(_bytes(label), direction) * * def invisible_button(str identifier, float width, float height, cimgui.ImGuiButtonFlags flags = 0): # <<<<<<<<<<<<<< * """Create invisible button. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_233invisible_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_232invisible_button[] = "invisible_button(str identifier, float width, float height, ImGuiButtonFlags flags=0)\nCreate invisible button.\n\n Flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.)\n\n .. visual-example::\n :auto_layout:\n :height: 300\n :width: 300\n\n imgui.begin(\"Example: invisible button :)\")\n imgui.invisible_button(\"Button 1\", 200, 200)\n imgui.small_button(\"Button 2\")\n imgui.end()\n\n Args:\n identifier (str): Button identifier. Like label on :any:`button()`\n but it is not displayed.\n width (float): button width.\n height (float): button height.\n flags: ImGuiButtonFlags\n\n Returns:\n bool: True if button is clicked.\n\n .. wraps::\n bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_233invisible_button = {"invisible_button", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_233invisible_button, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_232invisible_button}; static PyObject *__pyx_pw_5imgui_4core_233invisible_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_identifier = 0; float __pyx_v_width; float __pyx_v_height; ImGuiButtonFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("invisible_button (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_identifier,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_flags,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_identifier)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("invisible_button", 0, 3, 4, 1); __PYX_ERR(0, 6943, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("invisible_button", 0, 3, 4, 2); __PYX_ERR(0, 6943, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "invisible_button") < 0)) __PYX_ERR(0, 6943, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_identifier = ((PyObject*)values[0]); __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6943, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6943, __pyx_L3_error) if (values[3]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiButtonFlags(values[3]); if (unlikely((__pyx_v_flags == ((ImGuiButtonFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6943, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiButtonFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("invisible_button", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6943, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.invisible_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_identifier), (&PyString_Type), 1, "identifier", 1))) __PYX_ERR(0, 6943, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_232invisible_button(__pyx_self, __pyx_v_identifier, __pyx_v_width, __pyx_v_height, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_232invisible_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_identifier, float __pyx_v_width, float __pyx_v_height, ImGuiButtonFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImVec2 __pyx_t_3; bool __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("invisible_button", 0); /* "imgui/core.pyx":6971 * bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0) * """ * return cimgui.InvisibleButton( # <<<<<<<<<<<<<< * _bytes(identifier), * _cast_args_ImVec2(width, height), */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":6972 * """ * return cimgui.InvisibleButton( * _bytes(identifier), # <<<<<<<<<<<<<< * _cast_args_ImVec2(width, height), * flags */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_identifier); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 6972, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 6972, __pyx_L1_error) /* "imgui/core.pyx":6973 * return cimgui.InvisibleButton( * _bytes(identifier), * _cast_args_ImVec2(width, height), # <<<<<<<<<<<<<< * flags * ) */ __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6973, __pyx_L1_error) /* "imgui/core.pyx":6971 * bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0) * """ * return cimgui.InvisibleButton( # <<<<<<<<<<<<<< * _bytes(identifier), * _cast_args_ImVec2(width, height), */ try { __pyx_t_4 = ImGui::InvisibleButton(__pyx_t_2, __pyx_t_3, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 6971, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6943 * return cimgui.ArrowButton(_bytes(label), direction) * * def invisible_button(str identifier, float width, float height, cimgui.ImGuiButtonFlags flags = 0): # <<<<<<<<<<<<<< * """Create invisible button. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.invisible_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":6978 * * * def color_button( # <<<<<<<<<<<<<< * str desc_id, * float r, float g, float b, a=1., */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_235color_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_234color_button[] = "color_button(str desc_id, float r, float g, float b, a=1., flags=0, float width=0, float height=0)\nDisplay colored button.\n\n .. visual-example::\n :auto_layout:\n :height: 150\n\n imgui.begin(\"Example: color button\")\n imgui.color_button(\"Button 1\", 1, 0, 0, 1, 0, 10, 10)\n imgui.color_button(\"Button 2\", 0, 1, 0, 1, 0, 10, 10)\n imgui.color_button(\"Wide Button\", 0, 0, 1, 1, 0, 20, 10)\n imgui.color_button(\"Tall Button\", 1, 0, 1, 1, 0, 10, 20)\n imgui.end()\n\n Args:\n #r (float): red color intensity.\n #g (float): green color intensity.\n #b (float): blue color instensity.\n #a (float): alpha intensity.\n #ImGuiColorEditFlags: Color edit flags. Zero for none.\n #width (float): Width of the color button\n #height (float): Height of the color button\n\n Returns:\n bool: True if button is clicked.\n\n .. wraps::\n bool ColorButton(\n const char* desc_id,\n const ImVec4& col,\n ImGuiColorEditFlags flags,\n ImVec2 size\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_235color_button = {"color_button", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_235color_button, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_234color_button}; static PyObject *__pyx_pw_5imgui_4core_235color_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_desc_id = 0; float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; PyObject *__pyx_v_a = 0; PyObject *__pyx_v_flags = 0; float __pyx_v_width; float __pyx_v_height; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("color_button (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_desc_id,&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_a,&__pyx_n_s_flags,&__pyx_n_s_width,&__pyx_n_s_height,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; values[4] = ((PyObject *)__pyx_float_1_); values[5] = ((PyObject *)__pyx_int_0); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_desc_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_button", 0, 4, 8, 1); __PYX_ERR(0, 6978, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_button", 0, 4, 8, 2); __PYX_ERR(0, 6978, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_button", 0, 4, 8, 3); __PYX_ERR(0, 6978, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "color_button") < 0)) __PYX_ERR(0, 6978, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_desc_id = ((PyObject*)values[0]); __pyx_v_r = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6980, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6980, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6980, __pyx_L3_error) __pyx_v_a = values[4]; __pyx_v_flags = values[5]; if (values[6]) { __pyx_v_width = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6982, __pyx_L3_error) } else { __pyx_v_width = ((float)0.0); } if (values[7]) { __pyx_v_height = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6982, __pyx_L3_error) } else { __pyx_v_height = ((float)0.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("color_button", 0, 4, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6978, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.color_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_desc_id), (&PyString_Type), 1, "desc_id", 1))) __PYX_ERR(0, 6979, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_234color_button(__pyx_self, __pyx_v_desc_id, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a, __pyx_v_flags, __pyx_v_width, __pyx_v_height); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_234color_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc_id, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, PyObject *__pyx_v_a, PyObject *__pyx_v_flags, float __pyx_v_width, float __pyx_v_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; float __pyx_t_3; ImGuiColorEditFlags __pyx_t_4; ImVec2 __pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("color_button", 0); /* "imgui/core.pyx":7017 * ) * """ * return cimgui.ColorButton( # <<<<<<<<<<<<<< * _bytes(desc_id), _cast_args_ImVec4(r, g, b, a), flags, _cast_args_ImVec2(width, height) * ) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7018 * """ * return cimgui.ColorButton( * _bytes(desc_id), _cast_args_ImVec4(r, g, b, a), flags, _cast_args_ImVec2(width, height) # <<<<<<<<<<<<<< * ) * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_desc_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7018, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 7018, __pyx_L1_error) __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_a); if (unlikely((__pyx_t_3 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7018, __pyx_L1_error) __pyx_t_4 = __Pyx_PyInt_As_ImGuiColorEditFlags(__pyx_v_flags); if (unlikely((__pyx_t_4 == ((ImGuiColorEditFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7018, __pyx_L1_error) __pyx_t_5 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7018, __pyx_L1_error) /* "imgui/core.pyx":7017 * ) * """ * return cimgui.ColorButton( # <<<<<<<<<<<<<< * _bytes(desc_id), _cast_args_ImVec4(r, g, b, a), flags, _cast_args_ImVec2(width, height) * ) */ try { __pyx_t_6 = ImGui::ColorButton(__pyx_t_2, __pyx_f_5imgui_4core__cast_args_ImVec4(__pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_t_3), __pyx_t_4, __pyx_t_5); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7017, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":6978 * * * def color_button( # <<<<<<<<<<<<<< * str desc_id, * float r, float g, float b, a=1., */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.color_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7022 * * * def image_button( # <<<<<<<<<<<<<< * texture_id, * float width, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_237image_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_236image_button[] = "image_button(texture_id, float width, float height, tuple uv0=(0, 0), tuple uv1=(1, 1), tuple tint_color=(1, 1, 1, 1), tuple border_color=(0, 0, 0, 0), int frame_padding=-1)\nDisplay image.\n\n .. todo:: add example with some preconfigured image\n\n Args:\n texture_id (object): user data defining texture id. Argument type\n is implementation dependent. For OpenGL it is usually an integer.\n size (Vec2): image display size two-tuple.\n uv0 (Vec2): UV coordinates for 1st corner (lower-left for OpenGL).\n Defaults to ``(0, 0)``.\n uv1 (Vec2): UV coordinates for 2nd corner (upper-right for OpenGL).\n Defaults to ``(1, 1)``.\n tint_color (Vec4): Image tint color. Defaults to white.\n border_color (Vec4): Image border color. Defaults to transparent.\n frame_padding (int): Frame padding (``0``: no padding, ``<0`` default\n padding).\n\n Returns:\n bool: True if clicked.\n\n .. wraps::\n bool ImageButton(\n ImTextureID user_texture_id,\n const ImVec2& size,\n const ImVec2& uv0 = ImVec2(0,0),\n const ImVec2& uv1 = ImVec2(1,1),\n int frame_padding = -1,\n const ImVec4& bg_col = ImVec4(0,0,0,0),\n const ImVec4& tint_col = ImVec4(1,1,1,1)\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_237image_button = {"image_button", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_237image_button, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_236image_button}; static PyObject *__pyx_pw_5imgui_4core_237image_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_texture_id = 0; float __pyx_v_width; float __pyx_v_height; PyObject *__pyx_v_uv0 = 0; PyObject *__pyx_v_uv1 = 0; PyObject *__pyx_v_tint_color = 0; PyObject *__pyx_v_border_color = 0; int __pyx_v_frame_padding; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("image_button (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_texture_id,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_uv0,&__pyx_n_s_uv1,&__pyx_n_s_tint_color,&__pyx_n_s_border_color,&__pyx_n_s_frame_padding,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":7026 * float width, * float height, * tuple uv0=(0, 0), # <<<<<<<<<<<<<< * tuple uv1=(1, 1), * tuple tint_color=(1, 1, 1, 1), */ values[3] = ((PyObject*)__pyx_tuple__8); /* "imgui/core.pyx":7027 * float height, * tuple uv0=(0, 0), * tuple uv1=(1, 1), # <<<<<<<<<<<<<< * tuple tint_color=(1, 1, 1, 1), * tuple border_color=(0, 0, 0, 0), */ values[4] = ((PyObject*)__pyx_tuple__9); /* "imgui/core.pyx":7028 * tuple uv0=(0, 0), * tuple uv1=(1, 1), * tuple tint_color=(1, 1, 1, 1), # <<<<<<<<<<<<<< * tuple border_color=(0, 0, 0, 0), * int frame_padding=-1, */ values[5] = ((PyObject*)__pyx_tuple__90); /* "imgui/core.pyx":7029 * tuple uv1=(1, 1), * tuple tint_color=(1, 1, 1, 1), * tuple border_color=(0, 0, 0, 0), # <<<<<<<<<<<<<< * int frame_padding=-1, * ): */ values[6] = ((PyObject*)__pyx_tuple__91); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_texture_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("image_button", 0, 3, 8, 1); __PYX_ERR(0, 7022, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("image_button", 0, 3, 8, 2); __PYX_ERR(0, 7022, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv0); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv1); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tint_color); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_border_color); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_frame_padding); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "image_button") < 0)) __PYX_ERR(0, 7022, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_texture_id = values[0]; __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7024, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7025, __pyx_L3_error) __pyx_v_uv0 = ((PyObject*)values[3]); __pyx_v_uv1 = ((PyObject*)values[4]); __pyx_v_tint_color = ((PyObject*)values[5]); __pyx_v_border_color = ((PyObject*)values[6]); if (values[7]) { __pyx_v_frame_padding = __Pyx_PyInt_As_int(values[7]); if (unlikely((__pyx_v_frame_padding == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7030, __pyx_L3_error) } else { __pyx_v_frame_padding = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("image_button", 0, 3, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7022, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.image_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv0), (&PyTuple_Type), 1, "uv0", 1))) __PYX_ERR(0, 7026, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv1), (&PyTuple_Type), 1, "uv1", 1))) __PYX_ERR(0, 7027, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tint_color), (&PyTuple_Type), 1, "tint_color", 1))) __PYX_ERR(0, 7028, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_border_color), (&PyTuple_Type), 1, "border_color", 1))) __PYX_ERR(0, 7029, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_236image_button(__pyx_self, __pyx_v_texture_id, __pyx_v_width, __pyx_v_height, __pyx_v_uv0, __pyx_v_uv1, __pyx_v_tint_color, __pyx_v_border_color, __pyx_v_frame_padding); /* "imgui/core.pyx":7022 * * * def image_button( # <<<<<<<<<<<<<< * texture_id, * float width, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_236image_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texture_id, float __pyx_v_width, float __pyx_v_height, PyObject *__pyx_v_uv0, PyObject *__pyx_v_uv1, PyObject *__pyx_v_tint_color, PyObject *__pyx_v_border_color, int __pyx_v_frame_padding) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; ImVec2 __pyx_t_5; ImVec2 __pyx_t_6; ImVec2 __pyx_t_7; bool __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("image_button", 0); /* "imgui/core.pyx":7063 * ) * """ * get_current_context()._keepalive_cache.append(texture_id) # <<<<<<<<<<<<<< * return cimgui.ImageButton( * texture_id, */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_get_current_context); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_keepalive_cache); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_v_texture_id); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 7063, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":7064 * """ * get_current_context()._keepalive_cache.append(texture_id) * return cimgui.ImageButton( # <<<<<<<<<<<<<< * texture_id, * _cast_args_ImVec2(width, height), # todo: consider inlining */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7066 * return cimgui.ImageButton( * texture_id, * _cast_args_ImVec2(width, height), # todo: consider inlining # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(uv0), * _cast_tuple_ImVec2(uv1), */ __pyx_t_5 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7066, __pyx_L1_error) /* "imgui/core.pyx":7067 * texture_id, * _cast_args_ImVec2(width, height), # todo: consider inlining * _cast_tuple_ImVec2(uv0), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(uv1), * # note: slightly different order of params than in ImGui::Image() */ __pyx_t_6 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_uv0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7067, __pyx_L1_error) /* "imgui/core.pyx":7068 * _cast_args_ImVec2(width, height), # todo: consider inlining * _cast_tuple_ImVec2(uv0), * _cast_tuple_ImVec2(uv1), # <<<<<<<<<<<<<< * # note: slightly different order of params than in ImGui::Image() * frame_padding, */ __pyx_t_7 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_uv1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7068, __pyx_L1_error) /* "imgui/core.pyx":7064 * """ * get_current_context()._keepalive_cache.append(texture_id) * return cimgui.ImageButton( # <<<<<<<<<<<<<< * texture_id, * _cast_args_ImVec2(width, height), # todo: consider inlining */ try { __pyx_t_8 = ImGui::ImageButton(((void *)__pyx_v_texture_id), __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_v_frame_padding, __pyx_f_5imgui_4core__cast_tuple_ImVec4(__pyx_v_border_color), __pyx_f_5imgui_4core__cast_tuple_ImVec4(__pyx_v_tint_color)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7064, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":7022 * * * def image_button( # <<<<<<<<<<<<<< * texture_id, * float width, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.image_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7076 * * * def image( # <<<<<<<<<<<<<< * texture_id, * float width, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_239image(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_238image[] = "image(texture_id, float width, float height, tuple uv0=(0, 0), tuple uv1=(1, 1), tuple tint_color=(1, 1, 1, 1), tuple border_color=(0, 0, 0, 0))\nDisplay image.\n\n .. visual-example::\n :auto_layout:\n :width: 550\n :height: 200\n\n texture_id = imgui.get_io().fonts.texture_id\n\n imgui.begin(\"Example: image display\")\n imgui.image(texture_id, 512, 64, border_color=(1, 0, 0, 1))\n imgui.end()\n\n Args:\n texture_id (object): user data defining texture id. Argument type\n is implementation dependent. For OpenGL it is usually an integer.\n size (Vec2): image display size two-tuple.\n uv0 (Vec2): UV coordinates for 1st corner (lower-left for OpenGL).\n Defaults to ``(0, 0)``.\n uv1 (Vec2): UV coordinates for 2nd corner (upper-right for OpenGL).\n Defaults to ``(1, 1)``.\n tint_color(Vec4): Image tint color. Defaults to white.\n border_color(Vec4): Image border color. Defaults to transparent.\n\n .. wraps::\n void Image(\n ImTextureID user_texture_id,\n const ImVec2& size,\n const ImVec2& uv0 = ImVec2(0,0),\n const ImVec2& uv1 = ImVec2(1,1),\n const ImVec4& tint_col = ImVec4(1,1,1,1),\n const ImVec4& border_col = ImVec4(0,0,0,0)\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_239image = {"image", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_239image, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_238image}; static PyObject *__pyx_pw_5imgui_4core_239image(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_texture_id = 0; float __pyx_v_width; float __pyx_v_height; PyObject *__pyx_v_uv0 = 0; PyObject *__pyx_v_uv1 = 0; PyObject *__pyx_v_tint_color = 0; PyObject *__pyx_v_border_color = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("image (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_texture_id,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_uv0,&__pyx_n_s_uv1,&__pyx_n_s_tint_color,&__pyx_n_s_border_color,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; /* "imgui/core.pyx":7080 * float width, * float height, * tuple uv0=(0, 0), # <<<<<<<<<<<<<< * tuple uv1=(1, 1), * tuple tint_color=(1, 1, 1, 1), */ values[3] = ((PyObject*)__pyx_tuple__8); /* "imgui/core.pyx":7081 * float height, * tuple uv0=(0, 0), * tuple uv1=(1, 1), # <<<<<<<<<<<<<< * tuple tint_color=(1, 1, 1, 1), * tuple border_color=(0, 0, 0, 0), */ values[4] = ((PyObject*)__pyx_tuple__9); /* "imgui/core.pyx":7082 * tuple uv0=(0, 0), * tuple uv1=(1, 1), * tuple tint_color=(1, 1, 1, 1), # <<<<<<<<<<<<<< * tuple border_color=(0, 0, 0, 0), * ): */ values[5] = ((PyObject*)__pyx_tuple__90); /* "imgui/core.pyx":7083 * tuple uv1=(1, 1), * tuple tint_color=(1, 1, 1, 1), * tuple border_color=(0, 0, 0, 0), # <<<<<<<<<<<<<< * ): * """Display image. */ values[6] = ((PyObject*)__pyx_tuple__91); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_texture_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("image", 0, 3, 7, 1); __PYX_ERR(0, 7076, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("image", 0, 3, 7, 2); __PYX_ERR(0, 7076, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv0); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv1); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tint_color); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_border_color); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "image") < 0)) __PYX_ERR(0, 7076, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_texture_id = values[0]; __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7078, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7079, __pyx_L3_error) __pyx_v_uv0 = ((PyObject*)values[3]); __pyx_v_uv1 = ((PyObject*)values[4]); __pyx_v_tint_color = ((PyObject*)values[5]); __pyx_v_border_color = ((PyObject*)values[6]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("image", 0, 3, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7076, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.image", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv0), (&PyTuple_Type), 1, "uv0", 1))) __PYX_ERR(0, 7080, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv1), (&PyTuple_Type), 1, "uv1", 1))) __PYX_ERR(0, 7081, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tint_color), (&PyTuple_Type), 1, "tint_color", 1))) __PYX_ERR(0, 7082, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_border_color), (&PyTuple_Type), 1, "border_color", 1))) __PYX_ERR(0, 7083, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_238image(__pyx_self, __pyx_v_texture_id, __pyx_v_width, __pyx_v_height, __pyx_v_uv0, __pyx_v_uv1, __pyx_v_tint_color, __pyx_v_border_color); /* "imgui/core.pyx":7076 * * * def image( # <<<<<<<<<<<<<< * texture_id, * float width, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_238image(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texture_id, float __pyx_v_width, float __pyx_v_height, PyObject *__pyx_v_uv0, PyObject *__pyx_v_uv1, PyObject *__pyx_v_tint_color, PyObject *__pyx_v_border_color) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; ImVec2 __pyx_t_5; ImVec2 __pyx_t_6; ImVec2 __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("image", 0); /* "imgui/core.pyx":7119 * ) * """ * get_current_context()._keepalive_cache.append(texture_id) # <<<<<<<<<<<<<< * cimgui.Image( * texture_id, */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_get_current_context); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_keepalive_cache); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_v_texture_id); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 7119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":7122 * cimgui.Image( * texture_id, * _cast_args_ImVec2(width, height), # todo: consider inlining # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(uv0), * _cast_tuple_ImVec2(uv1), */ __pyx_t_5 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7122, __pyx_L1_error) /* "imgui/core.pyx":7123 * texture_id, * _cast_args_ImVec2(width, height), # todo: consider inlining * _cast_tuple_ImVec2(uv0), # <<<<<<<<<<<<<< * _cast_tuple_ImVec2(uv1), * _cast_tuple_ImVec4(tint_color), */ __pyx_t_6 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_uv0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7123, __pyx_L1_error) /* "imgui/core.pyx":7124 * _cast_args_ImVec2(width, height), # todo: consider inlining * _cast_tuple_ImVec2(uv0), * _cast_tuple_ImVec2(uv1), # <<<<<<<<<<<<<< * _cast_tuple_ImVec4(tint_color), * _cast_tuple_ImVec4(border_color), */ __pyx_t_7 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_uv1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7124, __pyx_L1_error) /* "imgui/core.pyx":7120 * """ * get_current_context()._keepalive_cache.append(texture_id) * cimgui.Image( # <<<<<<<<<<<<<< * texture_id, * _cast_args_ImVec2(width, height), # todo: consider inlining */ try { ImGui::Image(((void *)__pyx_v_texture_id), __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_f_5imgui_4core__cast_tuple_ImVec4(__pyx_v_tint_color), __pyx_f_5imgui_4core__cast_tuple_ImVec4(__pyx_v_border_color)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7120, __pyx_L1_error) } /* "imgui/core.pyx":7076 * * * def image( # <<<<<<<<<<<<<< * texture_id, * float width, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.image", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7130 * * * def checkbox(str label, cimgui.bool state): # <<<<<<<<<<<<<< * """Display checkbox widget. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_241checkbox(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_240checkbox[] = "checkbox(str label, bool state)\nDisplay checkbox widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n\n\n # note: these should be initialized outside of the main interaction\n # loop\n checkbox1_enabled = True\n checkbox2_enabled = False\n\n imgui.new_frame()\n imgui.begin(\"Example: checkboxes\")\n\n # note: first element of return two-tuple notifies if there was a click\n # event in currently processed frame and second element is actual\n # checkbox state.\n _, checkbox1_enabled = imgui.checkbox(\"Checkbox 1\", checkbox1_enabled)\n _, checkbox2_enabled = imgui.checkbox(\"Checkbox 2\", checkbox2_enabled)\n\n imgui.text(\"Checkbox 1 state value: {}\".format(checkbox1_enabled))\n imgui.text(\"Checkbox 2 state value: {}\".format(checkbox2_enabled))\n\n imgui.end()\n\n\n Args:\n label (str): text label for checkbox widget.\n state (bool): current (desired) state of the checkbox. If it has to\n change, the new state will be returned as a second item of\n the return value.\n\n Returns:\n tuple: a ``(clicked, state)`` two-tuple indicating click event and the\n current state of the checkbox.\n\n .. wraps::\n bool Checkbox(const char* label, bool* v)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_241checkbox = {"checkbox", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_241checkbox, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_240checkbox}; static PyObject *__pyx_pw_5imgui_4core_241checkbox(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; bool __pyx_v_state; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("checkbox (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_state,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_state)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("checkbox", 1, 2, 2, 1); __PYX_ERR(0, 7130, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "checkbox") < 0)) __PYX_ERR(0, 7130, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_state = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_state == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7130, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("checkbox", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7130, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.checkbox", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7130, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_240checkbox(__pyx_self, __pyx_v_label, __pyx_v_state); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_240checkbox(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, bool __pyx_v_state) { bool __pyx_v_inout_state; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("checkbox", 0); /* "imgui/core.pyx":7171 * bool Checkbox(const char* label, bool* v) * """ * cdef cimgui.bool inout_state = state # <<<<<<<<<<<<<< * return cimgui.Checkbox(_bytes(label), &inout_state), inout_state * */ __pyx_v_inout_state = __pyx_v_state; /* "imgui/core.pyx":7172 * """ * cdef cimgui.bool inout_state = state * return cimgui.Checkbox(_bytes(label), &inout_state), inout_state # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7172, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 7172, __pyx_L1_error) try { __pyx_t_3 = ImGui::Checkbox(__pyx_t_2, (&__pyx_v_inout_state)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7172, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_inout_state); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "imgui/core.pyx":7130 * * * def checkbox(str label, cimgui.bool state): # <<<<<<<<<<<<<< * """Display checkbox widget. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.checkbox", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7175 * * * def checkbox_flags(str label, unsigned int flags, unsigned int flags_value): # <<<<<<<<<<<<<< * """Display checkbox widget that handle integer flags (bit fields). * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_243checkbox_flags(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_242checkbox_flags[] = "checkbox_flags(str label, unsigned int flags, unsigned int flags_value)\nDisplay checkbox widget that handle integer flags (bit fields).\n\n It is useful for handling window/style flags or any kind of flags\n implemented as integer bitfields.\n\n .. visual-example::\n :auto_layout:\n :width: 500\n\n flags = imgui.WINDOW_NO_RESIZE | imgui.WINDOW_NO_MOVE\n\n imgui.begin(\"Example: checkboxes for flags\", flags=flags)\n\n clicked, flags = imgui.checkbox_flags(\n \"No resize\", flags, imgui.WINDOW_NO_RESIZE\n )\n clicked, flags = imgui.checkbox_flags(\n \"No move\", flags, imgui.WINDOW_NO_MOVE\n )\n clicked, flags = imgui.checkbox_flags(\n \"No collapse\", flags, imgui.WINDOW_NO_COLLAPSE\n )\n # note: it also allows to use multiple flags at once\n clicked, flags = imgui.checkbox_flags(\n \"No resize & no move\", flags,\n imgui.WINDOW_NO_RESIZE | imgui.WINDOW_NO_MOVE\n )\n imgui.text(\"Current flags value: {0:b}\".format(flags))\n imgui.end()\n\n Args:\n label (str): text label for checkbox widget.\n flags (int): current state of the flags associated with checkbox.\n Actual state of checkbox (toggled/untoggled) is calculated from\n this argument and ``flags_value`` argument. If it has to change,\n the new state will be returned as a second item of the return\n value.\n flags_value (int): values of flags this widget can toggle. Represents\n bitmask in flags bitfield. Allows multiple flags to be toggled\n at once (specify using bit OR operator `|`, see example above).\n\n Returns:\n tuple: a ``(clicked, flags)`` two-tuple indicating click event and the\n current state of the flags controlled with this checkbox.\n\n .. wraps::\n bool CheckboxFlags(\n const char* label, unsigned int*"" flags,\n unsigned int flags_value\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_243checkbox_flags = {"checkbox_flags", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_243checkbox_flags, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_242checkbox_flags}; static PyObject *__pyx_pw_5imgui_4core_243checkbox_flags(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; unsigned int __pyx_v_flags; unsigned int __pyx_v_flags_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("checkbox_flags (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_flags,&__pyx_n_s_flags_value,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("checkbox_flags", 1, 3, 3, 1); __PYX_ERR(0, 7175, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("checkbox_flags", 1, 3, 3, 2); __PYX_ERR(0, 7175, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "checkbox_flags") < 0)) __PYX_ERR(0, 7175, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7175, __pyx_L3_error) __pyx_v_flags_value = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7175, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("checkbox_flags", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7175, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.checkbox_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7175, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_242checkbox_flags(__pyx_self, __pyx_v_label, __pyx_v_flags, __pyx_v_flags_value); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_242checkbox_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, unsigned int __pyx_v_flags, unsigned int __pyx_v_flags_value) { unsigned int __pyx_v_inout_flags; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("checkbox_flags", 0); /* "imgui/core.pyx":7227 * ) * """ * cdef unsigned int inout_flags = flags # <<<<<<<<<<<<<< * * return cimgui.CheckboxFlags(_bytes(label), &inout_flags, flags_value), inout_flags */ __pyx_v_inout_flags = __pyx_v_flags; /* "imgui/core.pyx":7229 * cdef unsigned int inout_flags = flags * * return cimgui.CheckboxFlags(_bytes(label), &inout_flags, flags_value), inout_flags # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7229, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 7229, __pyx_L1_error) try { __pyx_t_3 = ImGui::CheckboxFlags(__pyx_t_2, (&__pyx_v_inout_flags), __pyx_v_flags_value); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7229, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_inout_flags); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "imgui/core.pyx":7175 * * * def checkbox_flags(str label, unsigned int flags, unsigned int flags_value): # <<<<<<<<<<<<<< * """Display checkbox widget that handle integer flags (bit fields). * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.checkbox_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7232 * * * def radio_button(str label, cimgui.bool active): # <<<<<<<<<<<<<< * """Display radio button widget * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_245radio_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_244radio_button[] = "radio_button(str label, bool active)\nDisplay radio button widget\n\n .. visual-example::\n :auto_layout:\n :height: 100\n\n # note: the variable that contains the state of the radio_button, should be initialized\n # outside of the main interaction loop\n radio_active = True\n\n imgui.begin(\"Example: radio buttons\")\n\n if imgui.radio_button(\"Radio button\", radio_active):\n radio_active = not radio_active\n\n imgui.end()\n\n Args:\n label (str): button label.\n active (bool): state of the radio button.\n\n Returns:\n bool: True if clicked.\n\n .. wraps::\n bool RadioButton(const char* label, bool active)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_245radio_button = {"radio_button", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_245radio_button, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_244radio_button}; static PyObject *__pyx_pw_5imgui_4core_245radio_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; bool __pyx_v_active; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("radio_button (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_active,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_active)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("radio_button", 1, 2, 2, 1); __PYX_ERR(0, 7232, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "radio_button") < 0)) __PYX_ERR(0, 7232, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_active = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_active == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7232, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("radio_button", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7232, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.radio_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7232, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_244radio_button(__pyx_self, __pyx_v_label, __pyx_v_active); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_244radio_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, bool __pyx_v_active) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("radio_button", 0); /* "imgui/core.pyx":7260 * bool RadioButton(const char* label, bool active) * """ * return cimgui.RadioButton(_bytes(label), active) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7260, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 7260, __pyx_L1_error) try { __pyx_t_3 = ImGui::RadioButton(__pyx_t_2, __pyx_v_active); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7260, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":7232 * * * def radio_button(str label, cimgui.bool active): # <<<<<<<<<<<<<< * """Display radio button widget * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.radio_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7278 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_BeginEndCombo_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_14_BeginEndCombo_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 7278, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7278, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7278, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndCombo.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self), __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_BeginEndCombo___cinit__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":7279 * * def __cinit__(self, bool opened): * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":7278 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7281 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndCombo_2__enter__[] = "_BeginEndCombo.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":7282 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":7281 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7284 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndCombo() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndCombo_4__exit__[] = "_BeginEndCombo.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 7284, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 7284, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 7284, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7284, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndCombo.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":7285 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndCombo() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":7286 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndCombo() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndCombo(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7286, __pyx_L1_error) } /* "imgui/core.pyx":7285 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndCombo() * */ } /* "imgui/core.pyx":7284 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndCombo() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndCombo.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7288 * cimgui.EndCombo() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_14_BeginEndCombo_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_14_BeginEndCombo_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_14_BeginEndCombo_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":7290 * def __bool__(self): * """For legacy support, returns ``opened``.""" * return self.opened # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->opened; goto __pyx_L0; /* "imgui/core.pyx":7288 * cimgui.EndCombo() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7292 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":7293 * * def __repr__(self): * return "{}(opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":7294 * def __repr__(self): * return "{}(opened={})".format( * self.__class__.__name__, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7293, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7293, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":7292 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndCombo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7297 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":7298 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":7299 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.opened is other.opened # <<<<<<<<<<<<<< * return self.opened is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":7298 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ } /* "imgui/core.pyx":7300 * if other.__class__ is self.__class__: * return self.opened is other.opened * return self.opened is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":7297 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndCombo.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7276 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndCombo.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndCombo_12__reduce_cython__[] = "_BeginEndCombo.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__92, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndCombo.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndCombo_14__setstate_cython__[] = "_BeginEndCombo.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndCombo_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndCombo_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndCombo *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndCombo_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndCombo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__93, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndCombo.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7303 * * * def begin_combo(str label, str preview_value, cimgui.ImGuiComboFlags flags = 0): # <<<<<<<<<<<<<< * """Begin a combo box with control over how items are displayed. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_247begin_combo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_246begin_combo[] = "begin_combo(str label, str preview_value, ImGuiComboFlags flags=0)\nBegin a combo box with control over how items are displayed.\n\n .. visual-example::\n :width: 200\n :height: 200\n :auto_layout:\n\n selected = 0\n items = [\"AAAA\", \"BBBB\", \"CCCC\", \"DDDD\"]\n \n # ...\n \n with imgui.begin(\"Example: begin combo\"):\n with imgui.begin_combo(\"combo\", items[selected]) as combo:\n if combo.opened:\n for i, item in enumerate(items):\n is_selected = (i == selected)\n if imgui.selectable(item, is_selected)[0]:\n selected = i\n\n # Set the initial focus when opening the combo (scrolling + keyboard navigation focus)\n if is_selected:\n imgui.set_item_default_focus()\n \n Example::\n \n selected = 0\n items = [\"AAAA\", \"BBBB\", \"CCCC\", \"DDDD\"]\n \n # ...\n\n imgui.begin(\"Example: begin combo\")\n if imgui.begin_combo(\"combo\", items[selected]):\n for i, item in enumerate(items):\n is_selected = (i == selected)\n if imgui.selectable(item, is_selected)[0]:\n selected = i\n \n # Set the initial focus when opening the combo (scrolling + keyboard navigation focus) \n if is_selected:\n imgui.set_item_default_focus()\n\n imgui.end_combo()\n\n imgui.end()\n\n Args:\n label (str): Identifier for the combo box.\n preview_value (str): String preview for currently selected item.\n flags: Combo flags. See:\n :ref:`list of available flags `.\n\n Returns:\n _BeginEndCombo: Struct with ``opened`` bool attribute. Use with ``with`` to automaticall""y call :func:`end_combo` when the block ends.`\n\n .. wraps::\n bool BeginCombo(\n const char* label,\n const char* preview_value,\n ImGuiComboFlags flags = 0\n )\n \n "; static PyMethodDef __pyx_mdef_5imgui_4core_247begin_combo = {"begin_combo", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_247begin_combo, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_246begin_combo}; static PyObject *__pyx_pw_5imgui_4core_247begin_combo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_preview_value = 0; ImGuiComboFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_combo (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_preview_value,&__pyx_n_s_flags,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_preview_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("begin_combo", 0, 2, 3, 1); __PYX_ERR(0, 7303, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_combo") < 0)) __PYX_ERR(0, 7303, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_preview_value = ((PyObject*)values[1]); if (values[2]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiComboFlags(values[2]); if (unlikely((__pyx_v_flags == ((ImGuiComboFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7303, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiComboFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_combo", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7303, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_combo", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7303, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_preview_value), (&PyString_Type), 1, "preview_value", 1))) __PYX_ERR(0, 7303, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_246begin_combo(__pyx_self, __pyx_v_label, __pyx_v_preview_value, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_246begin_combo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_preview_value, ImGuiComboFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_combo", 0); /* "imgui/core.pyx":7367 * * """ * return _BeginEndCombo.__new__( # <<<<<<<<<<<<<< * _BeginEndCombo, * cimgui.BeginCombo( */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7370 * _BeginEndCombo, * cimgui.BeginCombo( * _bytes(label), _bytes(preview_value), flags # <<<<<<<<<<<<<< * ) * ) */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7370, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 7370, __pyx_L1_error) __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_preview_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7370, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 7370, __pyx_L1_error) /* "imgui/core.pyx":7369 * return _BeginEndCombo.__new__( * _BeginEndCombo, * cimgui.BeginCombo( # <<<<<<<<<<<<<< * _bytes(label), _bytes(preview_value), flags * ) */ try { __pyx_t_5 = ImGui::BeginCombo(__pyx_t_2, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7369, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "imgui/core.pyx":7367 * * """ * return _BeginEndCombo.__new__( # <<<<<<<<<<<<<< * _BeginEndCombo, * cimgui.BeginCombo( */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndCombo(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndCombo), __pyx_t_1, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7367, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_3)); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = ((PyObject *)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":7303 * * * def begin_combo(str label, str preview_value, cimgui.ImGuiComboFlags flags = 0): # <<<<<<<<<<<<<< * """Begin a combo box with control over how items are displayed. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.begin_combo", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7373 * ) * ) * def end_combo(): # <<<<<<<<<<<<<< * """End combo box. * Only call if ``begin_combo().opened`` is True. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_249end_combo(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_248end_combo[] = "end_combo()\nEnd combo box.\n Only call if ``begin_combo().opened`` is True.\n\n .. wraps::\n void EndCombo()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_249end_combo = {"end_combo", (PyCFunction)__pyx_pw_5imgui_4core_249end_combo, METH_NOARGS, __pyx_doc_5imgui_4core_248end_combo}; static PyObject *__pyx_pw_5imgui_4core_249end_combo(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_combo (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_248end_combo(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_248end_combo(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_combo", 0); /* "imgui/core.pyx":7380 * void EndCombo() * """ * cimgui.EndCombo() # <<<<<<<<<<<<<< * * */ try { ImGui::EndCombo(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7380, __pyx_L1_error) } /* "imgui/core.pyx":7373 * ) * ) * def end_combo(): # <<<<<<<<<<<<<< * """End combo box. * Only call if ``begin_combo().opened`` is True. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_combo", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7383 * * * def combo(str label, int current, list items, int height_in_items=-1): # <<<<<<<<<<<<<< * """Display combo widget. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_251combo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_250combo[] = "combo(str label, int current, list items, int height_in_items=-1)\nDisplay combo widget.\n\n .. visual-example::\n :auto_layout:\n :height: 200\n :click: 80 40\n\n current = 2\n imgui.begin(\"Example: combo widget\")\n\n clicked, current = imgui.combo(\n \"combo\", current, [\"first\", \"second\", \"third\"]\n )\n\n imgui.end()\n\n Args:\n label (str): combo label.\n current (int): index of selected item.\n items (list): list of string labels for items.\n height_in_items (int): height of dropdown in items. Defaults to -1\n (autosized).\n\n Returns:\n tuple: a ``(changed, current)`` tuple indicating change of selection and current index of selected item.\n\n .. wraps::\n bool Combo(\n const char* label, int* current_item,\n const char* items_separated_by_zeros,\n int height_in_items = -1\n )\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_251combo = {"combo", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_251combo, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_250combo}; static PyObject *__pyx_pw_5imgui_4core_251combo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_current; PyObject *__pyx_v_items = 0; int __pyx_v_height_in_items; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("combo (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_current,&__pyx_n_s_items,&__pyx_n_s_height_in_items,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_current)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("combo", 0, 3, 4, 1); __PYX_ERR(0, 7383, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_items)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("combo", 0, 3, 4, 2); __PYX_ERR(0, 7383, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height_in_items); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "combo") < 0)) __PYX_ERR(0, 7383, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_current = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_current == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7383, __pyx_L3_error) __pyx_v_items = ((PyObject*)values[2]); if (values[3]) { __pyx_v_height_in_items = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_height_in_items == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7383, __pyx_L3_error) } else { __pyx_v_height_in_items = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("combo", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7383, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.combo", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7383, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_items), (&PyList_Type), 1, "items", 1))) __PYX_ERR(0, 7383, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_250combo(__pyx_self, __pyx_v_label, __pyx_v_current, __pyx_v_items, __pyx_v_height_in_items); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_250combo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_current, PyObject *__pyx_v_items, int __pyx_v_height_in_items) { int __pyx_v_inout_current; PyObject *__pyx_v_in_items = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; char const *__pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("combo", 0); /* "imgui/core.pyx":7418 * * """ * cdef int inout_current = current # <<<<<<<<<<<<<< * * in_items = "\0".join(items) + "\0" */ __pyx_v_inout_current = __pyx_v_current; /* "imgui/core.pyx":7420 * cdef int inout_current = current * * in_items = "\0".join(items) + "\0" # <<<<<<<<<<<<<< * * return cimgui.Combo( */ __pyx_t_1 = __Pyx_PyString_Join(__pyx_kp_s__94, __pyx_v_items); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_s__94); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_in_items = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":7422 * in_items = "\0".join(items) + "\0" * * return cimgui.Combo( # <<<<<<<<<<<<<< * _bytes(label), &inout_current, _bytes(in_items), height_in_items * ), inout_current */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7423 * * return cimgui.Combo( * _bytes(label), &inout_current, _bytes(in_items), height_in_items # <<<<<<<<<<<<<< * ), inout_current * */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7423, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 7423, __pyx_L1_error) if (!(likely(PyString_CheckExact(__pyx_v_in_items))||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_in_items)->tp_name), 0))) __PYX_ERR(0, 7423, __pyx_L1_error) __pyx_t_1 = __pyx_f_5imgui_4core__bytes(((PyObject*)__pyx_v_in_items)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7423, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 7423, __pyx_L1_error) /* "imgui/core.pyx":7422 * in_items = "\0".join(items) + "\0" * * return cimgui.Combo( # <<<<<<<<<<<<<< * _bytes(label), &inout_current, _bytes(in_items), height_in_items * ), inout_current */ try { __pyx_t_5 = ImGui::Combo(__pyx_t_3, (&__pyx_v_inout_current), __pyx_t_4, __pyx_v_height_in_items); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7422, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":7424 * return cimgui.Combo( * _bytes(label), &inout_current, _bytes(in_items), height_in_items * ), inout_current # <<<<<<<<<<<<<< * * */ __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_inout_current); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":7422 * in_items = "\0".join(items) + "\0" * * return cimgui.Combo( # <<<<<<<<<<<<<< * _bytes(label), &inout_current, _bytes(in_items), height_in_items * ), inout_current */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":7383 * * * def combo(str label, int current, list items, int height_in_items=-1): # <<<<<<<<<<<<<< * """Display combo widget. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.combo", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_in_items); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7427 * * * def color_edit3(str label, float r, float g, float b, cimgui.ImGuiColorEditFlags flags = 0): # <<<<<<<<<<<<<< * """Display color edit widget for color without alpha value. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_253color_edit3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_252color_edit3[] = "color_edit3(str label, float r, float g, float b, ImGuiColorEditFlags flags=0)\nDisplay color edit widget for color without alpha value.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n # note: the variable that contains the color data, should be initialized\n # outside of the main interaction loop\n color_1 = 1., .0, .5\n color_2 = 0., .8, .3\n\n imgui.begin(\"Example: color edit without alpha\")\n\n # note: first element of return two-tuple notifies if the color was changed\n # in currently processed frame and second element is current value\n # of color\n changed, color_1 = imgui.color_edit3(\"Color 1\", *color_1)\n changed, color_2 = imgui.color_edit3(\"Color 2\", *color_2)\n\n imgui.end()\n\n Args:\n label (str): color edit label.\n r (float): red color intensity.\n g (float): green color intensity.\n b (float): blue color instensity.\n flags (ImGuiColorEditFlags): Color edit flags. Zero for none.\n\n Returns:\n tuple: a ``(bool changed, float color[3])`` tuple that contains indicator of color\n change and current value of color\n\n .. wraps::\n bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_253color_edit3 = {"color_edit3", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_253color_edit3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_252color_edit3}; static PyObject *__pyx_pw_5imgui_4core_253color_edit3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; ImGuiColorEditFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("color_edit3 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_flags,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_edit3", 0, 4, 5, 1); __PYX_ERR(0, 7427, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_edit3", 0, 4, 5, 2); __PYX_ERR(0, 7427, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_edit3", 0, 4, 5, 3); __PYX_ERR(0, 7427, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "color_edit3") < 0)) __PYX_ERR(0, 7427, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_r = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7427, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7427, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7427, __pyx_L3_error) if (values[4]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiColorEditFlags(values[4]); if (unlikely((__pyx_v_flags == ((ImGuiColorEditFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7427, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiColorEditFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("color_edit3", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7427, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.color_edit3", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7427, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_252color_edit3(__pyx_self, __pyx_v_label, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_252color_edit3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, ImGuiColorEditFlags __pyx_v_flags) { float __pyx_v_inout_color[3]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[3]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; bool __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("color_edit3", 0); /* "imgui/core.pyx":7464 * """ * * cdef float[3] inout_color = [r, g, b] # <<<<<<<<<<<<<< * * return cimgui.ColorEdit3( */ __pyx_t_1[0] = __pyx_v_r; __pyx_t_1[1] = __pyx_v_g; __pyx_t_1[2] = __pyx_v_b; memcpy(&(__pyx_v_inout_color[0]), __pyx_t_1, sizeof(__pyx_v_inout_color[0]) * (3)); /* "imgui/core.pyx":7466 * cdef float[3] inout_color = [r, g, b] * * return cimgui.ColorEdit3( # <<<<<<<<<<<<<< * _bytes(label), (&inout_color), flags * ), (inout_color[0], inout_color[1], inout_color[2]) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7467 * * return cimgui.ColorEdit3( * _bytes(label), (&inout_color), flags # <<<<<<<<<<<<<< * ), (inout_color[0], inout_color[1], inout_color[2]) * */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7467, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 7467, __pyx_L1_error) /* "imgui/core.pyx":7466 * cdef float[3] inout_color = [r, g, b] * * return cimgui.ColorEdit3( # <<<<<<<<<<<<<< * _bytes(label), (&inout_color), flags * ), (inout_color[0], inout_color[1], inout_color[2]) */ try { __pyx_t_4 = ImGui::ColorEdit3(__pyx_t_3, ((float *)(&__pyx_v_inout_color)), __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7466, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":7468 * return cimgui.ColorEdit3( * _bytes(label), (&inout_color), flags * ), (inout_color[0], inout_color[1], inout_color[2]) # <<<<<<<<<<<<<< * * */ __pyx_t_5 = PyFloat_FromDouble((__pyx_v_inout_color[0])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyFloat_FromDouble((__pyx_v_inout_color[1])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_color[2])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7); __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0; /* "imgui/core.pyx":7466 * cdef float[3] inout_color = [r, g, b] * * return cimgui.ColorEdit3( # <<<<<<<<<<<<<< * _bytes(label), (&inout_color), flags * ), (inout_color[0], inout_color[1], inout_color[2]) */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); __pyx_t_2 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":7427 * * * def color_edit3(str label, float r, float g, float b, cimgui.ImGuiColorEditFlags flags = 0): # <<<<<<<<<<<<<< * """Display color edit widget for color without alpha value. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.color_edit3", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7471 * * * def color_edit4(str label, float r, float g, float b, float a, cimgui.ImGuiColorEditFlags flags = 0): # <<<<<<<<<<<<<< * """Display color edit widget for color with alpha value. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_255color_edit4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_254color_edit4[] = "color_edit4(str label, float r, float g, float b, float a, ImGuiColorEditFlags flags=0)\nDisplay color edit widget for color with alpha value.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n\n # note: the variable that contains the color data, should be initialized\n # outside of the main interaction loop\n color = 1., .0, .5, 1.\n\n imgui.begin(\"Example: color edit with alpha\")\n\n # note: first element of return two-tuple notifies if the color was changed\n # in currently processed frame and second element is current value\n # of color and alpha\n _, color = imgui.color_edit4(\"Alpha\", *color)\n _, color = imgui.color_edit4(\"No alpha\", *color, imgui.COLOR_EDIT_NO_ALPHA)\n\n imgui.end()\n\n Args:\n label (str): color edit label.\n r (float): red color intensity.\n g (float): green color intensity.\n b (float): blue color instensity.\n a (float): alpha intensity.\n flags (ImGuiColorEditFlags): Color edit flags. Zero for none.\n\n Returns:\n tuple: a ``(bool changed, float color[4])`` tuple that contains indicator of color\n change and current value of color and alpha\n\n .. wraps::\n ColorEdit4(\n const char* label, float col[4], ImGuiColorEditFlags flags\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_255color_edit4 = {"color_edit4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_255color_edit4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_254color_edit4}; static PyObject *__pyx_pw_5imgui_4core_255color_edit4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; float __pyx_v_a; ImGuiColorEditFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("color_edit4 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_a,&__pyx_n_s_flags,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_edit4", 0, 5, 6, 1); __PYX_ERR(0, 7471, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_edit4", 0, 5, 6, 2); __PYX_ERR(0, 7471, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_edit4", 0, 5, 6, 3); __PYX_ERR(0, 7471, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_edit4", 0, 5, 6, 4); __PYX_ERR(0, 7471, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "color_edit4") < 0)) __PYX_ERR(0, 7471, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_r = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7471, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7471, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7471, __pyx_L3_error) __pyx_v_a = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_a == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7471, __pyx_L3_error) if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiColorEditFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiColorEditFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7471, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiColorEditFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("color_edit4", 0, 5, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7471, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.color_edit4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7471, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_254color_edit4(__pyx_self, __pyx_v_label, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_254color_edit4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a, ImGuiColorEditFlags __pyx_v_flags) { float __pyx_v_inout_color[4]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[4]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; bool __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("color_edit4", 0); /* "imgui/core.pyx":7509 * ) * """ * cdef float[4] inout_color = [r, g, b, a] # <<<<<<<<<<<<<< * * return cimgui.ColorEdit4( */ __pyx_t_1[0] = __pyx_v_r; __pyx_t_1[1] = __pyx_v_g; __pyx_t_1[2] = __pyx_v_b; __pyx_t_1[3] = __pyx_v_a; memcpy(&(__pyx_v_inout_color[0]), __pyx_t_1, sizeof(__pyx_v_inout_color[0]) * (4)); /* "imgui/core.pyx":7511 * cdef float[4] inout_color = [r, g, b, a] * * return cimgui.ColorEdit4( # <<<<<<<<<<<<<< * _bytes(label), (&inout_color), flags * ), (inout_color[0], inout_color[1], inout_color[2], inout_color[3]) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7512 * * return cimgui.ColorEdit4( * _bytes(label), (&inout_color), flags # <<<<<<<<<<<<<< * ), (inout_color[0], inout_color[1], inout_color[2], inout_color[3]) * */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7512, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 7512, __pyx_L1_error) /* "imgui/core.pyx":7511 * cdef float[4] inout_color = [r, g, b, a] * * return cimgui.ColorEdit4( # <<<<<<<<<<<<<< * _bytes(label), (&inout_color), flags * ), (inout_color[0], inout_color[1], inout_color[2], inout_color[3]) */ try { __pyx_t_4 = ImGui::ColorEdit4(__pyx_t_3, ((float *)(&__pyx_v_inout_color)), __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7511, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":7513 * return cimgui.ColorEdit4( * _bytes(label), (&inout_color), flags * ), (inout_color[0], inout_color[1], inout_color[2], inout_color[3]) # <<<<<<<<<<<<<< * * */ __pyx_t_5 = PyFloat_FromDouble((__pyx_v_inout_color[0])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyFloat_FromDouble((__pyx_v_inout_color[1])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_color[2])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyFloat_FromDouble((__pyx_v_inout_color[3])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyTuple_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_8); __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; /* "imgui/core.pyx":7511 * cdef float[4] inout_color = [r, g, b, a] * * return cimgui.ColorEdit4( # <<<<<<<<<<<<<< * _bytes(label), (&inout_color), flags * ), (inout_color[0], inout_color[1], inout_color[2], inout_color[3]) */ __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "imgui/core.pyx":7471 * * * def color_edit4(str label, float r, float g, float b, float a, cimgui.ImGuiColorEditFlags flags = 0): # <<<<<<<<<<<<<< * """Display color edit widget for color with alpha value. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.color_edit4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7516 * * * def drag_float( # <<<<<<<<<<<<<< * str label, float value, * float change_speed = 1.0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_257drag_float(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_256drag_float[] = "drag_float(str label, float value, float change_speed=1.0, float min_value=0.0, float max_value=0.0, str format='%.3f', ImGuiSliderFlags flags=0, float power=1.)\nDisplay float drag widget.\n\n .. todo::\n Consider replacing ``format`` with something that allows\n for safer way to specify display format without loosing the\n functionality of wrapped function.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n value = 42.0\n\n imgui.begin(\"Example: drag float\")\n changed, value = imgui.drag_float(\n \"Default\", value,\n )\n changed, value = imgui.drag_float(\n \"Less precise\", value, format=\"%.1f\"\n )\n imgui.text(\"Changed: %s, Value: %s\" % (changed, value))\n imgui.end()\n\n Args:\n label (str): widget label.\n value (float): drag values,\n change_speed (float): how fast values change on drag.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** Highly unsafe when used without care.\n May lead to segmentation faults and other memory violation issues.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n power (float): OBSOLETED in ImGui 1.78 (from June 2020)\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n widget state change and the current drag value.\n\n .. wraps::\n bool DragFloat(\n const char* label,\n float* v,\n float v_speed = 1.0f,\n float v_min = 0.0f,\n float v_max = 0.0f,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_257drag_float = {"drag_float", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_257drag_float, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_256drag_float}; static PyObject *__pyx_pw_5imgui_4core_257drag_float(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value; float __pyx_v_change_speed; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; float __pyx_v_power; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_float (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,&__pyx_n_s_power,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; values[5] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float", 0, 2, 8, 1); __PYX_ERR(0, 7516, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_power); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_float") < 0)) __PYX_ERR(0, 7516, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7517, __pyx_L3_error) if (values[2]) { __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7518, __pyx_L3_error) } else { __pyx_v_change_speed = ((float)1.0); } if (values[3]) { __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7519, __pyx_L3_error) } else { __pyx_v_min_value = ((float)0.0); } if (values[4]) { __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7520, __pyx_L3_error) } else { __pyx_v_max_value = ((float)0.0); } __pyx_v_format = ((PyObject*)values[5]); if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7522, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } if (values[7]) { __pyx_v_power = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_power == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7523, __pyx_L3_error) } else { __pyx_v_power = ((float)1.); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_float", 0, 2, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7516, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_float", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7517, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 7521, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_256drag_float(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags, __pyx_v_power); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_256drag_float(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value, float __pyx_v_change_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power) { float __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_float", 0); /* "imgui/core.pyx":7577 * ) * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" # <<<<<<<<<<<<<< * cdef float inout_value = value * */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_power == 1.0) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_power_parameter_obsoleted_in_ImG); __PYX_ERR(0, 7577, __pyx_L1_error) } } #endif /* "imgui/core.pyx":7578 * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float inout_value = value # <<<<<<<<<<<<<< * * return cimgui.DragFloat( */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":7580 * cdef float inout_value = value * * return cimgui.DragFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7581 * * return cimgui.DragFloat( * _bytes(label), &inout_value, # <<<<<<<<<<<<<< * change_speed, min_value, max_value, _bytes(format), flags * ), inout_value */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7581, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 7581, __pyx_L1_error) /* "imgui/core.pyx":7582 * return cimgui.DragFloat( * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7582, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 7582, __pyx_L1_error) /* "imgui/core.pyx":7580 * cdef float inout_value = value * * return cimgui.DragFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags */ try { __pyx_t_5 = ImGui::DragFloat(__pyx_t_2, (&__pyx_v_inout_value), __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7580, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "imgui/core.pyx":7583 * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags * ), inout_value # <<<<<<<<<<<<<< * * */ __pyx_t_1 = PyFloat_FromDouble(__pyx_v_inout_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":7580 * cdef float inout_value = value * * return cimgui.DragFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":7516 * * * def drag_float( # <<<<<<<<<<<<<< * str label, float value, * float change_speed = 1.0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.drag_float", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7586 * * * def drag_float2( # <<<<<<<<<<<<<< * str label, float value0, float value1, * float change_speed = 1.0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_259drag_float2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_258drag_float2[] = "drag_float2(str label, float value0, float value1, float change_speed=1.0, float min_value=0.0, float max_value=0.0, str format='%.3f', ImGuiSliderFlags flags=0, float power=1.)\nDisplay float drag widget with 2 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88.0, 42.0\n\n imgui.begin(\"Example: drag float\")\n changed, values = imgui.drag_float2(\n \"Default\", *values\n )\n changed, values = imgui.drag_float2(\n \"Less precise\", *values, format=\"%.1f\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1 (float): drag values.\n change_speed (float): how fast values change on drag.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_float()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n power (float): OBSOLETED in ImGui 1.78 (from June 2020)\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current drag values.\n\n .. wraps::\n bool DragFloat2(\n const char* label,\n float v[2],\n float v_speed = 1.0f,\n float v_min = 0.0f,\n float v_max = 0.0f,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_259drag_float2 = {"drag_float2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_259drag_float2, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_258drag_float2}; static PyObject *__pyx_pw_5imgui_4core_259drag_float2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; float __pyx_v_change_speed; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; float __pyx_v_power; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_float2 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,&__pyx_n_s_power,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; values[6] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float2", 0, 3, 9, 1); __PYX_ERR(0, 7586, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float2", 0, 3, 9, 2); __PYX_ERR(0, 7586, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_power); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_float2") < 0)) __PYX_ERR(0, 7586, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7587, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7587, __pyx_L3_error) if (values[3]) { __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7588, __pyx_L3_error) } else { __pyx_v_change_speed = ((float)1.0); } if (values[4]) { __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7589, __pyx_L3_error) } else { __pyx_v_min_value = ((float)0.0); } if (values[5]) { __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7590, __pyx_L3_error) } else { __pyx_v_max_value = ((float)0.0); } __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7592, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } if (values[8]) { __pyx_v_power = __pyx_PyFloat_AsFloat(values[8]); if (unlikely((__pyx_v_power == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7593, __pyx_L3_error) } else { __pyx_v_power = ((float)1.); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_float2", 0, 3, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7586, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_float2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7587, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 7591, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_258drag_float2(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags, __pyx_v_power); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_258drag_float2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_change_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power) { float __pyx_v_inout_values[2]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[2]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_float2", 0); /* "imgui/core.pyx":7641 * ) * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" # <<<<<<<<<<<<<< * cdef float[2] inout_values = [value0, value1] * return cimgui.DragFloat2( */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_power == 1.0) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_power_parameter_obsoleted_in_ImG); __PYX_ERR(0, 7641, __pyx_L1_error) } } #endif /* "imgui/core.pyx":7642 * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[2] inout_values = [value0, value1] # <<<<<<<<<<<<<< * return cimgui.DragFloat2( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (2)); /* "imgui/core.pyx":7643 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[2] inout_values = [value0, value1] * return cimgui.DragFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7644 * cdef float[2] inout_values = [value0, value1] * return cimgui.DragFloat2( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7644, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 7644, __pyx_L1_error) /* "imgui/core.pyx":7645 * return cimgui.DragFloat2( * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7645, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 7645, __pyx_L1_error) /* "imgui/core.pyx":7643 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[2] inout_values = [value0, value1] * return cimgui.DragFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::DragFloat2(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7643, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":7646 * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7); __pyx_t_2 = 0; __pyx_t_7 = 0; /* "imgui/core.pyx":7643 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[2] inout_values = [value0, value1] * return cimgui.DragFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); __pyx_t_4 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":7586 * * * def drag_float2( # <<<<<<<<<<<<<< * str label, float value0, float value1, * float change_speed = 1.0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.drag_float2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7649 * * * def drag_float3( # <<<<<<<<<<<<<< * str label, float value0, float value1, float value2, * float change_speed = 1.0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_261drag_float3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_260drag_float3[] = "drag_float3(str label, float value0, float value1, float value2, float change_speed=1.0, float min_value=0.0, float max_value=0.0, str format='%.3f', ImGuiSliderFlags flags=0, float power=1.)\nDisplay float drag widget with 3 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88.0, 42.0, 69.0\n\n imgui.begin(\"Example: drag float\")\n changed, values = imgui.drag_float3(\n \"Default\", *values\n )\n changed, values = imgui.drag_float3(\n \"Less precise\", *values, format=\"%.1f\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2 (float): drag values.\n change_speed (float): how fast values change on drag.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_float()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n power (float): OBSOLETED in ImGui 1.78 (from June 2020)\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current drag values.\n\n .. wraps::\n bool DragFloat3(\n const char* label,\n float v[3],\n float v_speed = 1.0f,\n float v_min = 0.0f,\n float v_max = 0.0f,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_261drag_float3 = {"drag_float3", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_261drag_float3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_260drag_float3}; static PyObject *__pyx_pw_5imgui_4core_261drag_float3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; float __pyx_v_value2; float __pyx_v_change_speed; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; float __pyx_v_power; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_float3 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,&__pyx_n_s_power,0}; PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0}; values[7] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float3", 0, 4, 10, 1); __PYX_ERR(0, 7649, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float3", 0, 4, 10, 2); __PYX_ERR(0, 7649, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float3", 0, 4, 10, 3); __PYX_ERR(0, 7649, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[8] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 9: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_power); if (value) { values[9] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_float3") < 0)) __PYX_ERR(0, 7649, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7650, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7650, __pyx_L3_error) __pyx_v_value2 = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_value2 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7650, __pyx_L3_error) if (values[4]) { __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7651, __pyx_L3_error) } else { __pyx_v_change_speed = ((float)1.0); } if (values[5]) { __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7652, __pyx_L3_error) } else { __pyx_v_min_value = ((float)0.0); } if (values[6]) { __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7653, __pyx_L3_error) } else { __pyx_v_max_value = ((float)0.0); } __pyx_v_format = ((PyObject*)values[7]); if (values[8]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[8]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7655, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } if (values[9]) { __pyx_v_power = __pyx_PyFloat_AsFloat(values[9]); if (unlikely((__pyx_v_power == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7656, __pyx_L3_error) } else { __pyx_v_power = ((float)1.); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_float3", 0, 4, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7649, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_float3", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7650, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 7654, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_260drag_float3(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags, __pyx_v_power); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_260drag_float3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_change_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power) { float __pyx_v_inout_values[3]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[3]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_float3", 0); /* "imgui/core.pyx":7704 * ) * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" # <<<<<<<<<<<<<< * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.DragFloat3( */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_power == 1.0) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_power_parameter_obsoleted_in_ImG); __PYX_ERR(0, 7704, __pyx_L1_error) } } #endif /* "imgui/core.pyx":7705 * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[3] inout_values = [value0, value1, value2] # <<<<<<<<<<<<<< * return cimgui.DragFloat3( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (3)); /* "imgui/core.pyx":7706 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.DragFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7707 * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.DragFloat3( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7707, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 7707, __pyx_L1_error) /* "imgui/core.pyx":7708 * return cimgui.DragFloat3( * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7708, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 7708, __pyx_L1_error) /* "imgui/core.pyx":7706 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.DragFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::DragFloat3(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7706, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":7709 * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyFloat_FromDouble((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_8); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; /* "imgui/core.pyx":7706 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.DragFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); __pyx_t_4 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "imgui/core.pyx":7649 * * * def drag_float3( # <<<<<<<<<<<<<< * str label, float value0, float value1, float value2, * float change_speed = 1.0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.drag_float3", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7712 * * * def drag_float4( # <<<<<<<<<<<<<< * str label, float value0, float value1, float value2, float value3, * float change_speed = 1.0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_263drag_float4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_262drag_float4[] = "drag_float4(str label, float value0, float value1, float value2, float value3, float change_speed=1.0, float min_value=0.0, float max_value=0.0, str format='%.3f', ImGuiSliderFlags flags=0, float power=1.)\nDisplay float drag widget with 4 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88.0, 42.0, 69.0, 0.0\n\n imgui.begin(\"Example: drag float\")\n changed, values = imgui.drag_float4(\n \"Default\", *values\n )\n changed, values = imgui.drag_float4(\n \"Less precise\", *values, format=\"%.1f\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2, value3 (float): drag values.\n change_speed (float): how fast values change on drag.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_float()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n power (float): OBSOLETED in ImGui 1.78 (from June 2020)\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current drag values.\n\n .. wraps::\n bool DragFloat4(\n const char* label,\n float v[4],\n float v_speed = 1.0f,\n float v_min = 0.0f,\n float v_max = 0.0f,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_263drag_float4 = {"drag_float4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_263drag_float4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_262drag_float4}; static PyObject *__pyx_pw_5imgui_4core_263drag_float4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; float __pyx_v_value2; float __pyx_v_value3; float __pyx_v_change_speed; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; float __pyx_v_power; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_float4 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_value3,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,&__pyx_n_s_power,0}; PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0}; values[8] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10); CYTHON_FALLTHROUGH; case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float4", 0, 5, 11, 1); __PYX_ERR(0, 7712, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float4", 0, 5, 11, 2); __PYX_ERR(0, 7712, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float4", 0, 5, 11, 3); __PYX_ERR(0, 7712, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value3)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float4", 0, 5, 11, 4); __PYX_ERR(0, 7712, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[8] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 9: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[9] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 10: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_power); if (value) { values[10] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_float4") < 0)) __PYX_ERR(0, 7712, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10); CYTHON_FALLTHROUGH; case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7713, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7713, __pyx_L3_error) __pyx_v_value2 = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_value2 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7713, __pyx_L3_error) __pyx_v_value3 = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_value3 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7713, __pyx_L3_error) if (values[5]) { __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7714, __pyx_L3_error) } else { __pyx_v_change_speed = ((float)1.0); } if (values[6]) { __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7715, __pyx_L3_error) } else { __pyx_v_min_value = ((float)0.0); } if (values[7]) { __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7716, __pyx_L3_error) } else { __pyx_v_max_value = ((float)0.0); } __pyx_v_format = ((PyObject*)values[8]); if (values[9]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[9]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7718, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } if (values[10]) { __pyx_v_power = __pyx_PyFloat_AsFloat(values[10]); if (unlikely((__pyx_v_power == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7719, __pyx_L3_error) } else { __pyx_v_power = ((float)1.); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_float4", 0, 5, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7712, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_float4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7713, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 7717, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_262drag_float4(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_value3, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags, __pyx_v_power); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_262drag_float4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_value3, float __pyx_v_change_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power) { float __pyx_v_inout_values[4]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[4]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_float4", 0); /* "imgui/core.pyx":7767 * ) * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" # <<<<<<<<<<<<<< * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragFloat4( */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_power == 1.0) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_power_parameter_obsoleted_in_ImG); __PYX_ERR(0, 7767, __pyx_L1_error) } } #endif /* "imgui/core.pyx":7768 * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[4] inout_values = [value0, value1, value2, value3] # <<<<<<<<<<<<<< * return cimgui.DragFloat4( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; __pyx_t_1[3] = __pyx_v_value3; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (4)); /* "imgui/core.pyx":7769 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7770 * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragFloat4( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7770, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 7770, __pyx_L1_error) /* "imgui/core.pyx":7771 * return cimgui.DragFloat4( * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7771, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 7771, __pyx_L1_error) /* "imgui/core.pyx":7769 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::DragFloat4(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7769, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":7772 * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) # <<<<<<<<<<<<<< * * def drag_float_range2( */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyFloat_FromDouble((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyFloat_FromDouble((__pyx_v_inout_values[3])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyTuple_New(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; /* "imgui/core.pyx":7769 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_10); __pyx_t_4 = 0; __pyx_t_10 = 0; __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; /* "imgui/core.pyx":7712 * * * def drag_float4( # <<<<<<<<<<<<<< * str label, float value0, float value1, float value2, float value3, * float change_speed = 1.0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("imgui.core.drag_float4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7774 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_float_range2( # <<<<<<<<<<<<<< * str label, * float current_min, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_265drag_float_range2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_264drag_float_range2[] = "drag_float_range2(str label, float current_min, float current_max, float speed=1.0, float min_value=0.0, float max_value=0.0, str format='%.3f', str format_max=None, ImGuiSliderFlags flags=0)\nDisplay drag float range widget\n\n Args:\n label (str): widget label\n current_min (float): current value of minimum\n current_max (float): current value of maximum\n speed (float): widget speed of change\n min_value (float): minimal possible value\n max_value (float): maximal possible value\n format (str): display format\n format_max (str): display format for maximum. If None, ``format`` parameter is used.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a (changed, current_min, current_max) tuple, where ``changed`` indicate\n that the value has been updated.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n vmin = 0\n vmax = 100\n\n imgui.begin(\"Example: drag float range\")\n changed, vmin, vmax = imgui.drag_float_range2( \"Drag Range\", vmin, vmax )\n imgui.text(\"Changed: %s, Range: (%.2f, %.2f)\" % (changed, vmin, vmax))\n imgui.end()\n\n\n .. wraps::\n bool DragFloatRange2(\n const char* label,\n float* v_current_min,\n float* v_current_max,\n float v_speed = 1.0f,\n float v_min = 0.0f,\n float v_max = 0.0f,\n const char* format = \"%.3f\",\n const char* format_max = NULL,\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_265drag_float_range2 = {"drag_float_range2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_265drag_float_range2, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_264drag_float_range2}; static PyObject *__pyx_pw_5imgui_4core_265drag_float_range2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_current_min; float __pyx_v_current_max; float __pyx_v_speed; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; PyObject *__pyx_v_format_max = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_float_range2 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_current_min,&__pyx_n_s_current_max,&__pyx_n_s_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_format_max,&__pyx_n_s_flags,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; values[6] = ((PyObject*)__pyx_kp_s_3f); /* "imgui/core.pyx":7782 * float max_value = 0.0, * str format = "%.3f", * str format_max = None, # <<<<<<<<<<<<<< * cimgui.ImGuiSliderFlags flags = 0 * ): */ values[7] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_current_min)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float_range2", 0, 3, 9, 1); __PYX_ERR(0, 7774, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_current_max)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_float_range2", 0, 3, 9, 2); __PYX_ERR(0, 7774, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_speed); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format_max); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_float_range2") < 0)) __PYX_ERR(0, 7774, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_current_min = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_current_min == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7776, __pyx_L3_error) __pyx_v_current_max = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_current_max == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7777, __pyx_L3_error) if (values[3]) { __pyx_v_speed = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7778, __pyx_L3_error) } else { __pyx_v_speed = ((float)1.0); } if (values[4]) { __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7779, __pyx_L3_error) } else { __pyx_v_min_value = ((float)0.0); } if (values[5]) { __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7780, __pyx_L3_error) } else { __pyx_v_max_value = ((float)0.0); } __pyx_v_format = ((PyObject*)values[6]); __pyx_v_format_max = ((PyObject*)values[7]); if (values[8]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[8]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7783, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_float_range2", 0, 3, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7774, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_float_range2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7775, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 7781, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format_max), (&PyString_Type), 1, "format_max", 1))) __PYX_ERR(0, 7782, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_264drag_float_range2(__pyx_self, __pyx_v_label, __pyx_v_current_min, __pyx_v_current_max, __pyx_v_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_format_max, __pyx_v_flags); /* "imgui/core.pyx":7774 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_float_range2( # <<<<<<<<<<<<<< * str label, * float current_min, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_264drag_float_range2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_current_min, float __pyx_v_current_max, float __pyx_v_speed, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, PyObject *__pyx_v_format_max, ImGuiSliderFlags __pyx_v_flags) { float __pyx_v_inout_current_min; float __pyx_v_inout_current_max; PyObject *__pyx_v_b_format_max = 0; char *__pyx_v_p_format_max; bool __pyx_v_changed; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char *__pyx_t_4; char const *__pyx_t_5; PyObject *__pyx_t_6 = NULL; char const *__pyx_t_7; bool __pyx_t_8; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_float_range2", 0); /* "imgui/core.pyx":7831 * """ * * cdef float inout_current_min = current_min # <<<<<<<<<<<<<< * cdef float inout_current_max = current_max * */ __pyx_v_inout_current_min = __pyx_v_current_min; /* "imgui/core.pyx":7832 * * cdef float inout_current_min = current_min * cdef float inout_current_max = current_max # <<<<<<<<<<<<<< * * cdef bytes b_format_max; */ __pyx_v_inout_current_max = __pyx_v_current_max; /* "imgui/core.pyx":7835 * * cdef bytes b_format_max; * cdef char* p_format_max = NULL # <<<<<<<<<<<<<< * if format_max is not None: * b_format_max = _bytes(format_max) */ __pyx_v_p_format_max = NULL; /* "imgui/core.pyx":7836 * cdef bytes b_format_max; * cdef char* p_format_max = NULL * if format_max is not None: # <<<<<<<<<<<<<< * b_format_max = _bytes(format_max) * p_format_max = b_format_max */ __pyx_t_1 = (__pyx_v_format_max != ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":7837 * cdef char* p_format_max = NULL * if format_max is not None: * b_format_max = _bytes(format_max) # <<<<<<<<<<<<<< * p_format_max = b_format_max * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format_max); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_b_format_max = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":7838 * if format_max is not None: * b_format_max = _bytes(format_max) * p_format_max = b_format_max # <<<<<<<<<<<<<< * * changed = cimgui.DragFloatRange2( */ if (unlikely(__pyx_v_b_format_max == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7838, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsWritableString(__pyx_v_b_format_max); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 7838, __pyx_L1_error) __pyx_v_p_format_max = __pyx_t_4; /* "imgui/core.pyx":7836 * cdef bytes b_format_max; * cdef char* p_format_max = NULL * if format_max is not None: # <<<<<<<<<<<<<< * b_format_max = _bytes(format_max) * p_format_max = b_format_max */ } /* "imgui/core.pyx":7841 * * changed = cimgui.DragFloatRange2( * _bytes(label), # <<<<<<<<<<<<<< * &inout_current_min, * &inout_current_max, */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7841, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 7841, __pyx_L1_error) /* "imgui/core.pyx":7847 * min_value, * max_value, * _bytes(format), # <<<<<<<<<<<<<< * p_format_max, * flags */ __pyx_t_6 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__pyx_t_6 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7847, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyBytes_AsString(__pyx_t_6); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 7847, __pyx_L1_error) /* "imgui/core.pyx":7840 * p_format_max = b_format_max * * changed = cimgui.DragFloatRange2( # <<<<<<<<<<<<<< * _bytes(label), * &inout_current_min, */ try { __pyx_t_8 = ImGui::DragFloatRange2(__pyx_t_5, (&__pyx_v_inout_current_min), (&__pyx_v_inout_current_max), __pyx_v_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_7, __pyx_v_p_format_max, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7840, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_changed = __pyx_t_8; /* "imgui/core.pyx":7852 * ) * * return changed, inout_current_min, inout_current_max # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_changed); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = PyFloat_FromDouble(__pyx_v_inout_current_min); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = PyFloat_FromDouble(__pyx_v_inout_current_max); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_9); __pyx_t_6 = 0; __pyx_t_3 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_10; __pyx_t_10 = 0; goto __pyx_L0; /* "imgui/core.pyx":7774 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_float_range2( # <<<<<<<<<<<<<< * str label, * float current_min, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("imgui.core.drag_float_range2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_b_format_max); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7856 * * * def drag_int( # <<<<<<<<<<<<<< * str label, int value, * float change_speed = 1.0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_267drag_int(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_266drag_int[] = "drag_int(str label, int value, float change_speed=1.0, int min_value=0, int max_value=0, str format='%d', ImGuiSliderFlags flags=0)\nDisplay int drag widget.\n\n .. todo::\n Consider replacing ``format`` with something that allows\n for safer way to specify display format without loosing the\n functionality of wrapped function.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n value = 42\n\n imgui.begin(\"Example: drag int\")\n changed, value = imgui.drag_int(\"drag int\", value,)\n imgui.text(\"Changed: %s, Value: %s\" % (changed, value))\n imgui.end()\n\n Args:\n label (str): widget label.\n value (int): drag value,\n change_speed (float): how fast values change on drag.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** Highly unsafe when used without care.\n May lead to segmentation faults and other memory violation issues.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n widget state change and the current drag value.\n\n .. wraps::\n bool DragInt(\n const char* label,\n int* v,\n float v_speed = 1.0f,\n int v_min = 0.0f,\n int v_max = 0.0f,\n const char* format = \"%d\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_267drag_int = {"drag_int", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_267drag_int, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_266drag_int}; static PyObject *__pyx_pw_5imgui_4core_267drag_int(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value; float __pyx_v_change_speed; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_int (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; values[5] = ((PyObject*)__pyx_kp_s_d); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int", 0, 2, 7, 1); __PYX_ERR(0, 7856, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_int") < 0)) __PYX_ERR(0, 7856, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7857, __pyx_L3_error) if (values[2]) { __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7858, __pyx_L3_error) } else { __pyx_v_change_speed = ((float)1.0); } if (values[3]) { __pyx_v_min_value = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7859, __pyx_L3_error) } else { __pyx_v_min_value = ((int)0); } if (values[4]) { __pyx_v_max_value = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7860, __pyx_L3_error) } else { __pyx_v_max_value = ((int)0); } __pyx_v_format = ((PyObject*)values[5]); if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7862, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_int", 0, 2, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7856, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_int", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7857, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 7861, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_266drag_int(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_266drag_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value, float __pyx_v_change_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_int", 0); /* "imgui/core.pyx":7910 * ) * """ * cdef int inout_value = value # <<<<<<<<<<<<<< * * return cimgui.DragInt( */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":7912 * cdef int inout_value = value * * return cimgui.DragInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7913 * * return cimgui.DragInt( * _bytes(label), &inout_value, # <<<<<<<<<<<<<< * change_speed, min_value, max_value, _bytes(format), flags * ), inout_value */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7913, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 7913, __pyx_L1_error) /* "imgui/core.pyx":7914 * return cimgui.DragInt( * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7914, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 7914, __pyx_L1_error) /* "imgui/core.pyx":7912 * cdef int inout_value = value * * return cimgui.DragInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags */ try { __pyx_t_5 = ImGui::DragInt(__pyx_t_2, (&__pyx_v_inout_value), __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7912, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "imgui/core.pyx":7915 * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags * ), inout_value # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_inout_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":7912 * cdef int inout_value = value * * return cimgui.DragInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * change_speed, min_value, max_value, _bytes(format), flags */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":7856 * * * def drag_int( # <<<<<<<<<<<<<< * str label, int value, * float change_speed = 1.0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.drag_int", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7918 * * * def drag_int2( # <<<<<<<<<<<<<< * str label, int value0, int value1, * float change_speed = 1.0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_269drag_int2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_268drag_int2[] = "drag_int2(str label, int value0, int value1, float change_speed=1.0, int min_value=0, int max_value=0, str format='%d', ImGuiSliderFlags flags=0)\nDisplay int drag widget with 2 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88, 42\n\n imgui.begin(\"Example: drag int\")\n changed, values = imgui.drag_int2(\n \"drag ints\", *values\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1 (int): drag values.\n change_speed (float): how fast values change on drag.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_int()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current drag values.\n\n .. wraps::\n bool DragInt2(\n const char* label,\n int v[2],\n float v_speed = 1.0f,\n int v_min = 0.0f,\n int v_max = 0.0f,\n const char* format = \"%d\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_269drag_int2 = {"drag_int2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_269drag_int2, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_268drag_int2}; static PyObject *__pyx_pw_5imgui_4core_269drag_int2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; float __pyx_v_change_speed; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_int2 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; values[6] = ((PyObject*)__pyx_kp_s_d); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int2", 0, 3, 8, 1); __PYX_ERR(0, 7918, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int2", 0, 3, 8, 2); __PYX_ERR(0, 7918, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_int2") < 0)) __PYX_ERR(0, 7918, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7919, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7919, __pyx_L3_error) if (values[3]) { __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7920, __pyx_L3_error) } else { __pyx_v_change_speed = ((float)1.0); } if (values[4]) { __pyx_v_min_value = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7921, __pyx_L3_error) } else { __pyx_v_min_value = ((int)0); } if (values[5]) { __pyx_v_max_value = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7922, __pyx_L3_error) } else { __pyx_v_max_value = ((int)0); } __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7924, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_int2", 0, 3, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7918, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_int2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7919, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 7923, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_268drag_int2(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_268drag_int2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, float __pyx_v_change_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_values[2]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[2]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_int2", 0); /* "imgui/core.pyx":7968 * ) * """ * cdef int[2] inout_values = [value0, value1] # <<<<<<<<<<<<<< * return cimgui.DragInt2( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (2)); /* "imgui/core.pyx":7969 * """ * cdef int[2] inout_values = [value0, value1] * return cimgui.DragInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":7970 * cdef int[2] inout_values = [value0, value1] * return cimgui.DragInt2( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7970, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 7970, __pyx_L1_error) /* "imgui/core.pyx":7971 * return cimgui.DragInt2( * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 7971, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 7971, __pyx_L1_error) /* "imgui/core.pyx":7969 * """ * cdef int[2] inout_values = [value0, value1] * return cimgui.DragInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::DragInt2(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 7969, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":7972 * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7); __pyx_t_2 = 0; __pyx_t_7 = 0; /* "imgui/core.pyx":7969 * """ * cdef int[2] inout_values = [value0, value1] * return cimgui.DragInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); __pyx_t_4 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":7918 * * * def drag_int2( # <<<<<<<<<<<<<< * str label, int value0, int value1, * float change_speed = 1.0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.drag_int2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":7975 * * * def drag_int3( # <<<<<<<<<<<<<< * str label, int value0, int value1, int value2, * float change_speed = 1.0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_271drag_int3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_270drag_int3[] = "drag_int3(str label, int value0, int value1, int value2, float change_speed=1.0, int min_value=0, int max_value=0, str format='%d', ImGuiSliderFlags flags=0)\nDisplay int drag widget with 3 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88, 42, 69\n\n imgui.begin(\"Example: drag int\")\n changed, values = imgui.drag_int3(\n \"drag ints\", *values\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1 (int): drag values.\n change_speed (float): how fast values change on drag.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_int()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current drag values.\n\n .. wraps::\n bool DragInt3(\n const char* label,\n int v[3],\n float v_speed = 1.0f,\n int v_min = 0.0f,\n int v_max = 0.0f,\n const char* format = \"%d\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_271drag_int3 = {"drag_int3", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_271drag_int3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_270drag_int3}; static PyObject *__pyx_pw_5imgui_4core_271drag_int3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; int __pyx_v_value2; float __pyx_v_change_speed; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_int3 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; values[7] = ((PyObject*)__pyx_kp_s_d); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int3", 0, 4, 9, 1); __PYX_ERR(0, 7975, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int3", 0, 4, 9, 2); __PYX_ERR(0, 7975, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int3", 0, 4, 9, 3); __PYX_ERR(0, 7975, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_int3") < 0)) __PYX_ERR(0, 7975, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7976, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7976, __pyx_L3_error) __pyx_v_value2 = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_value2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7976, __pyx_L3_error) if (values[4]) { __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 7977, __pyx_L3_error) } else { __pyx_v_change_speed = ((float)1.0); } if (values[5]) { __pyx_v_min_value = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7978, __pyx_L3_error) } else { __pyx_v_min_value = ((int)0); } if (values[6]) { __pyx_v_max_value = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7979, __pyx_L3_error) } else { __pyx_v_max_value = ((int)0); } __pyx_v_format = ((PyObject*)values[7]); if (values[8]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[8]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 7981, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_int3", 0, 4, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7975, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_int3", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 7976, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 7980, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_270drag_int3(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_270drag_int3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, float __pyx_v_change_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_values[3]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[3]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_int3", 0); /* "imgui/core.pyx":8025 * ) * """ * cdef int[3] inout_values = [value0, value1, value2] # <<<<<<<<<<<<<< * return cimgui.DragInt3( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (3)); /* "imgui/core.pyx":8026 * """ * cdef int[3] inout_values = [value0, value1, value2] * return cimgui.DragInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8027 * cdef int[3] inout_values = [value0, value1, value2] * return cimgui.DragInt3( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8027, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 8027, __pyx_L1_error) /* "imgui/core.pyx":8028 * return cimgui.DragInt3( * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8028, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 8028, __pyx_L1_error) /* "imgui/core.pyx":8026 * """ * cdef int[3] inout_values = [value0, value1, value2] * return cimgui.DragInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::DragInt3(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8026, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":8029 * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_From_int((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_8); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; /* "imgui/core.pyx":8026 * """ * cdef int[3] inout_values = [value0, value1, value2] * return cimgui.DragInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); __pyx_t_4 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "imgui/core.pyx":7975 * * * def drag_int3( # <<<<<<<<<<<<<< * str label, int value0, int value1, int value2, * float change_speed = 1.0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.drag_int3", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8032 * * * def drag_int4( # <<<<<<<<<<<<<< * str label, int value0, int value1, int value2, int value3, * float change_speed = 1.0, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_273drag_int4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_272drag_int4[] = "drag_int4(str label, int value0, int value1, int value2, int value3, float change_speed=1.0, int min_value=0, int max_value=0, str format='%d', ImGuiSliderFlags flags=0)\nDisplay int drag widget with 4 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88, 42, 69, 0\n\n imgui.begin(\"Example: drag int\")\n changed, values = imgui.drag_int4(\n \"drag ints\", *values\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1 (int): drag values.\n change_speed (float): how fast values change on drag.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_int()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current drag values.\n\n .. wraps::\n bool DragInt4(\n const char* label,\n int v[4],\n float v_speed = 1.0f,\n int v_min = 0.0f,\n int v_max = 0.0f,\n const char* format = \"%d\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_273drag_int4 = {"drag_int4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_273drag_int4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_272drag_int4}; static PyObject *__pyx_pw_5imgui_4core_273drag_int4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; int __pyx_v_value2; int __pyx_v_value3; float __pyx_v_change_speed; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_int4 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_value3,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0}; values[8] = ((PyObject*)__pyx_kp_s_d); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int4", 0, 5, 10, 1); __PYX_ERR(0, 8032, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int4", 0, 5, 10, 2); __PYX_ERR(0, 8032, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int4", 0, 5, 10, 3); __PYX_ERR(0, 8032, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value3)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int4", 0, 5, 10, 4); __PYX_ERR(0, 8032, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[8] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 9: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[9] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_int4") < 0)) __PYX_ERR(0, 8032, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8033, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8033, __pyx_L3_error) __pyx_v_value2 = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_value2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8033, __pyx_L3_error) __pyx_v_value3 = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_value3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8033, __pyx_L3_error) if (values[5]) { __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8034, __pyx_L3_error) } else { __pyx_v_change_speed = ((float)1.0); } if (values[6]) { __pyx_v_min_value = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8035, __pyx_L3_error) } else { __pyx_v_min_value = ((int)0); } if (values[7]) { __pyx_v_max_value = __Pyx_PyInt_As_int(values[7]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8036, __pyx_L3_error) } else { __pyx_v_max_value = ((int)0); } __pyx_v_format = ((PyObject*)values[8]); if (values[9]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[9]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8038, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_int4", 0, 5, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8032, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_int4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8033, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8037, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_272drag_int4(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_value3, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_272drag_int4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, int __pyx_v_value3, float __pyx_v_change_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_values[4]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[4]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_int4", 0); /* "imgui/core.pyx":8082 * ) * """ * cdef int[4] inout_values = [value0, value1, value2, value3] # <<<<<<<<<<<<<< * return cimgui.DragInt4( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; __pyx_t_1[3] = __pyx_v_value3; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (4)); /* "imgui/core.pyx":8083 * """ * cdef int[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8084 * cdef int[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragInt4( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8084, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 8084, __pyx_L1_error) /* "imgui/core.pyx":8085 * return cimgui.DragInt4( * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8085, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 8085, __pyx_L1_error) /* "imgui/core.pyx":8083 * """ * cdef int[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::DragInt4(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8083, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":8086 * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) # <<<<<<<<<<<<<< * * def drag_int_range2( */ __pyx_t_2 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_From_int((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_inout_values[3])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyTuple_New(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; /* "imgui/core.pyx":8083 * """ * cdef int[4] inout_values = [value0, value1, value2, value3] * return cimgui.DragInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * change_speed, min_value, max_value, _bytes(format), flags */ __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_10); __pyx_t_4 = 0; __pyx_t_10 = 0; __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; /* "imgui/core.pyx":8032 * * * def drag_int4( # <<<<<<<<<<<<<< * str label, int value0, int value1, int value2, int value3, * float change_speed = 1.0, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("imgui.core.drag_int4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8088 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_int_range2( # <<<<<<<<<<<<<< * str label, * int current_min, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_275drag_int_range2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_274drag_int_range2[] = "drag_int_range2(str label, int current_min, int current_max, float speed=1.0, int min_value=0, int max_value=0, str format='%d', str format_max=None, ImGuiSliderFlags flags=0)\nDisplay drag int range widget\n\n Args:\n label (str): widget label\n current_min (int): current value of minimum\n current_max (int): current value of maximum\n speed (float): widget speed of change\n min_value (int): minimal possible value\n max_value (int): maximal possible value\n format (str): display format\n format_max (str): display format for maximum. If None, ``format`` parameter is used.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a (changed, current_min, current_max) tuple, where ``changed`` indicate\n that the value has been updated.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n vmin = 0\n vmax = 100\n\n imgui.begin(\"Example: drag float range\")\n changed, vmin, vmax = imgui.drag_int_range2( \"Drag Range\", vmin, vmax )\n imgui.text(\"Changed: %s, Range: (%d, %d)\" % (changed, vmin, vmax))\n imgui.end()\n\n\n .. wraps::\n bool DragIntRange2(\n const char* label,\n int* v_current_min,\n int* v_current_max,\n float v_speed = 1.0f,\n int v_min = 0,\n int v_max = 0,\n const char* format = \"%d\",\n const char* format_max = NULL,\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_275drag_int_range2 = {"drag_int_range2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_275drag_int_range2, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_274drag_int_range2}; static PyObject *__pyx_pw_5imgui_4core_275drag_int_range2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_current_min; int __pyx_v_current_max; float __pyx_v_speed; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; PyObject *__pyx_v_format_max = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_int_range2 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_current_min,&__pyx_n_s_current_max,&__pyx_n_s_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_format_max,&__pyx_n_s_flags,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; values[6] = ((PyObject*)__pyx_kp_s_d); /* "imgui/core.pyx":8096 * int max_value = 0, * str format = "%d", * str format_max = None, # <<<<<<<<<<<<<< * cimgui.ImGuiSliderFlags flags = 0 * ): */ values[7] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_current_min)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int_range2", 0, 3, 9, 1); __PYX_ERR(0, 8088, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_current_max)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_int_range2", 0, 3, 9, 2); __PYX_ERR(0, 8088, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_speed); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format_max); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_int_range2") < 0)) __PYX_ERR(0, 8088, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_current_min = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_current_min == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8090, __pyx_L3_error) __pyx_v_current_max = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_current_max == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8091, __pyx_L3_error) if (values[3]) { __pyx_v_speed = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8092, __pyx_L3_error) } else { __pyx_v_speed = ((float)1.0); } if (values[4]) { __pyx_v_min_value = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8093, __pyx_L3_error) } else { __pyx_v_min_value = ((int)0); } if (values[5]) { __pyx_v_max_value = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8094, __pyx_L3_error) } else { __pyx_v_max_value = ((int)0); } __pyx_v_format = ((PyObject*)values[6]); __pyx_v_format_max = ((PyObject*)values[7]); if (values[8]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[8]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8097, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_int_range2", 0, 3, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8088, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_int_range2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8089, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8095, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format_max), (&PyString_Type), 1, "format_max", 1))) __PYX_ERR(0, 8096, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_274drag_int_range2(__pyx_self, __pyx_v_label, __pyx_v_current_min, __pyx_v_current_max, __pyx_v_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_format_max, __pyx_v_flags); /* "imgui/core.pyx":8088 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_int_range2( # <<<<<<<<<<<<<< * str label, * int current_min, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_274drag_int_range2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_current_min, int __pyx_v_current_max, float __pyx_v_speed, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, PyObject *__pyx_v_format_max, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_current_min; int __pyx_v_inout_current_max; PyObject *__pyx_v_b_format_max = 0; char *__pyx_v_p_format_max; bool __pyx_v_changed; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char *__pyx_t_4; char const *__pyx_t_5; PyObject *__pyx_t_6 = NULL; char const *__pyx_t_7; bool __pyx_t_8; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_int_range2", 0); /* "imgui/core.pyx":8145 * """ * * cdef int inout_current_min = current_min # <<<<<<<<<<<<<< * cdef int inout_current_max = current_max * */ __pyx_v_inout_current_min = __pyx_v_current_min; /* "imgui/core.pyx":8146 * * cdef int inout_current_min = current_min * cdef int inout_current_max = current_max # <<<<<<<<<<<<<< * * cdef bytes b_format_max; */ __pyx_v_inout_current_max = __pyx_v_current_max; /* "imgui/core.pyx":8149 * * cdef bytes b_format_max; * cdef char* p_format_max = NULL # <<<<<<<<<<<<<< * if format_max is not None: * b_format_max = _bytes(format_max) */ __pyx_v_p_format_max = NULL; /* "imgui/core.pyx":8150 * cdef bytes b_format_max; * cdef char* p_format_max = NULL * if format_max is not None: # <<<<<<<<<<<<<< * b_format_max = _bytes(format_max) * p_format_max = b_format_max */ __pyx_t_1 = (__pyx_v_format_max != ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":8151 * cdef char* p_format_max = NULL * if format_max is not None: * b_format_max = _bytes(format_max) # <<<<<<<<<<<<<< * p_format_max = b_format_max * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format_max); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_b_format_max = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":8152 * if format_max is not None: * b_format_max = _bytes(format_max) * p_format_max = b_format_max # <<<<<<<<<<<<<< * * changed = cimgui.DragIntRange2( */ if (unlikely(__pyx_v_b_format_max == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8152, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsWritableString(__pyx_v_b_format_max); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 8152, __pyx_L1_error) __pyx_v_p_format_max = __pyx_t_4; /* "imgui/core.pyx":8150 * cdef bytes b_format_max; * cdef char* p_format_max = NULL * if format_max is not None: # <<<<<<<<<<<<<< * b_format_max = _bytes(format_max) * p_format_max = b_format_max */ } /* "imgui/core.pyx":8155 * * changed = cimgui.DragIntRange2( * _bytes(label), # <<<<<<<<<<<<<< * &inout_current_min, * &inout_current_max, */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8155, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 8155, __pyx_L1_error) /* "imgui/core.pyx":8161 * min_value, * max_value, * _bytes(format), # <<<<<<<<<<<<<< * p_format_max, * flags */ __pyx_t_6 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__pyx_t_6 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8161, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyBytes_AsString(__pyx_t_6); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 8161, __pyx_L1_error) /* "imgui/core.pyx":8154 * p_format_max = b_format_max * * changed = cimgui.DragIntRange2( # <<<<<<<<<<<<<< * _bytes(label), * &inout_current_min, */ try { __pyx_t_8 = ImGui::DragIntRange2(__pyx_t_5, (&__pyx_v_inout_current_min), (&__pyx_v_inout_current_max), __pyx_v_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_t_7, __pyx_v_p_format_max, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8154, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_changed = __pyx_t_8; /* "imgui/core.pyx":8166 * ) * * return changed, inout_current_min, inout_current_max # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_changed); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_inout_current_min); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_inout_current_max); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_9); __pyx_t_6 = 0; __pyx_t_3 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_10; __pyx_t_10 = 0; goto __pyx_L0; /* "imgui/core.pyx":8088 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_int_range2( # <<<<<<<<<<<<<< * str label, * int current_min, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("imgui.core.drag_int_range2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_b_format_max); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8169 * * * def drag_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_277drag_scalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_276drag_scalar[] = "drag_scalar(str label, ImGuiDataType data_type, bytes data, float change_speed, bytes min_value=None, bytes max_value=None, str format=None, ImGuiSliderFlags flags=0)\nDisplay scalar drag widget.\n Data is passed via ``bytes`` and the type is separatelly given using ``data_type``.\n This is useful to work with specific types (e.g. unsigned 8bit integer, float, double)\n like when interfacing with Numpy.\n\n Args:\n label (str): widget label\n data_type: ImGuiDataType enum, type of the given data\n data (bytes): data value as a bytes array\n change_speed (float): how fast values change on drag\n min_value (bytes): min value allowed by widget\n max_value (bytes): max value allowed by widget\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_int()`.\n flags: ImGuiSlider flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n drag state change and the current drag content.\n\n .. wraps::\n bool DragScalar(\n const char* label,\n ImGuiDataType data_type,\n void* p_data,\n float v_speed,\n const void* p_min = NULL,\n const void* p_max = NULL,\n const char* format = NULL,\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_277drag_scalar = {"drag_scalar", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_277drag_scalar, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_276drag_scalar}; static PyObject *__pyx_pw_5imgui_4core_277drag_scalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiDataType __pyx_v_data_type; PyObject *__pyx_v_data = 0; float __pyx_v_change_speed; PyObject *__pyx_v_min_value = 0; PyObject *__pyx_v_max_value = 0; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_scalar (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_data_type,&__pyx_n_s_data,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":8174 * bytes data, * float change_speed, * bytes min_value = None, # <<<<<<<<<<<<<< * bytes max_value = None, * str format = None, */ values[4] = ((PyObject*)Py_None); /* "imgui/core.pyx":8175 * float change_speed, * bytes min_value = None, * bytes max_value = None, # <<<<<<<<<<<<<< * str format = None, * cimgui.ImGuiSliderFlags flags = 0): */ values[5] = ((PyObject*)Py_None); /* "imgui/core.pyx":8176 * bytes min_value = None, * bytes max_value = None, * str format = None, # <<<<<<<<<<<<<< * cimgui.ImGuiSliderFlags flags = 0): * """Display scalar drag widget. */ values[6] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_scalar", 0, 4, 8, 1); __PYX_ERR(0, 8169, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_scalar", 0, 4, 8, 2); __PYX_ERR(0, 8169, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_scalar", 0, 4, 8, 3); __PYX_ERR(0, 8169, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_scalar") < 0)) __PYX_ERR(0, 8169, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_data_type = __Pyx_PyInt_As_ImGuiDataType(values[1]); if (unlikely((__pyx_v_data_type == ((ImGuiDataType)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8171, __pyx_L3_error) __pyx_v_data = ((PyObject*)values[2]); __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8173, __pyx_L3_error) __pyx_v_min_value = ((PyObject*)values[4]); __pyx_v_max_value = ((PyObject*)values[5]); __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8177, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_scalar", 0, 4, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8169, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8170, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 8172, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_min_value), (&PyBytes_Type), 1, "min_value", 1))) __PYX_ERR(0, 8174, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_max_value), (&PyBytes_Type), 1, "max_value", 1))) __PYX_ERR(0, 8175, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8176, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_276drag_scalar(__pyx_self, __pyx_v_label, __pyx_v_data_type, __pyx_v_data, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* "imgui/core.pyx":8169 * * * def drag_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_276drag_scalar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, float __pyx_v_change_speed, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { char *__pyx_v_p_data; char *__pyx_v_p_min; char *__pyx_v_p_max; char *__pyx_v_fmt; PyObject *__pyx_v_fmt_data = 0; PyObject *__pyx_v_changed = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_scalar", 0); /* "imgui/core.pyx":8212 * """ * * cdef char* p_data = data # <<<<<<<<<<<<<< * cdef char* p_min = NULL * if min_value is not None: */ if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8212, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 8212, __pyx_L1_error) __pyx_v_p_data = __pyx_t_1; /* "imgui/core.pyx":8213 * * cdef char* p_data = data * cdef char* p_min = NULL # <<<<<<<<<<<<<< * if min_value is not None: * p_min = min_value */ __pyx_v_p_min = NULL; /* "imgui/core.pyx":8214 * cdef char* p_data = data * cdef char* p_min = NULL * if min_value is not None: # <<<<<<<<<<<<<< * p_min = min_value * cdef char* p_max = NULL */ __pyx_t_2 = (__pyx_v_min_value != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":8215 * cdef char* p_min = NULL * if min_value is not None: * p_min = min_value # <<<<<<<<<<<<<< * cdef char* p_max = NULL * if max_value is not None: */ if (unlikely(__pyx_v_min_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8215, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_min_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 8215, __pyx_L1_error) __pyx_v_p_min = __pyx_t_1; /* "imgui/core.pyx":8214 * cdef char* p_data = data * cdef char* p_min = NULL * if min_value is not None: # <<<<<<<<<<<<<< * p_min = min_value * cdef char* p_max = NULL */ } /* "imgui/core.pyx":8216 * if min_value is not None: * p_min = min_value * cdef char* p_max = NULL # <<<<<<<<<<<<<< * if max_value is not None: * p_max = max_value */ __pyx_v_p_max = NULL; /* "imgui/core.pyx":8217 * p_min = min_value * cdef char* p_max = NULL * if max_value is not None: # <<<<<<<<<<<<<< * p_max = max_value * cdef char* fmt = NULL */ __pyx_t_3 = (__pyx_v_max_value != ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":8218 * cdef char* p_max = NULL * if max_value is not None: * p_max = max_value # <<<<<<<<<<<<<< * cdef char* fmt = NULL * cdef bytes fmt_data; */ if (unlikely(__pyx_v_max_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8218, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_max_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 8218, __pyx_L1_error) __pyx_v_p_max = __pyx_t_1; /* "imgui/core.pyx":8217 * p_min = min_value * cdef char* p_max = NULL * if max_value is not None: # <<<<<<<<<<<<<< * p_max = max_value * cdef char* fmt = NULL */ } /* "imgui/core.pyx":8219 * if max_value is not None: * p_max = max_value * cdef char* fmt = NULL # <<<<<<<<<<<<<< * cdef bytes fmt_data; * if format is not None: */ __pyx_v_fmt = NULL; /* "imgui/core.pyx":8221 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ __pyx_t_2 = (__pyx_v_format != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":8222 * cdef bytes fmt_data; * if format is not None: * fmt_data = _bytes(format) # <<<<<<<<<<<<<< * fmt = fmt_data * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_fmt_data = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":8223 * if format is not None: * fmt_data = _bytes(format) * fmt = fmt_data # <<<<<<<<<<<<<< * * cdef changed = cimgui.DragScalar( */ if (unlikely(__pyx_v_fmt_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8223, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_fmt_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 8223, __pyx_L1_error) __pyx_v_fmt = __pyx_t_1; /* "imgui/core.pyx":8221 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ } /* "imgui/core.pyx":8226 * * cdef changed = cimgui.DragScalar( * _bytes(label), # <<<<<<<<<<<<<< * data_type, * p_data, */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8226, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 8226, __pyx_L1_error) /* "imgui/core.pyx":8225 * fmt = fmt_data * * cdef changed = cimgui.DragScalar( # <<<<<<<<<<<<<< * _bytes(label), * data_type, */ try { __pyx_t_6 = ImGui::DragScalar(__pyx_t_5, __pyx_v_data_type, __pyx_v_p_data, __pyx_v_change_speed, __pyx_v_p_min, __pyx_v_p_max, __pyx_v_fmt, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8225, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_changed = __pyx_t_4; __pyx_t_4 = 0; /* "imgui/core.pyx":8236 * ) * * return changed, data # <<<<<<<<<<<<<< * * def drag_scalar_N( */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_changed); __Pyx_GIVEREF(__pyx_v_changed); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_changed); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_data); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":8169 * * * def drag_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.drag_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fmt_data); __Pyx_XDECREF(__pyx_v_changed); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8238 * return changed, data * * def drag_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_279drag_scalar_N(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_278drag_scalar_N[] = "drag_scalar_N(str label, ImGuiDataType data_type, bytes data, int components, float change_speed, bytes min_value=None, bytes max_value=None, str format=None, ImGuiSliderFlags flags=0)\nDisplay multiple scalar drag widget.\n Data is passed via ``bytes`` and the type is separatelly given using ``data_type``.\n This is useful to work with specific types (e.g. unsigned 8bit integer, float, double)\n like when interfacing with Numpy.\n\n Args:\n label (str): widget label\n data_type: ImGuiDataType enum, type of the given data\n data (bytes): data value as a bytes array\n components (int): number of widgets\n change_speed (float): how fast values change on drag\n min_value (bytes): min value allowed by widget\n max_value (bytes): max value allowed by widget\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_int()`.\n flags: ImGuiSlider flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n drag state change and the current drag content.\n\n .. wraps::\n bool DragScalarN(\n const char* label,\n ImGuiDataType data_type,\n void* p_data,\n int components,\n float v_speed,\n const void* p_min = NULL,\n const void* p_max = NULL,\n const char* format = NULL,\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_279drag_scalar_N = {"drag_scalar_N", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_279drag_scalar_N, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_278drag_scalar_N}; static PyObject *__pyx_pw_5imgui_4core_279drag_scalar_N(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiDataType __pyx_v_data_type; PyObject *__pyx_v_data = 0; int __pyx_v_components; float __pyx_v_change_speed; PyObject *__pyx_v_min_value = 0; PyObject *__pyx_v_max_value = 0; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("drag_scalar_N (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_data_type,&__pyx_n_s_data,&__pyx_n_s_components,&__pyx_n_s_change_speed,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":8244 * int components, * float change_speed, * bytes min_value = None, # <<<<<<<<<<<<<< * bytes max_value = None, * str format = None, */ values[5] = ((PyObject*)Py_None); /* "imgui/core.pyx":8245 * float change_speed, * bytes min_value = None, * bytes max_value = None, # <<<<<<<<<<<<<< * str format = None, * cimgui.ImGuiSliderFlags flags = 0): */ values[6] = ((PyObject*)Py_None); /* "imgui/core.pyx":8246 * bytes min_value = None, * bytes max_value = None, * str format = None, # <<<<<<<<<<<<<< * cimgui.ImGuiSliderFlags flags = 0): * """Display multiple scalar drag widget. */ values[7] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_scalar_N", 0, 5, 9, 1); __PYX_ERR(0, 8238, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_scalar_N", 0, 5, 9, 2); __PYX_ERR(0, 8238, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_components)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_scalar_N", 0, 5, 9, 3); __PYX_ERR(0, 8238, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_change_speed)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("drag_scalar_N", 0, 5, 9, 4); __PYX_ERR(0, 8238, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "drag_scalar_N") < 0)) __PYX_ERR(0, 8238, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_data_type = __Pyx_PyInt_As_ImGuiDataType(values[1]); if (unlikely((__pyx_v_data_type == ((ImGuiDataType)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8240, __pyx_L3_error) __pyx_v_data = ((PyObject*)values[2]); __pyx_v_components = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_components == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8242, __pyx_L3_error) __pyx_v_change_speed = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_change_speed == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8243, __pyx_L3_error) __pyx_v_min_value = ((PyObject*)values[5]); __pyx_v_max_value = ((PyObject*)values[6]); __pyx_v_format = ((PyObject*)values[7]); if (values[8]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[8]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8247, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("drag_scalar_N", 0, 5, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8238, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.drag_scalar_N", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8239, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 8241, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_min_value), (&PyBytes_Type), 1, "min_value", 1))) __PYX_ERR(0, 8244, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_max_value), (&PyBytes_Type), 1, "max_value", 1))) __PYX_ERR(0, 8245, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8246, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_278drag_scalar_N(__pyx_self, __pyx_v_label, __pyx_v_data_type, __pyx_v_data, __pyx_v_components, __pyx_v_change_speed, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* "imgui/core.pyx":8238 * return changed, data * * def drag_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_278drag_scalar_N(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, int __pyx_v_components, float __pyx_v_change_speed, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { char *__pyx_v_p_data; char *__pyx_v_p_min; char *__pyx_v_p_max; char *__pyx_v_fmt; PyObject *__pyx_v_fmt_data = 0; PyObject *__pyx_v_changed = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("drag_scalar_N", 0); /* "imgui/core.pyx":8284 * """ * * cdef char* p_data = data # <<<<<<<<<<<<<< * cdef char* p_min = NULL * if min_value is not None: */ if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8284, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 8284, __pyx_L1_error) __pyx_v_p_data = __pyx_t_1; /* "imgui/core.pyx":8285 * * cdef char* p_data = data * cdef char* p_min = NULL # <<<<<<<<<<<<<< * if min_value is not None: * p_min = min_value */ __pyx_v_p_min = NULL; /* "imgui/core.pyx":8286 * cdef char* p_data = data * cdef char* p_min = NULL * if min_value is not None: # <<<<<<<<<<<<<< * p_min = min_value * cdef char* p_max = NULL */ __pyx_t_2 = (__pyx_v_min_value != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":8287 * cdef char* p_min = NULL * if min_value is not None: * p_min = min_value # <<<<<<<<<<<<<< * cdef char* p_max = NULL * if max_value is not None: */ if (unlikely(__pyx_v_min_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8287, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_min_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 8287, __pyx_L1_error) __pyx_v_p_min = __pyx_t_1; /* "imgui/core.pyx":8286 * cdef char* p_data = data * cdef char* p_min = NULL * if min_value is not None: # <<<<<<<<<<<<<< * p_min = min_value * cdef char* p_max = NULL */ } /* "imgui/core.pyx":8288 * if min_value is not None: * p_min = min_value * cdef char* p_max = NULL # <<<<<<<<<<<<<< * if max_value is not None: * p_max = max_value */ __pyx_v_p_max = NULL; /* "imgui/core.pyx":8289 * p_min = min_value * cdef char* p_max = NULL * if max_value is not None: # <<<<<<<<<<<<<< * p_max = max_value * cdef char* fmt = NULL */ __pyx_t_3 = (__pyx_v_max_value != ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":8290 * cdef char* p_max = NULL * if max_value is not None: * p_max = max_value # <<<<<<<<<<<<<< * cdef char* fmt = NULL * cdef bytes fmt_data; */ if (unlikely(__pyx_v_max_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8290, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_max_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 8290, __pyx_L1_error) __pyx_v_p_max = __pyx_t_1; /* "imgui/core.pyx":8289 * p_min = min_value * cdef char* p_max = NULL * if max_value is not None: # <<<<<<<<<<<<<< * p_max = max_value * cdef char* fmt = NULL */ } /* "imgui/core.pyx":8291 * if max_value is not None: * p_max = max_value * cdef char* fmt = NULL # <<<<<<<<<<<<<< * cdef bytes fmt_data; * if format is not None: */ __pyx_v_fmt = NULL; /* "imgui/core.pyx":8293 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ __pyx_t_2 = (__pyx_v_format != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":8294 * cdef bytes fmt_data; * if format is not None: * fmt_data = _bytes(format) # <<<<<<<<<<<<<< * fmt = fmt_data * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_fmt_data = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":8295 * if format is not None: * fmt_data = _bytes(format) * fmt = fmt_data # <<<<<<<<<<<<<< * * cdef changed = cimgui.DragScalarN( */ if (unlikely(__pyx_v_fmt_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8295, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_fmt_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 8295, __pyx_L1_error) __pyx_v_fmt = __pyx_t_1; /* "imgui/core.pyx":8293 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ } /* "imgui/core.pyx":8298 * * cdef changed = cimgui.DragScalarN( * _bytes(label), # <<<<<<<<<<<<<< * data_type, * p_data, */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8298, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 8298, __pyx_L1_error) /* "imgui/core.pyx":8297 * fmt = fmt_data * * cdef changed = cimgui.DragScalarN( # <<<<<<<<<<<<<< * _bytes(label), * data_type, */ try { __pyx_t_6 = ImGui::DragScalarN(__pyx_t_5, __pyx_v_data_type, __pyx_v_p_data, __pyx_v_components, __pyx_v_change_speed, __pyx_v_p_min, __pyx_v_p_max, __pyx_v_fmt, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8297, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_changed = __pyx_t_4; __pyx_t_4 = 0; /* "imgui/core.pyx":8309 * ) * * return changed, data # <<<<<<<<<<<<<< * * def input_text( */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_changed); __Pyx_GIVEREF(__pyx_v_changed); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_changed); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_data); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":8238 * return changed, data * * def drag_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.drag_scalar_N", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fmt_data); __Pyx_XDECREF(__pyx_v_changed); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8311 * return changed, data * * def input_text( # <<<<<<<<<<<<<< * str label, * str value, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_281input_text(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_280input_text[] = "input_text(str label, str value, int buffer_length=-1, ImGuiInputTextFlags flags=0, callback=None, user_data=None)\nDisplay text input widget.\n\n The ``buffer_length`` is the maximum allowed length of the content. It is the size in bytes, which may not correspond to the number of characters.\n If set to -1, the internal buffer will have an adaptive size, which is equivalent to using the ``imgui.INPUT_TEXT_CALLBACK_RESIZE`` flag.\n When a callback is provided, it is called after the internal buffer has been resized.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n text_val = 'Please, type the coefficient here.'\n imgui.begin(\"Example: text input\")\n changed, text_val = imgui.input_text('Coefficient:', text_val)\n imgui.text('You wrote:')\n imgui.same_line()\n imgui.text(text_val)\n imgui.end()\n\n Args:\n label (str): widget label.\n value (str): textbox value\n buffer_length (int): length of the content buffer\n flags: InputText flags. See:\n :ref:`list of available flags `.\n callback (callable): a callable that is called depending on choosen flags.\n Callable takes an imgui._ImGuiInputTextCallbackData object as argument\n Callable should return None or integer\n user_data: Any data that the user want to use in the callback.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current text contents.\n\n .. wraps::\n bool InputText(\n const char* label,\n char* buf,\n size_t buf_size,\n ImGuiInputTextFlags flags = 0,\n ImGuiInputTextCallback callback = NULL,\n void* user_data = NULL\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_281input_text = {"input_text", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_281input_text, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_280input_text}; static PyObject *__pyx_pw_5imgui_4core_281input_text(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_value = 0; int __pyx_v_buffer_length; ImGuiInputTextFlags __pyx_v_flags; PyObject *__pyx_v_callback = 0; PyObject *__pyx_v_user_data = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_text (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_buffer_length,&__pyx_n_s_flags,&__pyx_n_s_callback,&__pyx_n_s_user_data,0}; PyObject* values[6] = {0,0,0,0,0,0}; /* "imgui/core.pyx":8316 * int buffer_length = -1, * cimgui.ImGuiInputTextFlags flags=0, * object callback = None, # <<<<<<<<<<<<<< * user_data = None * ): */ values[4] = ((PyObject *)Py_None); /* "imgui/core.pyx":8317 * cimgui.ImGuiInputTextFlags flags=0, * object callback = None, * user_data = None # <<<<<<<<<<<<<< * ): * """Display text input widget. */ values[5] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_text", 0, 2, 6, 1); __PYX_ERR(0, 8311, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_buffer_length); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_callback); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_user_data); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_text") < 0)) __PYX_ERR(0, 8311, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = ((PyObject*)values[1]); if (values[2]) { __pyx_v_buffer_length = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_buffer_length == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8314, __pyx_L3_error) } else { __pyx_v_buffer_length = ((int)-1); } if (values[3]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[3]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8315, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } __pyx_v_callback = values[4]; __pyx_v_user_data = values[5]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_text", 0, 2, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8311, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8312, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyString_Type), 1, "value", 1))) __PYX_ERR(0, 8313, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_280input_text(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_buffer_length, __pyx_v_flags, __pyx_v_callback, __pyx_v_user_data); /* "imgui/core.pyx":8311 * return changed, data * * def input_text( # <<<<<<<<<<<<<< * str label, * str value, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_280input_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_value, int __pyx_v_buffer_length, ImGuiInputTextFlags __pyx_v_flags, PyObject *__pyx_v_callback, PyObject *__pyx_v_user_data) { PyObject *__pyx_v__value_bytes = NULL; int __pyx_v__buffer_length; struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v__user_info = 0; ImGuiInputTextCallback __pyx_v__callback; void *__pyx_v__user_data; bool __pyx_v_changed; PyObject *__pyx_v_output = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; char const *__pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; char const *__pyx_t_10; bool __pyx_t_11; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_text", 0); /* "imgui/core.pyx":8364 * """ * * _value_bytes = _bytes(value) # <<<<<<<<<<<<<< * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__value_bytes = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8365 * * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 # <<<<<<<<<<<<<< * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 */ __pyx_v__buffer_length = (__pyx_v_buffer_length + 1); /* "imgui/core.pyx":8366 * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: # <<<<<<<<<<<<<< * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize */ __pyx_t_2 = ((__pyx_v_buffer_length < 0) != 0); if (__pyx_t_2) { /* "imgui/core.pyx":8367 * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 # <<<<<<<<<<<<<< * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) */ if (unlikely(__pyx_v__value_bytes == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 8367, __pyx_L1_error) } __pyx_t_3 = PyBytes_GET_SIZE(__pyx_v__value_bytes); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 8367, __pyx_L1_error) __pyx_v__buffer_length = (__pyx_t_3 + 1); /* "imgui/core.pyx":8368 * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize # <<<<<<<<<<<<<< * _input_text_shared_buffer.reserve_memory(_buffer_length) * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) */ __pyx_v_flags = (__pyx_v_flags | ImGuiInputTextFlags_CallbackResize); /* "imgui/core.pyx":8366 * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: # <<<<<<<<<<<<<< * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize */ } /* "imgui/core.pyx":8369 * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) # <<<<<<<<<<<<<< * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) * */ __pyx_t_1 = ((struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer *)__pyx_v_5imgui_4core__input_text_shared_buffer->__pyx_vtab)->reserve_memory(__pyx_v_5imgui_4core__input_text_shared_buffer, __pyx_v__buffer_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8370 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) # <<<<<<<<<<<<<< * * cdef _callback_user_info _user_info = _callback_user_info() */ if (unlikely(__pyx_v__value_bytes == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8370, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_v__value_bytes); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 8370, __pyx_L1_error) (void)(strncpy(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer, __pyx_t_4, __pyx_v__buffer_length)); /* "imgui/core.pyx":8372 * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) * * cdef _callback_user_info _user_info = _callback_user_info() # <<<<<<<<<<<<<< * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__callback_user_info)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__user_info = ((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8373 * * cdef _callback_user_info _user_info = _callback_user_info() * cdef cimgui.ImGuiInputTextCallback _callback = NULL # <<<<<<<<<<<<<< * cdef void *_user_data = NULL * if callback is not None: */ __pyx_v__callback = NULL; /* "imgui/core.pyx":8374 * cdef _callback_user_info _user_info = _callback_user_info() * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL # <<<<<<<<<<<<<< * if callback is not None: * _callback = _ImGuiInputTextCallback */ __pyx_v__user_data = NULL; /* "imgui/core.pyx":8375 * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL * if callback is not None: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) */ __pyx_t_2 = (__pyx_v_callback != Py_None); __pyx_t_5 = (__pyx_t_2 != 0); if (__pyx_t_5) { /* "imgui/core.pyx":8376 * cdef void *_user_data = NULL * if callback is not None: * _callback = _ImGuiInputTextCallback # <<<<<<<<<<<<<< * _user_info.populate(callback, user_data) * _user_data = _user_info */ __pyx_v__callback = __pyx_f_5imgui_4core__ImGuiInputTextCallback; /* "imgui/core.pyx":8377 * if callback is not None: * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) # <<<<<<<<<<<<<< * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__user_info), __pyx_n_s_populate); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_callback, __pyx_v_user_data}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8377, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_callback, __pyx_v_user_data}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8377, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_v_callback); __Pyx_GIVEREF(__pyx_v_callback); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_v_callback); __Pyx_INCREF(__pyx_v_user_data); __Pyx_GIVEREF(__pyx_v_user_data); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_user_data); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8378 * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) * _user_data = _user_info # <<<<<<<<<<<<<< * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback */ __pyx_v__user_data = ((void *)__pyx_v__user_info); /* "imgui/core.pyx":8375 * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL * if callback is not None: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) */ goto __pyx_L4; } /* "imgui/core.pyx":8379 * _user_info.populate(callback, user_data) * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info */ __pyx_t_5 = ((__pyx_v_flags & ImGuiInputTextFlags_CallbackResize) != 0); if (__pyx_t_5) { /* "imgui/core.pyx":8380 * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback # <<<<<<<<<<<<<< * _user_data = _user_info * */ __pyx_v__callback = __pyx_f_5imgui_4core__ImGuiInputTextOnlyResizeCallback; /* "imgui/core.pyx":8381 * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info # <<<<<<<<<<<<<< * * changed = cimgui.InputText( */ __pyx_v__user_data = ((void *)__pyx_v__user_info); /* "imgui/core.pyx":8379 * _user_info.populate(callback, user_data) * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info */ } __pyx_L4:; /* "imgui/core.pyx":8384 * * changed = cimgui.InputText( * _bytes(label), _input_text_shared_buffer.buffer, _buffer_length, flags, _callback, _user_data # <<<<<<<<<<<<<< * ) * _buffer_length = strlen(_input_text_shared_buffer.buffer) */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8384, __pyx_L1_error) } __pyx_t_10 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) __PYX_ERR(0, 8384, __pyx_L1_error) /* "imgui/core.pyx":8383 * _user_data = _user_info * * changed = cimgui.InputText( # <<<<<<<<<<<<<< * _bytes(label), _input_text_shared_buffer.buffer, _buffer_length, flags, _callback, _user_data * ) */ try { __pyx_t_11 = ImGui::InputText(__pyx_t_10, __pyx_v_5imgui_4core__input_text_shared_buffer->buffer, __pyx_v__buffer_length, __pyx_v_flags, __pyx_v__callback, __pyx_v__user_data); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8383, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_changed = __pyx_t_11; /* "imgui/core.pyx":8386 * _bytes(label), _input_text_shared_buffer.buffer, _buffer_length, flags, _callback, _user_data * ) * _buffer_length = strlen(_input_text_shared_buffer.buffer) # <<<<<<<<<<<<<< * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) * */ __pyx_v__buffer_length = strlen(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer); /* "imgui/core.pyx":8387 * ) * _buffer_length = strlen(_input_text_shared_buffer.buffer) * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) # <<<<<<<<<<<<<< * * return changed, output */ __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer + 0, __pyx_v__buffer_length - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_output = __pyx_t_6; __pyx_t_6 = 0; /* "imgui/core.pyx":8389 * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) * * return changed, output # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_changed); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_INCREF(__pyx_v_output); __Pyx_GIVEREF(__pyx_v_output); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_output); __pyx_t_6 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":8311 * return changed, data * * def input_text( # <<<<<<<<<<<<<< * str label, * str value, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.input_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v__value_bytes); __Pyx_XDECREF((PyObject *)__pyx_v__user_info); __Pyx_XDECREF(__pyx_v_output); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8392 * * * def input_text_multiline( # <<<<<<<<<<<<<< * str label, * str value, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_283input_text_multiline(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_282input_text_multiline[] = "input_text_multiline(str label, str value, int buffer_length=-1, float width=0, float height=0, ImGuiInputTextFlags flags=0, callback=None, user_data=None)\nDisplay multiline text input widget.\n\n The ``buffer_length`` is the maximum allowed length of the content. It is the size in bytes, which may not correspond to the number of characters.\n If set to -1, the internal buffer will have an adaptive size, which is equivalent to using the ``imgui.INPUT_TEXT_CALLBACK_RESIZE`` flag.\n When a callback is provided, it is called after the internal buffer has been resized.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 200\n\n text_val = 'Type the your message here.'\n imgui.begin(\"Example: text input\")\n changed, text_val = imgui.input_text_multiline(\n 'Message:',\n text_val,\n 2056\n )\n imgui.text('You wrote:')\n imgui.same_line()\n imgui.text(text_val)\n imgui.end()\n\n Args:\n label (str): widget label.\n value (str): textbox value\n buffer_length (int): length of the content buffer\n width (float): width of the textbox\n height (float): height of the textbox\n flags: InputText flags. See:\n :ref:`list of available flags `.\n callback (callable): a callable that is called depending on choosen flags.\n Callable takes an imgui._ImGuiInputTextCallbackData object as argument\n Callable should return None or integer\n user_data: Any data that the user want to use in the callback.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current text contents.\n\n .. wraps::\n bool InputTextMultiline(\n const char* label,\n char* buf,\n size_t buf_size,\n const ImVec2& size = ImVec2(0,0),\n "" ImGuiInputTextFlags flags = 0,\n ImGuiInputTextCallback callback = NULL,\n void* user_data = NULL\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_283input_text_multiline = {"input_text_multiline", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_283input_text_multiline, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_282input_text_multiline}; static PyObject *__pyx_pw_5imgui_4core_283input_text_multiline(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_value = 0; int __pyx_v_buffer_length; float __pyx_v_width; float __pyx_v_height; ImGuiInputTextFlags __pyx_v_flags; PyObject *__pyx_v_callback = 0; PyObject *__pyx_v_user_data = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_text_multiline (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_buffer_length,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_flags,&__pyx_n_s_callback,&__pyx_n_s_user_data,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":8399 * float height=0, * cimgui.ImGuiInputTextFlags flags=0, * object callback = None, # <<<<<<<<<<<<<< * user_data = None * ): */ values[6] = ((PyObject *)Py_None); /* "imgui/core.pyx":8400 * cimgui.ImGuiInputTextFlags flags=0, * object callback = None, * user_data = None # <<<<<<<<<<<<<< * ): * """Display multiline text input widget. */ values[7] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_text_multiline", 0, 2, 8, 1); __PYX_ERR(0, 8392, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_buffer_length); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_callback); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_user_data); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_text_multiline") < 0)) __PYX_ERR(0, 8392, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = ((PyObject*)values[1]); if (values[2]) { __pyx_v_buffer_length = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_buffer_length == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8395, __pyx_L3_error) } else { __pyx_v_buffer_length = ((int)-1); } if (values[3]) { __pyx_v_width = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8396, __pyx_L3_error) } else { __pyx_v_width = ((float)0.0); } if (values[4]) { __pyx_v_height = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8397, __pyx_L3_error) } else { __pyx_v_height = ((float)0.0); } if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8398, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } __pyx_v_callback = values[6]; __pyx_v_user_data = values[7]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_text_multiline", 0, 2, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8392, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_text_multiline", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8393, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyString_Type), 1, "value", 1))) __PYX_ERR(0, 8394, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_282input_text_multiline(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_buffer_length, __pyx_v_width, __pyx_v_height, __pyx_v_flags, __pyx_v_callback, __pyx_v_user_data); /* "imgui/core.pyx":8392 * * * def input_text_multiline( # <<<<<<<<<<<<<< * str label, * str value, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_282input_text_multiline(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_value, int __pyx_v_buffer_length, float __pyx_v_width, float __pyx_v_height, ImGuiInputTextFlags __pyx_v_flags, PyObject *__pyx_v_callback, PyObject *__pyx_v_user_data) { PyObject *__pyx_v__value_bytes = NULL; int __pyx_v__buffer_length; struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v__user_info = 0; ImGuiInputTextCallback __pyx_v__callback; void *__pyx_v__user_data; bool __pyx_v_changed; PyObject *__pyx_v_output = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; char const *__pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; char const *__pyx_t_10; ImVec2 __pyx_t_11; bool __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_text_multiline", 0); /* "imgui/core.pyx":8454 * """ * * _value_bytes = _bytes(value) # <<<<<<<<<<<<<< * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__value_bytes = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8455 * * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 # <<<<<<<<<<<<<< * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 */ __pyx_v__buffer_length = (__pyx_v_buffer_length + 1); /* "imgui/core.pyx":8456 * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: # <<<<<<<<<<<<<< * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize */ __pyx_t_2 = ((__pyx_v_buffer_length < 0) != 0); if (__pyx_t_2) { /* "imgui/core.pyx":8457 * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 # <<<<<<<<<<<<<< * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) */ if (unlikely(__pyx_v__value_bytes == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 8457, __pyx_L1_error) } __pyx_t_3 = PyBytes_GET_SIZE(__pyx_v__value_bytes); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 8457, __pyx_L1_error) __pyx_v__buffer_length = (__pyx_t_3 + 1); /* "imgui/core.pyx":8458 * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize # <<<<<<<<<<<<<< * _input_text_shared_buffer.reserve_memory(_buffer_length) * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) */ __pyx_v_flags = (__pyx_v_flags | ImGuiInputTextFlags_CallbackResize); /* "imgui/core.pyx":8456 * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: # <<<<<<<<<<<<<< * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize */ } /* "imgui/core.pyx":8459 * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) # <<<<<<<<<<<<<< * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) * */ __pyx_t_1 = ((struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer *)__pyx_v_5imgui_4core__input_text_shared_buffer->__pyx_vtab)->reserve_memory(__pyx_v_5imgui_4core__input_text_shared_buffer, __pyx_v__buffer_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8460 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) # <<<<<<<<<<<<<< * * cdef _callback_user_info _user_info = _callback_user_info() */ if (unlikely(__pyx_v__value_bytes == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8460, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_v__value_bytes); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 8460, __pyx_L1_error) (void)(strncpy(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer, __pyx_t_4, __pyx_v__buffer_length)); /* "imgui/core.pyx":8462 * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) * * cdef _callback_user_info _user_info = _callback_user_info() # <<<<<<<<<<<<<< * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__callback_user_info)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__user_info = ((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8463 * * cdef _callback_user_info _user_info = _callback_user_info() * cdef cimgui.ImGuiInputTextCallback _callback = NULL # <<<<<<<<<<<<<< * cdef void *_user_data = NULL * if callback is not None: */ __pyx_v__callback = NULL; /* "imgui/core.pyx":8464 * cdef _callback_user_info _user_info = _callback_user_info() * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL # <<<<<<<<<<<<<< * if callback is not None: * _callback = _ImGuiInputTextCallback */ __pyx_v__user_data = NULL; /* "imgui/core.pyx":8465 * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL * if callback is not None: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) */ __pyx_t_2 = (__pyx_v_callback != Py_None); __pyx_t_5 = (__pyx_t_2 != 0); if (__pyx_t_5) { /* "imgui/core.pyx":8466 * cdef void *_user_data = NULL * if callback is not None: * _callback = _ImGuiInputTextCallback # <<<<<<<<<<<<<< * _user_info.populate(callback, user_data) * _user_data = _user_info */ __pyx_v__callback = __pyx_f_5imgui_4core__ImGuiInputTextCallback; /* "imgui/core.pyx":8467 * if callback is not None: * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) # <<<<<<<<<<<<<< * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__user_info), __pyx_n_s_populate); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_callback, __pyx_v_user_data}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8467, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_callback, __pyx_v_user_data}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8467, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_v_callback); __Pyx_GIVEREF(__pyx_v_callback); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_v_callback); __Pyx_INCREF(__pyx_v_user_data); __Pyx_GIVEREF(__pyx_v_user_data); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_user_data); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8468 * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) * _user_data = _user_info # <<<<<<<<<<<<<< * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback */ __pyx_v__user_data = ((void *)__pyx_v__user_info); /* "imgui/core.pyx":8465 * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL * if callback is not None: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) */ goto __pyx_L4; } /* "imgui/core.pyx":8469 * _user_info.populate(callback, user_data) * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info */ __pyx_t_5 = ((__pyx_v_flags & ImGuiInputTextFlags_CallbackResize) != 0); if (__pyx_t_5) { /* "imgui/core.pyx":8470 * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback # <<<<<<<<<<<<<< * _user_data = _user_info * */ __pyx_v__callback = __pyx_f_5imgui_4core__ImGuiInputTextOnlyResizeCallback; /* "imgui/core.pyx":8471 * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info # <<<<<<<<<<<<<< * * changed = cimgui.InputTextMultiline( */ __pyx_v__user_data = ((void *)__pyx_v__user_info); /* "imgui/core.pyx":8469 * _user_info.populate(callback, user_data) * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info */ } __pyx_L4:; /* "imgui/core.pyx":8474 * * changed = cimgui.InputTextMultiline( * _bytes(label), _input_text_shared_buffer.buffer, _buffer_length, # <<<<<<<<<<<<<< * _cast_args_ImVec2(width, height), flags, * _callback, _user_data */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8474, __pyx_L1_error) } __pyx_t_10 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) __PYX_ERR(0, 8474, __pyx_L1_error) /* "imgui/core.pyx":8475 * changed = cimgui.InputTextMultiline( * _bytes(label), _input_text_shared_buffer.buffer, _buffer_length, * _cast_args_ImVec2(width, height), flags, # <<<<<<<<<<<<<< * _callback, _user_data * ) */ __pyx_t_11 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8475, __pyx_L1_error) /* "imgui/core.pyx":8473 * _user_data = _user_info * * changed = cimgui.InputTextMultiline( # <<<<<<<<<<<<<< * _bytes(label), _input_text_shared_buffer.buffer, _buffer_length, * _cast_args_ImVec2(width, height), flags, */ try { __pyx_t_12 = ImGui::InputTextMultiline(__pyx_t_10, __pyx_v_5imgui_4core__input_text_shared_buffer->buffer, __pyx_v__buffer_length, __pyx_t_11, __pyx_v_flags, __pyx_v__callback, __pyx_v__user_data); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8473, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_changed = __pyx_t_12; /* "imgui/core.pyx":8478 * _callback, _user_data * ) * _buffer_length = strlen(_input_text_shared_buffer.buffer) # <<<<<<<<<<<<<< * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) * */ __pyx_v__buffer_length = strlen(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer); /* "imgui/core.pyx":8479 * ) * _buffer_length = strlen(_input_text_shared_buffer.buffer) * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) # <<<<<<<<<<<<<< * * return changed, output */ __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer + 0, __pyx_v__buffer_length - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_output = __pyx_t_6; __pyx_t_6 = 0; /* "imgui/core.pyx":8481 * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) * * return changed, output # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_changed); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_INCREF(__pyx_v_output); __Pyx_GIVEREF(__pyx_v_output); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_output); __pyx_t_6 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":8392 * * * def input_text_multiline( # <<<<<<<<<<<<<< * str label, * str value, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.input_text_multiline", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v__value_bytes); __Pyx_XDECREF((PyObject *)__pyx_v__user_info); __Pyx_XDECREF(__pyx_v_output); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8485 * * * def input_text_with_hint( # <<<<<<<<<<<<<< * str label, * str hint, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_285input_text_with_hint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_284input_text_with_hint[] = "input_text_with_hint(str label, str hint, str value, int buffer_length=-1, ImGuiInputTextFlags flags=0, callback=None, user_data=None)\nDisplay a text box, if the text is empty a hint on how to fill the box is given.\n\n The ``buffer_length`` is the maximum allowed length of the content. It is the size in bytes, which may not correspond to the number of characters.\n If set to -1, the internal buffer will have an adaptive size, which is equivalent to using the ``imgui.INPUT_TEXT_CALLBACK_RESIZE`` flag.\n When a callback is provided, it is called after the internal buffer has been resized.\n\n Args:\n label (str): Widget label\n hing (str): Hint displayed if text value empty\n value (str): Text value\n buffer_length (int): Length of the content buffer\n flags: InputText flags. See:\n :ref:`list of available flags `.\n callback (callable): a callable that is called depending on choosen flags.\n Callable takes an imgui._ImGuiInputTextCallbackData object as argument\n Callable should return None or integer\n user_data: Any data that the user want to use in the callback.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current text contents.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 200\n\n text_val = ''\n imgui.begin(\"Example Text With hing\")\n changed, text_val = imgui.input_text_with_hint(\n 'Email', 'your@email.com',\n text_val, 255)\n imgui.end()\n\n .. wraps::\n bool InputTextWithHint(\n const char* label,\n const char* hint,\n char* buf,\n size_t buf_size,\n ImGuiInputTextFlags flags = 0,\n ImGuiInputTextCallback callback = NULL,\n void* user_data = NULL\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_285input_text_with_hint = {"input_text_with_hint", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_285input_text_with_hint, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_284input_text_with_hint}; static PyObject *__pyx_pw_5imgui_4core_285input_text_with_hint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_hint = 0; PyObject *__pyx_v_value = 0; int __pyx_v_buffer_length; ImGuiInputTextFlags __pyx_v_flags; PyObject *__pyx_v_callback = 0; PyObject *__pyx_v_user_data = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_text_with_hint (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_hint,&__pyx_n_s_value,&__pyx_n_s_buffer_length,&__pyx_n_s_flags,&__pyx_n_s_callback,&__pyx_n_s_user_data,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; /* "imgui/core.pyx":8491 * int buffer_length = -1, * cimgui.ImGuiInputTextFlags flags = 0, * object callback = None, # <<<<<<<<<<<<<< * user_data = None): * """Display a text box, if the text is empty a hint on how to fill the box is given. */ values[5] = ((PyObject *)Py_None); /* "imgui/core.pyx":8492 * cimgui.ImGuiInputTextFlags flags = 0, * object callback = None, * user_data = None): # <<<<<<<<<<<<<< * """Display a text box, if the text is empty a hint on how to fill the box is given. * */ values[6] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hint)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_text_with_hint", 0, 3, 7, 1); __PYX_ERR(0, 8485, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_text_with_hint", 0, 3, 7, 2); __PYX_ERR(0, 8485, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_buffer_length); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_callback); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_user_data); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_text_with_hint") < 0)) __PYX_ERR(0, 8485, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_hint = ((PyObject*)values[1]); __pyx_v_value = ((PyObject*)values[2]); if (values[3]) { __pyx_v_buffer_length = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_buffer_length == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8489, __pyx_L3_error) } else { __pyx_v_buffer_length = ((int)-1); } if (values[4]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[4]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8490, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } __pyx_v_callback = values[5]; __pyx_v_user_data = values[6]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_text_with_hint", 0, 3, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8485, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_text_with_hint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8486, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hint), (&PyString_Type), 1, "hint", 1))) __PYX_ERR(0, 8487, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyString_Type), 1, "value", 1))) __PYX_ERR(0, 8488, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_284input_text_with_hint(__pyx_self, __pyx_v_label, __pyx_v_hint, __pyx_v_value, __pyx_v_buffer_length, __pyx_v_flags, __pyx_v_callback, __pyx_v_user_data); /* "imgui/core.pyx":8485 * * * def input_text_with_hint( # <<<<<<<<<<<<<< * str label, * str hint, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_284input_text_with_hint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_hint, PyObject *__pyx_v_value, int __pyx_v_buffer_length, ImGuiInputTextFlags __pyx_v_flags, PyObject *__pyx_v_callback, PyObject *__pyx_v_user_data) { PyObject *__pyx_v__value_bytes = NULL; int __pyx_v__buffer_length; struct __pyx_obj_5imgui_4core__callback_user_info *__pyx_v__user_info = 0; ImGuiInputTextCallback __pyx_v__callback; void *__pyx_v__user_data; bool __pyx_v_changed; PyObject *__pyx_v_output = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; char const *__pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; char const *__pyx_t_10; char const *__pyx_t_11; bool __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_text_with_hint", 0); /* "imgui/core.pyx":8539 * """ * * _value_bytes = _bytes(value) # <<<<<<<<<<<<<< * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__value_bytes = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8540 * * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 # <<<<<<<<<<<<<< * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 */ __pyx_v__buffer_length = (__pyx_v_buffer_length + 1); /* "imgui/core.pyx":8541 * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: # <<<<<<<<<<<<<< * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize */ __pyx_t_2 = ((__pyx_v_buffer_length < 0) != 0); if (__pyx_t_2) { /* "imgui/core.pyx":8542 * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 # <<<<<<<<<<<<<< * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) */ if (unlikely(__pyx_v__value_bytes == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 8542, __pyx_L1_error) } __pyx_t_3 = PyBytes_GET_SIZE(__pyx_v__value_bytes); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 8542, __pyx_L1_error) __pyx_v__buffer_length = (__pyx_t_3 + 1); /* "imgui/core.pyx":8543 * if buffer_length < 0: * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize # <<<<<<<<<<<<<< * _input_text_shared_buffer.reserve_memory(_buffer_length) * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) */ __pyx_v_flags = (__pyx_v_flags | ImGuiInputTextFlags_CallbackResize); /* "imgui/core.pyx":8541 * _value_bytes = _bytes(value) * cdef int _buffer_length = buffer_length+1 * if buffer_length < 0: # <<<<<<<<<<<<<< * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize */ } /* "imgui/core.pyx":8544 * _buffer_length = len(_value_bytes)+1 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) # <<<<<<<<<<<<<< * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) * */ __pyx_t_1 = ((struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer *)__pyx_v_5imgui_4core__input_text_shared_buffer->__pyx_vtab)->reserve_memory(__pyx_v_5imgui_4core__input_text_shared_buffer, __pyx_v__buffer_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8545 * flags = flags | enums.ImGuiInputTextFlags_CallbackResize * _input_text_shared_buffer.reserve_memory(_buffer_length) * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) # <<<<<<<<<<<<<< * * cdef _callback_user_info _user_info = _callback_user_info() */ if (unlikely(__pyx_v__value_bytes == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8545, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_v__value_bytes); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 8545, __pyx_L1_error) (void)(strncpy(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer, __pyx_t_4, __pyx_v__buffer_length)); /* "imgui/core.pyx":8547 * strncpy(_input_text_shared_buffer.buffer, _value_bytes, _buffer_length) * * cdef _callback_user_info _user_info = _callback_user_info() # <<<<<<<<<<<<<< * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__callback_user_info)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__user_info = ((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8548 * * cdef _callback_user_info _user_info = _callback_user_info() * cdef cimgui.ImGuiInputTextCallback _callback = NULL # <<<<<<<<<<<<<< * cdef void *_user_data = NULL * if callback is not None: */ __pyx_v__callback = NULL; /* "imgui/core.pyx":8549 * cdef _callback_user_info _user_info = _callback_user_info() * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL # <<<<<<<<<<<<<< * if callback is not None: * _callback = _ImGuiInputTextCallback */ __pyx_v__user_data = NULL; /* "imgui/core.pyx":8550 * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL * if callback is not None: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) */ __pyx_t_2 = (__pyx_v_callback != Py_None); __pyx_t_5 = (__pyx_t_2 != 0); if (__pyx_t_5) { /* "imgui/core.pyx":8551 * cdef void *_user_data = NULL * if callback is not None: * _callback = _ImGuiInputTextCallback # <<<<<<<<<<<<<< * _user_info.populate(callback, user_data) * _user_data = _user_info */ __pyx_v__callback = __pyx_f_5imgui_4core__ImGuiInputTextCallback; /* "imgui/core.pyx":8552 * if callback is not None: * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) # <<<<<<<<<<<<<< * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__user_info), __pyx_n_s_populate); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_callback, __pyx_v_user_data}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8552, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_callback, __pyx_v_user_data}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8552, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_v_callback); __Pyx_GIVEREF(__pyx_v_callback); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_v_callback); __Pyx_INCREF(__pyx_v_user_data); __Pyx_GIVEREF(__pyx_v_user_data); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_user_data); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":8553 * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) * _user_data = _user_info # <<<<<<<<<<<<<< * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback */ __pyx_v__user_data = ((void *)__pyx_v__user_info); /* "imgui/core.pyx":8550 * cdef cimgui.ImGuiInputTextCallback _callback = NULL * cdef void *_user_data = NULL * if callback is not None: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextCallback * _user_info.populate(callback, user_data) */ goto __pyx_L4; } /* "imgui/core.pyx":8554 * _user_info.populate(callback, user_data) * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info */ __pyx_t_5 = ((__pyx_v_flags & ImGuiInputTextFlags_CallbackResize) != 0); if (__pyx_t_5) { /* "imgui/core.pyx":8555 * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback # <<<<<<<<<<<<<< * _user_data = _user_info * */ __pyx_v__callback = __pyx_f_5imgui_4core__ImGuiInputTextOnlyResizeCallback; /* "imgui/core.pyx":8556 * elif flags & enums.ImGuiInputTextFlags_CallbackResize: * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info # <<<<<<<<<<<<<< * * changed = cimgui.InputTextWithHint( */ __pyx_v__user_data = ((void *)__pyx_v__user_info); /* "imgui/core.pyx":8554 * _user_info.populate(callback, user_data) * _user_data = _user_info * elif flags & enums.ImGuiInputTextFlags_CallbackResize: # <<<<<<<<<<<<<< * _callback = _ImGuiInputTextOnlyResizeCallback * _user_data = _user_info */ } __pyx_L4:; /* "imgui/core.pyx":8559 * * changed = cimgui.InputTextWithHint( * _bytes(label), _bytes(hint), _input_text_shared_buffer.buffer, _buffer_length, # <<<<<<<<<<<<<< * flags, _callback, _user_data * ) */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8559, __pyx_L1_error) } __pyx_t_10 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) __PYX_ERR(0, 8559, __pyx_L1_error) __pyx_t_6 = __pyx_f_5imgui_4core__bytes(__pyx_v_hint); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__pyx_t_6 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8559, __pyx_L1_error) } __pyx_t_11 = __Pyx_PyBytes_AsString(__pyx_t_6); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(0, 8559, __pyx_L1_error) /* "imgui/core.pyx":8558 * _user_data = _user_info * * changed = cimgui.InputTextWithHint( # <<<<<<<<<<<<<< * _bytes(label), _bytes(hint), _input_text_shared_buffer.buffer, _buffer_length, * flags, _callback, _user_data */ try { __pyx_t_12 = ImGui::InputTextWithHint(__pyx_t_10, __pyx_t_11, __pyx_v_5imgui_4core__input_text_shared_buffer->buffer, __pyx_v__buffer_length, __pyx_v_flags, __pyx_v__callback, __pyx_v__user_data); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8558, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_changed = __pyx_t_12; /* "imgui/core.pyx":8562 * flags, _callback, _user_data * ) * _buffer_length = strlen(_input_text_shared_buffer.buffer) # <<<<<<<<<<<<<< * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) * */ __pyx_v__buffer_length = strlen(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer); /* "imgui/core.pyx":8563 * ) * _buffer_length = strlen(_input_text_shared_buffer.buffer) * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) # <<<<<<<<<<<<<< * * return changed, output */ __pyx_t_6 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_5imgui_4core__input_text_shared_buffer->buffer + 0, __pyx_v__buffer_length - 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_6)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_output = __pyx_t_1; __pyx_t_1 = 0; /* "imgui/core.pyx":8565 * output = _from_bytes(_input_text_shared_buffer.buffer[:_buffer_length]) * * return changed, output # <<<<<<<<<<<<<< * * def input_float( */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_changed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __Pyx_INCREF(__pyx_v_output); __Pyx_GIVEREF(__pyx_v_output); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_output); __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":8485 * * * def input_text_with_hint( # <<<<<<<<<<<<<< * str label, * str hint, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.input_text_with_hint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v__value_bytes); __Pyx_XDECREF((PyObject *)__pyx_v__user_info); __Pyx_XDECREF(__pyx_v_output); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8567 * return changed, output * * def input_float( # <<<<<<<<<<<<<< * str label, * float value, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_287input_float(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_286input_float[] = "input_float(str label, float value, float step=0.0, float step_fast=0.0, str format='%.3f', ImGuiInputTextFlags flags=0)\nDisplay float input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n float_val = 0.4\n imgui.begin(\"Example: float input\")\n changed, float_val = imgui.input_float('Type coefficient:', float_val)\n imgui.text('You wrote: %f' % float_val)\n imgui.end()\n\n Args:\n label (str): widget label.\n value (float): textbox value\n step (float): incremental step\n step_fast (float): fast incremental step\n format = (str): format string\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current textbox content.\n\n .. wraps::\n bool InputFloat(\n const char* label,\n float* v,\n float step = 0.0f,\n float step_fast = 0.0f,\n const char* format = \"%.3f\",\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_287input_float = {"input_float", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_287input_float, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_286input_float}; static PyObject *__pyx_pw_5imgui_4core_287input_float(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value; float __pyx_v_step; float __pyx_v_step_fast; PyObject *__pyx_v_format = 0; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_float (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_step,&__pyx_n_s_step_fast,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[6] = {0,0,0,0,0,0}; values[4] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float", 0, 2, 6, 1); __PYX_ERR(0, 8567, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step_fast); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_float") < 0)) __PYX_ERR(0, 8567, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8569, __pyx_L3_error) if (values[2]) { __pyx_v_step = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_step == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8570, __pyx_L3_error) } else { __pyx_v_step = ((float)0.0); } if (values[3]) { __pyx_v_step_fast = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_step_fast == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8571, __pyx_L3_error) } else { __pyx_v_step_fast = ((float)0.0); } __pyx_v_format = ((PyObject*)values[4]); if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8573, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_float", 0, 2, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8567, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_float", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8568, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8572, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_286input_float(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_step, __pyx_v_step_fast, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_286input_float(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value, float __pyx_v_step, float __pyx_v_step_fast, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags) { float __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_float", 0); /* "imgui/core.pyx":8611 * ) * """ * cdef float inout_value = value # <<<<<<<<<<<<<< * * return cimgui.InputFloat( */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":8613 * cdef float inout_value = value * * return cimgui.InputFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, * step_fast, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8614 * * return cimgui.InputFloat( * _bytes(label), &inout_value, step, # <<<<<<<<<<<<<< * step_fast, _bytes(format), flags * ), inout_value */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8614, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 8614, __pyx_L1_error) /* "imgui/core.pyx":8615 * return cimgui.InputFloat( * _bytes(label), &inout_value, step, * step_fast, _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8615, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 8615, __pyx_L1_error) /* "imgui/core.pyx":8613 * cdef float inout_value = value * * return cimgui.InputFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, * step_fast, _bytes(format), flags */ try { __pyx_t_5 = ImGui::InputFloat(__pyx_t_2, (&__pyx_v_inout_value), __pyx_v_step, __pyx_v_step_fast, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8613, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "imgui/core.pyx":8616 * _bytes(label), &inout_value, step, * step_fast, _bytes(format), flags * ), inout_value # <<<<<<<<<<<<<< * * def input_float2( */ __pyx_t_1 = PyFloat_FromDouble(__pyx_v_inout_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":8613 * cdef float inout_value = value * * return cimgui.InputFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, * step_fast, _bytes(format), flags */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":8567 * return changed, output * * def input_float( # <<<<<<<<<<<<<< * str label, * float value, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.input_float", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8618 * ), inout_value * * def input_float2( # <<<<<<<<<<<<<< * str label, * float value0, float value1, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_289input_float2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_288input_float2[] = "input_float2(str label, float value0, float value1, str format='%.3f', ImGuiInputTextFlags flags=0)\nDisplay two-float input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n values = 0.4, 3.2\n imgui.begin(\"Example: two float inputs\")\n changed, values = imgui.input_float2('Type here:', *values)\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1 (float): input values.\n format = (str): format string\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n textbox state change and the tuple of current values.\n\n .. wraps::\n bool InputFloat2(\n const char* label,\n float v[2],\n const char* format = \"%.3f\",\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_289input_float2 = {"input_float2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_289input_float2, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_288input_float2}; static PyObject *__pyx_pw_5imgui_4core_289input_float2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; PyObject *__pyx_v_format = 0; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_float2 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[5] = {0,0,0,0,0}; values[3] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float2", 0, 3, 5, 1); __PYX_ERR(0, 8618, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float2", 0, 3, 5, 2); __PYX_ERR(0, 8618, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_float2") < 0)) __PYX_ERR(0, 8618, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8620, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8620, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[3]); if (values[4]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[4]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8622, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_float2", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8618, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_float2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8619, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8621, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_288input_float2(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_288input_float2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags) { float __pyx_v_inout_values[2]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[2]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_float2", 0); /* "imgui/core.pyx":8656 * ) * """ * cdef float[2] inout_values = [value0, value1] # <<<<<<<<<<<<<< * * return cimgui.InputFloat2( */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (2)); /* "imgui/core.pyx":8658 * cdef float[2] inout_values = [value0, value1] * * return cimgui.InputFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8659 * * return cimgui.InputFloat2( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * _bytes(format), flags * ), (inout_values[0], inout_values[1]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8659, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 8659, __pyx_L1_error) /* "imgui/core.pyx":8660 * return cimgui.InputFloat2( * _bytes(label), &inout_values, * _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8660, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 8660, __pyx_L1_error) /* "imgui/core.pyx":8658 * cdef float[2] inout_values = [value0, value1] * * return cimgui.InputFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ try { __pyx_t_6 = ImGui::InputFloat2(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8658, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":8661 * _bytes(label), &inout_values, * _bytes(format), flags * ), (inout_values[0], inout_values[1]) # <<<<<<<<<<<<<< * * def input_float3( */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7); __pyx_t_2 = 0; __pyx_t_7 = 0; /* "imgui/core.pyx":8658 * cdef float[2] inout_values = [value0, value1] * * return cimgui.InputFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); __pyx_t_4 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":8618 * ), inout_value * * def input_float2( # <<<<<<<<<<<<<< * str label, * float value0, float value1, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.input_float2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8663 * ), (inout_values[0], inout_values[1]) * * def input_float3( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_291input_float3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_290input_float3[] = "input_float3(str label, float value0, float value1, float value2, str format='%.3f', ImGuiInputTextFlags flags=0)\nDisplay three-float input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n values = 0.4, 3.2, 29.3\n imgui.begin(\"Example: three float inputs\")\n changed, values = imgui.input_float3('Type here:', *values)\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2 (float): input values.\n format = (str): format string\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n textbox state change and the tuple of current values.\n\n .. wraps::\n bool InputFloat3(\n const char* label,\n float v[3],\n const char* format = \"%.3f\",\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_291input_float3 = {"input_float3", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_291input_float3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_290input_float3}; static PyObject *__pyx_pw_5imgui_4core_291input_float3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; float __pyx_v_value2; PyObject *__pyx_v_format = 0; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_float3 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[6] = {0,0,0,0,0,0}; values[4] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float3", 0, 4, 6, 1); __PYX_ERR(0, 8663, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float3", 0, 4, 6, 2); __PYX_ERR(0, 8663, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float3", 0, 4, 6, 3); __PYX_ERR(0, 8663, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_float3") < 0)) __PYX_ERR(0, 8663, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8665, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8665, __pyx_L3_error) __pyx_v_value2 = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_value2 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8665, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[4]); if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8667, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_float3", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8663, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_float3", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8664, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8666, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_290input_float3(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_290input_float3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags) { float __pyx_v_inout_values[3]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[3]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_float3", 0); /* "imgui/core.pyx":8701 * ) * """ * cdef float[3] inout_values = [value0, value1, value2] # <<<<<<<<<<<<<< * * return cimgui.InputFloat3( */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (3)); /* "imgui/core.pyx":8703 * cdef float[3] inout_values = [value0, value1, value2] * * return cimgui.InputFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8704 * * return cimgui.InputFloat3( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8704, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 8704, __pyx_L1_error) /* "imgui/core.pyx":8705 * return cimgui.InputFloat3( * _bytes(label), &inout_values, * _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8705, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 8705, __pyx_L1_error) /* "imgui/core.pyx":8703 * cdef float[3] inout_values = [value0, value1, value2] * * return cimgui.InputFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ try { __pyx_t_6 = ImGui::InputFloat3(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8703, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":8706 * _bytes(label), &inout_values, * _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) # <<<<<<<<<<<<<< * * def input_float4( */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyFloat_FromDouble((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_8); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; /* "imgui/core.pyx":8703 * cdef float[3] inout_values = [value0, value1, value2] * * return cimgui.InputFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); __pyx_t_4 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "imgui/core.pyx":8663 * ), (inout_values[0], inout_values[1]) * * def input_float3( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.input_float3", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8708 * ), (inout_values[0], inout_values[1], inout_values[2]) * * def input_float4( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, float value3, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_293input_float4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_292input_float4[] = "input_float4(str label, float value0, float value1, float value2, float value3, str format='%.3f', ImGuiInputTextFlags flags=0)\nDisplay four-float input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n values = 0.4, 3.2, 29.3, 12.9\n imgui.begin(\"Example: four float inputs\")\n changed, values = imgui.input_float4('Type here:', *values)\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2, value3 (float): input values.\n format = (str): format string\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n textbox state change and the tuple of current values.\n\n .. wraps::\n bool InputFloat4(\n const char* label,\n float v[4],\n const char* format = \"%.3f\",\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_293input_float4 = {"input_float4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_293input_float4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_292input_float4}; static PyObject *__pyx_pw_5imgui_4core_293input_float4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; float __pyx_v_value2; float __pyx_v_value3; PyObject *__pyx_v_format = 0; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_float4 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_value3,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; values[5] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float4", 0, 5, 7, 1); __PYX_ERR(0, 8708, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float4", 0, 5, 7, 2); __PYX_ERR(0, 8708, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float4", 0, 5, 7, 3); __PYX_ERR(0, 8708, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value3)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_float4", 0, 5, 7, 4); __PYX_ERR(0, 8708, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_float4") < 0)) __PYX_ERR(0, 8708, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8710, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8710, __pyx_L3_error) __pyx_v_value2 = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_value2 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8710, __pyx_L3_error) __pyx_v_value3 = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_value3 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 8710, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[5]); if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8712, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_float4", 0, 5, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8708, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_float4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8709, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8711, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_292input_float4(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_value3, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_292input_float4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_value3, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags) { float __pyx_v_inout_values[4]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[4]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_float4", 0); /* "imgui/core.pyx":8746 * ) * """ * cdef float[4] inout_values = [value0, value1, value2, value3] # <<<<<<<<<<<<<< * * return cimgui.InputFloat4( */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; __pyx_t_1[3] = __pyx_v_value3; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (4)); /* "imgui/core.pyx":8748 * cdef float[4] inout_values = [value0, value1, value2, value3] * * return cimgui.InputFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8749 * * return cimgui.InputFloat4( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8749, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 8749, __pyx_L1_error) /* "imgui/core.pyx":8750 * return cimgui.InputFloat4( * _bytes(label), &inout_values, * _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8750, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 8750, __pyx_L1_error) /* "imgui/core.pyx":8748 * cdef float[4] inout_values = [value0, value1, value2, value3] * * return cimgui.InputFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ try { __pyx_t_6 = ImGui::InputFloat4(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8748, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":8751 * _bytes(label), &inout_values, * _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyFloat_FromDouble((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyFloat_FromDouble((__pyx_v_inout_values[3])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyTuple_New(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; /* "imgui/core.pyx":8748 * cdef float[4] inout_values = [value0, value1, value2, value3] * * return cimgui.InputFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * _bytes(format), flags */ __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_10); __pyx_t_4 = 0; __pyx_t_10 = 0; __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; /* "imgui/core.pyx":8708 * ), (inout_values[0], inout_values[1], inout_values[2]) * * def input_float4( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, float value3, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("imgui.core.input_float4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8754 * * * def input_int( # <<<<<<<<<<<<<< * str label, * int value, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_295input_int(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_294input_int[] = "input_int(str label, int value, int step=1, int step_fast=100, ImGuiInputTextFlags flags=0)\nDisplay integer input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n int_val = 3\n imgui.begin(\"Example: integer input\")\n changed, int_val = imgui.input_int('Type multiplier:', int_val)\n imgui.text('You wrote: %i' % int_val)\n imgui.end()\n\n Args:\n label (str): widget label.\n value (int): textbox value\n step (int): incremental step\n step_fast (int): fast incremental step\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current textbox content.\n\n .. wraps::\n bool InputInt(\n const char* label,\n int* v,\n int step = 1,\n int step_fast = 100,\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_295input_int = {"input_int", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_295input_int, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_294input_int}; static PyObject *__pyx_pw_5imgui_4core_295input_int(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value; int __pyx_v_step; int __pyx_v_step_fast; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_int (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_step,&__pyx_n_s_step_fast,&__pyx_n_s_flags,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int", 0, 2, 5, 1); __PYX_ERR(0, 8754, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step_fast); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_int") < 0)) __PYX_ERR(0, 8754, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8756, __pyx_L3_error) if (values[2]) { __pyx_v_step = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_step == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8757, __pyx_L3_error) } else { __pyx_v_step = ((int)1); } if (values[3]) { __pyx_v_step_fast = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_step_fast == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8758, __pyx_L3_error) } else { __pyx_v_step_fast = ((int)0x64); } if (values[4]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[4]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8759, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_int", 0, 2, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8754, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_int", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8755, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_294input_int(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_step, __pyx_v_step_fast, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_294input_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value, int __pyx_v_step, int __pyx_v_step_fast, ImGuiInputTextFlags __pyx_v_flags) { int __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_int", 0); /* "imgui/core.pyx":8795 * ) * """ * cdef int inout_value = value # <<<<<<<<<<<<<< * * return cimgui.InputInt( */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":8797 * cdef int inout_value = value * * return cimgui.InputInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, step_fast, flags * ), inout_value */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8798 * * return cimgui.InputInt( * _bytes(label), &inout_value, step, step_fast, flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8798, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 8798, __pyx_L1_error) /* "imgui/core.pyx":8797 * cdef int inout_value = value * * return cimgui.InputInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, step_fast, flags * ), inout_value */ try { __pyx_t_3 = ImGui::InputInt(__pyx_t_2, (&__pyx_v_inout_value), __pyx_v_step, __pyx_v_step_fast, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8797, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":8799 * return cimgui.InputInt( * _bytes(label), &inout_value, step, step_fast, flags * ), inout_value # <<<<<<<<<<<<<< * * */ __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_inout_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":8797 * cdef int inout_value = value * * return cimgui.InputInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, step_fast, flags * ), inout_value */ __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "imgui/core.pyx":8754 * * * def input_int( # <<<<<<<<<<<<<< * str label, * int value, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core.input_int", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8802 * * * def input_int2( # <<<<<<<<<<<<<< * str label, * int value0, int value1, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_297input_int2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_296input_int2[] = "input_int2(str label, int value0, int value1, ImGuiInputTextFlags flags=0)\nDisplay two-integer input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n values = 4, 12\n imgui.begin(\"Example: two int inputs\")\n changed, values = imgui.input_int2('Type here:', *values)\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1 (int): textbox values\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current textbox content.\n\n .. wraps::\n bool InputInt2(\n const char* label,\n int v[2],\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_297input_int2 = {"input_int2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_297input_int2, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_296input_int2}; static PyObject *__pyx_pw_5imgui_4core_297input_int2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_int2 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_flags,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int2", 0, 3, 4, 1); __PYX_ERR(0, 8802, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int2", 0, 3, 4, 2); __PYX_ERR(0, 8802, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_int2") < 0)) __PYX_ERR(0, 8802, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8804, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8804, __pyx_L3_error) if (values[3]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[3]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8805, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_int2", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8802, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_int2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8803, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_296input_int2(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_296input_int2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, ImGuiInputTextFlags __pyx_v_flags) { int __pyx_v_inout_values[2]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[2]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; bool __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_int2", 0); /* "imgui/core.pyx":8837 * ) * """ * cdef int[2] inout_values = [value0, value1] # <<<<<<<<<<<<<< * * return cimgui.InputInt2( */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (2)); /* "imgui/core.pyx":8839 * cdef int[2] inout_values = [value0, value1] * * return cimgui.InputInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1]] */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8840 * * return cimgui.InputInt2( * _bytes(label), &inout_values, flags # <<<<<<<<<<<<<< * ), [inout_values[0], inout_values[1]] * */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8840, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 8840, __pyx_L1_error) /* "imgui/core.pyx":8839 * cdef int[2] inout_values = [value0, value1] * * return cimgui.InputInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1]] */ try { __pyx_t_4 = ImGui::InputInt2(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8839, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":8841 * return cimgui.InputInt2( * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1]] # <<<<<<<<<<<<<< * * */ __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyList_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyList_SET_ITEM(__pyx_t_7, 1, __pyx_t_6); __pyx_t_5 = 0; __pyx_t_6 = 0; /* "imgui/core.pyx":8839 * cdef int[2] inout_values = [value0, value1] * * return cimgui.InputInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1]] */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":8802 * * * def input_int2( # <<<<<<<<<<<<<< * str label, * int value0, int value1, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.input_int2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8844 * * * def input_int3( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_299input_int3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_298input_int3[] = "input_int3(str label, int value0, int value1, int value2, ImGuiInputTextFlags flags=0)\nDisplay three-integer input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n values = 4, 12, 28\n imgui.begin(\"Example: three int inputs\")\n changed, values = imgui.input_int3('Type here:', *values)\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2 (int): textbox values\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current textbox content.\n\n .. wraps::\n bool InputInt3(\n const char* label,\n int v[3],\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_299input_int3 = {"input_int3", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_299input_int3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_298input_int3}; static PyObject *__pyx_pw_5imgui_4core_299input_int3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; int __pyx_v_value2; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_int3 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_flags,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int3", 0, 4, 5, 1); __PYX_ERR(0, 8844, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int3", 0, 4, 5, 2); __PYX_ERR(0, 8844, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int3", 0, 4, 5, 3); __PYX_ERR(0, 8844, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_int3") < 0)) __PYX_ERR(0, 8844, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8846, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8846, __pyx_L3_error) __pyx_v_value2 = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_value2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8846, __pyx_L3_error) if (values[4]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[4]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8847, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_int3", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8844, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_int3", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8845, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_298input_int3(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_298input_int3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, ImGuiInputTextFlags __pyx_v_flags) { int __pyx_v_inout_values[3]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[3]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; bool __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_int3", 0); /* "imgui/core.pyx":8879 * ) * """ * cdef int[3] inout_values = [value0, value1, value2] # <<<<<<<<<<<<<< * * return cimgui.InputInt3( */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (3)); /* "imgui/core.pyx":8881 * cdef int[3] inout_values = [value0, value1, value2] * * return cimgui.InputInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1], inout_values[2]] */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8882 * * return cimgui.InputInt3( * _bytes(label), &inout_values, flags # <<<<<<<<<<<<<< * ), [inout_values[0], inout_values[1], inout_values[2]] * */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8882, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 8882, __pyx_L1_error) /* "imgui/core.pyx":8881 * cdef int[3] inout_values = [value0, value1, value2] * * return cimgui.InputInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1], inout_values[2]] */ try { __pyx_t_4 = ImGui::InputInt3(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8881, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":8883 * return cimgui.InputInt3( * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1], inout_values[2]] # <<<<<<<<<<<<<< * * */ __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyList_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_5); PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyList_SET_ITEM(__pyx_t_8, 1, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyList_SET_ITEM(__pyx_t_8, 2, __pyx_t_7); __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0; /* "imgui/core.pyx":8881 * cdef int[3] inout_values = [value0, value1, value2] * * return cimgui.InputInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1], inout_values[2]] */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); __pyx_t_2 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":8844 * * * def input_int3( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.input_int3", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8886 * * * def input_int4( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, int value3, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_301input_int4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_300input_int4[] = "input_int4(str label, int value0, int value1, int value2, int value3, ImGuiInputTextFlags flags=0)\nDisplay four-integer input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n values = 4, 12, 28, 73\n imgui.begin(\"Example: four int inputs\")\n changed, values = imgui.input_int4('Type here:', *values)\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2, value3 (int): textbox values\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current textbox content.\n\n .. wraps::\n bool InputInt4(\n const char* label,\n int v[4],\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_301input_int4 = {"input_int4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_301input_int4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_300input_int4}; static PyObject *__pyx_pw_5imgui_4core_301input_int4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; int __pyx_v_value2; int __pyx_v_value3; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_int4 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_value3,&__pyx_n_s_flags,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int4", 0, 5, 6, 1); __PYX_ERR(0, 8886, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int4", 0, 5, 6, 2); __PYX_ERR(0, 8886, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int4", 0, 5, 6, 3); __PYX_ERR(0, 8886, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value3)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_int4", 0, 5, 6, 4); __PYX_ERR(0, 8886, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_int4") < 0)) __PYX_ERR(0, 8886, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8888, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8888, __pyx_L3_error) __pyx_v_value2 = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_value2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8888, __pyx_L3_error) __pyx_v_value3 = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_value3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8888, __pyx_L3_error) if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8889, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_int4", 0, 5, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8886, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_int4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8887, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_300input_int4(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_value3, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_300input_int4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, int __pyx_v_value3, ImGuiInputTextFlags __pyx_v_flags) { int __pyx_v_inout_values[4]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[4]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; bool __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_int4", 0); /* "imgui/core.pyx":8921 * ) * """ * cdef int[4] inout_values = [value0, value1, value2, value3] # <<<<<<<<<<<<<< * * return cimgui.InputInt4( */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; __pyx_t_1[3] = __pyx_v_value3; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (4)); /* "imgui/core.pyx":8923 * cdef int[4] inout_values = [value0, value1, value2, value3] * * return cimgui.InputInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1], inout_values[2], inout_values[3]] */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8924 * * return cimgui.InputInt4( * _bytes(label), &inout_values, flags # <<<<<<<<<<<<<< * ), [inout_values[0], inout_values[1], inout_values[2], inout_values[3]] * */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8924, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 8924, __pyx_L1_error) /* "imgui/core.pyx":8923 * cdef int[4] inout_values = [value0, value1, value2, value3] * * return cimgui.InputInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1], inout_values[2], inout_values[3]] */ try { __pyx_t_4 = ImGui::InputInt4(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8923, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":8925 * return cimgui.InputInt4( * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1], inout_values[2], inout_values[3]] # <<<<<<<<<<<<<< * * */ __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_From_int((__pyx_v_inout_values[3])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyList_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_5); PyList_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyList_SET_ITEM(__pyx_t_9, 1, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyList_SET_ITEM(__pyx_t_9, 2, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyList_SET_ITEM(__pyx_t_9, 3, __pyx_t_8); __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; /* "imgui/core.pyx":8923 * cdef int[4] inout_values = [value0, value1, value2, value3] * * return cimgui.InputInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, flags * ), [inout_values[0], inout_values[1], inout_values[2], inout_values[3]] */ __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "imgui/core.pyx":8886 * * * def input_int4( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, int value3, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.input_int4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8928 * * * def input_double( # <<<<<<<<<<<<<< * str label, * double value, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_303input_double(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_302input_double[] = "input_double(str label, double value, double step=0.0, double step_fast=0.0, str format='%.6f', ImGuiInputTextFlags flags=0)\nDisplay double input widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 100\n\n double_val = 3.14159265358979323846\n imgui.begin(\"Example: double input\")\n changed, double_val = imgui.input_double('Type multiplier:', double_val)\n imgui.text('You wrote: %i' % double_val)\n imgui.end()\n\n Args:\n label (str): widget label.\n value (double): textbox value\n step (double): incremental step\n step_fast (double): fast incremental step\n format = (str): format string\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n textbox state change and the current textbox content.\n\n .. wraps::\n bool InputDouble(\n const char* label,\n double* v,\n double step = 0.0,\n double step_fast = 0.0,\n _bytes(format),\n ImGuiInputTextFlags extra_flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_303input_double = {"input_double", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_303input_double, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_302input_double}; static PyObject *__pyx_pw_5imgui_4core_303input_double(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; double __pyx_v_value; double __pyx_v_step; double __pyx_v_step_fast; PyObject *__pyx_v_format = 0; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_double (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_step,&__pyx_n_s_step_fast,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[6] = {0,0,0,0,0,0}; values[4] = ((PyObject*)__pyx_kp_s_6f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_double", 0, 2, 6, 1); __PYX_ERR(0, 8928, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step_fast); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_double") < 0)) __PYX_ERR(0, 8928, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_value == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8930, __pyx_L3_error) if (values[2]) { __pyx_v_step = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_step == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8931, __pyx_L3_error) } else { __pyx_v_step = ((double)0.0); } if (values[3]) { __pyx_v_step_fast = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_step_fast == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8932, __pyx_L3_error) } else { __pyx_v_step_fast = ((double)0.0); } __pyx_v_format = ((PyObject*)values[4]); if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8934, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_double", 0, 2, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8928, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_double", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8929, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8933, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_302input_double(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_step, __pyx_v_step_fast, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_302input_double(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, double __pyx_v_value, double __pyx_v_step, double __pyx_v_step_fast, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags) { double __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_double", 0); /* "imgui/core.pyx":8972 * ) * """ * cdef double inout_value = value # <<<<<<<<<<<<<< * * return cimgui.InputDouble( */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":8974 * cdef double inout_value = value * * return cimgui.InputDouble( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, step_fast, _bytes(format), flags * ), inout_value */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":8975 * * return cimgui.InputDouble( * _bytes(label), &inout_value, step, step_fast, _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8975, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 8975, __pyx_L1_error) __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 8975, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 8975, __pyx_L1_error) /* "imgui/core.pyx":8974 * cdef double inout_value = value * * return cimgui.InputDouble( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, step_fast, _bytes(format), flags * ), inout_value */ try { __pyx_t_5 = ImGui::InputDouble(__pyx_t_2, (&__pyx_v_inout_value), __pyx_v_step, __pyx_v_step_fast, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 8974, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "imgui/core.pyx":8976 * return cimgui.InputDouble( * _bytes(label), &inout_value, step, step_fast, _bytes(format), flags * ), inout_value # <<<<<<<<<<<<<< * * def input_scalar( */ __pyx_t_1 = PyFloat_FromDouble(__pyx_v_inout_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":8974 * cdef double inout_value = value * * return cimgui.InputDouble( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, step, step_fast, _bytes(format), flags * ), inout_value */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":8928 * * * def input_double( # <<<<<<<<<<<<<< * str label, * double value, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.input_double", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":8978 * ), inout_value * * def input_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_305input_scalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_304input_scalar[] = "input_scalar(str label, ImGuiDataType data_type, bytes data, bytes step=None, bytes step_fast=None, str format=None, ImGuiInputTextFlags flags=0)\nDisplay scalar input widget.\n Data is passed via ``bytes`` and the type is separatelly given using ``data_type``.\n This is useful to work with specific types (e.g. unsigned 8bit integer, float, double)\n like when interfacing with Numpy.\n\n Args:\n label (str): widget label\n data_type: ImGuiDataType enum, type of the given data\n data (bytes): data value as a bytes array\n step (bytes): incremental step\n step_fast (bytes): fast incremental step\n format (str): format string\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n input state change and the current input content.\n\n .. wraps::\n bool InputScalar(\n const char* label,\n ImGuiDataType data_type,\n void* p_data,\n const void* p_step = NULL,\n const void* p_step_fast = NULL,\n const char* format = NULL,\n ImGuiInputTextFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_305input_scalar = {"input_scalar", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_305input_scalar, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_304input_scalar}; static PyObject *__pyx_pw_5imgui_4core_305input_scalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiDataType __pyx_v_data_type; PyObject *__pyx_v_data = 0; PyObject *__pyx_v_step = 0; PyObject *__pyx_v_step_fast = 0; PyObject *__pyx_v_format = 0; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_scalar (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_data_type,&__pyx_n_s_data,&__pyx_n_s_step,&__pyx_n_s_step_fast,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; /* "imgui/core.pyx":8982 * cimgui.ImGuiDataType data_type, * bytes data, * bytes step = None, # <<<<<<<<<<<<<< * bytes step_fast = None, * str format = None, */ values[3] = ((PyObject*)Py_None); /* "imgui/core.pyx":8983 * bytes data, * bytes step = None, * bytes step_fast = None, # <<<<<<<<<<<<<< * str format = None, * cimgui.ImGuiInputTextFlags flags = 0): */ values[4] = ((PyObject*)Py_None); /* "imgui/core.pyx":8984 * bytes step = None, * bytes step_fast = None, * str format = None, # <<<<<<<<<<<<<< * cimgui.ImGuiInputTextFlags flags = 0): * """Display scalar input widget. */ values[5] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_scalar", 0, 3, 7, 1); __PYX_ERR(0, 8978, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_scalar", 0, 3, 7, 2); __PYX_ERR(0, 8978, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step_fast); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_scalar") < 0)) __PYX_ERR(0, 8978, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_data_type = __Pyx_PyInt_As_ImGuiDataType(values[1]); if (unlikely((__pyx_v_data_type == ((ImGuiDataType)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8980, __pyx_L3_error) __pyx_v_data = ((PyObject*)values[2]); __pyx_v_step = ((PyObject*)values[3]); __pyx_v_step_fast = ((PyObject*)values[4]); __pyx_v_format = ((PyObject*)values[5]); if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 8985, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_scalar", 0, 3, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8978, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 8979, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 8981, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_step), (&PyBytes_Type), 1, "step", 1))) __PYX_ERR(0, 8982, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_step_fast), (&PyBytes_Type), 1, "step_fast", 1))) __PYX_ERR(0, 8983, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 8984, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_304input_scalar(__pyx_self, __pyx_v_label, __pyx_v_data_type, __pyx_v_data, __pyx_v_step, __pyx_v_step_fast, __pyx_v_format, __pyx_v_flags); /* "imgui/core.pyx":8978 * ), inout_value * * def input_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_304input_scalar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, PyObject *__pyx_v_step, PyObject *__pyx_v_step_fast, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags) { char *__pyx_v_p_data; char *__pyx_v_p_step; char *__pyx_v_p_step_fast; char *__pyx_v_fmt; PyObject *__pyx_v_fmt_data = 0; PyObject *__pyx_v_changed = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_scalar", 0); /* "imgui/core.pyx":9017 * """ * * cdef char* p_data = data # <<<<<<<<<<<<<< * cdef char* p_step = NULL * if step is not None: */ if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9017, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9017, __pyx_L1_error) __pyx_v_p_data = __pyx_t_1; /* "imgui/core.pyx":9018 * * cdef char* p_data = data * cdef char* p_step = NULL # <<<<<<<<<<<<<< * if step is not None: * p_step = step */ __pyx_v_p_step = NULL; /* "imgui/core.pyx":9019 * cdef char* p_data = data * cdef char* p_step = NULL * if step is not None: # <<<<<<<<<<<<<< * p_step = step * cdef char* p_step_fast = NULL */ __pyx_t_2 = (__pyx_v_step != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":9020 * cdef char* p_step = NULL * if step is not None: * p_step = step # <<<<<<<<<<<<<< * cdef char* p_step_fast = NULL * if step_fast is not None: */ if (unlikely(__pyx_v_step == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9020, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_step); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9020, __pyx_L1_error) __pyx_v_p_step = __pyx_t_1; /* "imgui/core.pyx":9019 * cdef char* p_data = data * cdef char* p_step = NULL * if step is not None: # <<<<<<<<<<<<<< * p_step = step * cdef char* p_step_fast = NULL */ } /* "imgui/core.pyx":9021 * if step is not None: * p_step = step * cdef char* p_step_fast = NULL # <<<<<<<<<<<<<< * if step_fast is not None: * p_step_fast = step_fast */ __pyx_v_p_step_fast = NULL; /* "imgui/core.pyx":9022 * p_step = step * cdef char* p_step_fast = NULL * if step_fast is not None: # <<<<<<<<<<<<<< * p_step_fast = step_fast * cdef char* fmt = NULL */ __pyx_t_3 = (__pyx_v_step_fast != ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":9023 * cdef char* p_step_fast = NULL * if step_fast is not None: * p_step_fast = step_fast # <<<<<<<<<<<<<< * cdef char* fmt = NULL * cdef bytes fmt_data; */ if (unlikely(__pyx_v_step_fast == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9023, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_step_fast); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9023, __pyx_L1_error) __pyx_v_p_step_fast = __pyx_t_1; /* "imgui/core.pyx":9022 * p_step = step * cdef char* p_step_fast = NULL * if step_fast is not None: # <<<<<<<<<<<<<< * p_step_fast = step_fast * cdef char* fmt = NULL */ } /* "imgui/core.pyx":9024 * if step_fast is not None: * p_step_fast = step_fast * cdef char* fmt = NULL # <<<<<<<<<<<<<< * cdef bytes fmt_data; * if format is not None: */ __pyx_v_fmt = NULL; /* "imgui/core.pyx":9026 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ __pyx_t_2 = (__pyx_v_format != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":9027 * cdef bytes fmt_data; * if format is not None: * fmt_data = _bytes(format) # <<<<<<<<<<<<<< * fmt = fmt_data * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_fmt_data = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":9028 * if format is not None: * fmt_data = _bytes(format) * fmt = fmt_data # <<<<<<<<<<<<<< * * cdef changed = cimgui.InputScalar( */ if (unlikely(__pyx_v_fmt_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9028, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_fmt_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9028, __pyx_L1_error) __pyx_v_fmt = __pyx_t_1; /* "imgui/core.pyx":9026 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ } /* "imgui/core.pyx":9031 * * cdef changed = cimgui.InputScalar( * _bytes(label), # <<<<<<<<<<<<<< * data_type, * p_data, */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9031, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9031, __pyx_L1_error) /* "imgui/core.pyx":9030 * fmt = fmt_data * * cdef changed = cimgui.InputScalar( # <<<<<<<<<<<<<< * _bytes(label), * data_type, */ try { __pyx_t_6 = ImGui::InputScalar(__pyx_t_5, __pyx_v_data_type, __pyx_v_p_data, __pyx_v_p_step, __pyx_v_p_step_fast, __pyx_v_fmt, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9030, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_changed = __pyx_t_4; __pyx_t_4 = 0; /* "imgui/core.pyx":9040 * ) * * return changed, data # <<<<<<<<<<<<<< * * def input_scalar_N( */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9040, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_changed); __Pyx_GIVEREF(__pyx_v_changed); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_changed); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_data); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":8978 * ), inout_value * * def input_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.input_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fmt_data); __Pyx_XDECREF(__pyx_v_changed); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9042 * return changed, data * * def input_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_307input_scalar_N(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_306input_scalar_N[] = "input_scalar_N(str label, ImGuiDataType data_type, bytes data, int components, bytes step=None, bytes step_fast=None, str format=None, ImGuiInputTextFlags flags=0)\nDisplay multiple scalar input widget.\n Data is passed via ``bytes`` and the type is separatelly given using ``data_type``.\n This is useful to work with specific types (e.g. unsigned 8bit integer, float, double)\n like when interfacing with Numpy.\n\n Args:\n label (str): widget label\n data_type: ImGuiDataType enum, type of the given data\n data (bytes): data value as a bytes array\n components (int): number of components to display\n step (bytes): incremental step\n step_fast (bytes): fast incremental step\n format (str): format string\n flags: InputText flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n input state change and the current input content.\n\n .. wraps::\n bool InputScalarN(\n const char* label,\n ImGuiDataType data_type,\n void* p_data,\n int components,\n const void* p_step = NULL,\n const void* p_step_fast = NULL,\n const char* format = NULL,\n ImGuiInputTextFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_307input_scalar_N = {"input_scalar_N", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_307input_scalar_N, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_306input_scalar_N}; static PyObject *__pyx_pw_5imgui_4core_307input_scalar_N(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiDataType __pyx_v_data_type; PyObject *__pyx_v_data = 0; int __pyx_v_components; PyObject *__pyx_v_step = 0; PyObject *__pyx_v_step_fast = 0; PyObject *__pyx_v_format = 0; ImGuiInputTextFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("input_scalar_N (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_data_type,&__pyx_n_s_data,&__pyx_n_s_components,&__pyx_n_s_step,&__pyx_n_s_step_fast,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":9047 * bytes data, * int components, * bytes step = None, # <<<<<<<<<<<<<< * bytes step_fast = None, * str format = None, */ values[4] = ((PyObject*)Py_None); /* "imgui/core.pyx":9048 * int components, * bytes step = None, * bytes step_fast = None, # <<<<<<<<<<<<<< * str format = None, * cimgui.ImGuiInputTextFlags flags = 0): */ values[5] = ((PyObject*)Py_None); /* "imgui/core.pyx":9049 * bytes step = None, * bytes step_fast = None, * str format = None, # <<<<<<<<<<<<<< * cimgui.ImGuiInputTextFlags flags = 0): * """Display multiple scalar input widget. */ values[6] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_scalar_N", 0, 4, 8, 1); __PYX_ERR(0, 9042, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_scalar_N", 0, 4, 8, 2); __PYX_ERR(0, 9042, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_components)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("input_scalar_N", 0, 4, 8, 3); __PYX_ERR(0, 9042, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step_fast); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "input_scalar_N") < 0)) __PYX_ERR(0, 9042, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_data_type = __Pyx_PyInt_As_ImGuiDataType(values[1]); if (unlikely((__pyx_v_data_type == ((ImGuiDataType)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9044, __pyx_L3_error) __pyx_v_data = ((PyObject*)values[2]); __pyx_v_components = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_components == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9046, __pyx_L3_error) __pyx_v_step = ((PyObject*)values[4]); __pyx_v_step_fast = ((PyObject*)values[5]); __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiInputTextFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiInputTextFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9050, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiInputTextFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("input_scalar_N", 0, 4, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9042, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.input_scalar_N", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9043, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 9045, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_step), (&PyBytes_Type), 1, "step", 1))) __PYX_ERR(0, 9047, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_step_fast), (&PyBytes_Type), 1, "step_fast", 1))) __PYX_ERR(0, 9048, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9049, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_306input_scalar_N(__pyx_self, __pyx_v_label, __pyx_v_data_type, __pyx_v_data, __pyx_v_components, __pyx_v_step, __pyx_v_step_fast, __pyx_v_format, __pyx_v_flags); /* "imgui/core.pyx":9042 * return changed, data * * def input_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_306input_scalar_N(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, int __pyx_v_components, PyObject *__pyx_v_step, PyObject *__pyx_v_step_fast, PyObject *__pyx_v_format, ImGuiInputTextFlags __pyx_v_flags) { char *__pyx_v_p_data; char *__pyx_v_p_step; char *__pyx_v_p_step_fast; char *__pyx_v_fmt; PyObject *__pyx_v_fmt_data = 0; PyObject *__pyx_v_changed = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("input_scalar_N", 0); /* "imgui/core.pyx":9084 * """ * * cdef char* p_data = data # <<<<<<<<<<<<<< * cdef char* p_step = NULL * if step is not None: */ if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9084, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9084, __pyx_L1_error) __pyx_v_p_data = __pyx_t_1; /* "imgui/core.pyx":9085 * * cdef char* p_data = data * cdef char* p_step = NULL # <<<<<<<<<<<<<< * if step is not None: * p_step = step */ __pyx_v_p_step = NULL; /* "imgui/core.pyx":9086 * cdef char* p_data = data * cdef char* p_step = NULL * if step is not None: # <<<<<<<<<<<<<< * p_step = step * cdef char* p_step_fast = NULL */ __pyx_t_2 = (__pyx_v_step != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":9087 * cdef char* p_step = NULL * if step is not None: * p_step = step # <<<<<<<<<<<<<< * cdef char* p_step_fast = NULL * if step_fast is not None: */ if (unlikely(__pyx_v_step == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9087, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_step); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9087, __pyx_L1_error) __pyx_v_p_step = __pyx_t_1; /* "imgui/core.pyx":9086 * cdef char* p_data = data * cdef char* p_step = NULL * if step is not None: # <<<<<<<<<<<<<< * p_step = step * cdef char* p_step_fast = NULL */ } /* "imgui/core.pyx":9088 * if step is not None: * p_step = step * cdef char* p_step_fast = NULL # <<<<<<<<<<<<<< * if step_fast is not None: * p_step_fast = step_fast */ __pyx_v_p_step_fast = NULL; /* "imgui/core.pyx":9089 * p_step = step * cdef char* p_step_fast = NULL * if step_fast is not None: # <<<<<<<<<<<<<< * p_step_fast = step_fast * cdef char* fmt = NULL */ __pyx_t_3 = (__pyx_v_step_fast != ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":9090 * cdef char* p_step_fast = NULL * if step_fast is not None: * p_step_fast = step_fast # <<<<<<<<<<<<<< * cdef char* fmt = NULL * cdef bytes fmt_data; */ if (unlikely(__pyx_v_step_fast == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9090, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_step_fast); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9090, __pyx_L1_error) __pyx_v_p_step_fast = __pyx_t_1; /* "imgui/core.pyx":9089 * p_step = step * cdef char* p_step_fast = NULL * if step_fast is not None: # <<<<<<<<<<<<<< * p_step_fast = step_fast * cdef char* fmt = NULL */ } /* "imgui/core.pyx":9091 * if step_fast is not None: * p_step_fast = step_fast * cdef char* fmt = NULL # <<<<<<<<<<<<<< * cdef bytes fmt_data; * if format is not None: */ __pyx_v_fmt = NULL; /* "imgui/core.pyx":9093 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ __pyx_t_2 = (__pyx_v_format != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":9094 * cdef bytes fmt_data; * if format is not None: * fmt_data = _bytes(format) # <<<<<<<<<<<<<< * fmt = fmt_data * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_fmt_data = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":9095 * if format is not None: * fmt_data = _bytes(format) * fmt = fmt_data # <<<<<<<<<<<<<< * * cdef changed = cimgui.InputScalarN( */ if (unlikely(__pyx_v_fmt_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9095, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_fmt_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9095, __pyx_L1_error) __pyx_v_fmt = __pyx_t_1; /* "imgui/core.pyx":9093 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ } /* "imgui/core.pyx":9098 * * cdef changed = cimgui.InputScalarN( * _bytes(label), # <<<<<<<<<<<<<< * data_type, * p_data, */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9098, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9098, __pyx_L1_error) /* "imgui/core.pyx":9097 * fmt = fmt_data * * cdef changed = cimgui.InputScalarN( # <<<<<<<<<<<<<< * _bytes(label), * data_type, */ try { __pyx_t_6 = ImGui::InputScalarN(__pyx_t_5, __pyx_v_data_type, __pyx_v_p_data, __pyx_v_components, __pyx_v_p_step, __pyx_v_p_step_fast, __pyx_v_fmt, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9097, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_changed = __pyx_t_4; __pyx_t_4 = 0; /* "imgui/core.pyx":9108 * ) * * return changed, data # <<<<<<<<<<<<<< * * def slider_float( */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_changed); __Pyx_GIVEREF(__pyx_v_changed); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_changed); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_data); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":9042 * return changed, data * * def input_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.input_scalar_N", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fmt_data); __Pyx_XDECREF(__pyx_v_changed); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9110 * return changed, data * * def slider_float( # <<<<<<<<<<<<<< * str label, * float value, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_309slider_float(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_308slider_float[] = "slider_float(str label, float value, float min_value, float max_value, str format='%.3f', ImGuiSliderFlags flags=0, float power=1.0)\nDisplay float slider widget.\n Manually input values aren't clamped and can go off-bounds.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n value = 88.2\n\n imgui.begin(\"Example: slider float\")\n changed, value = imgui.slider_float(\n \"slide floats\", value,\n min_value=0.0, max_value=100.0,\n format=\"%.0f\"\n )\n imgui.text(\"Changed: %s, Value: %s\" % (changed, value))\n imgui.end()\n\n Args:\n label (str): widget label.\n value (float): slider values.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_float()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n power (float): OBSOLETED in ImGui 1.78 (from June 2020)\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the current slider value.\n\n .. wraps::\n bool SliderFloat(\n const char* label,\n float v,\n float v_min,\n float v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_309slider_float = {"slider_float", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_309slider_float, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_308slider_float}; static PyObject *__pyx_pw_5imgui_4core_309slider_float(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; float __pyx_v_power; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_float (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,&__pyx_n_s_power,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; values[4] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float", 0, 4, 7, 1); __PYX_ERR(0, 9110, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float", 0, 4, 7, 2); __PYX_ERR(0, 9110, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float", 0, 4, 7, 3); __PYX_ERR(0, 9110, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_power); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_float") < 0)) __PYX_ERR(0, 9110, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9112, __pyx_L3_error) __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9113, __pyx_L3_error) __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9114, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[4]); if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9116, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } if (values[6]) { __pyx_v_power = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_power == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9117, __pyx_L3_error) } else { __pyx_v_power = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_float", 0, 4, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9110, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_float", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9111, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9115, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_308slider_float(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags, __pyx_v_power); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_308slider_float(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power) { float __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_float", 0); /* "imgui/core.pyx":9164 * ) * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" # <<<<<<<<<<<<<< * cdef float inout_value = value * return cimgui.SliderFloat( */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_power == 1.0) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_power_parameter_obsoleted_in_ImG); __PYX_ERR(0, 9164, __pyx_L1_error) } } #endif /* "imgui/core.pyx":9165 * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float inout_value = value # <<<<<<<<<<<<<< * return cimgui.SliderFloat( * _bytes(label), &inout_value, */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":9166 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float inout_value = value * return cimgui.SliderFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9167 * cdef float inout_value = value * return cimgui.SliderFloat( * _bytes(label), &inout_value, # <<<<<<<<<<<<<< * min_value, max_value, _bytes(format), flags * ), inout_value */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9167, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 9167, __pyx_L1_error) /* "imgui/core.pyx":9168 * return cimgui.SliderFloat( * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9168, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 9168, __pyx_L1_error) /* "imgui/core.pyx":9166 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float inout_value = value * return cimgui.SliderFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags */ try { __pyx_t_5 = ImGui::SliderFloat(__pyx_t_2, ((float *)(&__pyx_v_inout_value)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9166, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "imgui/core.pyx":9169 * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags * ), inout_value # <<<<<<<<<<<<<< * * */ __pyx_t_1 = PyFloat_FromDouble(__pyx_v_inout_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":9166 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float inout_value = value * return cimgui.SliderFloat( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":9110 * return changed, data * * def slider_float( # <<<<<<<<<<<<<< * str label, * float value, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.slider_float", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9172 * * * def slider_float2( # <<<<<<<<<<<<<< * str label, * float value0, float value1, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_311slider_float2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_310slider_float2[] = "slider_float2(str label, float value0, float value1, float min_value, float max_value, str format='%.3f', ImGuiSliderFlags flags=0, float power=1.0)\nDisplay float slider widget with 2 values.\n Manually input values aren't clamped and can go off-bounds.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88.2, 42.6\n\n imgui.begin(\"Example: slider float2\")\n changed, values = imgui.slider_float2(\n \"slide floats\", *values,\n min_value=0.0, max_value=100.0,\n format=\"%.0f\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n \n Args:\n label (str): widget label.\n value0, value1 (float): slider values.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_float()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n power (float): OBSOLETED in ImGui 1.78 (from June 2020)\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current slider values.\n\n .. wraps::\n bool SliderFloat2(\n const char* label,\n float v[2],\n float v_min,\n float v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n \n "; static PyMethodDef __pyx_mdef_5imgui_4core_311slider_float2 = {"slider_float2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_311slider_float2, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_310slider_float2}; static PyObject *__pyx_pw_5imgui_4core_311slider_float2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; float __pyx_v_power; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_float2 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,&__pyx_n_s_power,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; values[5] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float2", 0, 5, 8, 1); __PYX_ERR(0, 9172, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float2", 0, 5, 8, 2); __PYX_ERR(0, 9172, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float2", 0, 5, 8, 3); __PYX_ERR(0, 9172, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float2", 0, 5, 8, 4); __PYX_ERR(0, 9172, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_power); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_float2") < 0)) __PYX_ERR(0, 9172, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9174, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9174, __pyx_L3_error) __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9175, __pyx_L3_error) __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9176, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[5]); if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9178, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } if (values[7]) { __pyx_v_power = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_power == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9179, __pyx_L3_error) } else { __pyx_v_power = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_float2", 0, 5, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9172, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_float2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9173, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9177, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_310slider_float2(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags, __pyx_v_power); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_310slider_float2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power) { float __pyx_v_inout_values[2]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[2]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_float2", 0); /* "imgui/core.pyx":9227 * * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" # <<<<<<<<<<<<<< * cdef float[2] inout_values = [value0, value1] * return cimgui.SliderFloat2( */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_power == 1.0) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_power_parameter_obsoleted_in_ImG); __PYX_ERR(0, 9227, __pyx_L1_error) } } #endif /* "imgui/core.pyx":9228 * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[2] inout_values = [value0, value1] # <<<<<<<<<<<<<< * return cimgui.SliderFloat2( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (2)); /* "imgui/core.pyx":9229 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[2] inout_values = [value0, value1] * return cimgui.SliderFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9230 * cdef float[2] inout_values = [value0, value1] * return cimgui.SliderFloat2( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9230, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 9230, __pyx_L1_error) /* "imgui/core.pyx":9231 * return cimgui.SliderFloat2( * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9231, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9231, __pyx_L1_error) /* "imgui/core.pyx":9229 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[2] inout_values = [value0, value1] * return cimgui.SliderFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::SliderFloat2(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9229, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":9232 * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7); __pyx_t_2 = 0; __pyx_t_7 = 0; /* "imgui/core.pyx":9229 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[2] inout_values = [value0, value1] * return cimgui.SliderFloat2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); __pyx_t_4 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":9172 * * * def slider_float2( # <<<<<<<<<<<<<< * str label, * float value0, float value1, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.slider_float2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9235 * * * def slider_float3( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_313slider_float3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_312slider_float3[] = "slider_float3(str label, float value0, float value1, float value2, float min_value, float max_value, str format='%.3f', ImGuiSliderFlags flags=0, float power=1.0)\nDisplay float slider widget with 3 values.\n Manually input values aren't clamped and can go off-bounds.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88.2, 42.6, 69.1\n\n imgui.begin(\"Example: slider float3\")\n changed, values = imgui.slider_float3(\n \"slide floats\", *values,\n min_value=0.0, max_value=100.0,\n format=\"%.0f\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2 (float): slider values.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_float()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n power (float): OBSOLETED in ImGui 1.78 (from June 2020)\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current slider values.\n\n .. wraps::\n bool SliderFloat3(\n const char* label,\n float v[3],\n float v_min,\n float v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_313slider_float3 = {"slider_float3", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_313slider_float3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_312slider_float3}; static PyObject *__pyx_pw_5imgui_4core_313slider_float3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; float __pyx_v_value2; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; float __pyx_v_power; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_float3 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,&__pyx_n_s_power,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; values[6] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float3", 0, 6, 9, 1); __PYX_ERR(0, 9235, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float3", 0, 6, 9, 2); __PYX_ERR(0, 9235, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float3", 0, 6, 9, 3); __PYX_ERR(0, 9235, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float3", 0, 6, 9, 4); __PYX_ERR(0, 9235, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float3", 0, 6, 9, 5); __PYX_ERR(0, 9235, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_power); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_float3") < 0)) __PYX_ERR(0, 9235, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9237, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9237, __pyx_L3_error) __pyx_v_value2 = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_value2 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9237, __pyx_L3_error) __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9238, __pyx_L3_error) __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9239, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9241, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } if (values[8]) { __pyx_v_power = __pyx_PyFloat_AsFloat(values[8]); if (unlikely((__pyx_v_power == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9242, __pyx_L3_error) } else { __pyx_v_power = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_float3", 0, 6, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9235, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_float3", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9236, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9240, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_312slider_float3(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags, __pyx_v_power); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_312slider_float3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power) { float __pyx_v_inout_values[3]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[3]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_float3", 0); /* "imgui/core.pyx":9289 * ) * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" # <<<<<<<<<<<<<< * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.SliderFloat3( */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_power == 1.0) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_power_parameter_obsoleted_in_ImG); __PYX_ERR(0, 9289, __pyx_L1_error) } } #endif /* "imgui/core.pyx":9290 * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[3] inout_values = [value0, value1, value2] # <<<<<<<<<<<<<< * return cimgui.SliderFloat3( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (3)); /* "imgui/core.pyx":9291 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.SliderFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9292 * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.SliderFloat3( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9292, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 9292, __pyx_L1_error) /* "imgui/core.pyx":9293 * return cimgui.SliderFloat3( * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9293, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9293, __pyx_L1_error) /* "imgui/core.pyx":9291 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.SliderFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::SliderFloat3(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9291, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":9294 * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyFloat_FromDouble((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_8); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; /* "imgui/core.pyx":9291 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[3] inout_values = [value0, value1, value2] * return cimgui.SliderFloat3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); __pyx_t_4 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "imgui/core.pyx":9235 * * * def slider_float3( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.slider_float3", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9297 * * * def slider_float4( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, float value3, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_315slider_float4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_314slider_float4[] = "slider_float4(str label, float value0, float value1, float value2, float value3, float min_value, float max_value, str format='%.3f', ImGuiSliderFlags flags=0, float power=1.0)\nDisplay float slider widget with 4 values.\n Manually input values aren't clamped and can go off-bounds.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88.2, 42.6, 69.1, 0.3\n\n imgui.begin(\"Example: slider float4\")\n changed, values = imgui.slider_float4(\n \"slide floats\", *values,\n min_value=0.0, max_value=100.0,\n format=\"%.0f\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2, value3 (float): slider values.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_float()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n power (float): OBSOLETED in ImGui 1.78 (from June 2020)\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current slider values.\n\n .. wraps::\n bool SliderFloat4(\n const char* label,\n float v[4],\n float v_min,\n float v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_315slider_float4 = {"slider_float4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_315slider_float4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_314slider_float4}; static PyObject *__pyx_pw_5imgui_4core_315slider_float4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_value0; float __pyx_v_value1; float __pyx_v_value2; float __pyx_v_value3; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; float __pyx_v_power; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_float4 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_value3,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,&__pyx_n_s_power,0}; PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0}; values[7] = ((PyObject*)__pyx_kp_s_3f); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float4", 0, 7, 10, 1); __PYX_ERR(0, 9297, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float4", 0, 7, 10, 2); __PYX_ERR(0, 9297, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float4", 0, 7, 10, 3); __PYX_ERR(0, 9297, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value3)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float4", 0, 7, 10, 4); __PYX_ERR(0, 9297, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float4", 0, 7, 10, 5); __PYX_ERR(0, 9297, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_float4", 0, 7, 10, 6); __PYX_ERR(0, 9297, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[8] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 9: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_power); if (value) { values[9] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_float4") < 0)) __PYX_ERR(0, 9297, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_value0 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9299, __pyx_L3_error) __pyx_v_value1 = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9299, __pyx_L3_error) __pyx_v_value2 = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_value2 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9299, __pyx_L3_error) __pyx_v_value3 = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_value3 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9299, __pyx_L3_error) __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9300, __pyx_L3_error) __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9301, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[7]); if (values[8]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[8]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9303, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } if (values[9]) { __pyx_v_power = __pyx_PyFloat_AsFloat(values[9]); if (unlikely((__pyx_v_power == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9304, __pyx_L3_error) } else { __pyx_v_power = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_float4", 0, 7, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9297, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_float4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9298, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9302, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_314slider_float4(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_value3, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags, __pyx_v_power); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_314slider_float4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_value0, float __pyx_v_value1, float __pyx_v_value2, float __pyx_v_value3, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags, float __pyx_v_power) { float __pyx_v_inout_values[4]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1[4]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_float4", 0); /* "imgui/core.pyx":9351 * ) * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" # <<<<<<<<<<<<<< * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderFloat4( */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_power == 1.0) != 0))) { PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_power_parameter_obsoleted_in_ImG); __PYX_ERR(0, 9351, __pyx_L1_error) } } #endif /* "imgui/core.pyx":9352 * """ * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[4] inout_values = [value0, value1, value2, value3] # <<<<<<<<<<<<<< * return cimgui.SliderFloat4( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; __pyx_t_1[3] = __pyx_v_value3; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (4)); /* "imgui/core.pyx":9353 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9354 * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderFloat4( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9354, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 9354, __pyx_L1_error) /* "imgui/core.pyx":9355 * return cimgui.SliderFloat4( * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9355, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9355, __pyx_L1_error) /* "imgui/core.pyx":9353 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::SliderFloat4(__pyx_t_3, ((float *)(&__pyx_v_inout_values)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9353, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":9356 * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) # <<<<<<<<<<<<<< * * def slider_angle( */ __pyx_t_2 = PyFloat_FromDouble((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyFloat_FromDouble((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyFloat_FromDouble((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyFloat_FromDouble((__pyx_v_inout_values[3])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyTuple_New(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; /* "imgui/core.pyx":9353 * assert (power == 1), "power parameter obsoleted in ImGui 1.78, use imgui.SLIDER_FLAGS_LOGARITHMIC instead" * cdef float[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderFloat4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_10); __pyx_t_4 = 0; __pyx_t_10 = 0; __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; /* "imgui/core.pyx":9297 * * * def slider_float4( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, float value3, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("imgui.core.slider_float4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9358 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_angle( # <<<<<<<<<<<<<< * str label, * float rad_value, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_317slider_angle(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_316slider_angle[] = "slider_angle(str label, float rad_value, float value_degrees_min=-360.0, float value_degrees_max=360, str format='%.0f deg', ImGuiSliderFlags flags=0)\nDisplay angle slider widget.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n radian = 3.1415/4\n\n imgui.begin(\"Example: slider angle\")\n changed, radian = imgui.slider_angle(\n \"slider angle\", radian,\n value_degrees_min=0.0, value_degrees_max=180.0)\n imgui.text(\"Changed: %s, Value: %s\" % (changed, radian))\n imgui.end()\n\n Args:\n labal (str): widget label\n rad_value (float): slider value in radian\n value_degrees_min (float): min value allowed in degrees\n value_degrees_max (float): max value allowed in degrees\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, rad_value)`` tuple that contains indicator of\n widget state change and the current slider value in radian.\n\n\n .. wraps::\n bool SliderAngle(\n const char* label,\n float* v_rad, float\n v_degrees_min = -360.0f,\n float v_degrees_max = +360.0f,\n const char* format = \"%.0f deg\",\n ImGuiSliderFlags flags = 0\n )\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_317slider_angle = {"slider_angle", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_317slider_angle, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_316slider_angle}; static PyObject *__pyx_pw_5imgui_4core_317slider_angle(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_rad_value; float __pyx_v_value_degrees_min; float __pyx_v_value_degrees_max; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_angle (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_rad_value,&__pyx_n_s_value_degrees_min,&__pyx_n_s_value_degrees_max,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[6] = {0,0,0,0,0,0}; values[4] = ((PyObject*)__pyx_kp_s_0f_deg); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rad_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_angle", 0, 2, 6, 1); __PYX_ERR(0, 9358, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value_degrees_min); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value_degrees_max); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_angle") < 0)) __PYX_ERR(0, 9358, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_rad_value = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_rad_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9360, __pyx_L3_error) if (values[2]) { __pyx_v_value_degrees_min = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_value_degrees_min == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9361, __pyx_L3_error) } else { __pyx_v_value_degrees_min = ((float)-360.0); } if (values[3]) { __pyx_v_value_degrees_max = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_value_degrees_max == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9362, __pyx_L3_error) } else { __pyx_v_value_degrees_max = ((float)360.0); } __pyx_v_format = ((PyObject*)values[4]); if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9364, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_angle", 0, 2, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9358, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_angle", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9359, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9363, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_316slider_angle(__pyx_self, __pyx_v_label, __pyx_v_rad_value, __pyx_v_value_degrees_min, __pyx_v_value_degrees_max, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_316slider_angle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_rad_value, float __pyx_v_value_degrees_min, float __pyx_v_value_degrees_max, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { float __pyx_v_inout_r_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_angle", 0); /* "imgui/core.pyx":9407 * * """ * cdef float inout_r_value = rad_value # <<<<<<<<<<<<<< * return cimgui.SliderAngle( * _bytes(label), &inout_r_value, */ __pyx_v_inout_r_value = __pyx_v_rad_value; /* "imgui/core.pyx":9408 * """ * cdef float inout_r_value = rad_value * return cimgui.SliderAngle( # <<<<<<<<<<<<<< * _bytes(label), &inout_r_value, * value_degrees_min, value_degrees_max, */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9409 * cdef float inout_r_value = rad_value * return cimgui.SliderAngle( * _bytes(label), &inout_r_value, # <<<<<<<<<<<<<< * value_degrees_min, value_degrees_max, * _bytes(format), flags */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9409, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 9409, __pyx_L1_error) /* "imgui/core.pyx":9411 * _bytes(label), &inout_r_value, * value_degrees_min, value_degrees_max, * _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_r_value * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9411, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 9411, __pyx_L1_error) /* "imgui/core.pyx":9408 * """ * cdef float inout_r_value = rad_value * return cimgui.SliderAngle( # <<<<<<<<<<<<<< * _bytes(label), &inout_r_value, * value_degrees_min, value_degrees_max, */ try { __pyx_t_5 = ImGui::SliderAngle(__pyx_t_2, ((float *)(&__pyx_v_inout_r_value)), __pyx_v_value_degrees_min, __pyx_v_value_degrees_max, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9408, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "imgui/core.pyx":9412 * value_degrees_min, value_degrees_max, * _bytes(format), flags * ), inout_r_value # <<<<<<<<<<<<<< * * def slider_int( */ __pyx_t_1 = PyFloat_FromDouble(__pyx_v_inout_r_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":9408 * """ * cdef float inout_r_value = rad_value * return cimgui.SliderAngle( # <<<<<<<<<<<<<< * _bytes(label), &inout_r_value, * value_degrees_min, value_degrees_max, */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":9358 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_angle( # <<<<<<<<<<<<<< * str label, * float rad_value, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.slider_angle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9414 * ), inout_r_value * * def slider_int( # <<<<<<<<<<<<<< * str label, * int value, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_319slider_int(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_318slider_int[] = "slider_int(str label, int value, int min_value, int max_value, str format='%.f', ImGuiSliderFlags flags=0)\nDisplay int slider widget\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n value = 88\n\n imgui.begin(\"Example: slider int\")\n changed, values = imgui.slider_int(\n \"slide ints\", value,\n min_value=0, max_value=100,\n format=\"%d\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, value))\n imgui.end()\n\n Args:\n label (str): widget label.\n value (int): slider value.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_int()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n widget state change and the slider value.\n\n .. wraps::\n bool SliderInt(\n const char* label,\n int v,\n int v_min,\n int v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_319slider_int = {"slider_int", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_319slider_int, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_318slider_int}; static PyObject *__pyx_pw_5imgui_4core_319slider_int(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_int (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[6] = {0,0,0,0,0,0}; values[4] = ((PyObject*)__pyx_kp_s_f_2); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int", 0, 4, 6, 1); __PYX_ERR(0, 9414, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int", 0, 4, 6, 2); __PYX_ERR(0, 9414, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int", 0, 4, 6, 3); __PYX_ERR(0, 9414, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_int") < 0)) __PYX_ERR(0, 9414, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9416, __pyx_L3_error) __pyx_v_min_value = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9417, __pyx_L3_error) __pyx_v_max_value = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9418, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[4]); if (values[5]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[5]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9420, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_int", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9414, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_int", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9415, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9419, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_318slider_int(__pyx_self, __pyx_v_label, __pyx_v_value, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_318slider_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; bool __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_int", 0); /* "imgui/core.pyx":9465 * ) * """ * cdef int inout_value = value # <<<<<<<<<<<<<< * return cimgui.SliderInt( * _bytes(label), &inout_value, */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":9466 * """ * cdef int inout_value = value * return cimgui.SliderInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9467 * cdef int inout_value = value * return cimgui.SliderInt( * _bytes(label), &inout_value, # <<<<<<<<<<<<<< * min_value, max_value, _bytes(format), flags * ), inout_value */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9467, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 9467, __pyx_L1_error) /* "imgui/core.pyx":9468 * return cimgui.SliderInt( * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9468, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 9468, __pyx_L1_error) /* "imgui/core.pyx":9466 * """ * cdef int inout_value = value * return cimgui.SliderInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags */ try { __pyx_t_5 = ImGui::SliderInt(__pyx_t_2, ((int *)(&__pyx_v_inout_value)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9466, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "imgui/core.pyx":9469 * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags * ), inout_value # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_inout_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":9466 * """ * cdef int inout_value = value * return cimgui.SliderInt( # <<<<<<<<<<<<<< * _bytes(label), &inout_value, * min_value, max_value, _bytes(format), flags */ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":9414 * ), inout_r_value * * def slider_int( # <<<<<<<<<<<<<< * str label, * int value, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.slider_int", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9472 * * * def slider_int2( # <<<<<<<<<<<<<< * str label, * int value0, int value1, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_321slider_int2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_320slider_int2[] = "slider_int2(str label, int value0, int value1, int min_value, int max_value, str format='%.f', ImGuiSliderFlags flags=0)\nDisplay int slider widget with 2 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88, 27\n\n imgui.begin(\"Example: slider int2\")\n changed, values = imgui.slider_int2(\n \"slide ints2\", *values,\n min_value=0, max_value=100,\n format=\"%d\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1 (int): slider values.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_int()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current slider values.\n\n .. wraps::\n bool SliderInt2(\n const char* label,\n int v[2],\n int v_min,\n int v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_321slider_int2 = {"slider_int2", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_321slider_int2, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_320slider_int2}; static PyObject *__pyx_pw_5imgui_4core_321slider_int2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_int2 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; values[5] = ((PyObject*)__pyx_kp_s_f_2); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int2", 0, 5, 7, 1); __PYX_ERR(0, 9472, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int2", 0, 5, 7, 2); __PYX_ERR(0, 9472, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int2", 0, 5, 7, 3); __PYX_ERR(0, 9472, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int2", 0, 5, 7, 4); __PYX_ERR(0, 9472, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_int2") < 0)) __PYX_ERR(0, 9472, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9474, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9474, __pyx_L3_error) __pyx_v_min_value = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9475, __pyx_L3_error) __pyx_v_max_value = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9476, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[5]); if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9478, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_int2", 0, 5, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9472, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_int2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9473, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9477, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_320slider_int2(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_320slider_int2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_values[2]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[2]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_int2", 0); /* "imgui/core.pyx":9523 * ) * """ * cdef int[2] inout_values = [value0, value1] # <<<<<<<<<<<<<< * return cimgui.SliderInt2( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (2)); /* "imgui/core.pyx":9524 * """ * cdef int[2] inout_values = [value0, value1] * return cimgui.SliderInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9525 * cdef int[2] inout_values = [value0, value1] * return cimgui.SliderInt2( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9525, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 9525, __pyx_L1_error) /* "imgui/core.pyx":9526 * return cimgui.SliderInt2( * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9526, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9526, __pyx_L1_error) /* "imgui/core.pyx":9524 * """ * cdef int[2] inout_values = [value0, value1] * return cimgui.SliderInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::SliderInt2(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9524, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":9527 * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7); __pyx_t_2 = 0; __pyx_t_7 = 0; /* "imgui/core.pyx":9524 * """ * cdef int[2] inout_values = [value0, value1] * return cimgui.SliderInt2( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); __pyx_t_4 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":9472 * * * def slider_int2( # <<<<<<<<<<<<<< * str label, * int value0, int value1, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.slider_int2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9530 * * * def slider_int3( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_323slider_int3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_322slider_int3[] = "slider_int3(str label, int value0, int value1, int value2, int min_value, int max_value, str format='%.f', ImGuiSliderFlags flags=0)\nDisplay int slider widget with 3 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88, 27, 3\n\n imgui.begin(\"Example: slider int3\")\n changed, values = imgui.slider_int3(\n \"slide ints3\", *values,\n min_value=0, max_value=100,\n format=\"%d\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2 (int): slider values.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_int()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current slider values.\n\n .. wraps::\n bool SliderInt3(\n const char* label,\n int v[3],\n int v_min,\n int v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_323slider_int3 = {"slider_int3", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_323slider_int3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_322slider_int3}; static PyObject *__pyx_pw_5imgui_4core_323slider_int3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; int __pyx_v_value2; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_int3 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; values[6] = ((PyObject*)__pyx_kp_s_f_2); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int3", 0, 6, 8, 1); __PYX_ERR(0, 9530, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int3", 0, 6, 8, 2); __PYX_ERR(0, 9530, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int3", 0, 6, 8, 3); __PYX_ERR(0, 9530, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int3", 0, 6, 8, 4); __PYX_ERR(0, 9530, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int3", 0, 6, 8, 5); __PYX_ERR(0, 9530, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_int3") < 0)) __PYX_ERR(0, 9530, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9532, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9532, __pyx_L3_error) __pyx_v_value2 = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_value2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9532, __pyx_L3_error) __pyx_v_min_value = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9533, __pyx_L3_error) __pyx_v_max_value = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9534, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9536, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_int3", 0, 6, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9530, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_int3", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9531, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9535, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_322slider_int3(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_322slider_int3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_values[3]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[3]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_int3", 0); /* "imgui/core.pyx":9581 * ) * """ * cdef int[3] inout_values = [value0, value1, value2] # <<<<<<<<<<<<<< * return cimgui.SliderInt3( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (3)); /* "imgui/core.pyx":9582 * """ * cdef int[3] inout_values = [value0, value1, value2] * return cimgui.SliderInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9583 * cdef int[3] inout_values = [value0, value1, value2] * return cimgui.SliderInt3( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9583, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 9583, __pyx_L1_error) /* "imgui/core.pyx":9584 * return cimgui.SliderInt3( * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9584, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9584, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9584, __pyx_L1_error) /* "imgui/core.pyx":9582 * """ * cdef int[3] inout_values = [value0, value1, value2] * return cimgui.SliderInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::SliderInt3(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9582, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":9585 * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2]) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_From_int((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_8); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; /* "imgui/core.pyx":9582 * """ * cdef int[3] inout_values = [value0, value1, value2] * return cimgui.SliderInt3( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); __pyx_t_4 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "imgui/core.pyx":9530 * * * def slider_int3( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("imgui.core.slider_int3", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9588 * * * def slider_int4( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, int value3, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_325slider_int4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_324slider_int4[] = "slider_int4(str label, int value0, int value1, int value2, int value3, int min_value, int max_value, str format='%.f', ImGuiSliderFlags flags=0)\nDisplay int slider widget with 4 values.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n values = 88, 42, 69, 0\n\n imgui.begin(\"Example: slider int4\")\n changed, values = imgui.slider_int4(\n \"slide ints\", *values,\n min_value=0, max_value=100, format=\"%d\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value0, value1, value2, value3 (int): slider values.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_int()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, values)`` tuple that contains indicator of\n widget state change and the tuple of current slider values.\n\n .. wraps::\n bool SliderInt4(\n const char* label,\n int v[4],\n int v_min,\n int v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_325slider_int4 = {"slider_int4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_325slider_int4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_324slider_int4}; static PyObject *__pyx_pw_5imgui_4core_325slider_int4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; int __pyx_v_value0; int __pyx_v_value1; int __pyx_v_value2; int __pyx_v_value3; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_int4 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_value0,&__pyx_n_s_value1,&__pyx_n_s_value2,&__pyx_n_s_value3,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; values[7] = ((PyObject*)__pyx_kp_s_f_2); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value0)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int4", 0, 7, 9, 1); __PYX_ERR(0, 9588, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value1)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int4", 0, 7, 9, 2); __PYX_ERR(0, 9588, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value2)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int4", 0, 7, 9, 3); __PYX_ERR(0, 9588, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value3)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int4", 0, 7, 9, 4); __PYX_ERR(0, 9588, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int4", 0, 7, 9, 5); __PYX_ERR(0, 9588, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_int4", 0, 7, 9, 6); __PYX_ERR(0, 9588, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_int4") < 0)) __PYX_ERR(0, 9588, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_value0 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value0 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9590, __pyx_L3_error) __pyx_v_value1 = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9590, __pyx_L3_error) __pyx_v_value2 = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_value2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9590, __pyx_L3_error) __pyx_v_value3 = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_value3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9590, __pyx_L3_error) __pyx_v_min_value = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9591, __pyx_L3_error) __pyx_v_max_value = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9592, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[7]); if (values[8]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[8]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9594, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_int4", 0, 7, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9588, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_int4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9589, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9593, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_324slider_int4(__pyx_self, __pyx_v_label, __pyx_v_value0, __pyx_v_value1, __pyx_v_value2, __pyx_v_value3, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_324slider_int4(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, int __pyx_v_value0, int __pyx_v_value1, int __pyx_v_value2, int __pyx_v_value3, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_values[4]; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1[4]; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_int4", 0); /* "imgui/core.pyx":9638 * ) * """ * cdef int[4] inout_values = [value0, value1, value2, value3] # <<<<<<<<<<<<<< * return cimgui.SliderInt4( * _bytes(label), &inout_values, */ __pyx_t_1[0] = __pyx_v_value0; __pyx_t_1[1] = __pyx_v_value1; __pyx_t_1[2] = __pyx_v_value2; __pyx_t_1[3] = __pyx_v_value3; memcpy(&(__pyx_v_inout_values[0]), __pyx_t_1, sizeof(__pyx_v_inout_values[0]) * (4)); /* "imgui/core.pyx":9639 * """ * cdef int[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9640 * cdef int[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderInt4( * _bytes(label), &inout_values, # <<<<<<<<<<<<<< * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9640, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 9640, __pyx_L1_error) /* "imgui/core.pyx":9641 * return cimgui.SliderInt4( * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9641, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9641, __pyx_L1_error) /* "imgui/core.pyx":9639 * """ * cdef int[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ try { __pyx_t_6 = ImGui::SliderInt4(__pyx_t_3, ((int *)(&__pyx_v_inout_values)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9639, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":9642 * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) # <<<<<<<<<<<<<< * * def slider_scalar( */ __pyx_t_2 = __Pyx_PyInt_From_int((__pyx_v_inout_values[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_inout_values[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_From_int((__pyx_v_inout_values[2])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_inout_values[3])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyTuple_New(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; /* "imgui/core.pyx":9639 * """ * cdef int[4] inout_values = [value0, value1, value2, value3] * return cimgui.SliderInt4( # <<<<<<<<<<<<<< * _bytes(label), &inout_values, * min_value, max_value, _bytes(format), flags */ __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_10); __pyx_t_4 = 0; __pyx_t_10 = 0; __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; /* "imgui/core.pyx":9588 * * * def slider_int4( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, int value3, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("imgui.core.slider_int4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9644 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_327slider_scalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_326slider_scalar[] = "slider_scalar(str label, ImGuiDataType data_type, bytes data, bytes min_value, bytes max_value, str format=None, ImGuiSliderFlags flags=0)\nDisplay scalar slider widget.\n Data is passed via ``bytes`` and the type is separatelly given using ``data_type``.\n This is useful to work with specific types (e.g. unsigned 8bit integer, float, double)\n like when interfacing with Numpy.\n\n Args:\n label (str): widget label\n data_type: ImGuiDataType enum, type of the given data\n data (bytes): data value as a bytes array\n min_value (bytes): min value allowed by widget\n max_value (bytes): max value allowed by widget\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_int()`.\n flags: ImGuiSlider flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n slider state change and the current slider content.\n\n .. wraps::\n bool SliderScalar(\n const char* label,\n ImGuiDataType data_type,\n void* p_data,\n const void* p_min,\n const void* p_max,\n const char* format = NULL,\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_327slider_scalar = {"slider_scalar", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_327slider_scalar, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_326slider_scalar}; static PyObject *__pyx_pw_5imgui_4core_327slider_scalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiDataType __pyx_v_data_type; PyObject *__pyx_v_data = 0; PyObject *__pyx_v_min_value = 0; PyObject *__pyx_v_max_value = 0; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_scalar (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_data_type,&__pyx_n_s_data,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; /* "imgui/core.pyx":9650 * bytes min_value, * bytes max_value, * str format = None, # <<<<<<<<<<<<<< * cimgui.ImGuiSliderFlags flags = 0): * """Display scalar slider widget. */ values[5] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar", 0, 5, 7, 1); __PYX_ERR(0, 9644, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar", 0, 5, 7, 2); __PYX_ERR(0, 9644, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar", 0, 5, 7, 3); __PYX_ERR(0, 9644, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar", 0, 5, 7, 4); __PYX_ERR(0, 9644, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_scalar") < 0)) __PYX_ERR(0, 9644, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_data_type = __Pyx_PyInt_As_ImGuiDataType(values[1]); if (unlikely((__pyx_v_data_type == ((ImGuiDataType)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9646, __pyx_L3_error) __pyx_v_data = ((PyObject*)values[2]); __pyx_v_min_value = ((PyObject*)values[3]); __pyx_v_max_value = ((PyObject*)values[4]); __pyx_v_format = ((PyObject*)values[5]); if (values[6]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[6]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9651, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_scalar", 0, 5, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9644, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9645, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 9647, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_min_value), (&PyBytes_Type), 1, "min_value", 1))) __PYX_ERR(0, 9648, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_max_value), (&PyBytes_Type), 1, "max_value", 1))) __PYX_ERR(0, 9649, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9650, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_326slider_scalar(__pyx_self, __pyx_v_label, __pyx_v_data_type, __pyx_v_data, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* "imgui/core.pyx":9644 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_326slider_scalar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { char *__pyx_v_p_data; char *__pyx_v_p_min; char *__pyx_v_p_max; char *__pyx_v_fmt; PyObject *__pyx_v_fmt_data = 0; PyObject *__pyx_v_changed = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_scalar", 0); /* "imgui/core.pyx":9684 * """ * * cdef char* p_data = data # <<<<<<<<<<<<<< * cdef char* p_min = min_value * cdef char* p_max = max_value */ if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9684, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9684, __pyx_L1_error) __pyx_v_p_data = __pyx_t_1; /* "imgui/core.pyx":9685 * * cdef char* p_data = data * cdef char* p_min = min_value # <<<<<<<<<<<<<< * cdef char* p_max = max_value * */ if (unlikely(__pyx_v_min_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9685, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_min_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9685, __pyx_L1_error) __pyx_v_p_min = __pyx_t_1; /* "imgui/core.pyx":9686 * cdef char* p_data = data * cdef char* p_min = min_value * cdef char* p_max = max_value # <<<<<<<<<<<<<< * * cdef char* fmt = NULL */ if (unlikely(__pyx_v_max_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9686, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_max_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9686, __pyx_L1_error) __pyx_v_p_max = __pyx_t_1; /* "imgui/core.pyx":9688 * cdef char* p_max = max_value * * cdef char* fmt = NULL # <<<<<<<<<<<<<< * cdef bytes fmt_data; * if format is not None: */ __pyx_v_fmt = NULL; /* "imgui/core.pyx":9690 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ __pyx_t_2 = (__pyx_v_format != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":9691 * cdef bytes fmt_data; * if format is not None: * fmt_data = _bytes(format) # <<<<<<<<<<<<<< * fmt = fmt_data * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_fmt_data = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":9692 * if format is not None: * fmt_data = _bytes(format) * fmt = fmt_data # <<<<<<<<<<<<<< * * cdef changed = cimgui.SliderScalar( */ if (unlikely(__pyx_v_fmt_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9692, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_fmt_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9692, __pyx_L1_error) __pyx_v_fmt = __pyx_t_1; /* "imgui/core.pyx":9690 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ } /* "imgui/core.pyx":9695 * * cdef changed = cimgui.SliderScalar( * _bytes(label), # <<<<<<<<<<<<<< * data_type, * p_data, */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9695, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9695, __pyx_L1_error) /* "imgui/core.pyx":9694 * fmt = fmt_data * * cdef changed = cimgui.SliderScalar( # <<<<<<<<<<<<<< * _bytes(label), * data_type, */ try { __pyx_t_6 = ImGui::SliderScalar(__pyx_t_5, __pyx_v_data_type, __pyx_v_p_data, __pyx_v_p_min, __pyx_v_p_max, __pyx_v_fmt, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9694, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_changed = __pyx_t_4; __pyx_t_4 = 0; /* "imgui/core.pyx":9704 * ) * * return changed, data # <<<<<<<<<<<<<< * * def slider_scalar_N( */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_changed); __Pyx_GIVEREF(__pyx_v_changed); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_changed); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_data); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":9644 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.slider_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fmt_data); __Pyx_XDECREF(__pyx_v_changed); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9706 * return changed, data * * def slider_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_329slider_scalar_N(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_328slider_scalar_N[] = "slider_scalar_N(str label, ImGuiDataType data_type, bytes data, int components, bytes min_value, bytes max_value, str format=None, ImGuiSliderFlags flags=0)\nDisplay multiple scalar slider widget.\n Data is passed via ``bytes`` and the type is separatelly given using ``data_type``.\n This is useful to work with specific types (e.g. unsigned 8bit integer, float, double)\n like when interfacing with Numpy.\n\n Args:\n label (str): widget label\n data_type: ImGuiDataType enum, type of the given data\n data (bytes): data value as a bytes array\n components (int): number of widgets\n min_value (bytes): min value allowed by widget\n max_value (bytes): max value allowed by widget\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_int()`.\n flags: ImGuiSlider flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n slider state change and the current slider content.\n\n .. wraps::\n bool SliderScalarN(\n const char* label,\n ImGuiDataType data_type,\n void* p_data,\n int components,\n const void* p_min,\n const void* p_max,\n const char* format = NULL,\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_329slider_scalar_N = {"slider_scalar_N", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_329slider_scalar_N, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_328slider_scalar_N}; static PyObject *__pyx_pw_5imgui_4core_329slider_scalar_N(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiDataType __pyx_v_data_type; PyObject *__pyx_v_data = 0; int __pyx_v_components; PyObject *__pyx_v_min_value = 0; PyObject *__pyx_v_max_value = 0; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("slider_scalar_N (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_data_type,&__pyx_n_s_data,&__pyx_n_s_components,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":9713 * bytes min_value, * bytes max_value, * str format = None, # <<<<<<<<<<<<<< * cimgui.ImGuiSliderFlags flags = 0): * """Display multiple scalar slider widget. */ values[6] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar_N", 0, 6, 8, 1); __PYX_ERR(0, 9706, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar_N", 0, 6, 8, 2); __PYX_ERR(0, 9706, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_components)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar_N", 0, 6, 8, 3); __PYX_ERR(0, 9706, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar_N", 0, 6, 8, 4); __PYX_ERR(0, 9706, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("slider_scalar_N", 0, 6, 8, 5); __PYX_ERR(0, 9706, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "slider_scalar_N") < 0)) __PYX_ERR(0, 9706, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_data_type = __Pyx_PyInt_As_ImGuiDataType(values[1]); if (unlikely((__pyx_v_data_type == ((ImGuiDataType)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9708, __pyx_L3_error) __pyx_v_data = ((PyObject*)values[2]); __pyx_v_components = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_components == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9710, __pyx_L3_error) __pyx_v_min_value = ((PyObject*)values[4]); __pyx_v_max_value = ((PyObject*)values[5]); __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9714, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("slider_scalar_N", 0, 6, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9706, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.slider_scalar_N", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9707, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 9709, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_min_value), (&PyBytes_Type), 1, "min_value", 1))) __PYX_ERR(0, 9711, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_max_value), (&PyBytes_Type), 1, "max_value", 1))) __PYX_ERR(0, 9712, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9713, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_328slider_scalar_N(__pyx_self, __pyx_v_label, __pyx_v_data_type, __pyx_v_data, __pyx_v_components, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* "imgui/core.pyx":9706 * return changed, data * * def slider_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_328slider_scalar_N(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, int __pyx_v_components, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { char *__pyx_v_p_data; char *__pyx_v_p_min; char *__pyx_v_p_max; char *__pyx_v_fmt; PyObject *__pyx_v_fmt_data = 0; PyObject *__pyx_v_changed = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("slider_scalar_N", 0); /* "imgui/core.pyx":9749 * """ * * cdef char* p_data = data # <<<<<<<<<<<<<< * cdef char* p_min = min_value * cdef char* p_max = max_value */ if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9749, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9749, __pyx_L1_error) __pyx_v_p_data = __pyx_t_1; /* "imgui/core.pyx":9750 * * cdef char* p_data = data * cdef char* p_min = min_value # <<<<<<<<<<<<<< * cdef char* p_max = max_value * */ if (unlikely(__pyx_v_min_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9750, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_min_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9750, __pyx_L1_error) __pyx_v_p_min = __pyx_t_1; /* "imgui/core.pyx":9751 * cdef char* p_data = data * cdef char* p_min = min_value * cdef char* p_max = max_value # <<<<<<<<<<<<<< * * cdef char* fmt = NULL */ if (unlikely(__pyx_v_max_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9751, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_max_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9751, __pyx_L1_error) __pyx_v_p_max = __pyx_t_1; /* "imgui/core.pyx":9753 * cdef char* p_max = max_value * * cdef char* fmt = NULL # <<<<<<<<<<<<<< * cdef bytes fmt_data; * if format is not None: */ __pyx_v_fmt = NULL; /* "imgui/core.pyx":9755 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ __pyx_t_2 = (__pyx_v_format != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":9756 * cdef bytes fmt_data; * if format is not None: * fmt_data = _bytes(format) # <<<<<<<<<<<<<< * fmt = fmt_data * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_fmt_data = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":9757 * if format is not None: * fmt_data = _bytes(format) * fmt = fmt_data # <<<<<<<<<<<<<< * * cdef changed = cimgui.SliderScalarN( */ if (unlikely(__pyx_v_fmt_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9757, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_fmt_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9757, __pyx_L1_error) __pyx_v_fmt = __pyx_t_1; /* "imgui/core.pyx":9755 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ } /* "imgui/core.pyx":9760 * * cdef changed = cimgui.SliderScalarN( * _bytes(label), # <<<<<<<<<<<<<< * data_type, * p_data, */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9760, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9760, __pyx_L1_error) /* "imgui/core.pyx":9759 * fmt = fmt_data * * cdef changed = cimgui.SliderScalarN( # <<<<<<<<<<<<<< * _bytes(label), * data_type, */ try { __pyx_t_6 = ImGui::SliderScalarN(__pyx_t_5, __pyx_v_data_type, __pyx_v_p_data, __pyx_v_components, __pyx_v_p_min, __pyx_v_p_max, __pyx_v_fmt, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9759, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_changed = __pyx_t_4; __pyx_t_4 = 0; /* "imgui/core.pyx":9770 * ) * * return changed, data # <<<<<<<<<<<<<< * * def v_slider_float( */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_changed); __Pyx_GIVEREF(__pyx_v_changed); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_changed); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_data); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":9706 * return changed, data * * def slider_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.slider_scalar_N", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fmt_data); __Pyx_XDECREF(__pyx_v_changed); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9772 * return changed, data * * def v_slider_float( # <<<<<<<<<<<<<< * str label, * float width, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_331v_slider_float(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_330v_slider_float[] = "v_slider_float(str label, float width, float height, float value, float min_value, float max_value, str format='%.f', ImGuiSliderFlags flags=0)\nDisplay vertical float slider widget with the specified width and\n height.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n width = 20\n height = 100\n value = 88\n\n imgui.begin(\"Example: vertical slider float\")\n changed, values = imgui.v_slider_float(\n \"vertical slider float\",\n width, height, value,\n min_value=0, max_value=100,\n format=\"%0.3f\", flags=imgui.SLIDER_FLAGS_NONE\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value (float): slider value.\n min_value (float): min value allowed by widget.\n max_value (float): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_float()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n widget state change and the slider value.\n\n .. wraps::\n bool VSliderFloat(\n const char* label,\n const ImVec2& size,\n float v,\n float v_min,\n floatint v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_331v_slider_float = {"v_slider_float", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_331v_slider_float, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_330v_slider_float}; static PyObject *__pyx_pw_5imgui_4core_331v_slider_float(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_width; float __pyx_v_height; float __pyx_v_value; float __pyx_v_min_value; float __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("v_slider_float (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_value,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; values[6] = ((PyObject*)__pyx_kp_s_f_2); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_float", 0, 6, 8, 1); __PYX_ERR(0, 9772, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_float", 0, 6, 8, 2); __PYX_ERR(0, 9772, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_float", 0, 6, 8, 3); __PYX_ERR(0, 9772, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_float", 0, 6, 8, 4); __PYX_ERR(0, 9772, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_float", 0, 6, 8, 5); __PYX_ERR(0, 9772, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "v_slider_float") < 0)) __PYX_ERR(0, 9772, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9774, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9775, __pyx_L3_error) __pyx_v_value = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9776, __pyx_L3_error) __pyx_v_min_value = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_min_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9777, __pyx_L3_error) __pyx_v_max_value = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_max_value == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9778, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9780, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("v_slider_float", 0, 6, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9772, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.v_slider_float", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9773, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9779, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_330v_slider_float(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height, __pyx_v_value, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_330v_slider_float(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, float __pyx_v_value, float __pyx_v_min_value, float __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { float __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImVec2 __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("v_slider_float", 0); /* "imgui/core.pyx":9830 * ) * """ * cdef float inout_value = value # <<<<<<<<<<<<<< * return cimgui.VSliderFloat( * _bytes(label), _cast_args_ImVec2(width, height), */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":9831 * """ * cdef float inout_value = value * return cimgui.VSliderFloat( # <<<<<<<<<<<<<< * _bytes(label), _cast_args_ImVec2(width, height), * &inout_value, */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9832 * cdef float inout_value = value * return cimgui.VSliderFloat( * _bytes(label), _cast_args_ImVec2(width, height), # <<<<<<<<<<<<<< * &inout_value, * min_value, max_value, _bytes(format), flags */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9832, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 9832, __pyx_L1_error) __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9832, __pyx_L1_error) /* "imgui/core.pyx":9834 * _bytes(label), _cast_args_ImVec2(width, height), * &inout_value, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9834, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9834, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9834, __pyx_L1_error) /* "imgui/core.pyx":9831 * """ * cdef float inout_value = value * return cimgui.VSliderFloat( # <<<<<<<<<<<<<< * _bytes(label), _cast_args_ImVec2(width, height), * &inout_value, */ try { __pyx_t_6 = ImGui::VSliderFloat(__pyx_t_2, __pyx_t_3, ((float *)(&__pyx_v_inout_value)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9831, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":9835 * &inout_value, * min_value, max_value, _bytes(format), flags * ), inout_value # <<<<<<<<<<<<<< * * */ __pyx_t_1 = PyFloat_FromDouble(__pyx_v_inout_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":9831 * """ * cdef float inout_value = value * return cimgui.VSliderFloat( # <<<<<<<<<<<<<< * _bytes(label), _cast_args_ImVec2(width, height), * &inout_value, */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1); __pyx_t_4 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":9772 * return changed, data * * def v_slider_float( # <<<<<<<<<<<<<< * str label, * float width, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.v_slider_float", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9838 * * * def v_slider_int( # <<<<<<<<<<<<<< * str label, * float width, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_333v_slider_int(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_332v_slider_int[] = "v_slider_int(str label, float width, float height, int value, int min_value, int max_value, str format='%d', ImGuiSliderFlags flags=0)\nDisplay vertical int slider widget with the specified width and height.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n width = 20\n height = 100\n value = 88\n\n imgui.begin(\"Example: vertical slider int\")\n changed, values = imgui.v_slider_int(\n \"vertical slider int\",\n width, height, value,\n min_value=0, max_value=100,\n format=\"%d\"\n )\n imgui.text(\"Changed: %s, Values: %s\" % (changed, values))\n imgui.end()\n\n Args:\n label (str): widget label.\n value (int): slider value.\n min_value (int): min value allowed by widget.\n max_value (int): max value allowed by widget.\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe.\n See :any:`slider_int()`.\n flags: SliderFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n widget state change and the slider value.\n\n .. wraps::\n bool VSliderInt(\n const char* label,\n const ImVec2& size,\n int v,\n int v_min,\n int v_max,\n const char* format = \"%.3f\",\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_333v_slider_int = {"v_slider_int", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_333v_slider_int, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_332v_slider_int}; static PyObject *__pyx_pw_5imgui_4core_333v_slider_int(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_width; float __pyx_v_height; int __pyx_v_value; int __pyx_v_min_value; int __pyx_v_max_value; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("v_slider_int (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_value,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[8] = {0,0,0,0,0,0,0,0}; values[6] = ((PyObject*)__pyx_kp_s_d); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_int", 0, 6, 8, 1); __PYX_ERR(0, 9838, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_int", 0, 6, 8, 2); __PYX_ERR(0, 9838, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_int", 0, 6, 8, 3); __PYX_ERR(0, 9838, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_int", 0, 6, 8, 4); __PYX_ERR(0, 9838, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_int", 0, 6, 8, 5); __PYX_ERR(0, 9838, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[7] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "v_slider_int") < 0)) __PYX_ERR(0, 9838, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9840, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9841, __pyx_L3_error) __pyx_v_value = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9842, __pyx_L3_error) __pyx_v_min_value = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_min_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9843, __pyx_L3_error) __pyx_v_max_value = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_max_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9844, __pyx_L3_error) __pyx_v_format = ((PyObject*)values[6]); if (values[7]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[7]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9846, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("v_slider_int", 0, 6, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9838, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.v_slider_int", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9839, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9845, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_332v_slider_int(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height, __pyx_v_value, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_332v_slider_int(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, int __pyx_v_value, int __pyx_v_min_value, int __pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { int __pyx_v_inout_value; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImVec2 __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; bool __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("v_slider_int", 0); /* "imgui/core.pyx":9895 * ) * """ * cdef int inout_value = value # <<<<<<<<<<<<<< * return cimgui.VSliderInt( * _bytes(label), _cast_args_ImVec2(width, height), */ __pyx_v_inout_value = __pyx_v_value; /* "imgui/core.pyx":9896 * """ * cdef int inout_value = value * return cimgui.VSliderInt( # <<<<<<<<<<<<<< * _bytes(label), _cast_args_ImVec2(width, height), * &inout_value, */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":9897 * cdef int inout_value = value * return cimgui.VSliderInt( * _bytes(label), _cast_args_ImVec2(width, height), # <<<<<<<<<<<<<< * &inout_value, * min_value, max_value, _bytes(format), flags */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9897, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 9897, __pyx_L1_error) __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9897, __pyx_L1_error) /* "imgui/core.pyx":9899 * _bytes(label), _cast_args_ImVec2(width, height), * &inout_value, * min_value, max_value, _bytes(format), flags # <<<<<<<<<<<<<< * ), inout_value * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9899, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9899, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9899, __pyx_L1_error) /* "imgui/core.pyx":9896 * """ * cdef int inout_value = value * return cimgui.VSliderInt( # <<<<<<<<<<<<<< * _bytes(label), _cast_args_ImVec2(width, height), * &inout_value, */ try { __pyx_t_6 = ImGui::VSliderInt(__pyx_t_2, __pyx_t_3, ((int *)(&__pyx_v_inout_value)), __pyx_v_min_value, __pyx_v_max_value, __pyx_t_5, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9896, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":9900 * &inout_value, * min_value, max_value, _bytes(format), flags * ), inout_value # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_inout_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":9896 * """ * cdef int inout_value = value * return cimgui.VSliderInt( # <<<<<<<<<<<<<< * _bytes(label), _cast_args_ImVec2(width, height), * &inout_value, */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1); __pyx_t_4 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "imgui/core.pyx":9838 * * * def v_slider_int( # <<<<<<<<<<<<<< * str label, * float width, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.v_slider_int", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9903 * * * def v_slider_scalar( # <<<<<<<<<<<<<< * str label, * float width, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_335v_slider_scalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_334v_slider_scalar[] = "v_slider_scalar(str label, float width, float height, ImGuiDataType data_type, bytes data, bytes min_value, bytes max_value, str format=None, ImGuiSliderFlags flags=0)\nDisplay vertical scalar slider widget.\n Data is passed via ``bytes`` and the type is separatelly given using ``data_type``.\n This is useful to work with specific types (e.g. unsigned 8bit integer, float, double)\n like when interfacing with Numpy.\n\n Args:\n label (str): widget label\n width (float): width of the slider\n height (float): height of the slider\n data_type: ImGuiDataType enum, type of the given data\n data (bytes): data value as a bytes array\n min_value (bytes): min value allowed by widget\n max_value (bytes): max value allowed by widget\n format (str): display format string as C-style ``printf``\n format string. **Warning:** highly unsafe. See :any:`drag_int()`.\n flags: ImGuiSlider flags. See:\n :ref:`list of available flags `.\n\n Returns:\n tuple: a ``(changed, value)`` tuple that contains indicator of\n slider state change and the current slider content.\n\n .. wraps::\n bool VSliderScalar(\n const char* label,\n const ImVec2& size,\n ImGuiDataType data_type,\n void* p_data,\n const void* p_min,\n const void* p_max,\n const char* format = NULL,\n ImGuiSliderFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_335v_slider_scalar = {"v_slider_scalar", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_335v_slider_scalar, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_334v_slider_scalar}; static PyObject *__pyx_pw_5imgui_4core_335v_slider_scalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; float __pyx_v_width; float __pyx_v_height; ImGuiDataType __pyx_v_data_type; PyObject *__pyx_v_data = 0; PyObject *__pyx_v_min_value = 0; PyObject *__pyx_v_max_value = 0; PyObject *__pyx_v_format = 0; ImGuiSliderFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("v_slider_scalar (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_data_type,&__pyx_n_s_data,&__pyx_n_s_min_value,&__pyx_n_s_max_value,&__pyx_n_s_format,&__pyx_n_s_flags,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":9911 * bytes min_value, * bytes max_value, * str format = None, # <<<<<<<<<<<<<< * cimgui.ImGuiSliderFlags flags = 0): * """Display vertical scalar slider widget. */ values[7] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_scalar", 0, 7, 9, 1); __PYX_ERR(0, 9903, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_scalar", 0, 7, 9, 2); __PYX_ERR(0, 9903, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_scalar", 0, 7, 9, 3); __PYX_ERR(0, 9903, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_scalar", 0, 7, 9, 4); __PYX_ERR(0, 9903, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_scalar", 0, 7, 9, 5); __PYX_ERR(0, 9903, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("v_slider_scalar", 0, 7, 9, 6); __PYX_ERR(0, 9903, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "v_slider_scalar") < 0)) __PYX_ERR(0, 9903, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9905, __pyx_L3_error) __pyx_v_height = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9906, __pyx_L3_error) __pyx_v_data_type = __Pyx_PyInt_As_ImGuiDataType(values[3]); if (unlikely((__pyx_v_data_type == ((ImGuiDataType)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9907, __pyx_L3_error) __pyx_v_data = ((PyObject*)values[4]); __pyx_v_min_value = ((PyObject*)values[5]); __pyx_v_max_value = ((PyObject*)values[6]); __pyx_v_format = ((PyObject*)values[7]); if (values[8]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiSliderFlags(values[8]); if (unlikely((__pyx_v_flags == ((ImGuiSliderFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 9912, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiSliderFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("v_slider_scalar", 0, 7, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9903, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.v_slider_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 9904, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 9908, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_min_value), (&PyBytes_Type), 1, "min_value", 1))) __PYX_ERR(0, 9909, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_max_value), (&PyBytes_Type), 1, "max_value", 1))) __PYX_ERR(0, 9910, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 9911, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_334v_slider_scalar(__pyx_self, __pyx_v_label, __pyx_v_width, __pyx_v_height, __pyx_v_data_type, __pyx_v_data, __pyx_v_min_value, __pyx_v_max_value, __pyx_v_format, __pyx_v_flags); /* "imgui/core.pyx":9903 * * * def v_slider_scalar( # <<<<<<<<<<<<<< * str label, * float width, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_334v_slider_scalar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, float __pyx_v_width, float __pyx_v_height, ImGuiDataType __pyx_v_data_type, PyObject *__pyx_v_data, PyObject *__pyx_v_min_value, PyObject *__pyx_v_max_value, PyObject *__pyx_v_format, ImGuiSliderFlags __pyx_v_flags) { char *__pyx_v_p_data; char *__pyx_v_p_min; char *__pyx_v_p_max; char *__pyx_v_fmt; PyObject *__pyx_v_fmt_data = 0; PyObject *__pyx_v_changed = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; char const *__pyx_t_5; ImVec2 __pyx_t_6; bool __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("v_slider_scalar", 0); /* "imgui/core.pyx":9948 * """ * * cdef char* p_data = data # <<<<<<<<<<<<<< * cdef char* p_min = min_value * cdef char* p_max = max_value */ if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9948, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9948, __pyx_L1_error) __pyx_v_p_data = __pyx_t_1; /* "imgui/core.pyx":9949 * * cdef char* p_data = data * cdef char* p_min = min_value # <<<<<<<<<<<<<< * cdef char* p_max = max_value * */ if (unlikely(__pyx_v_min_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9949, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_min_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9949, __pyx_L1_error) __pyx_v_p_min = __pyx_t_1; /* "imgui/core.pyx":9950 * cdef char* p_data = data * cdef char* p_min = min_value * cdef char* p_max = max_value # <<<<<<<<<<<<<< * * cdef char* fmt = NULL */ if (unlikely(__pyx_v_max_value == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9950, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_max_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9950, __pyx_L1_error) __pyx_v_p_max = __pyx_t_1; /* "imgui/core.pyx":9952 * cdef char* p_max = max_value * * cdef char* fmt = NULL # <<<<<<<<<<<<<< * cdef bytes fmt_data; * if format is not None: */ __pyx_v_fmt = NULL; /* "imgui/core.pyx":9954 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ __pyx_t_2 = (__pyx_v_format != ((PyObject*)Py_None)); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "imgui/core.pyx":9955 * cdef bytes fmt_data; * if format is not None: * fmt_data = _bytes(format) # <<<<<<<<<<<<<< * fmt = fmt_data * */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_fmt_data = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "imgui/core.pyx":9956 * if format is not None: * fmt_data = _bytes(format) * fmt = fmt_data # <<<<<<<<<<<<<< * * cdef changed = cimgui.VSliderScalar( */ if (unlikely(__pyx_v_fmt_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9956, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_fmt_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 9956, __pyx_L1_error) __pyx_v_fmt = __pyx_t_1; /* "imgui/core.pyx":9954 * cdef char* fmt = NULL * cdef bytes fmt_data; * if format is not None: # <<<<<<<<<<<<<< * fmt_data = _bytes(format) * fmt = fmt_data */ } /* "imgui/core.pyx":9959 * * cdef changed = cimgui.VSliderScalar( * _bytes(label), # <<<<<<<<<<<<<< * _cast_args_ImVec2(width, height), * data_type, */ __pyx_t_4 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 9959, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 9959, __pyx_L1_error) /* "imgui/core.pyx":9960 * cdef changed = cimgui.VSliderScalar( * _bytes(label), * _cast_args_ImVec2(width, height), # <<<<<<<<<<<<<< * data_type, * p_data, */ __pyx_t_6 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9960, __pyx_L1_error) /* "imgui/core.pyx":9958 * fmt = fmt_data * * cdef changed = cimgui.VSliderScalar( # <<<<<<<<<<<<<< * _bytes(label), * _cast_args_ImVec2(width, height), */ try { __pyx_t_7 = ImGui::VSliderScalar(__pyx_t_5, __pyx_t_6, __pyx_v_data_type, __pyx_v_p_data, __pyx_v_p_min, __pyx_v_p_max, __pyx_v_fmt, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 9958, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_changed = __pyx_t_4; __pyx_t_4 = 0; /* "imgui/core.pyx":9969 * ) * * return changed, data # <<<<<<<<<<<<<< * * def plot_lines( */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_changed); __Pyx_GIVEREF(__pyx_v_changed); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_changed); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_data); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":9903 * * * def v_slider_scalar( # <<<<<<<<<<<<<< * str label, * float width, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.v_slider_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fmt_data); __Pyx_XDECREF(__pyx_v_changed); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":9971 * return changed, data * * def plot_lines( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_337plot_lines(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_336plot_lines[] = "plot_lines(str label, const float[:] values, int values_count=-1, int values_offset=0, str overlay_text=None, float scale_min=FLOAT_MAX, float scale_max=FLOAT_MAX, graph_size=(0, 0), int stride=<\077\077?>)\n\n Plot a 1D array of float values.\n\n Args:\n label (str): A plot label that will be displayed on the plot's right\n side. If you want the label to be invisible, add :code:`\"##\"`\n before the label's text: :code:`\"my_label\" -> \"##my_label\"`\n\n values (array of floats): the y-values.\n It must be a type that supports Cython's Memoryviews,\n (See: http://docs.cython.org/en/latest/src/userguide/memoryviews.html)\n for example a numpy array.\n\n overlay_text (str or None, optional): Overlay text.\n\n scale_min (float, optional): y-value at the bottom of the plot.\n scale_max (float, optional): y-value at the top of the plot.\n\n graph_size (tuple of two floats, optional): plot size in pixels.\n **Note:** In ImGui 1.49, (-1,-1) will NOT auto-size the plot.\n To do that, use :func:`get_content_region_available` and pass\n in the right size.\n\n **Note:** These low-level parameters are exposed if needed for\n performance:\n\n * **values_offset** (*int*): Index of first element to display\n * **values_count** (*int*): Number of values to display. -1 will use the\n entire array.\n * **stride** (*int*): Number of bytes to move to read next element.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n from array import array\n from math import sin\n # NOTE: this example will not work under py27 due do incompatible\n # implementation of array and memoryview().\n plot_values = array('f', [sin(x * 0.1) for x in range(100)])\n\n imgui.begin(\"Plot example\")\n imgui.plot_lines(\"Sin(t)\", plot_values)\n imgui.end()""\n\n .. wraps::\n void PlotLines(\n const char* label, const float* values, int values_count,\n\n int values_offset = 0,\n const char* overlay_text = NULL,\n float scale_min = FLT_MAX,\n float scale_max = FLT_MAX,\n ImVec2 graph_size = ImVec2(0,0),\n int stride = sizeof(float)\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_337plot_lines = {"plot_lines", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_337plot_lines, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_336plot_lines}; static PyObject *__pyx_pw_5imgui_4core_337plot_lines(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; __Pyx_memviewslice __pyx_v_values = { 0, 0, { 0 }, { 0 }, { 0 } }; int __pyx_v_values_count; int __pyx_v_values_offset; PyObject *__pyx_v_overlay_text = 0; float __pyx_v_scale_min; float __pyx_v_scale_max; PyObject *__pyx_v_graph_size = 0; int __pyx_v_stride; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("plot_lines (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_values,&__pyx_n_s_values_count,&__pyx_n_s_values_offset,&__pyx_n_s_overlay_text,&__pyx_n_s_scale_min,&__pyx_n_s_scale_max,&__pyx_n_s_graph_size,&__pyx_n_s_stride,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":9976 * int values_count = -1, * int values_offset = 0, * str overlay_text = None, # <<<<<<<<<<<<<< * float scale_min = FLOAT_MAX, * float scale_max = FLOAT_MAX, */ values[4] = ((PyObject*)Py_None); /* "imgui/core.pyx":9979 * float scale_min = FLOAT_MAX, * float scale_max = FLOAT_MAX, * graph_size = (0, 0), # <<<<<<<<<<<<<< * int stride = sizeof(float), * ): */ values[7] = ((PyObject *)__pyx_tuple__8); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_values)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("plot_lines", 0, 2, 9, 1); __PYX_ERR(0, 9971, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_values_count); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_values_offset); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_overlay_text); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_min); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_max); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_graph_size); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "plot_lines") < 0)) __PYX_ERR(0, 9971, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_values = __Pyx_PyObject_to_MemoryviewSlice_ds_float__const__(values[1], 0); if (unlikely(!__pyx_v_values.memview)) __PYX_ERR(0, 9973, __pyx_L3_error) if (values[2]) { __pyx_v_values_count = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_values_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9974, __pyx_L3_error) } else { __pyx_v_values_count = ((int)-1); } if (values[3]) { __pyx_v_values_offset = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_values_offset == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9975, __pyx_L3_error) } else { __pyx_v_values_offset = ((int)0); } __pyx_v_overlay_text = ((PyObject*)values[4]); if (values[5]) { __pyx_v_scale_min = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_scale_min == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9977, __pyx_L3_error) } else { __pyx_v_scale_min = __pyx_k__95; } if (values[6]) { __pyx_v_scale_max = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_scale_max == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9978, __pyx_L3_error) } else { __pyx_v_scale_max = __pyx_k__96; } __pyx_v_graph_size = values[7]; if (values[8]) { __pyx_v_stride = __Pyx_PyInt_As_int(values[8]); if (unlikely((__pyx_v_stride == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9980, __pyx_L3_error) } else { __pyx_v_stride = __pyx_k__97; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("plot_lines", 0, 2, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9971, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.plot_lines", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 0, "label", 1))) __PYX_ERR(0, 9972, __pyx_L1_error) if (unlikely(((PyObject *)__pyx_v_values.memview) == Py_None)) { PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "values"); __PYX_ERR(0, 9973, __pyx_L1_error) } if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_overlay_text), (&PyString_Type), 1, "overlay_text", 1))) __PYX_ERR(0, 9976, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_336plot_lines(__pyx_self, __pyx_v_label, __pyx_v_values, __pyx_v_values_count, __pyx_v_values_offset, __pyx_v_overlay_text, __pyx_v_scale_min, __pyx_v_scale_max, __pyx_v_graph_size, __pyx_v_stride); /* "imgui/core.pyx":9971 * return changed, data * * def plot_lines( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_336plot_lines(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, __Pyx_memviewslice __pyx_v_values, int __pyx_v_values_count, int __pyx_v_values_offset, PyObject *__pyx_v_overlay_text, float __pyx_v_scale_min, float __pyx_v_scale_max, PyObject *__pyx_v_graph_size, int __pyx_v_stride) { char const *__pyx_v_overlay_text_ptr; PyObject *__pyx_v_overlay_text_b = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; char const *__pyx_t_5; Py_ssize_t __pyx_t_6; int __pyx_t_7; ImVec2 __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("plot_lines", 0); /* "imgui/core.pyx":10041 * ) * """ * if values_count == -1: # <<<<<<<<<<<<<< * values_count = values.shape[0] * */ __pyx_t_1 = ((__pyx_v_values_count == -1L) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":10042 * """ * if values_count == -1: * values_count = values.shape[0] # <<<<<<<<<<<<<< * * # Would be nicer as something like */ __pyx_v_values_count = ((int)(__pyx_v_values.shape[0])); /* "imgui/core.pyx":10041 * ) * """ * if values_count == -1: # <<<<<<<<<<<<<< * values_count = values.shape[0] * */ } /* "imgui/core.pyx":10047 * # _bytes(overlay_text) if overlay_text is not None else NULL * # but then Cython complains about either types or pointers to temporary references. * cdef const char* overlay_text_ptr = NULL # <<<<<<<<<<<<<< * cdef bytes overlay_text_b * if overlay_text is not None: */ __pyx_v_overlay_text_ptr = NULL; /* "imgui/core.pyx":10049 * cdef const char* overlay_text_ptr = NULL * cdef bytes overlay_text_b * if overlay_text is not None: # <<<<<<<<<<<<<< * overlay_text_b = _bytes(overlay_text) # must be assigned to a variable * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* */ __pyx_t_1 = (__pyx_v_overlay_text != ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":10050 * cdef bytes overlay_text_b * if overlay_text is not None: * overlay_text_b = _bytes(overlay_text) # must be assigned to a variable # <<<<<<<<<<<<<< * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_overlay_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_overlay_text_b = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":10051 * if overlay_text is not None: * overlay_text_b = _bytes(overlay_text) # must be assigned to a variable * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* # <<<<<<<<<<<<<< * * cimgui.PlotLines( */ if (unlikely(__pyx_v_overlay_text_b == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10051, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_v_overlay_text_b); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 10051, __pyx_L1_error) __pyx_v_overlay_text_ptr = __pyx_t_4; /* "imgui/core.pyx":10049 * cdef const char* overlay_text_ptr = NULL * cdef bytes overlay_text_b * if overlay_text is not None: # <<<<<<<<<<<<<< * overlay_text_b = _bytes(overlay_text) # must be assigned to a variable * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* */ } /* "imgui/core.pyx":10054 * * cimgui.PlotLines( * _bytes(label), &values[0], values_count, # <<<<<<<<<<<<<< * values_offset, * overlay_text_ptr, */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10054, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 10054, __pyx_L1_error) __pyx_t_6 = 0; __pyx_t_7 = -1; if (__pyx_t_6 < 0) { __pyx_t_6 += __pyx_v_values.shape[0]; if (unlikely(__pyx_t_6 < 0)) __pyx_t_7 = 0; } else if (unlikely(__pyx_t_6 >= __pyx_v_values.shape[0])) __pyx_t_7 = 0; if (unlikely(__pyx_t_7 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_7); __PYX_ERR(0, 10054, __pyx_L1_error) } /* "imgui/core.pyx":10058 * overlay_text_ptr, * scale_min, scale_max, * _cast_tuple_ImVec2(graph_size), # <<<<<<<<<<<<<< * stride * ) */ __pyx_t_8 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_graph_size); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10058, __pyx_L1_error) /* "imgui/core.pyx":10053 * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* * * cimgui.PlotLines( # <<<<<<<<<<<<<< * _bytes(label), &values[0], values_count, * values_offset, */ try { ImGui::PlotLines(__pyx_t_5, (&(*((float const *) ( /* dim=0 */ (__pyx_v_values.data + __pyx_t_6 * __pyx_v_values.strides[0]) )))), __pyx_v_values_count, __pyx_v_values_offset, __pyx_v_overlay_text_ptr, __pyx_v_scale_min, __pyx_v_scale_max, __pyx_t_8, __pyx_v_stride); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10053, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":9971 * return changed, data * * def plot_lines( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.plot_lines", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_overlay_text_b); __PYX_XDEC_MEMVIEW(&__pyx_v_values, 1); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10063 * * * def plot_histogram( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_339plot_histogram(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_338plot_histogram[] = "plot_histogram(str label, const float[:] values, int values_count=-1, int values_offset=0, str overlay_text=None, float scale_min=FLT_MAX, float scale_max=FLT_MAX, graph_size=(0, 0), int stride=<\077\077?>)\n\n Plot a histogram of float values.\n\n Args:\n label (str): A plot label that will be displayed on the plot's right\n side. If you want the label to be invisible, add :code:`\"##\"`\n before the label's text: :code:`\"my_label\" -> \"##my_label\"`\n\n values (array of floats): the y-values.\n It must be a type that supports Cython's Memoryviews,\n (See: http://docs.cython.org/en/latest/src/userguide/memoryviews.html)\n for example a numpy array.\n\n overlay_text (str or None, optional): Overlay text.\n\n scale_min (float, optional): y-value at the bottom of the plot.\n scale_max (float, optional): y-value at the top of the plot.\n\n graph_size (tuple of two floats, optional): plot size in pixels.\n **Note:** In ImGui 1.49, (-1,-1) will NOT auto-size the plot.\n To do that, use :func:`get_content_region_available` and pass\n in the right size.\n\n **Note:** These low-level parameters are exposed if needed for\n performance:\n\n * **values_offset** (*int*): Index of first element to display\n * **values_count** (*int*): Number of values to display. -1 will use the\n entire array.\n * **stride** (*int*): Number of bytes to move to read next element.\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 130\n\n from array import array\n from random import random\n\n # NOTE: this example will not work under py27 due do incompatible\n # implementation of array and memoryview().\n histogram_values = array('f', [random() for _ in range(20)])\n\n imgui.begin(\"Plot example\")\n imgui.plot_histogram(\"histogram(random())\", histogra""m_values)\n imgui.end()\n\n .. wraps::\n void PlotHistogram(\n const char* label, const float* values, int values_count,\n # note: optional\n int values_offset,\n const char* overlay_text,\n float scale_min,\n float scale_max,\n ImVec2 graph_size,\n int stride\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_339plot_histogram = {"plot_histogram", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_339plot_histogram, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_338plot_histogram}; static PyObject *__pyx_pw_5imgui_4core_339plot_histogram(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; __Pyx_memviewslice __pyx_v_values = { 0, 0, { 0 }, { 0 }, { 0 } }; int __pyx_v_values_count; int __pyx_v_values_offset; PyObject *__pyx_v_overlay_text = 0; float __pyx_v_scale_min; float __pyx_v_scale_max; PyObject *__pyx_v_graph_size = 0; int __pyx_v_stride; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("plot_histogram (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_values,&__pyx_n_s_values_count,&__pyx_n_s_values_offset,&__pyx_n_s_overlay_text,&__pyx_n_s_scale_min,&__pyx_n_s_scale_max,&__pyx_n_s_graph_size,&__pyx_n_s_stride,0}; PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; /* "imgui/core.pyx":10068 * int values_count = -1, * int values_offset = 0, * str overlay_text = None, # <<<<<<<<<<<<<< * float scale_min = FLT_MAX, * float scale_max = FLT_MAX, */ values[4] = ((PyObject*)Py_None); /* "imgui/core.pyx":10071 * float scale_min = FLT_MAX, * float scale_max = FLT_MAX, * graph_size = (0, 0), # <<<<<<<<<<<<<< * int stride = sizeof(float), * ): */ values[7] = ((PyObject *)__pyx_tuple__8); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_values)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("plot_histogram", 0, 2, 9, 1); __PYX_ERR(0, 10063, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_values_count); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_values_offset); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_overlay_text); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_min); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_max); if (value) { values[6] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 7: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_graph_size); if (value) { values[7] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 8: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride); if (value) { values[8] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "plot_histogram") < 0)) __PYX_ERR(0, 10063, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_values = __Pyx_PyObject_to_MemoryviewSlice_ds_float__const__(values[1], 0); if (unlikely(!__pyx_v_values.memview)) __PYX_ERR(0, 10065, __pyx_L3_error) if (values[2]) { __pyx_v_values_count = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_values_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10066, __pyx_L3_error) } else { __pyx_v_values_count = ((int)-1); } if (values[3]) { __pyx_v_values_offset = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_values_offset == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10067, __pyx_L3_error) } else { __pyx_v_values_offset = ((int)0); } __pyx_v_overlay_text = ((PyObject*)values[4]); if (values[5]) { __pyx_v_scale_min = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_scale_min == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10069, __pyx_L3_error) } else { __pyx_v_scale_min = __pyx_k__98; } if (values[6]) { __pyx_v_scale_max = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_scale_max == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10070, __pyx_L3_error) } else { __pyx_v_scale_max = __pyx_k__99; } __pyx_v_graph_size = values[7]; if (values[8]) { __pyx_v_stride = __Pyx_PyInt_As_int(values[8]); if (unlikely((__pyx_v_stride == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10072, __pyx_L3_error) } else { __pyx_v_stride = __pyx_k__100; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("plot_histogram", 0, 2, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10063, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.plot_histogram", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 0, "label", 1))) __PYX_ERR(0, 10064, __pyx_L1_error) if (unlikely(((PyObject *)__pyx_v_values.memview) == Py_None)) { PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "values"); __PYX_ERR(0, 10065, __pyx_L1_error) } if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_overlay_text), (&PyString_Type), 1, "overlay_text", 1))) __PYX_ERR(0, 10068, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_338plot_histogram(__pyx_self, __pyx_v_label, __pyx_v_values, __pyx_v_values_count, __pyx_v_values_offset, __pyx_v_overlay_text, __pyx_v_scale_min, __pyx_v_scale_max, __pyx_v_graph_size, __pyx_v_stride); /* "imgui/core.pyx":10063 * * * def plot_histogram( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_338plot_histogram(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, __Pyx_memviewslice __pyx_v_values, int __pyx_v_values_count, int __pyx_v_values_offset, PyObject *__pyx_v_overlay_text, float __pyx_v_scale_min, float __pyx_v_scale_max, PyObject *__pyx_v_graph_size, int __pyx_v_stride) { char const *__pyx_v_overlay_text_ptr; PyObject *__pyx_v_overlay_text_b = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; char const *__pyx_t_5; Py_ssize_t __pyx_t_6; int __pyx_t_7; ImVec2 __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("plot_histogram", 0); /* "imgui/core.pyx":10133 * ) * """ * if values_count == -1: # <<<<<<<<<<<<<< * values_count = values.shape[0] * */ __pyx_t_1 = ((__pyx_v_values_count == -1L) != 0); if (__pyx_t_1) { /* "imgui/core.pyx":10134 * """ * if values_count == -1: * values_count = values.shape[0] # <<<<<<<<<<<<<< * * # Would be nicer as something like */ __pyx_v_values_count = ((int)(__pyx_v_values.shape[0])); /* "imgui/core.pyx":10133 * ) * """ * if values_count == -1: # <<<<<<<<<<<<<< * values_count = values.shape[0] * */ } /* "imgui/core.pyx":10139 * # _bytes(overlay_text) if overlay_text is not None else NULL * # but then Cython complains about either types or pointers to temporary references. * cdef const char* overlay_text_ptr = NULL # <<<<<<<<<<<<<< * cdef bytes overlay_text_b * */ __pyx_v_overlay_text_ptr = NULL; /* "imgui/core.pyx":10142 * cdef bytes overlay_text_b * * if overlay_text is not None: # <<<<<<<<<<<<<< * overlay_text_b = _bytes(overlay_text) # must be assigned to a variable * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* */ __pyx_t_1 = (__pyx_v_overlay_text != ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":10143 * * if overlay_text is not None: * overlay_text_b = _bytes(overlay_text) # must be assigned to a variable # <<<<<<<<<<<<<< * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* * */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_overlay_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_overlay_text_b = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":10144 * if overlay_text is not None: * overlay_text_b = _bytes(overlay_text) # must be assigned to a variable * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* # <<<<<<<<<<<<<< * * cimgui.PlotHistogram( */ if (unlikely(__pyx_v_overlay_text_b == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10144, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_v_overlay_text_b); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 10144, __pyx_L1_error) __pyx_v_overlay_text_ptr = __pyx_t_4; /* "imgui/core.pyx":10142 * cdef bytes overlay_text_b * * if overlay_text is not None: # <<<<<<<<<<<<<< * overlay_text_b = _bytes(overlay_text) # must be assigned to a variable * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* */ } /* "imgui/core.pyx":10147 * * cimgui.PlotHistogram( * _bytes(label), &values[0], values_count, # <<<<<<<<<<<<<< * values_offset, * overlay_text_ptr, */ __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10147, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 10147, __pyx_L1_error) __pyx_t_6 = 0; __pyx_t_7 = -1; if (__pyx_t_6 < 0) { __pyx_t_6 += __pyx_v_values.shape[0]; if (unlikely(__pyx_t_6 < 0)) __pyx_t_7 = 0; } else if (unlikely(__pyx_t_6 >= __pyx_v_values.shape[0])) __pyx_t_7 = 0; if (unlikely(__pyx_t_7 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_7); __PYX_ERR(0, 10147, __pyx_L1_error) } /* "imgui/core.pyx":10151 * overlay_text_ptr, * scale_min, scale_max, * _cast_tuple_ImVec2(graph_size), # <<<<<<<<<<<<<< * stride * ) */ __pyx_t_8 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_graph_size); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10151, __pyx_L1_error) /* "imgui/core.pyx":10146 * overlay_text_ptr = overlay_text_b # auto-convert bytes to char* * * cimgui.PlotHistogram( # <<<<<<<<<<<<<< * _bytes(label), &values[0], values_count, * values_offset, */ try { ImGui::PlotHistogram(__pyx_t_5, (&(*((float const *) ( /* dim=0 */ (__pyx_v_values.data + __pyx_t_6 * __pyx_v_values.strides[0]) )))), __pyx_v_values_count, __pyx_v_values_offset, __pyx_v_overlay_text_ptr, __pyx_v_scale_min, __pyx_v_scale_max, __pyx_t_8, __pyx_v_stride); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10146, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":10063 * * * def plot_histogram( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.plot_histogram", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_overlay_text_b); __PYX_XDEC_MEMVIEW(&__pyx_v_values, 1); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10155 * ) * * def progress_bar(float fraction, size = (-FLOAT_MIN,0), str overlay = ""): # <<<<<<<<<<<<<< * """ Show a progress bar * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_341progress_bar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_340progress_bar[] = "progress_bar(float fraction, size=(-FLOAT_MIN, 0), str overlay='')\n Show a progress bar\n\n .. visual-example::\n :auto_layout:\n :width: 400\n :height: 200\n\n imgui.begin(\"Progress bar example\")\n imgui.progress_bar(0.7, (100,20), \"Overlay text\")\n imgui.end()\n\n Args:\n fraction (float): A floating point number between 0.0 and 1.0\n 0.0 means no progress and 1.0 means progress is completed\n size : a tuple (width, height) that sets the width and height\n of the progress bar\n overlay (str): Optional text that will be shown in the progress bar\n\n .. wraps::\n void ProgressBar(\n float fraction,\n const ImVec2& size_arg = ImVec2(-FLT_MIN, 0),\n const char* overlay = NULL\n )\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_341progress_bar = {"progress_bar", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_341progress_bar, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_340progress_bar}; static PyObject *__pyx_pw_5imgui_4core_341progress_bar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_fraction; PyObject *__pyx_v_size = 0; PyObject *__pyx_v_overlay = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("progress_bar (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fraction,&__pyx_n_s_size,&__pyx_n_s_overlay,0}; PyObject* values[3] = {0,0,0}; values[1] = __pyx_k__101; values[2] = ((PyObject*)__pyx_kp_s__40); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fraction)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_overlay); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "progress_bar") < 0)) __PYX_ERR(0, 10155, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_fraction = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_fraction == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10155, __pyx_L3_error) __pyx_v_size = values[1]; __pyx_v_overlay = ((PyObject*)values[2]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("progress_bar", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10155, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.progress_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_overlay), (&PyString_Type), 1, "overlay", 1))) __PYX_ERR(0, 10155, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_340progress_bar(__pyx_self, __pyx_v_fraction, __pyx_v_size, __pyx_v_overlay); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_340progress_bar(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_fraction, PyObject *__pyx_v_size, PyObject *__pyx_v_overlay) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("progress_bar", 0); /* "imgui/core.pyx":10182 * * """ * cimgui.ProgressBar(fraction, _cast_tuple_ImVec2(size), _bytes(overlay)) # <<<<<<<<<<<<<< * * def set_item_default_focus(): */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_size); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10182, __pyx_L1_error) __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_overlay); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10182, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 10182, __pyx_L1_error) try { ImGui::ProgressBar(__pyx_v_fraction, __pyx_t_1, __pyx_t_3); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10182, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":10155 * ) * * def progress_bar(float fraction, size = (-FLOAT_MIN,0), str overlay = ""): # <<<<<<<<<<<<<< * """ Show a progress bar * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.progress_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10184 * cimgui.ProgressBar(fraction, _cast_tuple_ImVec2(size), _bytes(overlay)) * * def set_item_default_focus(): # <<<<<<<<<<<<<< * """Make last item the default focused item of a window. * Please use instead of "if (is_window_appearing()) set_scroll_here()" to signify "default item". */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_343set_item_default_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_342set_item_default_focus[] = "set_item_default_focus()\nMake last item the default focused item of a window.\n Please use instead of \"if (is_window_appearing()) set_scroll_here()\" to signify \"default item\".\n\n .. wraps::\n void SetItemDefaultFocus()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_343set_item_default_focus = {"set_item_default_focus", (PyCFunction)__pyx_pw_5imgui_4core_343set_item_default_focus, METH_NOARGS, __pyx_doc_5imgui_4core_342set_item_default_focus}; static PyObject *__pyx_pw_5imgui_4core_343set_item_default_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_item_default_focus (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_342set_item_default_focus(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_342set_item_default_focus(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_item_default_focus", 0); /* "imgui/core.pyx":10191 * void SetItemDefaultFocus() * """ * cimgui.SetItemDefaultFocus() # <<<<<<<<<<<<<< * * */ try { ImGui::SetItemDefaultFocus(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10191, __pyx_L1_error) } /* "imgui/core.pyx":10184 * cimgui.ProgressBar(fraction, _cast_tuple_ImVec2(size), _bytes(overlay)) * * def set_item_default_focus(): # <<<<<<<<<<<<<< * """Make last item the default focused item of a window. * Please use instead of "if (is_window_appearing()) set_scroll_here()" to signify "default item". */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_item_default_focus", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10194 * * * def set_keyboard_focus_here(int offset = 0): # <<<<<<<<<<<<<< * """Focus keyboard on the next widget. * Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_345set_keyboard_focus_here(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_344set_keyboard_focus_here[] = "set_keyboard_focus_here(int offset=0)\nFocus keyboard on the next widget.\n Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget.\n\n .. wraps::\n void SetKeyboardFocusHere(int offset = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_345set_keyboard_focus_here = {"set_keyboard_focus_here", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_345set_keyboard_focus_here, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_344set_keyboard_focus_here}; static PyObject *__pyx_pw_5imgui_4core_345set_keyboard_focus_here(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_offset; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_keyboard_focus_here (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_keyboard_focus_here") < 0)) __PYX_ERR(0, 10194, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_offset = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_offset == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10194, __pyx_L3_error) } else { __pyx_v_offset = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_keyboard_focus_here", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10194, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_keyboard_focus_here", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_344set_keyboard_focus_here(__pyx_self, __pyx_v_offset); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_344set_keyboard_focus_here(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_offset) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_keyboard_focus_here", 0); /* "imgui/core.pyx":10201 * void SetKeyboardFocusHere(int offset = 0) * """ * return cimgui.SetKeyboardFocusHere(offset) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { ImGui::SetKeyboardFocusHere(__pyx_v_offset); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10201, __pyx_L1_error) } __pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":10194 * * * def set_keyboard_focus_here(int offset = 0): # <<<<<<<<<<<<<< * """Focus keyboard on the next widget. * Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_keyboard_focus_here", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10204 * * * def is_item_hovered( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_347is_item_hovered(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_346is_item_hovered[] = "is_item_hovered(ImGuiHoveredFlags flags=0)\nCheck if the last item is hovered by mouse.\n\n Returns:\n bool: True if item is hovered by mouse, otherwise False.\n\n .. wraps::\n bool IsItemHovered(ImGuiHoveredFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_347is_item_hovered = {"is_item_hovered", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_347is_item_hovered, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_346is_item_hovered}; static PyObject *__pyx_pw_5imgui_4core_347is_item_hovered(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiHoveredFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_hovered (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_item_hovered") < 0)) __PYX_ERR(0, 10204, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiHoveredFlags(values[0]); if (unlikely((__pyx_v_flags == ((ImGuiHoveredFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10205, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiHoveredFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_item_hovered", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10204, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_item_hovered", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_346is_item_hovered(__pyx_self, __pyx_v_flags); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_346is_item_hovered(CYTHON_UNUSED PyObject *__pyx_self, ImGuiHoveredFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_hovered", 0); /* "imgui/core.pyx":10215 * bool IsItemHovered(ImGuiHoveredFlags flags = 0) * """ * return cimgui.IsItemHovered(flags) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemHovered(__pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10215, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10204 * * * def is_item_hovered( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_hovered", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10218 * * * def is_item_focused(): # <<<<<<<<<<<<<< * """Check if the last item is focused * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_349is_item_focused(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_348is_item_focused[] = "is_item_focused()\nCheck if the last item is focused\n\n Returns:\n bool: True if item is focused, otherwise False.\n\n .. wraps::\n bool IsItemFocused()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_349is_item_focused = {"is_item_focused", (PyCFunction)__pyx_pw_5imgui_4core_349is_item_focused, METH_NOARGS, __pyx_doc_5imgui_4core_348is_item_focused}; static PyObject *__pyx_pw_5imgui_4core_349is_item_focused(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_focused (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_348is_item_focused(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_348is_item_focused(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_focused", 0); /* "imgui/core.pyx":10227 * bool IsItemFocused() * """ * return cimgui.IsItemFocused() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemFocused(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10227, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10218 * * * def is_item_focused(): # <<<<<<<<<<<<<< * """Check if the last item is focused * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_focused", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10230 * * * def is_item_active(): # <<<<<<<<<<<<<< * """Was the last item active? For ex. button being held or text field * being edited. Items that don't interact will always return false. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_351is_item_active(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_350is_item_active[] = "is_item_active()\nWas the last item active? For ex. button being held or text field\n being edited. Items that don't interact will always return false.\n\n Returns:\n bool: True if item is active, otherwise False.\n\n .. wraps::\n bool IsItemActive()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_351is_item_active = {"is_item_active", (PyCFunction)__pyx_pw_5imgui_4core_351is_item_active, METH_NOARGS, __pyx_doc_5imgui_4core_350is_item_active}; static PyObject *__pyx_pw_5imgui_4core_351is_item_active(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_active (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_350is_item_active(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_350is_item_active(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_active", 0); /* "imgui/core.pyx":10240 * bool IsItemActive() * """ * return cimgui.IsItemActive() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemActive(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10240, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10230 * * * def is_item_active(): # <<<<<<<<<<<<<< * """Was the last item active? For ex. button being held or text field * being edited. Items that don't interact will always return false. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_active", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10243 * * * def is_item_clicked(cimgui.ImGuiMouseButton mouse_button = 0): # <<<<<<<<<<<<<< * """ Was the last item hovered and mouse clicked on? * Button or node that was just being clicked on. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_353is_item_clicked(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_352is_item_clicked[] = "is_item_clicked(ImGuiMouseButton mouse_button=0)\n Was the last item hovered and mouse clicked on?\n Button or node that was just being clicked on.\n\n Args:\n mouse_button: ImGuiMouseButton\n\n Returns:\n bool: True if item is clicked, otherwise False.\n\n .. wraps::\n bool IsItemClicked(int mouse_button = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_353is_item_clicked = {"is_item_clicked", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_353is_item_clicked, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_352is_item_clicked}; static PyObject *__pyx_pw_5imgui_4core_353is_item_clicked(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiMouseButton __pyx_v_mouse_button; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_clicked (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mouse_button,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mouse_button); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_item_clicked") < 0)) __PYX_ERR(0, 10243, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_mouse_button = __Pyx_PyInt_As_ImGuiMouseButton(values[0]); if (unlikely((__pyx_v_mouse_button == ((ImGuiMouseButton)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10243, __pyx_L3_error) } else { __pyx_v_mouse_button = ((ImGuiMouseButton)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_item_clicked", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10243, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_item_clicked", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_352is_item_clicked(__pyx_self, __pyx_v_mouse_button); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_352is_item_clicked(CYTHON_UNUSED PyObject *__pyx_self, ImGuiMouseButton __pyx_v_mouse_button) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_clicked", 0); /* "imgui/core.pyx":10256 * bool IsItemClicked(int mouse_button = 0) * """ * return cimgui.IsItemClicked(mouse_button) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemClicked(__pyx_v_mouse_button); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10256, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10243 * * * def is_item_clicked(cimgui.ImGuiMouseButton mouse_button = 0): # <<<<<<<<<<<<<< * """ Was the last item hovered and mouse clicked on? * Button or node that was just being clicked on. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_clicked", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10259 * * * def is_item_visible(): # <<<<<<<<<<<<<< * """Was the last item visible? Aka not out of sight due to * clipping/scrolling. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_355is_item_visible(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_354is_item_visible[] = "is_item_visible()\nWas the last item visible? Aka not out of sight due to\n clipping/scrolling.\n\n Returns:\n bool: True if item is visible, otherwise False.\n\n .. wraps::\n bool IsItemVisible()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_355is_item_visible = {"is_item_visible", (PyCFunction)__pyx_pw_5imgui_4core_355is_item_visible, METH_NOARGS, __pyx_doc_5imgui_4core_354is_item_visible}; static PyObject *__pyx_pw_5imgui_4core_355is_item_visible(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_visible (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_354is_item_visible(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_354is_item_visible(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_visible", 0); /* "imgui/core.pyx":10269 * bool IsItemVisible() * """ * return cimgui.IsItemVisible() # <<<<<<<<<<<<<< * * def is_item_edited(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemVisible(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10269, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10259 * * * def is_item_visible(): # <<<<<<<<<<<<<< * """Was the last item visible? Aka not out of sight due to * clipping/scrolling. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_visible", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10271 * return cimgui.IsItemVisible() * * def is_item_edited(): # <<<<<<<<<<<<<< * """Did the last item modify its underlying value this frame? or was pressed? * This is generally the same as the "bool" return value of many widgets. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_357is_item_edited(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_356is_item_edited[] = "is_item_edited()\nDid the last item modify its underlying value this frame? or was pressed?\n This is generally the same as the \"bool\" return value of many widgets.\n\n Returns:\n bool: True if item is edited, otherwise False.\n\n .. wraps::\n bool IsItemEdited()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_357is_item_edited = {"is_item_edited", (PyCFunction)__pyx_pw_5imgui_4core_357is_item_edited, METH_NOARGS, __pyx_doc_5imgui_4core_356is_item_edited}; static PyObject *__pyx_pw_5imgui_4core_357is_item_edited(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_edited (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_356is_item_edited(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_356is_item_edited(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_edited", 0); /* "imgui/core.pyx":10281 * bool IsItemEdited() * """ * return cimgui.IsItemEdited() # <<<<<<<<<<<<<< * * def is_item_activated(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemEdited(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10281, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10271 * return cimgui.IsItemVisible() * * def is_item_edited(): # <<<<<<<<<<<<<< * """Did the last item modify its underlying value this frame? or was pressed? * This is generally the same as the "bool" return value of many widgets. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_edited", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10283 * return cimgui.IsItemEdited() * * def is_item_activated(): # <<<<<<<<<<<<<< * """Was the last item just made active (item was previously inactive)? * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_359is_item_activated(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_358is_item_activated[] = "is_item_activated()\nWas the last item just made active (item was previously inactive)?\n\n Returns:\n bool: True if item was just made active\n\n .. wraps::\n bool IsItemActivated()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_359is_item_activated = {"is_item_activated", (PyCFunction)__pyx_pw_5imgui_4core_359is_item_activated, METH_NOARGS, __pyx_doc_5imgui_4core_358is_item_activated}; static PyObject *__pyx_pw_5imgui_4core_359is_item_activated(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_activated (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_358is_item_activated(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_358is_item_activated(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_activated", 0); /* "imgui/core.pyx":10292 * bool IsItemActivated() * """ * return cimgui.IsItemActivated() # <<<<<<<<<<<<<< * * def is_item_deactivated(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemActivated(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10292, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10283 * return cimgui.IsItemEdited() * * def is_item_activated(): # <<<<<<<<<<<<<< * """Was the last item just made active (item was previously inactive)? * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_activated", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10294 * return cimgui.IsItemActivated() * * def is_item_deactivated(): # <<<<<<<<<<<<<< * """Was the last item just made inactive (item was previously active)? * Useful for Undo/Redo patterns with widgets that requires continuous editing. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_361is_item_deactivated(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_360is_item_deactivated[] = "is_item_deactivated()\nWas the last item just made inactive (item was previously active)?\n Useful for Undo/Redo patterns with widgets that requires continuous editing.\n\n Results:\n bool: True if item just made inactive\n\n .. wraps:\n bool IsItemDeactivated()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_361is_item_deactivated = {"is_item_deactivated", (PyCFunction)__pyx_pw_5imgui_4core_361is_item_deactivated, METH_NOARGS, __pyx_doc_5imgui_4core_360is_item_deactivated}; static PyObject *__pyx_pw_5imgui_4core_361is_item_deactivated(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_deactivated (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_360is_item_deactivated(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_360is_item_deactivated(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_deactivated", 0); /* "imgui/core.pyx":10304 * bool IsItemDeactivated() * """ * return cimgui.IsItemDeactivated() # <<<<<<<<<<<<<< * * def is_item_deactivated_after_edit(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemDeactivated(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10304, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10294 * return cimgui.IsItemActivated() * * def is_item_deactivated(): # <<<<<<<<<<<<<< * """Was the last item just made inactive (item was previously active)? * Useful for Undo/Redo patterns with widgets that requires continuous editing. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_deactivated", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10306 * return cimgui.IsItemDeactivated() * * def is_item_deactivated_after_edit(): # <<<<<<<<<<<<<< * """Was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). * Useful for Undo/Redo patterns with widgets that requires continuous editing. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_363is_item_deactivated_after_edit(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_362is_item_deactivated_after_edit[] = "is_item_deactivated_after_edit()\nWas the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved).\n Useful for Undo/Redo patterns with widgets that requires continuous editing.\n Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item).\n\n Results:\n bool: True if item just made inactive after an edition\n\n .. wraps::\n bool IsItemDeactivatedAfterEdit()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_363is_item_deactivated_after_edit = {"is_item_deactivated_after_edit", (PyCFunction)__pyx_pw_5imgui_4core_363is_item_deactivated_after_edit, METH_NOARGS, __pyx_doc_5imgui_4core_362is_item_deactivated_after_edit}; static PyObject *__pyx_pw_5imgui_4core_363is_item_deactivated_after_edit(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_deactivated_after_edit (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_362is_item_deactivated_after_edit(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_362is_item_deactivated_after_edit(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_deactivated_after_edit", 0); /* "imgui/core.pyx":10317 * bool IsItemDeactivatedAfterEdit() * """ * return cimgui.IsItemDeactivatedAfterEdit() # <<<<<<<<<<<<<< * * def is_item_toggled_open(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemDeactivatedAfterEdit(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10317, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10306 * return cimgui.IsItemDeactivated() * * def is_item_deactivated_after_edit(): # <<<<<<<<<<<<<< * """Was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). * Useful for Undo/Redo patterns with widgets that requires continuous editing. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_deactivated_after_edit", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10319 * return cimgui.IsItemDeactivatedAfterEdit() * * def is_item_toggled_open(): # <<<<<<<<<<<<<< * """Was the last item open state toggled? set by TreeNode(). * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_365is_item_toggled_open(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_364is_item_toggled_open[] = "is_item_toggled_open()\nWas the last item open state toggled? set by TreeNode().\n\n .. wraps::\n bool IsItemToggledOpen()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_365is_item_toggled_open = {"is_item_toggled_open", (PyCFunction)__pyx_pw_5imgui_4core_365is_item_toggled_open, METH_NOARGS, __pyx_doc_5imgui_4core_364is_item_toggled_open}; static PyObject *__pyx_pw_5imgui_4core_365is_item_toggled_open(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_item_toggled_open (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_364is_item_toggled_open(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_364is_item_toggled_open(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_item_toggled_open", 0); /* "imgui/core.pyx":10325 * bool IsItemToggledOpen() * """ * return cimgui.IsItemToggledOpen() # <<<<<<<<<<<<<< * * def is_any_item_hovered(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsItemToggledOpen(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10325, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10319 * return cimgui.IsItemDeactivatedAfterEdit() * * def is_item_toggled_open(): # <<<<<<<<<<<<<< * """Was the last item open state toggled? set by TreeNode(). * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_item_toggled_open", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10327 * return cimgui.IsItemToggledOpen() * * def is_any_item_hovered(): # <<<<<<<<<<<<<< * """Was any of the items hovered. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_367is_any_item_hovered(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_366is_any_item_hovered[] = "is_any_item_hovered()\nWas any of the items hovered.\n\n Returns:\n bool: True if any item is hovered, otherwise False.\n\n .. wraps::\n bool IsAnyItemHovered()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_367is_any_item_hovered = {"is_any_item_hovered", (PyCFunction)__pyx_pw_5imgui_4core_367is_any_item_hovered, METH_NOARGS, __pyx_doc_5imgui_4core_366is_any_item_hovered}; static PyObject *__pyx_pw_5imgui_4core_367is_any_item_hovered(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_any_item_hovered (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_366is_any_item_hovered(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_366is_any_item_hovered(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_any_item_hovered", 0); /* "imgui/core.pyx":10336 * bool IsAnyItemHovered() * """ * return cimgui.IsAnyItemHovered() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsAnyItemHovered(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10336, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10327 * return cimgui.IsItemToggledOpen() * * def is_any_item_hovered(): # <<<<<<<<<<<<<< * """Was any of the items hovered. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_any_item_hovered", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10339 * * * def is_any_item_active(): # <<<<<<<<<<<<<< * """Was any of the items active. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_369is_any_item_active(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_368is_any_item_active[] = "is_any_item_active()\nWas any of the items active.\n\n Returns:\n bool: True if any item is active, otherwise False.\n\n .. wraps::\n bool IsAnyItemActive()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_369is_any_item_active = {"is_any_item_active", (PyCFunction)__pyx_pw_5imgui_4core_369is_any_item_active, METH_NOARGS, __pyx_doc_5imgui_4core_368is_any_item_active}; static PyObject *__pyx_pw_5imgui_4core_369is_any_item_active(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_any_item_active (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_368is_any_item_active(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_368is_any_item_active(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_any_item_active", 0); /* "imgui/core.pyx":10348 * bool IsAnyItemActive() * """ * return cimgui.IsAnyItemActive() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsAnyItemActive(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10348, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10339 * * * def is_any_item_active(): # <<<<<<<<<<<<<< * """Was any of the items active. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_any_item_active", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10351 * * * def is_any_item_focused(): # <<<<<<<<<<<<<< * """Is any of the items focused. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_371is_any_item_focused(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_370is_any_item_focused[] = "is_any_item_focused()\nIs any of the items focused.\n\n Returns:\n bool: True if any item is focused, otherwise False.\n\n .. wraps::\n bool IsAnyItemFocused()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_371is_any_item_focused = {"is_any_item_focused", (PyCFunction)__pyx_pw_5imgui_4core_371is_any_item_focused, METH_NOARGS, __pyx_doc_5imgui_4core_370is_any_item_focused}; static PyObject *__pyx_pw_5imgui_4core_371is_any_item_focused(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_any_item_focused (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_370is_any_item_focused(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_370is_any_item_focused(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_any_item_focused", 0); /* "imgui/core.pyx":10360 * bool IsAnyItemFocused() * """ * return cimgui.IsAnyItemFocused() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsAnyItemFocused(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10360, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10351 * * * def is_any_item_focused(): # <<<<<<<<<<<<<< * """Is any of the items focused. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_any_item_focused", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10363 * * * def get_item_rect_min(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_373get_item_rect_min(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_372get_item_rect_min[] = "get_item_rect_min()\nGet bounding rect of the last item in screen space.\n\n Returns:\n Vec2: item minimum boundaries two-tuple ``(width, height)``\n\n .. wraps::\n ImVec2 GetItemRectMin()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_373get_item_rect_min = {"get_item_rect_min", (PyCFunction)__pyx_pw_5imgui_4core_373get_item_rect_min, METH_NOARGS, __pyx_doc_5imgui_4core_372get_item_rect_min}; static PyObject *__pyx_pw_5imgui_4core_373get_item_rect_min(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_item_rect_min (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_372get_item_rect_min(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_372get_item_rect_min(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_item_rect_min", 0); /* "imgui/core.pyx":10372 * ImVec2 GetItemRectMin() * """ * return _cast_ImVec2_tuple(cimgui.GetItemRectMin()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetItemRectMin(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10372, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10363 * * * def get_item_rect_min(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_item_rect_min", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10375 * * * def get_item_rect_max(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_375get_item_rect_max(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_374get_item_rect_max[] = "get_item_rect_max()\nGet bounding rect of the last item in screen space.\n\n Returns:\n Vec2: item maximum boundaries two-tuple ``(width, height)``\n\n .. wraps::\n ImVec2 GetItemRectMax()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_375get_item_rect_max = {"get_item_rect_max", (PyCFunction)__pyx_pw_5imgui_4core_375get_item_rect_max, METH_NOARGS, __pyx_doc_5imgui_4core_374get_item_rect_max}; static PyObject *__pyx_pw_5imgui_4core_375get_item_rect_max(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_item_rect_max (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_374get_item_rect_max(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_374get_item_rect_max(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_item_rect_max", 0); /* "imgui/core.pyx":10384 * ImVec2 GetItemRectMax() * """ * return _cast_ImVec2_tuple(cimgui.GetItemRectMax()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetItemRectMax(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10384, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10375 * * * def get_item_rect_max(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_item_rect_max", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10387 * * * def get_item_rect_size(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_377get_item_rect_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_376get_item_rect_size[] = "get_item_rect_size()\nGet bounding rect of the last item in screen space.\n\n Returns:\n Vec2: item boundaries two-tuple ``(width, height)``\n\n .. wraps::\n ImVec2 GetItemRectSize()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_377get_item_rect_size = {"get_item_rect_size", (PyCFunction)__pyx_pw_5imgui_4core_377get_item_rect_size, METH_NOARGS, __pyx_doc_5imgui_4core_376get_item_rect_size}; static PyObject *__pyx_pw_5imgui_4core_377get_item_rect_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_item_rect_size (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_376get_item_rect_size(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_376get_item_rect_size(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_item_rect_size", 0); /* "imgui/core.pyx":10396 * ImVec2 GetItemRectSize() * """ * return _cast_ImVec2_tuple(cimgui.GetItemRectSize()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetItemRectSize(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10396, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10387 * * * def get_item_rect_size(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_item_rect_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10399 * * * def set_item_allow_overlap(): # <<<<<<<<<<<<<< * """Allow last item to be overlapped by a subsequent item. * Sometimes useful with invisible buttons, selectables, etc. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_379set_item_allow_overlap(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_378set_item_allow_overlap[] = "set_item_allow_overlap()\nAllow last item to be overlapped by a subsequent item.\n Sometimes useful with invisible buttons, selectables, etc.\n to catch unused area.\n\n .. wraps::\n void SetItemAllowOverlap()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_379set_item_allow_overlap = {"set_item_allow_overlap", (PyCFunction)__pyx_pw_5imgui_4core_379set_item_allow_overlap, METH_NOARGS, __pyx_doc_5imgui_4core_378set_item_allow_overlap}; static PyObject *__pyx_pw_5imgui_4core_379set_item_allow_overlap(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_item_allow_overlap (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_378set_item_allow_overlap(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_378set_item_allow_overlap(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_item_allow_overlap", 0); /* "imgui/core.pyx":10407 * void SetItemAllowOverlap() * """ * cimgui.SetItemAllowOverlap() # <<<<<<<<<<<<<< * * def get_main_viewport(): */ try { ImGui::SetItemAllowOverlap(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10407, __pyx_L1_error) } /* "imgui/core.pyx":10399 * * * def set_item_allow_overlap(): # <<<<<<<<<<<<<< * """Allow last item to be overlapped by a subsequent item. * Sometimes useful with invisible buttons, selectables, etc. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_item_allow_overlap", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10409 * cimgui.SetItemAllowOverlap() * * def get_main_viewport(): # <<<<<<<<<<<<<< * """Currently represents the Platform Window created by the application which is hosting * our Dear ImGui windows. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_381get_main_viewport(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_380get_main_viewport[] = "get_main_viewport()\nCurrently represents the Platform Window created by the application which is hosting\n our Dear ImGui windows.\n\n In the future we will extend this concept further to also represent Platform Monitor\n and support a \"no main platform window\" operation mode.\n\n Returns:\n _ImGuiViewport: Viewport\n\n .. wraps::\n ImGuiViewport* GetMainViewport()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_381get_main_viewport = {"get_main_viewport", (PyCFunction)__pyx_pw_5imgui_4core_381get_main_viewport, METH_NOARGS, __pyx_doc_5imgui_4core_380get_main_viewport}; static PyObject *__pyx_pw_5imgui_4core_381get_main_viewport(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_main_viewport (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_380get_main_viewport(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_380get_main_viewport(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImGuiViewport *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_main_viewport", 0); /* "imgui/core.pyx":10422 * ImGuiViewport* GetMainViewport() * """ * return _ImGuiViewport.from_ptr(cimgui.GetMainViewport()) # <<<<<<<<<<<<<< * * def is_window_hovered( */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetMainViewport(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10422, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_14_ImGuiViewport_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10409 * cimgui.SetItemAllowOverlap() * * def get_main_viewport(): # <<<<<<<<<<<<<< * """Currently represents the Platform Window created by the application which is hosting * our Dear ImGui windows. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_main_viewport", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10424 * return _ImGuiViewport.from_ptr(cimgui.GetMainViewport()) * * def is_window_hovered( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_383is_window_hovered(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_382is_window_hovered[] = "is_window_hovered(ImGuiHoveredFlags flags=0)\nIs current window hovered and hoverable (not blocked by a popup).\n Differentiate child windows from each others.\n\n Returns:\n bool: True if current window is hovered, otherwise False.\n\n .. wraps::\n bool IsWindowHovered(ImGuiFocusedFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_383is_window_hovered = {"is_window_hovered", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_383is_window_hovered, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_382is_window_hovered}; static PyObject *__pyx_pw_5imgui_4core_383is_window_hovered(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiHoveredFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_window_hovered (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_window_hovered") < 0)) __PYX_ERR(0, 10424, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiHoveredFlags(values[0]); if (unlikely((__pyx_v_flags == ((ImGuiHoveredFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10425, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiHoveredFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_window_hovered", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10424, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_window_hovered", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_382is_window_hovered(__pyx_self, __pyx_v_flags); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_382is_window_hovered(CYTHON_UNUSED PyObject *__pyx_self, ImGuiHoveredFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_window_hovered", 0); /* "imgui/core.pyx":10436 * bool IsWindowHovered(ImGuiFocusedFlags flags = 0) * """ * return cimgui.IsWindowHovered(flags) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsWindowHovered(__pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10436, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10424 * return _ImGuiViewport.from_ptr(cimgui.GetMainViewport()) * * def is_window_hovered( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_window_hovered", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10439 * * * def is_window_focused( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_385is_window_focused(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_384is_window_focused[] = "is_window_focused(ImGuiHoveredFlags flags=0)\nIs current window focused.\n\n Returns:\n bool: True if current window is on focus, otherwise False.\n\n .. wraps::\n bool IsWindowFocused(ImGuiFocusedFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_385is_window_focused = {"is_window_focused", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_385is_window_focused, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_384is_window_focused}; static PyObject *__pyx_pw_5imgui_4core_385is_window_focused(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiHoveredFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_window_focused (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_window_focused") < 0)) __PYX_ERR(0, 10439, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiHoveredFlags(values[0]); if (unlikely((__pyx_v_flags == ((ImGuiHoveredFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10440, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiHoveredFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_window_focused", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10439, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_window_focused", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_384is_window_focused(__pyx_self, __pyx_v_flags); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_384is_window_focused(CYTHON_UNUSED PyObject *__pyx_self, ImGuiHoveredFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_window_focused", 0); /* "imgui/core.pyx":10450 * bool IsWindowFocused(ImGuiFocusedFlags flags = 0) * """ * return cimgui.IsWindowFocused(flags) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsWindowFocused(__pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10450, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10439 * * * def is_window_focused( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_window_focused", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10453 * * * def is_rect_visible(float size_width, float size_height): # <<<<<<<<<<<<<< * """Test if a rectangle of the given size, starting from the cursor * position is visible (not clipped). */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_387is_rect_visible(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_386is_rect_visible[] = "is_rect_visible(float size_width, float size_height)\nTest if a rectangle of the given size, starting from the cursor\n position is visible (not clipped).\n\n Args:\n size_width (float): width of the rect\n size_height (float): height of the rect\n\n Returns:\n bool: True if rect is visible, otherwise False.\n\n .. wraps::\n bool IsRectVisible(const ImVec2& size)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_387is_rect_visible = {"is_rect_visible", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_387is_rect_visible, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_386is_rect_visible}; static PyObject *__pyx_pw_5imgui_4core_387is_rect_visible(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_size_width; float __pyx_v_size_height; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_rect_visible (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size_width,&__pyx_n_s_size_height,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size_width)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("is_rect_visible", 1, 2, 2, 1); __PYX_ERR(0, 10453, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_rect_visible") < 0)) __PYX_ERR(0, 10453, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_size_width = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_size_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10453, __pyx_L3_error) __pyx_v_size_height = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_size_height == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10453, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_rect_visible", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10453, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_rect_visible", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_386is_rect_visible(__pyx_self, __pyx_v_size_width, __pyx_v_size_height); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_386is_rect_visible(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_size_width, float __pyx_v_size_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; bool __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_rect_visible", 0); /* "imgui/core.pyx":10467 * bool IsRectVisible(const ImVec2& size) * """ * return cimgui.IsRectVisible(_cast_args_ImVec2(size_width, size_height)) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_size_width, __pyx_v_size_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10467, __pyx_L1_error) try { __pyx_t_2 = ImGui::IsRectVisible(__pyx_t_1); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10467, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":10453 * * * def is_rect_visible(float size_width, float size_height): # <<<<<<<<<<<<<< * """Test if a rectangle of the given size, starting from the cursor * position is visible (not clipped). */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.is_rect_visible", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10470 * * * def get_style_color_name(int index): # <<<<<<<<<<<<<< * """Get the style color name for a given ImGuiCol index. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_389get_style_color_name(PyObject *__pyx_self, PyObject *__pyx_arg_index); /*proto*/ static char __pyx_doc_5imgui_4core_388get_style_color_name[] = "get_style_color_name(int index)\nGet the style color name for a given ImGuiCol index.\n\n .. wraps::\n const char* GetStyleColorName(ImGuiCol idx)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_389get_style_color_name = {"get_style_color_name", (PyCFunction)__pyx_pw_5imgui_4core_389get_style_color_name, METH_O, __pyx_doc_5imgui_4core_388get_style_color_name}; static PyObject *__pyx_pw_5imgui_4core_389get_style_color_name(PyObject *__pyx_self, PyObject *__pyx_arg_index) { int __pyx_v_index; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_style_color_name (wrapper)", 0); assert(__pyx_arg_index); { __pyx_v_index = __Pyx_PyInt_As_int(__pyx_arg_index); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10470, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_style_color_name", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_388get_style_color_name(__pyx_self, ((int)__pyx_v_index)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_388get_style_color_name(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_index) { char const *__pyx_v_c_string; CYTHON_UNUSED PyObject *__pyx_v_py_string = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_style_color_name", 0); /* "imgui/core.pyx":10476 * const char* GetStyleColorName(ImGuiCol idx) * """ * cdef const char* c_string = cimgui.GetStyleColorName(index) # <<<<<<<<<<<<<< * cdef bytes py_string = c_string * return c_string.decode("utf-8") */ try { __pyx_t_1 = ImGui::GetStyleColorName(__pyx_v_index); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10476, __pyx_L1_error) } __pyx_v_c_string = __pyx_t_1; /* "imgui/core.pyx":10477 * """ * cdef const char* c_string = cimgui.GetStyleColorName(index) * cdef bytes py_string = c_string # <<<<<<<<<<<<<< * return c_string.decode("utf-8") * */ __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_c_string); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_py_string = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":10478 * cdef const char* c_string = cimgui.GetStyleColorName(index) * cdef bytes py_string = c_string * return c_string.decode("utf-8") # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_decode_c_string(__pyx_v_c_string, 0, strlen(__pyx_v_c_string), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10470 * * * def get_style_color_name(int index): # <<<<<<<<<<<<<< * """Get the style color name for a given ImGuiCol index. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_style_color_name", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_py_string); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10481 * * * def get_time(): # <<<<<<<<<<<<<< * """Seconds since program start. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_391get_time(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_390get_time[] = "get_time()\nSeconds since program start.\n\n Returns:\n float: the time (seconds since program start)\n\n .. wraps::\n float GetTime()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_391get_time = {"get_time", (PyCFunction)__pyx_pw_5imgui_4core_391get_time, METH_NOARGS, __pyx_doc_5imgui_4core_390get_time}; static PyObject *__pyx_pw_5imgui_4core_391get_time(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_time (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_390get_time(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_390get_time(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations double __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_time", 0); /* "imgui/core.pyx":10490 * float GetTime() * """ * return cimgui.GetTime() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetTime(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10490, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10481 * * * def get_time(): # <<<<<<<<<<<<<< * """Seconds since program start. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_time", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10493 * * * def get_background_draw_list(): # <<<<<<<<<<<<<< * """This draw list will be the first rendering one. * Useful to quickly draw shapes/text behind dear imgui contents. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_393get_background_draw_list(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_392get_background_draw_list[] = "get_background_draw_list()\nThis draw list will be the first rendering one.\n Useful to quickly draw shapes/text behind dear imgui contents.\n\n Returns:\n DrawList*\n\n .. wraps::\n ImDrawList* GetBackgroundDrawList()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_393get_background_draw_list = {"get_background_draw_list", (PyCFunction)__pyx_pw_5imgui_4core_393get_background_draw_list, METH_NOARGS, __pyx_doc_5imgui_4core_392get_background_draw_list}; static PyObject *__pyx_pw_5imgui_4core_393get_background_draw_list(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_background_draw_list (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_392get_background_draw_list(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_392get_background_draw_list(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImDrawList *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_background_draw_list", 0); /* "imgui/core.pyx":10503 * ImDrawList* GetBackgroundDrawList() * """ * return _DrawList.from_ptr(cimgui.GetBackgroundDrawList()) # <<<<<<<<<<<<<< * * def get_foreground_draw_list(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetBackgroundDrawList(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10503, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_9_DrawList_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10493 * * * def get_background_draw_list(): # <<<<<<<<<<<<<< * """This draw list will be the first rendering one. * Useful to quickly draw shapes/text behind dear imgui contents. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_background_draw_list", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10505 * return _DrawList.from_ptr(cimgui.GetBackgroundDrawList()) * * def get_foreground_draw_list(): # <<<<<<<<<<<<<< * """This draw list will be the last rendered one. * Useful to quickly draw shapes/text over dear imgui contents. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_395get_foreground_draw_list(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_394get_foreground_draw_list[] = "get_foreground_draw_list()\nThis draw list will be the last rendered one.\n Useful to quickly draw shapes/text over dear imgui contents.\n\n Returns:\n DrawList*\n\n .. wraps::\n ImDrawList* GetForegroundDrawList()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_395get_foreground_draw_list = {"get_foreground_draw_list", (PyCFunction)__pyx_pw_5imgui_4core_395get_foreground_draw_list, METH_NOARGS, __pyx_doc_5imgui_4core_394get_foreground_draw_list}; static PyObject *__pyx_pw_5imgui_4core_395get_foreground_draw_list(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_foreground_draw_list (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_394get_foreground_draw_list(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_394get_foreground_draw_list(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImDrawList *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_foreground_draw_list", 0); /* "imgui/core.pyx":10515 * ImDrawList* GetForegroundDrawList() * """ * return _DrawList.from_ptr(cimgui.GetForegroundDrawList()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetForegroundDrawList(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10515, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core_9_DrawList_from_ptr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10505 * return _DrawList.from_ptr(cimgui.GetBackgroundDrawList()) * * def get_foreground_draw_list(): # <<<<<<<<<<<<<< * """This draw list will be the last rendered one. * Useful to quickly draw shapes/text over dear imgui contents. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_foreground_draw_list", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10518 * * * def get_key_index(int key): # <<<<<<<<<<<<<< * """Map ImGuiKey_* values into user's key index. == io.KeyMap[key] * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_397get_key_index(PyObject *__pyx_self, PyObject *__pyx_arg_key); /*proto*/ static char __pyx_doc_5imgui_4core_396get_key_index[] = "get_key_index(int key)\nMap ImGuiKey_* values into user's key index. == io.KeyMap[key]\n\n Returns:\n int: io.KeyMap[key]\n\n .. wraps::\n int GetKeyIndex(ImGuiKey imgui_key)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_397get_key_index = {"get_key_index", (PyCFunction)__pyx_pw_5imgui_4core_397get_key_index, METH_O, __pyx_doc_5imgui_4core_396get_key_index}; static PyObject *__pyx_pw_5imgui_4core_397get_key_index(PyObject *__pyx_self, PyObject *__pyx_arg_key) { int __pyx_v_key; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_key_index (wrapper)", 0); assert(__pyx_arg_key); { __pyx_v_key = __Pyx_PyInt_As_int(__pyx_arg_key); if (unlikely((__pyx_v_key == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10518, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_key_index", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_396get_key_index(__pyx_self, ((int)__pyx_v_key)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_396get_key_index(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_key) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_key_index", 0); /* "imgui/core.pyx":10527 * int GetKeyIndex(ImGuiKey imgui_key) * """ * return cimgui.GetKeyIndex(key) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetKeyIndex(__pyx_v_key); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10527, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10518 * * * def get_key_index(int key): # <<<<<<<<<<<<<< * """Map ImGuiKey_* values into user's key index. == io.KeyMap[key] * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_key_index", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10530 * * * def is_key_pressed(int key_index, bool repeat = False): # <<<<<<<<<<<<<< * """Was key pressed (went from !Down to Down). * If repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_399is_key_pressed(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_398is_key_pressed[] = "is_key_pressed(int key_index, bool repeat=False)\nWas key pressed (went from !Down to Down).\n If repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate\n\n Returns:\n bool: True if specified key was pressed this frame\n\n .. wraps::\n bool IsKeyPressed(int user_key_index)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_399is_key_pressed = {"is_key_pressed", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_399is_key_pressed, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_398is_key_pressed}; static PyObject *__pyx_pw_5imgui_4core_399is_key_pressed(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_key_index; bool __pyx_v_repeat; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_key_pressed (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key_index,&__pyx_n_s_repeat,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key_index)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_repeat); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_key_pressed") < 0)) __PYX_ERR(0, 10530, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_key_index = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_key_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10530, __pyx_L3_error) if (values[1]) { __pyx_v_repeat = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_repeat == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10530, __pyx_L3_error) } else { __pyx_v_repeat = ((bool)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_key_pressed", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10530, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_key_pressed", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_398is_key_pressed(__pyx_self, __pyx_v_key_index, __pyx_v_repeat); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_398is_key_pressed(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_key_index, bool __pyx_v_repeat) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_key_pressed", 0); /* "imgui/core.pyx":10540 * bool IsKeyPressed(int user_key_index) * """ * return cimgui.IsKeyPressed(key_index, repeat) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsKeyPressed(__pyx_v_key_index, __pyx_v_repeat); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10540, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10530 * * * def is_key_pressed(int key_index, bool repeat = False): # <<<<<<<<<<<<<< * """Was key pressed (went from !Down to Down). * If repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_key_pressed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10543 * * * def is_key_down(int key_index): # <<<<<<<<<<<<<< * """Returns if key is being held -- io.KeysDown[user_key_index]. * Note that imgui doesn't know the semantic of each entry of */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_401is_key_down(PyObject *__pyx_self, PyObject *__pyx_arg_key_index); /*proto*/ static char __pyx_doc_5imgui_4core_400is_key_down[] = "is_key_down(int key_index)\nReturns if key is being held -- io.KeysDown[user_key_index].\n Note that imgui doesn't know the semantic of each entry of\n io.KeysDown[]. Use your own indices/enums according to how\n your backend/engine stored them into io.KeysDown[]!\n\n Returns:\n bool: True if specified key is being held.\n\n .. wraps::\n bool IsKeyDown(int user_key_index)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_401is_key_down = {"is_key_down", (PyCFunction)__pyx_pw_5imgui_4core_401is_key_down, METH_O, __pyx_doc_5imgui_4core_400is_key_down}; static PyObject *__pyx_pw_5imgui_4core_401is_key_down(PyObject *__pyx_self, PyObject *__pyx_arg_key_index) { int __pyx_v_key_index; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_key_down (wrapper)", 0); assert(__pyx_arg_key_index); { __pyx_v_key_index = __Pyx_PyInt_As_int(__pyx_arg_key_index); if (unlikely((__pyx_v_key_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10543, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_key_down", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_400is_key_down(__pyx_self, ((int)__pyx_v_key_index)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_400is_key_down(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_key_index) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_key_down", 0); /* "imgui/core.pyx":10555 * bool IsKeyDown(int user_key_index) * """ * return cimgui.IsKeyDown(key_index) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsKeyDown(__pyx_v_key_index); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10555, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10543 * * * def is_key_down(int key_index): # <<<<<<<<<<<<<< * """Returns if key is being held -- io.KeysDown[user_key_index]. * Note that imgui doesn't know the semantic of each entry of */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_key_down", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10558 * * * def is_mouse_hovering_rect( # <<<<<<<<<<<<<< * float r_min_x, float r_min_y, * float r_max_x, float r_max_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_403is_mouse_hovering_rect(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_402is_mouse_hovering_rect[] = "is_mouse_hovering_rect(float r_min_x, float r_min_y, float r_max_x, float r_max_y, bool clip=True)\nTest if mouse is hovering rectangle with given coordinates.\n\n Args:\n r_min_x, r_min_y (float): x,y coordinate of the upper-left corner\n r_max_x, r_max_y (float): x,y coordinate of the lower-right corner\n\n Returns:\n bool: True if mouse is hovering the rectangle.\n\n .. wraps::\n bool IsMouseHoveringRect(\n const ImVec2& r_min,\n const ImVec2& r_max,\n bool clip = true\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_403is_mouse_hovering_rect = {"is_mouse_hovering_rect", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_403is_mouse_hovering_rect, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_402is_mouse_hovering_rect}; static PyObject *__pyx_pw_5imgui_4core_403is_mouse_hovering_rect(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_r_min_x; float __pyx_v_r_min_y; float __pyx_v_r_max_x; float __pyx_v_r_max_y; bool __pyx_v_clip; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_mouse_hovering_rect (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_r_min_x,&__pyx_n_s_r_min_y,&__pyx_n_s_r_max_x,&__pyx_n_s_r_max_y,&__pyx_n_s_clip,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_min_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_min_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("is_mouse_hovering_rect", 0, 4, 5, 1); __PYX_ERR(0, 10558, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_max_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("is_mouse_hovering_rect", 0, 4, 5, 2); __PYX_ERR(0, 10558, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_max_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("is_mouse_hovering_rect", 0, 4, 5, 3); __PYX_ERR(0, 10558, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_mouse_hovering_rect") < 0)) __PYX_ERR(0, 10558, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_r_min_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_r_min_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10559, __pyx_L3_error) __pyx_v_r_min_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_r_min_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10559, __pyx_L3_error) __pyx_v_r_max_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_r_max_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10560, __pyx_L3_error) __pyx_v_r_max_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_r_max_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10560, __pyx_L3_error) if (values[4]) { __pyx_v_clip = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_clip == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10561, __pyx_L3_error) } else { /* "imgui/core.pyx":10561 * float r_min_x, float r_min_y, * float r_max_x, float r_max_y, * bool clip=True # <<<<<<<<<<<<<< * ): * """Test if mouse is hovering rectangle with given coordinates. */ __pyx_v_clip = ((bool)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_mouse_hovering_rect", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10558, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_mouse_hovering_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_402is_mouse_hovering_rect(__pyx_self, __pyx_v_r_min_x, __pyx_v_r_min_y, __pyx_v_r_max_x, __pyx_v_r_max_y, __pyx_v_clip); /* "imgui/core.pyx":10558 * * * def is_mouse_hovering_rect( # <<<<<<<<<<<<<< * float r_min_x, float r_min_y, * float r_max_x, float r_max_y, */ /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_402is_mouse_hovering_rect(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_r_min_x, float __pyx_v_r_min_y, float __pyx_v_r_max_x, float __pyx_v_r_max_y, bool __pyx_v_clip) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; bool __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_mouse_hovering_rect", 0); /* "imgui/core.pyx":10579 * ) * """ * return cimgui.IsMouseHoveringRect( # <<<<<<<<<<<<<< * _cast_args_ImVec2(r_min_x, r_min_y), * _cast_args_ImVec2(r_max_x, r_max_y), */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":10580 * """ * return cimgui.IsMouseHoveringRect( * _cast_args_ImVec2(r_min_x, r_min_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(r_max_x, r_max_y), * clip */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_r_min_x, __pyx_v_r_min_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10580, __pyx_L1_error) /* "imgui/core.pyx":10581 * return cimgui.IsMouseHoveringRect( * _cast_args_ImVec2(r_min_x, r_min_y), * _cast_args_ImVec2(r_max_x, r_max_y), # <<<<<<<<<<<<<< * clip * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_r_max_x, __pyx_v_r_max_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10581, __pyx_L1_error) /* "imgui/core.pyx":10579 * ) * """ * return cimgui.IsMouseHoveringRect( # <<<<<<<<<<<<<< * _cast_args_ImVec2(r_min_x, r_min_y), * _cast_args_ImVec2(r_max_x, r_max_y), */ try { __pyx_t_3 = ImGui::IsMouseHoveringRect(__pyx_t_1, __pyx_t_2, __pyx_v_clip); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10579, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":10558 * * * def is_mouse_hovering_rect( # <<<<<<<<<<<<<< * float r_min_x, float r_min_y, * float r_max_x, float r_max_y, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.is_mouse_hovering_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10586 * * * def is_mouse_double_clicked(int button = 0): # <<<<<<<<<<<<<< * """Return True if mouse was double-clicked. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_405is_mouse_double_clicked(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_404is_mouse_double_clicked[] = "is_mouse_double_clicked(int button=0)\nReturn True if mouse was double-clicked.\n\n **Note:** A double-click returns false in IsMouseClicked().\n\n Args:\n button (int): mouse button index.\n\n Returns:\n bool: if mouse is double clicked.\n\n .. wraps::\n bool IsMouseDoubleClicked(int button);\n "; static PyMethodDef __pyx_mdef_5imgui_4core_405is_mouse_double_clicked = {"is_mouse_double_clicked", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_405is_mouse_double_clicked, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_404is_mouse_double_clicked}; static PyObject *__pyx_pw_5imgui_4core_405is_mouse_double_clicked(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_button; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_mouse_double_clicked (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_button,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_button); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_mouse_double_clicked") < 0)) __PYX_ERR(0, 10586, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_button = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_button == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10586, __pyx_L3_error) } else { __pyx_v_button = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_mouse_double_clicked", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10586, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_mouse_double_clicked", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_404is_mouse_double_clicked(__pyx_self, __pyx_v_button); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_404is_mouse_double_clicked(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_mouse_double_clicked", 0); /* "imgui/core.pyx":10600 * bool IsMouseDoubleClicked(int button); * """ * return cimgui.IsMouseDoubleClicked(button) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsMouseDoubleClicked(__pyx_v_button); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10600, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10586 * * * def is_mouse_double_clicked(int button = 0): # <<<<<<<<<<<<<< * """Return True if mouse was double-clicked. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_mouse_double_clicked", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10603 * * * def is_mouse_clicked(int button = 0, bool repeat = False): # <<<<<<<<<<<<<< * """Returns if the mouse was clicked this frame. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_407is_mouse_clicked(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_406is_mouse_clicked[] = "is_mouse_clicked(int button=0, bool repeat=False)\nReturns if the mouse was clicked this frame.\n\n Args:\n button (int): mouse button index.\n repeat (float):\n\n Returns:\n bool: if the mouse was clicked this frame.\n\n .. wraps::\n bool IsMouseClicked(int button, bool repeat = false)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_407is_mouse_clicked = {"is_mouse_clicked", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_407is_mouse_clicked, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_406is_mouse_clicked}; static PyObject *__pyx_pw_5imgui_4core_407is_mouse_clicked(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_button; bool __pyx_v_repeat; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_mouse_clicked (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_button,&__pyx_n_s_repeat,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_button); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_repeat); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_mouse_clicked") < 0)) __PYX_ERR(0, 10603, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_button = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_button == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10603, __pyx_L3_error) } else { __pyx_v_button = ((int)0); } if (values[1]) { __pyx_v_repeat = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_repeat == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10603, __pyx_L3_error) } else { __pyx_v_repeat = ((bool)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_mouse_clicked", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10603, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_mouse_clicked", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_406is_mouse_clicked(__pyx_self, __pyx_v_button, __pyx_v_repeat); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_406is_mouse_clicked(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button, bool __pyx_v_repeat) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_mouse_clicked", 0); /* "imgui/core.pyx":10616 * bool IsMouseClicked(int button, bool repeat = false) * """ * return cimgui.IsMouseClicked(button, repeat) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsMouseClicked(__pyx_v_button, __pyx_v_repeat); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10616, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10603 * * * def is_mouse_clicked(int button = 0, bool repeat = False): # <<<<<<<<<<<<<< * """Returns if the mouse was clicked this frame. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_mouse_clicked", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10619 * * * def is_mouse_released(int button = 0): # <<<<<<<<<<<<<< * """Returns if the mouse was released this frame. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_409is_mouse_released(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_408is_mouse_released[] = "is_mouse_released(int button=0)\nReturns if the mouse was released this frame.\n\n Args:\n button (int): mouse button index.\n\n Returns:\n bool: if the mouse was released this frame.\n\n .. wraps::\n bool IsMouseReleased(int button)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_409is_mouse_released = {"is_mouse_released", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_409is_mouse_released, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_408is_mouse_released}; static PyObject *__pyx_pw_5imgui_4core_409is_mouse_released(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_button; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_mouse_released (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_button,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_button); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_mouse_released") < 0)) __PYX_ERR(0, 10619, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_button = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_button == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10619, __pyx_L3_error) } else { __pyx_v_button = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_mouse_released", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10619, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_mouse_released", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_408is_mouse_released(__pyx_self, __pyx_v_button); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_408is_mouse_released(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_mouse_released", 0); /* "imgui/core.pyx":10631 * bool IsMouseReleased(int button) * """ * return cimgui.IsMouseReleased(button) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsMouseReleased(__pyx_v_button); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10631, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10619 * * * def is_mouse_released(int button = 0): # <<<<<<<<<<<<<< * """Returns if the mouse was released this frame. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_mouse_released", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10634 * * * def is_mouse_down(int button = 0): # <<<<<<<<<<<<<< * """Returns if the mouse is down. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_411is_mouse_down(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_410is_mouse_down[] = "is_mouse_down(int button=0)\nReturns if the mouse is down.\n\n Args:\n button (int): mouse button index.\n\n Returns:\n bool: if the mouse is down.\n\n .. wraps::\n bool IsMouseDown(int button)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_411is_mouse_down = {"is_mouse_down", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_411is_mouse_down, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_410is_mouse_down}; static PyObject *__pyx_pw_5imgui_4core_411is_mouse_down(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_button; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_mouse_down (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_button,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_button); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_mouse_down") < 0)) __PYX_ERR(0, 10634, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_button = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_button == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10634, __pyx_L3_error) } else { __pyx_v_button = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_mouse_down", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10634, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_mouse_down", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_410is_mouse_down(__pyx_self, __pyx_v_button); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_410is_mouse_down(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_mouse_down", 0); /* "imgui/core.pyx":10646 * bool IsMouseDown(int button) * """ * return cimgui.IsMouseDown(button) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsMouseDown(__pyx_v_button); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10646, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10634 * * * def is_mouse_down(int button = 0): # <<<<<<<<<<<<<< * """Returns if the mouse is down. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_mouse_down", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10649 * * * def is_mouse_dragging(int button, float lock_threshold = -1.0): # <<<<<<<<<<<<<< * """Returns if mouse is dragging. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_413is_mouse_dragging(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_412is_mouse_dragging[] = "is_mouse_dragging(int button, float lock_threshold=-1.0)\nReturns if mouse is dragging.\n\n Args:\n button (int): mouse button index.\n lock_threshold (float): if less than -1.0\n uses io.MouseDraggingThreshold.\n\n Returns:\n bool: if mouse is dragging.\n\n .. wraps::\n bool IsMouseDragging(int button = 0, float lock_threshold = -1.0f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_413is_mouse_dragging = {"is_mouse_dragging", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_413is_mouse_dragging, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_412is_mouse_dragging}; static PyObject *__pyx_pw_5imgui_4core_413is_mouse_dragging(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_button; float __pyx_v_lock_threshold; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_mouse_dragging (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_button,&__pyx_n_s_lock_threshold,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_button)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lock_threshold); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "is_mouse_dragging") < 0)) __PYX_ERR(0, 10649, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_button = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_button == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10649, __pyx_L3_error) if (values[1]) { __pyx_v_lock_threshold = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_lock_threshold == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10649, __pyx_L3_error) } else { __pyx_v_lock_threshold = ((float)-1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("is_mouse_dragging", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10649, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.is_mouse_dragging", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_412is_mouse_dragging(__pyx_self, __pyx_v_button, __pyx_v_lock_threshold); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_412is_mouse_dragging(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button, float __pyx_v_lock_threshold) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_mouse_dragging", 0); /* "imgui/core.pyx":10663 * bool IsMouseDragging(int button = 0, float lock_threshold = -1.0f) * """ * return cimgui.IsMouseDragging(button, lock_threshold) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::IsMouseDragging(__pyx_v_button, __pyx_v_lock_threshold); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10663, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10649 * * * def is_mouse_dragging(int button, float lock_threshold = -1.0): # <<<<<<<<<<<<<< * """Returns if mouse is dragging. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.is_mouse_dragging", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10666 * * * def get_mouse_drag_delta(int button=0, float lock_threshold = -1.0): # <<<<<<<<<<<<<< * """Dragging amount since clicking. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_415get_mouse_drag_delta(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_414get_mouse_drag_delta[] = "get_mouse_drag_delta(int button=0, float lock_threshold=-1.0)\nDragging amount since clicking.\n\n Args:\n button (int): mouse button index.\n lock_threshold (float): if less than -1.0\n uses io.MouseDraggingThreshold.\n\n Returns:\n Vec2: mouse position two-tuple ``(x, y)``\n\n .. wraps::\n ImVec2 GetMouseDragDelta(int button = 0, float lock_threshold = -1.0f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_415get_mouse_drag_delta = {"get_mouse_drag_delta", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_415get_mouse_drag_delta, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_414get_mouse_drag_delta}; static PyObject *__pyx_pw_5imgui_4core_415get_mouse_drag_delta(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_button; float __pyx_v_lock_threshold; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_mouse_drag_delta (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_button,&__pyx_n_s_lock_threshold,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_button); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lock_threshold); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_mouse_drag_delta") < 0)) __PYX_ERR(0, 10666, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_button = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_button == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10666, __pyx_L3_error) } else { __pyx_v_button = ((int)0); } if (values[1]) { __pyx_v_lock_threshold = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_lock_threshold == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10666, __pyx_L3_error) } else { __pyx_v_lock_threshold = ((float)-1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("get_mouse_drag_delta", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10666, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_mouse_drag_delta", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_414get_mouse_drag_delta(__pyx_self, __pyx_v_button, __pyx_v_lock_threshold); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_414get_mouse_drag_delta(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button, float __pyx_v_lock_threshold) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_mouse_drag_delta", 0); /* "imgui/core.pyx":10680 * ImVec2 GetMouseDragDelta(int button = 0, float lock_threshold = -1.0f) * """ * return _cast_ImVec2_tuple( # <<<<<<<<<<<<<< * cimgui.GetMouseDragDelta(button, lock_threshold) * ) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":10681 * """ * return _cast_ImVec2_tuple( * cimgui.GetMouseDragDelta(button, lock_threshold) # <<<<<<<<<<<<<< * ) * */ try { __pyx_t_1 = ImGui::GetMouseDragDelta(__pyx_v_button, __pyx_v_lock_threshold); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10681, __pyx_L1_error) } /* "imgui/core.pyx":10680 * ImVec2 GetMouseDragDelta(int button = 0, float lock_threshold = -1.0f) * """ * return _cast_ImVec2_tuple( # <<<<<<<<<<<<<< * cimgui.GetMouseDragDelta(button, lock_threshold) * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10666 * * * def get_mouse_drag_delta(int button=0, float lock_threshold = -1.0): # <<<<<<<<<<<<<< * """Dragging amount since clicking. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_mouse_drag_delta", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10685 * * * def get_mouse_pos(): # <<<<<<<<<<<<<< * """Current mouse position. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_417get_mouse_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_416get_mouse_pos[] = "get_mouse_pos()\nCurrent mouse position.\n\n Returns:\n Vec2: mouse position two-tuple ``(x, y)``\n\n .. wraps::\n ImVec2 GetMousePos()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_417get_mouse_pos = {"get_mouse_pos", (PyCFunction)__pyx_pw_5imgui_4core_417get_mouse_pos, METH_NOARGS, __pyx_doc_5imgui_4core_416get_mouse_pos}; static PyObject *__pyx_pw_5imgui_4core_417get_mouse_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_mouse_pos (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_416get_mouse_pos(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_416get_mouse_pos(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_mouse_pos", 0); /* "imgui/core.pyx":10694 * ImVec2 GetMousePos() * """ * return _cast_ImVec2_tuple( # <<<<<<<<<<<<<< * cimgui.GetMousePos() * ) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":10695 * """ * return _cast_ImVec2_tuple( * cimgui.GetMousePos() # <<<<<<<<<<<<<< * ) * */ try { __pyx_t_1 = ImGui::GetMousePos(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10695, __pyx_L1_error) } /* "imgui/core.pyx":10694 * ImVec2 GetMousePos() * """ * return _cast_ImVec2_tuple( # <<<<<<<<<<<<<< * cimgui.GetMousePos() * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10685 * * * def get_mouse_pos(): # <<<<<<<<<<<<<< * """Current mouse position. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_mouse_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10701 * * * def reset_mouse_drag_delta(int button = 0): # <<<<<<<<<<<<<< * """Reset the mouse dragging delta. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_419reset_mouse_drag_delta(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_418reset_mouse_drag_delta[] = "reset_mouse_drag_delta(int button=0)\nReset the mouse dragging delta.\n\n Args:\n button (int): mouse button index.\n\n .. wraps::\n void ResetMouseDragDelta(int button = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_419reset_mouse_drag_delta = {"reset_mouse_drag_delta", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_419reset_mouse_drag_delta, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_418reset_mouse_drag_delta}; static PyObject *__pyx_pw_5imgui_4core_419reset_mouse_drag_delta(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_button; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("reset_mouse_drag_delta (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_button,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_button); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "reset_mouse_drag_delta") < 0)) __PYX_ERR(0, 10701, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_button = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_button == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10701, __pyx_L3_error) } else { __pyx_v_button = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("reset_mouse_drag_delta", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10701, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.reset_mouse_drag_delta", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_418reset_mouse_drag_delta(__pyx_self, __pyx_v_button); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_418reset_mouse_drag_delta(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_button) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("reset_mouse_drag_delta", 0); /* "imgui/core.pyx":10710 * void ResetMouseDragDelta(int button = 0) * """ * cimgui.ResetMouseDragDelta(button) # <<<<<<<<<<<<<< * * */ try { ImGui::ResetMouseDragDelta(__pyx_v_button); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10710, __pyx_L1_error) } /* "imgui/core.pyx":10701 * * * def reset_mouse_drag_delta(int button = 0): # <<<<<<<<<<<<<< * """Reset the mouse dragging delta. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.reset_mouse_drag_delta", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10713 * * * def get_mouse_cursor(): # <<<<<<<<<<<<<< * """Return the mouse cursor id. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_421get_mouse_cursor(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_420get_mouse_cursor[] = "get_mouse_cursor()\nReturn the mouse cursor id.\n\n .. wraps::\n ImGuiMouseCursor GetMouseCursor()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_421get_mouse_cursor = {"get_mouse_cursor", (PyCFunction)__pyx_pw_5imgui_4core_421get_mouse_cursor, METH_NOARGS, __pyx_doc_5imgui_4core_420get_mouse_cursor}; static PyObject *__pyx_pw_5imgui_4core_421get_mouse_cursor(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_mouse_cursor (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_420get_mouse_cursor(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_420get_mouse_cursor(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImGuiMouseCursor __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_mouse_cursor", 0); /* "imgui/core.pyx":10719 * ImGuiMouseCursor GetMouseCursor() * """ * return cimgui.GetMouseCursor() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetMouseCursor(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10719, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_ImGuiMouseCursor(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10713 * * * def get_mouse_cursor(): # <<<<<<<<<<<<<< * """Return the mouse cursor id. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_mouse_cursor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10722 * * * def set_mouse_cursor(cimgui.ImGuiMouseCursor mouse_cursor_type): # <<<<<<<<<<<<<< * """Set the mouse cursor id. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_423set_mouse_cursor(PyObject *__pyx_self, PyObject *__pyx_arg_mouse_cursor_type); /*proto*/ static char __pyx_doc_5imgui_4core_422set_mouse_cursor[] = "set_mouse_cursor(ImGuiMouseCursor mouse_cursor_type)\nSet the mouse cursor id.\n\n Args:\n mouse_cursor_type (ImGuiMouseCursor): mouse cursor type.\n\n .. wraps::\n void SetMouseCursor(ImGuiMouseCursor type)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_423set_mouse_cursor = {"set_mouse_cursor", (PyCFunction)__pyx_pw_5imgui_4core_423set_mouse_cursor, METH_O, __pyx_doc_5imgui_4core_422set_mouse_cursor}; static PyObject *__pyx_pw_5imgui_4core_423set_mouse_cursor(PyObject *__pyx_self, PyObject *__pyx_arg_mouse_cursor_type) { ImGuiMouseCursor __pyx_v_mouse_cursor_type; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_mouse_cursor (wrapper)", 0); assert(__pyx_arg_mouse_cursor_type); { __pyx_v_mouse_cursor_type = __Pyx_PyInt_As_ImGuiMouseCursor(__pyx_arg_mouse_cursor_type); if (unlikely((__pyx_v_mouse_cursor_type == ((ImGuiMouseCursor)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10722, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_mouse_cursor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_422set_mouse_cursor(__pyx_self, ((ImGuiMouseCursor)__pyx_v_mouse_cursor_type)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_422set_mouse_cursor(CYTHON_UNUSED PyObject *__pyx_self, ImGuiMouseCursor __pyx_v_mouse_cursor_type) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_mouse_cursor", 0); /* "imgui/core.pyx":10731 * void SetMouseCursor(ImGuiMouseCursor type) * """ * return cimgui.SetMouseCursor(mouse_cursor_type) # <<<<<<<<<<<<<< * * def capture_mouse_from_app(bool want_capture_mouse_value = True): */ __Pyx_XDECREF(__pyx_r); try { ImGui::SetMouseCursor(__pyx_v_mouse_cursor_type); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10731, __pyx_L1_error) } __pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":10722 * * * def set_mouse_cursor(cimgui.ImGuiMouseCursor mouse_cursor_type): # <<<<<<<<<<<<<< * """Set the mouse cursor id. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_mouse_cursor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10733 * return cimgui.SetMouseCursor(mouse_cursor_type) * * def capture_mouse_from_app(bool want_capture_mouse_value = True): # <<<<<<<<<<<<<< * """Attention: misleading name! * Manually override io.WantCaptureMouse flag next frame */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_425capture_mouse_from_app(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_424capture_mouse_from_app[] = "capture_mouse_from_app(bool want_capture_mouse_value=True)\nAttention: misleading name!\n Manually override io.WantCaptureMouse flag next frame\n (said flag is entirely left for your application to handle).\n\n This is equivalent to setting \"io.WantCaptureMouse = want_capture_mouse_value;\"\n after the next NewFrame() call.\n\n .. wraps::\n void CaptureMouseFromApp(bool want_capture_mouse_value = true)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_425capture_mouse_from_app = {"capture_mouse_from_app", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_425capture_mouse_from_app, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_424capture_mouse_from_app}; static PyObject *__pyx_pw_5imgui_4core_425capture_mouse_from_app(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_want_capture_mouse_value; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("capture_mouse_from_app (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_want_capture_mouse_value,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_want_capture_mouse_value); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "capture_mouse_from_app") < 0)) __PYX_ERR(0, 10733, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_want_capture_mouse_value = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_want_capture_mouse_value == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10733, __pyx_L3_error) } else { __pyx_v_want_capture_mouse_value = ((bool)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("capture_mouse_from_app", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10733, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.capture_mouse_from_app", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_424capture_mouse_from_app(__pyx_self, __pyx_v_want_capture_mouse_value); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_424capture_mouse_from_app(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_want_capture_mouse_value) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("capture_mouse_from_app", 0); /* "imgui/core.pyx":10744 * void CaptureMouseFromApp(bool want_capture_mouse_value = true) * """ * cimgui.CaptureMouseFromApp(want_capture_mouse_value) # <<<<<<<<<<<<<< * * def get_clipboard_text(): */ try { ImGui::CaptureMouseFromApp(__pyx_v_want_capture_mouse_value); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10744, __pyx_L1_error) } /* "imgui/core.pyx":10733 * return cimgui.SetMouseCursor(mouse_cursor_type) * * def capture_mouse_from_app(bool want_capture_mouse_value = True): # <<<<<<<<<<<<<< * """Attention: misleading name! * Manually override io.WantCaptureMouse flag next frame */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.capture_mouse_from_app", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10746 * cimgui.CaptureMouseFromApp(want_capture_mouse_value) * * def get_clipboard_text(): # <<<<<<<<<<<<<< * """Also see the ``log_to_clipboard()`` function to capture GUI into clipboard, * or easily output text data to the clipboard. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_427get_clipboard_text(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_426get_clipboard_text[] = "get_clipboard_text()\nAlso see the ``log_to_clipboard()`` function to capture GUI into clipboard,\n or easily output text data to the clipboard.\n\n Returns:\n str: Text content of the clipboard\n\n .. wraps::\n const char* GetClipboardText()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_427get_clipboard_text = {"get_clipboard_text", (PyCFunction)__pyx_pw_5imgui_4core_427get_clipboard_text, METH_NOARGS, __pyx_doc_5imgui_4core_426get_clipboard_text}; static PyObject *__pyx_pw_5imgui_4core_427get_clipboard_text(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_clipboard_text (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_426get_clipboard_text(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_426get_clipboard_text(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_clipboard_text", 0); /* "imgui/core.pyx":10756 * const char* GetClipboardText() * """ * return _from_bytes(cimgui.GetClipboardText()) # <<<<<<<<<<<<<< * * def load_ini_settings_from_disk(str ini_file_name): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetClipboardText(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10756, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":10746 * cimgui.CaptureMouseFromApp(want_capture_mouse_value) * * def get_clipboard_text(): # <<<<<<<<<<<<<< * """Also see the ``log_to_clipboard()`` function to capture GUI into clipboard, * or easily output text data to the clipboard. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.get_clipboard_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10758 * return _from_bytes(cimgui.GetClipboardText()) * * def load_ini_settings_from_disk(str ini_file_name): # <<<<<<<<<<<<<< * """Call after ``create_context()`` and before the first call to ``new_frame()``. * ``new_frame()`` automatically calls ``load_ini_settings_from_disk(io.ini_file_name)``. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_429load_ini_settings_from_disk(PyObject *__pyx_self, PyObject *__pyx_v_ini_file_name); /*proto*/ static char __pyx_doc_5imgui_4core_428load_ini_settings_from_disk[] = "load_ini_settings_from_disk(str ini_file_name)\nCall after ``create_context()`` and before the first call to ``new_frame()``.\n ``new_frame()`` automatically calls ``load_ini_settings_from_disk(io.ini_file_name)``.\n\n Args:\n ini_file_name (str): Filename to load settings from.\n\n .. wraps::\n void LoadIniSettingsFromDisk(const char* ini_filename)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_429load_ini_settings_from_disk = {"load_ini_settings_from_disk", (PyCFunction)__pyx_pw_5imgui_4core_429load_ini_settings_from_disk, METH_O, __pyx_doc_5imgui_4core_428load_ini_settings_from_disk}; static PyObject *__pyx_pw_5imgui_4core_429load_ini_settings_from_disk(PyObject *__pyx_self, PyObject *__pyx_v_ini_file_name) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("load_ini_settings_from_disk (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ini_file_name), (&PyString_Type), 1, "ini_file_name", 1))) __PYX_ERR(0, 10758, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_428load_ini_settings_from_disk(__pyx_self, ((PyObject*)__pyx_v_ini_file_name)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_428load_ini_settings_from_disk(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ini_file_name) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("load_ini_settings_from_disk", 0); /* "imgui/core.pyx":10768 * void LoadIniSettingsFromDisk(const char* ini_filename) * """ * cimgui.LoadIniSettingsFromDisk(_bytes(ini_file_name)) # <<<<<<<<<<<<<< * * def load_ini_settings_from_memory(str ini_data): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_ini_file_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10768, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10768, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 10768, __pyx_L1_error) try { ImGui::LoadIniSettingsFromDisk(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10768, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":10758 * return _from_bytes(cimgui.GetClipboardText()) * * def load_ini_settings_from_disk(str ini_file_name): # <<<<<<<<<<<<<< * """Call after ``create_context()`` and before the first call to ``new_frame()``. * ``new_frame()`` automatically calls ``load_ini_settings_from_disk(io.ini_file_name)``. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.load_ini_settings_from_disk", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10770 * cimgui.LoadIniSettingsFromDisk(_bytes(ini_file_name)) * * def load_ini_settings_from_memory(str ini_data): # <<<<<<<<<<<<<< * """Call after ``create_context()`` and before the first call to ``new_frame()`` * to provide .ini data from your own data source. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_431load_ini_settings_from_memory(PyObject *__pyx_self, PyObject *__pyx_v_ini_data); /*proto*/ static char __pyx_doc_5imgui_4core_430load_ini_settings_from_memory[] = "load_ini_settings_from_memory(str ini_data)\nCall after ``create_context()`` and before the first call to ``new_frame()``\n to provide .ini data from your own data source.\n\n .. wraps::\n void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_431load_ini_settings_from_memory = {"load_ini_settings_from_memory", (PyCFunction)__pyx_pw_5imgui_4core_431load_ini_settings_from_memory, METH_O, __pyx_doc_5imgui_4core_430load_ini_settings_from_memory}; static PyObject *__pyx_pw_5imgui_4core_431load_ini_settings_from_memory(PyObject *__pyx_self, PyObject *__pyx_v_ini_data) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("load_ini_settings_from_memory (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ini_data), (&PyString_Type), 1, "ini_data", 1))) __PYX_ERR(0, 10770, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_430load_ini_settings_from_memory(__pyx_self, ((PyObject*)__pyx_v_ini_data)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_430load_ini_settings_from_memory(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ini_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("load_ini_settings_from_memory", 0); /* "imgui/core.pyx":10778 * """ * #cdef size_t ini_size = len(ini_data) * cimgui.LoadIniSettingsFromMemory(_bytes(ini_data), 0) # <<<<<<<<<<<<<< * * def save_ini_settings_to_disk(str ini_file_name): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_ini_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10778, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 10778, __pyx_L1_error) try { ImGui::LoadIniSettingsFromMemory(__pyx_t_2, 0); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10778, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":10770 * cimgui.LoadIniSettingsFromDisk(_bytes(ini_file_name)) * * def load_ini_settings_from_memory(str ini_data): # <<<<<<<<<<<<<< * """Call after ``create_context()`` and before the first call to ``new_frame()`` * to provide .ini data from your own data source. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.load_ini_settings_from_memory", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10780 * cimgui.LoadIniSettingsFromMemory(_bytes(ini_data), 0) * * def save_ini_settings_to_disk(str ini_file_name): # <<<<<<<<<<<<<< * """This is automatically called (if ``io.ini_file_name`` is not empty) * a few seconds after any modification that should be reflected in the .ini file */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_433save_ini_settings_to_disk(PyObject *__pyx_self, PyObject *__pyx_v_ini_file_name); /*proto*/ static char __pyx_doc_5imgui_4core_432save_ini_settings_to_disk[] = "save_ini_settings_to_disk(str ini_file_name)\nThis is automatically called (if ``io.ini_file_name`` is not empty)\n a few seconds after any modification that should be reflected in the .ini file\n (and also by ``destroy_context``).\n\n Args:\n ini_file_name (str): Filename to save settings to.\n\n .. wraps::\n void SaveIniSettingsToDisk(const char* ini_filename)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_433save_ini_settings_to_disk = {"save_ini_settings_to_disk", (PyCFunction)__pyx_pw_5imgui_4core_433save_ini_settings_to_disk, METH_O, __pyx_doc_5imgui_4core_432save_ini_settings_to_disk}; static PyObject *__pyx_pw_5imgui_4core_433save_ini_settings_to_disk(PyObject *__pyx_self, PyObject *__pyx_v_ini_file_name) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("save_ini_settings_to_disk (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ini_file_name), (&PyString_Type), 1, "ini_file_name", 1))) __PYX_ERR(0, 10780, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_432save_ini_settings_to_disk(__pyx_self, ((PyObject*)__pyx_v_ini_file_name)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_432save_ini_settings_to_disk(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ini_file_name) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("save_ini_settings_to_disk", 0); /* "imgui/core.pyx":10791 * void SaveIniSettingsToDisk(const char* ini_filename) * """ * cimgui.SaveIniSettingsToDisk(_bytes(ini_file_name)) # <<<<<<<<<<<<<< * * def save_ini_settings_to_memory(): */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_ini_file_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10791, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 10791, __pyx_L1_error) try { ImGui::SaveIniSettingsToDisk(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10791, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":10780 * cimgui.LoadIniSettingsFromMemory(_bytes(ini_data), 0) * * def save_ini_settings_to_disk(str ini_file_name): # <<<<<<<<<<<<<< * """This is automatically called (if ``io.ini_file_name`` is not empty) * a few seconds after any modification that should be reflected in the .ini file */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.save_ini_settings_to_disk", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10793 * cimgui.SaveIniSettingsToDisk(_bytes(ini_file_name)) * * def save_ini_settings_to_memory(): # <<<<<<<<<<<<<< * """Return a string with the .ini data which you can save by your own mean. * Call when ``io.want_save_ini_settings`` is set, then save data by your own mean */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_435save_ini_settings_to_memory(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_434save_ini_settings_to_memory[] = "save_ini_settings_to_memory()\nReturn a string with the .ini data which you can save by your own mean.\n Call when ``io.want_save_ini_settings`` is set, then save data by your own mean\n and clear ``io.want_save_ini_settings``.\n\n Returns:\n str: Settings data\n\n .. wraps::\n const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_435save_ini_settings_to_memory = {"save_ini_settings_to_memory", (PyCFunction)__pyx_pw_5imgui_4core_435save_ini_settings_to_memory, METH_NOARGS, __pyx_doc_5imgui_4core_434save_ini_settings_to_memory}; static PyObject *__pyx_pw_5imgui_4core_435save_ini_settings_to_memory(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("save_ini_settings_to_memory (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_434save_ini_settings_to_memory(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_434save_ini_settings_to_memory(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char const *__pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("save_ini_settings_to_memory", 0); /* "imgui/core.pyx":10804 * const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL) * """ * return _from_bytes(cimgui.SaveIniSettingsToMemory(NULL)) # <<<<<<<<<<<<<< * * def set_clipboard_text(str text): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::SaveIniSettingsToMemory(NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10804, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __pyx_f_5imgui_4core__from_bytes(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":10793 * cimgui.SaveIniSettingsToDisk(_bytes(ini_file_name)) * * def save_ini_settings_to_memory(): # <<<<<<<<<<<<<< * """Return a string with the .ini data which you can save by your own mean. * Call when ``io.want_save_ini_settings`` is set, then save data by your own mean */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.save_ini_settings_to_memory", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10806 * return _from_bytes(cimgui.SaveIniSettingsToMemory(NULL)) * * def set_clipboard_text(str text): # <<<<<<<<<<<<<< * """Set the clipboard content * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_437set_clipboard_text(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/ static char __pyx_doc_5imgui_4core_436set_clipboard_text[] = "set_clipboard_text(str text)\nSet the clipboard content\n\n Args:\n text (str): Text to copy in clipboard\n\n .. wraps:\n void SetClipboardText(const char* text)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_437set_clipboard_text = {"set_clipboard_text", (PyCFunction)__pyx_pw_5imgui_4core_437set_clipboard_text, METH_O, __pyx_doc_5imgui_4core_436set_clipboard_text}; static PyObject *__pyx_pw_5imgui_4core_437set_clipboard_text(PyObject *__pyx_self, PyObject *__pyx_v_text) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_clipboard_text (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 10806, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_436set_clipboard_text(__pyx_self, ((PyObject*)__pyx_v_text)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_436set_clipboard_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_clipboard_text", 0); /* "imgui/core.pyx":10815 * void SetClipboardText(const char* text) * """ * cimgui.SetClipboardText(_bytes(text)) # <<<<<<<<<<<<<< * * # REMOVED in 1.82 (from Mars 2021) use 'set_scroll_here_y()' */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10815, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 10815, __pyx_L1_error) try { ImGui::SetClipboardText(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10815, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":10806 * return _from_bytes(cimgui.SaveIniSettingsToMemory(NULL)) * * def set_clipboard_text(str text): # <<<<<<<<<<<<<< * """Set the clipboard content * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_clipboard_text", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10832 * # return cimgui.SetScrollHere(center_y_ratio) * * def set_scroll_here_x(float center_x_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll here X. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_439set_scroll_here_x(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_438set_scroll_here_x[] = "set_scroll_here_x(float center_x_ratio=0.5)\nSet scroll here X.\n\n Adjust scrolling amount to make current cursor position visible.\n center_x_ratio =\n 0.0: left,\n 0.5: center,\n 1.0: right.\n\n When using to make a \"default/current item\" visible, consider using SetItemDefaultFocus() instead.\n\n Args:\n float center_x_ratio = 0.5f\n\n .. wraps::\n void SetScrollHereX(float center_x_ratio = 0.5f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_439set_scroll_here_x = {"set_scroll_here_x", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_439set_scroll_here_x, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_438set_scroll_here_x}; static PyObject *__pyx_pw_5imgui_4core_439set_scroll_here_x(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_center_x_ratio; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_scroll_here_x (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_center_x_ratio,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center_x_ratio); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_scroll_here_x") < 0)) __PYX_ERR(0, 10832, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_center_x_ratio = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_center_x_ratio == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10832, __pyx_L3_error) } else { __pyx_v_center_x_ratio = ((float)0.5); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_scroll_here_x", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10832, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_scroll_here_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_438set_scroll_here_x(__pyx_self, __pyx_v_center_x_ratio); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_438set_scroll_here_x(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_center_x_ratio) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_scroll_here_x", 0); /* "imgui/core.pyx":10849 * void SetScrollHereX(float center_x_ratio = 0.5f) * """ * return cimgui.SetScrollHereX(center_x_ratio) # <<<<<<<<<<<<<< * * def set_scroll_here_y(float center_y_ratio = 0.5): */ __Pyx_XDECREF(__pyx_r); try { ImGui::SetScrollHereX(__pyx_v_center_x_ratio); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10849, __pyx_L1_error) } __pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":10832 * # return cimgui.SetScrollHere(center_y_ratio) * * def set_scroll_here_x(float center_x_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll here X. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_scroll_here_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10851 * return cimgui.SetScrollHereX(center_x_ratio) * * def set_scroll_here_y(float center_y_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll here Y. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_441set_scroll_here_y(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_440set_scroll_here_y[] = "set_scroll_here_y(float center_y_ratio=0.5)\nSet scroll here Y.\n\n Adjust scrolling amount to make current cursor position visible.\n center_y_ratio =\n 0.0: top,\n 0.5: center,\n 1.0: bottom.\n\n When using to make a \"default/current item\" visible, consider using SetItemDefaultFocus() instead.\n\n Args:\n float center_y_ratio = 0.5f\n\n .. wraps::\n void SetScrollHereY(float center_y_ratio = 0.5f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_441set_scroll_here_y = {"set_scroll_here_y", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_441set_scroll_here_y, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_440set_scroll_here_y}; static PyObject *__pyx_pw_5imgui_4core_441set_scroll_here_y(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_center_y_ratio; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_scroll_here_y (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_center_y_ratio,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center_y_ratio); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_scroll_here_y") < 0)) __PYX_ERR(0, 10851, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_center_y_ratio = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_center_y_ratio == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10851, __pyx_L3_error) } else { __pyx_v_center_y_ratio = ((float)0.5); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_scroll_here_y", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10851, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_scroll_here_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_440set_scroll_here_y(__pyx_self, __pyx_v_center_y_ratio); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_440set_scroll_here_y(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_center_y_ratio) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_scroll_here_y", 0); /* "imgui/core.pyx":10868 * void SetScrollHereY(float center_y_ratio = 0.5f) * """ * return cimgui.SetScrollHereY(center_y_ratio) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { ImGui::SetScrollHereY(__pyx_v_center_y_ratio); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10868, __pyx_L1_error) } __pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":10851 * return cimgui.SetScrollHereX(center_x_ratio) * * def set_scroll_here_y(float center_y_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll here Y. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_scroll_here_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10871 * * * def set_scroll_from_pos_x(float local_x, float center_x_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll from position X * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_443set_scroll_from_pos_x(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_442set_scroll_from_pos_x[] = "set_scroll_from_pos_x(float local_x, float center_x_ratio=0.5)\nSet scroll from position X\n\n Adjust scrolling amount to make given position visible.\n Generally GetCursorStartPos() + offset to compute a valid position.\n\n Args:\n float local_x\n float center_x_ratio = 0.5f\n\n .. wraps::\n void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_443set_scroll_from_pos_x = {"set_scroll_from_pos_x", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_443set_scroll_from_pos_x, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_442set_scroll_from_pos_x}; static PyObject *__pyx_pw_5imgui_4core_443set_scroll_from_pos_x(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_local_x; float __pyx_v_center_x_ratio; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_scroll_from_pos_x (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_local_x,&__pyx_n_s_center_x_ratio,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_local_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center_x_ratio); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_scroll_from_pos_x") < 0)) __PYX_ERR(0, 10871, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_local_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_local_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10871, __pyx_L3_error) if (values[1]) { __pyx_v_center_x_ratio = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_center_x_ratio == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10871, __pyx_L3_error) } else { __pyx_v_center_x_ratio = ((float)0.5); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_scroll_from_pos_x", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10871, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_scroll_from_pos_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_442set_scroll_from_pos_x(__pyx_self, __pyx_v_local_x, __pyx_v_center_x_ratio); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_442set_scroll_from_pos_x(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_local_x, float __pyx_v_center_x_ratio) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_scroll_from_pos_x", 0); /* "imgui/core.pyx":10884 * void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f) * """ * return cimgui.SetScrollFromPosX(local_x, center_x_ratio) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { ImGui::SetScrollFromPosX(__pyx_v_local_x, __pyx_v_center_x_ratio); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10884, __pyx_L1_error) } __pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":10871 * * * def set_scroll_from_pos_x(float local_x, float center_x_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll from position X * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_scroll_from_pos_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10887 * * * def set_scroll_from_pos_y(float local_y, float center_y_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll from position Y * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_445set_scroll_from_pos_y(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_444set_scroll_from_pos_y[] = "set_scroll_from_pos_y(float local_y, float center_y_ratio=0.5)\nSet scroll from position Y\n\n Adjust scrolling amount to make given position visible.\n Generally GetCursorStartPos() + offset to compute a valid position.\n\n Args:\n float local_y\n float center_y_ratio = 0.5f\n\n .. wraps::\n void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_445set_scroll_from_pos_y = {"set_scroll_from_pos_y", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_445set_scroll_from_pos_y, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_444set_scroll_from_pos_y}; static PyObject *__pyx_pw_5imgui_4core_445set_scroll_from_pos_y(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_local_y; float __pyx_v_center_y_ratio; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_scroll_from_pos_y (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_local_y,&__pyx_n_s_center_y_ratio,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_local_y)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center_y_ratio); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_scroll_from_pos_y") < 0)) __PYX_ERR(0, 10887, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_local_y = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_local_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10887, __pyx_L3_error) if (values[1]) { __pyx_v_center_y_ratio = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_center_y_ratio == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10887, __pyx_L3_error) } else { __pyx_v_center_y_ratio = ((float)0.5); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_scroll_from_pos_y", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10887, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_scroll_from_pos_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_444set_scroll_from_pos_y(__pyx_self, __pyx_v_local_y, __pyx_v_center_y_ratio); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_444set_scroll_from_pos_y(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_local_y, float __pyx_v_center_y_ratio) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_scroll_from_pos_y", 0); /* "imgui/core.pyx":10900 * void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f) * """ * return cimgui.SetScrollFromPosY(local_y, center_y_ratio) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { ImGui::SetScrollFromPosY(__pyx_v_local_y, __pyx_v_center_y_ratio); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10900, __pyx_L1_error) } __pyx_t_1 = __Pyx_void_to_None(NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":10887 * * * def set_scroll_from_pos_y(float local_y, float center_y_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll from position Y * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_scroll_from_pos_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10903 * * * def push_font(_Font font): # <<<<<<<<<<<<<< * """Push font on a stack. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_447push_font(PyObject *__pyx_self, PyObject *__pyx_v_font); /*proto*/ static char __pyx_doc_5imgui_4core_446push_font[] = "push_font(_Font font)\nPush font on a stack.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 320\n\n io = imgui.get_io()\n\n new_font = io.fonts.add_font_from_file_ttf(\n \"DroidSans.ttf\", 20,\n )\n impl.refresh_font_texture()\n\n # later in frame code\n\n imgui.begin(\"Default Window\")\n\n imgui.text(\"Text displayed using default font\")\n\n imgui.push_font(new_font)\n imgui.text(\"Text displayed using custom font\")\n imgui.pop_font()\n\n imgui.end()\n\n **Note:** Pushed fonts should be poped with :func:`pop_font()` within the\n same frame. In order to avoid manual push/pop functions you can use the\n :func:`font()` context manager.\n\n Args:\n font (_Font): font object retrieved from :any:`add_font_from_file_ttf`.\n\n .. wraps::\n void PushFont(ImFont*)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_447push_font = {"push_font", (PyCFunction)__pyx_pw_5imgui_4core_447push_font, METH_O, __pyx_doc_5imgui_4core_446push_font}; static PyObject *__pyx_pw_5imgui_4core_447push_font(PyObject *__pyx_self, PyObject *__pyx_v_font) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_font (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_ptype_5imgui_4core__Font, 1, "font", 0))) __PYX_ERR(0, 10903, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_446push_font(__pyx_self, ((struct __pyx_obj_5imgui_4core__Font *)__pyx_v_font)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_446push_font(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__Font *__pyx_v_font) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_font", 0); /* "imgui/core.pyx":10940 * void PushFont(ImFont*) * """ * cimgui.PushFont(font._ptr) # <<<<<<<<<<<<<< * * def pop_font(): */ try { ImGui::PushFont(__pyx_v_font->_ptr); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10940, __pyx_L1_error) } /* "imgui/core.pyx":10903 * * * def push_font(_Font font): # <<<<<<<<<<<<<< * """Push font on a stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.push_font", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10942 * cimgui.PushFont(font._ptr) * * def pop_font(): # <<<<<<<<<<<<<< * """Pop font on a stack. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_449pop_font(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_448pop_font[] = "pop_font()\nPop font on a stack.\n\n For example usage see :func:`push_font()`.\n\n Args:\n font (_Font): font object retrieved from :any:`add_font_from_file_ttf`.\n\n .. wraps::\n void PopFont()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_449pop_font = {"pop_font", (PyCFunction)__pyx_pw_5imgui_4core_449pop_font, METH_NOARGS, __pyx_doc_5imgui_4core_448pop_font}; static PyObject *__pyx_pw_5imgui_4core_449pop_font(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_font (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_448pop_font(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_448pop_font(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_font", 0); /* "imgui/core.pyx":10953 * void PopFont() * """ * cimgui.PopFont() # <<<<<<<<<<<<<< * * cpdef calc_text_size(str text, bool hide_text_after_double_hash = False, float wrap_width = -1.0): */ try { ImGui::PopFont(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10953, __pyx_L1_error) } /* "imgui/core.pyx":10942 * cimgui.PushFont(font._ptr) * * def pop_font(): # <<<<<<<<<<<<<< * """Pop font on a stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_font", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10955 * cimgui.PopFont() * * cpdef calc_text_size(str text, bool hide_text_after_double_hash = False, float wrap_width = -1.0): # <<<<<<<<<<<<<< * """Calculate text size. * Text can be multi-line. */ static PyObject *__pyx_pw_5imgui_4core_451calc_text_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_5imgui_4core_calc_text_size(PyObject *__pyx_v_text, CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_calc_text_size *__pyx_optional_args) { bool __pyx_v_hide_text_after_double_hash = ((bool)0); float __pyx_v_wrap_width = __pyx_k__102; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImVec2 __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("calc_text_size", 0); if (__pyx_optional_args) { if (__pyx_optional_args->__pyx_n > 0) { __pyx_v_hide_text_after_double_hash = __pyx_optional_args->hide_text_after_double_hash; if (__pyx_optional_args->__pyx_n > 1) { __pyx_v_wrap_width = __pyx_optional_args->wrap_width; } } } /* "imgui/core.pyx":10983 * CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) * """ * return _cast_ImVec2_tuple( # <<<<<<<<<<<<<< * cimgui.CalcTextSize( * _bytes(text), */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":10985 * return _cast_ImVec2_tuple( * cimgui.CalcTextSize( * _bytes(text), # <<<<<<<<<<<<<< * NULL, * hide_text_after_double_hash, */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 10985, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 10985, __pyx_L1_error) /* "imgui/core.pyx":10984 * """ * return _cast_ImVec2_tuple( * cimgui.CalcTextSize( # <<<<<<<<<<<<<< * _bytes(text), * NULL, */ try { __pyx_t_3 = ImGui::CalcTextSize(__pyx_t_2, NULL, __pyx_v_hide_text_after_double_hash, __pyx_v_wrap_width); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 10984, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":10983 * CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) * """ * return _cast_ImVec2_tuple( # <<<<<<<<<<<<<< * cimgui.CalcTextSize( * _bytes(text), */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":10955 * cimgui.PopFont() * * cpdef calc_text_size(str text, bool hide_text_after_double_hash = False, float wrap_width = -1.0): # <<<<<<<<<<<<<< * """Calculate text size. * Text can be multi-line. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.calc_text_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_451calc_text_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_450calc_text_size[] = "calc_text_size(str text, bool hide_text_after_double_hash=False, float wrap_width=-1.0)\nCalculate text size.\n Text can be multi-line.\n Optionally ignore text after a ## marker.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n :height: 100\n\n imgui.begin(\"Text size calculation\")\n text_content = \"This is a ##text##!\"\n text_size1 = imgui.calc_text_size(text_content)\n imgui.text('\"%s\" has size %ix%i' % (text_content, text_size1[0], text_size1[1]))\n text_size2 = imgui.calc_text_size(text_content, True)\n imgui.text('\"%s\" has size %ix%i' % (text_content, text_size2[0], text_size2[1]))\n text_size3 = imgui.calc_text_size(text_content, False, 30.0)\n imgui.text('\"%s\" has size %ix%i' % (text_content, text_size3[0], text_size3[1]))\n imgui.end()\n\n Args:\n text (str): text\n hide_text_after_double_hash (bool): if True, text after '##' is ignored\n wrap_width (float): if > 0.0 calculate size using text wrapping\n\n .. wraps::\n CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width)\n "; static PyObject *__pyx_pw_5imgui_4core_451calc_text_size(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_text = 0; bool __pyx_v_hide_text_after_double_hash; float __pyx_v_wrap_width; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("calc_text_size (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_text,&__pyx_n_s_hide_text_after_double_hash,&__pyx_n_s_wrap_width,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hide_text_after_double_hash); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wrap_width); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "calc_text_size") < 0)) __PYX_ERR(0, 10955, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_text = ((PyObject*)values[0]); if (values[1]) { __pyx_v_hide_text_after_double_hash = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_hide_text_after_double_hash == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10955, __pyx_L3_error) } else { __pyx_v_hide_text_after_double_hash = ((bool)0); } if (values[2]) { __pyx_v_wrap_width = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_wrap_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 10955, __pyx_L3_error) } else { __pyx_v_wrap_width = __pyx_k__102; } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("calc_text_size", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 10955, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.calc_text_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 10955, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_450calc_text_size(__pyx_self, __pyx_v_text, __pyx_v_hide_text_after_double_hash, __pyx_v_wrap_width); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_450calc_text_size(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, bool __pyx_v_hide_text_after_double_hash, float __pyx_v_wrap_width) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct __pyx_opt_args_5imgui_4core_calc_text_size __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("calc_text_size", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 2; __pyx_t_2.hide_text_after_double_hash = __pyx_v_hide_text_after_double_hash; __pyx_t_2.wrap_width = __pyx_v_wrap_width; __pyx_t_1 = __pyx_f_5imgui_4core_calc_text_size(__pyx_v_text, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.calc_text_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":10992 * ) * * def color_convert_u32_to_float4(cimgui.ImU32 in_): # <<<<<<<<<<<<<< * """Convert an unsigned int 32 to 4 component r, g, b, a * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_453color_convert_u32_to_float4(PyObject *__pyx_self, PyObject *__pyx_arg_in_); /*proto*/ static char __pyx_doc_5imgui_4core_452color_convert_u32_to_float4[] = "color_convert_u32_to_float4(ImU32 in_)\nConvert an unsigned int 32 to 4 component r, g, b, a\n\n Args:\n in_ (ImU32): Color in unsigned int 32 format\n\n Return:\n tuple: r, g, b, a components of the color\n\n .. wraps::\n ImVec4 ColorConvertU32ToFloat4(ImU32 in)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_453color_convert_u32_to_float4 = {"color_convert_u32_to_float4", (PyCFunction)__pyx_pw_5imgui_4core_453color_convert_u32_to_float4, METH_O, __pyx_doc_5imgui_4core_452color_convert_u32_to_float4}; static PyObject *__pyx_pw_5imgui_4core_453color_convert_u32_to_float4(PyObject *__pyx_self, PyObject *__pyx_arg_in_) { ImU32 __pyx_v_in_; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("color_convert_u32_to_float4 (wrapper)", 0); assert(__pyx_arg_in_); { __pyx_v_in_ = __Pyx_PyInt_As_ImU32(__pyx_arg_in_); if (unlikely((__pyx_v_in_ == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 10992, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.color_convert_u32_to_float4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_452color_convert_u32_to_float4(__pyx_self, ((ImU32)__pyx_v_in_)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_452color_convert_u32_to_float4(CYTHON_UNUSED PyObject *__pyx_self, ImU32 __pyx_v_in_) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec4 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("color_convert_u32_to_float4", 0); /* "imgui/core.pyx":11004 * ImVec4 ColorConvertU32ToFloat4(ImU32 in) * """ * return _cast_ImVec4_tuple(cimgui.ColorConvertU32ToFloat4(in_)) # <<<<<<<<<<<<<< * * def color_convert_float4_to_u32(float r, float g, float b, float a): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::ColorConvertU32ToFloat4(__pyx_v_in_); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11004, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec4_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":10992 * ) * * def color_convert_u32_to_float4(cimgui.ImU32 in_): # <<<<<<<<<<<<<< * """Convert an unsigned int 32 to 4 component r, g, b, a * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.color_convert_u32_to_float4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11006 * return _cast_ImVec4_tuple(cimgui.ColorConvertU32ToFloat4(in_)) * * def color_convert_float4_to_u32(float r, float g, float b, float a): # <<<<<<<<<<<<<< * """Convert a set of r, g, b, a floats to unsigned int 32 color * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_455color_convert_float4_to_u32(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_454color_convert_float4_to_u32[] = "color_convert_float4_to_u32(float r, float g, float b, float a)\nConvert a set of r, g, b, a floats to unsigned int 32 color\n\n Args:\n r, g, b, a (float): Components of the color\n\n Returns:\n ImU32: Unsigned int 32 color format\n\n .. wraps::\n ImU32 ColorConvertFloat4ToU32(const ImVec4& in)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_455color_convert_float4_to_u32 = {"color_convert_float4_to_u32", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_455color_convert_float4_to_u32, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_454color_convert_float4_to_u32}; static PyObject *__pyx_pw_5imgui_4core_455color_convert_float4_to_u32(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; float __pyx_v_a; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("color_convert_float4_to_u32 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_a,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_convert_float4_to_u32", 1, 4, 4, 1); __PYX_ERR(0, 11006, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_convert_float4_to_u32", 1, 4, 4, 2); __PYX_ERR(0, 11006, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_convert_float4_to_u32", 1, 4, 4, 3); __PYX_ERR(0, 11006, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "color_convert_float4_to_u32") < 0)) __PYX_ERR(0, 11006, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); } __pyx_v_r = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11006, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11006, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11006, __pyx_L3_error) __pyx_v_a = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_a == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11006, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("color_convert_float4_to_u32", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11006, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.color_convert_float4_to_u32", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_454color_convert_float4_to_u32(__pyx_self, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_454color_convert_float4_to_u32(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a) { ImVec4 __pyx_v_color; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImU32 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("color_convert_float4_to_u32", 0); /* "imgui/core.pyx":11018 * ImU32 ColorConvertFloat4ToU32(const ImVec4& in) * """ * cdef cimgui.ImVec4 color = _cast_args_ImVec4(r,g,b,a) # <<<<<<<<<<<<<< * return cimgui.ColorConvertFloat4ToU32(color) * */ __pyx_v_color = __pyx_f_5imgui_4core__cast_args_ImVec4(__pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a); /* "imgui/core.pyx":11019 * """ * cdef cimgui.ImVec4 color = _cast_args_ImVec4(r,g,b,a) * return cimgui.ColorConvertFloat4ToU32(color) # <<<<<<<<<<<<<< * * def color_convert_rgb_to_hsv(float r, float g, float b): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::ColorConvertFloat4ToU32(__pyx_v_color); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11019, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_ImU32(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11006 * return _cast_ImVec4_tuple(cimgui.ColorConvertU32ToFloat4(in_)) * * def color_convert_float4_to_u32(float r, float g, float b, float a): # <<<<<<<<<<<<<< * """Convert a set of r, g, b, a floats to unsigned int 32 color * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.color_convert_float4_to_u32", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11021 * return cimgui.ColorConvertFloat4ToU32(color) * * def color_convert_rgb_to_hsv(float r, float g, float b): # <<<<<<<<<<<<<< * """Convert color from RGB space to HSV space * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_457color_convert_rgb_to_hsv(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_456color_convert_rgb_to_hsv[] = "color_convert_rgb_to_hsv(float r, float g, float b)\nConvert color from RGB space to HSV space\n\n Args:\n r, g, b (float): RGB color format\n\n Returns:\n tuple: h, s, v HSV color format\n\n .. wraps::\n void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_457color_convert_rgb_to_hsv = {"color_convert_rgb_to_hsv", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_457color_convert_rgb_to_hsv, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_456color_convert_rgb_to_hsv}; static PyObject *__pyx_pw_5imgui_4core_457color_convert_rgb_to_hsv(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("color_convert_rgb_to_hsv (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_convert_rgb_to_hsv", 1, 3, 3, 1); __PYX_ERR(0, 11021, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_convert_rgb_to_hsv", 1, 3, 3, 2); __PYX_ERR(0, 11021, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "color_convert_rgb_to_hsv") < 0)) __PYX_ERR(0, 11021, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_r = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11021, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11021, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11021, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("color_convert_rgb_to_hsv", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11021, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.color_convert_rgb_to_hsv", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_456color_convert_rgb_to_hsv(__pyx_self, __pyx_v_r, __pyx_v_g, __pyx_v_b); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_456color_convert_rgb_to_hsv(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b) { float __pyx_v_out_h; float __pyx_v_out_s; float __pyx_v_out_v; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("color_convert_rgb_to_hsv", 0); /* "imgui/core.pyx":11034 * """ * cdef float out_h, out_s, out_v * out_h = out_s = out_v = 0 # <<<<<<<<<<<<<< * cimgui.ColorConvertRGBtoHSV(r,g,b,out_h,out_s,out_v) * return out_h, out_s, out_v */ __pyx_v_out_h = 0.0; __pyx_v_out_s = 0.0; __pyx_v_out_v = 0.0; /* "imgui/core.pyx":11035 * cdef float out_h, out_s, out_v * out_h = out_s = out_v = 0 * cimgui.ColorConvertRGBtoHSV(r,g,b,out_h,out_s,out_v) # <<<<<<<<<<<<<< * return out_h, out_s, out_v * */ try { ImGui::ColorConvertRGBtoHSV(__pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_out_h, __pyx_v_out_s, __pyx_v_out_v); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11035, __pyx_L1_error) } /* "imgui/core.pyx":11036 * out_h = out_s = out_v = 0 * cimgui.ColorConvertRGBtoHSV(r,g,b,out_h,out_s,out_v) * return out_h, out_s, out_v # <<<<<<<<<<<<<< * * def color_convert_hsv_to_rgb(float h, float s, float v): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_out_h); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyFloat_FromDouble(__pyx_v_out_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyFloat_FromDouble(__pyx_v_out_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":11021 * return cimgui.ColorConvertFloat4ToU32(color) * * def color_convert_rgb_to_hsv(float r, float g, float b): # <<<<<<<<<<<<<< * """Convert color from RGB space to HSV space * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.color_convert_rgb_to_hsv", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11038 * return out_h, out_s, out_v * * def color_convert_hsv_to_rgb(float h, float s, float v): # <<<<<<<<<<<<<< * """Convert color from HSV space to RGB space * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_459color_convert_hsv_to_rgb(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_458color_convert_hsv_to_rgb[] = "color_convert_hsv_to_rgb(float h, float s, float v)\nConvert color from HSV space to RGB space\n\n Args:\n h, s, v (float): HSV color format\n\n Returns:\n tuple: r, g, b RGB color format\n\n .. wraps::\n void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_459color_convert_hsv_to_rgb = {"color_convert_hsv_to_rgb", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_459color_convert_hsv_to_rgb, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_458color_convert_hsv_to_rgb}; static PyObject *__pyx_pw_5imgui_4core_459color_convert_hsv_to_rgb(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_h; float __pyx_v_s; float __pyx_v_v; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("color_convert_hsv_to_rgb (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_h,&__pyx_n_s_s,&__pyx_n_s_v,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_convert_hsv_to_rgb", 1, 3, 3, 1); __PYX_ERR(0, 11038, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("color_convert_hsv_to_rgb", 1, 3, 3, 2); __PYX_ERR(0, 11038, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "color_convert_hsv_to_rgb") < 0)) __PYX_ERR(0, 11038, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_h = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_h == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11038, __pyx_L3_error) __pyx_v_s = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_s == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11038, __pyx_L3_error) __pyx_v_v = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_v == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11038, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("color_convert_hsv_to_rgb", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11038, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.color_convert_hsv_to_rgb", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_458color_convert_hsv_to_rgb(__pyx_self, __pyx_v_h, __pyx_v_s, __pyx_v_v); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_458color_convert_hsv_to_rgb(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_h, float __pyx_v_s, float __pyx_v_v) { float __pyx_v_out_r; float __pyx_v_out_g; float __pyx_v_out_b; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("color_convert_hsv_to_rgb", 0); /* "imgui/core.pyx":11051 * """ * cdef float out_r, out_g, out_b * out_r = out_g = out_b = 0 # <<<<<<<<<<<<<< * cimgui.ColorConvertHSVtoRGB(h,s,v,out_r,out_g,out_b) * return out_r, out_g, out_b */ __pyx_v_out_r = 0.0; __pyx_v_out_g = 0.0; __pyx_v_out_b = 0.0; /* "imgui/core.pyx":11052 * cdef float out_r, out_g, out_b * out_r = out_g = out_b = 0 * cimgui.ColorConvertHSVtoRGB(h,s,v,out_r,out_g,out_b) # <<<<<<<<<<<<<< * return out_r, out_g, out_b * */ try { ImGui::ColorConvertHSVtoRGB(__pyx_v_h, __pyx_v_s, __pyx_v_v, __pyx_v_out_r, __pyx_v_out_g, __pyx_v_out_b); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11052, __pyx_L1_error) } /* "imgui/core.pyx":11053 * out_r = out_g = out_b = 0 * cimgui.ColorConvertHSVtoRGB(h,s,v,out_r,out_g,out_b) * return out_r, out_g, out_b # <<<<<<<<<<<<<< * * cpdef push_style_var(cimgui.ImGuiStyleVar variable, value): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_out_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyFloat_FromDouble(__pyx_v_out_g); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyFloat_FromDouble(__pyx_v_out_b); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "imgui/core.pyx":11038 * return out_h, out_s, out_v * * def color_convert_hsv_to_rgb(float h, float s, float v): # <<<<<<<<<<<<<< * """Convert color from HSV space to RGB space * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.color_convert_hsv_to_rgb", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11055 * return out_r, out_g, out_b * * cpdef push_style_var(cimgui.ImGuiStyleVar variable, value): # <<<<<<<<<<<<<< * """Push style variable on stack. * */ static PyObject *__pyx_pw_5imgui_4core_461push_style_var(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_style_var(ImGuiStyleVar __pyx_v_variable, PyObject *__pyx_v_value, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; int __pyx_t_12; ImVec2 __pyx_t_13; double __pyx_t_14; int __pyx_t_15; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_style_var", 0); /* "imgui/core.pyx":11088 * PushStyleVar(ImGuiStyleVar idx, float val) * """ * if not (0 <= variable < enums.ImGuiStyleVar_COUNT): # <<<<<<<<<<<<<< * warnings.warn("Unknown style variable: {}".format(variable)) * return False */ __pyx_t_1 = (0 <= __pyx_v_variable); if (__pyx_t_1) { __pyx_t_1 = (__pyx_v_variable < ImGuiStyleVar_COUNT); } __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { /* "imgui/core.pyx":11089 * """ * if not (0 <= variable < enums.ImGuiStyleVar_COUNT): * warnings.warn("Unknown style variable: {}".format(variable)) # <<<<<<<<<<<<<< * return False * */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_warnings); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_warn); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Unknown_style_variable, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar(__pyx_v_variable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":11090 * if not (0 <= variable < enums.ImGuiStyleVar_COUNT): * warnings.warn("Unknown style variable: {}".format(variable)) * return False # <<<<<<<<<<<<<< * * try: */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; goto __pyx_L0; /* "imgui/core.pyx":11088 * PushStyleVar(ImGuiStyleVar idx, float val) * """ * if not (0 <= variable < enums.ImGuiStyleVar_COUNT): # <<<<<<<<<<<<<< * warnings.warn("Unknown style variable: {}".format(variable)) * return False */ } /* "imgui/core.pyx":11092 * return False * * try: # <<<<<<<<<<<<<< * if isinstance(value, (tuple, list)): * cimgui.PushStyleVar(variable, _cast_tuple_ImVec2(value)) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { /* "imgui/core.pyx":11093 * * try: * if isinstance(value, (tuple, list)): # <<<<<<<<<<<<<< * cimgui.PushStyleVar(variable, _cast_tuple_ImVec2(value)) * else: */ __pyx_t_1 = PyTuple_Check(__pyx_v_value); __pyx_t_12 = (__pyx_t_1 != 0); if (!__pyx_t_12) { } else { __pyx_t_2 = __pyx_t_12; goto __pyx_L11_bool_binop_done; } __pyx_t_12 = PyList_Check(__pyx_v_value); __pyx_t_1 = (__pyx_t_12 != 0); __pyx_t_2 = __pyx_t_1; __pyx_L11_bool_binop_done:; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "imgui/core.pyx":11094 * try: * if isinstance(value, (tuple, list)): * cimgui.PushStyleVar(variable, _cast_tuple_ImVec2(value)) # <<<<<<<<<<<<<< * else: * cimgui.PushStyleVar(variable, (float(value))) */ __pyx_t_13 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11094, __pyx_L4_error) try { ImGui::PushStyleVar(__pyx_v_variable, __pyx_t_13); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11094, __pyx_L4_error) } /* "imgui/core.pyx":11093 * * try: * if isinstance(value, (tuple, list)): # <<<<<<<<<<<<<< * cimgui.PushStyleVar(variable, _cast_tuple_ImVec2(value)) * else: */ goto __pyx_L10; } /* "imgui/core.pyx":11096 * cimgui.PushStyleVar(variable, _cast_tuple_ImVec2(value)) * else: * cimgui.PushStyleVar(variable, (float(value))) # <<<<<<<<<<<<<< * except ValueError: * raise ValueError( */ /*else*/ { __pyx_t_14 = __Pyx_PyObject_AsDouble(__pyx_v_value); if (unlikely(__pyx_t_14 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11096, __pyx_L4_error) try { ImGui::PushStyleVar(__pyx_v_variable, ((float)__pyx_t_14)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11096, __pyx_L4_error) } } __pyx_L10:; /* "imgui/core.pyx":11092 * return False * * try: # <<<<<<<<<<<<<< * if isinstance(value, (tuple, list)): * cimgui.PushStyleVar(variable, _cast_tuple_ImVec2(value)) */ } /* "imgui/core.pyx":11102 * ) * else: * return True # <<<<<<<<<<<<<< * * */ /*else:*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_True); __pyx_r = Py_True; goto __pyx_L7_except_return; } __pyx_L4_error:; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11097 * else: * cimgui.PushStyleVar(variable, (float(value))) * except ValueError: # <<<<<<<<<<<<<< * raise ValueError( * "Style value must be float or two-elements list/tuple" */ __pyx_t_15 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_15) { __Pyx_AddTraceback("imgui.core.push_style_var", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 11097, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_4); /* "imgui/core.pyx":11098 * cimgui.PushStyleVar(variable, (float(value))) * except ValueError: * raise ValueError( # <<<<<<<<<<<<<< * "Style value must be float or two-elements list/tuple" * ) */ __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__103, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11098, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 11098, __pyx_L6_except_error) } goto __pyx_L6_except_error; __pyx_L6_except_error:; /* "imgui/core.pyx":11092 * return False * * try: # <<<<<<<<<<<<<< * if isinstance(value, (tuple, list)): * cimgui.PushStyleVar(variable, _cast_tuple_ImVec2(value)) */ __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); goto __pyx_L1_error; __pyx_L7_except_return:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); goto __pyx_L0; } /* "imgui/core.pyx":11055 * return out_r, out_g, out_b * * cpdef push_style_var(cimgui.ImGuiStyleVar variable, value): # <<<<<<<<<<<<<< * """Push style variable on stack. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.push_style_var", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_461push_style_var(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_460push_style_var[] = "push_style_var(ImGuiStyleVar variable, value)\nPush style variable on stack.\n\n This function accepts both float and float two-tuples as ``value``\n argument. ImGui core implementation will verify if passed value has\n type compatibile with given style variable. If not, it will raise\n exception.\n\n **Note:** variables pushed on stack need to be poped using\n :func:`pop_style_var()` until the end of current frame. This\n implementation guards you from segfaults caused by redundant stack pops\n (raises exception if this happens) but generally it is safer and easier to\n use :func:`styled` or :func:`istyled` context managers.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 80\n\n imgui.begin(\"Example: style variables\")\n imgui.push_style_var(imgui.STYLE_ALPHA, 0.2)\n imgui.text(\"Alpha text\")\n imgui.pop_style_var(1)\n imgui.end()\n\n Args:\n variable: imgui style variable constant\n value (float or two-tuple): style variable value\n\n\n .. wraps::\n PushStyleVar(ImGuiStyleVar idx, float val)\n "; static PyObject *__pyx_pw_5imgui_4core_461push_style_var(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiStyleVar __pyx_v_variable; PyObject *__pyx_v_value = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_style_var (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_variable,&__pyx_n_s_value,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_variable)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_style_var", 1, 2, 2, 1); __PYX_ERR(0, 11055, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "push_style_var") < 0)) __PYX_ERR(0, 11055, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_variable = __Pyx_PyInt_As_ImGuiStyleVar(values[0]); if (unlikely((__pyx_v_variable == ((ImGuiStyleVar)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11055, __pyx_L3_error) __pyx_v_value = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("push_style_var", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11055, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.push_style_var", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_460push_style_var(__pyx_self, __pyx_v_variable, __pyx_v_value); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_460push_style_var(CYTHON_UNUSED PyObject *__pyx_self, ImGuiStyleVar __pyx_v_variable, PyObject *__pyx_v_value) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_style_var", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_push_style_var(__pyx_v_variable, __pyx_v_value, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.push_style_var", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11105 * * * cpdef push_style_color( # <<<<<<<<<<<<<< * cimgui.ImGuiCol variable, * float r, */ static PyObject *__pyx_pw_5imgui_4core_463push_style_color(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_style_color(ImGuiCol __pyx_v_variable, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_push_style_color *__pyx_optional_args) { float __pyx_v_a = ((float)1.); PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_style_color", 0); if (__pyx_optional_args) { if (__pyx_optional_args->__pyx_n > 0) { __pyx_v_a = __pyx_optional_args->a; } } /* "imgui/core.pyx":11141 * PushStyleColor(ImGuiCol idx, const ImVec4& col) * """ * if not (0 <= variable < enums.ImGuiCol_COUNT): # <<<<<<<<<<<<<< * warnings.warn("Unknown style variable: {}".format(variable)) * return False */ __pyx_t_1 = (0 <= __pyx_v_variable); if (__pyx_t_1) { __pyx_t_1 = (__pyx_v_variable < ImGuiCol_COUNT); } __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { /* "imgui/core.pyx":11142 * """ * if not (0 <= variable < enums.ImGuiCol_COUNT): * warnings.warn("Unknown style variable: {}".format(variable)) # <<<<<<<<<<<<<< * return False * */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_warnings); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_warn); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Unknown_style_variable, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol(__pyx_v_variable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":11143 * if not (0 <= variable < enums.ImGuiCol_COUNT): * warnings.warn("Unknown style variable: {}".format(variable)) * return False # <<<<<<<<<<<<<< * * cimgui.PushStyleColor(variable, _cast_args_ImVec4(r, g, b, a)) */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; goto __pyx_L0; /* "imgui/core.pyx":11141 * PushStyleColor(ImGuiCol idx, const ImVec4& col) * """ * if not (0 <= variable < enums.ImGuiCol_COUNT): # <<<<<<<<<<<<<< * warnings.warn("Unknown style variable: {}".format(variable)) * return False */ } /* "imgui/core.pyx":11145 * return False * * cimgui.PushStyleColor(variable, _cast_args_ImVec4(r, g, b, a)) # <<<<<<<<<<<<<< * return True * */ try { ImGui::PushStyleColor(__pyx_v_variable, __pyx_f_5imgui_4core__cast_args_ImVec4(__pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11145, __pyx_L1_error) } /* "imgui/core.pyx":11146 * * cimgui.PushStyleColor(variable, _cast_args_ImVec4(r, g, b, a)) * return True # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_True); __pyx_r = Py_True; goto __pyx_L0; /* "imgui/core.pyx":11105 * * * cpdef push_style_color( # <<<<<<<<<<<<<< * cimgui.ImGuiCol variable, * float r, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.push_style_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_463push_style_color(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_462push_style_color[] = "push_style_color(ImGuiCol variable, float r, float g, float b, float a=1.)\nPush style color on stack.\n\n **Note:** variables pushed on stack need to be popped using\n :func:`pop_style_color()` until the end of current frame. This\n implementation guards you from segfaults caused by redundant stack pops\n (raises exception if this happens) but generally it is safer and easier to\n use :func:`styled` or :func:`istyled` context managers.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 80\n\n imgui.begin(\"Example: Color variables\")\n imgui.push_style_color(imgui.COLOR_TEXT, 1.0, 0.0, 0.0)\n imgui.text(\"Colored text\")\n imgui.pop_style_color(1)\n imgui.end()\n\n Args:\n variable: imgui style color constant\n r (float): red color intensity.\n g (float): green color intensity.\n b (float): blue color instensity.\n a (float): alpha intensity.\n\n .. wraps::\n PushStyleColor(ImGuiCol idx, const ImVec4& col)\n "; static PyObject *__pyx_pw_5imgui_4core_463push_style_color(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiCol __pyx_v_variable; float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; float __pyx_v_a; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_style_color (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_variable,&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_a,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_variable)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_style_color", 0, 4, 5, 1); __PYX_ERR(0, 11105, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_style_color", 0, 4, 5, 2); __PYX_ERR(0, 11105, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_style_color", 0, 4, 5, 3); __PYX_ERR(0, 11105, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "push_style_color") < 0)) __PYX_ERR(0, 11105, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_variable = __Pyx_PyInt_As_ImGuiCol(values[0]); if (unlikely((__pyx_v_variable == ((ImGuiCol)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11106, __pyx_L3_error) __pyx_v_r = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11107, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11108, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11109, __pyx_L3_error) if (values[4]) { __pyx_v_a = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_a == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11110, __pyx_L3_error) } else { __pyx_v_a = ((float)1.); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("push_style_color", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11105, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.push_style_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_462push_style_color(__pyx_self, __pyx_v_variable, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_462push_style_color(CYTHON_UNUSED PyObject *__pyx_self, ImGuiCol __pyx_v_variable, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct __pyx_opt_args_5imgui_4core_push_style_color __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_style_color", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.a = __pyx_v_a; __pyx_t_1 = __pyx_f_5imgui_4core_push_style_color(__pyx_v_variable, __pyx_v_r, __pyx_v_g, __pyx_v_b, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.push_style_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11149 * * * cpdef pop_style_var(unsigned int count=1): # <<<<<<<<<<<<<< * """Pop style variables from stack. * */ static PyObject *__pyx_pw_5imgui_4core_465pop_style_var(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_style_var(CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_pop_style_var *__pyx_optional_args) { unsigned int __pyx_v_count = ((unsigned int)1); PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_style_var", 0); if (__pyx_optional_args) { if (__pyx_optional_args->__pyx_n > 0) { __pyx_v_count = __pyx_optional_args->count; } } /* "imgui/core.pyx":11163 * void PopStyleVar(int count = 1) * """ * cimgui.PopStyleVar(count) # <<<<<<<<<<<<<< * * */ try { ImGui::PopStyleVar(__pyx_v_count); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11163, __pyx_L1_error) } /* "imgui/core.pyx":11149 * * * cpdef pop_style_var(unsigned int count=1): # <<<<<<<<<<<<<< * """Pop style variables from stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_style_var", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_465pop_style_var(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_464pop_style_var[] = "pop_style_var(unsigned int count=1)\nPop style variables from stack.\n\n **Note:** This implementation guards you from segfaults caused by\n redundant stack pops (raises exception if this happens) but generally\n it is safer and easier to use :func:`styled` or :func:`istyled` context\n managers. See: :any:`push_style_var()`.\n\n Args:\n count (int): number of variables to pop from style variable stack.\n\n .. wraps::\n void PopStyleVar(int count = 1)\n "; static PyObject *__pyx_pw_5imgui_4core_465pop_style_var(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { unsigned int __pyx_v_count; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_style_var (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_count,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_count); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "pop_style_var") < 0)) __PYX_ERR(0, 11149, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_count = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11149, __pyx_L3_error) } else { __pyx_v_count = ((unsigned int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("pop_style_var", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11149, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.pop_style_var", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_464pop_style_var(__pyx_self, __pyx_v_count); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_464pop_style_var(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_count) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct __pyx_opt_args_5imgui_4core_pop_style_var __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_style_var", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.count = __pyx_v_count; __pyx_t_1 = __pyx_f_5imgui_4core_pop_style_var(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.pop_style_var", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11166 * * * cpdef get_font_size(): # <<<<<<<<<<<<<< * """get current font size (= height in pixels) of current font with current scale applied * */ static PyObject *__pyx_pw_5imgui_4core_467get_font_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_font_size(CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_font_size", 0); /* "imgui/core.pyx":11175 * float GetFontSize() * """ * return cimgui.GetFontSize() # <<<<<<<<<<<<<< * * cpdef get_style_color_vec_4(cimgui.ImGuiCol idx): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetFontSize(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11175, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11166 * * * cpdef get_font_size(): # <<<<<<<<<<<<<< * """get current font size (= height in pixels) of current font with current scale applied * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_font_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_467get_font_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_466get_font_size[] = "get_font_size()\nget current font size (= height in pixels) of current font with current scale applied\n\n Returns:\n float: current font size (height in pixels)\n\n .. wraps::\n float GetFontSize()\n "; static PyObject *__pyx_pw_5imgui_4core_467get_font_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_font_size (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_466get_font_size(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_466get_font_size(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_font_size", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_get_font_size(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.get_font_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11177 * return cimgui.GetFontSize() * * cpdef get_style_color_vec_4(cimgui.ImGuiCol idx): # <<<<<<<<<<<<<< * return _cast_ImVec4_tuple(cimgui.GetStyleColorVec4(idx)) * */ static PyObject *__pyx_pw_5imgui_4core_469get_style_color_vec_4(PyObject *__pyx_self, PyObject *__pyx_arg_idx); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_style_color_vec_4(ImGuiCol __pyx_v_idx, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_FakeReference __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_style_color_vec_4", 0); /* "imgui/core.pyx":11178 * * cpdef get_style_color_vec_4(cimgui.ImGuiCol idx): * return _cast_ImVec4_tuple(cimgui.GetStyleColorVec4(idx)) # <<<<<<<<<<<<<< * * cpdef get_font_tex_uv_white_pixel(): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetStyleColorVec4(__pyx_v_idx); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11178, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec4_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11177 * return cimgui.GetFontSize() * * cpdef get_style_color_vec_4(cimgui.ImGuiCol idx): # <<<<<<<<<<<<<< * return _cast_ImVec4_tuple(cimgui.GetStyleColorVec4(idx)) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_style_color_vec_4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_469get_style_color_vec_4(PyObject *__pyx_self, PyObject *__pyx_arg_idx); /*proto*/ static char __pyx_doc_5imgui_4core_468get_style_color_vec_4[] = "get_style_color_vec_4(ImGuiCol idx)"; static PyObject *__pyx_pw_5imgui_4core_469get_style_color_vec_4(PyObject *__pyx_self, PyObject *__pyx_arg_idx) { ImGuiCol __pyx_v_idx; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_style_color_vec_4 (wrapper)", 0); assert(__pyx_arg_idx); { __pyx_v_idx = __Pyx_PyInt_As_ImGuiCol(__pyx_arg_idx); if (unlikely((__pyx_v_idx == ((ImGuiCol)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11177, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_style_color_vec_4", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_468get_style_color_vec_4(__pyx_self, ((ImGuiCol)__pyx_v_idx)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_468get_style_color_vec_4(CYTHON_UNUSED PyObject *__pyx_self, ImGuiCol __pyx_v_idx) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_style_color_vec_4", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_get_style_color_vec_4(__pyx_v_idx, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.get_style_color_vec_4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11180 * return _cast_ImVec4_tuple(cimgui.GetStyleColorVec4(idx)) * * cpdef get_font_tex_uv_white_pixel(): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(cimgui.GetFontTexUvWhitePixel()) * */ static PyObject *__pyx_pw_5imgui_4core_471get_font_tex_uv_white_pixel(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_font_tex_uv_white_pixel(CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_font_tex_uv_white_pixel", 0); /* "imgui/core.pyx":11181 * * cpdef get_font_tex_uv_white_pixel(): * return _cast_ImVec2_tuple(cimgui.GetFontTexUvWhitePixel()) # <<<<<<<<<<<<<< * * # TODO: Can we implement function overloading? Prefer these are all named 'get_color_u32' with different signatures */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetFontTexUvWhitePixel(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11181, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11180 * return _cast_ImVec4_tuple(cimgui.GetStyleColorVec4(idx)) * * cpdef get_font_tex_uv_white_pixel(): # <<<<<<<<<<<<<< * return _cast_ImVec2_tuple(cimgui.GetFontTexUvWhitePixel()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_font_tex_uv_white_pixel", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_471get_font_tex_uv_white_pixel(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_470get_font_tex_uv_white_pixel[] = "get_font_tex_uv_white_pixel()"; static PyObject *__pyx_pw_5imgui_4core_471get_font_tex_uv_white_pixel(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_font_tex_uv_white_pixel (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_470get_font_tex_uv_white_pixel(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_470get_font_tex_uv_white_pixel(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_font_tex_uv_white_pixel", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_get_font_tex_uv_white_pixel(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.get_font_tex_uv_white_pixel", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11187 * # Neither singledispatch nor multipledispatch seems to be available in Cython :-/ * * cpdef get_color_u32_idx(cimgui.ImGuiCol idx, float alpha_mul = 1.0): # <<<<<<<<<<<<<< * """ retrieve given style color with style alpha applied and optional extra alpha multiplier * */ static PyObject *__pyx_pw_5imgui_4core_473get_color_u32_idx(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_color_u32_idx(ImGuiCol __pyx_v_idx, CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_get_color_u32_idx *__pyx_optional_args) { float __pyx_v_alpha_mul = ((float)1.0); PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImU32 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_color_u32_idx", 0); if (__pyx_optional_args) { if (__pyx_optional_args->__pyx_n > 0) { __pyx_v_alpha_mul = __pyx_optional_args->alpha_mul; } } /* "imgui/core.pyx":11196 * ImU32 GetColorU32(ImGuiCol idx, alpha_mul) * """ * return cimgui.GetColorU32(idx, alpha_mul) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetColorU32(__pyx_v_idx, __pyx_v_alpha_mul); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11196, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_ImU32(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11187 * # Neither singledispatch nor multipledispatch seems to be available in Cython :-/ * * cpdef get_color_u32_idx(cimgui.ImGuiCol idx, float alpha_mul = 1.0): # <<<<<<<<<<<<<< * """ retrieve given style color with style alpha applied and optional extra alpha multiplier * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_color_u32_idx", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_473get_color_u32_idx(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_472get_color_u32_idx[] = "get_color_u32_idx(ImGuiCol idx, float alpha_mul=1.0)\n retrieve given style color with style alpha applied and optional extra alpha multiplier\n\n Returns:\n ImU32: 32-bit RGBA color\n\n .. wraps::\n ImU32 GetColorU32(ImGuiCol idx, alpha_mul)\n "; static PyObject *__pyx_pw_5imgui_4core_473get_color_u32_idx(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiCol __pyx_v_idx; float __pyx_v_alpha_mul; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_color_u32_idx (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_idx,&__pyx_n_s_alpha_mul,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_idx)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_mul); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_color_u32_idx") < 0)) __PYX_ERR(0, 11187, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_idx = __Pyx_PyInt_As_ImGuiCol(values[0]); if (unlikely((__pyx_v_idx == ((ImGuiCol)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11187, __pyx_L3_error) if (values[1]) { __pyx_v_alpha_mul = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_alpha_mul == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11187, __pyx_L3_error) } else { __pyx_v_alpha_mul = ((float)1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("get_color_u32_idx", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11187, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_color_u32_idx", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_472get_color_u32_idx(__pyx_self, __pyx_v_idx, __pyx_v_alpha_mul); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_472get_color_u32_idx(CYTHON_UNUSED PyObject *__pyx_self, ImGuiCol __pyx_v_idx, float __pyx_v_alpha_mul) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct __pyx_opt_args_5imgui_4core_get_color_u32_idx __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_color_u32_idx", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.alpha_mul = __pyx_v_alpha_mul; __pyx_t_1 = __pyx_f_5imgui_4core_get_color_u32_idx(__pyx_v_idx, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.get_color_u32_idx", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11199 * * * cpdef get_color_u32_rgba(float r, float g, float b, float a): # <<<<<<<<<<<<<< * """ retrieve given color with style alpha applied * */ static PyObject *__pyx_pw_5imgui_4core_475get_color_u32_rgba(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_color_u32_rgba(float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImU32 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_color_u32_rgba", 0); /* "imgui/core.pyx":11208 * ImU32 GetColorU32(const ImVec4& col) * """ * return cimgui.GetColorU32( _cast_args_ImVec4(r, g, b, a) ) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetColorU32(__pyx_f_5imgui_4core__cast_args_ImVec4(__pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11208, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_ImU32(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11199 * * * cpdef get_color_u32_rgba(float r, float g, float b, float a): # <<<<<<<<<<<<<< * """ retrieve given color with style alpha applied * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_color_u32_rgba", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_475get_color_u32_rgba(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_474get_color_u32_rgba[] = "get_color_u32_rgba(float r, float g, float b, float a)\n retrieve given color with style alpha applied\n\n Returns:\n ImU32: 32-bit RGBA color\n\n .. wraps::\n ImU32 GetColorU32(const ImVec4& col)\n "; static PyObject *__pyx_pw_5imgui_4core_475get_color_u32_rgba(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; float __pyx_v_a; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_color_u32_rgba (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_a,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("get_color_u32_rgba", 1, 4, 4, 1); __PYX_ERR(0, 11199, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("get_color_u32_rgba", 1, 4, 4, 2); __PYX_ERR(0, 11199, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("get_color_u32_rgba", 1, 4, 4, 3); __PYX_ERR(0, 11199, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_color_u32_rgba") < 0)) __PYX_ERR(0, 11199, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); } __pyx_v_r = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11199, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11199, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11199, __pyx_L3_error) __pyx_v_a = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_a == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11199, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("get_color_u32_rgba", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11199, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_color_u32_rgba", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_474get_color_u32_rgba(__pyx_self, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_474get_color_u32_rgba(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_color_u32_rgba", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_get_color_u32_rgba(__pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.get_color_u32_rgba", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11211 * * * cpdef get_color_u32(cimgui.ImU32 col): # <<<<<<<<<<<<<< * """retrieve given style color with style alpha applied and optional extra alpha multiplier * */ static PyObject *__pyx_pw_5imgui_4core_477get_color_u32(PyObject *__pyx_self, PyObject *__pyx_arg_col); /*proto*/ static PyObject *__pyx_f_5imgui_4core_get_color_u32(ImU32 __pyx_v_col, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImU32 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_color_u32", 0); /* "imgui/core.pyx":11220 * ImU32 GetColorU32(ImU32 col) * """ * return cimgui.GetColorU32(col) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetColorU32(__pyx_v_col); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11220, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_ImU32(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11211 * * * cpdef get_color_u32(cimgui.ImU32 col): # <<<<<<<<<<<<<< * """retrieve given style color with style alpha applied and optional extra alpha multiplier * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_color_u32", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_477get_color_u32(PyObject *__pyx_self, PyObject *__pyx_arg_col); /*proto*/ static char __pyx_doc_5imgui_4core_476get_color_u32[] = "get_color_u32(ImU32 col)\nretrieve given style color with style alpha applied and optional extra alpha multiplier\n\n Returns:\n ImU32: 32-bit RGBA color\n\n .. wraps::\n ImU32 GetColorU32(ImU32 col)\n "; static PyObject *__pyx_pw_5imgui_4core_477get_color_u32(PyObject *__pyx_self, PyObject *__pyx_arg_col) { ImU32 __pyx_v_col; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_color_u32 (wrapper)", 0); assert(__pyx_arg_col); { __pyx_v_col = __Pyx_PyInt_As_ImU32(__pyx_arg_col); if (unlikely((__pyx_v_col == ((ImU32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11211, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_color_u32", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_476get_color_u32(__pyx_self, ((ImU32)__pyx_v_col)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_476get_color_u32(CYTHON_UNUSED PyObject *__pyx_self, ImU32 __pyx_v_col) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_color_u32", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_get_color_u32(__pyx_v_col, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.get_color_u32", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11224 * * * cpdef push_item_width(float item_width): # <<<<<<<<<<<<<< * """Push item width in the stack. * */ static PyObject *__pyx_pw_5imgui_4core_479push_item_width(PyObject *__pyx_self, PyObject *__pyx_arg_item_width); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_item_width(float __pyx_v_item_width, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_item_width", 0); /* "imgui/core.pyx":11263 * void PushItemWidth(float item_width) * """ * cimgui.PushItemWidth(item_width) # <<<<<<<<<<<<<< * * */ try { ImGui::PushItemWidth(__pyx_v_item_width); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11263, __pyx_L1_error) } /* "imgui/core.pyx":11224 * * * cpdef push_item_width(float item_width): # <<<<<<<<<<<<<< * """Push item width in the stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.push_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_479push_item_width(PyObject *__pyx_self, PyObject *__pyx_arg_item_width); /*proto*/ static char __pyx_doc_5imgui_4core_478push_item_width[] = "push_item_width(float item_width)\nPush item width in the stack.\n\n **Note:** sizing of child region allows for three modes:\n\n * ``0.0`` - default to ~2/3 of windows width\n * ``>0.0`` - width in pixels\n * ``<0.0`` - align xx pixels to the right of window\n (so -FLOAT_MIN always align width to the right side)\n\n **Note:** width pushed on stack need to be poped using\n :func:`pop_item_width()` or it will be applied to all subsequent\n children components.\n\n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 200\n\n imgui.begin(\"Example: item width\")\n\n # custom width\n imgui.push_item_width(imgui.get_window_width() * 0.33)\n imgui.text('Lorem Ipsum ...')\n imgui.slider_float('float slider', 10.2, 0.0, 20.0, '%.2f', 1.0)\n imgui.pop_item_width()\n\n # default width\n imgui.text('Lorem Ipsum ...')\n imgui.slider_float('float slider', 10.2, 0.0, 20.0, '%.2f', 1.0)\n\n imgui.end()\n\n Args:\n item_width (float): width of the component\n\n .. wraps::\n void PushItemWidth(float item_width)\n "; static PyObject *__pyx_pw_5imgui_4core_479push_item_width(PyObject *__pyx_self, PyObject *__pyx_arg_item_width) { float __pyx_v_item_width; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_item_width (wrapper)", 0); assert(__pyx_arg_item_width); { __pyx_v_item_width = __pyx_PyFloat_AsFloat(__pyx_arg_item_width); if (unlikely((__pyx_v_item_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11224, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.push_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_478push_item_width(__pyx_self, ((float)__pyx_v_item_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_478push_item_width(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_item_width) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_item_width", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_push_item_width(__pyx_v_item_width, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.push_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11266 * * * cpdef pop_item_width(): # <<<<<<<<<<<<<< * """Reset width back to the default width. * */ static PyObject *__pyx_pw_5imgui_4core_481pop_item_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_item_width(CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_item_width", 0); /* "imgui/core.pyx":11277 * void PopItemWidth() * """ * cimgui.PopItemWidth() # <<<<<<<<<<<<<< * * cpdef set_next_item_width(float item_width): */ try { ImGui::PopItemWidth(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11277, __pyx_L1_error) } /* "imgui/core.pyx":11266 * * * cpdef pop_item_width(): # <<<<<<<<<<<<<< * """Reset width back to the default width. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_481pop_item_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_480pop_item_width[] = "pop_item_width()\nReset width back to the default width.\n\n **Note:** This implementation guards you from segfaults caused by\n redundant stack pops (raises exception if this happens) but generally\n it is safer and easier to use :func:`styled` or :func:`istyled` context\n managers. See: :any:`push_item_width()`.\n\n .. wraps::\n void PopItemWidth()\n "; static PyObject *__pyx_pw_5imgui_4core_481pop_item_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_item_width (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_480pop_item_width(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_480pop_item_width(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_item_width", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_pop_item_width(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.pop_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11279 * cimgui.PopItemWidth() * * cpdef set_next_item_width(float item_width): # <<<<<<<<<<<<<< * """Set width of the _next_ common large "item+label" widget. * * ``>0.0`` - width in pixels */ static PyObject *__pyx_pw_5imgui_4core_483set_next_item_width(PyObject *__pyx_self, PyObject *__pyx_arg_item_width); /*proto*/ static PyObject *__pyx_f_5imgui_4core_set_next_item_width(float __pyx_v_item_width, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_item_width", 0); /* "imgui/core.pyx":11304 * void SetNextItemWidth(float item_width) * """ * cimgui.SetNextItemWidth(item_width) # <<<<<<<<<<<<<< * * cpdef calculate_item_width(): */ try { ImGui::SetNextItemWidth(__pyx_v_item_width); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11304, __pyx_L1_error) } /* "imgui/core.pyx":11279 * cimgui.PopItemWidth() * * cpdef set_next_item_width(float item_width): # <<<<<<<<<<<<<< * """Set width of the _next_ common large "item+label" widget. * * ``>0.0`` - width in pixels */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_next_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_483set_next_item_width(PyObject *__pyx_self, PyObject *__pyx_arg_item_width); /*proto*/ static char __pyx_doc_5imgui_4core_482set_next_item_width[] = "set_next_item_width(float item_width)\nSet width of the _next_ common large \"item+label\" widget. \n * ``>0.0`` - width in pixels\n * ``<0.0`` - align xx pixels to the right of window\n (so -FLOAT_MIN always align width to the right side)\n \n Helper to avoid using ``push_item_width()``/``pop_item_width()`` for single items.\n \n Args:\n item_width (float): width of the component\n \n .. visual-example::\n :auto_layout:\n :width: 200\n :height: 200\n \n imgui.begin(\"Exemple: Next item width\")\n imgui.set_next_item_width(imgui.get_window_width() * 0.33)\n imgui.slider_float('Slider 1', 10.2, 0.0, 20.0, '%.2f', 1.0)\n imgui.slider_float('Slider 2', 10.2, 0.0, 20.0, '%.2f', 1.0)\n imgui.end()\n \n .. wraps::\n void SetNextItemWidth(float item_width)\n "; static PyObject *__pyx_pw_5imgui_4core_483set_next_item_width(PyObject *__pyx_self, PyObject *__pyx_arg_item_width) { float __pyx_v_item_width; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_next_item_width (wrapper)", 0); assert(__pyx_arg_item_width); { __pyx_v_item_width = __pyx_PyFloat_AsFloat(__pyx_arg_item_width); if (unlikely((__pyx_v_item_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11279, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_next_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_482set_next_item_width(__pyx_self, ((float)__pyx_v_item_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_482set_next_item_width(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_item_width) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_next_item_width", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_set_next_item_width(__pyx_v_item_width, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_next_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11306 * cimgui.SetNextItemWidth(item_width) * * cpdef calculate_item_width(): # <<<<<<<<<<<<<< * """Calculate and return the current item width. * */ static PyObject *__pyx_pw_5imgui_4core_485calculate_item_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_5imgui_4core_calculate_item_width(CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("calculate_item_width", 0); /* "imgui/core.pyx":11315 * float CalcItemWidth() * """ * return cimgui.CalcItemWidth() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::CalcItemWidth(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11315, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11306 * cimgui.SetNextItemWidth(item_width) * * cpdef calculate_item_width(): # <<<<<<<<<<<<<< * """Calculate and return the current item width. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.calculate_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_485calculate_item_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_484calculate_item_width[] = "calculate_item_width()\nCalculate and return the current item width.\n\n Returns:\n float: calculated item width.\n\n .. wraps::\n float CalcItemWidth()\n "; static PyObject *__pyx_pw_5imgui_4core_485calculate_item_width(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("calculate_item_width (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_484calculate_item_width(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_484calculate_item_width(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("calculate_item_width", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_calculate_item_width(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.calculate_item_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11318 * * * cpdef push_text_wrap_pos(float wrap_pos_x = 0.0): # <<<<<<<<<<<<<< * """Word-wrapping function for text*() commands. * */ static PyObject *__pyx_pw_5imgui_4core_487push_text_wrap_pos(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_text_wrap_pos(CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_push_text_wrap_pos *__pyx_optional_args) { float __pyx_v_wrap_pos_x = ((float)0.0); PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_text_wrap_pos", 0); if (__pyx_optional_args) { if (__pyx_optional_args->__pyx_n > 0) { __pyx_v_wrap_pos_x = __pyx_optional_args->wrap_pos_x; } } /* "imgui/core.pyx":11332 * float PushTextWrapPos(float wrap_pos_x = 0.0f) * """ * cimgui.PushTextWrapPos(wrap_pos_x) # <<<<<<<<<<<<<< * * push_text_wrap_position = push_text_wrap_pos */ try { ImGui::PushTextWrapPos(__pyx_v_wrap_pos_x); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11332, __pyx_L1_error) } /* "imgui/core.pyx":11318 * * * cpdef push_text_wrap_pos(float wrap_pos_x = 0.0): # <<<<<<<<<<<<<< * """Word-wrapping function for text*() commands. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.push_text_wrap_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_487push_text_wrap_pos(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_486push_text_wrap_pos[] = "push_text_wrap_pos(float wrap_pos_x=0.0)\nWord-wrapping function for text*() commands.\n\n **Note:** wrapping position allows these modes:\n * ``0.0`` - wrap to end of window (or column)\n * ``>0.0`` - wrap at 'wrap_pos_x' position in window local space\n * ``<0.0`` - no wrapping\n\n Args:\n wrap_pos_x (float): calculated item width.\n\n .. wraps::\n float PushTextWrapPos(float wrap_pos_x = 0.0f)\n "; static PyObject *__pyx_pw_5imgui_4core_487push_text_wrap_pos(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_wrap_pos_x; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_text_wrap_pos (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_wrap_pos_x,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wrap_pos_x); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "push_text_wrap_pos") < 0)) __PYX_ERR(0, 11318, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_wrap_pos_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_wrap_pos_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11318, __pyx_L3_error) } else { __pyx_v_wrap_pos_x = ((float)0.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("push_text_wrap_pos", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11318, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.push_text_wrap_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_486push_text_wrap_pos(__pyx_self, __pyx_v_wrap_pos_x); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_486push_text_wrap_pos(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_wrap_pos_x) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct __pyx_opt_args_5imgui_4core_push_text_wrap_pos __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_text_wrap_pos", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.wrap_pos_x = __pyx_v_wrap_pos_x; __pyx_t_1 = __pyx_f_5imgui_4core_push_text_wrap_pos(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.push_text_wrap_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11336 * push_text_wrap_position = push_text_wrap_pos * * cpdef pop_text_wrap_pos(): # <<<<<<<<<<<<<< * """Pop the text wrapping position from the stack. * */ static PyObject *__pyx_pw_5imgui_4core_489pop_text_wrap_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_text_wrap_pos(CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_text_wrap_pos", 0); /* "imgui/core.pyx":11347 * void PopTextWrapPos() * """ * cimgui.PopTextWrapPos() # <<<<<<<<<<<<<< * * pop_text_wrap_position = pop_text_wrap_pos */ try { ImGui::PopTextWrapPos(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11347, __pyx_L1_error) } /* "imgui/core.pyx":11336 * push_text_wrap_position = push_text_wrap_pos * * cpdef pop_text_wrap_pos(): # <<<<<<<<<<<<<< * """Pop the text wrapping position from the stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_text_wrap_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_489pop_text_wrap_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_488pop_text_wrap_pos[] = "pop_text_wrap_pos()\nPop the text wrapping position from the stack.\n\n **Note:** This implementation guards you from segfaults caused by\n redundant stack pops (raises exception if this happens) but generally\n it is safer and easier to use :func:`styled` or :func:`istyled` context\n managers. See: :func:`push_text_wrap_pos()`.\n\n .. wraps::\n void PopTextWrapPos()\n "; static PyObject *__pyx_pw_5imgui_4core_489pop_text_wrap_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_text_wrap_pos (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_488pop_text_wrap_pos(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_488pop_text_wrap_pos(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_text_wrap_pos", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_pop_text_wrap_pos(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.pop_text_wrap_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11351 * pop_text_wrap_position = pop_text_wrap_pos * * cpdef push_allow_keyboard_focus(bool allow_focus): # <<<<<<<<<<<<<< * cimgui.PushAllowKeyboardFocus(allow_focus) * */ static PyObject *__pyx_pw_5imgui_4core_491push_allow_keyboard_focus(PyObject *__pyx_self, PyObject *__pyx_arg_allow_focus); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_allow_keyboard_focus(bool __pyx_v_allow_focus, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_allow_keyboard_focus", 0); /* "imgui/core.pyx":11352 * * cpdef push_allow_keyboard_focus(bool allow_focus): * cimgui.PushAllowKeyboardFocus(allow_focus) # <<<<<<<<<<<<<< * * cpdef pop_allow_keyboard_focus(): */ try { ImGui::PushAllowKeyboardFocus(__pyx_v_allow_focus); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11352, __pyx_L1_error) } /* "imgui/core.pyx":11351 * pop_text_wrap_position = pop_text_wrap_pos * * cpdef push_allow_keyboard_focus(bool allow_focus): # <<<<<<<<<<<<<< * cimgui.PushAllowKeyboardFocus(allow_focus) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.push_allow_keyboard_focus", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_491push_allow_keyboard_focus(PyObject *__pyx_self, PyObject *__pyx_arg_allow_focus); /*proto*/ static char __pyx_doc_5imgui_4core_490push_allow_keyboard_focus[] = "push_allow_keyboard_focus(bool allow_focus)"; static PyObject *__pyx_pw_5imgui_4core_491push_allow_keyboard_focus(PyObject *__pyx_self, PyObject *__pyx_arg_allow_focus) { bool __pyx_v_allow_focus; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_allow_keyboard_focus (wrapper)", 0); assert(__pyx_arg_allow_focus); { __pyx_v_allow_focus = __Pyx_PyObject_IsTrue(__pyx_arg_allow_focus); if (unlikely((__pyx_v_allow_focus == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11351, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.push_allow_keyboard_focus", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_490push_allow_keyboard_focus(__pyx_self, ((bool)__pyx_v_allow_focus)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_490push_allow_keyboard_focus(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_allow_focus) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_allow_keyboard_focus", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_push_allow_keyboard_focus(__pyx_v_allow_focus, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.push_allow_keyboard_focus", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11354 * cimgui.PushAllowKeyboardFocus(allow_focus) * * cpdef pop_allow_keyboard_focus(): # <<<<<<<<<<<<<< * cimgui.PopAllowKeyboardFocus() * */ static PyObject *__pyx_pw_5imgui_4core_493pop_allow_keyboard_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_allow_keyboard_focus(CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_allow_keyboard_focus", 0); /* "imgui/core.pyx":11355 * * cpdef pop_allow_keyboard_focus(): * cimgui.PopAllowKeyboardFocus() # <<<<<<<<<<<<<< * * cpdef push_button_repeat(bool repeat): */ try { ImGui::PopAllowKeyboardFocus(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11355, __pyx_L1_error) } /* "imgui/core.pyx":11354 * cimgui.PushAllowKeyboardFocus(allow_focus) * * cpdef pop_allow_keyboard_focus(): # <<<<<<<<<<<<<< * cimgui.PopAllowKeyboardFocus() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_allow_keyboard_focus", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_493pop_allow_keyboard_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_492pop_allow_keyboard_focus[] = "pop_allow_keyboard_focus()"; static PyObject *__pyx_pw_5imgui_4core_493pop_allow_keyboard_focus(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_allow_keyboard_focus (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_492pop_allow_keyboard_focus(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_492pop_allow_keyboard_focus(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_allow_keyboard_focus", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_pop_allow_keyboard_focus(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.pop_allow_keyboard_focus", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11357 * cimgui.PopAllowKeyboardFocus() * * cpdef push_button_repeat(bool repeat): # <<<<<<<<<<<<<< * cimgui.PushButtonRepeat(repeat) * */ static PyObject *__pyx_pw_5imgui_4core_495push_button_repeat(PyObject *__pyx_self, PyObject *__pyx_arg_repeat); /*proto*/ static PyObject *__pyx_f_5imgui_4core_push_button_repeat(bool __pyx_v_repeat, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_button_repeat", 0); /* "imgui/core.pyx":11358 * * cpdef push_button_repeat(bool repeat): * cimgui.PushButtonRepeat(repeat) # <<<<<<<<<<<<<< * * cpdef pop_button_repeat(): */ try { ImGui::PushButtonRepeat(__pyx_v_repeat); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11358, __pyx_L1_error) } /* "imgui/core.pyx":11357 * cimgui.PopAllowKeyboardFocus() * * cpdef push_button_repeat(bool repeat): # <<<<<<<<<<<<<< * cimgui.PushButtonRepeat(repeat) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.push_button_repeat", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_495push_button_repeat(PyObject *__pyx_self, PyObject *__pyx_arg_repeat); /*proto*/ static char __pyx_doc_5imgui_4core_494push_button_repeat[] = "push_button_repeat(bool repeat)"; static PyObject *__pyx_pw_5imgui_4core_495push_button_repeat(PyObject *__pyx_self, PyObject *__pyx_arg_repeat) { bool __pyx_v_repeat; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_button_repeat (wrapper)", 0); assert(__pyx_arg_repeat); { __pyx_v_repeat = __Pyx_PyObject_IsTrue(__pyx_arg_repeat); if (unlikely((__pyx_v_repeat == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11357, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.push_button_repeat", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_494push_button_repeat(__pyx_self, ((bool)__pyx_v_repeat)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_494push_button_repeat(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_repeat) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_button_repeat", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_push_button_repeat(__pyx_v_repeat, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.push_button_repeat", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11360 * cimgui.PushButtonRepeat(repeat) * * cpdef pop_button_repeat(): # <<<<<<<<<<<<<< * cimgui.PopButtonRepeat() * */ static PyObject *__pyx_pw_5imgui_4core_497pop_button_repeat(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_button_repeat(CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_button_repeat", 0); /* "imgui/core.pyx":11361 * * cpdef pop_button_repeat(): * cimgui.PopButtonRepeat() # <<<<<<<<<<<<<< * * cpdef pop_style_color(unsigned int count=1): */ try { ImGui::PopButtonRepeat(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11361, __pyx_L1_error) } /* "imgui/core.pyx":11360 * cimgui.PushButtonRepeat(repeat) * * cpdef pop_button_repeat(): # <<<<<<<<<<<<<< * cimgui.PopButtonRepeat() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_button_repeat", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_497pop_button_repeat(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_496pop_button_repeat[] = "pop_button_repeat()"; static PyObject *__pyx_pw_5imgui_4core_497pop_button_repeat(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_button_repeat (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_496pop_button_repeat(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_496pop_button_repeat(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_button_repeat", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core_pop_button_repeat(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.pop_button_repeat", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11363 * cimgui.PopButtonRepeat() * * cpdef pop_style_color(unsigned int count=1): # <<<<<<<<<<<<<< * """Pop style color from stack. * */ static PyObject *__pyx_pw_5imgui_4core_499pop_style_color(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_5imgui_4core_pop_style_color(CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5imgui_4core_pop_style_color *__pyx_optional_args) { unsigned int __pyx_v_count = ((unsigned int)1); PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_style_color", 0); if (__pyx_optional_args) { if (__pyx_optional_args->__pyx_n > 0) { __pyx_v_count = __pyx_optional_args->count; } } /* "imgui/core.pyx":11377 * void PopStyleColor(int count = 1) * """ * cimgui.PopStyleColor(count) # <<<<<<<<<<<<<< * * */ try { ImGui::PopStyleColor(__pyx_v_count); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11377, __pyx_L1_error) } /* "imgui/core.pyx":11363 * cimgui.PopButtonRepeat() * * cpdef pop_style_color(unsigned int count=1): # <<<<<<<<<<<<<< * """Pop style color from stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_style_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_499pop_style_color(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_498pop_style_color[] = "pop_style_color(unsigned int count=1)\nPop style color from stack.\n\n **Note:** This implementation guards you from segfaults caused by\n redundant stack pops (raises exception if this happens) but generally\n it is safer and easier to use :func:`styled` or :func:`istyled` context\n managers. See: :any:`push_style_color()`.\n\n Args:\n count (int): number of variables to pop from style color stack.\n\n .. wraps::\n void PopStyleColor(int count = 1)\n "; static PyObject *__pyx_pw_5imgui_4core_499pop_style_color(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { unsigned int __pyx_v_count; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_style_color (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_count,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_count); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "pop_style_color") < 0)) __PYX_ERR(0, 11363, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_count = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11363, __pyx_L3_error) } else { __pyx_v_count = ((unsigned int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("pop_style_color", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11363, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.pop_style_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_498pop_style_color(__pyx_self, __pyx_v_count); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_498pop_style_color(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_count) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct __pyx_opt_args_5imgui_4core_pop_style_color __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_style_color", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.count = __pyx_v_count; __pyx_t_1 = __pyx_f_5imgui_4core_pop_style_color(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.pop_style_color", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11380 * * * def separator(): # <<<<<<<<<<<<<< * """Add vertical line as a separator beween elements. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_501separator(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_500separator[] = "separator()\nAdd vertical line as a separator beween elements.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n imgui.begin(\"Example: separators\")\n\n imgui.text(\"Some text with bullets\")\n imgui.bullet_text(\"Bullet A\")\n imgui.bullet_text(\"Bullet A\")\n\n imgui.separator()\n\n imgui.text(\"Another text with bullets\")\n imgui.bullet_text(\"Bullet A\")\n imgui.bullet_text(\"Bullet A\")\n\n imgui.end()\n\n .. wraps::\n void Separator()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_501separator = {"separator", (PyCFunction)__pyx_pw_5imgui_4core_501separator, METH_NOARGS, __pyx_doc_5imgui_4core_500separator}; static PyObject *__pyx_pw_5imgui_4core_501separator(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("separator (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_500separator(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_500separator(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("separator", 0); /* "imgui/core.pyx":11404 * void Separator() * """ * cimgui.Separator() # <<<<<<<<<<<<<< * * */ try { ImGui::Separator(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11404, __pyx_L1_error) } /* "imgui/core.pyx":11380 * * * def separator(): # <<<<<<<<<<<<<< * """Add vertical line as a separator beween elements. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.separator", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11407 * * * def same_line(float position=0.0, float spacing=-1.0): # <<<<<<<<<<<<<< * """Call between widgets or groups to layout them horizontally. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_503same_line(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_502same_line[] = "same_line(float position=0.0, float spacing=-1.0)\nCall between widgets or groups to layout them horizontally.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n imgui.begin(\"Example: same line widgets\")\n\n imgui.text(\"same_line() with defaults:\")\n imgui.button(\"yes\"); imgui.same_line()\n imgui.button(\"no\")\n\n imgui.text(\"same_line() with fixed position:\")\n imgui.button(\"yes\"); imgui.same_line(position=50)\n imgui.button(\"no\")\n\n imgui.text(\"same_line() with spacing:\")\n imgui.button(\"yes\"); imgui.same_line(spacing=50)\n imgui.button(\"no\")\n\n imgui.end()\n\n Args:\n position (float): fixed horizontal position position.\n spacing (float): spacing between elements.\n\n .. wraps::\n void SameLine(float pos_x = 0.0f, float spacing_w = -1.0f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_503same_line = {"same_line", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_503same_line, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_502same_line}; static PyObject *__pyx_pw_5imgui_4core_503same_line(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_position; float __pyx_v_spacing; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("same_line (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_position,&__pyx_n_s_spacing,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_position); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_spacing); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "same_line") < 0)) __PYX_ERR(0, 11407, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_position = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_position == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11407, __pyx_L3_error) } else { __pyx_v_position = ((float)0.0); } if (values[1]) { __pyx_v_spacing = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_spacing == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11407, __pyx_L3_error) } else { __pyx_v_spacing = ((float)-1.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("same_line", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11407, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.same_line", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_502same_line(__pyx_self, __pyx_v_position, __pyx_v_spacing); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_502same_line(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_position, float __pyx_v_spacing) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("same_line", 0); /* "imgui/core.pyx":11437 * void SameLine(float pos_x = 0.0f, float spacing_w = -1.0f) * """ * cimgui.SameLine(position, spacing) # <<<<<<<<<<<<<< * * */ try { ImGui::SameLine(__pyx_v_position, __pyx_v_spacing); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11437, __pyx_L1_error) } /* "imgui/core.pyx":11407 * * * def same_line(float position=0.0, float spacing=-1.0): # <<<<<<<<<<<<<< * """Call between widgets or groups to layout them horizontally. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.same_line", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11440 * * * def new_line(): # <<<<<<<<<<<<<< * """Undo :any:`same_line()` call. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_505new_line(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_504new_line[] = "new_line()\nUndo :any:`same_line()` call.\n\n .. wraps::\n void NewLine()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_505new_line = {"new_line", (PyCFunction)__pyx_pw_5imgui_4core_505new_line, METH_NOARGS, __pyx_doc_5imgui_4core_504new_line}; static PyObject *__pyx_pw_5imgui_4core_505new_line(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("new_line (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_504new_line(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_504new_line(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("new_line", 0); /* "imgui/core.pyx":11446 * void NewLine() * """ * cimgui.NewLine() # <<<<<<<<<<<<<< * * */ try { ImGui::NewLine(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11446, __pyx_L1_error) } /* "imgui/core.pyx":11440 * * * def new_line(): # <<<<<<<<<<<<<< * """Undo :any:`same_line()` call. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.new_line", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11449 * * * def spacing(): # <<<<<<<<<<<<<< * """Add vertical spacing beween elements. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_507spacing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_506spacing[] = "spacing()\nAdd vertical spacing beween elements.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n imgui.begin(\"Example: vertical spacing\")\n\n imgui.text(\"Some text with bullets:\")\n imgui.bullet_text(\"Bullet A\")\n imgui.bullet_text(\"Bullet A\")\n\n imgui.spacing(); imgui.spacing()\n\n imgui.text(\"Another text with bullets:\")\n imgui.bullet_text(\"Bullet A\")\n imgui.bullet_text(\"Bullet A\")\n\n imgui.end()\n\n .. wraps::\n void Spacing()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_507spacing = {"spacing", (PyCFunction)__pyx_pw_5imgui_4core_507spacing, METH_NOARGS, __pyx_doc_5imgui_4core_506spacing}; static PyObject *__pyx_pw_5imgui_4core_507spacing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("spacing (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_506spacing(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_506spacing(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("spacing", 0); /* "imgui/core.pyx":11473 * void Spacing() * """ * cimgui.Spacing() # <<<<<<<<<<<<<< * * */ try { ImGui::Spacing(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11473, __pyx_L1_error) } /* "imgui/core.pyx":11449 * * * def spacing(): # <<<<<<<<<<<<<< * """Add vertical spacing beween elements. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.spacing", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11476 * * * def dummy(width, height): # <<<<<<<<<<<<<< * """Add dummy element of given size. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_509dummy(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_508dummy[] = "dummy(width, height)\nAdd dummy element of given size.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n imgui.begin(\"Example: dummy elements\")\n\n imgui.text(\"Some text with bullets:\")\n imgui.bullet_text(\"Bullet A\")\n imgui.bullet_text(\"Bullet B\")\n\n imgui.dummy(0, 50)\n imgui.bullet_text(\"Text after dummy\")\n\n imgui.end()\n\n .. wraps::\n void Dummy(const ImVec2& size)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_509dummy = {"dummy", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_509dummy, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_508dummy}; static PyObject *__pyx_pw_5imgui_4core_509dummy(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_width = 0; PyObject *__pyx_v_height = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("dummy (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,&__pyx_n_s_height,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("dummy", 1, 2, 2, 1); __PYX_ERR(0, 11476, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "dummy") < 0)) __PYX_ERR(0, 11476, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_width = values[0]; __pyx_v_height = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("dummy", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11476, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.dummy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_508dummy(__pyx_self, __pyx_v_width, __pyx_v_height); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_508dummy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_width, PyObject *__pyx_v_height) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; float __pyx_t_2; ImVec2 __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("dummy", 0); /* "imgui/core.pyx":11497 * void Dummy(const ImVec2& size) * """ * cimgui.Dummy(_cast_args_ImVec2(width, height)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_width); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11497, __pyx_L1_error) __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_v_height); if (unlikely((__pyx_t_2 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11497, __pyx_L1_error) __pyx_t_3 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_t_1, __pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11497, __pyx_L1_error) try { ImGui::Dummy(__pyx_t_3); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11497, __pyx_L1_error) } /* "imgui/core.pyx":11476 * * * def dummy(width, height): # <<<<<<<<<<<<<< * """Add dummy element of given size. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.dummy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11500 * * * def indent(float width=0.0): # <<<<<<<<<<<<<< * """Move content to right by indent width. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_511indent(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_510indent[] = "indent(float width=0.0)\nMove content to right by indent width.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n imgui.begin(\"Example: item indenting\")\n\n imgui.text(\"Some text with bullets:\")\n\n imgui.bullet_text(\"Bullet A\")\n imgui.indent()\n imgui.bullet_text(\"Bullet B (first indented)\")\n imgui.bullet_text(\"Bullet C (indent continues)\")\n imgui.unindent()\n imgui.bullet_text(\"Bullet D (indent cleared)\")\n\n imgui.end()\n\n Args:\n width (float): fixed width of indent. If less or equal 0 it defaults\n to global indent spacing or value set using style value stack\n (see :any:`push_style_var`).\n\n .. wraps::\n void Indent(float indent_w = 0.0f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_511indent = {"indent", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_511indent, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_510indent}; static PyObject *__pyx_pw_5imgui_4core_511indent(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_width; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("indent (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "indent") < 0)) __PYX_ERR(0, 11500, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_width = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11500, __pyx_L3_error) } else { __pyx_v_width = ((float)0.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("indent", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11500, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.indent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_510indent(__pyx_self, __pyx_v_width); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_510indent(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("indent", 0); /* "imgui/core.pyx":11528 * void Indent(float indent_w = 0.0f) * """ * cimgui.Indent(width) # <<<<<<<<<<<<<< * * */ try { ImGui::Indent(__pyx_v_width); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11528, __pyx_L1_error) } /* "imgui/core.pyx":11500 * * * def indent(float width=0.0): # <<<<<<<<<<<<<< * """Move content to right by indent width. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.indent", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11531 * * * def unindent(float width=0.0): # <<<<<<<<<<<<<< * """Move content to left by indent width. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_513unindent(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_512unindent[] = "unindent(float width=0.0)\nMove content to left by indent width.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n imgui.begin(\"Example: item unindenting\")\n\n imgui.text(\"Some text with bullets:\")\n\n imgui.bullet_text(\"Bullet A\")\n imgui.unindent(10)\n imgui.bullet_text(\"Bullet B (first unindented)\")\n imgui.bullet_text(\"Bullet C (unindent continues)\")\n imgui.indent(10)\n imgui.bullet_text(\"Bullet C (unindent cleared)\")\n\n imgui.end()\n\n Args:\n width (float): fixed width of indent. If less or equal 0 it defaults\n to global indent spacing or value set using style value stack\n (see :any:`push_style_var`).\n\n .. wraps::\n void Unindent(float indent_w = 0.0f)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_513unindent = {"unindent", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_513unindent, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_512unindent}; static PyObject *__pyx_pw_5imgui_4core_513unindent(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_width; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("unindent (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "unindent") < 0)) __PYX_ERR(0, 11531, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_width = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11531, __pyx_L3_error) } else { __pyx_v_width = ((float)0.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("unindent", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11531, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.unindent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_512unindent(__pyx_self, __pyx_v_width); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_512unindent(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_width) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("unindent", 0); /* "imgui/core.pyx":11559 * void Unindent(float indent_w = 0.0f) * """ * cimgui.Unindent(width) # <<<<<<<<<<<<<< * * */ try { ImGui::Unindent(__pyx_v_width); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11559, __pyx_L1_error) } /* "imgui/core.pyx":11531 * * * def unindent(float width=0.0): # <<<<<<<<<<<<<< * """Move content to left by indent width. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.unindent", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11562 * * * def columns(int count=1, str identifier=None, bool border=True): # <<<<<<<<<<<<<< * """Setup number of columns. Use an identifier to distinguish multiple * column sets. close with ``columns(1)``. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_515columns(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_514columns[] = "columns(int count=1, str identifier=None, bool border=True)\nSetup number of columns. Use an identifier to distinguish multiple\n column sets. close with ``columns(1)``.\n\n Legacy Columns API (2020: prefer using Tables!)\n\n .. visual-example::\n :auto_layout:\n :width: 500\n :height: 300\n\n imgui.begin(\"Example: Columns - File list\")\n imgui.columns(4, 'fileLlist')\n imgui.separator()\n imgui.text(\"ID\")\n imgui.next_column()\n imgui.text(\"File\")\n imgui.next_column()\n imgui.text(\"Size\")\n imgui.next_column()\n imgui.text(\"Last Modified\")\n imgui.next_column()\n imgui.separator()\n imgui.set_column_offset(1, 40)\n\n imgui.next_column()\n imgui.text('FileA.txt')\n imgui.next_column()\n imgui.text('57 Kb')\n imgui.next_column()\n imgui.text('12th Feb, 2016 12:19:01')\n imgui.next_column()\n\n imgui.next_column()\n imgui.text('ImageQ.png')\n imgui.next_column()\n imgui.text('349 Kb')\n imgui.next_column()\n imgui.text('1st Mar, 2016 06:38:22')\n imgui.next_column()\n\n imgui.columns(1)\n imgui.end()\n\n Args:\n count (int): Columns count.\n identifier (str): Table identifier.\n border (bool): Display border, defaults to ``True``.\n\n .. wraps::\n void Columns(\n int count = 1,\n const char* id = NULL,\n bool border = true\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_515columns = {"columns", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_515columns, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_514columns}; static PyObject *__pyx_pw_5imgui_4core_515columns(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_count; PyObject *__pyx_v_identifier = 0; bool __pyx_v_border; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("columns (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_count,&__pyx_n_s_identifier,&__pyx_n_s_border,0}; PyObject* values[3] = {0,0,0}; values[1] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_count); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_identifier); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_border); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "columns") < 0)) __PYX_ERR(0, 11562, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_count = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11562, __pyx_L3_error) } else { __pyx_v_count = ((int)1); } __pyx_v_identifier = ((PyObject*)values[1]); if (values[2]) { __pyx_v_border = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_border == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11562, __pyx_L3_error) } else { __pyx_v_border = ((bool)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("columns", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11562, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.columns", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_identifier), (&PyString_Type), 1, "identifier", 1))) __PYX_ERR(0, 11562, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_514columns(__pyx_self, __pyx_v_count, __pyx_v_identifier, __pyx_v_border); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_514columns(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_count, PyObject *__pyx_v_identifier, bool __pyx_v_border) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char const *__pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("columns", 0); /* "imgui/core.pyx":11618 * ) * """ * if identifier is None: # <<<<<<<<<<<<<< * cimgui.Columns(count, NULL, border) * else: */ __pyx_t_1 = (__pyx_v_identifier == ((PyObject*)Py_None)); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "imgui/core.pyx":11619 * """ * if identifier is None: * cimgui.Columns(count, NULL, border) # <<<<<<<<<<<<<< * else: * cimgui.Columns(count, _bytes(identifier), border) */ try { ImGui::Columns(__pyx_v_count, NULL, __pyx_v_border); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11619, __pyx_L1_error) } /* "imgui/core.pyx":11618 * ) * """ * if identifier is None: # <<<<<<<<<<<<<< * cimgui.Columns(count, NULL, border) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":11621 * cimgui.Columns(count, NULL, border) * else: * cimgui.Columns(count, _bytes(identifier), border) # <<<<<<<<<<<<<< * * */ /*else*/ { __pyx_t_3 = __pyx_f_5imgui_4core__bytes(__pyx_v_identifier); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 11621, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyBytes_AsString(__pyx_t_3); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 11621, __pyx_L1_error) try { ImGui::Columns(__pyx_v_count, __pyx_t_4, __pyx_v_border); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11621, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_L3:; /* "imgui/core.pyx":11562 * * * def columns(int count=1, str identifier=None, bool border=True): # <<<<<<<<<<<<<< * """Setup number of columns. Use an identifier to distinguish multiple * column sets. close with ``columns(1)``. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.columns", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11624 * * * def next_column(): # <<<<<<<<<<<<<< * """Move to the next column drawing. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_517next_column(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_516next_column[] = "next_column()\nMove to the next column drawing.\n\n For a complete example see :func:`columns()`.\n\n Legacy Columns API (2020: prefer using Tables!)\n\n .. wraps::\n void NextColumn()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_517next_column = {"next_column", (PyCFunction)__pyx_pw_5imgui_4core_517next_column, METH_NOARGS, __pyx_doc_5imgui_4core_516next_column}; static PyObject *__pyx_pw_5imgui_4core_517next_column(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("next_column (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_516next_column(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_516next_column(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("next_column", 0); /* "imgui/core.pyx":11634 * void NextColumn() * """ * cimgui.NextColumn() # <<<<<<<<<<<<<< * * */ try { ImGui::NextColumn(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11634, __pyx_L1_error) } /* "imgui/core.pyx":11624 * * * def next_column(): # <<<<<<<<<<<<<< * """Move to the next column drawing. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.next_column", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11637 * * * def get_column_index(): # <<<<<<<<<<<<<< * """Returns the current column index. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_519get_column_index(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_518get_column_index[] = "get_column_index()\nReturns the current column index.\n\n For a complete example see :func:`columns()`.\n\n Legacy Columns API (2020: prefer using Tables!)\n\n Returns:\n int: the current column index.\n\n .. wraps::\n int GetColumnIndex()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_519get_column_index = {"get_column_index", (PyCFunction)__pyx_pw_5imgui_4core_519get_column_index, METH_NOARGS, __pyx_doc_5imgui_4core_518get_column_index}; static PyObject *__pyx_pw_5imgui_4core_519get_column_index(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_column_index (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_518get_column_index(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_518get_column_index(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_column_index", 0); /* "imgui/core.pyx":11650 * int GetColumnIndex() * """ * return cimgui.GetColumnIndex() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetColumnIndex(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11650, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11637 * * * def get_column_index(): # <<<<<<<<<<<<<< * """Returns the current column index. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_column_index", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11653 * * * def get_column_offset(int column_index=-1): # <<<<<<<<<<<<<< * """Returns position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column, otherwise 0 to */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_521get_column_offset(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_520get_column_offset[] = "get_column_offset(int column_index=-1)\nReturns position of column line (in pixels, from the left side of the\n contents region). Pass -1 to use current column, otherwise 0 to\n :func:`get_columns_count()`. Column 0 is usually 0.0f and not resizable\n unless you call this method.\n\n For a complete example see :func:`columns()`.\n\n Legacy Columns API (2020: prefer using Tables!)\n\n Args:\n column_index (int): index of the column to get the offset for.\n\n Returns:\n float: the position in pixels from the left side.\n\n .. wraps::\n float GetColumnOffset(int column_index = -1)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_521get_column_offset = {"get_column_offset", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_521get_column_offset, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_520get_column_offset}; static PyObject *__pyx_pw_5imgui_4core_521get_column_offset(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_column_index; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_column_offset (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_column_index,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_column_index); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_column_offset") < 0)) __PYX_ERR(0, 11653, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_column_index = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_column_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11653, __pyx_L3_error) } else { __pyx_v_column_index = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("get_column_offset", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11653, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_column_offset", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_520get_column_offset(__pyx_self, __pyx_v_column_index); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_520get_column_offset(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_index) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_column_offset", 0); /* "imgui/core.pyx":11672 * float GetColumnOffset(int column_index = -1) * """ * return cimgui.GetColumnOffset(column_index) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetColumnOffset(__pyx_v_column_index); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11672, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11653 * * * def get_column_offset(int column_index=-1): # <<<<<<<<<<<<<< * """Returns position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column, otherwise 0 to */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_column_offset", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11675 * * * def set_column_offset(int column_index, float offset_x): # <<<<<<<<<<<<<< * """Set the position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_523set_column_offset(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_522set_column_offset[] = "set_column_offset(int column_index, float offset_x)\nSet the position of column line (in pixels, from the left side of the\n contents region). Pass -1 to use current column.\n\n For a complete example see :func:`columns()`.\n\n Legacy Columns API (2020: prefer using Tables!)\n\n Args:\n column_index (int): index of the column to get the offset for.\n offset_x (float): offset in pixels.\n\n .. wraps::\n void SetColumnOffset(int column_index, float offset_x)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_523set_column_offset = {"set_column_offset", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_523set_column_offset, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_522set_column_offset}; static PyObject *__pyx_pw_5imgui_4core_523set_column_offset(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_column_index; float __pyx_v_offset_x; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_column_offset (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_column_index,&__pyx_n_s_offset_x,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_column_index)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_column_offset", 1, 2, 2, 1); __PYX_ERR(0, 11675, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_column_offset") < 0)) __PYX_ERR(0, 11675, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_column_index = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_column_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11675, __pyx_L3_error) __pyx_v_offset_x = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_offset_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11675, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_column_offset", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11675, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_column_offset", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_522set_column_offset(__pyx_self, __pyx_v_column_index, __pyx_v_offset_x); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_522set_column_offset(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_index, float __pyx_v_offset_x) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_column_offset", 0); /* "imgui/core.pyx":11690 * void SetColumnOffset(int column_index, float offset_x) * """ * cimgui.SetColumnOffset(column_index, offset_x) # <<<<<<<<<<<<<< * * */ try { ImGui::SetColumnOffset(__pyx_v_column_index, __pyx_v_offset_x); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11690, __pyx_L1_error) } /* "imgui/core.pyx":11675 * * * def set_column_offset(int column_index, float offset_x): # <<<<<<<<<<<<<< * """Set the position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_column_offset", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11693 * * * def get_column_width(int column_index=-1): # <<<<<<<<<<<<<< * """Return the column width. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_525get_column_width(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_524get_column_width[] = "get_column_width(int column_index=-1)\nReturn the column width.\n\n For a complete example see :func:`columns()`.\n\n Legacy Columns API (2020: prefer using Tables!)\n\n Args:\n column_index (int): index of the column to get the width for.\n\n .. wraps::\n float GetColumnWidth(int column_index = -1)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_525get_column_width = {"get_column_width", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_525get_column_width, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_524get_column_width}; static PyObject *__pyx_pw_5imgui_4core_525get_column_width(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_column_index; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_column_width (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_column_index,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_column_index); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_column_width") < 0)) __PYX_ERR(0, 11693, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_column_index = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_column_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11693, __pyx_L3_error) } else { __pyx_v_column_index = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("get_column_width", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11693, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.get_column_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_524get_column_width(__pyx_self, __pyx_v_column_index); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_524get_column_width(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_index) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_column_width", 0); /* "imgui/core.pyx":11706 * float GetColumnWidth(int column_index = -1) * """ * return cimgui.GetColumnWidth(column_index) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetColumnWidth(__pyx_v_column_index); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11706, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11693 * * * def get_column_width(int column_index=-1): # <<<<<<<<<<<<<< * """Return the column width. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_column_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11709 * * * def set_column_width(int column_index, float width): # <<<<<<<<<<<<<< * """Set the position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_527set_column_width(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_526set_column_width[] = "set_column_width(int column_index, float width)\nSet the position of column line (in pixels, from the left side of the\n contents region). Pass -1 to use current column.\n\n For a complete example see :func:`columns()`.\n\n Legacy Columns API (2020: prefer using Tables!)\n\n Args:\n column_index (int): index of the column to set the width for.\n width (float): width in pixels.\n\n .. wraps::\n void SetColumnWidth(int column_index, float width)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_527set_column_width = {"set_column_width", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_527set_column_width, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_526set_column_width}; static PyObject *__pyx_pw_5imgui_4core_527set_column_width(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_column_index; float __pyx_v_width; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_column_width (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_column_index,&__pyx_n_s_width,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_column_index)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_column_width", 1, 2, 2, 1); __PYX_ERR(0, 11709, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_column_width") < 0)) __PYX_ERR(0, 11709, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_column_index = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_column_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11709, __pyx_L3_error) __pyx_v_width = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_width == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 11709, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_column_width", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11709, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_column_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_526set_column_width(__pyx_self, __pyx_v_column_index, __pyx_v_width); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_526set_column_width(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_column_index, float __pyx_v_width) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_column_width", 0); /* "imgui/core.pyx":11724 * void SetColumnWidth(int column_index, float width) * """ * cimgui.SetColumnWidth(column_index, width) # <<<<<<<<<<<<<< * * */ try { ImGui::SetColumnWidth(__pyx_v_column_index, __pyx_v_width); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11724, __pyx_L1_error) } /* "imgui/core.pyx":11709 * * * def set_column_width(int column_index, float width): # <<<<<<<<<<<<<< * """Set the position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_column_width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11727 * * * def get_columns_count(): # <<<<<<<<<<<<<< * """Get count of the columns in the current table. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_529get_columns_count(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_528get_columns_count[] = "get_columns_count()\nGet count of the columns in the current table.\n\n For a complete example see :func:`columns()`.\n\n Legacy Columns API (2020: prefer using Tables!)\n\n Returns:\n int: columns count.\n\n .. wraps::\n int GetColumnsCount()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_529get_columns_count = {"get_columns_count", (PyCFunction)__pyx_pw_5imgui_4core_529get_columns_count, METH_NOARGS, __pyx_doc_5imgui_4core_528get_columns_count}; static PyObject *__pyx_pw_5imgui_4core_529get_columns_count(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_columns_count (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_528get_columns_count(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_528get_columns_count(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_columns_count", 0); /* "imgui/core.pyx":11740 * int GetColumnsCount() * """ * return cimgui.GetColumnsCount() # <<<<<<<<<<<<<< * * cdef class _BeginEndTabBar(object): */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetColumnsCount(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11740, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11727 * * * def get_columns_count(): # <<<<<<<<<<<<<< * """Get count of the columns in the current table. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_columns_count", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11757 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_15_BeginEndTabBar_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_15_BeginEndTabBar_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_opened,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11757, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_opened = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11757, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11757, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndTabBar.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self), __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_15_BeginEndTabBar___cinit__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":11758 * * def __cinit__(self, bool opened): * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":11757 * cdef readonly bool opened * * def __cinit__(self, bool opened): # <<<<<<<<<<<<<< * self.opened = opened * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11760 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_15_BeginEndTabBar_2__enter__[] = "_BeginEndTabBar.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":11761 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":11760 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11763 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndTabBar() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_15_BeginEndTabBar_4__exit__[] = "_BeginEndTabBar.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 11763, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 11763, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 11763, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11763, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndTabBar.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":11764 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndTabBar() * */ __pyx_t_1 = (__pyx_v_self->opened != 0); if (__pyx_t_1) { /* "imgui/core.pyx":11765 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: * cimgui.EndTabBar() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndTabBar(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11765, __pyx_L1_error) } /* "imgui/core.pyx":11764 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.opened: # <<<<<<<<<<<<<< * cimgui.EndTabBar() * */ } /* "imgui/core.pyx":11763 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.opened: * cimgui.EndTabBar() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndTabBar.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11767 * cimgui.EndTabBar() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_15_BeginEndTabBar_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_15_BeginEndTabBar_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_15_BeginEndTabBar_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":11769 * def __bool__(self): * """For legacy support, returns ``opened``.""" * return self.opened # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->opened; goto __pyx_L0; /* "imgui/core.pyx":11767 * cimgui.EndTabBar() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``opened``.""" * return self.opened */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11771 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":11772 * * def __repr__(self): * return "{}(opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_opened_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":11773 * def __repr__(self): * return "{}(opened={})".format( * self.__class__.__name__, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11772, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11772, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":11771 * return self.opened * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(opened={})".format( * self.__class__.__name__, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndTabBar.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11776 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":11777 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":11778 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.opened is other.opened # <<<<<<<<<<<<<< * return self.opened is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":11777 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.opened is other.opened * return self.opened is other */ } /* "imgui/core.pyx":11779 * if other.__class__ is self.__class__: * return self.opened is other.opened * return self.opened is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":11776 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.opened is other.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndTabBar.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11755 * """ * * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTabBar.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_15_BeginEndTabBar_12__reduce_cython__[] = "_BeginEndTabBar.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__104, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTabBar.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_15_BeginEndTabBar_14__setstate_cython__[] = "_BeginEndTabBar.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_15_BeginEndTabBar_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_15_BeginEndTabBar_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndTabBar *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_15_BeginEndTabBar_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTabBar *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__105, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTabBar.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11782 * * * def begin_tab_bar(str identifier, cimgui.ImGuiTabBarFlags flags = 0): # <<<<<<<<<<<<<< * """Create and append into a TabBar * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_531begin_tab_bar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_530begin_tab_bar[] = "begin_tab_bar(str identifier, ImGuiTabBarFlags flags=0)\nCreate and append into a TabBar\n\n Args:\n identifier(str): String identifier of the tab window\n flags: ImGuiTabBarFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n _BeginEndTabBar: Use ``opened`` bool attribute to tell if the Tab Bar is open.\n Only call :func:`end_tab_bar` if ``opened`` is True.\n Use with ``with`` to automatically call :func:`end_tab_bar` if necessary when the block ends.\n\n .. wraps::\n bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0)\n\n "; static PyMethodDef __pyx_mdef_5imgui_4core_531begin_tab_bar = {"begin_tab_bar", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_531begin_tab_bar, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_530begin_tab_bar}; static PyObject *__pyx_pw_5imgui_4core_531begin_tab_bar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_identifier = 0; ImGuiTabBarFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_tab_bar (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_identifier,&__pyx_n_s_flags,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_identifier)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_tab_bar") < 0)) __PYX_ERR(0, 11782, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_identifier = ((PyObject*)values[0]); if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiTabBarFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImGuiTabBarFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11782, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiTabBarFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_tab_bar", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11782, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_tab_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_identifier), (&PyString_Type), 1, "identifier", 1))) __PYX_ERR(0, 11782, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_530begin_tab_bar(__pyx_self, __pyx_v_identifier, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_530begin_tab_bar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_identifier, ImGuiTabBarFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_tab_bar", 0); /* "imgui/core.pyx":11799 * * """ * return _BeginEndTabBar.__new__( # <<<<<<<<<<<<<< * _BeginEndTabBar, * cimgui.BeginTabBar(_bytes(identifier), flags) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":11801 * return _BeginEndTabBar.__new__( * _BeginEndTabBar, * cimgui.BeginTabBar(_bytes(identifier), flags) # <<<<<<<<<<<<<< * ) * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_identifier); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 11801, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 11801, __pyx_L1_error) try { __pyx_t_3 = ImGui::BeginTabBar(__pyx_t_2, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11801, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":11799 * * """ * return _BeginEndTabBar.__new__( # <<<<<<<<<<<<<< * _BeginEndTabBar, * cimgui.BeginTabBar(_bytes(identifier), flags) */ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndTabBar(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndTabBar), __pyx_t_4, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11799, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":11782 * * * def begin_tab_bar(str identifier, cimgui.ImGuiTabBarFlags flags = 0): # <<<<<<<<<<<<<< * """Create and append into a TabBar * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core.begin_tab_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11804 * ) * * def end_tab_bar(): # <<<<<<<<<<<<<< * """End a previously opened tab bar. * Only call this function if ``begin_tab_bar().opened`` is True. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_533end_tab_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_532end_tab_bar[] = "end_tab_bar()\nEnd a previously opened tab bar.\n Only call this function if ``begin_tab_bar().opened`` is True.\n\n .. wraps::\n void EndTabBar()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_533end_tab_bar = {"end_tab_bar", (PyCFunction)__pyx_pw_5imgui_4core_533end_tab_bar, METH_NOARGS, __pyx_doc_5imgui_4core_532end_tab_bar}; static PyObject *__pyx_pw_5imgui_4core_533end_tab_bar(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_tab_bar (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_532end_tab_bar(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_532end_tab_bar(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_tab_bar", 0); /* "imgui/core.pyx":11811 * void EndTabBar() * """ * cimgui.EndTabBar() # <<<<<<<<<<<<<< * * cdef class _BeginEndTabItem(object): */ try { ImGui::EndTabBar(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11811, __pyx_L1_error) } /* "imgui/core.pyx":11804 * ) * * def end_tab_bar(): # <<<<<<<<<<<<<< * """End a previously opened tab bar. * Only call this function if ``begin_tab_bar().opened`` is True. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_tab_bar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11830 * cdef readonly bool opened * * def __cinit__(self, bool selected, bool opened): # <<<<<<<<<<<<<< * self.selected = selected * self.opened = opened */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_16_BeginEndTabItem_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_16_BeginEndTabItem_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_selected; bool __pyx_v_opened; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_selected,&__pyx_n_s_opened,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_selected)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); __PYX_ERR(0, 11830, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11830, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_selected = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_selected == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11830, __pyx_L3_error) __pyx_v_opened = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_opened == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11830, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11830, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self), __pyx_v_selected, __pyx_v_opened); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_16_BeginEndTabItem___cinit__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, bool __pyx_v_selected, bool __pyx_v_opened) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":11831 * * def __cinit__(self, bool selected, bool opened): * self.selected = selected # <<<<<<<<<<<<<< * self.opened = opened * */ __pyx_v_self->selected = __pyx_v_selected; /* "imgui/core.pyx":11832 * def __cinit__(self, bool selected, bool opened): * self.selected = selected * self.opened = opened # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->opened = __pyx_v_opened; /* "imgui/core.pyx":11830 * cdef readonly bool opened * * def __cinit__(self, bool selected, bool opened): # <<<<<<<<<<<<<< * self.selected = selected * self.opened = opened */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11834 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTabItem_2__enter__[] = "_BeginEndTabItem.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":11835 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":11834 * self.opened = opened * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11837 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.selected: * cimgui.EndTabItem() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTabItem_4__exit__[] = "_BeginEndTabItem.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 11837, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 11837, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 11837, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11837, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":11838 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.selected: # <<<<<<<<<<<<<< * cimgui.EndTabItem() * */ __pyx_t_1 = (__pyx_v_self->selected != 0); if (__pyx_t_1) { /* "imgui/core.pyx":11839 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.selected: * cimgui.EndTabItem() # <<<<<<<<<<<<<< * * def __getitem__(self, item): */ try { ImGui::EndTabItem(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11839, __pyx_L1_error) } /* "imgui/core.pyx":11838 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.selected: # <<<<<<<<<<<<<< * cimgui.EndTabItem() * */ } /* "imgui/core.pyx":11837 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.selected: * cimgui.EndTabItem() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11841 * cimgui.EndTabItem() * * def __getitem__(self, item): # <<<<<<<<<<<<<< * """For legacy support, returns ``(selected, opened)[item]``.""" * return (self.selected, self.opened)[item] */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTabItem_6__getitem__[] = "For legacy support, returns ``(selected, opened)[item]``."; #if CYTHON_UPDATE_DESCRIPTOR_DOC struct wrapperbase __pyx_wrapperbase_5imgui_4core_16_BeginEndTabItem_6__getitem__; #endif static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_6__getitem__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self), ((PyObject *)__pyx_v_item)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_6__getitem__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); /* "imgui/core.pyx":11843 * def __getitem__(self, item): * """For legacy support, returns ``(selected, opened)[item]``.""" * return (self.selected, self.opened)[item] # <<<<<<<<<<<<<< * * def __iter__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->selected); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11841 * cimgui.EndTabItem() * * def __getitem__(self, item): # <<<<<<<<<<<<<< * """For legacy support, returns ``(selected, opened)[item]``.""" * return (self.selected, self.opened)[item] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11845 * return (self.selected, self.opened)[item] * * def __iter__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``iter((selected, opened))``.""" * return iter((self.selected, self.opened)) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_9__iter__(PyObject *__pyx_v_self); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTabItem_8__iter__[] = "For legacy support, returns ``iter((selected, opened))``."; #if CYTHON_UPDATE_DESCRIPTOR_DOC struct wrapperbase __pyx_wrapperbase_5imgui_4core_16_BeginEndTabItem_8__iter__; #endif static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_9__iter__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_8__iter__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_8__iter__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__iter__", 0); /* "imgui/core.pyx":11847 * def __iter__(self): * """For legacy support, returns ``iter((selected, opened))``.""" * return iter((self.selected, self.opened)) # <<<<<<<<<<<<<< * * def __repr__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->selected); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11845 * return (self.selected, self.opened)[item] * * def __iter__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``iter((selected, opened))``.""" * return iter((self.selected, self.opened)) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11849 * return iter((self.selected, self.opened)) * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(selected={}, opened={})".format( * self.__class__.__name__, self.selected, self.opened */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_11__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_11__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_10__repr__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_10__repr__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":11850 * * def __repr__(self): * return "{}(selected={}, opened={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.selected, self.opened * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_selected_opened, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":11851 * def __repr__(self): * return "{}(selected={}, opened={})".format( * self.__class__.__name__, self.selected, self.opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->selected); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_7 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11850, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11850, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_5); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":11849 * return iter((self.selected, self.opened)) * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(selected={}, opened={})".format( * self.__class__.__name__, self.selected, self.opened */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11854 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return (self.selected, self.opened) == (other.selected, other.opened) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_13__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_13__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_12__eq__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_12__eq__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":11855 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return (self.selected, self.opened) == (other.selected, other.opened) * return (self.selected, self.opened) == other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":11856 * def __eq__(self, other): * if other.__class__ is self.__class__: * return (self.selected, self.opened) == (other.selected, other.opened) # <<<<<<<<<<<<<< * return (self.selected, self.opened) == other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->selected); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_selected); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_opened); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_5, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":11855 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return (self.selected, self.opened) == (other.selected, other.opened) * return (self.selected, self.opened) == other */ } /* "imgui/core.pyx":11857 * if other.__class__ is self.__class__: * return (self.selected, self.opened) == (other.selected, other.opened) * return (self.selected, self.opened) == other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->selected); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_v_other, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11857, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":11854 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return (self.selected, self.opened) == (other.selected, other.opened) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11827 * """ * * cdef readonly bool selected # <<<<<<<<<<<<<< * cdef readonly bool opened * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_8selected_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_8selected_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_8selected___get__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_8selected___get__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->selected); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTabItem.selected.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11828 * * cdef readonly bool selected * cdef readonly bool opened # <<<<<<<<<<<<<< * * def __cinit__(self, bool selected, bool opened): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_6opened_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_6opened_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_6opened___get__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_6opened___get__(struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opened); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTabItem.opened.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTabItem_14__reduce_cython__[] = "_BeginEndTabItem.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_14__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__106, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_16_BeginEndTabItem_16__setstate_cython__[] = "_BeginEndTabItem.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_16_BeginEndTabItem_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_16_BeginEndTabItem_16__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndTabItem *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_16_BeginEndTabItem_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndTabItem *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__107, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndTabItem.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11860 * * * def begin_tab_item(str label, opened = None, cimgui.ImGuiTabItemFlags flags = 0): # <<<<<<<<<<<<<< * """Create a Tab. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_535begin_tab_item(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_534begin_tab_item[] = "begin_tab_item(str label, opened=None, ImGuiTabItemFlags flags=0)\nCreate a Tab.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n opened_state = True\n\n #...\n\n with imgui.begin(\"Example Tab Bar\"):\n with imgui.begin_tab_bar(\"MyTabBar\") as tab_bar:\n if tab_bar.opened:\n with imgui.begin_tab_item(\"Item 1\") as item1:\n if item1.selected:\n imgui.text(\"Here is the tab content!\")\n\n with imgui.begin_tab_item(\"Item 2\") as item2:\n if item2.selected:\n imgui.text(\"Another content...\")\n\n with imgui.begin_tab_item(\"Item 3\", opened=opened_state) as item3:\n opened_state = item3.opened\n if item3.selected:\n imgui.text(\"Hello Saylor!\")\n\n Example::\n\n opened_state = True\n\n #...\n\n imgui.begin(\"Example Tab Bar\")\n if imgui.begin_tab_bar(\"MyTabBar\"):\n\n if imgui.begin_tab_item(\"Item 1\").selected:\n imgui.text(\"Here is the tab content!\")\n imgui.end_tab_item()\n\n if imgui.begin_tab_item(\"Item 2\").selected:\n imgui.text(\"Another content...\")\n imgui.end_tab_item()\n\n selected, opened_state = imgui.begin_tab_item(\"Item 3\", opened=opened_state)\n if selected:\n imgui.text(\"Hello Saylor!\")\n imgui.end_tab_item()\n\n imgui.end_tab_bar()\n imgui.end()\n\n Args:\n label (str): Label of the tab item\n removable (bool): If True, the tab item can be removed\n flags: ImGuiTabItemFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n _BeginEndTabItem: ``(selected, opened)`` struct of bools."" If tab item is selected\n ``selected==True``. The value of ``opened`` is always True for\n non-removable and open tab items but changes state to False on close\n button click for removable tab items.\n Only call :func:`end_tab_item` if ``selected`` is True.\n Use with ``with`` to automatically call :func:`end_tab_item` if necessary when the block ends.\n\n .. wraps::\n bool BeginTabItem(\n const char* label,\n bool* p_open = NULL,\n ImGuiTabItemFlags flags = 0\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_535begin_tab_item = {"begin_tab_item", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_535begin_tab_item, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_534begin_tab_item}; static PyObject *__pyx_pw_5imgui_4core_535begin_tab_item(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; PyObject *__pyx_v_opened = 0; ImGuiTabItemFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_tab_item (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_opened,&__pyx_n_s_flags,0}; PyObject* values[3] = {0,0,0}; values[1] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_opened); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_tab_item") < 0)) __PYX_ERR(0, 11860, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); __pyx_v_opened = values[1]; if (values[2]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiTabItemFlags(values[2]); if (unlikely((__pyx_v_flags == ((ImGuiTabItemFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11860, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiTabItemFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_tab_item", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11860, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_tab_item", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 11860, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_534begin_tab_item(__pyx_self, __pyx_v_label, __pyx_v_opened, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_534begin_tab_item(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, PyObject *__pyx_v_opened, ImGuiTabItemFlags __pyx_v_flags) { bool __pyx_v_inout_opened; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; char const *__pyx_t_3; bool *__pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_tab_item", 0); /* "imgui/core.pyx":11933 * ) * """ * cdef cimgui.bool inout_opened = opened # <<<<<<<<<<<<<< * return _BeginEndTabItem.__new__( * _BeginEndTabItem, */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_opened); if (unlikely((__pyx_t_1 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11933, __pyx_L1_error) __pyx_v_inout_opened = __pyx_t_1; /* "imgui/core.pyx":11934 * """ * cdef cimgui.bool inout_opened = opened * return _BeginEndTabItem.__new__( # <<<<<<<<<<<<<< * _BeginEndTabItem, * cimgui.BeginTabItem( */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":11937 * _BeginEndTabItem, * cimgui.BeginTabItem( * _bytes(label), # <<<<<<<<<<<<<< * &inout_opened if opened is not None else NULL, flags * ), */ __pyx_t_2 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_t_2 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 11937, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 11937, __pyx_L1_error) /* "imgui/core.pyx":11938 * cimgui.BeginTabItem( * _bytes(label), * &inout_opened if opened is not None else NULL, flags # <<<<<<<<<<<<<< * ), * inout_opened */ __pyx_t_5 = (__pyx_v_opened != Py_None); if ((__pyx_t_5 != 0)) { __pyx_t_4 = (&__pyx_v_inout_opened); } else { __pyx_t_4 = NULL; } /* "imgui/core.pyx":11936 * return _BeginEndTabItem.__new__( * _BeginEndTabItem, * cimgui.BeginTabItem( # <<<<<<<<<<<<<< * _bytes(label), * &inout_opened if opened is not None else NULL, flags */ try { __pyx_t_1 = ImGui::BeginTabItem(__pyx_t_3, __pyx_t_4, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11936, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":11940 * &inout_opened if opened is not None else NULL, flags * ), * inout_opened # <<<<<<<<<<<<<< * ) * */ __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_inout_opened); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); /* "imgui/core.pyx":11934 * """ * cdef cimgui.bool inout_opened = opened * return _BeginEndTabItem.__new__( # <<<<<<<<<<<<<< * _BeginEndTabItem, * cimgui.BeginTabItem( */ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_6 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndTabItem(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndTabItem), __pyx_t_7, NULL)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11934, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_6)); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_r = ((PyObject *)__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L0; /* "imgui/core.pyx":11860 * * * def begin_tab_item(str label, opened = None, cimgui.ImGuiTabItemFlags flags = 0): # <<<<<<<<<<<<<< * """Create a Tab. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core.begin_tab_item", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11943 * ) * * def end_tab_item(): # <<<<<<<<<<<<<< * """End a previously opened tab item. * Only call this function if ``begin_tab_item().selected`` is True. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_537end_tab_item(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_536end_tab_item[] = "end_tab_item()\nEnd a previously opened tab item.\n Only call this function if ``begin_tab_item().selected`` is True.\n\n .. wraps::\n void EndTabItem()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_537end_tab_item = {"end_tab_item", (PyCFunction)__pyx_pw_5imgui_4core_537end_tab_item, METH_NOARGS, __pyx_doc_5imgui_4core_536end_tab_item}; static PyObject *__pyx_pw_5imgui_4core_537end_tab_item(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_tab_item (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_536end_tab_item(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_536end_tab_item(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_tab_item", 0); /* "imgui/core.pyx":11950 * void EndTabItem() * """ * cimgui.EndTabItem() # <<<<<<<<<<<<<< * * def tab_item_button(str label, cimgui.ImGuiTabItemFlags flags = 0): */ try { ImGui::EndTabItem(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11950, __pyx_L1_error) } /* "imgui/core.pyx":11943 * ) * * def end_tab_item(): # <<<<<<<<<<<<<< * """End a previously opened tab item. * Only call this function if ``begin_tab_item().selected`` is True. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_tab_item", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11952 * cimgui.EndTabItem() * * def tab_item_button(str label, cimgui.ImGuiTabItemFlags flags = 0): # <<<<<<<<<<<<<< * """Create a Tab behaving like a button. * Cannot be selected in the tab bar. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_539tab_item_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_538tab_item_button[] = "tab_item_button(str label, ImGuiTabItemFlags flags=0)\nCreate a Tab behaving like a button.\n Cannot be selected in the tab bar.\n\n Args:\n label (str): Label of the button\n flags: ImGuiTabItemFlags flags. See:\n :ref:`list of available flags `.\n\n Returns:\n (bool): Return true when clicked.\n\n .. visual-example:\n :auto_layout:\n :width: 300\n\n imgui.begin(\"Example Tab Bar\")\n if imgui.begin_tab_bar(\"MyTabBar\"):\n\n if imgui.begin_tab_item(\"Item 1\")[0]:\n imgui.text(\"Here is the tab content!\")\n imgui.end_tab_item()\n\n if imgui.tab_item_button(\"Click me!\"):\n print('Clicked!')\n\n imgui.end_tab_bar()\n imgui.end()\n\n .. wraps::\n bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_539tab_item_button = {"tab_item_button", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_539tab_item_button, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_538tab_item_button}; static PyObject *__pyx_pw_5imgui_4core_539tab_item_button(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_label = 0; ImGuiTabItemFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("tab_item_button (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_label,&__pyx_n_s_flags,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_label)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "tab_item_button") < 0)) __PYX_ERR(0, 11952, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_label = ((PyObject*)values[0]); if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiTabItemFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImGuiTabItemFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 11952, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiTabItemFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("tab_item_button", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 11952, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.tab_item_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_label), (&PyString_Type), 1, "label", 1))) __PYX_ERR(0, 11952, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_538tab_item_button(__pyx_self, __pyx_v_label, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_538tab_item_button(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_label, ImGuiTabItemFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; bool __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("tab_item_button", 0); /* "imgui/core.pyx":11984 * bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0) * """ * return cimgui.TabItemButton(_bytes(label), flags) # <<<<<<<<<<<<<< * * def set_tab_item_closed(str tab_or_docked_window_label): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 11984, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 11984, __pyx_L1_error) try { __pyx_t_3 = ImGui::TabItemButton(__pyx_t_2, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 11984, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":11952 * cimgui.EndTabItem() * * def tab_item_button(str label, cimgui.ImGuiTabItemFlags flags = 0): # <<<<<<<<<<<<<< * """Create a Tab behaving like a button. * Cannot be selected in the tab bar. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.tab_item_button", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":11986 * return cimgui.TabItemButton(_bytes(label), flags) * * def set_tab_item_closed(str tab_or_docked_window_label): # <<<<<<<<<<<<<< * """Notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). * For tab-bar: call after BeginTabBar() and before Tab submissions. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_541set_tab_item_closed(PyObject *__pyx_self, PyObject *__pyx_v_tab_or_docked_window_label); /*proto*/ static char __pyx_doc_5imgui_4core_540set_tab_item_closed[] = "set_tab_item_closed(str tab_or_docked_window_label)\nNotify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars).\n For tab-bar: call after BeginTabBar() and before Tab submissions.\n Otherwise call with a window name.\n\n Args:\n tab_or_docked_window_label (str): Label of the targeted tab or docked window\n\n .. visual-example:\n :auto_layout:\n :width: 300\n\n imgui.begin(\"Example Tab Bar\")\n if imgui.begin_tab_bar(\"MyTabBar\"):\n\n if imgui.begin_tab_item(\"Item 1\")[0]:\n imgui.text(\"Here is the tab content!\")\n imgui.end_tab_item()\n\n if imgui.begin_tab_item(\"Item 2\")[0]:\n imgui.text(\"This item won't whow !\")\n imgui.end_tab_item()\n\n imgui.set_tab_item_closed(\"Item 2\")\n\n imgui.end_tab_bar()\n imgui.end()\n\n .. wraps:\n void SetTabItemClosed(const char* tab_or_docked_window_label)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_541set_tab_item_closed = {"set_tab_item_closed", (PyCFunction)__pyx_pw_5imgui_4core_541set_tab_item_closed, METH_O, __pyx_doc_5imgui_4core_540set_tab_item_closed}; static PyObject *__pyx_pw_5imgui_4core_541set_tab_item_closed(PyObject *__pyx_self, PyObject *__pyx_v_tab_or_docked_window_label) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_tab_item_closed (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tab_or_docked_window_label), (&PyString_Type), 1, "tab_or_docked_window_label", 1))) __PYX_ERR(0, 11986, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_540set_tab_item_closed(__pyx_self, ((PyObject*)__pyx_v_tab_or_docked_window_label)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_540set_tab_item_closed(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tab_or_docked_window_label) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_tab_item_closed", 0); /* "imgui/core.pyx":12017 * void SetTabItemClosed(const char* tab_or_docked_window_label) * """ * cimgui.SetTabItemClosed(_bytes(tab_or_docked_window_label)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_tab_or_docked_window_label); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 12017, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 12017, __pyx_L1_error) try { ImGui::SetTabItemClosed(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12017, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":11986 * return cimgui.TabItemButton(_bytes(label), flags) * * def set_tab_item_closed(str tab_or_docked_window_label): # <<<<<<<<<<<<<< * """Notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). * For tab-bar: call after BeginTabBar() and before Tab submissions. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_tab_item_closed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12035 * cdef readonly bool dragging * * def __cinit__(self, bool dragging): # <<<<<<<<<<<<<< * self.dragging = dragging * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_dragging; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dragging,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dragging)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12035, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_dragging = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_dragging == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12035, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12035, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndDragDropSource.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self), __pyx_v_dragging); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_23_BeginEndDragDropSource___cinit__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self, bool __pyx_v_dragging) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":12036 * * def __cinit__(self, bool dragging): * self.dragging = dragging # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->dragging = __pyx_v_dragging; /* "imgui/core.pyx":12035 * cdef readonly bool dragging * * def __cinit__(self, bool dragging): # <<<<<<<<<<<<<< * self.dragging = dragging * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12038 * self.dragging = dragging * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_23_BeginEndDragDropSource_2__enter__[] = "_BeginEndDragDropSource.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":12039 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":12038 * self.dragging = dragging * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12041 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.dragging: * cimgui.EndDragDropSource() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_23_BeginEndDragDropSource_4__exit__[] = "_BeginEndDragDropSource.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 12041, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 12041, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 12041, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12041, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndDragDropSource.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":12042 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.dragging: # <<<<<<<<<<<<<< * cimgui.EndDragDropSource() * */ __pyx_t_1 = (__pyx_v_self->dragging != 0); if (__pyx_t_1) { /* "imgui/core.pyx":12043 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.dragging: * cimgui.EndDragDropSource() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndDragDropSource(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12043, __pyx_L1_error) } /* "imgui/core.pyx":12042 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.dragging: # <<<<<<<<<<<<<< * cimgui.EndDragDropSource() * */ } /* "imgui/core.pyx":12041 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.dragging: * cimgui.EndDragDropSource() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndDragDropSource.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12045 * cimgui.EndDragDropSource() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``dragging``.""" * return self.dragging */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":12047 * def __bool__(self): * """For legacy support, returns ``dragging``.""" * return self.dragging # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->dragging; goto __pyx_L0; /* "imgui/core.pyx":12045 * cimgui.EndDragDropSource() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``dragging``.""" * return self.dragging */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12049 * return self.dragging * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(dragging={})".format( * self.__class__.__name__, self.dragging */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":12050 * * def __repr__(self): * return "{}(dragging={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.dragging * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_dragging_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":12051 * def __repr__(self): * return "{}(dragging={})".format( * self.__class__.__name__, self.dragging # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->dragging); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12050, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12050, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12049 * return self.dragging * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(dragging={})".format( * self.__class__.__name__, self.dragging */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndDragDropSource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12054 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.dragging is other.dragging */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":12055 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.dragging is other.dragging * return self.dragging is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":12056 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.dragging is other.dragging # <<<<<<<<<<<<<< * return self.dragging is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->dragging); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_dragging); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12055 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.dragging is other.dragging * return self.dragging is other */ } /* "imgui/core.pyx":12057 * if other.__class__ is self.__class__: * return self.dragging is other.dragging * return self.dragging is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->dragging); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12054 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.dragging is other.dragging */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndDragDropSource.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12033 * """ * * cdef readonly bool dragging # <<<<<<<<<<<<<< * * def __cinit__(self, bool dragging): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_8dragging_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_8dragging_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_8dragging___get__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_8dragging___get__(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->dragging); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndDragDropSource.dragging.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_23_BeginEndDragDropSource_12__reduce_cython__[] = "_BeginEndDragDropSource.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__108, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndDragDropSource.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_23_BeginEndDragDropSource_14__setstate_cython__[] = "_BeginEndDragDropSource.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropSource_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropSource_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndDragDropSource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__109, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndDragDropSource.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12060 * * * def begin_drag_drop_source(cimgui.ImGuiDragDropFlags flags=0): # <<<<<<<<<<<<<< * """Set the current item as a drag and drop source. If ``dragging`` is True, you * can call :func:`set_drag_drop_payload` and :func:`end_drag_drop_source`. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_543begin_drag_drop_source(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_542begin_drag_drop_source[] = "begin_drag_drop_source(ImGuiDragDropFlags flags=0)\nSet the current item as a drag and drop source. If ``dragging`` is True, you\n can call :func:`set_drag_drop_payload` and :func:`end_drag_drop_source`.\n Use with ``with`` to automatically call :func:`end_drag_drop_source` if necessary.\n\n **Note:** this is a beta API.\n\n .. visual-example::\n :auto_layout:\n :width: 300\n\n with imgui.begin(\"Example: drag and drop\"):\n\n imgui.button('source')\n with imgui.begin_drag_drop_source() as drag_drop_src:\n if drag_drop_src.dragging:\n imgui.set_drag_drop_payload('itemtype', b'payload')\n imgui.button('dragged source')\n\n imgui.button('dest')\n with imgui.begin_drag_drop_target() as drag_drop_dst:\n if drag_drop_dst.hovered:\n payload = imgui.accept_drag_drop_payload('itemtype')\n if payload is not None:\n print('Received:', payload)\n\n Example::\n\n imgui.begin(\"Example: drag and drop\")\n\n imgui.button('source')\n if imgui.begin_drag_drop_source():\n imgui.set_drag_drop_payload('itemtype', b'payload')\n imgui.button('dragged source')\n imgui.end_drag_drop_source()\n\n imgui.button('dest')\n if imgui.begin_drag_drop_target():\n payload = imgui.accept_drag_drop_payload('itemtype')\n if payload is not None:\n print('Received:', payload)\n imgui.end_drag_drop_target()\n\n imgui.end()\n\n Args:\n flags (ImGuiDragDropFlags): DragDrop flags.\n\n Returns:\n _BeginEndDragDropSource: Use ``dragging`` to tell if a drag starting at this source is occurring.\n Only call :func:`end_drag_drop_source` if ``dragging`` is True.\n Use with ``with`` to automatically call :func:`end_drag_drop_source` if necessary when the ""block ends.\n\n .. wraps::\n bool BeginDragDropSource(ImGuiDragDropFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_543begin_drag_drop_source = {"begin_drag_drop_source", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_543begin_drag_drop_source, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_542begin_drag_drop_source}; static PyObject *__pyx_pw_5imgui_4core_543begin_drag_drop_source(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiDragDropFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_drag_drop_source (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "begin_drag_drop_source") < 0)) __PYX_ERR(0, 12060, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiDragDropFlags(values[0]); if (unlikely((__pyx_v_flags == ((ImGuiDragDropFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12060, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiDragDropFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("begin_drag_drop_source", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12060, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.begin_drag_drop_source", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_542begin_drag_drop_source(__pyx_self, __pyx_v_flags); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_542begin_drag_drop_source(CYTHON_UNUSED PyObject *__pyx_self, ImGuiDragDropFlags __pyx_v_flags) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_drag_drop_source", 0); /* "imgui/core.pyx":12116 * bool BeginDragDropSource(ImGuiDragDropFlags flags = 0) * """ * return _BeginEndDragDropSource.__new__( # <<<<<<<<<<<<<< * _BeginEndDragDropSource, * cimgui.BeginDragDropSource(flags) */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":12118 * return _BeginEndDragDropSource.__new__( * _BeginEndDragDropSource, * cimgui.BeginDragDropSource(flags) # <<<<<<<<<<<<<< * ) * */ try { __pyx_t_1 = ImGui::BeginDragDropSource(__pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12118, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":12116 * bool BeginDragDropSource(ImGuiDragDropFlags flags = 0) * """ * return _BeginEndDragDropSource.__new__( # <<<<<<<<<<<<<< * _BeginEndDragDropSource, * cimgui.BeginDragDropSource(flags) */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndDragDropSource(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndDragDropSource), __pyx_t_3, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12116, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12060 * * * def begin_drag_drop_source(cimgui.ImGuiDragDropFlags flags=0): # <<<<<<<<<<<<<< * """Set the current item as a drag and drop source. If ``dragging`` is True, you * can call :func:`set_drag_drop_payload` and :func:`end_drag_drop_source`. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.begin_drag_drop_source", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12122 * * * def set_drag_drop_payload(str type, bytes data, cimgui.ImGuiCond condition=0): # <<<<<<<<<<<<<< * """Set the payload for a drag and drop source. Only call after * :func:`begin_drag_drop_source` returns True. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_545set_drag_drop_payload(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_544set_drag_drop_payload[] = "set_drag_drop_payload(str type, bytes data, ImGuiCond condition=0)\nSet the payload for a drag and drop source. Only call after\n :func:`begin_drag_drop_source` returns True.\n\n **Note:** this is a beta API.\n\n For a complete example see :func:`begin_drag_drop_source`.\n\n Args:\n type (str): user defined type with maximum 32 bytes.\n data (bytes): the data for the payload; will be copied and stored internally.\n condition (:ref:`condition flag `): defines on which\n condition value should be set. Defaults to :any:`imgui.ALWAYS`.\n\n .. wraps::\n bool SetDragDropPayload(const char* type, const void* data, size_t size, ImGuiCond cond = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_545set_drag_drop_payload = {"set_drag_drop_payload", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_545set_drag_drop_payload, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_544set_drag_drop_payload}; static PyObject *__pyx_pw_5imgui_4core_545set_drag_drop_payload(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_type = 0; PyObject *__pyx_v_data = 0; ImGuiCond __pyx_v_condition; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_drag_drop_payload (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_data,&__pyx_n_s_condition,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("set_drag_drop_payload", 0, 2, 3, 1); __PYX_ERR(0, 12122, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_condition); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_drag_drop_payload") < 0)) __PYX_ERR(0, 12122, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_type = ((PyObject*)values[0]); __pyx_v_data = ((PyObject*)values[1]); if (values[2]) { __pyx_v_condition = __Pyx_PyInt_As_ImGuiCond(values[2]); if (unlikely((__pyx_v_condition == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12122, __pyx_L3_error) } else { __pyx_v_condition = ((ImGuiCond)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_drag_drop_payload", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12122, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_drag_drop_payload", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_type), (&PyString_Type), 1, "type", 1))) __PYX_ERR(0, 12122, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 12122, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_544set_drag_drop_payload(__pyx_self, __pyx_v_type, __pyx_v_data, __pyx_v_condition); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_544set_drag_drop_payload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_type, PyObject *__pyx_v_data, ImGuiCond __pyx_v_condition) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; char const *__pyx_t_3; Py_ssize_t __pyx_t_4; bool __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_drag_drop_payload", 0); /* "imgui/core.pyx":12139 * bool SetDragDropPayload(const char* type, const void* data, size_t size, ImGuiCond cond = 0) * """ * return cimgui.SetDragDropPayload(_bytes(type), data, len(data), condition) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 12139, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 12139, __pyx_L1_error) if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 12139, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_v_data); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 12139, __pyx_L1_error) if (unlikely(__pyx_v_data == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 12139, __pyx_L1_error) } __pyx_t_4 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12139, __pyx_L1_error) try { __pyx_t_5 = ImGui::SetDragDropPayload(__pyx_t_2, ((char const *)__pyx_t_3), __pyx_t_4, __pyx_v_condition); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12139, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12122 * * * def set_drag_drop_payload(str type, bytes data, cimgui.ImGuiCond condition=0): # <<<<<<<<<<<<<< * """Set the payload for a drag and drop source. Only call after * :func:`begin_drag_drop_source` returns True. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_drag_drop_payload", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12142 * * * def end_drag_drop_source(): # <<<<<<<<<<<<<< * """End the drag and drop source. * Only call if ``begin_drag_drop_source().dragging`` is True. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_547end_drag_drop_source(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_546end_drag_drop_source[] = "end_drag_drop_source()\nEnd the drag and drop source.\n Only call if ``begin_drag_drop_source().dragging`` is True.\n\n **Note:** this is a beta API.\n\n For a complete example see :func:`begin_drag_drop_source`.\n\n .. wraps::\n void EndDragDropSource()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_547end_drag_drop_source = {"end_drag_drop_source", (PyCFunction)__pyx_pw_5imgui_4core_547end_drag_drop_source, METH_NOARGS, __pyx_doc_5imgui_4core_546end_drag_drop_source}; static PyObject *__pyx_pw_5imgui_4core_547end_drag_drop_source(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_drag_drop_source (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_546end_drag_drop_source(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_546end_drag_drop_source(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_drag_drop_source", 0); /* "imgui/core.pyx":12153 * void EndDragDropSource() * """ * cimgui.EndDragDropSource() # <<<<<<<<<<<<<< * * */ try { ImGui::EndDragDropSource(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12153, __pyx_L1_error) } /* "imgui/core.pyx":12142 * * * def end_drag_drop_source(): # <<<<<<<<<<<<<< * """End the drag and drop source. * Only call if ``begin_drag_drop_source().dragging`` is True. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_drag_drop_source", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12171 * cdef readonly bool hovered * * def __cinit__(self, bool hovered): # <<<<<<<<<<<<<< * self.hovered = hovered * */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { bool __pyx_v_hovered; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hovered,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hovered)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12171, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_hovered = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_hovered == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12171, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12171, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndDragDropTarget.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget___cinit__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self), __pyx_v_hovered); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget___cinit__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self, bool __pyx_v_hovered) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "imgui/core.pyx":12172 * * def __cinit__(self, bool hovered): * self.hovered = hovered # <<<<<<<<<<<<<< * * def __enter__(self): */ __pyx_v_self->hovered = __pyx_v_hovered; /* "imgui/core.pyx":12171 * cdef readonly bool hovered * * def __cinit__(self, bool hovered): # <<<<<<<<<<<<<< * self.hovered = hovered * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12174 * self.hovered = hovered * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_23_BeginEndDragDropTarget_2__enter__[] = "_BeginEndDragDropTarget.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_2__enter__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_2__enter__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":12175 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":12174 * self.hovered = hovered * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12177 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.hovered: * cimgui.EndDragDropTarget() */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_23_BeginEndDragDropTarget_4__exit__[] = "_BeginEndDragDropTarget.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 12177, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 12177, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 12177, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12177, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndDragDropTarget.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_4__exit__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_4__exit__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":12178 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.hovered: # <<<<<<<<<<<<<< * cimgui.EndDragDropTarget() * */ __pyx_t_1 = (__pyx_v_self->hovered != 0); if (__pyx_t_1) { /* "imgui/core.pyx":12179 * def __exit__(self, exc_type, exc_val, exc_tb): * if self.hovered: * cimgui.EndDragDropTarget() # <<<<<<<<<<<<<< * * def __bool__(self): */ try { ImGui::EndDragDropTarget(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12179, __pyx_L1_error) } /* "imgui/core.pyx":12178 * * def __exit__(self, exc_type, exc_val, exc_tb): * if self.hovered: # <<<<<<<<<<<<<< * cimgui.EndDragDropTarget() * */ } /* "imgui/core.pyx":12177 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * if self.hovered: * cimgui.EndDragDropTarget() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndDragDropTarget.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12181 * cimgui.EndDragDropTarget() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``hovered``.""" * return self.hovered */ /* Python wrapper */ static int __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_7__bool__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_7__bool__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_6__bool__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_6__bool__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__bool__", 0); /* "imgui/core.pyx":12183 * def __bool__(self): * """For legacy support, returns ``hovered``.""" * return self.hovered # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = __pyx_v_self->hovered; goto __pyx_L0; /* "imgui/core.pyx":12181 * cimgui.EndDragDropTarget() * * def __bool__(self): # <<<<<<<<<<<<<< * """For legacy support, returns ``hovered``.""" * return self.hovered */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12185 * return self.hovered * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(hovered={})".format( * self.__class__.__name__, self.hovered */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_8__repr__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_8__repr__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":12186 * * def __repr__(self): * return "{}(hovered={})".format( # <<<<<<<<<<<<<< * self.__class__.__name__, self.hovered * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_hovered_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":12187 * def __repr__(self): * return "{}(hovered={})".format( * self.__class__.__name__, self.hovered # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->hovered); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12186, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12186, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12185 * return self.hovered * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}(hovered={})".format( * self.__class__.__name__, self.hovered */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("imgui.core._BeginEndDragDropTarget.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12190 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.hovered is other.hovered */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_11__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_10__eq__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self), ((PyObject *)__pyx_v_other)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_10__eq__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__eq__", 0); /* "imgui/core.pyx":12191 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.hovered is other.hovered * return self.hovered is other */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = (__pyx_t_1 == __pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { /* "imgui/core.pyx":12192 * def __eq__(self, other): * if other.__class__ is self.__class__: * return self.hovered is other.hovered # <<<<<<<<<<<<<< * return self.hovered is other * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->hovered); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_hovered); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 == __pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12191 * * def __eq__(self, other): * if other.__class__ is self.__class__: # <<<<<<<<<<<<<< * return self.hovered is other.hovered * return self.hovered is other */ } /* "imgui/core.pyx":12193 * if other.__class__ is self.__class__: * return self.hovered is other.hovered * return self.hovered is other # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->hovered); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__pyx_t_1 == __pyx_v_other); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12190 * ) * * def __eq__(self, other): # <<<<<<<<<<<<<< * if other.__class__ is self.__class__: * return self.hovered is other.hovered */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core._BeginEndDragDropTarget.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12169 * """ * * cdef readonly bool hovered # <<<<<<<<<<<<<< * * def __cinit__(self, bool hovered): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_7hovered_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_7hovered_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_7hovered___get__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_7hovered___get__(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->hovered); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndDragDropTarget.hovered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_23_BeginEndDragDropTarget_12__reduce_cython__[] = "_BeginEndDragDropTarget.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_12__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__110, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndDragDropTarget.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_23_BeginEndDragDropTarget_14__setstate_cython__[] = "_BeginEndDragDropTarget.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_14__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_23_BeginEndDragDropTarget_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__111, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndDragDropTarget.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12196 * * * def begin_drag_drop_target(): # <<<<<<<<<<<<<< * """Set the current item as a drag and drop target. If ``hovered`` is True, you * can call :func:`accept_drag_drop_payload` and :func:`end_drag_drop_target`. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_549begin_drag_drop_target(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_548begin_drag_drop_target[] = "begin_drag_drop_target()\nSet the current item as a drag and drop target. If ``hovered`` is True, you\n can call :func:`accept_drag_drop_payload` and :func:`end_drag_drop_target`.\n Use with ``with`` to automatically call :func:`end_drag_drop_target` if necessary.\n\n For a complete example see :func:`begin_drag_drop_source`.\n\n **Note:** this is a beta API.\n\n Returns:\n _BeginEndDragDropTarget: Use ``hovered` to tell if a drag hovers over the target.\n Only call :func:`end_drag_drop_target` if ``hovered`` is True.\n Use with ``with`` to automatically call :func:`end_drag_drop_target` if necessary when the block ends.\n\n .. wraps::\n bool BeginDragDropTarget()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_549begin_drag_drop_target = {"begin_drag_drop_target", (PyCFunction)__pyx_pw_5imgui_4core_549begin_drag_drop_target, METH_NOARGS, __pyx_doc_5imgui_4core_548begin_drag_drop_target}; static PyObject *__pyx_pw_5imgui_4core_549begin_drag_drop_target(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_drag_drop_target (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_548begin_drag_drop_target(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_548begin_drag_drop_target(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_drag_drop_target", 0); /* "imgui/core.pyx":12213 * bool BeginDragDropTarget() * """ * return _BeginEndDragDropTarget.__new__( # <<<<<<<<<<<<<< * _BeginEndDragDropTarget, * cimgui.BeginDragDropTarget() */ __Pyx_XDECREF(__pyx_r); /* "imgui/core.pyx":12215 * return _BeginEndDragDropTarget.__new__( * _BeginEndDragDropTarget, * cimgui.BeginDragDropTarget() # <<<<<<<<<<<<<< * ) * */ try { __pyx_t_1 = ImGui::BeginDragDropTarget(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12215, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":12213 * bool BeginDragDropTarget() * """ * return _BeginEndDragDropTarget.__new__( # <<<<<<<<<<<<<< * _BeginEndDragDropTarget, * cimgui.BeginDragDropTarget() */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndDragDropTarget(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndDragDropTarget), __pyx_t_3, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12213, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12196 * * * def begin_drag_drop_target(): # <<<<<<<<<<<<<< * """Set the current item as a drag and drop target. If ``hovered`` is True, you * can call :func:`accept_drag_drop_payload` and :func:`end_drag_drop_target`. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.begin_drag_drop_target", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12219 * * * def accept_drag_drop_payload(str type, cimgui.ImGuiDragDropFlags flags=0): # <<<<<<<<<<<<<< * """Get the drag and drop payload. Only call after :func:`begin_drag_drop_target` * returns True. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_551accept_drag_drop_payload(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_550accept_drag_drop_payload[] = "accept_drag_drop_payload(str type, ImGuiDragDropFlags flags=0)\nGet the drag and drop payload. Only call after :func:`begin_drag_drop_target`\n returns True.\n\n **Note:** this is a beta API.\n\n For a complete example see :func:`begin_drag_drop_source`.\n\n Args:\n type (str): user defined type with maximum 32 bytes.\n flags (ImGuiDragDropFlags): DragDrop flags.\n\n Returns:\n bytes: the payload data that was set by :func:`set_drag_drop_payload`.\n\n .. wraps::\n const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_551accept_drag_drop_payload = {"accept_drag_drop_payload", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_551accept_drag_drop_payload, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_550accept_drag_drop_payload}; static PyObject *__pyx_pw_5imgui_4core_551accept_drag_drop_payload(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_type = 0; ImGuiDragDropFlags __pyx_v_flags; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("accept_drag_drop_payload (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_flags,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "accept_drag_drop_payload") < 0)) __PYX_ERR(0, 12219, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_type = ((PyObject*)values[0]); if (values[1]) { __pyx_v_flags = __Pyx_PyInt_As_ImGuiDragDropFlags(values[1]); if (unlikely((__pyx_v_flags == ((ImGuiDragDropFlags)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12219, __pyx_L3_error) } else { __pyx_v_flags = ((ImGuiDragDropFlags)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("accept_drag_drop_payload", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12219, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.accept_drag_drop_payload", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_type), (&PyString_Type), 1, "type", 1))) __PYX_ERR(0, 12219, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_550accept_drag_drop_payload(__pyx_self, __pyx_v_type, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_550accept_drag_drop_payload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_type, ImGuiDragDropFlags __pyx_v_flags) { ImGuiPayload const *__pyx_v_payload; char const *__pyx_v_data; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; ImGuiPayload const *__pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("accept_drag_drop_payload", 0); /* "imgui/core.pyx":12237 * const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0) * """ * cdef const cimgui.ImGuiPayload* payload = cimgui.AcceptDragDropPayload(_bytes(type), flags) # <<<<<<<<<<<<<< * if payload == NULL: * return None */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 12237, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 12237, __pyx_L1_error) try { __pyx_t_3 = ImGui::AcceptDragDropPayload(__pyx_t_2, __pyx_v_flags); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12237, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_payload = __pyx_t_3; /* "imgui/core.pyx":12238 * """ * cdef const cimgui.ImGuiPayload* payload = cimgui.AcceptDragDropPayload(_bytes(type), flags) * if payload == NULL: # <<<<<<<<<<<<<< * return None * cdef const char* data = payload.Data */ __pyx_t_4 = ((__pyx_v_payload == NULL) != 0); if (__pyx_t_4) { /* "imgui/core.pyx":12239 * cdef const cimgui.ImGuiPayload* payload = cimgui.AcceptDragDropPayload(_bytes(type), flags) * if payload == NULL: * return None # <<<<<<<<<<<<<< * cdef const char* data = payload.Data * return data[:payload.DataSize] */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":12238 * """ * cdef const cimgui.ImGuiPayload* payload = cimgui.AcceptDragDropPayload(_bytes(type), flags) * if payload == NULL: # <<<<<<<<<<<<<< * return None * cdef const char* data = payload.Data */ } /* "imgui/core.pyx":12240 * if payload == NULL: * return None * cdef const char* data = payload.Data # <<<<<<<<<<<<<< * return data[:payload.DataSize] * */ __pyx_v_data = ((char const *)__pyx_v_payload->Data); /* "imgui/core.pyx":12241 * return None * cdef const char* data = payload.Data * return data[:payload.DataSize] # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_data + 0, __pyx_v_payload->DataSize - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject*)__pyx_t_1)); __pyx_r = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12219 * * * def accept_drag_drop_payload(str type, cimgui.ImGuiDragDropFlags flags=0): # <<<<<<<<<<<<<< * """Get the drag and drop payload. Only call after :func:`begin_drag_drop_target` * returns True. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.accept_drag_drop_payload", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12244 * * * def end_drag_drop_target(): # <<<<<<<<<<<<<< * """End the drag and drop source. * Only call this function if ``begin_drag_drop_target().hovered`` is True. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_553end_drag_drop_target(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_552end_drag_drop_target[] = "end_drag_drop_target()\nEnd the drag and drop source.\n Only call this function if ``begin_drag_drop_target().hovered`` is True.\n\n **Note:** this is a beta API.\n\n For a complete example see :func:`begin_drag_drop_source`.\n\n .. wraps::\n void EndDragDropTarget()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_553end_drag_drop_target = {"end_drag_drop_target", (PyCFunction)__pyx_pw_5imgui_4core_553end_drag_drop_target, METH_NOARGS, __pyx_doc_5imgui_4core_552end_drag_drop_target}; static PyObject *__pyx_pw_5imgui_4core_553end_drag_drop_target(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_drag_drop_target (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_552end_drag_drop_target(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_552end_drag_drop_target(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_drag_drop_target", 0); /* "imgui/core.pyx":12255 * void EndDragDropTarget() * """ * cimgui.EndDragDropTarget() # <<<<<<<<<<<<<< * * */ try { ImGui::EndDragDropTarget(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12255, __pyx_L1_error) } /* "imgui/core.pyx":12244 * * * def end_drag_drop_target(): # <<<<<<<<<<<<<< * """End the drag and drop source. * Only call this function if ``begin_drag_drop_target().hovered`` is True. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_drag_drop_target", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12258 * * * def get_drag_drop_payload(): # <<<<<<<<<<<<<< * """Peek directly into the current payload from anywhere. * May return NULL. */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_555get_drag_drop_payload(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_554get_drag_drop_payload[] = "get_drag_drop_payload()\nPeek directly into the current payload from anywhere. \n May return NULL. \n \n .. todo:: Map ImGuiPayload::IsDataType() to test for the payload type.\n \n .. wraps::\n const ImGuiPayload* GetDragDropPayload()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_555get_drag_drop_payload = {"get_drag_drop_payload", (PyCFunction)__pyx_pw_5imgui_4core_555get_drag_drop_payload, METH_NOARGS, __pyx_doc_5imgui_4core_554get_drag_drop_payload}; static PyObject *__pyx_pw_5imgui_4core_555get_drag_drop_payload(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_drag_drop_payload (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_554get_drag_drop_payload(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_554get_drag_drop_payload(CYTHON_UNUSED PyObject *__pyx_self) { ImGuiPayload const *__pyx_v_payload; char const *__pyx_v_data; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImGuiPayload const *__pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_drag_drop_payload", 0); /* "imgui/core.pyx":12267 * const ImGuiPayload* GetDragDropPayload() * """ * cdef const cimgui.ImGuiPayload* payload = cimgui.GetDragDropPayload() # <<<<<<<<<<<<<< * if payload == NULL: * return None */ try { __pyx_t_1 = ImGui::GetDragDropPayload(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12267, __pyx_L1_error) } __pyx_v_payload = __pyx_t_1; /* "imgui/core.pyx":12268 * """ * cdef const cimgui.ImGuiPayload* payload = cimgui.GetDragDropPayload() * if payload == NULL: # <<<<<<<<<<<<<< * return None * cdef const char* data = payload.Data */ __pyx_t_2 = ((__pyx_v_payload == NULL) != 0); if (__pyx_t_2) { /* "imgui/core.pyx":12269 * cdef const cimgui.ImGuiPayload* payload = cimgui.GetDragDropPayload() * if payload == NULL: * return None # <<<<<<<<<<<<<< * cdef const char* data = payload.Data * return data[:payload.DataSize] */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "imgui/core.pyx":12268 * """ * cdef const cimgui.ImGuiPayload* payload = cimgui.GetDragDropPayload() * if payload == NULL: # <<<<<<<<<<<<<< * return None * cdef const char* data = payload.Data */ } /* "imgui/core.pyx":12270 * if payload == NULL: * return None * cdef const char* data = payload.Data # <<<<<<<<<<<<<< * return data[:payload.DataSize] * */ __pyx_v_data = ((char const *)__pyx_v_payload->Data); /* "imgui/core.pyx":12271 * return None * cdef const char* data = payload.Data * return data[:payload.DataSize] # <<<<<<<<<<<<<< * * def push_clip_rect( */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_data + 0, __pyx_v_payload->DataSize - 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(((PyObject*)__pyx_t_3)); __pyx_r = __pyx_t_3; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":12258 * * * def get_drag_drop_payload(): # <<<<<<<<<<<<<< * """Peek directly into the current payload from anywhere. * May return NULL. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.get_drag_drop_payload", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12273 * return data[:payload.DataSize] * * def push_clip_rect( # <<<<<<<<<<<<<< * float clip_rect_min_x, * float clip_rect_min_y, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_557push_clip_rect(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_556push_clip_rect[] = "push_clip_rect(float clip_rect_min_x, float clip_rect_min_y, float clip_rect_max_x, float clip_rect_max_y, bool intersect_with_current_clip_rect=False)\nPush the clip region, i.e. the area of the screen to be rendered,on the stack. \n If ``intersect_with_current_clip_rect`` is ``True``, the intersection between pushed \n clip region and previous one is added on the stack. \n See: :func:`pop_clip_rect()`\n \n Args:\n clip_rect_min_x, clip_rect_min_y (float): Position of the minimum point of the rectangle\n clip_rect_max_x, clip_rect_max_y (float): Position of the maximum point of the rectangle\n intersect_with_current_clip_rect (bool): If True, intersection with current clip region is pushed on stack.\n \n .. visual-example::\n :auto_layout:\n :width: 150\n :height: 150\n\n imgui.begin(\"Example Cliprect\")\n \n winpos = imgui.get_window_position()\n imgui.push_clip_rect(0+winpos.x,0+winpos.y,100+winpos.x,100+winpos.y)\n imgui.push_clip_rect(50+winpos.x,50+winpos.y,100+winpos.x,100+winpos.y, True)\n \n imgui.text('Lorem ipsum dolor sit amet, consectetur adipiscing elit.')\n imgui.text('Vivamus mattis velit ac ex auctor gravida.')\n imgui.text('Quisque varius erat finibus porta interdum.')\n imgui.text('Nam neque magna, dapibus placerat urna eget, facilisis malesuada ipsum.')\n \n imgui.pop_clip_rect()\n imgui.pop_clip_rect()\n \n imgui.end()\n \n .. wraps::\n void PushClipRect(\n const ImVec2& clip_rect_min, \n const ImVec2& clip_rect_max, \n bool intersect_with_current_clip_rect\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_557push_clip_rect = {"push_clip_rect", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_557push_clip_rect, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_556push_clip_rect}; static PyObject *__pyx_pw_5imgui_4core_557push_clip_rect(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { float __pyx_v_clip_rect_min_x; float __pyx_v_clip_rect_min_y; float __pyx_v_clip_rect_max_x; float __pyx_v_clip_rect_max_y; bool __pyx_v_intersect_with_current_clip_rect; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_clip_rect (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_clip_rect_min_x,&__pyx_n_s_clip_rect_min_y,&__pyx_n_s_clip_rect_max_x,&__pyx_n_s_clip_rect_max_y,&__pyx_n_s_intersect_with_current_clip_rect,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip_rect_min_x)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip_rect_min_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_clip_rect", 0, 4, 5, 1); __PYX_ERR(0, 12273, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip_rect_max_x)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_clip_rect", 0, 4, 5, 2); __PYX_ERR(0, 12273, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_clip_rect_max_y)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("push_clip_rect", 0, 4, 5, 3); __PYX_ERR(0, 12273, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_intersect_with_current_clip_rect); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "push_clip_rect") < 0)) __PYX_ERR(0, 12273, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_clip_rect_min_x = __pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_clip_rect_min_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12274, __pyx_L3_error) __pyx_v_clip_rect_min_y = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_clip_rect_min_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12275, __pyx_L3_error) __pyx_v_clip_rect_max_x = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_clip_rect_max_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12276, __pyx_L3_error) __pyx_v_clip_rect_max_y = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_clip_rect_max_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12277, __pyx_L3_error) if (values[4]) { __pyx_v_intersect_with_current_clip_rect = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_intersect_with_current_clip_rect == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12278, __pyx_L3_error) } else { /* "imgui/core.pyx":12278 * float clip_rect_max_x, * float clip_rect_max_y, * bool intersect_with_current_clip_rect = False # <<<<<<<<<<<<<< * ): * """Push the clip region, i.e. the area of the screen to be rendered,on the stack. */ __pyx_v_intersect_with_current_clip_rect = ((bool)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("push_clip_rect", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12273, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.push_clip_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_556push_clip_rect(__pyx_self, __pyx_v_clip_rect_min_x, __pyx_v_clip_rect_min_y, __pyx_v_clip_rect_max_x, __pyx_v_clip_rect_max_y, __pyx_v_intersect_with_current_clip_rect); /* "imgui/core.pyx":12273 * return data[:payload.DataSize] * * def push_clip_rect( # <<<<<<<<<<<<<< * float clip_rect_min_x, * float clip_rect_min_y, */ /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_556push_clip_rect(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_clip_rect_min_x, float __pyx_v_clip_rect_min_y, float __pyx_v_clip_rect_max_x, float __pyx_v_clip_rect_max_y, bool __pyx_v_intersect_with_current_clip_rect) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; ImVec2 __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_clip_rect", 0); /* "imgui/core.pyx":12319 * """ * cimgui.PushClipRect( * _cast_args_ImVec2(clip_rect_min_x, clip_rect_min_y), # <<<<<<<<<<<<<< * _cast_args_ImVec2(clip_rect_max_x, clip_rect_max_y), * intersect_with_current_clip_rect */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_clip_rect_min_x, __pyx_v_clip_rect_min_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12319, __pyx_L1_error) /* "imgui/core.pyx":12320 * cimgui.PushClipRect( * _cast_args_ImVec2(clip_rect_min_x, clip_rect_min_y), * _cast_args_ImVec2(clip_rect_max_x, clip_rect_max_y), # <<<<<<<<<<<<<< * intersect_with_current_clip_rect * ) */ __pyx_t_2 = __pyx_f_5imgui_4core__cast_args_ImVec2(__pyx_v_clip_rect_max_x, __pyx_v_clip_rect_max_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12320, __pyx_L1_error) /* "imgui/core.pyx":12318 * ) * """ * cimgui.PushClipRect( # <<<<<<<<<<<<<< * _cast_args_ImVec2(clip_rect_min_x, clip_rect_min_y), * _cast_args_ImVec2(clip_rect_max_x, clip_rect_max_y), */ try { ImGui::PushClipRect(__pyx_t_1, __pyx_t_2, __pyx_v_intersect_with_current_clip_rect); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12318, __pyx_L1_error) } /* "imgui/core.pyx":12273 * return data[:payload.DataSize] * * def push_clip_rect( # <<<<<<<<<<<<<< * float clip_rect_min_x, * float clip_rect_min_y, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.push_clip_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12324 * ) * * def pop_clip_rect(): # <<<<<<<<<<<<<< * """Pop the last clip region from the stack. See: :func:`push_clip_rect()`. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_559pop_clip_rect(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_558pop_clip_rect[] = "pop_clip_rect()\nPop the last clip region from the stack. See: :func:`push_clip_rect()`.\n \n .. wraps::\n void PopClipRect()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_559pop_clip_rect = {"pop_clip_rect", (PyCFunction)__pyx_pw_5imgui_4core_559pop_clip_rect, METH_NOARGS, __pyx_doc_5imgui_4core_558pop_clip_rect}; static PyObject *__pyx_pw_5imgui_4core_559pop_clip_rect(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_clip_rect (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_558pop_clip_rect(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_558pop_clip_rect(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_clip_rect", 0); /* "imgui/core.pyx":12330 * void PopClipRect() * """ * cimgui.PopClipRect() # <<<<<<<<<<<<<< * * */ try { ImGui::PopClipRect(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12330, __pyx_L1_error) } /* "imgui/core.pyx":12324 * ) * * def pop_clip_rect(): # <<<<<<<<<<<<<< * """Pop the last clip region from the stack. See: :func:`push_clip_rect()`. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_clip_rect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12346 * """ * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_1__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndGroup___enter__[] = "_BeginEndGroup.__enter__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_1__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndGroup___enter__(((struct __pyx_obj_5imgui_4core__BeginEndGroup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup___enter__(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); /* "imgui/core.pyx":12347 * * def __enter__(self): * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "imgui/core.pyx":12346 * """ * * def __enter__(self): # <<<<<<<<<<<<<< * return self * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12349 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * cimgui.EndGroup() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_3__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndGroup_2__exit__[] = "_BeginEndGroup.__exit__(self, exc_type, exc_val, exc_tb)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_3__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_tb = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exc_type,&__pyx_n_s_exc_val,&__pyx_n_s_exc_tb,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 12349, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 12349, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 12349, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_exc_type = values[0]; __pyx_v_exc_val = values[1]; __pyx_v_exc_tb = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12349, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._BeginEndGroup.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndGroup_2__exit__(((struct __pyx_obj_5imgui_4core__BeginEndGroup *)__pyx_v_self), __pyx_v_exc_type, __pyx_v_exc_val, __pyx_v_exc_tb); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup_2__exit__(CYTHON_UNUSED struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_exc_type, CYTHON_UNUSED PyObject *__pyx_v_exc_val, CYTHON_UNUSED PyObject *__pyx_v_exc_tb) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); /* "imgui/core.pyx":12350 * * def __exit__(self, exc_type, exc_val, exc_tb): * cimgui.EndGroup() # <<<<<<<<<<<<<< * * def __repr__(self): */ try { ImGui::EndGroup(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12350, __pyx_L1_error) } /* "imgui/core.pyx":12349 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< * cimgui.EndGroup() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._BeginEndGroup.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12352 * cimgui.EndGroup() * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}()".format( * self.__class__.__name__ */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_5__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndGroup_4__repr__(((struct __pyx_obj_5imgui_4core__BeginEndGroup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup_4__repr__(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "imgui/core.pyx":12353 * * def __repr__(self): * return "{}()".format( # <<<<<<<<<<<<<< * self.__class__.__name__ * ) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s__75, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/core.pyx":12354 * def __repr__(self): * return "{}()".format( * self.__class__.__name__ # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12352 * cimgui.EndGroup() * * def __repr__(self): # <<<<<<<<<<<<<< * return "{}()".format( * self.__class__.__name__ */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("imgui.core._BeginEndGroup.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndGroup_6__reduce_cython__[] = "_BeginEndGroup.__reduce_cython__(self)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndGroup_6__reduce_cython__(((struct __pyx_obj_5imgui_4core__BeginEndGroup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup_6__reduce_cython__(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = () # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __Pyx_INCREF(__pyx_empty_tuple); __pyx_v_state = __pyx_empty_tuple; /* "(tree fragment)":6 * cdef bint use_setstate * state = () * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__dict = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":7 * state = () * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_2 = (__pyx_v__dict != Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict); __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = False */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = () * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = False # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, None), state */ /*else*/ { __pyx_v_use_setstate = 0; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, None), state * else: */ __pyx_t_3 = (__pyx_v_use_setstate != 0); if (__pyx_t_3) { /* "(tree fragment)":13 * use_setstate = False * if use_setstate: * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle__BeginEndGroup); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_INCREF(__pyx_int_222419149); __Pyx_GIVEREF(__pyx_int_222419149); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_222419149); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state); __pyx_t_4 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, None), state * else: * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle__BeginEndGroup__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle__BeginEndGroup); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_INCREF(__pyx_int_222419149); __Pyx_GIVEREF(__pyx_int_222419149); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_222419149); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1); __pyx_t_5 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("imgui.core._BeginEndGroup.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle__BeginEndGroup__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static char __pyx_doc_5imgui_4core_14_BeginEndGroup_8__setstate_cython__[] = "_BeginEndGroup.__setstate_cython__(self, __pyx_state)"; static PyObject *__pyx_pw_5imgui_4core_14_BeginEndGroup_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_14_BeginEndGroup_8__setstate_cython__(((struct __pyx_obj_5imgui_4core__BeginEndGroup *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_14_BeginEndGroup_8__setstate_cython__(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":17 * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle__BeginEndGroup__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_5imgui_4core___pyx_unpickle__BeginEndGroup__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle__BeginEndGroup, (type(self), 0xd41d8cd, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle__BeginEndGroup__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._BeginEndGroup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12358 * * * def begin_group(): # <<<<<<<<<<<<<< * """Start item group and lock its horizontal starting position. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_561begin_group(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_560begin_group[] = "begin_group()\nStart item group and lock its horizontal starting position.\n\n Captures group bounding box into one \"item\". Thanks to this you can use\n :any:`is_item_hovered()` or layout primitives such as :any:`same_line()`\n on whole group, etc.\n\n .. visual-example::\n :auto_layout:\n :width: 500\n\n with imgui.begin(\"Example: item groups\"):\n\n with imgui.begin_group():\n imgui.text(\"First group (buttons):\")\n imgui.button(\"Button A\")\n imgui.button(\"Button B\")\n\n imgui.same_line(spacing=50)\n\n with imgui.begin_group():\n imgui.text(\"Second group (text and bullet texts):\")\n imgui.bullet_text(\"Bullet A\")\n imgui.bullet_text(\"Bullet B\")\n\n Example::\n\n imgui.begin(\"Example: item groups\")\n\n imgui.begin_group()\n imgui.text(\"First group (buttons):\")\n imgui.button(\"Button A\")\n imgui.button(\"Button B\")\n imgui.end_group()\n\n imgui.same_line(spacing=50)\n\n imgui.begin_group()\n imgui.text(\"Second group (text and bullet texts):\")\n imgui.bullet_text(\"Bullet A\")\n imgui.bullet_text(\"Bullet B\")\n imgui.end_group()\n\n imgui.end()\n\n Returns:\n _BeginEndGrouop; use with ``with`` to automatically call :func:`end_group` when the block ends.\n\n .. wraps::\n void BeginGroup()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_561begin_group = {"begin_group", (PyCFunction)__pyx_pw_5imgui_4core_561begin_group, METH_NOARGS, __pyx_doc_5imgui_4core_560begin_group}; static PyObject *__pyx_pw_5imgui_4core_561begin_group(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("begin_group (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_560begin_group(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_560begin_group(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("begin_group", 0); /* "imgui/core.pyx":12409 * void BeginGroup() * """ * cimgui.BeginGroup() # <<<<<<<<<<<<<< * return _BeginEndGroup.__new__(_BeginEndGroup) * */ try { ImGui::BeginGroup(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12409, __pyx_L1_error) } /* "imgui/core.pyx":12410 * """ * cimgui.BeginGroup() * return _BeginEndGroup.__new__(_BeginEndGroup) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((PyObject *)__pyx_tp_new_5imgui_4core__BeginEndGroup(((PyTypeObject *)__pyx_ptype_5imgui_4core__BeginEndGroup), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12410, __pyx_L1_error) __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12358 * * * def begin_group(): # <<<<<<<<<<<<<< * """Start item group and lock its horizontal starting position. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.begin_group", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12413 * * * def end_group(): # <<<<<<<<<<<<<< * """End group (see: :any:`begin_group`). * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_563end_group(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_562end_group[] = "end_group()\nEnd group (see: :any:`begin_group`).\n\n .. wraps::\n void EndGroup()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_563end_group = {"end_group", (PyCFunction)__pyx_pw_5imgui_4core_563end_group, METH_NOARGS, __pyx_doc_5imgui_4core_562end_group}; static PyObject *__pyx_pw_5imgui_4core_563end_group(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("end_group (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_562end_group(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_562end_group(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("end_group", 0); /* "imgui/core.pyx":12419 * void EndGroup() * """ * cimgui.EndGroup() # <<<<<<<<<<<<<< * * */ try { ImGui::EndGroup(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12419, __pyx_L1_error) } /* "imgui/core.pyx":12413 * * * def end_group(): # <<<<<<<<<<<<<< * """End group (see: :any:`begin_group`). * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.end_group", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12422 * * * def get_cursor_pos(): # <<<<<<<<<<<<<< * """Get the cursor position. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_565get_cursor_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_564get_cursor_pos[] = "get_cursor_pos()\nGet the cursor position.\n\n .. wraps::\n ImVec2 GetCursorPos()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_565get_cursor_pos = {"get_cursor_pos", (PyCFunction)__pyx_pw_5imgui_4core_565get_cursor_pos, METH_NOARGS, __pyx_doc_5imgui_4core_564get_cursor_pos}; static PyObject *__pyx_pw_5imgui_4core_565get_cursor_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_cursor_pos (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_564get_cursor_pos(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_564get_cursor_pos(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_cursor_pos", 0); /* "imgui/core.pyx":12428 * ImVec2 GetCursorPos() * """ * return _cast_ImVec2_tuple(cimgui.GetCursorPos()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetCursorPos(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12428, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12422 * * * def get_cursor_pos(): # <<<<<<<<<<<<<< * """Get the cursor position. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_cursor_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12431 * * * def get_cursor_pos_x(): # <<<<<<<<<<<<<< * return cimgui.GetCursorPosX() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_567get_cursor_pos_x(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_566get_cursor_pos_x[] = "get_cursor_pos_x()"; static PyMethodDef __pyx_mdef_5imgui_4core_567get_cursor_pos_x = {"get_cursor_pos_x", (PyCFunction)__pyx_pw_5imgui_4core_567get_cursor_pos_x, METH_NOARGS, __pyx_doc_5imgui_4core_566get_cursor_pos_x}; static PyObject *__pyx_pw_5imgui_4core_567get_cursor_pos_x(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_cursor_pos_x (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_566get_cursor_pos_x(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_566get_cursor_pos_x(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_cursor_pos_x", 0); /* "imgui/core.pyx":12432 * * def get_cursor_pos_x(): * return cimgui.GetCursorPosX() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetCursorPosX(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12432, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12431 * * * def get_cursor_pos_x(): # <<<<<<<<<<<<<< * return cimgui.GetCursorPosX() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_cursor_pos_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12435 * * * def get_cursor_pos_y(): # <<<<<<<<<<<<<< * return cimgui.GetCursorPosY() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_569get_cursor_pos_y(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_568get_cursor_pos_y[] = "get_cursor_pos_y()"; static PyMethodDef __pyx_mdef_5imgui_4core_569get_cursor_pos_y = {"get_cursor_pos_y", (PyCFunction)__pyx_pw_5imgui_4core_569get_cursor_pos_y, METH_NOARGS, __pyx_doc_5imgui_4core_568get_cursor_pos_y}; static PyObject *__pyx_pw_5imgui_4core_569get_cursor_pos_y(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_cursor_pos_y (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_568get_cursor_pos_y(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_568get_cursor_pos_y(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_cursor_pos_y", 0); /* "imgui/core.pyx":12436 * * def get_cursor_pos_y(): * return cimgui.GetCursorPosY() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetCursorPosY(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12436, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12435 * * * def get_cursor_pos_y(): # <<<<<<<<<<<<<< * return cimgui.GetCursorPosY() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_cursor_pos_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12439 * * * def set_cursor_pos(local_pos): # <<<<<<<<<<<<<< * """Set the cursor position in local coordinates [0..] (useful to work with ImDrawList API) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_571set_cursor_pos(PyObject *__pyx_self, PyObject *__pyx_v_local_pos); /*proto*/ static char __pyx_doc_5imgui_4core_570set_cursor_pos[] = "set_cursor_pos(local_pos)\nSet the cursor position in local coordinates [0..] (useful to work with ImDrawList API)\n\n .. wraps::\n ImVec2 SetCursorScreenPos(const ImVec2& screen_pos)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_571set_cursor_pos = {"set_cursor_pos", (PyCFunction)__pyx_pw_5imgui_4core_571set_cursor_pos, METH_O, __pyx_doc_5imgui_4core_570set_cursor_pos}; static PyObject *__pyx_pw_5imgui_4core_571set_cursor_pos(PyObject *__pyx_self, PyObject *__pyx_v_local_pos) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_cursor_pos (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_570set_cursor_pos(__pyx_self, ((PyObject *)__pyx_v_local_pos)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_570set_cursor_pos(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_local_pos) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_cursor_pos", 0); /* "imgui/core.pyx":12445 * ImVec2 SetCursorScreenPos(const ImVec2& screen_pos) * """ * cimgui.SetCursorPos(_cast_tuple_ImVec2(local_pos)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_local_pos); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12445, __pyx_L1_error) try { ImGui::SetCursorPos(__pyx_t_1); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12445, __pyx_L1_error) } /* "imgui/core.pyx":12439 * * * def set_cursor_pos(local_pos): # <<<<<<<<<<<<<< * """Set the cursor position in local coordinates [0..] (useful to work with ImDrawList API) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_cursor_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12448 * * * def set_cursor_pos_x(float x): # <<<<<<<<<<<<<< * cimgui.SetCursorPosX(x) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_573set_cursor_pos_x(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/ static char __pyx_doc_5imgui_4core_572set_cursor_pos_x[] = "set_cursor_pos_x(float x)"; static PyMethodDef __pyx_mdef_5imgui_4core_573set_cursor_pos_x = {"set_cursor_pos_x", (PyCFunction)__pyx_pw_5imgui_4core_573set_cursor_pos_x, METH_O, __pyx_doc_5imgui_4core_572set_cursor_pos_x}; static PyObject *__pyx_pw_5imgui_4core_573set_cursor_pos_x(PyObject *__pyx_self, PyObject *__pyx_arg_x) { float __pyx_v_x; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_cursor_pos_x (wrapper)", 0); assert(__pyx_arg_x); { __pyx_v_x = __pyx_PyFloat_AsFloat(__pyx_arg_x); if (unlikely((__pyx_v_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12448, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_cursor_pos_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_572set_cursor_pos_x(__pyx_self, ((float)__pyx_v_x)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_572set_cursor_pos_x(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_x) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_cursor_pos_x", 0); /* "imgui/core.pyx":12449 * * def set_cursor_pos_x(float x): * cimgui.SetCursorPosX(x) # <<<<<<<<<<<<<< * * */ try { ImGui::SetCursorPosX(__pyx_v_x); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12449, __pyx_L1_error) } /* "imgui/core.pyx":12448 * * * def set_cursor_pos_x(float x): # <<<<<<<<<<<<<< * cimgui.SetCursorPosX(x) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_cursor_pos_x", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12452 * * * def set_cursor_pos_y(float y): # <<<<<<<<<<<<<< * cimgui.SetCursorPosY(y) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_575set_cursor_pos_y(PyObject *__pyx_self, PyObject *__pyx_arg_y); /*proto*/ static char __pyx_doc_5imgui_4core_574set_cursor_pos_y[] = "set_cursor_pos_y(float y)"; static PyMethodDef __pyx_mdef_5imgui_4core_575set_cursor_pos_y = {"set_cursor_pos_y", (PyCFunction)__pyx_pw_5imgui_4core_575set_cursor_pos_y, METH_O, __pyx_doc_5imgui_4core_574set_cursor_pos_y}; static PyObject *__pyx_pw_5imgui_4core_575set_cursor_pos_y(PyObject *__pyx_self, PyObject *__pyx_arg_y) { float __pyx_v_y; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_cursor_pos_y (wrapper)", 0); assert(__pyx_arg_y); { __pyx_v_y = __pyx_PyFloat_AsFloat(__pyx_arg_y); if (unlikely((__pyx_v_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12452, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.set_cursor_pos_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_574set_cursor_pos_y(__pyx_self, ((float)__pyx_v_y)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_574set_cursor_pos_y(CYTHON_UNUSED PyObject *__pyx_self, float __pyx_v_y) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_cursor_pos_y", 0); /* "imgui/core.pyx":12453 * * def set_cursor_pos_y(float y): * cimgui.SetCursorPosY(y) # <<<<<<<<<<<<<< * * */ try { ImGui::SetCursorPosY(__pyx_v_y); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12453, __pyx_L1_error) } /* "imgui/core.pyx":12452 * * * def set_cursor_pos_y(float y): # <<<<<<<<<<<<<< * cimgui.SetCursorPosY(y) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_cursor_pos_y", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12456 * * * def get_cursor_start_pos(): # <<<<<<<<<<<<<< * """Get the initial cursor position. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_577get_cursor_start_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_576get_cursor_start_pos[] = "get_cursor_start_pos()\nGet the initial cursor position.\n\n .. wraps::\n ImVec2 GetCursorStartPos()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_577get_cursor_start_pos = {"get_cursor_start_pos", (PyCFunction)__pyx_pw_5imgui_4core_577get_cursor_start_pos, METH_NOARGS, __pyx_doc_5imgui_4core_576get_cursor_start_pos}; static PyObject *__pyx_pw_5imgui_4core_577get_cursor_start_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_cursor_start_pos (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_576get_cursor_start_pos(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_576get_cursor_start_pos(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_cursor_start_pos", 0); /* "imgui/core.pyx":12462 * ImVec2 GetCursorStartPos() * """ * return _cast_ImVec2_tuple(cimgui.GetCursorStartPos()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetCursorStartPos(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12462, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12456 * * * def get_cursor_start_pos(): # <<<<<<<<<<<<<< * """Get the initial cursor position. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_cursor_start_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12465 * * * def get_cursor_screen_pos(): # <<<<<<<<<<<<<< * """Get the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_579get_cursor_screen_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_578get_cursor_screen_pos[] = "get_cursor_screen_pos()\nGet the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API)\n\n .. wraps::\n ImVec2 GetCursorScreenPos()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_579get_cursor_screen_pos = {"get_cursor_screen_pos", (PyCFunction)__pyx_pw_5imgui_4core_579get_cursor_screen_pos, METH_NOARGS, __pyx_doc_5imgui_4core_578get_cursor_screen_pos}; static PyObject *__pyx_pw_5imgui_4core_579get_cursor_screen_pos(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_cursor_screen_pos (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_578get_cursor_screen_pos(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_578get_cursor_screen_pos(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_cursor_screen_pos", 0); /* "imgui/core.pyx":12471 * ImVec2 GetCursorScreenPos() * """ * return _cast_ImVec2_tuple(cimgui.GetCursorScreenPos()) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetCursorScreenPos(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12471, __pyx_L1_error) } __pyx_t_2 = __pyx_f_5imgui_4core__cast_ImVec2_tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12465 * * * def get_cursor_screen_pos(): # <<<<<<<<<<<<<< * """Get the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_cursor_screen_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12474 * * * def set_cursor_screen_pos(screen_pos): # <<<<<<<<<<<<<< * """Set the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_581set_cursor_screen_pos(PyObject *__pyx_self, PyObject *__pyx_v_screen_pos); /*proto*/ static char __pyx_doc_5imgui_4core_580set_cursor_screen_pos[] = "set_cursor_screen_pos(screen_pos)\nSet the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API)\n\n .. wraps::\n ImVec2 SetCursorScreenPos(const ImVec2& screen_pos)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_581set_cursor_screen_pos = {"set_cursor_screen_pos", (PyCFunction)__pyx_pw_5imgui_4core_581set_cursor_screen_pos, METH_O, __pyx_doc_5imgui_4core_580set_cursor_screen_pos}; static PyObject *__pyx_pw_5imgui_4core_581set_cursor_screen_pos(PyObject *__pyx_self, PyObject *__pyx_v_screen_pos) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_cursor_screen_pos (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_580set_cursor_screen_pos(__pyx_self, ((PyObject *)__pyx_v_screen_pos)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_580set_cursor_screen_pos(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_screen_pos) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImVec2 __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_cursor_screen_pos", 0); /* "imgui/core.pyx":12480 * ImVec2 SetCursorScreenPos(const ImVec2& screen_pos) * """ * cimgui.SetCursorScreenPos(_cast_tuple_ImVec2(screen_pos)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__cast_tuple_ImVec2(__pyx_v_screen_pos); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12480, __pyx_L1_error) try { ImGui::SetCursorScreenPos(__pyx_t_1); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12480, __pyx_L1_error) } /* "imgui/core.pyx":12474 * * * def set_cursor_screen_pos(screen_pos): # <<<<<<<<<<<<<< * """Set the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.set_cursor_screen_pos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12489 * set_cursor_screen_position = set_cursor_screen_pos * * def align_text_to_frame_padding(): # <<<<<<<<<<<<<< * cimgui.AlignTextToFramePadding() * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_583align_text_to_frame_padding(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_582align_text_to_frame_padding[] = "align_text_to_frame_padding()"; static PyMethodDef __pyx_mdef_5imgui_4core_583align_text_to_frame_padding = {"align_text_to_frame_padding", (PyCFunction)__pyx_pw_5imgui_4core_583align_text_to_frame_padding, METH_NOARGS, __pyx_doc_5imgui_4core_582align_text_to_frame_padding}; static PyObject *__pyx_pw_5imgui_4core_583align_text_to_frame_padding(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("align_text_to_frame_padding (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_582align_text_to_frame_padding(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_582align_text_to_frame_padding(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("align_text_to_frame_padding", 0); /* "imgui/core.pyx":12490 * * def align_text_to_frame_padding(): * cimgui.AlignTextToFramePadding() # <<<<<<<<<<<<<< * * def get_text_line_height(): */ try { ImGui::AlignTextToFramePadding(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12490, __pyx_L1_error) } /* "imgui/core.pyx":12489 * set_cursor_screen_position = set_cursor_screen_pos * * def align_text_to_frame_padding(): # <<<<<<<<<<<<<< * cimgui.AlignTextToFramePadding() * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.align_text_to_frame_padding", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12492 * cimgui.AlignTextToFramePadding() * * def get_text_line_height(): # <<<<<<<<<<<<<< * """Get text line height. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_585get_text_line_height(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_584get_text_line_height[] = "get_text_line_height()\nGet text line height.\n\n Returns:\n int: text line height.\n\n .. wraps::\n void GetTextLineHeight()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_585get_text_line_height = {"get_text_line_height", (PyCFunction)__pyx_pw_5imgui_4core_585get_text_line_height, METH_NOARGS, __pyx_doc_5imgui_4core_584get_text_line_height}; static PyObject *__pyx_pw_5imgui_4core_585get_text_line_height(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_text_line_height (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_584get_text_line_height(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_584get_text_line_height(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_text_line_height", 0); /* "imgui/core.pyx":12501 * void GetTextLineHeight() * """ * return cimgui.GetTextLineHeight() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetTextLineHeight(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12501, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12492 * cimgui.AlignTextToFramePadding() * * def get_text_line_height(): # <<<<<<<<<<<<<< * """Get text line height. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_text_line_height", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12504 * * * def get_text_line_height_with_spacing(): # <<<<<<<<<<<<<< * """Get text line height, with spacing. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_587get_text_line_height_with_spacing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_586get_text_line_height_with_spacing[] = "get_text_line_height_with_spacing()\nGet text line height, with spacing.\n\n Returns:\n int: text line height, with spacing.\n\n .. wraps::\n void GetTextLineHeightWithSpacing()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_587get_text_line_height_with_spacing = {"get_text_line_height_with_spacing", (PyCFunction)__pyx_pw_5imgui_4core_587get_text_line_height_with_spacing, METH_NOARGS, __pyx_doc_5imgui_4core_586get_text_line_height_with_spacing}; static PyObject *__pyx_pw_5imgui_4core_587get_text_line_height_with_spacing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_text_line_height_with_spacing (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_586get_text_line_height_with_spacing(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_586get_text_line_height_with_spacing(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_text_line_height_with_spacing", 0); /* "imgui/core.pyx":12513 * void GetTextLineHeightWithSpacing() * """ * return cimgui.GetTextLineHeightWithSpacing() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetTextLineHeightWithSpacing(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12513, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12504 * * * def get_text_line_height_with_spacing(): # <<<<<<<<<<<<<< * """Get text line height, with spacing. * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_text_line_height_with_spacing", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12516 * * * def get_frame_height(): # <<<<<<<<<<<<<< * """~ FontSize + style.FramePadding.y * 2 * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_589get_frame_height(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_588get_frame_height[] = "get_frame_height()\n~ FontSize + style.FramePadding.y * 2\n\n .. wraps::\n float GetFrameHeight()\n float GetFrameHeightWithSpacing() except +\n "; static PyMethodDef __pyx_mdef_5imgui_4core_589get_frame_height = {"get_frame_height", (PyCFunction)__pyx_pw_5imgui_4core_589get_frame_height, METH_NOARGS, __pyx_doc_5imgui_4core_588get_frame_height}; static PyObject *__pyx_pw_5imgui_4core_589get_frame_height(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_frame_height (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_588get_frame_height(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_588get_frame_height(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_frame_height", 0); /* "imgui/core.pyx":12523 * float GetFrameHeightWithSpacing() except + * """ * return cimgui.GetFrameHeight() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetFrameHeight(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12523, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12516 * * * def get_frame_height(): # <<<<<<<<<<<<<< * """~ FontSize + style.FramePadding.y * 2 * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_frame_height", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12526 * * * def get_frame_height_with_spacing(): # <<<<<<<<<<<<<< * """~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_591get_frame_height_with_spacing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_590get_frame_height_with_spacing[] = "get_frame_height_with_spacing()\n~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)\n\n .. wraps::\n float GetFrameHeightWithSpacing()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_591get_frame_height_with_spacing = {"get_frame_height_with_spacing", (PyCFunction)__pyx_pw_5imgui_4core_591get_frame_height_with_spacing, METH_NOARGS, __pyx_doc_5imgui_4core_590get_frame_height_with_spacing}; static PyObject *__pyx_pw_5imgui_4core_591get_frame_height_with_spacing(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_frame_height_with_spacing (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_590get_frame_height_with_spacing(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_590get_frame_height_with_spacing(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations float __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_frame_height_with_spacing", 0); /* "imgui/core.pyx":12532 * float GetFrameHeightWithSpacing() * """ * return cimgui.GetFrameHeightWithSpacing() # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); try { __pyx_t_1 = ImGui::GetFrameHeightWithSpacing(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12532, __pyx_L1_error) } __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12526 * * * def get_frame_height_with_spacing(): # <<<<<<<<<<<<<< * """~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_frame_height_with_spacing", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12535 * * * def create_context(_FontAtlas shared_font_atlas = None): # <<<<<<<<<<<<<< * """CreateContext * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_593create_context(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_592create_context[] = "create_context(_FontAtlas shared_font_atlas=None)\nCreateContext\n\n .. todo::\n Add an example\n\n .. wraps::\n ImGuiContext* CreateContext(\n # note: optional\n ImFontAtlas* shared_font_atlas = NULL);\n )\n "; static PyMethodDef __pyx_mdef_5imgui_4core_593create_context = {"create_context", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_593create_context, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_592create_context}; static PyObject *__pyx_pw_5imgui_4core_593create_context(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_shared_font_atlas = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("create_context (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_shared_font_atlas,0}; PyObject* values[1] = {0}; values[0] = (PyObject *)((struct __pyx_obj_5imgui_4core__FontAtlas *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shared_font_atlas); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "create_context") < 0)) __PYX_ERR(0, 12535, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_shared_font_atlas = ((struct __pyx_obj_5imgui_4core__FontAtlas *)values[0]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("create_context", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12535, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.create_context", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_shared_font_atlas), __pyx_ptype_5imgui_4core__FontAtlas, 1, "shared_font_atlas", 0))) __PYX_ERR(0, 12535, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_592create_context(__pyx_self, __pyx_v_shared_font_atlas); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_592create_context(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__FontAtlas *__pyx_v_shared_font_atlas) { ImGuiContext *__pyx_v__ptr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; ImGuiContext *__pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("create_context", 0); /* "imgui/core.pyx":12550 * cdef cimgui.ImGuiContext* _ptr * * if (shared_font_atlas): # <<<<<<<<<<<<<< * _ptr = cimgui.CreateContext(shared_font_atlas._ptr) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_shared_font_atlas)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 12550, __pyx_L1_error) if (__pyx_t_1) { /* "imgui/core.pyx":12551 * * if (shared_font_atlas): * _ptr = cimgui.CreateContext(shared_font_atlas._ptr) # <<<<<<<<<<<<<< * else: * _ptr = cimgui.CreateContext(NULL) */ try { __pyx_t_2 = ImGui::CreateContext(__pyx_v_shared_font_atlas->_ptr); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12551, __pyx_L1_error) } __pyx_v__ptr = __pyx_t_2; /* "imgui/core.pyx":12550 * cdef cimgui.ImGuiContext* _ptr * * if (shared_font_atlas): # <<<<<<<<<<<<<< * _ptr = cimgui.CreateContext(shared_font_atlas._ptr) * else: */ goto __pyx_L3; } /* "imgui/core.pyx":12553 * _ptr = cimgui.CreateContext(shared_font_atlas._ptr) * else: * _ptr = cimgui.CreateContext(NULL) # <<<<<<<<<<<<<< * * # Update submodules: */ /*else*/ { try { __pyx_t_2 = ImGui::CreateContext(NULL); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12553, __pyx_L1_error) } __pyx_v__ptr = __pyx_t_2; } __pyx_L3:; /* "imgui/core.pyx":12556 * * # Update submodules: * internal.UpdateImGuiContext(_ptr) # <<<<<<<<<<<<<< * * return _ImGuiContext.from_ptr(_ptr) */ __pyx_t_3 = __pyx_f_5imgui_8internal_UpdateImGuiContext(__pyx_v__ptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":12558 * internal.UpdateImGuiContext(_ptr) * * return _ImGuiContext.from_ptr(_ptr) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __pyx_f_5imgui_4core_13_ImGuiContext_from_ptr(__pyx_v__ptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "imgui/core.pyx":12535 * * * def create_context(_FontAtlas shared_font_atlas = None): # <<<<<<<<<<<<<< * """CreateContext * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.create_context", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12561 * * * def destroy_context(_ImGuiContext ctx = None): # <<<<<<<<<<<<<< * """DestroyContext * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_595destroy_context(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_594destroy_context[] = "destroy_context(_ImGuiContext ctx=None)\nDestroyContext\n\n .. wraps::\n DestroyContext(\n # note: optional\n ImGuiContext* ctx = NULL);\n "; static PyMethodDef __pyx_mdef_5imgui_4core_595destroy_context = {"destroy_context", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_595destroy_context, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_594destroy_context}; static PyObject *__pyx_pw_5imgui_4core_595destroy_context(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_ctx = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("destroy_context (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ctx,0}; PyObject* values[1] = {0}; values[0] = (PyObject *)((struct __pyx_obj_5imgui_4core__ImGuiContext *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ctx); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "destroy_context") < 0)) __PYX_ERR(0, 12561, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_ctx = ((struct __pyx_obj_5imgui_4core__ImGuiContext *)values[0]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("destroy_context", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12561, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.destroy_context", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ctx), __pyx_ptype_5imgui_4core__ImGuiContext, 1, "ctx", 0))) __PYX_ERR(0, 12561, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_594destroy_context(__pyx_self, __pyx_v_ctx); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_594destroy_context(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_ctx) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("destroy_context", 0); /* "imgui/core.pyx":12570 * """ * * if ctx and ctx._ptr != NULL: # <<<<<<<<<<<<<< * del _contexts[ctx._ptr] * cimgui.DestroyContext(ctx._ptr) */ __pyx_t_2 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_ctx)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 12570, __pyx_L1_error) if (__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L4_bool_binop_done; } __pyx_t_2 = ((__pyx_v_ctx->_ptr != NULL) != 0); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (likely(__pyx_t_1)) { /* "imgui/core.pyx":12571 * * if ctx and ctx._ptr != NULL: * del _contexts[ctx._ptr] # <<<<<<<<<<<<<< * cimgui.DestroyContext(ctx._ptr) * ctx._ptr = NULL */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_contexts); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__Pyx_DelItemInt(__pyx_t_3, ((uintptr_t)__pyx_v_ctx->_ptr), uintptr_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1) < 0)) __PYX_ERR(0, 12571, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":12572 * if ctx and ctx._ptr != NULL: * del _contexts[ctx._ptr] * cimgui.DestroyContext(ctx._ptr) # <<<<<<<<<<<<<< * ctx._ptr = NULL * */ try { ImGui::DestroyContext(__pyx_v_ctx->_ptr); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12572, __pyx_L1_error) } /* "imgui/core.pyx":12573 * del _contexts[ctx._ptr] * cimgui.DestroyContext(ctx._ptr) * ctx._ptr = NULL # <<<<<<<<<<<<<< * * # Update submodules: */ __pyx_v_ctx->_ptr = NULL; /* "imgui/core.pyx":12576 * * # Update submodules: * internal.UpdateImGuiContext(NULL) # <<<<<<<<<<<<<< * * else: */ __pyx_t_3 = __pyx_f_5imgui_8internal_UpdateImGuiContext(NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "imgui/core.pyx":12570 * """ * * if ctx and ctx._ptr != NULL: # <<<<<<<<<<<<<< * del _contexts[ctx._ptr] * cimgui.DestroyContext(ctx._ptr) */ goto __pyx_L3; } /* "imgui/core.pyx":12579 * * else: * raise RuntimeError("Context invalid (None or destroyed)") # <<<<<<<<<<<<<< * * */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__112, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 12579, __pyx_L1_error) } __pyx_L3:; /* "imgui/core.pyx":12561 * * * def destroy_context(_ImGuiContext ctx = None): # <<<<<<<<<<<<<< * """DestroyContext * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("imgui.core.destroy_context", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12582 * * * def get_current_context(): # <<<<<<<<<<<<<< * """GetCurrentContext * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_597get_current_context(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_596get_current_context[] = "get_current_context()\nGetCurrentContext\n\n .. wraps::\n ImGuiContext* GetCurrentContext();\n "; static PyMethodDef __pyx_mdef_5imgui_4core_597get_current_context = {"get_current_context", (PyCFunction)__pyx_pw_5imgui_4core_597get_current_context, METH_NOARGS, __pyx_doc_5imgui_4core_596get_current_context}; static PyObject *__pyx_pw_5imgui_4core_597get_current_context(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_current_context (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_596get_current_context(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_596get_current_context(CYTHON_UNUSED PyObject *__pyx_self) { ImGuiContext *__pyx_v__ptr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations ImGuiContext *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_current_context", 0); /* "imgui/core.pyx":12590 * * cdef cimgui.ImGuiContext* _ptr * _ptr = cimgui.GetCurrentContext() # <<<<<<<<<<<<<< * return _ImGuiContext.from_ptr(_ptr) * */ try { __pyx_t_1 = ImGui::GetCurrentContext(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12590, __pyx_L1_error) } __pyx_v__ptr = __pyx_t_1; /* "imgui/core.pyx":12591 * cdef cimgui.ImGuiContext* _ptr * _ptr = cimgui.GetCurrentContext() * return _ImGuiContext.from_ptr(_ptr) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_5imgui_4core_13_ImGuiContext_from_ptr(__pyx_v__ptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "imgui/core.pyx":12582 * * * def get_current_context(): # <<<<<<<<<<<<<< * """GetCurrentContext * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("imgui.core.get_current_context", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12594 * * * def set_current_context(_ImGuiContext ctx): # <<<<<<<<<<<<<< * """SetCurrentContext * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_599set_current_context(PyObject *__pyx_self, PyObject *__pyx_v_ctx); /*proto*/ static char __pyx_doc_5imgui_4core_598set_current_context[] = "set_current_context(_ImGuiContext ctx)\nSetCurrentContext\n\n .. wraps::\n SetCurrentContext(\n ImGuiContext *ctx);\n "; static PyMethodDef __pyx_mdef_5imgui_4core_599set_current_context = {"set_current_context", (PyCFunction)__pyx_pw_5imgui_4core_599set_current_context, METH_O, __pyx_doc_5imgui_4core_598set_current_context}; static PyObject *__pyx_pw_5imgui_4core_599set_current_context(PyObject *__pyx_self, PyObject *__pyx_v_ctx) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_current_context (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ctx), __pyx_ptype_5imgui_4core__ImGuiContext, 1, "ctx", 0))) __PYX_ERR(0, 12594, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_598set_current_context(__pyx_self, ((struct __pyx_obj_5imgui_4core__ImGuiContext *)__pyx_v_ctx)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_598set_current_context(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__ImGuiContext *__pyx_v_ctx) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_current_context", 0); /* "imgui/core.pyx":12601 * ImGuiContext *ctx); * """ * cimgui.SetCurrentContext(ctx._ptr) # <<<<<<<<<<<<<< * * # Update submodules: */ try { ImGui::SetCurrentContext(__pyx_v_ctx->_ptr); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12601, __pyx_L1_error) } /* "imgui/core.pyx":12604 * * # Update submodules: * internal.UpdateImGuiContext(ctx._ptr) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_8internal_UpdateImGuiContext(__pyx_v_ctx->_ptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":12594 * * * def set_current_context(_ImGuiContext ctx): # <<<<<<<<<<<<<< * """SetCurrentContext * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.set_current_context", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12607 * * * def push_id(str str_id): # <<<<<<<<<<<<<< * """Push an ID into the ID stack * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_601push_id(PyObject *__pyx_self, PyObject *__pyx_v_str_id); /*proto*/ static char __pyx_doc_5imgui_4core_600push_id[] = "push_id(str str_id)\nPush an ID into the ID stack\n\n Args:\n str_id (str): ID to push\n\n wraps::\n PushID(const char* str_id)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_601push_id = {"push_id", (PyCFunction)__pyx_pw_5imgui_4core_601push_id, METH_O, __pyx_doc_5imgui_4core_600push_id}; static PyObject *__pyx_pw_5imgui_4core_601push_id(PyObject *__pyx_self, PyObject *__pyx_v_str_id) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("push_id (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_str_id), (&PyString_Type), 1, "str_id", 1))) __PYX_ERR(0, 12607, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_600push_id(__pyx_self, ((PyObject*)__pyx_v_str_id)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_600push_id(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_str_id) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char const *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("push_id", 0); /* "imgui/core.pyx":12616 * PushID(const char* str_id) * """ * cimgui.PushID(_bytes(str_id)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_str_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 12616, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 12616, __pyx_L1_error) try { ImGui::PushID(__pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12616, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":12607 * * * def push_id(str str_id): # <<<<<<<<<<<<<< * """Push an ID into the ID stack * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core.push_id", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12619 * * * def pop_id(): # <<<<<<<<<<<<<< * """Pop from the ID stack * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_603pop_id(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_602pop_id[] = "pop_id()\nPop from the ID stack\n\n wraps::\n PopID()\n "; static PyMethodDef __pyx_mdef_5imgui_4core_603pop_id = {"pop_id", (PyCFunction)__pyx_pw_5imgui_4core_603pop_id, METH_NOARGS, __pyx_doc_5imgui_4core_602pop_id}; static PyObject *__pyx_pw_5imgui_4core_603pop_id(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("pop_id (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_602pop_id(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_602pop_id(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pop_id", 0); /* "imgui/core.pyx":12625 * PopID() * """ * cimgui.PopID() # <<<<<<<<<<<<<< * * def _ansifeed_text_ansi(str text): */ try { ImGui::PopID(); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12625, __pyx_L1_error) } /* "imgui/core.pyx":12619 * * * def pop_id(): # <<<<<<<<<<<<<< * """Pop from the ID stack * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("imgui.core.pop_id", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12627 * cimgui.PopID() * * def _ansifeed_text_ansi(str text): # <<<<<<<<<<<<<< * """Add ANSI-escape-formatted text to current widget stack. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_605_ansifeed_text_ansi(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/ static char __pyx_doc_5imgui_4core_604_ansifeed_text_ansi[] = "_ansifeed_text_ansi(str text)\nAdd ANSI-escape-formatted text to current widget stack.\n\n Similar to imgui.text, but with ANSI parsing.\n imgui.text documentation below:\n\n .. visual-example::\n :title: simple text widget\n :height: 80\n :auto_layout:\n\n imgui.begin(\"Example: simple text\")\n imgui.extra.text_ansi(\"Default \033[31m colored \033[m default\")\n imgui.end()\n\n Args:\n text (str): text to display.\n\n .. wraps::\n Text(const char* fmt, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_605_ansifeed_text_ansi = {"_ansifeed_text_ansi", (PyCFunction)__pyx_pw_5imgui_4core_605_ansifeed_text_ansi, METH_O, __pyx_doc_5imgui_4core_604_ansifeed_text_ansi}; static PyObject *__pyx_pw_5imgui_4core_605_ansifeed_text_ansi(PyObject *__pyx_self, PyObject *__pyx_v_text) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_ansifeed_text_ansi (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 12627, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_604_ansifeed_text_ansi(__pyx_self, ((PyObject*)__pyx_v_text)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_604_ansifeed_text_ansi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_ansifeed_text_ansi", 0); /* "imgui/core.pyx":12649 * """ * # note: "%s" required for safety and to favor of Python string formating * ansifeed.TextAnsi("%s", _bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 12649, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 12649, __pyx_L1_error) try { ImGui::TextAnsi(((char const *)"%s"), __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12649, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":12627 * cimgui.PopID() * * def _ansifeed_text_ansi(str text): # <<<<<<<<<<<<<< * """Add ANSI-escape-formatted text to current widget stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ansifeed_text_ansi", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12652 * * * def _ansifeed_text_ansi_colored(str text, float r, float g, float b, float a=1.): # <<<<<<<<<<<<<< * """Add pre-colored ANSI-escape-formatted text to current widget stack. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_607_ansifeed_text_ansi_colored(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_606_ansifeed_text_ansi_colored[] = "_ansifeed_text_ansi_colored(str text, float r, float g, float b, float a=1.)\nAdd pre-colored ANSI-escape-formatted text to current widget stack.\n\n Similar to imgui.text_colored, but with ANSI parsing.\n imgui.text_colored documentation below:\n\n It is a shortcut for:\n\n .. code-block:: python\n\n imgui.push_style_color(imgui.COLOR_TEXT, r, g, b, a)\n imgui.extra.text_ansi(text)\n imgui.pop_style_color()\n\n\n .. visual-example::\n :title: colored text widget\n :height: 100\n :auto_layout:\n\n imgui.begin(\"Example: colored text\")\n imgui.text_ansi_colored(\"Default \033[31m colored \033[m default\", 1, 0, 0)\n imgui.end()\n\n Args:\n text (str): text to display.\n r (float): red color intensity.\n g (float): green color intensity.\n b (float): blue color instensity.\n a (float): alpha intensity.\n\n .. wraps::\n TextColored(const ImVec4& col, const char* fmt, ...)\n "; static PyMethodDef __pyx_mdef_5imgui_4core_607_ansifeed_text_ansi_colored = {"_ansifeed_text_ansi_colored", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_607_ansifeed_text_ansi_colored, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_606_ansifeed_text_ansi_colored}; static PyObject *__pyx_pw_5imgui_4core_607_ansifeed_text_ansi_colored(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_text = 0; float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; float __pyx_v_a; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_ansifeed_text_ansi_colored (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_text,&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_a,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("_ansifeed_text_ansi_colored", 0, 4, 5, 1); __PYX_ERR(0, 12652, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("_ansifeed_text_ansi_colored", 0, 4, 5, 2); __PYX_ERR(0, 12652, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("_ansifeed_text_ansi_colored", 0, 4, 5, 3); __PYX_ERR(0, 12652, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ansifeed_text_ansi_colored") < 0)) __PYX_ERR(0, 12652, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_text = ((PyObject*)values[0]); __pyx_v_r = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12652, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12652, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12652, __pyx_L3_error) if (values[4]) { __pyx_v_a = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_a == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12652, __pyx_L3_error) } else { __pyx_v_a = ((float)1.); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("_ansifeed_text_ansi_colored", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12652, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._ansifeed_text_ansi_colored", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_text), (&PyString_Type), 1, "text", 1))) __PYX_ERR(0, 12652, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_606_ansifeed_text_ansi_colored(__pyx_self, __pyx_v_text, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_606_ansifeed_text_ansi_colored(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_ansifeed_text_ansi_colored", 0); /* "imgui/core.pyx":12687 * """ * # note: "%s" required for safety and to favor of Python string formating * ansifeed.TextAnsiColored(_cast_args_ImVec4(r, g, b, a), "%s", _bytes(text)) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __pyx_f_5imgui_4core__bytes(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(0, 12687, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 12687, __pyx_L1_error) try { ImGui::TextAnsiColored(__pyx_f_5imgui_4core__cast_args_ImVec4(__pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a), ((char const *)"%s"), __pyx_t_2); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12687, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":12652 * * * def _ansifeed_text_ansi_colored(str text, float r, float g, float b, float a=1.): # <<<<<<<<<<<<<< * """Add pre-colored ANSI-escape-formatted text to current widget stack. * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._ansifeed_text_ansi_colored", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_610generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "imgui/core.pyx":12694 * @contextmanager * @cython.binding(True) * def _py_font(_Font font): # <<<<<<<<<<<<<< * """Use specified font in given context. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_609_py_font(PyObject *__pyx_self, PyObject *__pyx_v_font); /*proto*/ static char __pyx_doc_5imgui_4core_608_py_font[] = "_py_font(_Font font)\nUse specified font in given context.\n\n .. visual-example::\n :auto_layout:\n :height: 100\n :width: 320\n\n io = imgui.get_io()\n\n new_font = io.fonts.add_font_from_file_ttf(\"DroidSans.ttf\", 20)\n impl.refresh_font_texture()\n\n # later in frame code\n\n imgui.begin(\"Default Window\")\n\n imgui.text(\"Text displayed using default font\")\n with imgui.font(new_font):\n imgui.text(\"Text displayed using custom font\")\n\n imgui.end()\n\n Args:\n font (_Font): font object retrieved from :any:`add_font_from_file_ttf`.\n "; static PyMethodDef __pyx_mdef_5imgui_4core_609_py_font = {"_py_font", (PyCFunction)__pyx_pw_5imgui_4core_609_py_font, METH_O, __pyx_doc_5imgui_4core_608_py_font}; static PyObject *__pyx_pw_5imgui_4core_609_py_font(PyObject *__pyx_self, PyObject *__pyx_v_font) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_font (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_font), __pyx_ptype_5imgui_4core__Font, 1, "font", 0))) __PYX_ERR(0, 12694, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_608_py_font(__pyx_self, ((struct __pyx_obj_5imgui_4core__Font *)__pyx_v_font)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_608_py_font(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_5imgui_4core__Font *__pyx_v_font) { struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *__pyx_cur_scope; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_font", 0); __pyx_cur_scope = (struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *)__pyx_tp_new_5imgui_4core___pyx_scope_struct___py_font(__pyx_ptype_5imgui_4core___pyx_scope_struct___py_font, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 12694, __pyx_L1_error) } else { __Pyx_GOTREF(__pyx_cur_scope); } __pyx_cur_scope->__pyx_v_font = __pyx_v_font; __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_font); __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_font); { __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5imgui_4core_610generator, __pyx_codeobj__113, (PyObject *) __pyx_cur_scope, __pyx_n_s_py_font, __pyx_n_s_py_font, __pyx_n_s_imgui_core); if (unlikely(!gen)) __PYX_ERR(0, 12694, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._py_font", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_DECREF(((PyObject *)__pyx_cur_scope)); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_610generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *__pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *)__pyx_generator->closure); PyObject *__pyx_r = NULL; PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_font", 0); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; case 1: goto __pyx_L4_resume_from_yield; default: /* CPython raises the right error here */ __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12694, __pyx_L1_error) /* "imgui/core.pyx":12720 * font (_Font): font object retrieved from :any:`add_font_from_file_ttf`. * """ * push_font(font) # <<<<<<<<<<<<<< * yield * pop_font() */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_push_font); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_cur_scope->__pyx_v_font)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_cur_scope->__pyx_v_font)); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":12721 * """ * push_font(font) * yield # <<<<<<<<<<<<<< * pop_font() * */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); __Pyx_Coroutine_ResetAndClearException(__pyx_generator); /* return from generator, yielding value */ __pyx_generator->resume_label = 1; return __pyx_r; __pyx_L4_resume_from_yield:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12721, __pyx_L1_error) /* "imgui/core.pyx":12722 * push_font(font) * yield * pop_font() # <<<<<<<<<<<<<< * * */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pop_font); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope); /* "imgui/core.pyx":12694 * @contextmanager * @cython.binding(True) * def _py_font(_Font font): # <<<<<<<<<<<<<< * """Use specified font in given context. * */ /* function exit code */ PyErr_SetNone(PyExc_StopIteration); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("_py_font", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_L0:; __Pyx_XDECREF(__pyx_r); __pyx_r = 0; #if !CYTHON_USE_EXC_INFO_STACK __Pyx_Coroutine_ResetAndClearException(__pyx_generator); #endif __pyx_generator->resume_label = -1; __Pyx_Coroutine_clear((PyObject*)__pyx_generator); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_613generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "imgui/core.pyx":12727 * @contextmanager * @cython.binding(True) * def _py_styled(cimgui.ImGuiStyleVar variable, value): # <<<<<<<<<<<<<< * # note: we treat bool value as integer to guess if we are required to pop * # anything because IMGUI may simply skip pushing */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_612_py_styled(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_611_py_styled[] = "_py_styled(ImGuiStyleVar variable, value)"; static PyMethodDef __pyx_mdef_5imgui_4core_612_py_styled = {"_py_styled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_612_py_styled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_611_py_styled}; static PyObject *__pyx_pw_5imgui_4core_612_py_styled(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiStyleVar __pyx_v_variable; PyObject *__pyx_v_value = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_styled (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_variable,&__pyx_n_s_value,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_variable)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("_py_styled", 1, 2, 2, 1); __PYX_ERR(0, 12727, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_py_styled") < 0)) __PYX_ERR(0, 12727, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_variable = __Pyx_PyInt_As_ImGuiStyleVar(values[0]); if (unlikely((__pyx_v_variable == ((ImGuiStyleVar)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12727, __pyx_L3_error) __pyx_v_value = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("_py_styled", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12727, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._py_styled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_611_py_styled(__pyx_self, __pyx_v_variable, __pyx_v_value); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_611_py_styled(CYTHON_UNUSED PyObject *__pyx_self, ImGuiStyleVar __pyx_v_variable, PyObject *__pyx_v_value) { struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *__pyx_cur_scope; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_styled", 0); __pyx_cur_scope = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *)__pyx_tp_new_5imgui_4core___pyx_scope_struct_1__py_styled(__pyx_ptype_5imgui_4core___pyx_scope_struct_1__py_styled, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 12727, __pyx_L1_error) } else { __Pyx_GOTREF(__pyx_cur_scope); } __pyx_cur_scope->__pyx_v_variable = __pyx_v_variable; __pyx_cur_scope->__pyx_v_value = __pyx_v_value; __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value); { __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5imgui_4core_613generator1, __pyx_codeobj__114, (PyObject *) __pyx_cur_scope, __pyx_n_s_py_styled, __pyx_n_s_py_styled, __pyx_n_s_imgui_core); if (unlikely(!gen)) __PYX_ERR(0, 12727, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._py_styled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_DECREF(((PyObject *)__pyx_cur_scope)); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_613generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *__pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *)__pyx_generator->closure); PyObject *__pyx_r = NULL; PyObject *__pyx_t_1 = NULL; unsigned int __pyx_t_2; struct __pyx_opt_args_5imgui_4core_pop_style_var __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_styled", 0); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; case 1: goto __pyx_L4_resume_from_yield; default: /* CPython raises the right error here */ __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12727, __pyx_L1_error) /* "imgui/core.pyx":12730 * # note: we treat bool value as integer to guess if we are required to pop * # anything because IMGUI may simply skip pushing * count = push_style_var(variable, value) # <<<<<<<<<<<<<< * yield * pop_style_var(count) */ __pyx_t_1 = __pyx_f_5imgui_4core_push_style_var(__pyx_cur_scope->__pyx_v_variable, __pyx_cur_scope->__pyx_v_value, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_cur_scope->__pyx_v_count = __pyx_t_1; __pyx_t_1 = 0; /* "imgui/core.pyx":12731 * # anything because IMGUI may simply skip pushing * count = push_style_var(variable, value) * yield # <<<<<<<<<<<<<< * pop_style_var(count) * */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); __Pyx_Coroutine_ResetAndClearException(__pyx_generator); /* return from generator, yielding value */ __pyx_generator->resume_label = 1; return __pyx_r; __pyx_L4_resume_from_yield:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12731, __pyx_L1_error) /* "imgui/core.pyx":12732 * count = push_style_var(variable, value) * yield * pop_style_var(count) # <<<<<<<<<<<<<< * * */ __pyx_t_2 = __Pyx_PyInt_As_unsigned_int(__pyx_cur_scope->__pyx_v_count); if (unlikely((__pyx_t_2 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12732, __pyx_L1_error) __pyx_t_3.__pyx_n = 1; __pyx_t_3.count = __pyx_t_2; __pyx_t_1 = __pyx_f_5imgui_4core_pop_style_var(0, &__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope); /* "imgui/core.pyx":12727 * @contextmanager * @cython.binding(True) * def _py_styled(cimgui.ImGuiStyleVar variable, value): # <<<<<<<<<<<<<< * # note: we treat bool value as integer to guess if we are required to pop * # anything because IMGUI may simply skip pushing */ /* function exit code */ PyErr_SetNone(PyExc_StopIteration); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("_py_styled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_L0:; __Pyx_XDECREF(__pyx_r); __pyx_r = 0; #if !CYTHON_USE_EXC_INFO_STACK __Pyx_Coroutine_ResetAndClearException(__pyx_generator); #endif __pyx_generator->resume_label = -1; __Pyx_Coroutine_clear((PyObject*)__pyx_generator); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_616generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "imgui/core.pyx":12737 * @contextmanager * @cython.binding(True) * def _py_colored( # <<<<<<<<<<<<<< * cimgui.ImGuiCol variable, * float r, */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_615_py_colored(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_614_py_colored[] = "_py_colored(ImGuiCol variable, float r, float g, float b, float a=1.)"; static PyMethodDef __pyx_mdef_5imgui_4core_615_py_colored = {"_py_colored", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_615_py_colored, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_614_py_colored}; static PyObject *__pyx_pw_5imgui_4core_615_py_colored(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { ImGuiCol __pyx_v_variable; float __pyx_v_r; float __pyx_v_g; float __pyx_v_b; float __pyx_v_a; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_colored (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_variable,&__pyx_n_s_r,&__pyx_n_s_g,&__pyx_n_s_b,&__pyx_n_s_a,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_variable)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("_py_colored", 0, 4, 5, 1); __PYX_ERR(0, 12737, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("_py_colored", 0, 4, 5, 2); __PYX_ERR(0, 12737, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("_py_colored", 0, 4, 5, 3); __PYX_ERR(0, 12737, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_py_colored") < 0)) __PYX_ERR(0, 12737, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_variable = __Pyx_PyInt_As_ImGuiCol(values[0]); if (unlikely((__pyx_v_variable == ((ImGuiCol)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12738, __pyx_L3_error) __pyx_v_r = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_r == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12739, __pyx_L3_error) __pyx_v_g = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_g == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12740, __pyx_L3_error) __pyx_v_b = __pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_b == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12741, __pyx_L3_error) if (values[4]) { __pyx_v_a = __pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_a == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 12742, __pyx_L3_error) } else { __pyx_v_a = ((float)((double)1.)); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("_py_colored", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12737, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core._py_colored", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_614_py_colored(__pyx_self, __pyx_v_variable, __pyx_v_r, __pyx_v_g, __pyx_v_b, __pyx_v_a); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_614_py_colored(CYTHON_UNUSED PyObject *__pyx_self, ImGuiCol __pyx_v_variable, float __pyx_v_r, float __pyx_v_g, float __pyx_v_b, float __pyx_v_a) { struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *__pyx_cur_scope; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_colored", 0); __pyx_cur_scope = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *)__pyx_tp_new_5imgui_4core___pyx_scope_struct_2__py_colored(__pyx_ptype_5imgui_4core___pyx_scope_struct_2__py_colored, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 12737, __pyx_L1_error) } else { __Pyx_GOTREF(__pyx_cur_scope); } __pyx_cur_scope->__pyx_v_variable = __pyx_v_variable; __pyx_cur_scope->__pyx_v_r = __pyx_v_r; __pyx_cur_scope->__pyx_v_g = __pyx_v_g; __pyx_cur_scope->__pyx_v_b = __pyx_v_b; __pyx_cur_scope->__pyx_v_a = __pyx_v_a; { __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5imgui_4core_616generator2, __pyx_codeobj__115, (PyObject *) __pyx_cur_scope, __pyx_n_s_py_colored, __pyx_n_s_py_colored, __pyx_n_s_imgui_core); if (unlikely(!gen)) __PYX_ERR(0, 12737, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._py_colored", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_DECREF(((PyObject *)__pyx_cur_scope)); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_616generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *__pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *)__pyx_generator->closure); PyObject *__pyx_r = NULL; PyObject *__pyx_t_1 = NULL; struct __pyx_opt_args_5imgui_4core_push_style_color __pyx_t_2; unsigned int __pyx_t_3; struct __pyx_opt_args_5imgui_4core_pop_style_color __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_colored", 0); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; case 1: goto __pyx_L4_resume_from_yield; default: /* CPython raises the right error here */ __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12737, __pyx_L1_error) /* "imgui/core.pyx":12746 * # note: we treat bool value as integer to guess if we are required to pop * # anything because IMGUI may simply skip pushing * count = push_style_color(variable, r, g, b, a) # <<<<<<<<<<<<<< * yield * pop_style_color(count) */ __pyx_t_2.__pyx_n = 1; __pyx_t_2.a = __pyx_cur_scope->__pyx_v_a; __pyx_t_1 = __pyx_f_5imgui_4core_push_style_color(__pyx_cur_scope->__pyx_v_variable, __pyx_cur_scope->__pyx_v_r, __pyx_cur_scope->__pyx_v_g, __pyx_cur_scope->__pyx_v_b, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_cur_scope->__pyx_v_count = __pyx_t_1; __pyx_t_1 = 0; /* "imgui/core.pyx":12747 * # anything because IMGUI may simply skip pushing * count = push_style_color(variable, r, g, b, a) * yield # <<<<<<<<<<<<<< * pop_style_color(count) * */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); __Pyx_Coroutine_ResetAndClearException(__pyx_generator); /* return from generator, yielding value */ __pyx_generator->resume_label = 1; return __pyx_r; __pyx_L4_resume_from_yield:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12747, __pyx_L1_error) /* "imgui/core.pyx":12748 * count = push_style_color(variable, r, g, b, a) * yield * pop_style_color(count) # <<<<<<<<<<<<<< * * */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_int(__pyx_cur_scope->__pyx_v_count); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12748, __pyx_L1_error) __pyx_t_4.__pyx_n = 1; __pyx_t_4.count = __pyx_t_3; __pyx_t_1 = __pyx_f_5imgui_4core_pop_style_color(0, &__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope); /* "imgui/core.pyx":12737 * @contextmanager * @cython.binding(True) * def _py_colored( # <<<<<<<<<<<<<< * cimgui.ImGuiCol variable, * float r, */ /* function exit code */ PyErr_SetNone(PyExc_StopIteration); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("_py_colored", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_L0:; __Pyx_XDECREF(__pyx_r); __pyx_r = 0; #if !CYTHON_USE_EXC_INFO_STACK __Pyx_Coroutine_ResetAndClearException(__pyx_generator); #endif __pyx_generator->resume_label = -1; __Pyx_Coroutine_clear((PyObject*)__pyx_generator); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_619generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "imgui/core.pyx":12753 * @contextmanager * @cython.binding(True) * def _py_istyled(*variables_and_values): # <<<<<<<<<<<<<< * # todo: rename to nstyled? * count = 0 */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_618_py_istyled(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_617_py_istyled[] = "_py_istyled(*variables_and_values)"; static PyMethodDef __pyx_mdef_5imgui_4core_618_py_istyled = {"_py_istyled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_618_py_istyled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_617_py_istyled}; static PyObject *__pyx_pw_5imgui_4core_618_py_istyled(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_variables_and_values = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_istyled (wrapper)", 0); if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "_py_istyled", 0))) return NULL; __Pyx_INCREF(__pyx_args); __pyx_v_variables_and_values = __pyx_args; __pyx_r = __pyx_pf_5imgui_4core_617_py_istyled(__pyx_self, __pyx_v_variables_and_values); /* function exit code */ __Pyx_XDECREF(__pyx_v_variables_and_values); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_617_py_istyled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_variables_and_values) { struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *__pyx_cur_scope; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_istyled", 0); __pyx_cur_scope = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *)__pyx_tp_new_5imgui_4core___pyx_scope_struct_3__py_istyled(__pyx_ptype_5imgui_4core___pyx_scope_struct_3__py_istyled, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 12753, __pyx_L1_error) } else { __Pyx_GOTREF(__pyx_cur_scope); } __pyx_cur_scope->__pyx_v_variables_and_values = __pyx_v_variables_and_values; __Pyx_INCREF(__pyx_cur_scope->__pyx_v_variables_and_values); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_variables_and_values); { __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5imgui_4core_619generator3, __pyx_codeobj__116, (PyObject *) __pyx_cur_scope, __pyx_n_s_py_istyled, __pyx_n_s_py_istyled, __pyx_n_s_imgui_core); if (unlikely(!gen)) __PYX_ERR(0, 12753, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._py_istyled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_DECREF(((PyObject *)__pyx_cur_scope)); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_619generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *__pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *)__pyx_generator->closure); PyObject *__pyx_r = NULL; PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; PyObject *(*__pyx_t_9)(PyObject *); PyObject *__pyx_t_10 = NULL; PyObject *(*__pyx_t_11)(PyObject *); int __pyx_t_12; int __pyx_t_13; ImGuiStyleVar __pyx_t_14; int __pyx_t_15; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; int __pyx_t_21; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_istyled", 0); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; case 1: goto __pyx_L18_resume_from_yield; default: /* CPython raises the right error here */ __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12753, __pyx_L1_error) /* "imgui/core.pyx":12755 * def _py_istyled(*variables_and_values): * # todo: rename to nstyled? * count = 0 # <<<<<<<<<<<<<< * iterator = iter(variables_and_values) * */ __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); __pyx_cur_scope->__pyx_v_count = __pyx_int_0; /* "imgui/core.pyx":12756 * # todo: rename to nstyled? * count = 0 * iterator = iter(variables_and_values) # <<<<<<<<<<<<<< * * try: */ __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_variables_and_values); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_cur_scope->__pyx_v_iterator = __pyx_t_1; __pyx_t_1 = 0; /* "imgui/core.pyx":12758 * iterator = iter(variables_and_values) * * try: # <<<<<<<<<<<<<< * # note: this is a trick that allows us convert flat list to pairs * for var, val in izip_longest(iterator, iterator, fillvalue=None): */ /*try:*/ { { __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); /*try:*/ { /* "imgui/core.pyx":12760 * try: * # note: this is a trick that allows us convert flat list to pairs * for var, val in izip_longest(iterator, iterator, fillvalue=None): # <<<<<<<<<<<<<< * # note: since we group into pairs it is impossible to have * # var equal to None */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_izip_longest); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_cur_scope->__pyx_v_iterator); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_iterator); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_cur_scope->__pyx_v_iterator); __Pyx_INCREF(__pyx_cur_scope->__pyx_v_iterator); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_iterator); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_cur_scope->__pyx_v_iterator); __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_fillvalue, Py_None) < 0) __PYX_ERR(0, 12760, __pyx_L7_error) __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) { __pyx_t_6 = __pyx_t_7; __Pyx_INCREF(__pyx_t_6); __pyx_t_8 = 0; __pyx_t_9 = NULL; } else { __pyx_t_8 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12760, __pyx_L7_error) } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; for (;;) { if (likely(!__pyx_t_9)) { if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 12760, __pyx_L7_error) #else __pyx_t_7 = PySequence_ITEM(__pyx_t_6, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif } else { if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 12760, __pyx_L7_error) #else __pyx_t_7 = PySequence_ITEM(__pyx_t_6, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif } } else { __pyx_t_7 = __pyx_t_9(__pyx_t_6); if (unlikely(!__pyx_t_7)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 12760, __pyx_L7_error) } break; } __Pyx_GOTREF(__pyx_t_7); } if ((likely(PyTuple_CheckExact(__pyx_t_7))) || (PyList_CheckExact(__pyx_t_7))) { PyObject* sequence = __pyx_t_7; Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); __PYX_ERR(0, 12760, __pyx_L7_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_5 = PyList_GET_ITEM(sequence, 0); __pyx_t_1 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); #else __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_1); #endif __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { Py_ssize_t index = -1; __pyx_t_10 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12760, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_11 = Py_TYPE(__pyx_t_10)->tp_iternext; index = 0; __pyx_t_5 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_5)) goto __pyx_L15_unpacking_failed; __Pyx_GOTREF(__pyx_t_5); index = 1; __pyx_t_1 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_1)) goto __pyx_L15_unpacking_failed; __Pyx_GOTREF(__pyx_t_1); if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(0, 12760, __pyx_L7_error) __pyx_t_11 = NULL; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L16_unpacking_done; __pyx_L15_unpacking_failed:; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_11 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); __PYX_ERR(0, 12760, __pyx_L7_error) __pyx_L16_unpacking_done:; } __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_var); __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_var, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_val); __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_val, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":12763 * # note: since we group into pairs it is impossible to have * # var equal to None * if val is not None: # <<<<<<<<<<<<<< * count += push_style_var(var, val) * else: */ __pyx_t_12 = (__pyx_cur_scope->__pyx_v_val != Py_None); __pyx_t_13 = (__pyx_t_12 != 0); if (likely(__pyx_t_13)) { /* "imgui/core.pyx":12764 * # var equal to None * if val is not None: * count += push_style_var(var, val) # <<<<<<<<<<<<<< * else: * raise ValueError( */ __pyx_t_14 = __Pyx_PyInt_As_ImGuiStyleVar(__pyx_cur_scope->__pyx_v_var); if (unlikely((__pyx_t_14 == ((ImGuiStyleVar)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12764, __pyx_L7_error) __pyx_t_7 = __pyx_f_5imgui_4core_push_style_var(__pyx_t_14, __pyx_cur_scope->__pyx_v_val, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12764, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_cur_scope->__pyx_v_count, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12764, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_count); __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_count, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":12763 * # note: since we group into pairs it is impossible to have * # var equal to None * if val is not None: # <<<<<<<<<<<<<< * count += push_style_var(var, val) * else: */ goto __pyx_L17; } /* "imgui/core.pyx":12766 * count += push_style_var(var, val) * else: * raise ValueError( # <<<<<<<<<<<<<< * "Unsufficient style info: {} variable lacks a value" * "".format(var) */ /*else*/ { /* "imgui/core.pyx":12768 * raise ValueError( * "Unsufficient style info: {} variable lacks a value" * "".format(var) # <<<<<<<<<<<<<< * ) * except: */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Unsufficient_style_info_variable, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12768, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_5, __pyx_cur_scope->__pyx_v_var) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_cur_scope->__pyx_v_var); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12768, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":12766 * count += push_style_var(var, val) * else: * raise ValueError( # <<<<<<<<<<<<<< * "Unsufficient style info: {} variable lacks a value" * "".format(var) */ __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12766, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 12766, __pyx_L7_error) } __pyx_L17:; /* "imgui/core.pyx":12760 * try: * # note: this is a trick that allows us convert flat list to pairs * for var, val in izip_longest(iterator, iterator, fillvalue=None): # <<<<<<<<<<<<<< * # note: since we group into pairs it is impossible to have * # var equal to None */ } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "imgui/core.pyx":12758 * iterator = iter(variables_and_values) * * try: # <<<<<<<<<<<<<< * # note: this is a trick that allows us convert flat list to pairs * for var, val in izip_longest(iterator, iterator, fillvalue=None): */ } /* "imgui/core.pyx":12773 * raise * else: * yield # <<<<<<<<<<<<<< * * finally: */ /*else:*/ { __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_t_2); __pyx_cur_scope->__pyx_t_0 = __pyx_t_2; __Pyx_XGIVEREF(__pyx_t_3); __pyx_cur_scope->__pyx_t_1 = __pyx_t_3; __Pyx_XGIVEREF(__pyx_t_4); __pyx_cur_scope->__pyx_t_2 = __pyx_t_4; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); __Pyx_Coroutine_ResetAndClearException(__pyx_generator); /* return from generator, yielding value */ __pyx_generator->resume_label = 1; return __pyx_r; __pyx_L18_resume_from_yield:; __pyx_t_2 = __pyx_cur_scope->__pyx_t_0; __pyx_cur_scope->__pyx_t_0 = 0; __Pyx_XGOTREF(__pyx_t_2); __pyx_t_3 = __pyx_cur_scope->__pyx_t_1; __pyx_cur_scope->__pyx_t_1 = 0; __Pyx_XGOTREF(__pyx_t_3); __pyx_t_4 = __pyx_cur_scope->__pyx_t_2; __pyx_cur_scope->__pyx_t_2 = 0; __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12773, __pyx_L9_except_error) } __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L12_try_end; __pyx_L7_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":12770 * "".format(var) * ) * except: # <<<<<<<<<<<<<< * raise * else: */ /*except:*/ { __Pyx_AddTraceback("imgui.core._py_istyled", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_1) < 0) __PYX_ERR(0, 12770, __pyx_L9_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_1); /* "imgui/core.pyx":12771 * ) * except: * raise # <<<<<<<<<<<<<< * else: * yield */ __Pyx_GIVEREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_1); __Pyx_ErrRestoreWithState(__pyx_t_6, __pyx_t_7, __pyx_t_1); __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_1 = 0; __PYX_ERR(0, 12771, __pyx_L9_except_error) } __pyx_L9_except_error:; /* "imgui/core.pyx":12758 * iterator = iter(variables_and_values) * * try: # <<<<<<<<<<<<<< * # note: this is a trick that allows us convert flat list to pairs * for var, val in izip_longest(iterator, iterator, fillvalue=None): */ __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L5_error; __pyx_L12_try_end:; } } /* "imgui/core.pyx":12777 * finally: * # perf: short wiring despite we have a wrapper for this * cimgui.PopStyleVar(count) # <<<<<<<<<<<<<< * * */ /*finally:*/ { /*normal exit:*/{ __pyx_t_15 = __Pyx_PyInt_As_int(__pyx_cur_scope->__pyx_v_count); if (unlikely((__pyx_t_15 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12777, __pyx_L1_error) try { ImGui::PopStyleVar(__pyx_t_15); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12777, __pyx_L1_error) } goto __pyx_L6; } __pyx_L5_error:; /*exception exit:*/{ __Pyx_PyThreadState_assign __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2) < 0)) __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __pyx_t_15 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __pyx_t_21 = __Pyx_PyInt_As_int(__pyx_cur_scope->__pyx_v_count); if (unlikely((__pyx_t_21 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12777, __pyx_L22_error) try { ImGui::PopStyleVar(__pyx_t_21); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 12777, __pyx_L22_error) } } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_ErrRestore(__pyx_t_4, __pyx_t_3, __pyx_t_2); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_lineno = __pyx_t_15; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L1_error; __pyx_L22_error:; if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; goto __pyx_L1_error; } __pyx_L6:; } CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope); /* "imgui/core.pyx":12753 * @contextmanager * @cython.binding(True) * def _py_istyled(*variables_and_values): # <<<<<<<<<<<<<< * # todo: rename to nstyled? * count = 0 */ /* function exit code */ PyErr_SetNone(PyExc_StopIteration); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("_py_istyled", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_L0:; __Pyx_XDECREF(__pyx_r); __pyx_r = 0; #if !CYTHON_USE_EXC_INFO_STACK __Pyx_Coroutine_ResetAndClearException(__pyx_generator); #endif __pyx_generator->resume_label = -1; __Pyx_Coroutine_clear((PyObject*)__pyx_generator); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_622generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "imgui/core.pyx":12782 * @contextmanager * @cython.binding(True) * def _py_scoped(str str_id): # <<<<<<<<<<<<<< * """Use scoped ID within a block of code. * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_621_py_scoped(PyObject *__pyx_self, PyObject *__pyx_v_str_id); /*proto*/ static char __pyx_doc_5imgui_4core_620_py_scoped[] = "_py_scoped(str str_id)\nUse scoped ID within a block of code.\n\n This context manager can be used to distinguish widgets sharing\n same implicit identifiers without manual calling of :func:`push_id`\n :func:`pop_id` functions.\n\n Example:\n\n Args:\n str_id (str): ID to push and pop within marked scope\n "; static PyMethodDef __pyx_mdef_5imgui_4core_621_py_scoped = {"_py_scoped", (PyCFunction)__pyx_pw_5imgui_4core_621_py_scoped, METH_O, __pyx_doc_5imgui_4core_620_py_scoped}; static PyObject *__pyx_pw_5imgui_4core_621_py_scoped(PyObject *__pyx_self, PyObject *__pyx_v_str_id) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_scoped (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_str_id), (&PyString_Type), 1, "str_id", 1))) __PYX_ERR(0, 12782, __pyx_L1_error) __pyx_r = __pyx_pf_5imgui_4core_620_py_scoped(__pyx_self, ((PyObject*)__pyx_v_str_id)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_620_py_scoped(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_str_id) { struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *__pyx_cur_scope; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_scoped", 0); __pyx_cur_scope = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *)__pyx_tp_new_5imgui_4core___pyx_scope_struct_4__py_scoped(__pyx_ptype_5imgui_4core___pyx_scope_struct_4__py_scoped, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 12782, __pyx_L1_error) } else { __Pyx_GOTREF(__pyx_cur_scope); } __pyx_cur_scope->__pyx_v_str_id = __pyx_v_str_id; __Pyx_INCREF(__pyx_cur_scope->__pyx_v_str_id); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_str_id); { __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5imgui_4core_622generator4, __pyx_codeobj__117, (PyObject *) __pyx_cur_scope, __pyx_n_s_py_scoped, __pyx_n_s_py_scoped, __pyx_n_s_imgui_core); if (unlikely(!gen)) __PYX_ERR(0, 12782, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("imgui.core._py_scoped", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_DECREF(((PyObject *)__pyx_cur_scope)); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_5imgui_4core_622generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *__pyx_cur_scope = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *)__pyx_generator->closure); PyObject *__pyx_r = NULL; PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_scoped", 0); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; case 1: goto __pyx_L4_resume_from_yield; default: /* CPython raises the right error here */ __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12782, __pyx_L1_error) /* "imgui/core.pyx":12794 * str_id (str): ID to push and pop within marked scope * """ * push_id(str_id) # <<<<<<<<<<<<<< * yield * pop_id() */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_push_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_cur_scope->__pyx_v_str_id) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_cur_scope->__pyx_v_str_id); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":12795 * """ * push_id(str_id) * yield # <<<<<<<<<<<<<< * pop_id() * */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); __Pyx_Coroutine_ResetAndClearException(__pyx_generator); /* return from generator, yielding value */ __pyx_generator->resume_label = 1; return __pyx_r; __pyx_L4_resume_from_yield:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 12795, __pyx_L1_error) /* "imgui/core.pyx":12796 * push_id(str_id) * yield * pop_id() # <<<<<<<<<<<<<< * * */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pop_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope); /* "imgui/core.pyx":12782 * @contextmanager * @cython.binding(True) * def _py_scoped(str str_id): # <<<<<<<<<<<<<< * """Use scoped ID within a block of code. * */ /* function exit code */ PyErr_SetNone(PyExc_StopIteration); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("_py_scoped", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_L0:; __Pyx_XDECREF(__pyx_r); __pyx_r = 0; #if !CYTHON_USE_EXC_INFO_STACK __Pyx_Coroutine_ResetAndClearException(__pyx_generator); #endif __pyx_generator->resume_label = -1; __Pyx_Coroutine_clear((PyObject*)__pyx_generator); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12799 * * * def _py_vertex_buffer_vertex_pos_offset(): # <<<<<<<<<<<<<< * return &(NULL).pos * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_624_py_vertex_buffer_vertex_pos_offset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_623_py_vertex_buffer_vertex_pos_offset[] = "_py_vertex_buffer_vertex_pos_offset()"; static PyMethodDef __pyx_mdef_5imgui_4core_624_py_vertex_buffer_vertex_pos_offset = {"_py_vertex_buffer_vertex_pos_offset", (PyCFunction)__pyx_pw_5imgui_4core_624_py_vertex_buffer_vertex_pos_offset, METH_NOARGS, __pyx_doc_5imgui_4core_623_py_vertex_buffer_vertex_pos_offset}; static PyObject *__pyx_pw_5imgui_4core_624_py_vertex_buffer_vertex_pos_offset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_vertex_buffer_vertex_pos_offset (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_623_py_vertex_buffer_vertex_pos_offset(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_623_py_vertex_buffer_vertex_pos_offset(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_vertex_buffer_vertex_pos_offset", 0); /* "imgui/core.pyx":12800 * * def _py_vertex_buffer_vertex_pos_offset(): * return &(NULL).pos # <<<<<<<<<<<<<< * * def _py_vertex_buffer_vertex_uv_offset(): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)((size_t)(&((ImDrawVert *)NULL)->pos)))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12799 * * * def _py_vertex_buffer_vertex_pos_offset(): # <<<<<<<<<<<<<< * return &(NULL).pos * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._py_vertex_buffer_vertex_pos_offset", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12802 * return &(NULL).pos * * def _py_vertex_buffer_vertex_uv_offset(): # <<<<<<<<<<<<<< * return &(NULL).uv * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_626_py_vertex_buffer_vertex_uv_offset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_625_py_vertex_buffer_vertex_uv_offset[] = "_py_vertex_buffer_vertex_uv_offset()"; static PyMethodDef __pyx_mdef_5imgui_4core_626_py_vertex_buffer_vertex_uv_offset = {"_py_vertex_buffer_vertex_uv_offset", (PyCFunction)__pyx_pw_5imgui_4core_626_py_vertex_buffer_vertex_uv_offset, METH_NOARGS, __pyx_doc_5imgui_4core_625_py_vertex_buffer_vertex_uv_offset}; static PyObject *__pyx_pw_5imgui_4core_626_py_vertex_buffer_vertex_uv_offset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_vertex_buffer_vertex_uv_offset (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_625_py_vertex_buffer_vertex_uv_offset(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_625_py_vertex_buffer_vertex_uv_offset(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_vertex_buffer_vertex_uv_offset", 0); /* "imgui/core.pyx":12803 * * def _py_vertex_buffer_vertex_uv_offset(): * return &(NULL).uv # <<<<<<<<<<<<<< * * def _py_vertex_buffer_vertex_col_offset(): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)((size_t)(&((ImDrawVert *)NULL)->uv)))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12802 * return &(NULL).pos * * def _py_vertex_buffer_vertex_uv_offset(): # <<<<<<<<<<<<<< * return &(NULL).uv * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._py_vertex_buffer_vertex_uv_offset", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12805 * return &(NULL).uv * * def _py_vertex_buffer_vertex_col_offset(): # <<<<<<<<<<<<<< * return &(NULL).col * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_628_py_vertex_buffer_vertex_col_offset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_627_py_vertex_buffer_vertex_col_offset[] = "_py_vertex_buffer_vertex_col_offset()"; static PyMethodDef __pyx_mdef_5imgui_4core_628_py_vertex_buffer_vertex_col_offset = {"_py_vertex_buffer_vertex_col_offset", (PyCFunction)__pyx_pw_5imgui_4core_628_py_vertex_buffer_vertex_col_offset, METH_NOARGS, __pyx_doc_5imgui_4core_627_py_vertex_buffer_vertex_col_offset}; static PyObject *__pyx_pw_5imgui_4core_628_py_vertex_buffer_vertex_col_offset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_vertex_buffer_vertex_col_offset (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_627_py_vertex_buffer_vertex_col_offset(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_627_py_vertex_buffer_vertex_col_offset(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_vertex_buffer_vertex_col_offset", 0); /* "imgui/core.pyx":12806 * * def _py_vertex_buffer_vertex_col_offset(): * return &(NULL).col # <<<<<<<<<<<<<< * * def _py_vertex_buffer_vertex_size(): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)((size_t)(&((ImDrawVert *)NULL)->col)))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12805 * return &(NULL).uv * * def _py_vertex_buffer_vertex_col_offset(): # <<<<<<<<<<<<<< * return &(NULL).col * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._py_vertex_buffer_vertex_col_offset", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12808 * return &(NULL).col * * def _py_vertex_buffer_vertex_size(): # <<<<<<<<<<<<<< * return sizeof(cimgui.ImDrawVert) * */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_630_py_vertex_buffer_vertex_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_629_py_vertex_buffer_vertex_size[] = "_py_vertex_buffer_vertex_size()"; static PyMethodDef __pyx_mdef_5imgui_4core_630_py_vertex_buffer_vertex_size = {"_py_vertex_buffer_vertex_size", (PyCFunction)__pyx_pw_5imgui_4core_630_py_vertex_buffer_vertex_size, METH_NOARGS, __pyx_doc_5imgui_4core_629_py_vertex_buffer_vertex_size}; static PyObject *__pyx_pw_5imgui_4core_630_py_vertex_buffer_vertex_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_vertex_buffer_vertex_size (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_629_py_vertex_buffer_vertex_size(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_629_py_vertex_buffer_vertex_size(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_vertex_buffer_vertex_size", 0); /* "imgui/core.pyx":12809 * * def _py_vertex_buffer_vertex_size(): * return sizeof(cimgui.ImDrawVert) # <<<<<<<<<<<<<< * * def _py_index_buffer_index_size(): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(ImDrawVert))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12808 * return &(NULL).col * * def _py_vertex_buffer_vertex_size(): # <<<<<<<<<<<<<< * return sizeof(cimgui.ImDrawVert) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._py_vertex_buffer_vertex_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "imgui/core.pyx":12811 * return sizeof(cimgui.ImDrawVert) * * def _py_index_buffer_index_size(): # <<<<<<<<<<<<<< * return sizeof(cimgui.ImDrawIdx) */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_632_py_index_buffer_index_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_5imgui_4core_631_py_index_buffer_index_size[] = "_py_index_buffer_index_size()"; static PyMethodDef __pyx_mdef_5imgui_4core_632_py_index_buffer_index_size = {"_py_index_buffer_index_size", (PyCFunction)__pyx_pw_5imgui_4core_632_py_index_buffer_index_size, METH_NOARGS, __pyx_doc_5imgui_4core_631_py_index_buffer_index_size}; static PyObject *__pyx_pw_5imgui_4core_632_py_index_buffer_index_size(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_py_index_buffer_index_size (wrapper)", 0); __pyx_r = __pyx_pf_5imgui_4core_631_py_index_buffer_index_size(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_631_py_index_buffer_index_size(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_py_index_buffer_index_size", 0); /* "imgui/core.pyx":12812 * * def _py_index_buffer_index_size(): * return sizeof(cimgui.ImDrawIdx) # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(ImDrawIdx))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "imgui/core.pyx":12811 * return sizeof(cimgui.ImDrawVert) * * def _py_index_buffer_index_size(): # <<<<<<<<<<<<<< * return sizeof(cimgui.ImDrawIdx) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("imgui.core._py_index_buffer_index_size", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle__BeginEndTooltip(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_640__pyx_unpickle__BeginEndTooltip(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_639__pyx_unpickle__BeginEndTooltip[] = "__pyx_unpickle__BeginEndTooltip(__pyx_type, long __pyx_checksum, __pyx_state)"; static PyMethodDef __pyx_mdef_5imgui_4core_640__pyx_unpickle__BeginEndTooltip = {"__pyx_unpickle__BeginEndTooltip", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_640__pyx_unpickle__BeginEndTooltip, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_639__pyx_unpickle__BeginEndTooltip}; static PyObject *__pyx_pw_5imgui_4core_640__pyx_unpickle__BeginEndTooltip(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle__BeginEndTooltip (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle__BeginEndTooltip", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle__BeginEndTooltip", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle__BeginEndTooltip") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle__BeginEndTooltip", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.__pyx_unpickle__BeginEndTooltip", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_639__pyx_unpickle__BeginEndTooltip(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_639__pyx_unpickle__BeginEndTooltip(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle__BeginEndTooltip", 0); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__118, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) * __pyx_result = _BeginEndTooltip.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError); __pyx_t_4 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, -1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) # <<<<<<<<<<<<<< * __pyx_result = _BeginEndTooltip.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_INCREF(__pyx_v___pyx_PickleError); __pyx_t_1 = __pyx_v___pyx_PickleError; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) * __pyx_result = _BeginEndTooltip.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle__BeginEndTooltip__set_state(<_BeginEndTooltip> __pyx_result, __pyx_state) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5imgui_4core__BeginEndTooltip), __pyx_n_s_new); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v___pyx_type); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result = __pyx_t_4; __pyx_t_4 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) * __pyx_result = _BeginEndTooltip.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle__BeginEndTooltip__set_state(<_BeginEndTooltip> __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_3 = (__pyx_v___pyx_state != Py_None); __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = _BeginEndTooltip.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle__BeginEndTooltip__set_state(<_BeginEndTooltip> __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle__BeginEndTooltip__set_state(_BeginEndTooltip __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_4 = __pyx_f_5imgui_4core___pyx_unpickle__BeginEndTooltip__set_state(((struct __pyx_obj_5imgui_4core__BeginEndTooltip *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) * __pyx_result = _BeginEndTooltip.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle__BeginEndTooltip__set_state(<_BeginEndTooltip> __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle__BeginEndTooltip__set_state(<_BeginEndTooltip> __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle__BeginEndTooltip__set_state(_BeginEndTooltip __pyx_result, tuple __pyx_state): * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle__BeginEndTooltip(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.__pyx_unpickle__BeginEndTooltip", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle__BeginEndTooltip__set_state(<_BeginEndTooltip> __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle__BeginEndTooltip__set_state(_BeginEndTooltip __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[0]) */ static PyObject *__pyx_f_5imgui_4core___pyx_unpickle__BeginEndTooltip__set_state(struct __pyx_obj_5imgui_4core__BeginEndTooltip *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; Py_ssize_t __pyx_t_2; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle__BeginEndTooltip__set_state", 0); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle__BeginEndTooltip__set_state(_BeginEndTooltip __pyx_result, tuple __pyx_state): * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[0]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(2, 12, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_2 > 0) != 0); if (__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } __pyx_t_3 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 12, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 != 0); __pyx_t_1 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "(tree fragment)":13 * cdef __pyx_unpickle__BeginEndTooltip__set_state(_BeginEndTooltip __pyx_result, tuple __pyx_state): * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[0]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle__BeginEndTooltip__set_state(_BeginEndTooltip __pyx_result, tuple __pyx_state): * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[0]) */ } /* "(tree fragment)":11 * __pyx_unpickle__BeginEndTooltip__set_state(<_BeginEndTooltip> __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle__BeginEndTooltip__set_state(_BeginEndTooltip __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[0]) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.__pyx_unpickle__BeginEndTooltip__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle__BeginEndGroup(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_5imgui_4core_642__pyx_unpickle__BeginEndGroup(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_5imgui_4core_641__pyx_unpickle__BeginEndGroup[] = "__pyx_unpickle__BeginEndGroup(__pyx_type, long __pyx_checksum, __pyx_state)"; static PyMethodDef __pyx_mdef_5imgui_4core_642__pyx_unpickle__BeginEndGroup = {"__pyx_unpickle__BeginEndGroup", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_642__pyx_unpickle__BeginEndGroup, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_641__pyx_unpickle__BeginEndGroup}; static PyObject *__pyx_pw_5imgui_4core_642__pyx_unpickle__BeginEndGroup(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle__BeginEndGroup (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle__BeginEndGroup", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle__BeginEndGroup", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle__BeginEndGroup") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle__BeginEndGroup", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("imgui.core.__pyx_unpickle__BeginEndGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5imgui_4core_641__pyx_unpickle__BeginEndGroup(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5imgui_4core_641__pyx_unpickle__BeginEndGroup(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle__BeginEndGroup", 0); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__118, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) * __pyx_result = _BeginEndGroup.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError); __pyx_t_4 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, -1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) # <<<<<<<<<<<<<< * __pyx_result = _BeginEndGroup.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_INCREF(__pyx_v___pyx_PickleError); __pyx_t_1 = __pyx_v___pyx_PickleError; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) * __pyx_result = _BeginEndGroup.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle__BeginEndGroup__set_state(<_BeginEndGroup> __pyx_result, __pyx_state) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5imgui_4core__BeginEndGroup), __pyx_n_s_new); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v___pyx_type); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result = __pyx_t_4; __pyx_t_4 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) * __pyx_result = _BeginEndGroup.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle__BeginEndGroup__set_state(<_BeginEndGroup> __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_3 = (__pyx_v___pyx_state != Py_None); __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = _BeginEndGroup.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle__BeginEndGroup__set_state(<_BeginEndGroup> __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle__BeginEndGroup__set_state(_BeginEndGroup __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_4 = __pyx_f_5imgui_4core___pyx_unpickle__BeginEndGroup__set_state(((struct __pyx_obj_5imgui_4core__BeginEndGroup *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) * __pyx_result = _BeginEndGroup.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle__BeginEndGroup__set_state(<_BeginEndGroup> __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle__BeginEndGroup__set_state(<_BeginEndGroup> __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle__BeginEndGroup__set_state(_BeginEndGroup __pyx_result, tuple __pyx_state): * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle__BeginEndGroup(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("imgui.core.__pyx_unpickle__BeginEndGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle__BeginEndGroup__set_state(<_BeginEndGroup> __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle__BeginEndGroup__set_state(_BeginEndGroup __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[0]) */ static PyObject *__pyx_f_5imgui_4core___pyx_unpickle__BeginEndGroup__set_state(struct __pyx_obj_5imgui_4core__BeginEndGroup *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; Py_ssize_t __pyx_t_2; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle__BeginEndGroup__set_state", 0); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle__BeginEndGroup__set_state(_BeginEndGroup __pyx_result, tuple __pyx_state): * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[0]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(2, 12, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_2 > 0) != 0); if (__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } __pyx_t_3 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 12, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 != 0); __pyx_t_1 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "(tree fragment)":13 * cdef __pyx_unpickle__BeginEndGroup__set_state(_BeginEndGroup __pyx_result, tuple __pyx_state): * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[0]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle__BeginEndGroup__set_state(_BeginEndGroup __pyx_result, tuple __pyx_state): * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[0]) */ } /* "(tree fragment)":11 * __pyx_unpickle__BeginEndGroup__set_state(<_BeginEndGroup> __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle__BeginEndGroup__set_state(_BeginEndGroup __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[0]) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("imgui.core.__pyx_unpickle__BeginEndGroup__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":123 * cdef bint dtype_is_object * * def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None, # <<<<<<<<<<<<<< * mode="c", bint allocate_buffer=True): * */ /* Python wrapper */ static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_shape = 0; Py_ssize_t __pyx_v_itemsize; PyObject *__pyx_v_format = 0; PyObject *__pyx_v_mode = 0; int __pyx_v_allocate_buffer; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_shape,&__pyx_n_s_itemsize,&__pyx_n_s_format,&__pyx_n_s_mode,&__pyx_n_s_allocate_buffer,0}; PyObject* values[5] = {0,0,0,0,0}; values[3] = ((PyObject *)__pyx_n_s_c); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_itemsize)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 3, 5, 1); __PYX_ERR(2, 123, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 3, 5, 2); __PYX_ERR(2, 123, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mode); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_allocate_buffer); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(2, 123, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_shape = ((PyObject*)values[0]); __pyx_v_itemsize = __Pyx_PyIndex_AsSsize_t(values[1]); if (unlikely((__pyx_v_itemsize == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 123, __pyx_L3_error) __pyx_v_format = values[2]; __pyx_v_mode = values[3]; if (values[4]) { __pyx_v_allocate_buffer = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_allocate_buffer == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 124, __pyx_L3_error) } else { /* "View.MemoryView":124 * * def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None, * mode="c", bint allocate_buffer=True): # <<<<<<<<<<<<<< * * cdef int idx */ __pyx_v_allocate_buffer = ((int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 123, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("View.MemoryView.array.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_shape), (&PyTuple_Type), 1, "shape", 1))) __PYX_ERR(2, 123, __pyx_L1_error) if (unlikely(((PyObject *)__pyx_v_format) == Py_None)) { PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "format"); __PYX_ERR(2, 123, __pyx_L1_error) } __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(((struct __pyx_array_obj *)__pyx_v_self), __pyx_v_shape, __pyx_v_itemsize, __pyx_v_format, __pyx_v_mode, __pyx_v_allocate_buffer); /* "View.MemoryView":123 * cdef bint dtype_is_object * * def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None, # <<<<<<<<<<<<<< * mode="c", bint allocate_buffer=True): * */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode, int __pyx_v_allocate_buffer) { int __pyx_v_idx; Py_ssize_t __pyx_v_i; Py_ssize_t __pyx_v_dim; PyObject **__pyx_v_p; char __pyx_v_order; int __pyx_r; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; char *__pyx_t_7; int __pyx_t_8; Py_ssize_t __pyx_t_9; PyObject *__pyx_t_10 = NULL; Py_ssize_t __pyx_t_11; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__cinit__", 0); __Pyx_INCREF(__pyx_v_format); /* "View.MemoryView":130 * cdef PyObject **p * * self.ndim = len(shape) # <<<<<<<<<<<<<< * self.itemsize = itemsize * */ if (unlikely(__pyx_v_shape == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 130, __pyx_L1_error) } __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v_shape); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(2, 130, __pyx_L1_error) __pyx_v_self->ndim = ((int)__pyx_t_1); /* "View.MemoryView":131 * * self.ndim = len(shape) * self.itemsize = itemsize # <<<<<<<<<<<<<< * * if not self.ndim: */ __pyx_v_self->itemsize = __pyx_v_itemsize; /* "View.MemoryView":133 * self.itemsize = itemsize * * if not self.ndim: # <<<<<<<<<<<<<< * raise ValueError("Empty shape tuple for cython.array") * */ __pyx_t_2 = ((!(__pyx_v_self->ndim != 0)) != 0); if (unlikely(__pyx_t_2)) { /* "View.MemoryView":134 * * if not self.ndim: * raise ValueError("Empty shape tuple for cython.array") # <<<<<<<<<<<<<< * * if itemsize <= 0: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__119, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(2, 134, __pyx_L1_error) /* "View.MemoryView":133 * self.itemsize = itemsize * * if not self.ndim: # <<<<<<<<<<<<<< * raise ValueError("Empty shape tuple for cython.array") * */ } /* "View.MemoryView":136 * raise ValueError("Empty shape tuple for cython.array") * * if itemsize <= 0: # <<<<<<<<<<<<<< * raise ValueError("itemsize <= 0 for cython.array") * */ __pyx_t_2 = ((__pyx_v_itemsize <= 0) != 0); if (unlikely(__pyx_t_2)) { /* "View.MemoryView":137 * * if itemsize <= 0: * raise ValueError("itemsize <= 0 for cython.array") # <<<<<<<<<<<<<< * * if not isinstance(format, bytes): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__120, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(2, 137, __pyx_L1_error) /* "View.MemoryView":136 * raise ValueError("Empty shape tuple for cython.array") * * if itemsize <= 0: # <<<<<<<<<<<<<< * raise ValueError("itemsize <= 0 for cython.array") * */ } /* "View.MemoryView":139 * raise ValueError("itemsize <= 0 for cython.array") * * if not isinstance(format, bytes): # <<<<<<<<<<<<<< * format = format.encode('ASCII') * self._format = format # keep a reference to the byte string */ __pyx_t_2 = PyBytes_Check(__pyx_v_format); __pyx_t_4 = ((!(__pyx_t_2 != 0)) != 0); if (__pyx_t_4) { /* "View.MemoryView":140 * * if not isinstance(format, bytes): * format = format.encode('ASCII') # <<<<<<<<<<<<<< * self._format = format # keep a reference to the byte string * self.format = self._format */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_format, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_n_s_ASCII) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_s_ASCII); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF_SET(__pyx_v_format, __pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":139 * raise ValueError("itemsize <= 0 for cython.array") * * if not isinstance(format, bytes): # <<<<<<<<<<<<<< * format = format.encode('ASCII') * self._format = format # keep a reference to the byte string */ } /* "View.MemoryView":141 * if not isinstance(format, bytes): * format = format.encode('ASCII') * self._format = format # keep a reference to the byte string # <<<<<<<<<<<<<< * self.format = self._format * */ if (!(likely(PyBytes_CheckExact(__pyx_v_format))||((__pyx_v_format) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_format)->tp_name), 0))) __PYX_ERR(2, 141, __pyx_L1_error) __pyx_t_3 = __pyx_v_format; __Pyx_INCREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __Pyx_GOTREF(__pyx_v_self->_format); __Pyx_DECREF(__pyx_v_self->_format); __pyx_v_self->_format = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":142 * format = format.encode('ASCII') * self._format = format # keep a reference to the byte string * self.format = self._format # <<<<<<<<<<<<<< * * */ if (unlikely(__pyx_v_self->_format == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); __PYX_ERR(2, 142, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyBytes_AsWritableString(__pyx_v_self->_format); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(2, 142, __pyx_L1_error) __pyx_v_self->format = __pyx_t_7; /* "View.MemoryView":145 * * * self._shape = PyObject_Malloc(sizeof(Py_ssize_t)*self.ndim*2) # <<<<<<<<<<<<<< * self._strides = self._shape + self.ndim * */ __pyx_v_self->_shape = ((Py_ssize_t *)PyObject_Malloc((((sizeof(Py_ssize_t)) * __pyx_v_self->ndim) * 2))); /* "View.MemoryView":146 * * self._shape = PyObject_Malloc(sizeof(Py_ssize_t)*self.ndim*2) * self._strides = self._shape + self.ndim # <<<<<<<<<<<<<< * * if not self._shape: */ __pyx_v_self->_strides = (__pyx_v_self->_shape + __pyx_v_self->ndim); /* "View.MemoryView":148 * self._strides = self._shape + self.ndim * * if not self._shape: # <<<<<<<<<<<<<< * raise MemoryError("unable to allocate shape and strides.") * */ __pyx_t_4 = ((!(__pyx_v_self->_shape != 0)) != 0); if (unlikely(__pyx_t_4)) { /* "View.MemoryView":149 * * if not self._shape: * raise MemoryError("unable to allocate shape and strides.") # <<<<<<<<<<<<<< * * */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__121, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(2, 149, __pyx_L1_error) /* "View.MemoryView":148 * self._strides = self._shape + self.ndim * * if not self._shape: # <<<<<<<<<<<<<< * raise MemoryError("unable to allocate shape and strides.") * */ } /* "View.MemoryView":152 * * * for idx, dim in enumerate(shape): # <<<<<<<<<<<<<< * if dim <= 0: * raise ValueError("Invalid shape in axis %d: %d." % (idx, dim)) */ __pyx_t_8 = 0; __pyx_t_3 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; for (;;) { if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(2, 152, __pyx_L1_error) #else __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_dim = __pyx_t_9; __pyx_v_idx = __pyx_t_8; __pyx_t_8 = (__pyx_t_8 + 1); /* "View.MemoryView":153 * * for idx, dim in enumerate(shape): * if dim <= 0: # <<<<<<<<<<<<<< * raise ValueError("Invalid shape in axis %d: %d." % (idx, dim)) * self._shape[idx] = dim */ __pyx_t_4 = ((__pyx_v_dim <= 0) != 0); if (unlikely(__pyx_t_4)) { /* "View.MemoryView":154 * for idx, dim in enumerate(shape): * if dim <= 0: * raise ValueError("Invalid shape in axis %d: %d." % (idx, dim)) # <<<<<<<<<<<<<< * self._shape[idx] = dim * */ __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_idx); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_dim); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_6); __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyString_Format(__pyx_kp_s_Invalid_shape_in_axis_d_d, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __PYX_ERR(2, 154, __pyx_L1_error) /* "View.MemoryView":153 * * for idx, dim in enumerate(shape): * if dim <= 0: # <<<<<<<<<<<<<< * raise ValueError("Invalid shape in axis %d: %d." % (idx, dim)) * self._shape[idx] = dim */ } /* "View.MemoryView":155 * if dim <= 0: * raise ValueError("Invalid shape in axis %d: %d." % (idx, dim)) * self._shape[idx] = dim # <<<<<<<<<<<<<< * * cdef char order */ (__pyx_v_self->_shape[__pyx_v_idx]) = __pyx_v_dim; /* "View.MemoryView":152 * * * for idx, dim in enumerate(shape): # <<<<<<<<<<<<<< * if dim <= 0: * raise ValueError("Invalid shape in axis %d: %d." % (idx, dim)) */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":158 * * cdef char order * if mode == 'fortran': # <<<<<<<<<<<<<< * order = b'F' * self.mode = u'fortran' */ __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_fortran, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 158, __pyx_L1_error) if (__pyx_t_4) { /* "View.MemoryView":159 * cdef char order * if mode == 'fortran': * order = b'F' # <<<<<<<<<<<<<< * self.mode = u'fortran' * elif mode == 'c': */ __pyx_v_order = 'F'; /* "View.MemoryView":160 * if mode == 'fortran': * order = b'F' * self.mode = u'fortran' # <<<<<<<<<<<<<< * elif mode == 'c': * order = b'C' */ __Pyx_INCREF(__pyx_n_u_fortran); __Pyx_GIVEREF(__pyx_n_u_fortran); __Pyx_GOTREF(__pyx_v_self->mode); __Pyx_DECREF(__pyx_v_self->mode); __pyx_v_self->mode = __pyx_n_u_fortran; /* "View.MemoryView":158 * * cdef char order * if mode == 'fortran': # <<<<<<<<<<<<<< * order = b'F' * self.mode = u'fortran' */ goto __pyx_L10; } /* "View.MemoryView":161 * order = b'F' * self.mode = u'fortran' * elif mode == 'c': # <<<<<<<<<<<<<< * order = b'C' * self.mode = u'c' */ __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_c, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 161, __pyx_L1_error) if (likely(__pyx_t_4)) { /* "View.MemoryView":162 * self.mode = u'fortran' * elif mode == 'c': * order = b'C' # <<<<<<<<<<<<<< * self.mode = u'c' * else: */ __pyx_v_order = 'C'; /* "View.MemoryView":163 * elif mode == 'c': * order = b'C' * self.mode = u'c' # <<<<<<<<<<<<<< * else: * raise ValueError("Invalid mode, expected 'c' or 'fortran', got %s" % mode) */ __Pyx_INCREF(__pyx_n_u_c); __Pyx_GIVEREF(__pyx_n_u_c); __Pyx_GOTREF(__pyx_v_self->mode); __Pyx_DECREF(__pyx_v_self->mode); __pyx_v_self->mode = __pyx_n_u_c; /* "View.MemoryView":161 * order = b'F' * self.mode = u'fortran' * elif mode == 'c': # <<<<<<<<<<<<<< * order = b'C' * self.mode = u'c' */ goto __pyx_L10; } /* "View.MemoryView":165 * self.mode = u'c' * else: * raise ValueError("Invalid mode, expected 'c' or 'fortran', got %s" % mode) # <<<<<<<<<<<<<< * * self.len = fill_contig_strides_array(self._shape, self._strides, */ /*else*/ { __pyx_t_3 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Invalid_mode_expected_c_or_fortr, __pyx_v_mode); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __PYX_ERR(2, 165, __pyx_L1_error) } __pyx_L10:; /* "View.MemoryView":167 * raise ValueError("Invalid mode, expected 'c' or 'fortran', got %s" % mode) * * self.len = fill_contig_strides_array(self._shape, self._strides, # <<<<<<<<<<<<<< * itemsize, self.ndim, order) * */ __pyx_v_self->len = __pyx_fill_contig_strides_array(__pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_itemsize, __pyx_v_self->ndim, __pyx_v_order); /* "View.MemoryView":170 * itemsize, self.ndim, order) * * self.free_data = allocate_buffer # <<<<<<<<<<<<<< * self.dtype_is_object = format == b'O' * if allocate_buffer: */ __pyx_v_self->free_data = __pyx_v_allocate_buffer; /* "View.MemoryView":171 * * self.free_data = allocate_buffer * self.dtype_is_object = format == b'O' # <<<<<<<<<<<<<< * if allocate_buffer: * */ __pyx_t_10 = PyObject_RichCompare(__pyx_v_format, __pyx_n_b_O, Py_EQ); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 171, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 171, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_self->dtype_is_object = __pyx_t_4; /* "View.MemoryView":172 * self.free_data = allocate_buffer * self.dtype_is_object = format == b'O' * if allocate_buffer: # <<<<<<<<<<<<<< * * */ __pyx_t_4 = (__pyx_v_allocate_buffer != 0); if (__pyx_t_4) { /* "View.MemoryView":175 * * * self.data = malloc(self.len) # <<<<<<<<<<<<<< * if not self.data: * raise MemoryError("unable to allocate array data.") */ __pyx_v_self->data = ((char *)malloc(__pyx_v_self->len)); /* "View.MemoryView":176 * * self.data = malloc(self.len) * if not self.data: # <<<<<<<<<<<<<< * raise MemoryError("unable to allocate array data.") * */ __pyx_t_4 = ((!(__pyx_v_self->data != 0)) != 0); if (unlikely(__pyx_t_4)) { /* "View.MemoryView":177 * self.data = malloc(self.len) * if not self.data: * raise MemoryError("unable to allocate array data.") # <<<<<<<<<<<<<< * * if self.dtype_is_object: */ __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __PYX_ERR(2, 177, __pyx_L1_error) /* "View.MemoryView":176 * * self.data = malloc(self.len) * if not self.data: # <<<<<<<<<<<<<< * raise MemoryError("unable to allocate array data.") * */ } /* "View.MemoryView":179 * raise MemoryError("unable to allocate array data.") * * if self.dtype_is_object: # <<<<<<<<<<<<<< * p = self.data * for i in range(self.len / itemsize): */ __pyx_t_4 = (__pyx_v_self->dtype_is_object != 0); if (__pyx_t_4) { /* "View.MemoryView":180 * * if self.dtype_is_object: * p = self.data # <<<<<<<<<<<<<< * for i in range(self.len / itemsize): * p[i] = Py_None */ __pyx_v_p = ((PyObject **)__pyx_v_self->data); /* "View.MemoryView":181 * if self.dtype_is_object: * p = self.data * for i in range(self.len / itemsize): # <<<<<<<<<<<<<< * p[i] = Py_None * Py_INCREF(Py_None) */ if (unlikely(__pyx_v_itemsize == 0)) { PyErr_SetString(PyExc_ZeroDivisionError, "integer division or modulo by zero"); __PYX_ERR(2, 181, __pyx_L1_error) } else if (sizeof(Py_ssize_t) == sizeof(long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_itemsize == (Py_ssize_t)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_self->len))) { PyErr_SetString(PyExc_OverflowError, "value too large to perform division"); __PYX_ERR(2, 181, __pyx_L1_error) } __pyx_t_1 = __Pyx_div_Py_ssize_t(__pyx_v_self->len, __pyx_v_itemsize); __pyx_t_9 = __pyx_t_1; for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_9; __pyx_t_11+=1) { __pyx_v_i = __pyx_t_11; /* "View.MemoryView":182 * p = self.data * for i in range(self.len / itemsize): * p[i] = Py_None # <<<<<<<<<<<<<< * Py_INCREF(Py_None) * */ (__pyx_v_p[__pyx_v_i]) = Py_None; /* "View.MemoryView":183 * for i in range(self.len / itemsize): * p[i] = Py_None * Py_INCREF(Py_None) # <<<<<<<<<<<<<< * * @cname('getbuffer') */ Py_INCREF(Py_None); } /* "View.MemoryView":179 * raise MemoryError("unable to allocate array data.") * * if self.dtype_is_object: # <<<<<<<<<<<<<< * p = self.data * for i in range(self.len / itemsize): */ } /* "View.MemoryView":172 * self.free_data = allocate_buffer * self.dtype_is_object = format == b'O' * if allocate_buffer: # <<<<<<<<<<<<<< * * */ } /* "View.MemoryView":123 * cdef bint dtype_is_object * * def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None, # <<<<<<<<<<<<<< * mode="c", bint allocate_buffer=True): * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("View.MemoryView.array.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_format); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":186 * * @cname('getbuffer') * def __getbuffer__(self, Py_buffer *info, int flags): # <<<<<<<<<<<<<< * cdef int bufmode = -1 * if self.mode == u"c": */ /* Python wrapper */ static CYTHON_UNUSED int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ static CYTHON_UNUSED int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(((struct __pyx_array_obj *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { int __pyx_v_bufmode; int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char *__pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; Py_ssize_t *__pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; if (__pyx_v_info == NULL) { PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete"); return -1; } __Pyx_RefNannySetupContext("__getbuffer__", 0); __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); __Pyx_GIVEREF(__pyx_v_info->obj); /* "View.MemoryView":187 * @cname('getbuffer') * def __getbuffer__(self, Py_buffer *info, int flags): * cdef int bufmode = -1 # <<<<<<<<<<<<<< * if self.mode == u"c": * bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS */ __pyx_v_bufmode = -1; /* "View.MemoryView":188 * def __getbuffer__(self, Py_buffer *info, int flags): * cdef int bufmode = -1 * if self.mode == u"c": # <<<<<<<<<<<<<< * bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * elif self.mode == u"fortran": */ __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->mode, __pyx_n_u_c, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 188, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "View.MemoryView":189 * cdef int bufmode = -1 * if self.mode == u"c": * bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS # <<<<<<<<<<<<<< * elif self.mode == u"fortran": * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS */ __pyx_v_bufmode = (PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS); /* "View.MemoryView":188 * def __getbuffer__(self, Py_buffer *info, int flags): * cdef int bufmode = -1 * if self.mode == u"c": # <<<<<<<<<<<<<< * bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * elif self.mode == u"fortran": */ goto __pyx_L3; } /* "View.MemoryView":190 * if self.mode == u"c": * bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * elif self.mode == u"fortran": # <<<<<<<<<<<<<< * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * if not (flags & bufmode): */ __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->mode, __pyx_n_u_fortran, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 190, __pyx_L1_error) __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "View.MemoryView":191 * bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * elif self.mode == u"fortran": * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS # <<<<<<<<<<<<<< * if not (flags & bufmode): * raise ValueError("Can only create a buffer that is contiguous in memory.") */ __pyx_v_bufmode = (PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS); /* "View.MemoryView":190 * if self.mode == u"c": * bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * elif self.mode == u"fortran": # <<<<<<<<<<<<<< * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * if not (flags & bufmode): */ } __pyx_L3:; /* "View.MemoryView":192 * elif self.mode == u"fortran": * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * if not (flags & bufmode): # <<<<<<<<<<<<<< * raise ValueError("Can only create a buffer that is contiguous in memory.") * info.buf = self.data */ __pyx_t_1 = ((!((__pyx_v_flags & __pyx_v_bufmode) != 0)) != 0); if (unlikely(__pyx_t_1)) { /* "View.MemoryView":193 * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * if not (flags & bufmode): * raise ValueError("Can only create a buffer that is contiguous in memory.") # <<<<<<<<<<<<<< * info.buf = self.data * info.len = self.len */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(2, 193, __pyx_L1_error) /* "View.MemoryView":192 * elif self.mode == u"fortran": * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * if not (flags & bufmode): # <<<<<<<<<<<<<< * raise ValueError("Can only create a buffer that is contiguous in memory.") * info.buf = self.data */ } /* "View.MemoryView":194 * if not (flags & bufmode): * raise ValueError("Can only create a buffer that is contiguous in memory.") * info.buf = self.data # <<<<<<<<<<<<<< * info.len = self.len * info.ndim = self.ndim */ __pyx_t_4 = __pyx_v_self->data; __pyx_v_info->buf = __pyx_t_4; /* "View.MemoryView":195 * raise ValueError("Can only create a buffer that is contiguous in memory.") * info.buf = self.data * info.len = self.len # <<<<<<<<<<<<<< * info.ndim = self.ndim * info.shape = self._shape */ __pyx_t_5 = __pyx_v_self->len; __pyx_v_info->len = __pyx_t_5; /* "View.MemoryView":196 * info.buf = self.data * info.len = self.len * info.ndim = self.ndim # <<<<<<<<<<<<<< * info.shape = self._shape * info.strides = self._strides */ __pyx_t_6 = __pyx_v_self->ndim; __pyx_v_info->ndim = __pyx_t_6; /* "View.MemoryView":197 * info.len = self.len * info.ndim = self.ndim * info.shape = self._shape # <<<<<<<<<<<<<< * info.strides = self._strides * info.suboffsets = NULL */ __pyx_t_7 = __pyx_v_self->_shape; __pyx_v_info->shape = __pyx_t_7; /* "View.MemoryView":198 * info.ndim = self.ndim * info.shape = self._shape * info.strides = self._strides # <<<<<<<<<<<<<< * info.suboffsets = NULL * info.itemsize = self.itemsize */ __pyx_t_7 = __pyx_v_self->_strides; __pyx_v_info->strides = __pyx_t_7; /* "View.MemoryView":199 * info.shape = self._shape * info.strides = self._strides * info.suboffsets = NULL # <<<<<<<<<<<<<< * info.itemsize = self.itemsize * info.readonly = 0 */ __pyx_v_info->suboffsets = NULL; /* "View.MemoryView":200 * info.strides = self._strides * info.suboffsets = NULL * info.itemsize = self.itemsize # <<<<<<<<<<<<<< * info.readonly = 0 * */ __pyx_t_5 = __pyx_v_self->itemsize; __pyx_v_info->itemsize = __pyx_t_5; /* "View.MemoryView":201 * info.suboffsets = NULL * info.itemsize = self.itemsize * info.readonly = 0 # <<<<<<<<<<<<<< * * if flags & PyBUF_FORMAT: */ __pyx_v_info->readonly = 0; /* "View.MemoryView":203 * info.readonly = 0 * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * info.format = self.format * else: */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0); if (__pyx_t_1) { /* "View.MemoryView":204 * * if flags & PyBUF_FORMAT: * info.format = self.format # <<<<<<<<<<<<<< * else: * info.format = NULL */ __pyx_t_4 = __pyx_v_self->format; __pyx_v_info->format = __pyx_t_4; /* "View.MemoryView":203 * info.readonly = 0 * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * info.format = self.format * else: */ goto __pyx_L5; } /* "View.MemoryView":206 * info.format = self.format * else: * info.format = NULL # <<<<<<<<<<<<<< * * info.obj = self */ /*else*/ { __pyx_v_info->format = NULL; } __pyx_L5:; /* "View.MemoryView":208 * info.format = NULL * * info.obj = self # <<<<<<<<<<<<<< * * __pyx_getbuffer = capsule( &__pyx_array_getbuffer, "getbuffer(obj, view, flags)") */ __Pyx_INCREF(((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = ((PyObject *)__pyx_v_self); /* "View.MemoryView":186 * * @cname('getbuffer') * def __getbuffer__(self, Py_buffer *info, int flags): # <<<<<<<<<<<<<< * cdef int bufmode = -1 * if self.mode == u"c": */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; if (__pyx_v_info->obj != NULL) { __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; } goto __pyx_L2; __pyx_L0:; if (__pyx_v_info->obj == Py_None) { __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; } __pyx_L2:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":212 * __pyx_getbuffer = capsule( &__pyx_array_getbuffer, "getbuffer(obj, view, flags)") * * def __dealloc__(array self): # <<<<<<<<<<<<<< * if self.callback_free_data != NULL: * self.callback_free_data(self.data) */ /* Python wrapper */ static void __pyx_array___dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_array___dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(((struct __pyx_array_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struct __pyx_array_obj *__pyx_v_self) { __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("__dealloc__", 0); /* "View.MemoryView":213 * * def __dealloc__(array self): * if self.callback_free_data != NULL: # <<<<<<<<<<<<<< * self.callback_free_data(self.data) * elif self.free_data: */ __pyx_t_1 = ((__pyx_v_self->callback_free_data != NULL) != 0); if (__pyx_t_1) { /* "View.MemoryView":214 * def __dealloc__(array self): * if self.callback_free_data != NULL: * self.callback_free_data(self.data) # <<<<<<<<<<<<<< * elif self.free_data: * if self.dtype_is_object: */ __pyx_v_self->callback_free_data(__pyx_v_self->data); /* "View.MemoryView":213 * * def __dealloc__(array self): * if self.callback_free_data != NULL: # <<<<<<<<<<<<<< * self.callback_free_data(self.data) * elif self.free_data: */ goto __pyx_L3; } /* "View.MemoryView":215 * if self.callback_free_data != NULL: * self.callback_free_data(self.data) * elif self.free_data: # <<<<<<<<<<<<<< * if self.dtype_is_object: * refcount_objects_in_slice(self.data, self._shape, */ __pyx_t_1 = (__pyx_v_self->free_data != 0); if (__pyx_t_1) { /* "View.MemoryView":216 * self.callback_free_data(self.data) * elif self.free_data: * if self.dtype_is_object: # <<<<<<<<<<<<<< * refcount_objects_in_slice(self.data, self._shape, * self._strides, self.ndim, False) */ __pyx_t_1 = (__pyx_v_self->dtype_is_object != 0); if (__pyx_t_1) { /* "View.MemoryView":217 * elif self.free_data: * if self.dtype_is_object: * refcount_objects_in_slice(self.data, self._shape, # <<<<<<<<<<<<<< * self._strides, self.ndim, False) * free(self.data) */ __pyx_memoryview_refcount_objects_in_slice(__pyx_v_self->data, __pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_self->ndim, 0); /* "View.MemoryView":216 * self.callback_free_data(self.data) * elif self.free_data: * if self.dtype_is_object: # <<<<<<<<<<<<<< * refcount_objects_in_slice(self.data, self._shape, * self._strides, self.ndim, False) */ } /* "View.MemoryView":219 * refcount_objects_in_slice(self.data, self._shape, * self._strides, self.ndim, False) * free(self.data) # <<<<<<<<<<<<<< * PyObject_Free(self._shape) * */ free(__pyx_v_self->data); /* "View.MemoryView":215 * if self.callback_free_data != NULL: * self.callback_free_data(self.data) * elif self.free_data: # <<<<<<<<<<<<<< * if self.dtype_is_object: * refcount_objects_in_slice(self.data, self._shape, */ } __pyx_L3:; /* "View.MemoryView":220 * self._strides, self.ndim, False) * free(self.data) * PyObject_Free(self._shape) # <<<<<<<<<<<<<< * * @property */ PyObject_Free(__pyx_v_self->_shape); /* "View.MemoryView":212 * __pyx_getbuffer = capsule( &__pyx_array_getbuffer, "getbuffer(obj, view, flags)") * * def __dealloc__(array self): # <<<<<<<<<<<<<< * if self.callback_free_data != NULL: * self.callback_free_data(self.data) */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "View.MemoryView":223 * * @property * def memview(self): # <<<<<<<<<<<<<< * return self.get_memview() * */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_5array_7memview___get__(((struct __pyx_array_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct __pyx_array_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":224 * @property * def memview(self): * return self.get_memview() # <<<<<<<<<<<<<< * * @cname('get_memview') */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((struct __pyx_vtabstruct_array *)__pyx_v_self->__pyx_vtab)->get_memview(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "View.MemoryView":223 * * @property * def memview(self): # <<<<<<<<<<<<<< * return self.get_memview() * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.array.memview.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":227 * * @cname('get_memview') * cdef get_memview(self): # <<<<<<<<<<<<<< * flags = PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE * return memoryview(self, flags, self.dtype_is_object) */ static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self) { int __pyx_v_flags; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_memview", 0); /* "View.MemoryView":228 * @cname('get_memview') * cdef get_memview(self): * flags = PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE # <<<<<<<<<<<<<< * return memoryview(self, flags, self.dtype_is_object) * */ __pyx_v_flags = ((PyBUF_ANY_CONTIGUOUS | PyBUF_FORMAT) | PyBUF_WRITABLE); /* "View.MemoryView":229 * cdef get_memview(self): * flags = PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE * return memoryview(self, flags, self.dtype_is_object) # <<<<<<<<<<<<<< * * def __len__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->dtype_is_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":227 * * @cname('get_memview') * cdef get_memview(self): # <<<<<<<<<<<<<< * flags = PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE * return memoryview(self, flags, self.dtype_is_object) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.array.get_memview", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":231 * return memoryview(self, flags, self.dtype_is_object) * * def __len__(self): # <<<<<<<<<<<<<< * return self._shape[0] * */ /* Python wrapper */ static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self); /*proto*/ static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self) { Py_ssize_t __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(((struct __pyx_array_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(struct __pyx_array_obj *__pyx_v_self) { Py_ssize_t __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__", 0); /* "View.MemoryView":232 * * def __len__(self): * return self._shape[0] # <<<<<<<<<<<<<< * * def __getattr__(self, attr): */ __pyx_r = (__pyx_v_self->_shape[0]); goto __pyx_L0; /* "View.MemoryView":231 * return memoryview(self, flags, self.dtype_is_object) * * def __len__(self): # <<<<<<<<<<<<<< * return self._shape[0] * */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":234 * return self._shape[0] * * def __getattr__(self, attr): # <<<<<<<<<<<<<< * return getattr(self.memview, attr) * */ /* Python wrapper */ static PyObject *__pyx_array___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_attr); /*proto*/ static PyObject *__pyx_array___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_attr) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0); __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(((struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_attr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getattr__", 0); /* "View.MemoryView":235 * * def __getattr__(self, attr): * return getattr(self.memview, attr) # <<<<<<<<<<<<<< * * def __getitem__(self, item): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_GetAttr(__pyx_t_1, __pyx_v_attr); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":234 * return self._shape[0] * * def __getattr__(self, attr): # <<<<<<<<<<<<<< * return getattr(self.memview, attr) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView.array.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":237 * return getattr(self.memview, attr) * * def __getitem__(self, item): # <<<<<<<<<<<<<< * return self.memview[item] * */ /* Python wrapper */ static PyObject *__pyx_array___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item); /*proto*/ static PyObject *__pyx_array___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(((struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_item)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); /* "View.MemoryView":238 * * def __getitem__(self, item): * return self.memview[item] # <<<<<<<<<<<<<< * * def __setitem__(self, item, value): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":237 * return getattr(self.memview, attr) * * def __getitem__(self, item): # <<<<<<<<<<<<<< * return self.memview[item] * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView.array.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":240 * return self.memview[item] * * def __setitem__(self, item, value): # <<<<<<<<<<<<<< * self.memview[item] = value * */ /* Python wrapper */ static int __pyx_array___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value); /*proto*/ static int __pyx_array___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0); __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(((struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_item), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setitem__", 0); /* "View.MemoryView":241 * * def __setitem__(self, item, value): * self.memview[item] = value # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_item, __pyx_v_value) < 0)) __PYX_ERR(2, 241, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "View.MemoryView":240 * return self.memview[item] * * def __setitem__(self, item, value): # <<<<<<<<<<<<<< * self.memview[item] = value * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.array.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf___pyx_array___reduce_cython__(((struct __pyx_array_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__124, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.array.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf___pyx_array_2__setstate_cython__(((struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__125, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.array.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":245 * * @cname("__pyx_array_new") * cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format, # <<<<<<<<<<<<<< * char *mode, char *buf): * cdef array result */ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, char *__pyx_v_format, char *__pyx_v_mode, char *__pyx_v_buf) { struct __pyx_array_obj *__pyx_v_result = 0; struct __pyx_array_obj *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("array_cwrapper", 0); /* "View.MemoryView":249 * cdef array result * * if buf == NULL: # <<<<<<<<<<<<<< * result = array(shape, itemsize, format, mode.decode('ASCII')) * else: */ __pyx_t_1 = ((__pyx_v_buf == NULL) != 0); if (__pyx_t_1) { /* "View.MemoryView":250 * * if buf == NULL: * result = array(shape, itemsize, format, mode.decode('ASCII')) # <<<<<<<<<<<<<< * else: * result = array(shape, itemsize, format, mode.decode('ASCII'), */ __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_mode, 0, strlen(__pyx_v_mode), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_shape); __Pyx_GIVEREF(__pyx_v_shape); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_shape); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_result = ((struct __pyx_array_obj *)__pyx_t_4); __pyx_t_4 = 0; /* "View.MemoryView":249 * cdef array result * * if buf == NULL: # <<<<<<<<<<<<<< * result = array(shape, itemsize, format, mode.decode('ASCII')) * else: */ goto __pyx_L3; } /* "View.MemoryView":252 * result = array(shape, itemsize, format, mode.decode('ASCII')) * else: * result = array(shape, itemsize, format, mode.decode('ASCII'), # <<<<<<<<<<<<<< * allocate_buffer=False) * result.data = buf */ /*else*/ { __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_mode, 0, strlen(__pyx_v_mode), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_shape); __Pyx_GIVEREF(__pyx_v_shape); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_shape); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_3 = 0; /* "View.MemoryView":253 * else: * result = array(shape, itemsize, format, mode.decode('ASCII'), * allocate_buffer=False) # <<<<<<<<<<<<<< * result.data = buf * */ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_allocate_buffer, Py_False) < 0) __PYX_ERR(2, 253, __pyx_L1_error) /* "View.MemoryView":252 * result = array(shape, itemsize, format, mode.decode('ASCII')) * else: * result = array(shape, itemsize, format, mode.decode('ASCII'), # <<<<<<<<<<<<<< * allocate_buffer=False) * result.data = buf */ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_result = ((struct __pyx_array_obj *)__pyx_t_5); __pyx_t_5 = 0; /* "View.MemoryView":254 * result = array(shape, itemsize, format, mode.decode('ASCII'), * allocate_buffer=False) * result.data = buf # <<<<<<<<<<<<<< * * return result */ __pyx_v_result->data = __pyx_v_buf; } __pyx_L3:; /* "View.MemoryView":256 * result.data = buf * * return result # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(((PyObject *)__pyx_r)); __Pyx_INCREF(((PyObject *)__pyx_v_result)); __pyx_r = __pyx_v_result; goto __pyx_L0; /* "View.MemoryView":245 * * @cname("__pyx_array_new") * cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format, # <<<<<<<<<<<<<< * char *mode, char *buf): * cdef array result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("View.MemoryView.array_cwrapper", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_result); __Pyx_XGIVEREF((PyObject *)__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":282 * cdef class Enum(object): * cdef object name * def __init__(self, name): # <<<<<<<<<<<<<< * self.name = name * def __repr__(self): */ /* Python wrapper */ static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name_2,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name_2)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 282, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_name = values[0]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 282, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("View.MemoryView.Enum.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self), __pyx_v_name); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 0); /* "View.MemoryView":283 * cdef object name * def __init__(self, name): * self.name = name # <<<<<<<<<<<<<< * def __repr__(self): * return self.name */ __Pyx_INCREF(__pyx_v_name); __Pyx_GIVEREF(__pyx_v_name); __Pyx_GOTREF(__pyx_v_self->name); __Pyx_DECREF(__pyx_v_self->name); __pyx_v_self->name = __pyx_v_name; /* "View.MemoryView":282 * cdef class Enum(object): * cdef object name * def __init__(self, name): # <<<<<<<<<<<<<< * self.name = name * def __repr__(self): */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":284 * def __init__(self, name): * self.name = name * def __repr__(self): # <<<<<<<<<<<<<< * return self.name * */ /* Python wrapper */ static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(struct __pyx_MemviewEnum_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__", 0); /* "View.MemoryView":285 * self.name = name * def __repr__(self): * return self.name # <<<<<<<<<<<<<< * * cdef generic = Enum("") */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->name); __pyx_r = __pyx_v_self->name; goto __pyx_L0; /* "View.MemoryView":284 * def __init__(self, name): * self.name = name * def __repr__(self): # <<<<<<<<<<<<<< * return self.name * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf___pyx_MemviewEnum___reduce_cython__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.name,) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_self->name); __Pyx_GIVEREF(__pyx_v_self->name); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->name); __pyx_v_state = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.name,) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__dict = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":7 * state = (self.name,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_2 = (__pyx_v__dict != Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict); __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.name is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.name,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.name is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->name != Py_None); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state * else: */ __pyx_t_3 = (__pyx_v_use_setstate != 0); if (__pyx_t_3) { /* "(tree fragment)":13 * use_setstate = self.name is not None * if use_setstate: * return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_Enum, (type(self), 0xb068931, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_Enum); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_INCREF(__pyx_int_184977713); __Pyx_GIVEREF(__pyx_int_184977713); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_184977713); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state); __pyx_t_4 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state * else: * return __pyx_unpickle_Enum, (type(self), 0xb068931, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Enum__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_Enum); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); __Pyx_INCREF(__pyx_int_184977713); __Pyx_GIVEREF(__pyx_int_184977713); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_184977713); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1); __pyx_t_5 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("View.MemoryView.Enum.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_Enum, (type(self), 0xb068931, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Enum__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf___pyx_MemviewEnum_2__setstate_cython__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":17 * return __pyx_unpickle_Enum, (type(self), 0xb068931, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Enum__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_unpickle_Enum__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_Enum, (type(self), 0xb068931, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Enum__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.Enum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":299 * * @cname('__pyx_align_pointer') * cdef void *align_pointer(void *memory, size_t alignment) nogil: # <<<<<<<<<<<<<< * "Align pointer memory on a given boundary" * cdef Py_intptr_t aligned_p = memory */ static void *__pyx_align_pointer(void *__pyx_v_memory, size_t __pyx_v_alignment) { Py_intptr_t __pyx_v_aligned_p; size_t __pyx_v_offset; void *__pyx_r; int __pyx_t_1; /* "View.MemoryView":301 * cdef void *align_pointer(void *memory, size_t alignment) nogil: * "Align pointer memory on a given boundary" * cdef Py_intptr_t aligned_p = memory # <<<<<<<<<<<<<< * cdef size_t offset * */ __pyx_v_aligned_p = ((Py_intptr_t)__pyx_v_memory); /* "View.MemoryView":305 * * with cython.cdivision(True): * offset = aligned_p % alignment # <<<<<<<<<<<<<< * * if offset > 0: */ __pyx_v_offset = (__pyx_v_aligned_p % __pyx_v_alignment); /* "View.MemoryView":307 * offset = aligned_p % alignment * * if offset > 0: # <<<<<<<<<<<<<< * aligned_p += alignment - offset * */ __pyx_t_1 = ((__pyx_v_offset > 0) != 0); if (__pyx_t_1) { /* "View.MemoryView":308 * * if offset > 0: * aligned_p += alignment - offset # <<<<<<<<<<<<<< * * return aligned_p */ __pyx_v_aligned_p = (__pyx_v_aligned_p + (__pyx_v_alignment - __pyx_v_offset)); /* "View.MemoryView":307 * offset = aligned_p % alignment * * if offset > 0: # <<<<<<<<<<<<<< * aligned_p += alignment - offset * */ } /* "View.MemoryView":310 * aligned_p += alignment - offset * * return aligned_p # <<<<<<<<<<<<<< * * */ __pyx_r = ((void *)__pyx_v_aligned_p); goto __pyx_L0; /* "View.MemoryView":299 * * @cname('__pyx_align_pointer') * cdef void *align_pointer(void *memory, size_t alignment) nogil: # <<<<<<<<<<<<<< * "Align pointer memory on a given boundary" * cdef Py_intptr_t aligned_p = memory */ /* function exit code */ __pyx_L0:; return __pyx_r; } /* "View.MemoryView":346 * cdef __Pyx_TypeInfo *typeinfo * * def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False): # <<<<<<<<<<<<<< * self.obj = obj * self.flags = flags */ /* Python wrapper */ static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_obj = 0; int __pyx_v_flags; int __pyx_v_dtype_is_object; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_obj,&__pyx_n_s_flags,&__pyx_n_s_dtype_is_object,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, 1); __PYX_ERR(2, 346, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype_is_object); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(2, 346, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_obj = values[0]; __pyx_v_flags = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 346, __pyx_L3_error) if (values[2]) { __pyx_v_dtype_is_object = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_dtype_is_object == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 346, __pyx_L3_error) } else { __pyx_v_dtype_is_object = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 346, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("View.MemoryView.memoryview.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(((struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_obj, __pyx_v_flags, __pyx_v_dtype_is_object); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_v_flags, int __pyx_v_dtype_is_object) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__cinit__", 0); /* "View.MemoryView":347 * * def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False): * self.obj = obj # <<<<<<<<<<<<<< * self.flags = flags * if type(self) is memoryview or obj is not None: */ __Pyx_INCREF(__pyx_v_obj); __Pyx_GIVEREF(__pyx_v_obj); __Pyx_GOTREF(__pyx_v_self->obj); __Pyx_DECREF(__pyx_v_self->obj); __pyx_v_self->obj = __pyx_v_obj; /* "View.MemoryView":348 * def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False): * self.obj = obj * self.flags = flags # <<<<<<<<<<<<<< * if type(self) is memoryview or obj is not None: * __Pyx_GetBuffer(obj, &self.view, flags) */ __pyx_v_self->flags = __pyx_v_flags; /* "View.MemoryView":349 * self.obj = obj * self.flags = flags * if type(self) is memoryview or obj is not None: # <<<<<<<<<<<<<< * __Pyx_GetBuffer(obj, &self.view, flags) * if self.view.obj == NULL: */ __pyx_t_2 = (((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))) == ((PyObject *)__pyx_memoryview_type)); __pyx_t_3 = (__pyx_t_2 != 0); if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } __pyx_t_3 = (__pyx_v_obj != Py_None); __pyx_t_2 = (__pyx_t_3 != 0); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "View.MemoryView":350 * self.flags = flags * if type(self) is memoryview or obj is not None: * __Pyx_GetBuffer(obj, &self.view, flags) # <<<<<<<<<<<<<< * if self.view.obj == NULL: * (<__pyx_buffer *> &self.view).obj = Py_None */ __pyx_t_4 = __Pyx_GetBuffer(__pyx_v_obj, (&__pyx_v_self->view), __pyx_v_flags); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 350, __pyx_L1_error) /* "View.MemoryView":351 * if type(self) is memoryview or obj is not None: * __Pyx_GetBuffer(obj, &self.view, flags) * if self.view.obj == NULL: # <<<<<<<<<<<<<< * (<__pyx_buffer *> &self.view).obj = Py_None * Py_INCREF(Py_None) */ __pyx_t_1 = ((((PyObject *)__pyx_v_self->view.obj) == NULL) != 0); if (__pyx_t_1) { /* "View.MemoryView":352 * __Pyx_GetBuffer(obj, &self.view, flags) * if self.view.obj == NULL: * (<__pyx_buffer *> &self.view).obj = Py_None # <<<<<<<<<<<<<< * Py_INCREF(Py_None) * */ ((Py_buffer *)(&__pyx_v_self->view))->obj = Py_None; /* "View.MemoryView":353 * if self.view.obj == NULL: * (<__pyx_buffer *> &self.view).obj = Py_None * Py_INCREF(Py_None) # <<<<<<<<<<<<<< * * if not __PYX_CYTHON_ATOMICS_ENABLED(): */ Py_INCREF(Py_None); /* "View.MemoryView":351 * if type(self) is memoryview or obj is not None: * __Pyx_GetBuffer(obj, &self.view, flags) * if self.view.obj == NULL: # <<<<<<<<<<<<<< * (<__pyx_buffer *> &self.view).obj = Py_None * Py_INCREF(Py_None) */ } /* "View.MemoryView":349 * self.obj = obj * self.flags = flags * if type(self) is memoryview or obj is not None: # <<<<<<<<<<<<<< * __Pyx_GetBuffer(obj, &self.view, flags) * if self.view.obj == NULL: */ } /* "View.MemoryView":355 * Py_INCREF(Py_None) * * if not __PYX_CYTHON_ATOMICS_ENABLED(): # <<<<<<<<<<<<<< * global __pyx_memoryview_thread_locks_used * if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED: */ __pyx_t_1 = ((!(__PYX_CYTHON_ATOMICS_ENABLED() != 0)) != 0); if (__pyx_t_1) { /* "View.MemoryView":357 * if not __PYX_CYTHON_ATOMICS_ENABLED(): * global __pyx_memoryview_thread_locks_used * if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED: # <<<<<<<<<<<<<< * self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] * __pyx_memoryview_thread_locks_used += 1 */ __pyx_t_1 = ((__pyx_memoryview_thread_locks_used < 8) != 0); if (__pyx_t_1) { /* "View.MemoryView":358 * global __pyx_memoryview_thread_locks_used * if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED: * self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] # <<<<<<<<<<<<<< * __pyx_memoryview_thread_locks_used += 1 * if self.lock is NULL: */ __pyx_v_self->lock = (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]); /* "View.MemoryView":359 * if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED: * self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] * __pyx_memoryview_thread_locks_used += 1 # <<<<<<<<<<<<<< * if self.lock is NULL: * self.lock = PyThread_allocate_lock() */ __pyx_memoryview_thread_locks_used = (__pyx_memoryview_thread_locks_used + 1); /* "View.MemoryView":357 * if not __PYX_CYTHON_ATOMICS_ENABLED(): * global __pyx_memoryview_thread_locks_used * if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED: # <<<<<<<<<<<<<< * self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] * __pyx_memoryview_thread_locks_used += 1 */ } /* "View.MemoryView":360 * self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] * __pyx_memoryview_thread_locks_used += 1 * if self.lock is NULL: # <<<<<<<<<<<<<< * self.lock = PyThread_allocate_lock() * if self.lock is NULL: */ __pyx_t_1 = ((__pyx_v_self->lock == NULL) != 0); if (__pyx_t_1) { /* "View.MemoryView":361 * __pyx_memoryview_thread_locks_used += 1 * if self.lock is NULL: * self.lock = PyThread_allocate_lock() # <<<<<<<<<<<<<< * if self.lock is NULL: * raise MemoryError */ __pyx_v_self->lock = PyThread_allocate_lock(); /* "View.MemoryView":362 * if self.lock is NULL: * self.lock = PyThread_allocate_lock() * if self.lock is NULL: # <<<<<<<<<<<<<< * raise MemoryError * */ __pyx_t_1 = ((__pyx_v_self->lock == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "View.MemoryView":363 * self.lock = PyThread_allocate_lock() * if self.lock is NULL: * raise MemoryError # <<<<<<<<<<<<<< * * if flags & PyBUF_FORMAT: */ PyErr_NoMemory(); __PYX_ERR(2, 363, __pyx_L1_error) /* "View.MemoryView":362 * if self.lock is NULL: * self.lock = PyThread_allocate_lock() * if self.lock is NULL: # <<<<<<<<<<<<<< * raise MemoryError * */ } /* "View.MemoryView":360 * self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] * __pyx_memoryview_thread_locks_used += 1 * if self.lock is NULL: # <<<<<<<<<<<<<< * self.lock = PyThread_allocate_lock() * if self.lock is NULL: */ } /* "View.MemoryView":355 * Py_INCREF(Py_None) * * if not __PYX_CYTHON_ATOMICS_ENABLED(): # <<<<<<<<<<<<<< * global __pyx_memoryview_thread_locks_used * if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED: */ } /* "View.MemoryView":365 * raise MemoryError * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0') * else: */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0); if (__pyx_t_1) { /* "View.MemoryView":366 * * if flags & PyBUF_FORMAT: * self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0') # <<<<<<<<<<<<<< * else: * self.dtype_is_object = dtype_is_object */ __pyx_t_2 = (((__pyx_v_self->view.format[0]) == 'O') != 0); if (__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L12_bool_binop_done; } __pyx_t_2 = (((__pyx_v_self->view.format[1]) == '\x00') != 0); __pyx_t_1 = __pyx_t_2; __pyx_L12_bool_binop_done:; __pyx_v_self->dtype_is_object = __pyx_t_1; /* "View.MemoryView":365 * raise MemoryError * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0') * else: */ goto __pyx_L11; } /* "View.MemoryView":368 * self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0') * else: * self.dtype_is_object = dtype_is_object # <<<<<<<<<<<<<< * * self.acquisition_count_aligned_p = <__pyx_atomic_int *> align_pointer( */ /*else*/ { __pyx_v_self->dtype_is_object = __pyx_v_dtype_is_object; } __pyx_L11:; /* "View.MemoryView":370 * self.dtype_is_object = dtype_is_object * * self.acquisition_count_aligned_p = <__pyx_atomic_int *> align_pointer( # <<<<<<<<<<<<<< * &self.acquisition_count[0], sizeof(__pyx_atomic_int)) * self.typeinfo = NULL */ __pyx_v_self->acquisition_count_aligned_p = ((__pyx_atomic_int *)__pyx_align_pointer(((void *)(&(__pyx_v_self->acquisition_count[0]))), (sizeof(__pyx_atomic_int)))); /* "View.MemoryView":372 * self.acquisition_count_aligned_p = <__pyx_atomic_int *> align_pointer( * &self.acquisition_count[0], sizeof(__pyx_atomic_int)) * self.typeinfo = NULL # <<<<<<<<<<<<<< * * def __dealloc__(memoryview self): */ __pyx_v_self->typeinfo = NULL; /* "View.MemoryView":346 * cdef __Pyx_TypeInfo *typeinfo * * def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False): # <<<<<<<<<<<<<< * self.obj = obj * self.flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("View.MemoryView.memoryview.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":374 * self.typeinfo = NULL * * def __dealloc__(memoryview self): # <<<<<<<<<<<<<< * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) */ /* Python wrapper */ static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(struct __pyx_memoryview_obj *__pyx_v_self) { int __pyx_v_i; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; int __pyx_t_5; PyThread_type_lock __pyx_t_6; PyThread_type_lock __pyx_t_7; __Pyx_RefNannySetupContext("__dealloc__", 0); /* "View.MemoryView":375 * * def __dealloc__(memoryview self): * if self.obj is not None: # <<<<<<<<<<<<<< * __Pyx_ReleaseBuffer(&self.view) * elif (<__pyx_buffer *> &self.view).obj == Py_None: */ __pyx_t_1 = (__pyx_v_self->obj != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "View.MemoryView":376 * def __dealloc__(memoryview self): * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) # <<<<<<<<<<<<<< * elif (<__pyx_buffer *> &self.view).obj == Py_None: * */ __Pyx_ReleaseBuffer((&__pyx_v_self->view)); /* "View.MemoryView":375 * * def __dealloc__(memoryview self): * if self.obj is not None: # <<<<<<<<<<<<<< * __Pyx_ReleaseBuffer(&self.view) * elif (<__pyx_buffer *> &self.view).obj == Py_None: */ goto __pyx_L3; } /* "View.MemoryView":377 * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) * elif (<__pyx_buffer *> &self.view).obj == Py_None: # <<<<<<<<<<<<<< * * (<__pyx_buffer *> &self.view).obj = NULL */ __pyx_t_2 = ((((Py_buffer *)(&__pyx_v_self->view))->obj == Py_None) != 0); if (__pyx_t_2) { /* "View.MemoryView":379 * elif (<__pyx_buffer *> &self.view).obj == Py_None: * * (<__pyx_buffer *> &self.view).obj = NULL # <<<<<<<<<<<<<< * Py_DECREF(Py_None) * */ ((Py_buffer *)(&__pyx_v_self->view))->obj = NULL; /* "View.MemoryView":380 * * (<__pyx_buffer *> &self.view).obj = NULL * Py_DECREF(Py_None) # <<<<<<<<<<<<<< * * cdef int i */ Py_DECREF(Py_None); /* "View.MemoryView":377 * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) * elif (<__pyx_buffer *> &self.view).obj == Py_None: # <<<<<<<<<<<<<< * * (<__pyx_buffer *> &self.view).obj = NULL */ } __pyx_L3:; /* "View.MemoryView":384 * cdef int i * global __pyx_memoryview_thread_locks_used * if self.lock != NULL: # <<<<<<<<<<<<<< * for i in range(__pyx_memoryview_thread_locks_used): * if __pyx_memoryview_thread_locks[i] is self.lock: */ __pyx_t_2 = ((__pyx_v_self->lock != NULL) != 0); if (__pyx_t_2) { /* "View.MemoryView":385 * global __pyx_memoryview_thread_locks_used * if self.lock != NULL: * for i in range(__pyx_memoryview_thread_locks_used): # <<<<<<<<<<<<<< * if __pyx_memoryview_thread_locks[i] is self.lock: * __pyx_memoryview_thread_locks_used -= 1 */ __pyx_t_3 = __pyx_memoryview_thread_locks_used; __pyx_t_4 = __pyx_t_3; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; /* "View.MemoryView":386 * if self.lock != NULL: * for i in range(__pyx_memoryview_thread_locks_used): * if __pyx_memoryview_thread_locks[i] is self.lock: # <<<<<<<<<<<<<< * __pyx_memoryview_thread_locks_used -= 1 * if i != __pyx_memoryview_thread_locks_used: */ __pyx_t_2 = (((__pyx_memoryview_thread_locks[__pyx_v_i]) == __pyx_v_self->lock) != 0); if (__pyx_t_2) { /* "View.MemoryView":387 * for i in range(__pyx_memoryview_thread_locks_used): * if __pyx_memoryview_thread_locks[i] is self.lock: * __pyx_memoryview_thread_locks_used -= 1 # <<<<<<<<<<<<<< * if i != __pyx_memoryview_thread_locks_used: * __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = ( */ __pyx_memoryview_thread_locks_used = (__pyx_memoryview_thread_locks_used - 1); /* "View.MemoryView":388 * if __pyx_memoryview_thread_locks[i] is self.lock: * __pyx_memoryview_thread_locks_used -= 1 * if i != __pyx_memoryview_thread_locks_used: # <<<<<<<<<<<<<< * __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = ( * __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i]) */ __pyx_t_2 = ((__pyx_v_i != __pyx_memoryview_thread_locks_used) != 0); if (__pyx_t_2) { /* "View.MemoryView":390 * if i != __pyx_memoryview_thread_locks_used: * __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = ( * __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i]) # <<<<<<<<<<<<<< * break * else: */ __pyx_t_6 = (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]); __pyx_t_7 = (__pyx_memoryview_thread_locks[__pyx_v_i]); /* "View.MemoryView":389 * __pyx_memoryview_thread_locks_used -= 1 * if i != __pyx_memoryview_thread_locks_used: * __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = ( # <<<<<<<<<<<<<< * __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i]) * break */ (__pyx_memoryview_thread_locks[__pyx_v_i]) = __pyx_t_6; (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]) = __pyx_t_7; /* "View.MemoryView":388 * if __pyx_memoryview_thread_locks[i] is self.lock: * __pyx_memoryview_thread_locks_used -= 1 * if i != __pyx_memoryview_thread_locks_used: # <<<<<<<<<<<<<< * __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = ( * __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i]) */ } /* "View.MemoryView":391 * __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = ( * __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i]) * break # <<<<<<<<<<<<<< * else: * PyThread_free_lock(self.lock) */ goto __pyx_L6_break; /* "View.MemoryView":386 * if self.lock != NULL: * for i in range(__pyx_memoryview_thread_locks_used): * if __pyx_memoryview_thread_locks[i] is self.lock: # <<<<<<<<<<<<<< * __pyx_memoryview_thread_locks_used -= 1 * if i != __pyx_memoryview_thread_locks_used: */ } } /*else*/ { /* "View.MemoryView":393 * break * else: * PyThread_free_lock(self.lock) # <<<<<<<<<<<<<< * * cdef char *get_item_pointer(memoryview self, object index) except NULL: */ PyThread_free_lock(__pyx_v_self->lock); } __pyx_L6_break:; /* "View.MemoryView":384 * cdef int i * global __pyx_memoryview_thread_locks_used * if self.lock != NULL: # <<<<<<<<<<<<<< * for i in range(__pyx_memoryview_thread_locks_used): * if __pyx_memoryview_thread_locks[i] is self.lock: */ } /* "View.MemoryView":374 * self.typeinfo = NULL * * def __dealloc__(memoryview self): # <<<<<<<<<<<<<< * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "View.MemoryView":395 * PyThread_free_lock(self.lock) * * cdef char *get_item_pointer(memoryview self, object index) except NULL: # <<<<<<<<<<<<<< * cdef Py_ssize_t dim * cdef char *itemp = self.view.buf */ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index) { Py_ssize_t __pyx_v_dim; char *__pyx_v_itemp; PyObject *__pyx_v_idx = NULL; char *__pyx_r; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; Py_ssize_t __pyx_t_3; PyObject *(*__pyx_t_4)(PyObject *); PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; char *__pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_item_pointer", 0); /* "View.MemoryView":397 * cdef char *get_item_pointer(memoryview self, object index) except NULL: * cdef Py_ssize_t dim * cdef char *itemp = self.view.buf # <<<<<<<<<<<<<< * * for dim, idx in enumerate(index): */ __pyx_v_itemp = ((char *)__pyx_v_self->view.buf); /* "View.MemoryView":399 * cdef char *itemp = self.view.buf * * for dim, idx in enumerate(index): # <<<<<<<<<<<<<< * itemp = pybuffer_index(&self.view, itemp, idx, dim) * */ __pyx_t_1 = 0; if (likely(PyList_CheckExact(__pyx_v_index)) || PyTuple_CheckExact(__pyx_v_index)) { __pyx_t_2 = __pyx_v_index; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0; __pyx_t_4 = NULL; } else { __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 399, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_4)) { if (likely(PyList_CheckExact(__pyx_t_2))) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(2, 399, __pyx_L1_error) #else __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(2, 399, __pyx_L1_error) #else __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } } else { __pyx_t_5 = __pyx_t_4(__pyx_t_2); if (unlikely(!__pyx_t_5)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(2, 399, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_5); } __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_5); __pyx_t_5 = 0; __pyx_v_dim = __pyx_t_1; __pyx_t_1 = (__pyx_t_1 + 1); /* "View.MemoryView":400 * * for dim, idx in enumerate(index): * itemp = pybuffer_index(&self.view, itemp, idx, dim) # <<<<<<<<<<<<<< * * return itemp */ __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 400, __pyx_L1_error) __pyx_t_7 = __pyx_pybuffer_index((&__pyx_v_self->view), __pyx_v_itemp, __pyx_t_6, __pyx_v_dim); if (unlikely(__pyx_t_7 == ((char *)NULL))) __PYX_ERR(2, 400, __pyx_L1_error) __pyx_v_itemp = __pyx_t_7; /* "View.MemoryView":399 * cdef char *itemp = self.view.buf * * for dim, idx in enumerate(index): # <<<<<<<<<<<<<< * itemp = pybuffer_index(&self.view, itemp, idx, dim) * */ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "View.MemoryView":402 * itemp = pybuffer_index(&self.view, itemp, idx, dim) * * return itemp # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_itemp; goto __pyx_L0; /* "View.MemoryView":395 * PyThread_free_lock(self.lock) * * cdef char *get_item_pointer(memoryview self, object index) except NULL: # <<<<<<<<<<<<<< * cdef Py_ssize_t dim * cdef char *itemp = self.view.buf */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("View.MemoryView.memoryview.get_item_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_idx); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":405 * * * def __getitem__(memoryview self, object index): # <<<<<<<<<<<<<< * if index is Ellipsis: * return self */ /* Python wrapper */ static PyObject *__pyx_memoryview___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/ static PyObject *__pyx_memoryview___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(((struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v_index)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index) { PyObject *__pyx_v_have_slices = NULL; PyObject *__pyx_v_indices = NULL; char *__pyx_v_itemp; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; char *__pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); /* "View.MemoryView":406 * * def __getitem__(memoryview self, object index): * if index is Ellipsis: # <<<<<<<<<<<<<< * return self * */ __pyx_t_1 = (__pyx_v_index == __pyx_builtin_Ellipsis); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "View.MemoryView":407 * def __getitem__(memoryview self, object index): * if index is Ellipsis: * return self # <<<<<<<<<<<<<< * * have_slices, indices = _unellipsify(index, self.view.ndim) */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; /* "View.MemoryView":406 * * def __getitem__(memoryview self, object index): * if index is Ellipsis: # <<<<<<<<<<<<<< * return self * */ } /* "View.MemoryView":409 * return self * * have_slices, indices = _unellipsify(index, self.view.ndim) # <<<<<<<<<<<<<< * * cdef char *itemp */ __pyx_t_3 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (likely(__pyx_t_3 != Py_None)) { PyObject* sequence = __pyx_t_3; Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); __PYX_ERR(2, 409, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); #else __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(2, 409, __pyx_L1_error) } __pyx_v_have_slices = __pyx_t_4; __pyx_t_4 = 0; __pyx_v_indices = __pyx_t_5; __pyx_t_5 = 0; /* "View.MemoryView":412 * * cdef char *itemp * if have_slices: # <<<<<<<<<<<<<< * return memview_slice(self, indices) * else: */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 412, __pyx_L1_error) if (__pyx_t_2) { /* "View.MemoryView":413 * cdef char *itemp * if have_slices: * return memview_slice(self, indices) # <<<<<<<<<<<<<< * else: * itemp = self.get_item_pointer(indices) */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = ((PyObject *)__pyx_memview_slice(__pyx_v_self, __pyx_v_indices)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "View.MemoryView":412 * * cdef char *itemp * if have_slices: # <<<<<<<<<<<<<< * return memview_slice(self, indices) * else: */ } /* "View.MemoryView":415 * return memview_slice(self, indices) * else: * itemp = self.get_item_pointer(indices) # <<<<<<<<<<<<<< * return self.convert_item_to_object(itemp) * */ /*else*/ { __pyx_t_6 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_indices); if (unlikely(__pyx_t_6 == ((char *)NULL))) __PYX_ERR(2, 415, __pyx_L1_error) __pyx_v_itemp = __pyx_t_6; /* "View.MemoryView":416 * else: * itemp = self.get_item_pointer(indices) * return self.convert_item_to_object(itemp) # <<<<<<<<<<<<<< * * def __setitem__(memoryview self, object index, object value): */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->convert_item_to_object(__pyx_v_self, __pyx_v_itemp); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; } /* "View.MemoryView":405 * * * def __getitem__(memoryview self, object index): # <<<<<<<<<<<<<< * if index is Ellipsis: * return self */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("View.MemoryView.memoryview.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_have_slices); __Pyx_XDECREF(__pyx_v_indices); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":418 * return self.convert_item_to_object(itemp) * * def __setitem__(memoryview self, object index, object value): # <<<<<<<<<<<<<< * if self.view.readonly: * raise TypeError("Cannot assign to read-only memoryview") */ /* Python wrapper */ static int __pyx_memoryview___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /*proto*/ static int __pyx_memoryview___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(((struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v_index), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) { PyObject *__pyx_v_have_slices = NULL; PyObject *__pyx_v_obj = NULL; int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setitem__", 0); __Pyx_INCREF(__pyx_v_index); /* "View.MemoryView":419 * * def __setitem__(memoryview self, object index, object value): * if self.view.readonly: # <<<<<<<<<<<<<< * raise TypeError("Cannot assign to read-only memoryview") * */ __pyx_t_1 = (__pyx_v_self->view.readonly != 0); if (unlikely(__pyx_t_1)) { /* "View.MemoryView":420 * def __setitem__(memoryview self, object index, object value): * if self.view.readonly: * raise TypeError("Cannot assign to read-only memoryview") # <<<<<<<<<<<<<< * * have_slices, index = _unellipsify(index, self.view.ndim) */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__126, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(2, 420, __pyx_L1_error) /* "View.MemoryView":419 * * def __setitem__(memoryview self, object index, object value): * if self.view.readonly: # <<<<<<<<<<<<<< * raise TypeError("Cannot assign to read-only memoryview") * */ } /* "View.MemoryView":422 * raise TypeError("Cannot assign to read-only memoryview") * * have_slices, index = _unellipsify(index, self.view.ndim) # <<<<<<<<<<<<<< * * if have_slices: */ __pyx_t_2 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (likely(__pyx_t_2 != Py_None)) { PyObject* sequence = __pyx_t_2; Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); __PYX_ERR(2, 422, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); #else __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(2, 422, __pyx_L1_error) } __pyx_v_have_slices = __pyx_t_3; __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_index, __pyx_t_4); __pyx_t_4 = 0; /* "View.MemoryView":424 * have_slices, index = _unellipsify(index, self.view.ndim) * * if have_slices: # <<<<<<<<<<<<<< * obj = self.is_slice(value) * if obj: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 424, __pyx_L1_error) if (__pyx_t_1) { /* "View.MemoryView":425 * * if have_slices: * obj = self.is_slice(value) # <<<<<<<<<<<<<< * if obj: * self.setitem_slice_assignment(self[index], obj) */ __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->is_slice(__pyx_v_self, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_obj = __pyx_t_2; __pyx_t_2 = 0; /* "View.MemoryView":426 * if have_slices: * obj = self.is_slice(value) * if obj: # <<<<<<<<<<<<<< * self.setitem_slice_assignment(self[index], obj) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_obj); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 426, __pyx_L1_error) if (__pyx_t_1) { /* "View.MemoryView":427 * obj = self.is_slice(value) * if obj: * self.setitem_slice_assignment(self[index], obj) # <<<<<<<<<<<<<< * else: * self.setitem_slice_assign_scalar(self[index], value) */ __pyx_t_2 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_v_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_slice_assignment(__pyx_v_self, __pyx_t_2, __pyx_v_obj); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "View.MemoryView":426 * if have_slices: * obj = self.is_slice(value) * if obj: # <<<<<<<<<<<<<< * self.setitem_slice_assignment(self[index], obj) * else: */ goto __pyx_L5; } /* "View.MemoryView":429 * self.setitem_slice_assignment(self[index], obj) * else: * self.setitem_slice_assign_scalar(self[index], value) # <<<<<<<<<<<<<< * else: * self.setitem_indexed(index, value) */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_v_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_memoryview_type))))) __PYX_ERR(2, 429, __pyx_L1_error) __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_slice_assign_scalar(__pyx_v_self, ((struct __pyx_memoryview_obj *)__pyx_t_4), __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_L5:; /* "View.MemoryView":424 * have_slices, index = _unellipsify(index, self.view.ndim) * * if have_slices: # <<<<<<<<<<<<<< * obj = self.is_slice(value) * if obj: */ goto __pyx_L4; } /* "View.MemoryView":431 * self.setitem_slice_assign_scalar(self[index], value) * else: * self.setitem_indexed(index, value) # <<<<<<<<<<<<<< * * cdef is_slice(self, obj): */ /*else*/ { __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_indexed(__pyx_v_self, __pyx_v_index, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_L4:; /* "View.MemoryView":418 * return self.convert_item_to_object(itemp) * * def __setitem__(memoryview self, object index, object value): # <<<<<<<<<<<<<< * if self.view.readonly: * raise TypeError("Cannot assign to read-only memoryview") */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("View.MemoryView.memoryview.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_have_slices); __Pyx_XDECREF(__pyx_v_obj); __Pyx_XDECREF(__pyx_v_index); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":433 * self.setitem_indexed(index, value) * * cdef is_slice(self, obj): # <<<<<<<<<<<<<< * if not isinstance(obj, memoryview): * try: */ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_slice", 0); __Pyx_INCREF(__pyx_v_obj); /* "View.MemoryView":434 * * cdef is_slice(self, obj): * if not isinstance(obj, memoryview): # <<<<<<<<<<<<<< * try: * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_memoryview_type); __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { /* "View.MemoryView":435 * cdef is_slice(self, obj): * if not isinstance(obj, memoryview): * try: # <<<<<<<<<<<<<< * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, * self.dtype_is_object) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "View.MemoryView":436 * if not isinstance(obj, memoryview): * try: * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, # <<<<<<<<<<<<<< * self.dtype_is_object) * except TypeError: */ __pyx_t_6 = __Pyx_PyInt_From_int(((__pyx_v_self->flags & (~PyBUF_WRITABLE)) | PyBUF_ANY_CONTIGUOUS)); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 436, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); /* "View.MemoryView":437 * try: * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, * self.dtype_is_object) # <<<<<<<<<<<<<< * except TypeError: * return None */ __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->dtype_is_object); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 437, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); /* "View.MemoryView":436 * if not isinstance(obj, memoryview): * try: * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, # <<<<<<<<<<<<<< * self.dtype_is_object) * except TypeError: */ __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 436, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_obj); __Pyx_GIVEREF(__pyx_v_obj); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_obj); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7); __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 436, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF_SET(__pyx_v_obj, __pyx_t_7); __pyx_t_7 = 0; /* "View.MemoryView":435 * cdef is_slice(self, obj): * if not isinstance(obj, memoryview): * try: # <<<<<<<<<<<<<< * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, * self.dtype_is_object) */ } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L9_try_end; __pyx_L4_error:; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; /* "View.MemoryView":438 * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, * self.dtype_is_object) * except TypeError: # <<<<<<<<<<<<<< * return None * */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError); if (__pyx_t_9) { __Pyx_AddTraceback("View.MemoryView.memoryview.is_slice", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(2, 438, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_8); __Pyx_GOTREF(__pyx_t_6); /* "View.MemoryView":439 * self.dtype_is_object) * except TypeError: * return None # <<<<<<<<<<<<<< * * return obj */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L7_except_return; } goto __pyx_L6_except_error; __pyx_L6_except_error:; /* "View.MemoryView":435 * cdef is_slice(self, obj): * if not isinstance(obj, memoryview): * try: # <<<<<<<<<<<<<< * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, * self.dtype_is_object) */ __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); goto __pyx_L1_error; __pyx_L7_except_return:; __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); goto __pyx_L0; __pyx_L9_try_end:; } /* "View.MemoryView":434 * * cdef is_slice(self, obj): * if not isinstance(obj, memoryview): # <<<<<<<<<<<<<< * try: * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, */ } /* "View.MemoryView":441 * return None * * return obj # <<<<<<<<<<<<<< * * cdef setitem_slice_assignment(self, dst, src): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_obj); __pyx_r = __pyx_v_obj; goto __pyx_L0; /* "View.MemoryView":433 * self.setitem_indexed(index, value) * * cdef is_slice(self, obj): # <<<<<<<<<<<<<< * if not isinstance(obj, memoryview): * try: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("View.MemoryView.memoryview.is_slice", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_obj); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":443 * return obj * * cdef setitem_slice_assignment(self, dst, src): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice dst_slice * cdef __Pyx_memviewslice src_slice */ static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src) { __Pyx_memviewslice __pyx_v_dst_slice; __Pyx_memviewslice __pyx_v_src_slice; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_memviewslice *__pyx_t_1; __Pyx_memviewslice *__pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_t_5; int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("setitem_slice_assignment", 0); /* "View.MemoryView":447 * cdef __Pyx_memviewslice src_slice * * memoryview_copy_contents(get_slice_from_memview(src, &src_slice)[0], # <<<<<<<<<<<<<< * get_slice_from_memview(dst, &dst_slice)[0], * src.ndim, dst.ndim, self.dtype_is_object) */ if (!(likely(((__pyx_v_src) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_src, __pyx_memoryview_type))))) __PYX_ERR(2, 447, __pyx_L1_error) __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(((struct __pyx_memoryview_obj *)__pyx_v_src), (&__pyx_v_src_slice)); if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(2, 447, __pyx_L1_error) /* "View.MemoryView":448 * * memoryview_copy_contents(get_slice_from_memview(src, &src_slice)[0], * get_slice_from_memview(dst, &dst_slice)[0], # <<<<<<<<<<<<<< * src.ndim, dst.ndim, self.dtype_is_object) * */ if (!(likely(((__pyx_v_dst) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dst, __pyx_memoryview_type))))) __PYX_ERR(2, 448, __pyx_L1_error) __pyx_t_2 = __pyx_memoryview_get_slice_from_memoryview(((struct __pyx_memoryview_obj *)__pyx_v_dst), (&__pyx_v_dst_slice)); if (unlikely(__pyx_t_2 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(2, 448, __pyx_L1_error) /* "View.MemoryView":449 * memoryview_copy_contents(get_slice_from_memview(src, &src_slice)[0], * get_slice_from_memview(dst, &dst_slice)[0], * src.ndim, dst.ndim, self.dtype_is_object) # <<<<<<<<<<<<<< * * cdef setitem_slice_assign_scalar(self, memoryview dst, value): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_src, __pyx_n_s_ndim); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 449, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dst, __pyx_n_s_ndim); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 449, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":447 * cdef __Pyx_memviewslice src_slice * * memoryview_copy_contents(get_slice_from_memview(src, &src_slice)[0], # <<<<<<<<<<<<<< * get_slice_from_memview(dst, &dst_slice)[0], * src.ndim, dst.ndim, self.dtype_is_object) */ __pyx_t_6 = __pyx_memoryview_copy_contents((__pyx_t_1[0]), (__pyx_t_2[0]), __pyx_t_4, __pyx_t_5, __pyx_v_self->dtype_is_object); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 447, __pyx_L1_error) /* "View.MemoryView":443 * return obj * * cdef setitem_slice_assignment(self, dst, src): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice dst_slice * cdef __Pyx_memviewslice src_slice */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.memoryview.setitem_slice_assignment", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":451 * src.ndim, dst.ndim, self.dtype_is_object) * * cdef setitem_slice_assign_scalar(self, memoryview dst, value): # <<<<<<<<<<<<<< * cdef int array[128] * cdef void *tmp = NULL */ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memoryview_obj *__pyx_v_self, struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value) { int __pyx_v_array[0x80]; void *__pyx_v_tmp; void *__pyx_v_item; __Pyx_memviewslice *__pyx_v_dst_slice; __Pyx_memviewslice __pyx_v_tmp_slice; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_memviewslice *__pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_t_5; char const *__pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("setitem_slice_assign_scalar", 0); /* "View.MemoryView":453 * cdef setitem_slice_assign_scalar(self, memoryview dst, value): * cdef int array[128] * cdef void *tmp = NULL # <<<<<<<<<<<<<< * cdef void *item * */ __pyx_v_tmp = NULL; /* "View.MemoryView":458 * cdef __Pyx_memviewslice *dst_slice * cdef __Pyx_memviewslice tmp_slice * dst_slice = get_slice_from_memview(dst, &tmp_slice) # <<<<<<<<<<<<<< * * if self.view.itemsize > sizeof(array): */ __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_dst, (&__pyx_v_tmp_slice)); if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(2, 458, __pyx_L1_error) __pyx_v_dst_slice = __pyx_t_1; /* "View.MemoryView":460 * dst_slice = get_slice_from_memview(dst, &tmp_slice) * * if self.view.itemsize > sizeof(array): # <<<<<<<<<<<<<< * tmp = PyMem_Malloc(self.view.itemsize) * if tmp == NULL: */ __pyx_t_2 = ((((size_t)__pyx_v_self->view.itemsize) > (sizeof(__pyx_v_array))) != 0); if (__pyx_t_2) { /* "View.MemoryView":461 * * if self.view.itemsize > sizeof(array): * tmp = PyMem_Malloc(self.view.itemsize) # <<<<<<<<<<<<<< * if tmp == NULL: * raise MemoryError */ __pyx_v_tmp = PyMem_Malloc(__pyx_v_self->view.itemsize); /* "View.MemoryView":462 * if self.view.itemsize > sizeof(array): * tmp = PyMem_Malloc(self.view.itemsize) * if tmp == NULL: # <<<<<<<<<<<<<< * raise MemoryError * item = tmp */ __pyx_t_2 = ((__pyx_v_tmp == NULL) != 0); if (unlikely(__pyx_t_2)) { /* "View.MemoryView":463 * tmp = PyMem_Malloc(self.view.itemsize) * if tmp == NULL: * raise MemoryError # <<<<<<<<<<<<<< * item = tmp * else: */ PyErr_NoMemory(); __PYX_ERR(2, 463, __pyx_L1_error) /* "View.MemoryView":462 * if self.view.itemsize > sizeof(array): * tmp = PyMem_Malloc(self.view.itemsize) * if tmp == NULL: # <<<<<<<<<<<<<< * raise MemoryError * item = tmp */ } /* "View.MemoryView":464 * if tmp == NULL: * raise MemoryError * item = tmp # <<<<<<<<<<<<<< * else: * item = array */ __pyx_v_item = __pyx_v_tmp; /* "View.MemoryView":460 * dst_slice = get_slice_from_memview(dst, &tmp_slice) * * if self.view.itemsize > sizeof(array): # <<<<<<<<<<<<<< * tmp = PyMem_Malloc(self.view.itemsize) * if tmp == NULL: */ goto __pyx_L3; } /* "View.MemoryView":466 * item = tmp * else: * item = array # <<<<<<<<<<<<<< * * try: */ /*else*/ { __pyx_v_item = ((void *)__pyx_v_array); } __pyx_L3:; /* "View.MemoryView":468 * item = array * * try: # <<<<<<<<<<<<<< * if self.dtype_is_object: * ( item)[0] = value */ /*try:*/ { /* "View.MemoryView":469 * * try: * if self.dtype_is_object: # <<<<<<<<<<<<<< * ( item)[0] = value * else: */ __pyx_t_2 = (__pyx_v_self->dtype_is_object != 0); if (__pyx_t_2) { /* "View.MemoryView":470 * try: * if self.dtype_is_object: * ( item)[0] = value # <<<<<<<<<<<<<< * else: * self.assign_item_from_object( item, value) */ (((PyObject **)__pyx_v_item)[0]) = ((PyObject *)__pyx_v_value); /* "View.MemoryView":469 * * try: * if self.dtype_is_object: # <<<<<<<<<<<<<< * ( item)[0] = value * else: */ goto __pyx_L8; } /* "View.MemoryView":472 * ( item)[0] = value * else: * self.assign_item_from_object( item, value) # <<<<<<<<<<<<<< * * */ /*else*/ { __pyx_t_3 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, ((char *)__pyx_v_item), __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 472, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_L8:; /* "View.MemoryView":476 * * * if self.view.suboffsets != NULL: # <<<<<<<<<<<<<< * assert_direct_dimensions(self.view.suboffsets, self.view.ndim) * slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize, */ __pyx_t_2 = ((__pyx_v_self->view.suboffsets != NULL) != 0); if (__pyx_t_2) { /* "View.MemoryView":477 * * if self.view.suboffsets != NULL: * assert_direct_dimensions(self.view.suboffsets, self.view.ndim) # <<<<<<<<<<<<<< * slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize, * item, self.dtype_is_object) */ __pyx_t_3 = assert_direct_dimensions(__pyx_v_self->view.suboffsets, __pyx_v_self->view.ndim); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 477, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":476 * * * if self.view.suboffsets != NULL: # <<<<<<<<<<<<<< * assert_direct_dimensions(self.view.suboffsets, self.view.ndim) * slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize, */ } /* "View.MemoryView":478 * if self.view.suboffsets != NULL: * assert_direct_dimensions(self.view.suboffsets, self.view.ndim) * slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize, # <<<<<<<<<<<<<< * item, self.dtype_is_object) * finally: */ __pyx_memoryview_slice_assign_scalar(__pyx_v_dst_slice, __pyx_v_dst->view.ndim, __pyx_v_self->view.itemsize, __pyx_v_item, __pyx_v_self->dtype_is_object); } /* "View.MemoryView":481 * item, self.dtype_is_object) * finally: * PyMem_Free(tmp) # <<<<<<<<<<<<<< * * cdef setitem_indexed(self, index, value): */ /*finally:*/ { /*normal exit:*/{ PyMem_Free(__pyx_v_tmp); goto __pyx_L7; } __pyx_L6_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9) < 0)) __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_12); __pyx_t_4 = __pyx_lineno; __pyx_t_5 = __pyx_clineno; __pyx_t_6 = __pyx_filename; { PyMem_Free(__pyx_v_tmp); } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12); } __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ErrRestore(__pyx_t_7, __pyx_t_8, __pyx_t_9); __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_lineno = __pyx_t_4; __pyx_clineno = __pyx_t_5; __pyx_filename = __pyx_t_6; goto __pyx_L1_error; } __pyx_L7:; } /* "View.MemoryView":451 * src.ndim, dst.ndim, self.dtype_is_object) * * cdef setitem_slice_assign_scalar(self, memoryview dst, value): # <<<<<<<<<<<<<< * cdef int array[128] * cdef void *tmp = NULL */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.memoryview.setitem_slice_assign_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":483 * PyMem_Free(tmp) * * cdef setitem_indexed(self, index, value): # <<<<<<<<<<<<<< * cdef char *itemp = self.get_item_pointer(index) * self.assign_item_from_object(itemp, value) */ static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) { char *__pyx_v_itemp; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("setitem_indexed", 0); /* "View.MemoryView":484 * * cdef setitem_indexed(self, index, value): * cdef char *itemp = self.get_item_pointer(index) # <<<<<<<<<<<<<< * self.assign_item_from_object(itemp, value) * */ __pyx_t_1 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_index); if (unlikely(__pyx_t_1 == ((char *)NULL))) __PYX_ERR(2, 484, __pyx_L1_error) __pyx_v_itemp = __pyx_t_1; /* "View.MemoryView":485 * cdef setitem_indexed(self, index, value): * cdef char *itemp = self.get_item_pointer(index) * self.assign_item_from_object(itemp, value) # <<<<<<<<<<<<<< * * cdef convert_item_to_object(self, char *itemp): */ __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, __pyx_v_itemp, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "View.MemoryView":483 * PyMem_Free(tmp) * * cdef setitem_indexed(self, index, value): # <<<<<<<<<<<<<< * cdef char *itemp = self.get_item_pointer(index) * self.assign_item_from_object(itemp, value) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView.memoryview.setitem_indexed", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":487 * self.assign_item_from_object(itemp, value) * * cdef convert_item_to_object(self, char *itemp): # <<<<<<<<<<<<<< * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" */ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp) { PyObject *__pyx_v_struct = NULL; PyObject *__pyx_v_bytesitem = 0; PyObject *__pyx_v_result = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; size_t __pyx_t_10; int __pyx_t_11; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("convert_item_to_object", 0); /* "View.MemoryView":490 * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" * import struct # <<<<<<<<<<<<<< * cdef bytes bytesitem * */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_struct = __pyx_t_1; __pyx_t_1 = 0; /* "View.MemoryView":493 * cdef bytes bytesitem * * bytesitem = itemp[:self.view.itemsize] # <<<<<<<<<<<<<< * try: * result = struct.unpack(self.view.format, bytesitem) */ __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_itemp + 0, __pyx_v_self->view.itemsize - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytesitem = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "View.MemoryView":494 * * bytesitem = itemp[:self.view.itemsize] * try: # <<<<<<<<<<<<<< * result = struct.unpack(self.view.format, bytesitem) * except struct.error: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); /*try:*/ { /* "View.MemoryView":495 * bytesitem = itemp[:self.view.itemsize] * try: * result = struct.unpack(self.view.format, bytesitem) # <<<<<<<<<<<<<< * except struct.error: * raise ValueError("Unable to convert item to object") */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_unpack); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 495, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 495, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_v_bytesitem}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 495, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_v_bytesitem}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 495, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 495, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_6); __Pyx_INCREF(__pyx_v_bytesitem); __Pyx_GIVEREF(__pyx_v_bytesitem); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_bytesitem); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 495, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_result = __pyx_t_1; __pyx_t_1 = 0; /* "View.MemoryView":494 * * bytesitem = itemp[:self.view.itemsize] * try: # <<<<<<<<<<<<<< * result = struct.unpack(self.view.format, bytesitem) * except struct.error: */ } /* "View.MemoryView":499 * raise ValueError("Unable to convert item to object") * else: * if len(self.view.format) == 1: # <<<<<<<<<<<<<< * return result[0] * return result */ /*else:*/ { __pyx_t_10 = strlen(__pyx_v_self->view.format); __pyx_t_11 = ((__pyx_t_10 == 1) != 0); if (__pyx_t_11) { /* "View.MemoryView":500 * else: * if len(self.view.format) == 1: * return result[0] # <<<<<<<<<<<<<< * return result * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_result, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 500, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L6_except_return; /* "View.MemoryView":499 * raise ValueError("Unable to convert item to object") * else: * if len(self.view.format) == 1: # <<<<<<<<<<<<<< * return result[0] * return result */ } /* "View.MemoryView":501 * if len(self.view.format) == 1: * return result[0] * return result # <<<<<<<<<<<<<< * * cdef assign_item_from_object(self, char *itemp, object value): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_result); __pyx_r = __pyx_v_result; goto __pyx_L6_except_return; } __pyx_L3_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; /* "View.MemoryView":496 * try: * result = struct.unpack(self.view.format, bytesitem) * except struct.error: # <<<<<<<<<<<<<< * raise ValueError("Unable to convert item to object") * else: */ __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 496, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_9); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_9 = 0; if (__pyx_t_8) { __Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(2, 496, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_1); /* "View.MemoryView":497 * result = struct.unpack(self.view.format, bytesitem) * except struct.error: * raise ValueError("Unable to convert item to object") # <<<<<<<<<<<<<< * else: * if len(self.view.format) == 1: */ __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__127, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 497, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(2, 497, __pyx_L5_except_error) } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "View.MemoryView":494 * * bytesitem = itemp[:self.view.itemsize] * try: # <<<<<<<<<<<<<< * result = struct.unpack(self.view.format, bytesitem) * except struct.error: */ __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L1_error; __pyx_L6_except_return:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L0; } /* "View.MemoryView":487 * self.assign_item_from_object(itemp, value) * * cdef convert_item_to_object(self, char *itemp): # <<<<<<<<<<<<<< * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_struct); __Pyx_XDECREF(__pyx_v_bytesitem); __Pyx_XDECREF(__pyx_v_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":503 * return result * * cdef assign_item_from_object(self, char *itemp, object value): # <<<<<<<<<<<<<< * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" */ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value) { PyObject *__pyx_v_struct = NULL; char __pyx_v_c; PyObject *__pyx_v_bytesvalue = 0; Py_ssize_t __pyx_v_i; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; Py_ssize_t __pyx_t_9; PyObject *__pyx_t_10 = NULL; char *__pyx_t_11; char *__pyx_t_12; char *__pyx_t_13; char *__pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("assign_item_from_object", 0); /* "View.MemoryView":506 * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" * import struct # <<<<<<<<<<<<<< * cdef char c * cdef bytes bytesvalue */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_struct = __pyx_t_1; __pyx_t_1 = 0; /* "View.MemoryView":511 * cdef Py_ssize_t i * * if isinstance(value, tuple): # <<<<<<<<<<<<<< * bytesvalue = struct.pack(self.view.format, *value) * else: */ __pyx_t_2 = PyTuple_Check(__pyx_v_value); __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "View.MemoryView":512 * * if isinstance(value, tuple): * bytesvalue = struct.pack(self.view.format, *value) # <<<<<<<<<<<<<< * else: * bytesvalue = struct.pack(self.view.format, value) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_pack); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PySequence_Tuple(__pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = PyNumber_Add(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(2, 512, __pyx_L1_error) __pyx_v_bytesvalue = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "View.MemoryView":511 * cdef Py_ssize_t i * * if isinstance(value, tuple): # <<<<<<<<<<<<<< * bytesvalue = struct.pack(self.view.format, *value) * else: */ goto __pyx_L3; } /* "View.MemoryView":514 * bytesvalue = struct.pack(self.view.format, *value) * else: * bytesvalue = struct.pack(self.view.format, value) # <<<<<<<<<<<<<< * * for i, c in enumerate(bytesvalue): */ /*else*/ { __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_pack); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = NULL; __pyx_t_7 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_7 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_v_value}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 514, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_v_value}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 514, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_1); __Pyx_INCREF(__pyx_v_value); __Pyx_GIVEREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_value); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(2, 514, __pyx_L1_error) __pyx_v_bytesvalue = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; } __pyx_L3:; /* "View.MemoryView":516 * bytesvalue = struct.pack(self.view.format, value) * * for i, c in enumerate(bytesvalue): # <<<<<<<<<<<<<< * itemp[i] = c * */ __pyx_t_9 = 0; if (unlikely(__pyx_v_bytesvalue == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' is not iterable"); __PYX_ERR(2, 516, __pyx_L1_error) } __Pyx_INCREF(__pyx_v_bytesvalue); __pyx_t_10 = __pyx_v_bytesvalue; __pyx_t_12 = PyBytes_AS_STRING(__pyx_t_10); __pyx_t_13 = (__pyx_t_12 + PyBytes_GET_SIZE(__pyx_t_10)); for (__pyx_t_14 = __pyx_t_12; __pyx_t_14 < __pyx_t_13; __pyx_t_14++) { __pyx_t_11 = __pyx_t_14; __pyx_v_c = (__pyx_t_11[0]); /* "View.MemoryView":517 * * for i, c in enumerate(bytesvalue): * itemp[i] = c # <<<<<<<<<<<<<< * * @cname('getbuffer') */ __pyx_v_i = __pyx_t_9; /* "View.MemoryView":516 * bytesvalue = struct.pack(self.view.format, value) * * for i, c in enumerate(bytesvalue): # <<<<<<<<<<<<<< * itemp[i] = c * */ __pyx_t_9 = (__pyx_t_9 + 1); /* "View.MemoryView":517 * * for i, c in enumerate(bytesvalue): * itemp[i] = c # <<<<<<<<<<<<<< * * @cname('getbuffer') */ (__pyx_v_itemp[__pyx_v_i]) = __pyx_v_c; } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "View.MemoryView":503 * return result * * cdef assign_item_from_object(self, char *itemp, object value): # <<<<<<<<<<<<<< * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("View.MemoryView.memoryview.assign_item_from_object", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_struct); __Pyx_XDECREF(__pyx_v_bytesvalue); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":520 * * @cname('getbuffer') * def __getbuffer__(self, Py_buffer *info, int flags): # <<<<<<<<<<<<<< * if flags & PyBUF_WRITABLE and self.view.readonly: * raise ValueError("Cannot create writable memory view from read-only memoryview") */ /* Python wrapper */ static CYTHON_UNUSED int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ static CYTHON_UNUSED int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(((struct __pyx_memoryview_obj *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; Py_ssize_t *__pyx_t_4; char *__pyx_t_5; void *__pyx_t_6; int __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; if (__pyx_v_info == NULL) { PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete"); return -1; } __Pyx_RefNannySetupContext("__getbuffer__", 0); __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); __Pyx_GIVEREF(__pyx_v_info->obj); /* "View.MemoryView":521 * @cname('getbuffer') * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: # <<<<<<<<<<<<<< * raise ValueError("Cannot create writable memory view from read-only memoryview") * */ __pyx_t_2 = ((__pyx_v_flags & PyBUF_WRITABLE) != 0); if (__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L4_bool_binop_done; } __pyx_t_2 = (__pyx_v_self->view.readonly != 0); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_1)) { /* "View.MemoryView":522 * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: * raise ValueError("Cannot create writable memory view from read-only memoryview") # <<<<<<<<<<<<<< * * if flags & PyBUF_ND: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__128, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(2, 522, __pyx_L1_error) /* "View.MemoryView":521 * @cname('getbuffer') * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: # <<<<<<<<<<<<<< * raise ValueError("Cannot create writable memory view from read-only memoryview") * */ } /* "View.MemoryView":524 * raise ValueError("Cannot create writable memory view from read-only memoryview") * * if flags & PyBUF_ND: # <<<<<<<<<<<<<< * info.shape = self.view.shape * else: */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_ND) != 0); if (__pyx_t_1) { /* "View.MemoryView":525 * * if flags & PyBUF_ND: * info.shape = self.view.shape # <<<<<<<<<<<<<< * else: * info.shape = NULL */ __pyx_t_4 = __pyx_v_self->view.shape; __pyx_v_info->shape = __pyx_t_4; /* "View.MemoryView":524 * raise ValueError("Cannot create writable memory view from read-only memoryview") * * if flags & PyBUF_ND: # <<<<<<<<<<<<<< * info.shape = self.view.shape * else: */ goto __pyx_L6; } /* "View.MemoryView":527 * info.shape = self.view.shape * else: * info.shape = NULL # <<<<<<<<<<<<<< * * if flags & PyBUF_STRIDES: */ /*else*/ { __pyx_v_info->shape = NULL; } __pyx_L6:; /* "View.MemoryView":529 * info.shape = NULL * * if flags & PyBUF_STRIDES: # <<<<<<<<<<<<<< * info.strides = self.view.strides * else: */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_STRIDES) != 0); if (__pyx_t_1) { /* "View.MemoryView":530 * * if flags & PyBUF_STRIDES: * info.strides = self.view.strides # <<<<<<<<<<<<<< * else: * info.strides = NULL */ __pyx_t_4 = __pyx_v_self->view.strides; __pyx_v_info->strides = __pyx_t_4; /* "View.MemoryView":529 * info.shape = NULL * * if flags & PyBUF_STRIDES: # <<<<<<<<<<<<<< * info.strides = self.view.strides * else: */ goto __pyx_L7; } /* "View.MemoryView":532 * info.strides = self.view.strides * else: * info.strides = NULL # <<<<<<<<<<<<<< * * if flags & PyBUF_INDIRECT: */ /*else*/ { __pyx_v_info->strides = NULL; } __pyx_L7:; /* "View.MemoryView":534 * info.strides = NULL * * if flags & PyBUF_INDIRECT: # <<<<<<<<<<<<<< * info.suboffsets = self.view.suboffsets * else: */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_INDIRECT) != 0); if (__pyx_t_1) { /* "View.MemoryView":535 * * if flags & PyBUF_INDIRECT: * info.suboffsets = self.view.suboffsets # <<<<<<<<<<<<<< * else: * info.suboffsets = NULL */ __pyx_t_4 = __pyx_v_self->view.suboffsets; __pyx_v_info->suboffsets = __pyx_t_4; /* "View.MemoryView":534 * info.strides = NULL * * if flags & PyBUF_INDIRECT: # <<<<<<<<<<<<<< * info.suboffsets = self.view.suboffsets * else: */ goto __pyx_L8; } /* "View.MemoryView":537 * info.suboffsets = self.view.suboffsets * else: * info.suboffsets = NULL # <<<<<<<<<<<<<< * * if flags & PyBUF_FORMAT: */ /*else*/ { __pyx_v_info->suboffsets = NULL; } __pyx_L8:; /* "View.MemoryView":539 * info.suboffsets = NULL * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * info.format = self.view.format * else: */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0); if (__pyx_t_1) { /* "View.MemoryView":540 * * if flags & PyBUF_FORMAT: * info.format = self.view.format # <<<<<<<<<<<<<< * else: * info.format = NULL */ __pyx_t_5 = __pyx_v_self->view.format; __pyx_v_info->format = __pyx_t_5; /* "View.MemoryView":539 * info.suboffsets = NULL * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * info.format = self.view.format * else: */ goto __pyx_L9; } /* "View.MemoryView":542 * info.format = self.view.format * else: * info.format = NULL # <<<<<<<<<<<<<< * * info.buf = self.view.buf */ /*else*/ { __pyx_v_info->format = NULL; } __pyx_L9:; /* "View.MemoryView":544 * info.format = NULL * * info.buf = self.view.buf # <<<<<<<<<<<<<< * info.ndim = self.view.ndim * info.itemsize = self.view.itemsize */ __pyx_t_6 = __pyx_v_self->view.buf; __pyx_v_info->buf = __pyx_t_6; /* "View.MemoryView":545 * * info.buf = self.view.buf * info.ndim = self.view.ndim # <<<<<<<<<<<<<< * info.itemsize = self.view.itemsize * info.len = self.view.len */ __pyx_t_7 = __pyx_v_self->view.ndim; __pyx_v_info->ndim = __pyx_t_7; /* "View.MemoryView":546 * info.buf = self.view.buf * info.ndim = self.view.ndim * info.itemsize = self.view.itemsize # <<<<<<<<<<<<<< * info.len = self.view.len * info.readonly = self.view.readonly */ __pyx_t_8 = __pyx_v_self->view.itemsize; __pyx_v_info->itemsize = __pyx_t_8; /* "View.MemoryView":547 * info.ndim = self.view.ndim * info.itemsize = self.view.itemsize * info.len = self.view.len # <<<<<<<<<<<<<< * info.readonly = self.view.readonly * info.obj = self */ __pyx_t_8 = __pyx_v_self->view.len; __pyx_v_info->len = __pyx_t_8; /* "View.MemoryView":548 * info.itemsize = self.view.itemsize * info.len = self.view.len * info.readonly = self.view.readonly # <<<<<<<<<<<<<< * info.obj = self * */ __pyx_t_1 = __pyx_v_self->view.readonly; __pyx_v_info->readonly = __pyx_t_1; /* "View.MemoryView":549 * info.len = self.view.len * info.readonly = self.view.readonly * info.obj = self # <<<<<<<<<<<<<< * * __pyx_getbuffer = capsule( &__pyx_memoryview_getbuffer, "getbuffer(obj, view, flags)") */ __Pyx_INCREF(((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = ((PyObject *)__pyx_v_self); /* "View.MemoryView":520 * * @cname('getbuffer') * def __getbuffer__(self, Py_buffer *info, int flags): # <<<<<<<<<<<<<< * if flags & PyBUF_WRITABLE and self.view.readonly: * raise ValueError("Cannot create writable memory view from read-only memoryview") */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.memoryview.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; if (__pyx_v_info->obj != NULL) { __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; } goto __pyx_L2; __pyx_L0:; if (__pyx_v_info->obj == Py_None) { __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; } __pyx_L2:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":555 * * @property * def T(self): # <<<<<<<<<<<<<< * cdef _memoryviewslice result = memoryview_copy(self) * transpose_memslice(&result.from_slice) */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct __pyx_memoryview_obj *__pyx_v_self) { struct __pyx_memoryviewslice_obj *__pyx_v_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":556 * @property * def T(self): * cdef _memoryviewslice result = memoryview_copy(self) # <<<<<<<<<<<<<< * transpose_memslice(&result.from_slice) * return result */ __pyx_t_1 = __pyx_memoryview_copy_object(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_memoryviewslice_type))))) __PYX_ERR(2, 556, __pyx_L1_error) __pyx_v_result = ((struct __pyx_memoryviewslice_obj *)__pyx_t_1); __pyx_t_1 = 0; /* "View.MemoryView":557 * def T(self): * cdef _memoryviewslice result = memoryview_copy(self) * transpose_memslice(&result.from_slice) # <<<<<<<<<<<<<< * return result * */ __pyx_t_2 = __pyx_memslice_transpose((&__pyx_v_result->from_slice)); if (unlikely(__pyx_t_2 == ((int)0))) __PYX_ERR(2, 557, __pyx_L1_error) /* "View.MemoryView":558 * cdef _memoryviewslice result = memoryview_copy(self) * transpose_memslice(&result.from_slice) * return result # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_result)); __pyx_r = ((PyObject *)__pyx_v_result); goto __pyx_L0; /* "View.MemoryView":555 * * @property * def T(self): # <<<<<<<<<<<<<< * cdef _memoryviewslice result = memoryview_copy(self) * transpose_memslice(&result.from_slice) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.memoryview.T.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":561 * * @property * def base(self): # <<<<<<<<<<<<<< * return self.obj * */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struct __pyx_memoryview_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":562 * @property * def base(self): * return self.obj # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->obj); __pyx_r = __pyx_v_self->obj; goto __pyx_L0; /* "View.MemoryView":561 * * @property * def base(self): # <<<<<<<<<<<<<< * return self.obj * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":565 * * @property * def shape(self): # <<<<<<<<<<<<<< * return tuple([length for length in self.view.shape[:self.view.ndim]]) * */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(struct __pyx_memoryview_obj *__pyx_v_self) { Py_ssize_t __pyx_v_length; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; Py_ssize_t *__pyx_t_2; Py_ssize_t *__pyx_t_3; Py_ssize_t *__pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":566 * @property * def shape(self): * return tuple([length for length in self.view.shape[:self.view.ndim]]) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim); for (__pyx_t_4 = __pyx_v_self->view.shape; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) { __pyx_t_2 = __pyx_t_4; __pyx_v_length = (__pyx_t_2[0]); __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(2, 566, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyList_AsTuple(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "View.MemoryView":565 * * @property * def shape(self): # <<<<<<<<<<<<<< * return tuple([length for length in self.view.shape[:self.view.ndim]]) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("View.MemoryView.memoryview.shape.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":569 * * @property * def strides(self): # <<<<<<<<<<<<<< * if self.view.strides == NULL: * */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(struct __pyx_memoryview_obj *__pyx_v_self) { Py_ssize_t __pyx_v_stride; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; Py_ssize_t *__pyx_t_3; Py_ssize_t *__pyx_t_4; Py_ssize_t *__pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":570 * @property * def strides(self): * if self.view.strides == NULL: # <<<<<<<<<<<<<< * * raise ValueError("Buffer view does not expose strides") */ __pyx_t_1 = ((__pyx_v_self->view.strides == NULL) != 0); if (unlikely(__pyx_t_1)) { /* "View.MemoryView":572 * if self.view.strides == NULL: * * raise ValueError("Buffer view does not expose strides") # <<<<<<<<<<<<<< * * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__129, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(2, 572, __pyx_L1_error) /* "View.MemoryView":570 * @property * def strides(self): * if self.view.strides == NULL: # <<<<<<<<<<<<<< * * raise ValueError("Buffer view does not expose strides") */ } /* "View.MemoryView":574 * raise ValueError("Buffer view does not expose strides") * * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = (__pyx_v_self->view.strides + __pyx_v_self->view.ndim); for (__pyx_t_5 = __pyx_v_self->view.strides; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) { __pyx_t_3 = __pyx_t_5; __pyx_v_stride = (__pyx_t_3[0]); __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_stride); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(2, 574, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = PyList_AsTuple(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "View.MemoryView":569 * * @property * def strides(self): # <<<<<<<<<<<<<< * if self.view.strides == NULL: * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("View.MemoryView.memoryview.strides.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":577 * * @property * def suboffsets(self): # <<<<<<<<<<<<<< * if self.view.suboffsets == NULL: * return (-1,) * self.view.ndim */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(struct __pyx_memoryview_obj *__pyx_v_self) { Py_ssize_t __pyx_v_suboffset; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; Py_ssize_t *__pyx_t_4; Py_ssize_t *__pyx_t_5; Py_ssize_t *__pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":578 * @property * def suboffsets(self): * if self.view.suboffsets == NULL: # <<<<<<<<<<<<<< * return (-1,) * self.view.ndim * */ __pyx_t_1 = ((__pyx_v_self->view.suboffsets == NULL) != 0); if (__pyx_t_1) { /* "View.MemoryView":579 * def suboffsets(self): * if self.view.suboffsets == NULL: * return (-1,) * self.view.ndim # <<<<<<<<<<<<<< * * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyNumber_Multiply(__pyx_tuple__130, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "View.MemoryView":578 * @property * def suboffsets(self): * if self.view.suboffsets == NULL: # <<<<<<<<<<<<<< * return (-1,) * self.view.ndim * */ } /* "View.MemoryView":581 * return (-1,) * self.view.ndim * * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = (__pyx_v_self->view.suboffsets + __pyx_v_self->view.ndim); for (__pyx_t_6 = __pyx_v_self->view.suboffsets; __pyx_t_6 < __pyx_t_5; __pyx_t_6++) { __pyx_t_4 = __pyx_t_6; __pyx_v_suboffset = (__pyx_t_4[0]); __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_suboffset); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_2))) __PYX_ERR(2, 581, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyList_AsTuple(((PyObject*)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":577 * * @property * def suboffsets(self): # <<<<<<<<<<<<<< * if self.view.suboffsets == NULL: * return (-1,) * self.view.ndim */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.memoryview.suboffsets.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":584 * * @property * def ndim(self): # <<<<<<<<<<<<<< * return self.view.ndim * */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struct __pyx_memoryview_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":585 * @property * def ndim(self): * return self.view.ndim # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "View.MemoryView":584 * * @property * def ndim(self): # <<<<<<<<<<<<<< * return self.view.ndim * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.memoryview.ndim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":588 * * @property * def itemsize(self): # <<<<<<<<<<<<<< * return self.view.itemsize * */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(struct __pyx_memoryview_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":589 * @property * def itemsize(self): * return self.view.itemsize # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->view.itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "View.MemoryView":588 * * @property * def itemsize(self): # <<<<<<<<<<<<<< * return self.view.itemsize * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.memoryview.itemsize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":592 * * @property * def nbytes(self): # <<<<<<<<<<<<<< * return self.size * self.view.itemsize * */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(struct __pyx_memoryview_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":593 * @property * def nbytes(self): * return self.size * self.view.itemsize # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->view.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "View.MemoryView":592 * * @property * def nbytes(self): # <<<<<<<<<<<<<< * return self.size * self.view.itemsize * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.memoryview.nbytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":596 * * @property * def size(self): # <<<<<<<<<<<<<< * if self._size is None: * result = 1 */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struct __pyx_memoryview_obj *__pyx_v_self) { PyObject *__pyx_v_result = NULL; PyObject *__pyx_v_length = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; Py_ssize_t *__pyx_t_3; Py_ssize_t *__pyx_t_4; Py_ssize_t *__pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":597 * @property * def size(self): * if self._size is None: # <<<<<<<<<<<<<< * result = 1 * */ __pyx_t_1 = (__pyx_v_self->_size == Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "View.MemoryView":598 * def size(self): * if self._size is None: * result = 1 # <<<<<<<<<<<<<< * * for length in self.view.shape[:self.view.ndim]: */ __Pyx_INCREF(__pyx_int_1); __pyx_v_result = __pyx_int_1; /* "View.MemoryView":600 * result = 1 * * for length in self.view.shape[:self.view.ndim]: # <<<<<<<<<<<<<< * result *= length * */ __pyx_t_4 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim); for (__pyx_t_5 = __pyx_v_self->view.shape; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) { __pyx_t_3 = __pyx_t_5; __pyx_t_6 = PyInt_FromSsize_t((__pyx_t_3[0])); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_6); __pyx_t_6 = 0; /* "View.MemoryView":601 * * for length in self.view.shape[:self.view.ndim]: * result *= length # <<<<<<<<<<<<<< * * self._size = result */ __pyx_t_6 = PyNumber_InPlaceMultiply(__pyx_v_result, __pyx_v_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_6); __pyx_t_6 = 0; } /* "View.MemoryView":603 * result *= length * * self._size = result # <<<<<<<<<<<<<< * * return self._size */ __Pyx_INCREF(__pyx_v_result); __Pyx_GIVEREF(__pyx_v_result); __Pyx_GOTREF(__pyx_v_self->_size); __Pyx_DECREF(__pyx_v_self->_size); __pyx_v_self->_size = __pyx_v_result; /* "View.MemoryView":597 * @property * def size(self): * if self._size is None: # <<<<<<<<<<<<<< * result = 1 * */ } /* "View.MemoryView":605 * self._size = result * * return self._size # <<<<<<<<<<<<<< * * def __len__(self): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_size); __pyx_r = __pyx_v_self->_size; goto __pyx_L0; /* "View.MemoryView":596 * * @property * def size(self): # <<<<<<<<<<<<<< * if self._size is None: * result = 1 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("View.MemoryView.memoryview.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_result); __Pyx_XDECREF(__pyx_v_length); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":607 * return self._size * * def __len__(self): # <<<<<<<<<<<<<< * if self.view.ndim >= 1: * return self.view.shape[0] */ /* Python wrapper */ static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self); /*proto*/ static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self) { Py_ssize_t __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(struct __pyx_memoryview_obj *__pyx_v_self) { Py_ssize_t __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("__len__", 0); /* "View.MemoryView":608 * * def __len__(self): * if self.view.ndim >= 1: # <<<<<<<<<<<<<< * return self.view.shape[0] * */ __pyx_t_1 = ((__pyx_v_self->view.ndim >= 1) != 0); if (__pyx_t_1) { /* "View.MemoryView":609 * def __len__(self): * if self.view.ndim >= 1: * return self.view.shape[0] # <<<<<<<<<<<<<< * * return 0 */ __pyx_r = (__pyx_v_self->view.shape[0]); goto __pyx_L0; /* "View.MemoryView":608 * * def __len__(self): * if self.view.ndim >= 1: # <<<<<<<<<<<<<< * return self.view.shape[0] * */ } /* "View.MemoryView":611 * return self.view.shape[0] * * return 0 # <<<<<<<<<<<<<< * * def __repr__(self): */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":607 * return self._size * * def __len__(self): # <<<<<<<<<<<<<< * if self.view.ndim >= 1: * return self.view.shape[0] */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":613 * return 0 * * def __repr__(self): # <<<<<<<<<<<<<< * return "" % (self.base.__class__.__name__, * id(self)) */ /* Python wrapper */ static PyObject *__pyx_memoryview___repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_memoryview___repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(struct __pyx_memoryview_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); /* "View.MemoryView":614 * * def __repr__(self): * return "" % (self.base.__class__.__name__, # <<<<<<<<<<<<<< * id(self)) * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "View.MemoryView":615 * def __repr__(self): * return "" % (self.base.__class__.__name__, * id(self)) # <<<<<<<<<<<<<< * * def __str__(self): */ __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "View.MemoryView":614 * * def __repr__(self): * return "" % (self.base.__class__.__name__, # <<<<<<<<<<<<<< * id(self)) * */ __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_MemoryView_of_r_at_0x_x, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":613 * return 0 * * def __repr__(self): # <<<<<<<<<<<<<< * return "" % (self.base.__class__.__name__, * id(self)) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.memoryview.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":617 * id(self)) * * def __str__(self): # <<<<<<<<<<<<<< * return "" % (self.base.__class__.__name__,) * */ /* Python wrapper */ static PyObject *__pyx_memoryview___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_memoryview___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__str__ (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(struct __pyx_memoryview_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__str__", 0); /* "View.MemoryView":618 * * def __str__(self): * return "" % (self.base.__class__.__name__,) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_MemoryView_of_r_object, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "View.MemoryView":617 * id(self)) * * def __str__(self): # <<<<<<<<<<<<<< * return "" % (self.base.__class__.__name__,) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView.memoryview.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":621 * * * def is_c_contig(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp */ /* Python wrapper */ static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_c_contig (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(struct __pyx_memoryview_obj *__pyx_v_self) { __Pyx_memviewslice *__pyx_v_mslice; __Pyx_memviewslice __pyx_v_tmp; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_memviewslice *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_c_contig", 0); /* "View.MemoryView":624 * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp * mslice = get_slice_from_memview(self, &tmp) # <<<<<<<<<<<<<< * return slice_is_contig(mslice[0], 'C', self.view.ndim) * */ __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp)); if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(2, 624, __pyx_L1_error) __pyx_v_mslice = __pyx_t_1; /* "View.MemoryView":625 * cdef __Pyx_memviewslice tmp * mslice = get_slice_from_memview(self, &tmp) * return slice_is_contig(mslice[0], 'C', self.view.ndim) # <<<<<<<<<<<<<< * * def is_f_contig(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_memviewslice_is_contig((__pyx_v_mslice[0]), 'C', __pyx_v_self->view.ndim)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":621 * * * def is_c_contig(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView.memoryview.is_c_contig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":627 * return slice_is_contig(mslice[0], 'C', self.view.ndim) * * def is_f_contig(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp */ /* Python wrapper */ static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_f_contig (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(struct __pyx_memoryview_obj *__pyx_v_self) { __Pyx_memviewslice *__pyx_v_mslice; __Pyx_memviewslice __pyx_v_tmp; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_memviewslice *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_f_contig", 0); /* "View.MemoryView":630 * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp * mslice = get_slice_from_memview(self, &tmp) # <<<<<<<<<<<<<< * return slice_is_contig(mslice[0], 'F', self.view.ndim) * */ __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp)); if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(2, 630, __pyx_L1_error) __pyx_v_mslice = __pyx_t_1; /* "View.MemoryView":631 * cdef __Pyx_memviewslice tmp * mslice = get_slice_from_memview(self, &tmp) * return slice_is_contig(mslice[0], 'F', self.view.ndim) # <<<<<<<<<<<<<< * * def copy(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_memviewslice_is_contig((__pyx_v_mslice[0]), 'F', __pyx_v_self->view.ndim)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":627 * return slice_is_contig(mslice[0], 'C', self.view.ndim) * * def is_f_contig(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView.memoryview.is_f_contig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":633 * return slice_is_contig(mslice[0], 'F', self.view.ndim) * * def copy(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice mslice * cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS */ /* Python wrapper */ static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("copy (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(struct __pyx_memoryview_obj *__pyx_v_self) { __Pyx_memviewslice __pyx_v_mslice; int __pyx_v_flags; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_memviewslice __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("copy", 0); /* "View.MemoryView":635 * def copy(self): * cdef __Pyx_memviewslice mslice * cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS # <<<<<<<<<<<<<< * * slice_copy(self, &mslice) */ __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_F_CONTIGUOUS)); /* "View.MemoryView":637 * cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS * * slice_copy(self, &mslice) # <<<<<<<<<<<<<< * mslice = slice_copy_contig(&mslice, "c", self.view.ndim, * self.view.itemsize, */ __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_mslice)); /* "View.MemoryView":638 * * slice_copy(self, &mslice) * mslice = slice_copy_contig(&mslice, "c", self.view.ndim, # <<<<<<<<<<<<<< * self.view.itemsize, * flags|PyBUF_C_CONTIGUOUS, */ __pyx_t_1 = __pyx_memoryview_copy_new_contig((&__pyx_v_mslice), ((char *)"c"), __pyx_v_self->view.ndim, __pyx_v_self->view.itemsize, (__pyx_v_flags | PyBUF_C_CONTIGUOUS), __pyx_v_self->dtype_is_object); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 638, __pyx_L1_error) __pyx_v_mslice = __pyx_t_1; /* "View.MemoryView":643 * self.dtype_is_object) * * return memoryview_copy_from_slice(self, &mslice) # <<<<<<<<<<<<<< * * def copy_fortran(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_mslice)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":633 * return slice_is_contig(mslice[0], 'F', self.view.ndim) * * def copy(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice mslice * cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView.memoryview.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":645 * return memoryview_copy_from_slice(self, &mslice) * * def copy_fortran(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice src, dst * cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS */ /* Python wrapper */ static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("copy_fortran (wrapper)", 0); __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(struct __pyx_memoryview_obj *__pyx_v_self) { __Pyx_memviewslice __pyx_v_src; __Pyx_memviewslice __pyx_v_dst; int __pyx_v_flags; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_memviewslice __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("copy_fortran", 0); /* "View.MemoryView":647 * def copy_fortran(self): * cdef __Pyx_memviewslice src, dst * cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS # <<<<<<<<<<<<<< * * slice_copy(self, &src) */ __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_C_CONTIGUOUS)); /* "View.MemoryView":649 * cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS * * slice_copy(self, &src) # <<<<<<<<<<<<<< * dst = slice_copy_contig(&src, "fortran", self.view.ndim, * self.view.itemsize, */ __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_src)); /* "View.MemoryView":650 * * slice_copy(self, &src) * dst = slice_copy_contig(&src, "fortran", self.view.ndim, # <<<<<<<<<<<<<< * self.view.itemsize, * flags|PyBUF_F_CONTIGUOUS, */ __pyx_t_1 = __pyx_memoryview_copy_new_contig((&__pyx_v_src), ((char *)"fortran"), __pyx_v_self->view.ndim, __pyx_v_self->view.itemsize, (__pyx_v_flags | PyBUF_F_CONTIGUOUS), __pyx_v_self->dtype_is_object); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 650, __pyx_L1_error) __pyx_v_dst = __pyx_t_1; /* "View.MemoryView":655 * self.dtype_is_object) * * return memoryview_copy_from_slice(self, &dst) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_dst)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":645 * return memoryview_copy_from_slice(self, &mslice) * * def copy_fortran(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice src, dst * cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView.memoryview.copy_fortran", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf___pyx_memoryview___reduce_cython__(((struct __pyx_memoryview_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__131, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.memoryview.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf___pyx_memoryview_2__setstate_cython__(((struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__132, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.memoryview.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":659 * * @cname('__pyx_memoryview_new') * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo): # <<<<<<<<<<<<<< * cdef memoryview result = memoryview(o, flags, dtype_is_object) * result.typeinfo = typeinfo */ static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o, int __pyx_v_flags, int __pyx_v_dtype_is_object, __Pyx_TypeInfo *__pyx_v_typeinfo) { struct __pyx_memoryview_obj *__pyx_v_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("memoryview_cwrapper", 0); /* "View.MemoryView":660 * @cname('__pyx_memoryview_new') * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo): * cdef memoryview result = memoryview(o, flags, dtype_is_object) # <<<<<<<<<<<<<< * result.typeinfo = typeinfo * return result */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_o); __Pyx_GIVEREF(__pyx_v_o); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_o); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_result = ((struct __pyx_memoryview_obj *)__pyx_t_2); __pyx_t_2 = 0; /* "View.MemoryView":661 * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo): * cdef memoryview result = memoryview(o, flags, dtype_is_object) * result.typeinfo = typeinfo # <<<<<<<<<<<<<< * return result * */ __pyx_v_result->typeinfo = __pyx_v_typeinfo; /* "View.MemoryView":662 * cdef memoryview result = memoryview(o, flags, dtype_is_object) * result.typeinfo = typeinfo * return result # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_check') */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_result)); __pyx_r = ((PyObject *)__pyx_v_result); goto __pyx_L0; /* "View.MemoryView":659 * * @cname('__pyx_memoryview_new') * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo): # <<<<<<<<<<<<<< * cdef memoryview result = memoryview(o, flags, dtype_is_object) * result.typeinfo = typeinfo */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.memoryview_cwrapper", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":665 * * @cname('__pyx_memoryview_check') * cdef inline bint memoryview_check(object o): # <<<<<<<<<<<<<< * return isinstance(o, memoryview) * */ static CYTHON_INLINE int __pyx_memoryview_check(PyObject *__pyx_v_o) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("memoryview_check", 0); /* "View.MemoryView":666 * @cname('__pyx_memoryview_check') * cdef inline bint memoryview_check(object o): * return isinstance(o, memoryview) # <<<<<<<<<<<<<< * * cdef tuple _unellipsify(object index, int ndim): */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_o, __pyx_memoryview_type); __pyx_r = __pyx_t_1; goto __pyx_L0; /* "View.MemoryView":665 * * @cname('__pyx_memoryview_check') * cdef inline bint memoryview_check(object o): # <<<<<<<<<<<<<< * return isinstance(o, memoryview) * */ /* function exit code */ __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":668 * return isinstance(o, memoryview) * * cdef tuple _unellipsify(object index, int ndim): # <<<<<<<<<<<<<< * """ * Replace all ellipses with full slices and fill incomplete indices with */ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { PyObject *__pyx_v_tup = NULL; PyObject *__pyx_v_result = NULL; int __pyx_v_have_slices; int __pyx_v_seen_ellipsis; CYTHON_UNUSED PyObject *__pyx_v_idx = NULL; PyObject *__pyx_v_item = NULL; Py_ssize_t __pyx_v_nslices; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; Py_ssize_t __pyx_t_5; PyObject *(*__pyx_t_6)(PyObject *); PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; int __pyx_t_9; int __pyx_t_10; PyObject *__pyx_t_11 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_unellipsify", 0); /* "View.MemoryView":673 * full slices. * """ * if not isinstance(index, tuple): # <<<<<<<<<<<<<< * tup = (index,) * else: */ __pyx_t_1 = PyTuple_Check(__pyx_v_index); __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { /* "View.MemoryView":674 * """ * if not isinstance(index, tuple): * tup = (index,) # <<<<<<<<<<<<<< * else: * tup = index */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_index); __Pyx_GIVEREF(__pyx_v_index); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_index); __pyx_v_tup = __pyx_t_3; __pyx_t_3 = 0; /* "View.MemoryView":673 * full slices. * """ * if not isinstance(index, tuple): # <<<<<<<<<<<<<< * tup = (index,) * else: */ goto __pyx_L3; } /* "View.MemoryView":676 * tup = (index,) * else: * tup = index # <<<<<<<<<<<<<< * * result = [] */ /*else*/ { __Pyx_INCREF(__pyx_v_index); __pyx_v_tup = __pyx_v_index; } __pyx_L3:; /* "View.MemoryView":678 * tup = index * * result = [] # <<<<<<<<<<<<<< * have_slices = False * seen_ellipsis = False */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_result = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":679 * * result = [] * have_slices = False # <<<<<<<<<<<<<< * seen_ellipsis = False * for idx, item in enumerate(tup): */ __pyx_v_have_slices = 0; /* "View.MemoryView":680 * result = [] * have_slices = False * seen_ellipsis = False # <<<<<<<<<<<<<< * for idx, item in enumerate(tup): * if item is Ellipsis: */ __pyx_v_seen_ellipsis = 0; /* "View.MemoryView":681 * have_slices = False * seen_ellipsis = False * for idx, item in enumerate(tup): # <<<<<<<<<<<<<< * if item is Ellipsis: * if not seen_ellipsis: */ __Pyx_INCREF(__pyx_int_0); __pyx_t_3 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_tup)) || PyTuple_CheckExact(__pyx_v_tup)) { __pyx_t_4 = __pyx_v_tup; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0; __pyx_t_6 = NULL; } else { __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_tup); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 681, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_6)) { if (likely(PyList_CheckExact(__pyx_t_4))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(2, 681, __pyx_L1_error) #else __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(2, 681, __pyx_L1_error) #else __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif } } else { __pyx_t_7 = __pyx_t_6(__pyx_t_4); if (unlikely(!__pyx_t_7)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(2, 681, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_7); } __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_7); __pyx_t_7 = 0; __Pyx_INCREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_3); __pyx_t_7 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = __pyx_t_7; __pyx_t_7 = 0; /* "View.MemoryView":682 * seen_ellipsis = False * for idx, item in enumerate(tup): * if item is Ellipsis: # <<<<<<<<<<<<<< * if not seen_ellipsis: * result.extend([slice(None)] * (ndim - len(tup) + 1)) */ __pyx_t_2 = (__pyx_v_item == __pyx_builtin_Ellipsis); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "View.MemoryView":683 * for idx, item in enumerate(tup): * if item is Ellipsis: * if not seen_ellipsis: # <<<<<<<<<<<<<< * result.extend([slice(None)] * (ndim - len(tup) + 1)) * seen_ellipsis = True */ __pyx_t_1 = ((!(__pyx_v_seen_ellipsis != 0)) != 0); if (__pyx_t_1) { /* "View.MemoryView":684 * if item is Ellipsis: * if not seen_ellipsis: * result.extend([slice(None)] * (ndim - len(tup) + 1)) # <<<<<<<<<<<<<< * seen_ellipsis = True * else: */ __pyx_t_8 = PyObject_Length(__pyx_v_tup); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(2, 684, __pyx_L1_error) __pyx_t_7 = PyList_New(1 * ((((__pyx_v_ndim - __pyx_t_8) + 1)<0) ? 0:((__pyx_v_ndim - __pyx_t_8) + 1))); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < ((__pyx_v_ndim - __pyx_t_8) + 1); __pyx_temp++) { __Pyx_INCREF(__pyx_slice__133); __Pyx_GIVEREF(__pyx_slice__133); PyList_SET_ITEM(__pyx_t_7, __pyx_temp, __pyx_slice__133); } } __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_7); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(2, 684, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "View.MemoryView":685 * if not seen_ellipsis: * result.extend([slice(None)] * (ndim - len(tup) + 1)) * seen_ellipsis = True # <<<<<<<<<<<<<< * else: * result.append(slice(None)) */ __pyx_v_seen_ellipsis = 1; /* "View.MemoryView":683 * for idx, item in enumerate(tup): * if item is Ellipsis: * if not seen_ellipsis: # <<<<<<<<<<<<<< * result.extend([slice(None)] * (ndim - len(tup) + 1)) * seen_ellipsis = True */ goto __pyx_L7; } /* "View.MemoryView":687 * seen_ellipsis = True * else: * result.append(slice(None)) # <<<<<<<<<<<<<< * have_slices = True * else: */ /*else*/ { __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_slice__133); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(2, 687, __pyx_L1_error) } __pyx_L7:; /* "View.MemoryView":688 * else: * result.append(slice(None)) * have_slices = True # <<<<<<<<<<<<<< * else: * if not isinstance(item, slice) and not PyIndex_Check(item): */ __pyx_v_have_slices = 1; /* "View.MemoryView":682 * seen_ellipsis = False * for idx, item in enumerate(tup): * if item is Ellipsis: # <<<<<<<<<<<<<< * if not seen_ellipsis: * result.extend([slice(None)] * (ndim - len(tup) + 1)) */ goto __pyx_L6; } /* "View.MemoryView":690 * have_slices = True * else: * if not isinstance(item, slice) and not PyIndex_Check(item): # <<<<<<<<<<<<<< * raise TypeError("Cannot index with type '%s'" % type(item)) * */ /*else*/ { __pyx_t_2 = PySlice_Check(__pyx_v_item); __pyx_t_10 = ((!(__pyx_t_2 != 0)) != 0); if (__pyx_t_10) { } else { __pyx_t_1 = __pyx_t_10; goto __pyx_L9_bool_binop_done; } __pyx_t_10 = ((!(PyIndex_Check(__pyx_v_item) != 0)) != 0); __pyx_t_1 = __pyx_t_10; __pyx_L9_bool_binop_done:; if (unlikely(__pyx_t_1)) { /* "View.MemoryView":691 * else: * if not isinstance(item, slice) and not PyIndex_Check(item): * raise TypeError("Cannot index with type '%s'" % type(item)) # <<<<<<<<<<<<<< * * have_slices = have_slices or isinstance(item, slice) */ __pyx_t_7 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Cannot_index_with_type_s, ((PyObject *)Py_TYPE(__pyx_v_item))); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_11, 0, 0, 0); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __PYX_ERR(2, 691, __pyx_L1_error) /* "View.MemoryView":690 * have_slices = True * else: * if not isinstance(item, slice) and not PyIndex_Check(item): # <<<<<<<<<<<<<< * raise TypeError("Cannot index with type '%s'" % type(item)) * */ } /* "View.MemoryView":693 * raise TypeError("Cannot index with type '%s'" % type(item)) * * have_slices = have_slices or isinstance(item, slice) # <<<<<<<<<<<<<< * result.append(item) * */ __pyx_t_10 = (__pyx_v_have_slices != 0); if (!__pyx_t_10) { } else { __pyx_t_1 = __pyx_t_10; goto __pyx_L11_bool_binop_done; } __pyx_t_10 = PySlice_Check(__pyx_v_item); __pyx_t_2 = (__pyx_t_10 != 0); __pyx_t_1 = __pyx_t_2; __pyx_L11_bool_binop_done:; __pyx_v_have_slices = __pyx_t_1; /* "View.MemoryView":694 * * have_slices = have_slices or isinstance(item, slice) * result.append(item) # <<<<<<<<<<<<<< * * nslices = ndim - len(result) */ __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_v_item); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(2, 694, __pyx_L1_error) } __pyx_L6:; /* "View.MemoryView":681 * have_slices = False * seen_ellipsis = False * for idx, item in enumerate(tup): # <<<<<<<<<<<<<< * if item is Ellipsis: * if not seen_ellipsis: */ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":696 * result.append(item) * * nslices = ndim - len(result) # <<<<<<<<<<<<<< * if nslices: * result.extend([slice(None)] * nslices) */ __pyx_t_5 = PyList_GET_SIZE(__pyx_v_result); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 696, __pyx_L1_error) __pyx_v_nslices = (__pyx_v_ndim - __pyx_t_5); /* "View.MemoryView":697 * * nslices = ndim - len(result) * if nslices: # <<<<<<<<<<<<<< * result.extend([slice(None)] * nslices) * */ __pyx_t_1 = (__pyx_v_nslices != 0); if (__pyx_t_1) { /* "View.MemoryView":698 * nslices = ndim - len(result) * if nslices: * result.extend([slice(None)] * nslices) # <<<<<<<<<<<<<< * * return have_slices or nslices, tuple(result) */ __pyx_t_3 = PyList_New(1 * ((__pyx_v_nslices<0) ? 0:__pyx_v_nslices)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < __pyx_v_nslices; __pyx_temp++) { __Pyx_INCREF(__pyx_slice__133); __Pyx_GIVEREF(__pyx_slice__133); PyList_SET_ITEM(__pyx_t_3, __pyx_temp, __pyx_slice__133); } } __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(2, 698, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":697 * * nslices = ndim - len(result) * if nslices: # <<<<<<<<<<<<<< * result.extend([slice(None)] * nslices) * */ } /* "View.MemoryView":700 * result.extend([slice(None)] * nslices) * * return have_slices or nslices, tuple(result) # <<<<<<<<<<<<<< * * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim): */ __Pyx_XDECREF(__pyx_r); if (!__pyx_v_have_slices) { } else { __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_have_slices); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L14_bool_binop_done; } __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_nslices); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __pyx_t_4; __pyx_t_4 = 0; __pyx_L14_bool_binop_done:; __pyx_t_4 = PyList_AsTuple(__pyx_v_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_4); __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_r = ((PyObject*)__pyx_t_11); __pyx_t_11 = 0; goto __pyx_L0; /* "View.MemoryView":668 * return isinstance(o, memoryview) * * cdef tuple _unellipsify(object index, int ndim): # <<<<<<<<<<<<<< * """ * Replace all ellipses with full slices and fill incomplete indices with */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_11); __Pyx_AddTraceback("View.MemoryView._unellipsify", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_tup); __Pyx_XDECREF(__pyx_v_result); __Pyx_XDECREF(__pyx_v_idx); __Pyx_XDECREF(__pyx_v_item); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":702 * return have_slices or nslices, tuple(result) * * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim): # <<<<<<<<<<<<<< * for suboffset in suboffsets[:ndim]: * if suboffset >= 0: */ static PyObject *assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_ndim) { Py_ssize_t __pyx_v_suboffset; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t *__pyx_t_1; Py_ssize_t *__pyx_t_2; Py_ssize_t *__pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("assert_direct_dimensions", 0); /* "View.MemoryView":703 * * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim): * for suboffset in suboffsets[:ndim]: # <<<<<<<<<<<<<< * if suboffset >= 0: * raise ValueError("Indirect dimensions not supported") */ __pyx_t_2 = (__pyx_v_suboffsets + __pyx_v_ndim); for (__pyx_t_3 = __pyx_v_suboffsets; __pyx_t_3 < __pyx_t_2; __pyx_t_3++) { __pyx_t_1 = __pyx_t_3; __pyx_v_suboffset = (__pyx_t_1[0]); /* "View.MemoryView":704 * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim): * for suboffset in suboffsets[:ndim]: * if suboffset >= 0: # <<<<<<<<<<<<<< * raise ValueError("Indirect dimensions not supported") * */ __pyx_t_4 = ((__pyx_v_suboffset >= 0) != 0); if (unlikely(__pyx_t_4)) { /* "View.MemoryView":705 * for suboffset in suboffsets[:ndim]: * if suboffset >= 0: * raise ValueError("Indirect dimensions not supported") # <<<<<<<<<<<<<< * * */ __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__134, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(2, 705, __pyx_L1_error) /* "View.MemoryView":704 * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim): * for suboffset in suboffsets[:ndim]: * if suboffset >= 0: # <<<<<<<<<<<<<< * raise ValueError("Indirect dimensions not supported") * */ } } /* "View.MemoryView":702 * return have_slices or nslices, tuple(result) * * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim): # <<<<<<<<<<<<<< * for suboffset in suboffsets[:ndim]: * if suboffset >= 0: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("View.MemoryView.assert_direct_dimensions", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":712 * * @cname('__pyx_memview_slice') * cdef memoryview memview_slice(memoryview memview, object indices): # <<<<<<<<<<<<<< * cdef int new_ndim = 0, suboffset_dim = -1, dim * cdef bint negative_step */ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_obj *__pyx_v_memview, PyObject *__pyx_v_indices) { int __pyx_v_new_ndim; int __pyx_v_suboffset_dim; int __pyx_v_dim; __Pyx_memviewslice __pyx_v_src; __Pyx_memviewslice __pyx_v_dst; __Pyx_memviewslice *__pyx_v_p_src; struct __pyx_memoryviewslice_obj *__pyx_v_memviewsliceobj = 0; __Pyx_memviewslice *__pyx_v_p_dst; int *__pyx_v_p_suboffset_dim; Py_ssize_t __pyx_v_start; Py_ssize_t __pyx_v_stop; Py_ssize_t __pyx_v_step; int __pyx_v_have_start; int __pyx_v_have_stop; int __pyx_v_have_step; PyObject *__pyx_v_index = NULL; struct __pyx_memoryview_obj *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; struct __pyx_memoryview_obj *__pyx_t_4; char *__pyx_t_5; int __pyx_t_6; Py_ssize_t __pyx_t_7; PyObject *(*__pyx_t_8)(PyObject *); PyObject *__pyx_t_9 = NULL; Py_ssize_t __pyx_t_10; int __pyx_t_11; Py_ssize_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("memview_slice", 0); /* "View.MemoryView":713 * @cname('__pyx_memview_slice') * cdef memoryview memview_slice(memoryview memview, object indices): * cdef int new_ndim = 0, suboffset_dim = -1, dim # <<<<<<<<<<<<<< * cdef bint negative_step * cdef __Pyx_memviewslice src, dst */ __pyx_v_new_ndim = 0; __pyx_v_suboffset_dim = -1; /* "View.MemoryView":720 * * * memset(&dst, 0, sizeof(dst)) # <<<<<<<<<<<<<< * * cdef _memoryviewslice memviewsliceobj */ (void)(memset((&__pyx_v_dst), 0, (sizeof(__pyx_v_dst)))); /* "View.MemoryView":724 * cdef _memoryviewslice memviewsliceobj * * assert memview.view.ndim > 0 # <<<<<<<<<<<<<< * * if isinstance(memview, _memoryviewslice): */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!((__pyx_v_memview->view.ndim > 0) != 0))) { PyErr_SetNone(PyExc_AssertionError); __PYX_ERR(2, 724, __pyx_L1_error) } } #endif /* "View.MemoryView":726 * assert memview.view.ndim > 0 * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * memviewsliceobj = memview * p_src = &memviewsliceobj.from_slice */ __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "View.MemoryView":727 * * if isinstance(memview, _memoryviewslice): * memviewsliceobj = memview # <<<<<<<<<<<<<< * p_src = &memviewsliceobj.from_slice * else: */ if (!(likely(((((PyObject *)__pyx_v_memview)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type))))) __PYX_ERR(2, 727, __pyx_L1_error) __pyx_t_3 = ((PyObject *)__pyx_v_memview); __Pyx_INCREF(__pyx_t_3); __pyx_v_memviewsliceobj = ((struct __pyx_memoryviewslice_obj *)__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":728 * if isinstance(memview, _memoryviewslice): * memviewsliceobj = memview * p_src = &memviewsliceobj.from_slice # <<<<<<<<<<<<<< * else: * slice_copy(memview, &src) */ __pyx_v_p_src = (&__pyx_v_memviewsliceobj->from_slice); /* "View.MemoryView":726 * assert memview.view.ndim > 0 * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * memviewsliceobj = memview * p_src = &memviewsliceobj.from_slice */ goto __pyx_L3; } /* "View.MemoryView":730 * p_src = &memviewsliceobj.from_slice * else: * slice_copy(memview, &src) # <<<<<<<<<<<<<< * p_src = &src * */ /*else*/ { __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_src)); /* "View.MemoryView":731 * else: * slice_copy(memview, &src) * p_src = &src # <<<<<<<<<<<<<< * * */ __pyx_v_p_src = (&__pyx_v_src); } __pyx_L3:; /* "View.MemoryView":737 * * * dst.memview = p_src.memview # <<<<<<<<<<<<<< * dst.data = p_src.data * */ __pyx_t_4 = __pyx_v_p_src->memview; __pyx_v_dst.memview = __pyx_t_4; /* "View.MemoryView":738 * * dst.memview = p_src.memview * dst.data = p_src.data # <<<<<<<<<<<<<< * * */ __pyx_t_5 = __pyx_v_p_src->data; __pyx_v_dst.data = __pyx_t_5; /* "View.MemoryView":743 * * * cdef __Pyx_memviewslice *p_dst = &dst # <<<<<<<<<<<<<< * cdef int *p_suboffset_dim = &suboffset_dim * cdef Py_ssize_t start, stop, step */ __pyx_v_p_dst = (&__pyx_v_dst); /* "View.MemoryView":744 * * cdef __Pyx_memviewslice *p_dst = &dst * cdef int *p_suboffset_dim = &suboffset_dim # <<<<<<<<<<<<<< * cdef Py_ssize_t start, stop, step * cdef bint have_start, have_stop, have_step */ __pyx_v_p_suboffset_dim = (&__pyx_v_suboffset_dim); /* "View.MemoryView":748 * cdef bint have_start, have_stop, have_step * * for dim, index in enumerate(indices): # <<<<<<<<<<<<<< * if PyIndex_Check(index): * slice_memviewslice( */ __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_v_indices)) || PyTuple_CheckExact(__pyx_v_indices)) { __pyx_t_3 = __pyx_v_indices; __Pyx_INCREF(__pyx_t_3); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 748, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_8)) { if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_9 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(2, 748, __pyx_L1_error) #else __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); #endif } else { if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(2, 748, __pyx_L1_error) #else __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); #endif } } else { __pyx_t_9 = __pyx_t_8(__pyx_t_3); if (unlikely(!__pyx_t_9)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(2, 748, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_9); } __Pyx_XDECREF_SET(__pyx_v_index, __pyx_t_9); __pyx_t_9 = 0; __pyx_v_dim = __pyx_t_6; __pyx_t_6 = (__pyx_t_6 + 1); /* "View.MemoryView":749 * * for dim, index in enumerate(indices): * if PyIndex_Check(index): # <<<<<<<<<<<<<< * slice_memviewslice( * p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim], */ __pyx_t_2 = (PyIndex_Check(__pyx_v_index) != 0); if (__pyx_t_2) { /* "View.MemoryView":753 * p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim], * dim, new_ndim, p_suboffset_dim, * index, 0, 0, # start, stop, step # <<<<<<<<<<<<<< * 0, 0, 0, # have_{start,stop,step} * False) */ __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_index); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 753, __pyx_L1_error) /* "View.MemoryView":750 * for dim, index in enumerate(indices): * if PyIndex_Check(index): * slice_memviewslice( # <<<<<<<<<<<<<< * p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim], * dim, new_ndim, p_suboffset_dim, */ __pyx_t_11 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_t_10, 0, 0, 0, 0, 0, 0); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 750, __pyx_L1_error) /* "View.MemoryView":749 * * for dim, index in enumerate(indices): * if PyIndex_Check(index): # <<<<<<<<<<<<<< * slice_memviewslice( * p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim], */ goto __pyx_L6; } /* "View.MemoryView":756 * 0, 0, 0, # have_{start,stop,step} * False) * elif index is None: # <<<<<<<<<<<<<< * p_dst.shape[new_ndim] = 1 * p_dst.strides[new_ndim] = 0 */ __pyx_t_2 = (__pyx_v_index == Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { /* "View.MemoryView":757 * False) * elif index is None: * p_dst.shape[new_ndim] = 1 # <<<<<<<<<<<<<< * p_dst.strides[new_ndim] = 0 * p_dst.suboffsets[new_ndim] = -1 */ (__pyx_v_p_dst->shape[__pyx_v_new_ndim]) = 1; /* "View.MemoryView":758 * elif index is None: * p_dst.shape[new_ndim] = 1 * p_dst.strides[new_ndim] = 0 # <<<<<<<<<<<<<< * p_dst.suboffsets[new_ndim] = -1 * new_ndim += 1 */ (__pyx_v_p_dst->strides[__pyx_v_new_ndim]) = 0; /* "View.MemoryView":759 * p_dst.shape[new_ndim] = 1 * p_dst.strides[new_ndim] = 0 * p_dst.suboffsets[new_ndim] = -1 # <<<<<<<<<<<<<< * new_ndim += 1 * else: */ (__pyx_v_p_dst->suboffsets[__pyx_v_new_ndim]) = -1L; /* "View.MemoryView":760 * p_dst.strides[new_ndim] = 0 * p_dst.suboffsets[new_ndim] = -1 * new_ndim += 1 # <<<<<<<<<<<<<< * else: * start = index.start or 0 */ __pyx_v_new_ndim = (__pyx_v_new_ndim + 1); /* "View.MemoryView":756 * 0, 0, 0, # have_{start,stop,step} * False) * elif index is None: # <<<<<<<<<<<<<< * p_dst.shape[new_ndim] = 1 * p_dst.strides[new_ndim] = 0 */ goto __pyx_L6; } /* "View.MemoryView":762 * new_ndim += 1 * else: * start = index.start or 0 # <<<<<<<<<<<<<< * stop = index.stop or 0 * step = index.step or 0 */ /*else*/ { __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_start); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 762, __pyx_L1_error) if (!__pyx_t_1) { __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 762, __pyx_L1_error) __pyx_t_10 = __pyx_t_12; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L7_bool_binop_done; } __pyx_t_10 = 0; __pyx_L7_bool_binop_done:; __pyx_v_start = __pyx_t_10; /* "View.MemoryView":763 * else: * start = index.start or 0 * stop = index.stop or 0 # <<<<<<<<<<<<<< * step = index.step or 0 * */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 763, __pyx_L1_error) if (!__pyx_t_1) { __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 763, __pyx_L1_error) __pyx_t_10 = __pyx_t_12; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L9_bool_binop_done; } __pyx_t_10 = 0; __pyx_L9_bool_binop_done:; __pyx_v_stop = __pyx_t_10; /* "View.MemoryView":764 * start = index.start or 0 * stop = index.stop or 0 * step = index.step or 0 # <<<<<<<<<<<<<< * * have_start = index.start is not None */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 764, __pyx_L1_error) if (!__pyx_t_1) { __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 764, __pyx_L1_error) __pyx_t_10 = __pyx_t_12; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L11_bool_binop_done; } __pyx_t_10 = 0; __pyx_L11_bool_binop_done:; __pyx_v_step = __pyx_t_10; /* "View.MemoryView":766 * step = index.step or 0 * * have_start = index.start is not None # <<<<<<<<<<<<<< * have_stop = index.stop is not None * have_step = index.step is not None */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_start); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = (__pyx_t_9 != Py_None); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_have_start = __pyx_t_1; /* "View.MemoryView":767 * * have_start = index.start is not None * have_stop = index.stop is not None # <<<<<<<<<<<<<< * have_step = index.step is not None * */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = (__pyx_t_9 != Py_None); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_have_stop = __pyx_t_1; /* "View.MemoryView":768 * have_start = index.start is not None * have_stop = index.stop is not None * have_step = index.step is not None # <<<<<<<<<<<<<< * * slice_memviewslice( */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 768, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = (__pyx_t_9 != Py_None); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_have_step = __pyx_t_1; /* "View.MemoryView":770 * have_step = index.step is not None * * slice_memviewslice( # <<<<<<<<<<<<<< * p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim], * dim, new_ndim, p_suboffset_dim, */ __pyx_t_11 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_v_start, __pyx_v_stop, __pyx_v_step, __pyx_v_have_start, __pyx_v_have_stop, __pyx_v_have_step, 1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 770, __pyx_L1_error) /* "View.MemoryView":776 * have_start, have_stop, have_step, * True) * new_ndim += 1 # <<<<<<<<<<<<<< * * if isinstance(memview, _memoryviewslice): */ __pyx_v_new_ndim = (__pyx_v_new_ndim + 1); } __pyx_L6:; /* "View.MemoryView":748 * cdef bint have_start, have_stop, have_step * * for dim, index in enumerate(indices): # <<<<<<<<<<<<<< * if PyIndex_Check(index): * slice_memviewslice( */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":778 * new_ndim += 1 * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * return memoryview_fromslice(dst, new_ndim, * memviewsliceobj.to_object_func, */ __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "View.MemoryView":779 * * if isinstance(memview, _memoryviewslice): * return memoryview_fromslice(dst, new_ndim, # <<<<<<<<<<<<<< * memviewsliceobj.to_object_func, * memviewsliceobj.to_dtype_func, */ __Pyx_XDECREF(((PyObject *)__pyx_r)); /* "View.MemoryView":780 * if isinstance(memview, _memoryviewslice): * return memoryview_fromslice(dst, new_ndim, * memviewsliceobj.to_object_func, # <<<<<<<<<<<<<< * memviewsliceobj.to_dtype_func, * memview.dtype_is_object) */ if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError("memviewsliceobj"); __PYX_ERR(2, 780, __pyx_L1_error) } /* "View.MemoryView":781 * return memoryview_fromslice(dst, new_ndim, * memviewsliceobj.to_object_func, * memviewsliceobj.to_dtype_func, # <<<<<<<<<<<<<< * memview.dtype_is_object) * else: */ if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError("memviewsliceobj"); __PYX_ERR(2, 781, __pyx_L1_error) } /* "View.MemoryView":779 * * if isinstance(memview, _memoryviewslice): * return memoryview_fromslice(dst, new_ndim, # <<<<<<<<<<<<<< * memviewsliceobj.to_object_func, * memviewsliceobj.to_dtype_func, */ __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, __pyx_v_memviewsliceobj->to_object_func, __pyx_v_memviewsliceobj->to_dtype_func, __pyx_v_memview->dtype_is_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_memoryview_type))))) __PYX_ERR(2, 779, __pyx_L1_error) __pyx_r = ((struct __pyx_memoryview_obj *)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L0; /* "View.MemoryView":778 * new_ndim += 1 * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * return memoryview_fromslice(dst, new_ndim, * memviewsliceobj.to_object_func, */ } /* "View.MemoryView":784 * memview.dtype_is_object) * else: * return memoryview_fromslice(dst, new_ndim, NULL, NULL, # <<<<<<<<<<<<<< * memview.dtype_is_object) * */ /*else*/ { __Pyx_XDECREF(((PyObject *)__pyx_r)); /* "View.MemoryView":785 * else: * return memoryview_fromslice(dst, new_ndim, NULL, NULL, * memview.dtype_is_object) # <<<<<<<<<<<<<< * * */ __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, NULL, NULL, __pyx_v_memview->dtype_is_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "View.MemoryView":784 * memview.dtype_is_object) * else: * return memoryview_fromslice(dst, new_ndim, NULL, NULL, # <<<<<<<<<<<<<< * memview.dtype_is_object) * */ if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_memoryview_type))))) __PYX_ERR(2, 784, __pyx_L1_error) __pyx_r = ((struct __pyx_memoryview_obj *)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L0; } /* "View.MemoryView":712 * * @cname('__pyx_memview_slice') * cdef memoryview memview_slice(memoryview memview, object indices): # <<<<<<<<<<<<<< * cdef int new_ndim = 0, suboffset_dim = -1, dim * cdef bint negative_step */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("View.MemoryView.memview_slice", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_memviewsliceobj); __Pyx_XDECREF(__pyx_v_index); __Pyx_XGIVEREF((PyObject *)__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":809 * * @cname('__pyx_memoryview_slice_memviewslice') * cdef int slice_memviewslice( # <<<<<<<<<<<<<< * __Pyx_memviewslice *dst, * Py_ssize_t shape, Py_ssize_t stride, Py_ssize_t suboffset, */ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, Py_ssize_t __pyx_v_shape, Py_ssize_t __pyx_v_stride, Py_ssize_t __pyx_v_suboffset, int __pyx_v_dim, int __pyx_v_new_ndim, int *__pyx_v_suboffset_dim, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_stop, Py_ssize_t __pyx_v_step, int __pyx_v_have_start, int __pyx_v_have_stop, int __pyx_v_have_step, int __pyx_v_is_slice) { Py_ssize_t __pyx_v_new_shape; int __pyx_v_negative_step; int __pyx_r; int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; /* "View.MemoryView":829 * cdef bint negative_step * * if not is_slice: # <<<<<<<<<<<<<< * * if start < 0: */ __pyx_t_1 = ((!(__pyx_v_is_slice != 0)) != 0); if (__pyx_t_1) { /* "View.MemoryView":831 * if not is_slice: * * if start < 0: # <<<<<<<<<<<<<< * start += shape * if not 0 <= start < shape: */ __pyx_t_1 = ((__pyx_v_start < 0) != 0); if (__pyx_t_1) { /* "View.MemoryView":832 * * if start < 0: * start += shape # <<<<<<<<<<<<<< * if not 0 <= start < shape: * _err_dim(IndexError, "Index out of bounds (axis %d)", dim) */ __pyx_v_start = (__pyx_v_start + __pyx_v_shape); /* "View.MemoryView":831 * if not is_slice: * * if start < 0: # <<<<<<<<<<<<<< * start += shape * if not 0 <= start < shape: */ } /* "View.MemoryView":833 * if start < 0: * start += shape * if not 0 <= start < shape: # <<<<<<<<<<<<<< * _err_dim(IndexError, "Index out of bounds (axis %d)", dim) * else: */ __pyx_t_1 = (0 <= __pyx_v_start); if (__pyx_t_1) { __pyx_t_1 = (__pyx_v_start < __pyx_v_shape); } __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { /* "View.MemoryView":834 * start += shape * if not 0 <= start < shape: * _err_dim(IndexError, "Index out of bounds (axis %d)", dim) # <<<<<<<<<<<<<< * else: * */ __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_IndexError, ((char *)"Index out of bounds (axis %d)"), __pyx_v_dim); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 834, __pyx_L1_error) /* "View.MemoryView":833 * if start < 0: * start += shape * if not 0 <= start < shape: # <<<<<<<<<<<<<< * _err_dim(IndexError, "Index out of bounds (axis %d)", dim) * else: */ } /* "View.MemoryView":829 * cdef bint negative_step * * if not is_slice: # <<<<<<<<<<<<<< * * if start < 0: */ goto __pyx_L3; } /* "View.MemoryView":837 * else: * * negative_step = have_step != 0 and step < 0 # <<<<<<<<<<<<<< * * if have_step and step == 0: */ /*else*/ { __pyx_t_1 = ((__pyx_v_have_step != 0) != 0); if (__pyx_t_1) { } else { __pyx_t_2 = __pyx_t_1; goto __pyx_L6_bool_binop_done; } __pyx_t_1 = ((__pyx_v_step < 0) != 0); __pyx_t_2 = __pyx_t_1; __pyx_L6_bool_binop_done:; __pyx_v_negative_step = __pyx_t_2; /* "View.MemoryView":839 * negative_step = have_step != 0 and step < 0 * * if have_step and step == 0: # <<<<<<<<<<<<<< * _err_dim(ValueError, "Step may not be zero (axis %d)", dim) * */ __pyx_t_1 = (__pyx_v_have_step != 0); if (__pyx_t_1) { } else { __pyx_t_2 = __pyx_t_1; goto __pyx_L9_bool_binop_done; } __pyx_t_1 = ((__pyx_v_step == 0) != 0); __pyx_t_2 = __pyx_t_1; __pyx_L9_bool_binop_done:; if (__pyx_t_2) { /* "View.MemoryView":840 * * if have_step and step == 0: * _err_dim(ValueError, "Step may not be zero (axis %d)", dim) # <<<<<<<<<<<<<< * * */ __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_ValueError, ((char *)"Step may not be zero (axis %d)"), __pyx_v_dim); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 840, __pyx_L1_error) /* "View.MemoryView":839 * negative_step = have_step != 0 and step < 0 * * if have_step and step == 0: # <<<<<<<<<<<<<< * _err_dim(ValueError, "Step may not be zero (axis %d)", dim) * */ } /* "View.MemoryView":843 * * * if have_start: # <<<<<<<<<<<<<< * if start < 0: * start += shape */ __pyx_t_2 = (__pyx_v_have_start != 0); if (__pyx_t_2) { /* "View.MemoryView":844 * * if have_start: * if start < 0: # <<<<<<<<<<<<<< * start += shape * if start < 0: */ __pyx_t_2 = ((__pyx_v_start < 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":845 * if have_start: * if start < 0: * start += shape # <<<<<<<<<<<<<< * if start < 0: * start = 0 */ __pyx_v_start = (__pyx_v_start + __pyx_v_shape); /* "View.MemoryView":846 * if start < 0: * start += shape * if start < 0: # <<<<<<<<<<<<<< * start = 0 * elif start >= shape: */ __pyx_t_2 = ((__pyx_v_start < 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":847 * start += shape * if start < 0: * start = 0 # <<<<<<<<<<<<<< * elif start >= shape: * if negative_step: */ __pyx_v_start = 0; /* "View.MemoryView":846 * if start < 0: * start += shape * if start < 0: # <<<<<<<<<<<<<< * start = 0 * elif start >= shape: */ } /* "View.MemoryView":844 * * if have_start: * if start < 0: # <<<<<<<<<<<<<< * start += shape * if start < 0: */ goto __pyx_L12; } /* "View.MemoryView":848 * if start < 0: * start = 0 * elif start >= shape: # <<<<<<<<<<<<<< * if negative_step: * start = shape - 1 */ __pyx_t_2 = ((__pyx_v_start >= __pyx_v_shape) != 0); if (__pyx_t_2) { /* "View.MemoryView":849 * start = 0 * elif start >= shape: * if negative_step: # <<<<<<<<<<<<<< * start = shape - 1 * else: */ __pyx_t_2 = (__pyx_v_negative_step != 0); if (__pyx_t_2) { /* "View.MemoryView":850 * elif start >= shape: * if negative_step: * start = shape - 1 # <<<<<<<<<<<<<< * else: * start = shape */ __pyx_v_start = (__pyx_v_shape - 1); /* "View.MemoryView":849 * start = 0 * elif start >= shape: * if negative_step: # <<<<<<<<<<<<<< * start = shape - 1 * else: */ goto __pyx_L14; } /* "View.MemoryView":852 * start = shape - 1 * else: * start = shape # <<<<<<<<<<<<<< * else: * if negative_step: */ /*else*/ { __pyx_v_start = __pyx_v_shape; } __pyx_L14:; /* "View.MemoryView":848 * if start < 0: * start = 0 * elif start >= shape: # <<<<<<<<<<<<<< * if negative_step: * start = shape - 1 */ } __pyx_L12:; /* "View.MemoryView":843 * * * if have_start: # <<<<<<<<<<<<<< * if start < 0: * start += shape */ goto __pyx_L11; } /* "View.MemoryView":854 * start = shape * else: * if negative_step: # <<<<<<<<<<<<<< * start = shape - 1 * else: */ /*else*/ { __pyx_t_2 = (__pyx_v_negative_step != 0); if (__pyx_t_2) { /* "View.MemoryView":855 * else: * if negative_step: * start = shape - 1 # <<<<<<<<<<<<<< * else: * start = 0 */ __pyx_v_start = (__pyx_v_shape - 1); /* "View.MemoryView":854 * start = shape * else: * if negative_step: # <<<<<<<<<<<<<< * start = shape - 1 * else: */ goto __pyx_L15; } /* "View.MemoryView":857 * start = shape - 1 * else: * start = 0 # <<<<<<<<<<<<<< * * if have_stop: */ /*else*/ { __pyx_v_start = 0; } __pyx_L15:; } __pyx_L11:; /* "View.MemoryView":859 * start = 0 * * if have_stop: # <<<<<<<<<<<<<< * if stop < 0: * stop += shape */ __pyx_t_2 = (__pyx_v_have_stop != 0); if (__pyx_t_2) { /* "View.MemoryView":860 * * if have_stop: * if stop < 0: # <<<<<<<<<<<<<< * stop += shape * if stop < 0: */ __pyx_t_2 = ((__pyx_v_stop < 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":861 * if have_stop: * if stop < 0: * stop += shape # <<<<<<<<<<<<<< * if stop < 0: * stop = 0 */ __pyx_v_stop = (__pyx_v_stop + __pyx_v_shape); /* "View.MemoryView":862 * if stop < 0: * stop += shape * if stop < 0: # <<<<<<<<<<<<<< * stop = 0 * elif stop > shape: */ __pyx_t_2 = ((__pyx_v_stop < 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":863 * stop += shape * if stop < 0: * stop = 0 # <<<<<<<<<<<<<< * elif stop > shape: * stop = shape */ __pyx_v_stop = 0; /* "View.MemoryView":862 * if stop < 0: * stop += shape * if stop < 0: # <<<<<<<<<<<<<< * stop = 0 * elif stop > shape: */ } /* "View.MemoryView":860 * * if have_stop: * if stop < 0: # <<<<<<<<<<<<<< * stop += shape * if stop < 0: */ goto __pyx_L17; } /* "View.MemoryView":864 * if stop < 0: * stop = 0 * elif stop > shape: # <<<<<<<<<<<<<< * stop = shape * else: */ __pyx_t_2 = ((__pyx_v_stop > __pyx_v_shape) != 0); if (__pyx_t_2) { /* "View.MemoryView":865 * stop = 0 * elif stop > shape: * stop = shape # <<<<<<<<<<<<<< * else: * if negative_step: */ __pyx_v_stop = __pyx_v_shape; /* "View.MemoryView":864 * if stop < 0: * stop = 0 * elif stop > shape: # <<<<<<<<<<<<<< * stop = shape * else: */ } __pyx_L17:; /* "View.MemoryView":859 * start = 0 * * if have_stop: # <<<<<<<<<<<<<< * if stop < 0: * stop += shape */ goto __pyx_L16; } /* "View.MemoryView":867 * stop = shape * else: * if negative_step: # <<<<<<<<<<<<<< * stop = -1 * else: */ /*else*/ { __pyx_t_2 = (__pyx_v_negative_step != 0); if (__pyx_t_2) { /* "View.MemoryView":868 * else: * if negative_step: * stop = -1 # <<<<<<<<<<<<<< * else: * stop = shape */ __pyx_v_stop = -1L; /* "View.MemoryView":867 * stop = shape * else: * if negative_step: # <<<<<<<<<<<<<< * stop = -1 * else: */ goto __pyx_L19; } /* "View.MemoryView":870 * stop = -1 * else: * stop = shape # <<<<<<<<<<<<<< * * if not have_step: */ /*else*/ { __pyx_v_stop = __pyx_v_shape; } __pyx_L19:; } __pyx_L16:; /* "View.MemoryView":872 * stop = shape * * if not have_step: # <<<<<<<<<<<<<< * step = 1 * */ __pyx_t_2 = ((!(__pyx_v_have_step != 0)) != 0); if (__pyx_t_2) { /* "View.MemoryView":873 * * if not have_step: * step = 1 # <<<<<<<<<<<<<< * * */ __pyx_v_step = 1; /* "View.MemoryView":872 * stop = shape * * if not have_step: # <<<<<<<<<<<<<< * step = 1 * */ } /* "View.MemoryView":877 * * with cython.cdivision(True): * new_shape = (stop - start) // step # <<<<<<<<<<<<<< * * if (stop - start) - step * new_shape: */ __pyx_v_new_shape = ((__pyx_v_stop - __pyx_v_start) / __pyx_v_step); /* "View.MemoryView":879 * new_shape = (stop - start) // step * * if (stop - start) - step * new_shape: # <<<<<<<<<<<<<< * new_shape += 1 * */ __pyx_t_2 = (((__pyx_v_stop - __pyx_v_start) - (__pyx_v_step * __pyx_v_new_shape)) != 0); if (__pyx_t_2) { /* "View.MemoryView":880 * * if (stop - start) - step * new_shape: * new_shape += 1 # <<<<<<<<<<<<<< * * if new_shape < 0: */ __pyx_v_new_shape = (__pyx_v_new_shape + 1); /* "View.MemoryView":879 * new_shape = (stop - start) // step * * if (stop - start) - step * new_shape: # <<<<<<<<<<<<<< * new_shape += 1 * */ } /* "View.MemoryView":882 * new_shape += 1 * * if new_shape < 0: # <<<<<<<<<<<<<< * new_shape = 0 * */ __pyx_t_2 = ((__pyx_v_new_shape < 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":883 * * if new_shape < 0: * new_shape = 0 # <<<<<<<<<<<<<< * * */ __pyx_v_new_shape = 0; /* "View.MemoryView":882 * new_shape += 1 * * if new_shape < 0: # <<<<<<<<<<<<<< * new_shape = 0 * */ } /* "View.MemoryView":886 * * * dst.strides[new_ndim] = stride * step # <<<<<<<<<<<<<< * dst.shape[new_ndim] = new_shape * dst.suboffsets[new_ndim] = suboffset */ (__pyx_v_dst->strides[__pyx_v_new_ndim]) = (__pyx_v_stride * __pyx_v_step); /* "View.MemoryView":887 * * dst.strides[new_ndim] = stride * step * dst.shape[new_ndim] = new_shape # <<<<<<<<<<<<<< * dst.suboffsets[new_ndim] = suboffset * */ (__pyx_v_dst->shape[__pyx_v_new_ndim]) = __pyx_v_new_shape; /* "View.MemoryView":888 * dst.strides[new_ndim] = stride * step * dst.shape[new_ndim] = new_shape * dst.suboffsets[new_ndim] = suboffset # <<<<<<<<<<<<<< * * */ (__pyx_v_dst->suboffsets[__pyx_v_new_ndim]) = __pyx_v_suboffset; } __pyx_L3:; /* "View.MemoryView":891 * * * if suboffset_dim[0] < 0: # <<<<<<<<<<<<<< * dst.data += start * stride * else: */ __pyx_t_2 = (((__pyx_v_suboffset_dim[0]) < 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":892 * * if suboffset_dim[0] < 0: * dst.data += start * stride # <<<<<<<<<<<<<< * else: * dst.suboffsets[suboffset_dim[0]] += start * stride */ __pyx_v_dst->data = (__pyx_v_dst->data + (__pyx_v_start * __pyx_v_stride)); /* "View.MemoryView":891 * * * if suboffset_dim[0] < 0: # <<<<<<<<<<<<<< * dst.data += start * stride * else: */ goto __pyx_L23; } /* "View.MemoryView":894 * dst.data += start * stride * else: * dst.suboffsets[suboffset_dim[0]] += start * stride # <<<<<<<<<<<<<< * * if suboffset >= 0: */ /*else*/ { __pyx_t_3 = (__pyx_v_suboffset_dim[0]); (__pyx_v_dst->suboffsets[__pyx_t_3]) = ((__pyx_v_dst->suboffsets[__pyx_t_3]) + (__pyx_v_start * __pyx_v_stride)); } __pyx_L23:; /* "View.MemoryView":896 * dst.suboffsets[suboffset_dim[0]] += start * stride * * if suboffset >= 0: # <<<<<<<<<<<<<< * if not is_slice: * if new_ndim == 0: */ __pyx_t_2 = ((__pyx_v_suboffset >= 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":897 * * if suboffset >= 0: * if not is_slice: # <<<<<<<<<<<<<< * if new_ndim == 0: * dst.data = ( dst.data)[0] + suboffset */ __pyx_t_2 = ((!(__pyx_v_is_slice != 0)) != 0); if (__pyx_t_2) { /* "View.MemoryView":898 * if suboffset >= 0: * if not is_slice: * if new_ndim == 0: # <<<<<<<<<<<<<< * dst.data = ( dst.data)[0] + suboffset * else: */ __pyx_t_2 = ((__pyx_v_new_ndim == 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":899 * if not is_slice: * if new_ndim == 0: * dst.data = ( dst.data)[0] + suboffset # <<<<<<<<<<<<<< * else: * _err_dim(IndexError, "All dimensions preceding dimension %d " */ __pyx_v_dst->data = ((((char **)__pyx_v_dst->data)[0]) + __pyx_v_suboffset); /* "View.MemoryView":898 * if suboffset >= 0: * if not is_slice: * if new_ndim == 0: # <<<<<<<<<<<<<< * dst.data = ( dst.data)[0] + suboffset * else: */ goto __pyx_L26; } /* "View.MemoryView":901 * dst.data = ( dst.data)[0] + suboffset * else: * _err_dim(IndexError, "All dimensions preceding dimension %d " # <<<<<<<<<<<<<< * "must be indexed and not sliced", dim) * else: */ /*else*/ { /* "View.MemoryView":902 * else: * _err_dim(IndexError, "All dimensions preceding dimension %d " * "must be indexed and not sliced", dim) # <<<<<<<<<<<<<< * else: * suboffset_dim[0] = new_ndim */ __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_IndexError, ((char *)"All dimensions preceding dimension %d must be indexed and not sliced"), __pyx_v_dim); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 901, __pyx_L1_error) } __pyx_L26:; /* "View.MemoryView":897 * * if suboffset >= 0: * if not is_slice: # <<<<<<<<<<<<<< * if new_ndim == 0: * dst.data = ( dst.data)[0] + suboffset */ goto __pyx_L25; } /* "View.MemoryView":904 * "must be indexed and not sliced", dim) * else: * suboffset_dim[0] = new_ndim # <<<<<<<<<<<<<< * * return 0 */ /*else*/ { (__pyx_v_suboffset_dim[0]) = __pyx_v_new_ndim; } __pyx_L25:; /* "View.MemoryView":896 * dst.suboffsets[suboffset_dim[0]] += start * stride * * if suboffset >= 0: # <<<<<<<<<<<<<< * if not is_slice: * if new_ndim == 0: */ } /* "View.MemoryView":906 * suboffset_dim[0] = new_ndim * * return 0 # <<<<<<<<<<<<<< * * */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":809 * * @cname('__pyx_memoryview_slice_memviewslice') * cdef int slice_memviewslice( # <<<<<<<<<<<<<< * __Pyx_memviewslice *dst, * Py_ssize_t shape, Py_ssize_t stride, Py_ssize_t suboffset, */ /* function exit code */ __pyx_L1_error:; { #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_AddTraceback("View.MemoryView.slice_memviewslice", __pyx_clineno, __pyx_lineno, __pyx_filename); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif } __pyx_r = -1; __pyx_L0:; return __pyx_r; } /* "View.MemoryView":912 * * @cname('__pyx_pybuffer_index') * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index, # <<<<<<<<<<<<<< * Py_ssize_t dim) except NULL: * cdef Py_ssize_t shape, stride, suboffset = -1 */ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, Py_ssize_t __pyx_v_index, Py_ssize_t __pyx_v_dim) { Py_ssize_t __pyx_v_shape; Py_ssize_t __pyx_v_stride; Py_ssize_t __pyx_v_suboffset; Py_ssize_t __pyx_v_itemsize; char *__pyx_v_resultp; char *__pyx_r; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("pybuffer_index", 0); /* "View.MemoryView":914 * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index, * Py_ssize_t dim) except NULL: * cdef Py_ssize_t shape, stride, suboffset = -1 # <<<<<<<<<<<<<< * cdef Py_ssize_t itemsize = view.itemsize * cdef char *resultp */ __pyx_v_suboffset = -1L; /* "View.MemoryView":915 * Py_ssize_t dim) except NULL: * cdef Py_ssize_t shape, stride, suboffset = -1 * cdef Py_ssize_t itemsize = view.itemsize # <<<<<<<<<<<<<< * cdef char *resultp * */ __pyx_t_1 = __pyx_v_view->itemsize; __pyx_v_itemsize = __pyx_t_1; /* "View.MemoryView":918 * cdef char *resultp * * if view.ndim == 0: # <<<<<<<<<<<<<< * shape = view.len / itemsize * stride = itemsize */ __pyx_t_2 = ((__pyx_v_view->ndim == 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":919 * * if view.ndim == 0: * shape = view.len / itemsize # <<<<<<<<<<<<<< * stride = itemsize * else: */ if (unlikely(__pyx_v_itemsize == 0)) { PyErr_SetString(PyExc_ZeroDivisionError, "integer division or modulo by zero"); __PYX_ERR(2, 919, __pyx_L1_error) } else if (sizeof(Py_ssize_t) == sizeof(long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_itemsize == (Py_ssize_t)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_view->len))) { PyErr_SetString(PyExc_OverflowError, "value too large to perform division"); __PYX_ERR(2, 919, __pyx_L1_error) } __pyx_v_shape = __Pyx_div_Py_ssize_t(__pyx_v_view->len, __pyx_v_itemsize); /* "View.MemoryView":920 * if view.ndim == 0: * shape = view.len / itemsize * stride = itemsize # <<<<<<<<<<<<<< * else: * shape = view.shape[dim] */ __pyx_v_stride = __pyx_v_itemsize; /* "View.MemoryView":918 * cdef char *resultp * * if view.ndim == 0: # <<<<<<<<<<<<<< * shape = view.len / itemsize * stride = itemsize */ goto __pyx_L3; } /* "View.MemoryView":922 * stride = itemsize * else: * shape = view.shape[dim] # <<<<<<<<<<<<<< * stride = view.strides[dim] * if view.suboffsets != NULL: */ /*else*/ { __pyx_v_shape = (__pyx_v_view->shape[__pyx_v_dim]); /* "View.MemoryView":923 * else: * shape = view.shape[dim] * stride = view.strides[dim] # <<<<<<<<<<<<<< * if view.suboffsets != NULL: * suboffset = view.suboffsets[dim] */ __pyx_v_stride = (__pyx_v_view->strides[__pyx_v_dim]); /* "View.MemoryView":924 * shape = view.shape[dim] * stride = view.strides[dim] * if view.suboffsets != NULL: # <<<<<<<<<<<<<< * suboffset = view.suboffsets[dim] * */ __pyx_t_2 = ((__pyx_v_view->suboffsets != NULL) != 0); if (__pyx_t_2) { /* "View.MemoryView":925 * stride = view.strides[dim] * if view.suboffsets != NULL: * suboffset = view.suboffsets[dim] # <<<<<<<<<<<<<< * * if index < 0: */ __pyx_v_suboffset = (__pyx_v_view->suboffsets[__pyx_v_dim]); /* "View.MemoryView":924 * shape = view.shape[dim] * stride = view.strides[dim] * if view.suboffsets != NULL: # <<<<<<<<<<<<<< * suboffset = view.suboffsets[dim] * */ } } __pyx_L3:; /* "View.MemoryView":927 * suboffset = view.suboffsets[dim] * * if index < 0: # <<<<<<<<<<<<<< * index += view.shape[dim] * if index < 0: */ __pyx_t_2 = ((__pyx_v_index < 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":928 * * if index < 0: * index += view.shape[dim] # <<<<<<<<<<<<<< * if index < 0: * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) */ __pyx_v_index = (__pyx_v_index + (__pyx_v_view->shape[__pyx_v_dim])); /* "View.MemoryView":929 * if index < 0: * index += view.shape[dim] * if index < 0: # <<<<<<<<<<<<<< * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) * */ __pyx_t_2 = ((__pyx_v_index < 0) != 0); if (unlikely(__pyx_t_2)) { /* "View.MemoryView":930 * index += view.shape[dim] * if index < 0: * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) # <<<<<<<<<<<<<< * * if index >= shape: */ __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_dim); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IndexError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(2, 930, __pyx_L1_error) /* "View.MemoryView":929 * if index < 0: * index += view.shape[dim] * if index < 0: # <<<<<<<<<<<<<< * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) * */ } /* "View.MemoryView":927 * suboffset = view.suboffsets[dim] * * if index < 0: # <<<<<<<<<<<<<< * index += view.shape[dim] * if index < 0: */ } /* "View.MemoryView":932 * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) * * if index >= shape: # <<<<<<<<<<<<<< * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) * */ __pyx_t_2 = ((__pyx_v_index >= __pyx_v_shape) != 0); if (unlikely(__pyx_t_2)) { /* "View.MemoryView":933 * * if index >= shape: * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) # <<<<<<<<<<<<<< * * resultp = bufp + index * stride */ __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_dim); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IndexError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(2, 933, __pyx_L1_error) /* "View.MemoryView":932 * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) * * if index >= shape: # <<<<<<<<<<<<<< * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) * */ } /* "View.MemoryView":935 * raise IndexError("Out of bounds on buffer access (axis %d)" % dim) * * resultp = bufp + index * stride # <<<<<<<<<<<<<< * if suboffset >= 0: * resultp = ( resultp)[0] + suboffset */ __pyx_v_resultp = (__pyx_v_bufp + (__pyx_v_index * __pyx_v_stride)); /* "View.MemoryView":936 * * resultp = bufp + index * stride * if suboffset >= 0: # <<<<<<<<<<<<<< * resultp = ( resultp)[0] + suboffset * */ __pyx_t_2 = ((__pyx_v_suboffset >= 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":937 * resultp = bufp + index * stride * if suboffset >= 0: * resultp = ( resultp)[0] + suboffset # <<<<<<<<<<<<<< * * return resultp */ __pyx_v_resultp = ((((char **)__pyx_v_resultp)[0]) + __pyx_v_suboffset); /* "View.MemoryView":936 * * resultp = bufp + index * stride * if suboffset >= 0: # <<<<<<<<<<<<<< * resultp = ( resultp)[0] + suboffset * */ } /* "View.MemoryView":939 * resultp = ( resultp)[0] + suboffset * * return resultp # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_resultp; goto __pyx_L0; /* "View.MemoryView":912 * * @cname('__pyx_pybuffer_index') * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index, # <<<<<<<<<<<<<< * Py_ssize_t dim) except NULL: * cdef Py_ssize_t shape, stride, suboffset = -1 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("View.MemoryView.pybuffer_index", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":945 * * @cname('__pyx_memslice_transpose') * cdef int transpose_memslice(__Pyx_memviewslice *memslice) nogil except 0: # <<<<<<<<<<<<<< * cdef int ndim = memslice.memview.view.ndim * */ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { int __pyx_v_ndim; Py_ssize_t *__pyx_v_shape; Py_ssize_t *__pyx_v_strides; int __pyx_v_i; int __pyx_v_j; int __pyx_r; int __pyx_t_1; Py_ssize_t *__pyx_t_2; long __pyx_t_3; long __pyx_t_4; Py_ssize_t __pyx_t_5; Py_ssize_t __pyx_t_6; int __pyx_t_7; int __pyx_t_8; int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; /* "View.MemoryView":946 * @cname('__pyx_memslice_transpose') * cdef int transpose_memslice(__Pyx_memviewslice *memslice) nogil except 0: * cdef int ndim = memslice.memview.view.ndim # <<<<<<<<<<<<<< * * cdef Py_ssize_t *shape = memslice.shape */ __pyx_t_1 = __pyx_v_memslice->memview->view.ndim; __pyx_v_ndim = __pyx_t_1; /* "View.MemoryView":948 * cdef int ndim = memslice.memview.view.ndim * * cdef Py_ssize_t *shape = memslice.shape # <<<<<<<<<<<<<< * cdef Py_ssize_t *strides = memslice.strides * */ __pyx_t_2 = __pyx_v_memslice->shape; __pyx_v_shape = __pyx_t_2; /* "View.MemoryView":949 * * cdef Py_ssize_t *shape = memslice.shape * cdef Py_ssize_t *strides = memslice.strides # <<<<<<<<<<<<<< * * */ __pyx_t_2 = __pyx_v_memslice->strides; __pyx_v_strides = __pyx_t_2; /* "View.MemoryView":953 * * cdef int i, j * for i in range(ndim / 2): # <<<<<<<<<<<<<< * j = ndim - 1 - i * strides[i], strides[j] = strides[j], strides[i] */ __pyx_t_3 = __Pyx_div_long(__pyx_v_ndim, 2); __pyx_t_4 = __pyx_t_3; for (__pyx_t_1 = 0; __pyx_t_1 < __pyx_t_4; __pyx_t_1+=1) { __pyx_v_i = __pyx_t_1; /* "View.MemoryView":954 * cdef int i, j * for i in range(ndim / 2): * j = ndim - 1 - i # <<<<<<<<<<<<<< * strides[i], strides[j] = strides[j], strides[i] * shape[i], shape[j] = shape[j], shape[i] */ __pyx_v_j = ((__pyx_v_ndim - 1) - __pyx_v_i); /* "View.MemoryView":955 * for i in range(ndim / 2): * j = ndim - 1 - i * strides[i], strides[j] = strides[j], strides[i] # <<<<<<<<<<<<<< * shape[i], shape[j] = shape[j], shape[i] * */ __pyx_t_5 = (__pyx_v_strides[__pyx_v_j]); __pyx_t_6 = (__pyx_v_strides[__pyx_v_i]); (__pyx_v_strides[__pyx_v_i]) = __pyx_t_5; (__pyx_v_strides[__pyx_v_j]) = __pyx_t_6; /* "View.MemoryView":956 * j = ndim - 1 - i * strides[i], strides[j] = strides[j], strides[i] * shape[i], shape[j] = shape[j], shape[i] # <<<<<<<<<<<<<< * * if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0: */ __pyx_t_6 = (__pyx_v_shape[__pyx_v_j]); __pyx_t_5 = (__pyx_v_shape[__pyx_v_i]); (__pyx_v_shape[__pyx_v_i]) = __pyx_t_6; (__pyx_v_shape[__pyx_v_j]) = __pyx_t_5; /* "View.MemoryView":958 * shape[i], shape[j] = shape[j], shape[i] * * if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0: # <<<<<<<<<<<<<< * _err(ValueError, "Cannot transpose memoryview with indirect dimensions") * */ __pyx_t_8 = (((__pyx_v_memslice->suboffsets[__pyx_v_i]) >= 0) != 0); if (!__pyx_t_8) { } else { __pyx_t_7 = __pyx_t_8; goto __pyx_L6_bool_binop_done; } __pyx_t_8 = (((__pyx_v_memslice->suboffsets[__pyx_v_j]) >= 0) != 0); __pyx_t_7 = __pyx_t_8; __pyx_L6_bool_binop_done:; if (__pyx_t_7) { /* "View.MemoryView":959 * * if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0: * _err(ValueError, "Cannot transpose memoryview with indirect dimensions") # <<<<<<<<<<<<<< * * return 1 */ __pyx_t_9 = __pyx_memoryview_err(__pyx_builtin_ValueError, ((char *)"Cannot transpose memoryview with indirect dimensions")); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(2, 959, __pyx_L1_error) /* "View.MemoryView":958 * shape[i], shape[j] = shape[j], shape[i] * * if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0: # <<<<<<<<<<<<<< * _err(ValueError, "Cannot transpose memoryview with indirect dimensions") * */ } } /* "View.MemoryView":961 * _err(ValueError, "Cannot transpose memoryview with indirect dimensions") * * return 1 # <<<<<<<<<<<<<< * * */ __pyx_r = 1; goto __pyx_L0; /* "View.MemoryView":945 * * @cname('__pyx_memslice_transpose') * cdef int transpose_memslice(__Pyx_memviewslice *memslice) nogil except 0: # <<<<<<<<<<<<<< * cdef int ndim = memslice.memview.view.ndim * */ /* function exit code */ __pyx_L1_error:; { #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_AddTraceback("View.MemoryView.transpose_memslice", __pyx_clineno, __pyx_lineno, __pyx_filename); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif } __pyx_r = 0; __pyx_L0:; return __pyx_r; } /* "View.MemoryView":978 * cdef int (*to_dtype_func)(char *, object) except 0 * * def __dealloc__(self): # <<<<<<<<<<<<<< * __PYX_XDEC_MEMVIEW(&self.from_slice, 1) * */ /* Python wrapper */ static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(struct __pyx_memoryviewslice_obj *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__", 0); /* "View.MemoryView":979 * * def __dealloc__(self): * __PYX_XDEC_MEMVIEW(&self.from_slice, 1) # <<<<<<<<<<<<<< * * cdef convert_item_to_object(self, char *itemp): */ __PYX_XDEC_MEMVIEW((&__pyx_v_self->from_slice), 1); /* "View.MemoryView":978 * cdef int (*to_dtype_func)(char *, object) except 0 * * def __dealloc__(self): # <<<<<<<<<<<<<< * __PYX_XDEC_MEMVIEW(&self.from_slice, 1) * */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "View.MemoryView":981 * __PYX_XDEC_MEMVIEW(&self.from_slice, 1) * * cdef convert_item_to_object(self, char *itemp): # <<<<<<<<<<<<<< * if self.to_object_func != NULL: * return self.to_object_func(itemp) */ static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("convert_item_to_object", 0); /* "View.MemoryView":982 * * cdef convert_item_to_object(self, char *itemp): * if self.to_object_func != NULL: # <<<<<<<<<<<<<< * return self.to_object_func(itemp) * else: */ __pyx_t_1 = ((__pyx_v_self->to_object_func != NULL) != 0); if (__pyx_t_1) { /* "View.MemoryView":983 * cdef convert_item_to_object(self, char *itemp): * if self.to_object_func != NULL: * return self.to_object_func(itemp) # <<<<<<<<<<<<<< * else: * return memoryview.convert_item_to_object(self, itemp) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_v_self->to_object_func(__pyx_v_itemp); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "View.MemoryView":982 * * cdef convert_item_to_object(self, char *itemp): * if self.to_object_func != NULL: # <<<<<<<<<<<<<< * return self.to_object_func(itemp) * else: */ } /* "View.MemoryView":985 * return self.to_object_func(itemp) * else: * return memoryview.convert_item_to_object(self, itemp) # <<<<<<<<<<<<<< * * cdef assign_item_from_object(self, char *itemp, object value): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_memoryview_convert_item_to_object(((struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_itemp); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; } /* "View.MemoryView":981 * __PYX_XDEC_MEMVIEW(&self.from_slice, 1) * * cdef convert_item_to_object(self, char *itemp): # <<<<<<<<<<<<<< * if self.to_object_func != NULL: * return self.to_object_func(itemp) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("View.MemoryView._memoryviewslice.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":987 * return memoryview.convert_item_to_object(self, itemp) * * cdef assign_item_from_object(self, char *itemp, object value): # <<<<<<<<<<<<<< * if self.to_dtype_func != NULL: * self.to_dtype_func(itemp, value) */ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("assign_item_from_object", 0); /* "View.MemoryView":988 * * cdef assign_item_from_object(self, char *itemp, object value): * if self.to_dtype_func != NULL: # <<<<<<<<<<<<<< * self.to_dtype_func(itemp, value) * else: */ __pyx_t_1 = ((__pyx_v_self->to_dtype_func != NULL) != 0); if (__pyx_t_1) { /* "View.MemoryView":989 * cdef assign_item_from_object(self, char *itemp, object value): * if self.to_dtype_func != NULL: * self.to_dtype_func(itemp, value) # <<<<<<<<<<<<<< * else: * memoryview.assign_item_from_object(self, itemp, value) */ __pyx_t_2 = __pyx_v_self->to_dtype_func(__pyx_v_itemp, __pyx_v_value); if (unlikely(__pyx_t_2 == ((int)0))) __PYX_ERR(2, 989, __pyx_L1_error) /* "View.MemoryView":988 * * cdef assign_item_from_object(self, char *itemp, object value): * if self.to_dtype_func != NULL: # <<<<<<<<<<<<<< * self.to_dtype_func(itemp, value) * else: */ goto __pyx_L3; } /* "View.MemoryView":991 * self.to_dtype_func(itemp, value) * else: * memoryview.assign_item_from_object(self, itemp, value) # <<<<<<<<<<<<<< * * @property */ /*else*/ { __pyx_t_3 = __pyx_memoryview_assign_item_from_object(((struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_itemp, __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_L3:; /* "View.MemoryView":987 * return memoryview.convert_item_to_object(self, itemp) * * cdef assign_item_from_object(self, char *itemp, object value): # <<<<<<<<<<<<<< * if self.to_dtype_func != NULL: * self.to_dtype_func(itemp, value) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView._memoryviewslice.assign_item_from_object", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":994 * * @property * def base(self): # <<<<<<<<<<<<<< * return self.from_object * */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(struct __pyx_memoryviewslice_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); /* "View.MemoryView":995 * @property * def base(self): * return self.from_object # <<<<<<<<<<<<<< * * __pyx_getbuffer = capsule( &__pyx_memoryview_getbuffer, "getbuffer(obj, view, flags)") */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->from_object); __pyx_r = __pyx_v_self->from_object; goto __pyx_L0; /* "View.MemoryView":994 * * @property * def base(self): # <<<<<<<<<<<<<< * return self.from_object * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf___pyx_memoryviewslice___reduce_cython__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__135, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView._memoryviewslice.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf___pyx_memoryviewslice_2__setstate_cython__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__136, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView._memoryviewslice.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":1001 * * @cname('__pyx_memoryview_fromslice') * cdef memoryview_fromslice(__Pyx_memviewslice memviewslice, # <<<<<<<<<<<<<< * int ndim, * object (*to_object_func)(char *), */ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewslice, int __pyx_v_ndim, PyObject *(*__pyx_v_to_object_func)(char *), int (*__pyx_v_to_dtype_func)(char *, PyObject *), int __pyx_v_dtype_is_object) { struct __pyx_memoryviewslice_obj *__pyx_v_result = 0; Py_ssize_t __pyx_v_suboffset; PyObject *__pyx_v_length = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_TypeInfo *__pyx_t_4; Py_buffer __pyx_t_5; Py_ssize_t *__pyx_t_6; Py_ssize_t *__pyx_t_7; Py_ssize_t *__pyx_t_8; Py_ssize_t __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("memoryview_fromslice", 0); /* "View.MemoryView":1009 * cdef _memoryviewslice result * * if memviewslice.memview == Py_None: # <<<<<<<<<<<<<< * return None * */ __pyx_t_1 = ((((PyObject *)__pyx_v_memviewslice.memview) == Py_None) != 0); if (__pyx_t_1) { /* "View.MemoryView":1010 * * if memviewslice.memview == Py_None: * return None # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "View.MemoryView":1009 * cdef _memoryviewslice result * * if memviewslice.memview == Py_None: # <<<<<<<<<<<<<< * return None * */ } /* "View.MemoryView":1015 * * * result = _memoryviewslice(None, 0, dtype_is_object) # <<<<<<<<<<<<<< * * result.from_slice = memviewslice */ __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyTuple_SET_ITEM(__pyx_t_3, 0, Py_None); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryviewslice_type), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_result = ((struct __pyx_memoryviewslice_obj *)__pyx_t_2); __pyx_t_2 = 0; /* "View.MemoryView":1017 * result = _memoryviewslice(None, 0, dtype_is_object) * * result.from_slice = memviewslice # <<<<<<<<<<<<<< * __PYX_INC_MEMVIEW(&memviewslice, 1) * */ __pyx_v_result->from_slice = __pyx_v_memviewslice; /* "View.MemoryView":1018 * * result.from_slice = memviewslice * __PYX_INC_MEMVIEW(&memviewslice, 1) # <<<<<<<<<<<<<< * * result.from_object = ( memviewslice.memview).base */ __PYX_INC_MEMVIEW((&__pyx_v_memviewslice), 1); /* "View.MemoryView":1020 * __PYX_INC_MEMVIEW(&memviewslice, 1) * * result.from_object = ( memviewslice.memview).base # <<<<<<<<<<<<<< * result.typeinfo = memviewslice.memview.typeinfo * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_memviewslice.memview), __pyx_n_s_base); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF(__pyx_v_result->from_object); __Pyx_DECREF(__pyx_v_result->from_object); __pyx_v_result->from_object = __pyx_t_2; __pyx_t_2 = 0; /* "View.MemoryView":1021 * * result.from_object = ( memviewslice.memview).base * result.typeinfo = memviewslice.memview.typeinfo # <<<<<<<<<<<<<< * * result.view = memviewslice.memview.view */ __pyx_t_4 = __pyx_v_memviewslice.memview->typeinfo; __pyx_v_result->__pyx_base.typeinfo = __pyx_t_4; /* "View.MemoryView":1023 * result.typeinfo = memviewslice.memview.typeinfo * * result.view = memviewslice.memview.view # <<<<<<<<<<<<<< * result.view.buf = memviewslice.data * result.view.ndim = ndim */ __pyx_t_5 = __pyx_v_memviewslice.memview->view; __pyx_v_result->__pyx_base.view = __pyx_t_5; /* "View.MemoryView":1024 * * result.view = memviewslice.memview.view * result.view.buf = memviewslice.data # <<<<<<<<<<<<<< * result.view.ndim = ndim * (<__pyx_buffer *> &result.view).obj = Py_None */ __pyx_v_result->__pyx_base.view.buf = ((void *)__pyx_v_memviewslice.data); /* "View.MemoryView":1025 * result.view = memviewslice.memview.view * result.view.buf = memviewslice.data * result.view.ndim = ndim # <<<<<<<<<<<<<< * (<__pyx_buffer *> &result.view).obj = Py_None * Py_INCREF(Py_None) */ __pyx_v_result->__pyx_base.view.ndim = __pyx_v_ndim; /* "View.MemoryView":1026 * result.view.buf = memviewslice.data * result.view.ndim = ndim * (<__pyx_buffer *> &result.view).obj = Py_None # <<<<<<<<<<<<<< * Py_INCREF(Py_None) * */ ((Py_buffer *)(&__pyx_v_result->__pyx_base.view))->obj = Py_None; /* "View.MemoryView":1027 * result.view.ndim = ndim * (<__pyx_buffer *> &result.view).obj = Py_None * Py_INCREF(Py_None) # <<<<<<<<<<<<<< * * if (memviewslice.memview).flags & PyBUF_WRITABLE: */ Py_INCREF(Py_None); /* "View.MemoryView":1029 * Py_INCREF(Py_None) * * if (memviewslice.memview).flags & PyBUF_WRITABLE: # <<<<<<<<<<<<<< * result.flags = PyBUF_RECORDS * else: */ __pyx_t_1 = ((((struct __pyx_memoryview_obj *)__pyx_v_memviewslice.memview)->flags & PyBUF_WRITABLE) != 0); if (__pyx_t_1) { /* "View.MemoryView":1030 * * if (memviewslice.memview).flags & PyBUF_WRITABLE: * result.flags = PyBUF_RECORDS # <<<<<<<<<<<<<< * else: * result.flags = PyBUF_RECORDS_RO */ __pyx_v_result->__pyx_base.flags = PyBUF_RECORDS; /* "View.MemoryView":1029 * Py_INCREF(Py_None) * * if (memviewslice.memview).flags & PyBUF_WRITABLE: # <<<<<<<<<<<<<< * result.flags = PyBUF_RECORDS * else: */ goto __pyx_L4; } /* "View.MemoryView":1032 * result.flags = PyBUF_RECORDS * else: * result.flags = PyBUF_RECORDS_RO # <<<<<<<<<<<<<< * * result.view.shape = result.from_slice.shape */ /*else*/ { __pyx_v_result->__pyx_base.flags = PyBUF_RECORDS_RO; } __pyx_L4:; /* "View.MemoryView":1034 * result.flags = PyBUF_RECORDS_RO * * result.view.shape = result.from_slice.shape # <<<<<<<<<<<<<< * result.view.strides = result.from_slice.strides * */ __pyx_v_result->__pyx_base.view.shape = ((Py_ssize_t *)__pyx_v_result->from_slice.shape); /* "View.MemoryView":1035 * * result.view.shape = result.from_slice.shape * result.view.strides = result.from_slice.strides # <<<<<<<<<<<<<< * * */ __pyx_v_result->__pyx_base.view.strides = ((Py_ssize_t *)__pyx_v_result->from_slice.strides); /* "View.MemoryView":1038 * * * result.view.suboffsets = NULL # <<<<<<<<<<<<<< * for suboffset in result.from_slice.suboffsets[:ndim]: * if suboffset >= 0: */ __pyx_v_result->__pyx_base.view.suboffsets = NULL; /* "View.MemoryView":1039 * * result.view.suboffsets = NULL * for suboffset in result.from_slice.suboffsets[:ndim]: # <<<<<<<<<<<<<< * if suboffset >= 0: * result.view.suboffsets = result.from_slice.suboffsets */ __pyx_t_7 = (__pyx_v_result->from_slice.suboffsets + __pyx_v_ndim); for (__pyx_t_8 = __pyx_v_result->from_slice.suboffsets; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) { __pyx_t_6 = __pyx_t_8; __pyx_v_suboffset = (__pyx_t_6[0]); /* "View.MemoryView":1040 * result.view.suboffsets = NULL * for suboffset in result.from_slice.suboffsets[:ndim]: * if suboffset >= 0: # <<<<<<<<<<<<<< * result.view.suboffsets = result.from_slice.suboffsets * break */ __pyx_t_1 = ((__pyx_v_suboffset >= 0) != 0); if (__pyx_t_1) { /* "View.MemoryView":1041 * for suboffset in result.from_slice.suboffsets[:ndim]: * if suboffset >= 0: * result.view.suboffsets = result.from_slice.suboffsets # <<<<<<<<<<<<<< * break * */ __pyx_v_result->__pyx_base.view.suboffsets = ((Py_ssize_t *)__pyx_v_result->from_slice.suboffsets); /* "View.MemoryView":1042 * if suboffset >= 0: * result.view.suboffsets = result.from_slice.suboffsets * break # <<<<<<<<<<<<<< * * result.view.len = result.view.itemsize */ goto __pyx_L6_break; /* "View.MemoryView":1040 * result.view.suboffsets = NULL * for suboffset in result.from_slice.suboffsets[:ndim]: * if suboffset >= 0: # <<<<<<<<<<<<<< * result.view.suboffsets = result.from_slice.suboffsets * break */ } } __pyx_L6_break:; /* "View.MemoryView":1044 * break * * result.view.len = result.view.itemsize # <<<<<<<<<<<<<< * for length in result.view.shape[:ndim]: * result.view.len *= length */ __pyx_t_9 = __pyx_v_result->__pyx_base.view.itemsize; __pyx_v_result->__pyx_base.view.len = __pyx_t_9; /* "View.MemoryView":1045 * * result.view.len = result.view.itemsize * for length in result.view.shape[:ndim]: # <<<<<<<<<<<<<< * result.view.len *= length * */ __pyx_t_7 = (__pyx_v_result->__pyx_base.view.shape + __pyx_v_ndim); for (__pyx_t_8 = __pyx_v_result->__pyx_base.view.shape; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) { __pyx_t_6 = __pyx_t_8; __pyx_t_2 = PyInt_FromSsize_t((__pyx_t_6[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_2); __pyx_t_2 = 0; /* "View.MemoryView":1046 * result.view.len = result.view.itemsize * for length in result.view.shape[:ndim]: * result.view.len *= length # <<<<<<<<<<<<<< * * result.to_object_func = to_object_func */ __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_result->__pyx_base.view.len); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyNumber_InPlaceMultiply(__pyx_t_2, __pyx_v_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 1046, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_result->__pyx_base.view.len = __pyx_t_9; } /* "View.MemoryView":1048 * result.view.len *= length * * result.to_object_func = to_object_func # <<<<<<<<<<<<<< * result.to_dtype_func = to_dtype_func * */ __pyx_v_result->to_object_func = __pyx_v_to_object_func; /* "View.MemoryView":1049 * * result.to_object_func = to_object_func * result.to_dtype_func = to_dtype_func # <<<<<<<<<<<<<< * * return result */ __pyx_v_result->to_dtype_func = __pyx_v_to_dtype_func; /* "View.MemoryView":1051 * result.to_dtype_func = to_dtype_func * * return result # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_get_slice_from_memoryview') */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_result)); __pyx_r = ((PyObject *)__pyx_v_result); goto __pyx_L0; /* "View.MemoryView":1001 * * @cname('__pyx_memoryview_fromslice') * cdef memoryview_fromslice(__Pyx_memviewslice memviewslice, # <<<<<<<<<<<<<< * int ndim, * object (*to_object_func)(char *), */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.memoryview_fromslice", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_result); __Pyx_XDECREF(__pyx_v_length); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":1054 * * @cname('__pyx_memoryview_get_slice_from_memoryview') * cdef __Pyx_memviewslice *get_slice_from_memview(memoryview memview, # <<<<<<<<<<<<<< * __Pyx_memviewslice *mslice) except NULL: * cdef _memoryviewslice obj */ static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_mslice) { struct __pyx_memoryviewslice_obj *__pyx_v_obj = 0; __Pyx_memviewslice *__pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_slice_from_memview", 0); /* "View.MemoryView":1057 * __Pyx_memviewslice *mslice) except NULL: * cdef _memoryviewslice obj * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * obj = memview * return &obj.from_slice */ __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "View.MemoryView":1058 * cdef _memoryviewslice obj * if isinstance(memview, _memoryviewslice): * obj = memview # <<<<<<<<<<<<<< * return &obj.from_slice * else: */ if (!(likely(((((PyObject *)__pyx_v_memview)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type))))) __PYX_ERR(2, 1058, __pyx_L1_error) __pyx_t_3 = ((PyObject *)__pyx_v_memview); __Pyx_INCREF(__pyx_t_3); __pyx_v_obj = ((struct __pyx_memoryviewslice_obj *)__pyx_t_3); __pyx_t_3 = 0; /* "View.MemoryView":1059 * if isinstance(memview, _memoryviewslice): * obj = memview * return &obj.from_slice # <<<<<<<<<<<<<< * else: * slice_copy(memview, mslice) */ __pyx_r = (&__pyx_v_obj->from_slice); goto __pyx_L0; /* "View.MemoryView":1057 * __Pyx_memviewslice *mslice) except NULL: * cdef _memoryviewslice obj * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * obj = memview * return &obj.from_slice */ } /* "View.MemoryView":1061 * return &obj.from_slice * else: * slice_copy(memview, mslice) # <<<<<<<<<<<<<< * return mslice * */ /*else*/ { __pyx_memoryview_slice_copy(__pyx_v_memview, __pyx_v_mslice); /* "View.MemoryView":1062 * else: * slice_copy(memview, mslice) * return mslice # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_slice_copy') */ __pyx_r = __pyx_v_mslice; goto __pyx_L0; } /* "View.MemoryView":1054 * * @cname('__pyx_memoryview_get_slice_from_memoryview') * cdef __Pyx_memviewslice *get_slice_from_memview(memoryview memview, # <<<<<<<<<<<<<< * __Pyx_memviewslice *mslice) except NULL: * cdef _memoryviewslice obj */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("View.MemoryView.get_slice_from_memview", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_obj); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":1065 * * @cname('__pyx_memoryview_slice_copy') * cdef void slice_copy(memoryview memview, __Pyx_memviewslice *dst): # <<<<<<<<<<<<<< * cdef int dim * cdef (Py_ssize_t*) shape, strides, suboffsets */ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_dst) { int __pyx_v_dim; Py_ssize_t *__pyx_v_shape; Py_ssize_t *__pyx_v_strides; Py_ssize_t *__pyx_v_suboffsets; __Pyx_RefNannyDeclarations Py_ssize_t *__pyx_t_1; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; __Pyx_RefNannySetupContext("slice_copy", 0); /* "View.MemoryView":1069 * cdef (Py_ssize_t*) shape, strides, suboffsets * * shape = memview.view.shape # <<<<<<<<<<<<<< * strides = memview.view.strides * suboffsets = memview.view.suboffsets */ __pyx_t_1 = __pyx_v_memview->view.shape; __pyx_v_shape = __pyx_t_1; /* "View.MemoryView":1070 * * shape = memview.view.shape * strides = memview.view.strides # <<<<<<<<<<<<<< * suboffsets = memview.view.suboffsets * */ __pyx_t_1 = __pyx_v_memview->view.strides; __pyx_v_strides = __pyx_t_1; /* "View.MemoryView":1071 * shape = memview.view.shape * strides = memview.view.strides * suboffsets = memview.view.suboffsets # <<<<<<<<<<<<<< * * dst.memview = <__pyx_memoryview *> memview */ __pyx_t_1 = __pyx_v_memview->view.suboffsets; __pyx_v_suboffsets = __pyx_t_1; /* "View.MemoryView":1073 * suboffsets = memview.view.suboffsets * * dst.memview = <__pyx_memoryview *> memview # <<<<<<<<<<<<<< * dst.data = memview.view.buf * */ __pyx_v_dst->memview = ((struct __pyx_memoryview_obj *)__pyx_v_memview); /* "View.MemoryView":1074 * * dst.memview = <__pyx_memoryview *> memview * dst.data = memview.view.buf # <<<<<<<<<<<<<< * * for dim in range(memview.view.ndim): */ __pyx_v_dst->data = ((char *)__pyx_v_memview->view.buf); /* "View.MemoryView":1076 * dst.data = memview.view.buf * * for dim in range(memview.view.ndim): # <<<<<<<<<<<<<< * dst.shape[dim] = shape[dim] * dst.strides[dim] = strides[dim] */ __pyx_t_2 = __pyx_v_memview->view.ndim; __pyx_t_3 = __pyx_t_2; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_dim = __pyx_t_4; /* "View.MemoryView":1077 * * for dim in range(memview.view.ndim): * dst.shape[dim] = shape[dim] # <<<<<<<<<<<<<< * dst.strides[dim] = strides[dim] * dst.suboffsets[dim] = suboffsets[dim] if suboffsets else -1 */ (__pyx_v_dst->shape[__pyx_v_dim]) = (__pyx_v_shape[__pyx_v_dim]); /* "View.MemoryView":1078 * for dim in range(memview.view.ndim): * dst.shape[dim] = shape[dim] * dst.strides[dim] = strides[dim] # <<<<<<<<<<<<<< * dst.suboffsets[dim] = suboffsets[dim] if suboffsets else -1 * */ (__pyx_v_dst->strides[__pyx_v_dim]) = (__pyx_v_strides[__pyx_v_dim]); /* "View.MemoryView":1079 * dst.shape[dim] = shape[dim] * dst.strides[dim] = strides[dim] * dst.suboffsets[dim] = suboffsets[dim] if suboffsets else -1 # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_copy_object') */ if ((__pyx_v_suboffsets != 0)) { __pyx_t_5 = (__pyx_v_suboffsets[__pyx_v_dim]); } else { __pyx_t_5 = -1L; } (__pyx_v_dst->suboffsets[__pyx_v_dim]) = __pyx_t_5; } /* "View.MemoryView":1065 * * @cname('__pyx_memoryview_slice_copy') * cdef void slice_copy(memoryview memview, __Pyx_memviewslice *dst): # <<<<<<<<<<<<<< * cdef int dim * cdef (Py_ssize_t*) shape, strides, suboffsets */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "View.MemoryView":1082 * * @cname('__pyx_memoryview_copy_object') * cdef memoryview_copy(memoryview memview): # <<<<<<<<<<<<<< * "Create a new memoryview object" * cdef __Pyx_memviewslice memviewslice */ static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *__pyx_v_memview) { __Pyx_memviewslice __pyx_v_memviewslice; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("memoryview_copy", 0); /* "View.MemoryView":1085 * "Create a new memoryview object" * cdef __Pyx_memviewslice memviewslice * slice_copy(memview, &memviewslice) # <<<<<<<<<<<<<< * return memoryview_copy_from_slice(memview, &memviewslice) * */ __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_memviewslice)); /* "View.MemoryView":1086 * cdef __Pyx_memviewslice memviewslice * slice_copy(memview, &memviewslice) * return memoryview_copy_from_slice(memview, &memviewslice) # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_copy_object_from_slice') */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_memoryview_copy_object_from_slice(__pyx_v_memview, (&__pyx_v_memviewslice)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "View.MemoryView":1082 * * @cname('__pyx_memoryview_copy_object') * cdef memoryview_copy(memoryview memview): # <<<<<<<<<<<<<< * "Create a new memoryview object" * cdef __Pyx_memviewslice memviewslice */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("View.MemoryView.memoryview_copy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":1089 * * @cname('__pyx_memoryview_copy_object_from_slice') * cdef memoryview_copy_from_slice(memoryview memview, __Pyx_memviewslice *memviewslice): # <<<<<<<<<<<<<< * """ * Create a new memoryview object from a given memoryview object and slice. */ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_memviewslice) { PyObject *(*__pyx_v_to_object_func)(char *); int (*__pyx_v_to_dtype_func)(char *, PyObject *); PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *(*__pyx_t_3)(char *); int (*__pyx_t_4)(char *, PyObject *); PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("memoryview_copy_from_slice", 0); /* "View.MemoryView":1096 * cdef int (*to_dtype_func)(char *, object) except 0 * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * to_object_func = (<_memoryviewslice> memview).to_object_func * to_dtype_func = (<_memoryviewslice> memview).to_dtype_func */ __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "View.MemoryView":1097 * * if isinstance(memview, _memoryviewslice): * to_object_func = (<_memoryviewslice> memview).to_object_func # <<<<<<<<<<<<<< * to_dtype_func = (<_memoryviewslice> memview).to_dtype_func * else: */ __pyx_t_3 = ((struct __pyx_memoryviewslice_obj *)__pyx_v_memview)->to_object_func; __pyx_v_to_object_func = __pyx_t_3; /* "View.MemoryView":1098 * if isinstance(memview, _memoryviewslice): * to_object_func = (<_memoryviewslice> memview).to_object_func * to_dtype_func = (<_memoryviewslice> memview).to_dtype_func # <<<<<<<<<<<<<< * else: * to_object_func = NULL */ __pyx_t_4 = ((struct __pyx_memoryviewslice_obj *)__pyx_v_memview)->to_dtype_func; __pyx_v_to_dtype_func = __pyx_t_4; /* "View.MemoryView":1096 * cdef int (*to_dtype_func)(char *, object) except 0 * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * to_object_func = (<_memoryviewslice> memview).to_object_func * to_dtype_func = (<_memoryviewslice> memview).to_dtype_func */ goto __pyx_L3; } /* "View.MemoryView":1100 * to_dtype_func = (<_memoryviewslice> memview).to_dtype_func * else: * to_object_func = NULL # <<<<<<<<<<<<<< * to_dtype_func = NULL * */ /*else*/ { __pyx_v_to_object_func = NULL; /* "View.MemoryView":1101 * else: * to_object_func = NULL * to_dtype_func = NULL # <<<<<<<<<<<<<< * * return memoryview_fromslice(memviewslice[0], memview.view.ndim, */ __pyx_v_to_dtype_func = NULL; } __pyx_L3:; /* "View.MemoryView":1103 * to_dtype_func = NULL * * return memoryview_fromslice(memviewslice[0], memview.view.ndim, # <<<<<<<<<<<<<< * to_object_func, to_dtype_func, * memview.dtype_is_object) */ __Pyx_XDECREF(__pyx_r); /* "View.MemoryView":1105 * return memoryview_fromslice(memviewslice[0], memview.view.ndim, * to_object_func, to_dtype_func, * memview.dtype_is_object) # <<<<<<<<<<<<<< * * */ __pyx_t_5 = __pyx_memoryview_fromslice((__pyx_v_memviewslice[0]), __pyx_v_memview->view.ndim, __pyx_v_to_object_func, __pyx_v_to_dtype_func, __pyx_v_memview->dtype_is_object); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 1103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "View.MemoryView":1089 * * @cname('__pyx_memoryview_copy_object_from_slice') * cdef memoryview_copy_from_slice(memoryview memview, __Pyx_memviewslice *memviewslice): # <<<<<<<<<<<<<< * """ * Create a new memoryview object from a given memoryview object and slice. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("View.MemoryView.memoryview_copy_from_slice", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "View.MemoryView":1111 * * * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil: # <<<<<<<<<<<<<< * if arg < 0: * return -arg */ static Py_ssize_t abs_py_ssize_t(Py_ssize_t __pyx_v_arg) { Py_ssize_t __pyx_r; int __pyx_t_1; /* "View.MemoryView":1112 * * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil: * if arg < 0: # <<<<<<<<<<<<<< * return -arg * else: */ __pyx_t_1 = ((__pyx_v_arg < 0) != 0); if (__pyx_t_1) { /* "View.MemoryView":1113 * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil: * if arg < 0: * return -arg # <<<<<<<<<<<<<< * else: * return arg */ __pyx_r = (-__pyx_v_arg); goto __pyx_L0; /* "View.MemoryView":1112 * * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil: * if arg < 0: # <<<<<<<<<<<<<< * return -arg * else: */ } /* "View.MemoryView":1115 * return -arg * else: * return arg # <<<<<<<<<<<<<< * * @cname('__pyx_get_best_slice_order') */ /*else*/ { __pyx_r = __pyx_v_arg; goto __pyx_L0; } /* "View.MemoryView":1111 * * * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil: # <<<<<<<<<<<<<< * if arg < 0: * return -arg */ /* function exit code */ __pyx_L0:; return __pyx_r; } /* "View.MemoryView":1118 * * @cname('__pyx_get_best_slice_order') * cdef char get_best_order(__Pyx_memviewslice *mslice, int ndim) nogil: # <<<<<<<<<<<<<< * """ * Figure out the best memory access order for a given slice. */ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int __pyx_v_ndim) { int __pyx_v_i; Py_ssize_t __pyx_v_c_stride; Py_ssize_t __pyx_v_f_stride; char __pyx_r; int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; /* "View.MemoryView":1123 * """ * cdef int i * cdef Py_ssize_t c_stride = 0 # <<<<<<<<<<<<<< * cdef Py_ssize_t f_stride = 0 * */ __pyx_v_c_stride = 0; /* "View.MemoryView":1124 * cdef int i * cdef Py_ssize_t c_stride = 0 * cdef Py_ssize_t f_stride = 0 # <<<<<<<<<<<<<< * * for i in range(ndim - 1, -1, -1): */ __pyx_v_f_stride = 0; /* "View.MemoryView":1126 * cdef Py_ssize_t f_stride = 0 * * for i in range(ndim - 1, -1, -1): # <<<<<<<<<<<<<< * if mslice.shape[i] > 1: * c_stride = mslice.strides[i] */ for (__pyx_t_1 = (__pyx_v_ndim - 1); __pyx_t_1 > -1; __pyx_t_1-=1) { __pyx_v_i = __pyx_t_1; /* "View.MemoryView":1127 * * for i in range(ndim - 1, -1, -1): * if mslice.shape[i] > 1: # <<<<<<<<<<<<<< * c_stride = mslice.strides[i] * break */ __pyx_t_2 = (((__pyx_v_mslice->shape[__pyx_v_i]) > 1) != 0); if (__pyx_t_2) { /* "View.MemoryView":1128 * for i in range(ndim - 1, -1, -1): * if mslice.shape[i] > 1: * c_stride = mslice.strides[i] # <<<<<<<<<<<<<< * break * */ __pyx_v_c_stride = (__pyx_v_mslice->strides[__pyx_v_i]); /* "View.MemoryView":1129 * if mslice.shape[i] > 1: * c_stride = mslice.strides[i] * break # <<<<<<<<<<<<<< * * for i in range(ndim): */ goto __pyx_L4_break; /* "View.MemoryView":1127 * * for i in range(ndim - 1, -1, -1): * if mslice.shape[i] > 1: # <<<<<<<<<<<<<< * c_stride = mslice.strides[i] * break */ } } __pyx_L4_break:; /* "View.MemoryView":1131 * break * * for i in range(ndim): # <<<<<<<<<<<<<< * if mslice.shape[i] > 1: * f_stride = mslice.strides[i] */ __pyx_t_1 = __pyx_v_ndim; __pyx_t_3 = __pyx_t_1; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; /* "View.MemoryView":1132 * * for i in range(ndim): * if mslice.shape[i] > 1: # <<<<<<<<<<<<<< * f_stride = mslice.strides[i] * break */ __pyx_t_2 = (((__pyx_v_mslice->shape[__pyx_v_i]) > 1) != 0); if (__pyx_t_2) { /* "View.MemoryView":1133 * for i in range(ndim): * if mslice.shape[i] > 1: * f_stride = mslice.strides[i] # <<<<<<<<<<<<<< * break * */ __pyx_v_f_stride = (__pyx_v_mslice->strides[__pyx_v_i]); /* "View.MemoryView":1134 * if mslice.shape[i] > 1: * f_stride = mslice.strides[i] * break # <<<<<<<<<<<<<< * * if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride): */ goto __pyx_L7_break; /* "View.MemoryView":1132 * * for i in range(ndim): * if mslice.shape[i] > 1: # <<<<<<<<<<<<<< * f_stride = mslice.strides[i] * break */ } } __pyx_L7_break:; /* "View.MemoryView":1136 * break * * if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride): # <<<<<<<<<<<<<< * return 'C' * else: */ __pyx_t_2 = ((abs_py_ssize_t(__pyx_v_c_stride) <= abs_py_ssize_t(__pyx_v_f_stride)) != 0); if (__pyx_t_2) { /* "View.MemoryView":1137 * * if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride): * return 'C' # <<<<<<<<<<<<<< * else: * return 'F' */ __pyx_r = 'C'; goto __pyx_L0; /* "View.MemoryView":1136 * break * * if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride): # <<<<<<<<<<<<<< * return 'C' * else: */ } /* "View.MemoryView":1139 * return 'C' * else: * return 'F' # <<<<<<<<<<<<<< * * @cython.cdivision(True) */ /*else*/ { __pyx_r = 'F'; goto __pyx_L0; } /* "View.MemoryView":1118 * * @cname('__pyx_get_best_slice_order') * cdef char get_best_order(__Pyx_memviewslice *mslice, int ndim) nogil: # <<<<<<<<<<<<<< * """ * Figure out the best memory access order for a given slice. */ /* function exit code */ __pyx_L0:; return __pyx_r; } /* "View.MemoryView":1142 * * @cython.cdivision(True) * cdef void _copy_strided_to_strided(char *src_data, Py_ssize_t *src_strides, # <<<<<<<<<<<<<< * char *dst_data, Py_ssize_t *dst_strides, * Py_ssize_t *src_shape, Py_ssize_t *dst_shape, */ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v_src_strides, char *__pyx_v_dst_data, Py_ssize_t *__pyx_v_dst_strides, Py_ssize_t *__pyx_v_src_shape, Py_ssize_t *__pyx_v_dst_shape, int __pyx_v_ndim, size_t __pyx_v_itemsize) { CYTHON_UNUSED Py_ssize_t __pyx_v_i; CYTHON_UNUSED Py_ssize_t __pyx_v_src_extent; Py_ssize_t __pyx_v_dst_extent; Py_ssize_t __pyx_v_src_stride; Py_ssize_t __pyx_v_dst_stride; int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; Py_ssize_t __pyx_t_5; Py_ssize_t __pyx_t_6; /* "View.MemoryView":1149 * * cdef Py_ssize_t i * cdef Py_ssize_t src_extent = src_shape[0] # <<<<<<<<<<<<<< * cdef Py_ssize_t dst_extent = dst_shape[0] * cdef Py_ssize_t src_stride = src_strides[0] */ __pyx_v_src_extent = (__pyx_v_src_shape[0]); /* "View.MemoryView":1150 * cdef Py_ssize_t i * cdef Py_ssize_t src_extent = src_shape[0] * cdef Py_ssize_t dst_extent = dst_shape[0] # <<<<<<<<<<<<<< * cdef Py_ssize_t src_stride = src_strides[0] * cdef Py_ssize_t dst_stride = dst_strides[0] */ __pyx_v_dst_extent = (__pyx_v_dst_shape[0]); /* "View.MemoryView":1151 * cdef Py_ssize_t src_extent = src_shape[0] * cdef Py_ssize_t dst_extent = dst_shape[0] * cdef Py_ssize_t src_stride = src_strides[0] # <<<<<<<<<<<<<< * cdef Py_ssize_t dst_stride = dst_strides[0] * */ __pyx_v_src_stride = (__pyx_v_src_strides[0]); /* "View.MemoryView":1152 * cdef Py_ssize_t dst_extent = dst_shape[0] * cdef Py_ssize_t src_stride = src_strides[0] * cdef Py_ssize_t dst_stride = dst_strides[0] # <<<<<<<<<<<<<< * * if ndim == 1: */ __pyx_v_dst_stride = (__pyx_v_dst_strides[0]); /* "View.MemoryView":1154 * cdef Py_ssize_t dst_stride = dst_strides[0] * * if ndim == 1: # <<<<<<<<<<<<<< * if (src_stride > 0 and dst_stride > 0 and * src_stride == itemsize == dst_stride): */ __pyx_t_1 = ((__pyx_v_ndim == 1) != 0); if (__pyx_t_1) { /* "View.MemoryView":1155 * * if ndim == 1: * if (src_stride > 0 and dst_stride > 0 and # <<<<<<<<<<<<<< * src_stride == itemsize == dst_stride): * memcpy(dst_data, src_data, itemsize * dst_extent) */ __pyx_t_2 = ((__pyx_v_src_stride > 0) != 0); if (__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L5_bool_binop_done; } __pyx_t_2 = ((__pyx_v_dst_stride > 0) != 0); if (__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L5_bool_binop_done; } /* "View.MemoryView":1156 * if ndim == 1: * if (src_stride > 0 and dst_stride > 0 and * src_stride == itemsize == dst_stride): # <<<<<<<<<<<<<< * memcpy(dst_data, src_data, itemsize * dst_extent) * else: */ __pyx_t_2 = (((size_t)__pyx_v_src_stride) == __pyx_v_itemsize); if (__pyx_t_2) { __pyx_t_2 = (__pyx_v_itemsize == ((size_t)__pyx_v_dst_stride)); } __pyx_t_3 = (__pyx_t_2 != 0); __pyx_t_1 = __pyx_t_3; __pyx_L5_bool_binop_done:; /* "View.MemoryView":1155 * * if ndim == 1: * if (src_stride > 0 and dst_stride > 0 and # <<<<<<<<<<<<<< * src_stride == itemsize == dst_stride): * memcpy(dst_data, src_data, itemsize * dst_extent) */ if (__pyx_t_1) { /* "View.MemoryView":1157 * if (src_stride > 0 and dst_stride > 0 and * src_stride == itemsize == dst_stride): * memcpy(dst_data, src_data, itemsize * dst_extent) # <<<<<<<<<<<<<< * else: * for i in range(dst_extent): */ (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, (__pyx_v_itemsize * __pyx_v_dst_extent))); /* "View.MemoryView":1155 * * if ndim == 1: * if (src_stride > 0 and dst_stride > 0 and # <<<<<<<<<<<<<< * src_stride == itemsize == dst_stride): * memcpy(dst_data, src_data, itemsize * dst_extent) */ goto __pyx_L4; } /* "View.MemoryView":1159 * memcpy(dst_data, src_data, itemsize * dst_extent) * else: * for i in range(dst_extent): # <<<<<<<<<<<<<< * memcpy(dst_data, src_data, itemsize) * src_data += src_stride */ /*else*/ { __pyx_t_4 = __pyx_v_dst_extent; __pyx_t_5 = __pyx_t_4; for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; /* "View.MemoryView":1160 * else: * for i in range(dst_extent): * memcpy(dst_data, src_data, itemsize) # <<<<<<<<<<<<<< * src_data += src_stride * dst_data += dst_stride */ (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, __pyx_v_itemsize)); /* "View.MemoryView":1161 * for i in range(dst_extent): * memcpy(dst_data, src_data, itemsize) * src_data += src_stride # <<<<<<<<<<<<<< * dst_data += dst_stride * else: */ __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride); /* "View.MemoryView":1162 * memcpy(dst_data, src_data, itemsize) * src_data += src_stride * dst_data += dst_stride # <<<<<<<<<<<<<< * else: * for i in range(dst_extent): */ __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride); } } __pyx_L4:; /* "View.MemoryView":1154 * cdef Py_ssize_t dst_stride = dst_strides[0] * * if ndim == 1: # <<<<<<<<<<<<<< * if (src_stride > 0 and dst_stride > 0 and * src_stride == itemsize == dst_stride): */ goto __pyx_L3; } /* "View.MemoryView":1164 * dst_data += dst_stride * else: * for i in range(dst_extent): # <<<<<<<<<<<<<< * _copy_strided_to_strided(src_data, src_strides + 1, * dst_data, dst_strides + 1, */ /*else*/ { __pyx_t_4 = __pyx_v_dst_extent; __pyx_t_5 = __pyx_t_4; for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; /* "View.MemoryView":1165 * else: * for i in range(dst_extent): * _copy_strided_to_strided(src_data, src_strides + 1, # <<<<<<<<<<<<<< * dst_data, dst_strides + 1, * src_shape + 1, dst_shape + 1, */ _copy_strided_to_strided(__pyx_v_src_data, (__pyx_v_src_strides + 1), __pyx_v_dst_data, (__pyx_v_dst_strides + 1), (__pyx_v_src_shape + 1), (__pyx_v_dst_shape + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize); /* "View.MemoryView":1169 * src_shape + 1, dst_shape + 1, * ndim - 1, itemsize) * src_data += src_stride # <<<<<<<<<<<<<< * dst_data += dst_stride * */ __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride); /* "View.MemoryView":1170 * ndim - 1, itemsize) * src_data += src_stride * dst_data += dst_stride # <<<<<<<<<<<<<< * * cdef void copy_strided_to_strided(__Pyx_memviewslice *src, */ __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride); } } __pyx_L3:; /* "View.MemoryView":1142 * * @cython.cdivision(True) * cdef void _copy_strided_to_strided(char *src_data, Py_ssize_t *src_strides, # <<<<<<<<<<<<<< * char *dst_data, Py_ssize_t *dst_strides, * Py_ssize_t *src_shape, Py_ssize_t *dst_shape, */ /* function exit code */ } /* "View.MemoryView":1172 * dst_data += dst_stride * * cdef void copy_strided_to_strided(__Pyx_memviewslice *src, # <<<<<<<<<<<<<< * __Pyx_memviewslice *dst, * int ndim, size_t itemsize) nogil: */ static void copy_strided_to_strided(__Pyx_memviewslice *__pyx_v_src, __Pyx_memviewslice *__pyx_v_dst, int __pyx_v_ndim, size_t __pyx_v_itemsize) { /* "View.MemoryView":1175 * __Pyx_memviewslice *dst, * int ndim, size_t itemsize) nogil: * _copy_strided_to_strided(src.data, src.strides, dst.data, dst.strides, # <<<<<<<<<<<<<< * src.shape, dst.shape, ndim, itemsize) * */ _copy_strided_to_strided(__pyx_v_src->data, __pyx_v_src->strides, __pyx_v_dst->data, __pyx_v_dst->strides, __pyx_v_src->shape, __pyx_v_dst->shape, __pyx_v_ndim, __pyx_v_itemsize); /* "View.MemoryView":1172 * dst_data += dst_stride * * cdef void copy_strided_to_strided(__Pyx_memviewslice *src, # <<<<<<<<<<<<<< * __Pyx_memviewslice *dst, * int ndim, size_t itemsize) nogil: */ /* function exit code */ } /* "View.MemoryView":1179 * * @cname('__pyx_memoryview_slice_get_size') * cdef Py_ssize_t slice_get_size(__Pyx_memviewslice *src, int ndim) nogil: # <<<<<<<<<<<<<< * "Return the size of the memory occupied by the slice in number of bytes" * cdef Py_ssize_t shape, size = src.memview.view.itemsize */ static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_src, int __pyx_v_ndim) { Py_ssize_t __pyx_v_shape; Py_ssize_t __pyx_v_size; Py_ssize_t __pyx_r; Py_ssize_t __pyx_t_1; Py_ssize_t *__pyx_t_2; Py_ssize_t *__pyx_t_3; Py_ssize_t *__pyx_t_4; /* "View.MemoryView":1181 * cdef Py_ssize_t slice_get_size(__Pyx_memviewslice *src, int ndim) nogil: * "Return the size of the memory occupied by the slice in number of bytes" * cdef Py_ssize_t shape, size = src.memview.view.itemsize # <<<<<<<<<<<<<< * * for shape in src.shape[:ndim]: */ __pyx_t_1 = __pyx_v_src->memview->view.itemsize; __pyx_v_size = __pyx_t_1; /* "View.MemoryView":1183 * cdef Py_ssize_t shape, size = src.memview.view.itemsize * * for shape in src.shape[:ndim]: # <<<<<<<<<<<<<< * size *= shape * */ __pyx_t_3 = (__pyx_v_src->shape + __pyx_v_ndim); for (__pyx_t_4 = __pyx_v_src->shape; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) { __pyx_t_2 = __pyx_t_4; __pyx_v_shape = (__pyx_t_2[0]); /* "View.MemoryView":1184 * * for shape in src.shape[:ndim]: * size *= shape # <<<<<<<<<<<<<< * * return size */ __pyx_v_size = (__pyx_v_size * __pyx_v_shape); } /* "View.MemoryView":1186 * size *= shape * * return size # <<<<<<<<<<<<<< * * @cname('__pyx_fill_contig_strides_array') */ __pyx_r = __pyx_v_size; goto __pyx_L0; /* "View.MemoryView":1179 * * @cname('__pyx_memoryview_slice_get_size') * cdef Py_ssize_t slice_get_size(__Pyx_memviewslice *src, int ndim) nogil: # <<<<<<<<<<<<<< * "Return the size of the memory occupied by the slice in number of bytes" * cdef Py_ssize_t shape, size = src.memview.view.itemsize */ /* function exit code */ __pyx_L0:; return __pyx_r; } /* "View.MemoryView":1189 * * @cname('__pyx_fill_contig_strides_array') * cdef Py_ssize_t fill_contig_strides_array( # <<<<<<<<<<<<<< * Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t stride, * int ndim, char order) nogil: */ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, Py_ssize_t __pyx_v_stride, int __pyx_v_ndim, char __pyx_v_order) { int __pyx_v_idx; Py_ssize_t __pyx_r; int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; /* "View.MemoryView":1198 * cdef int idx * * if order == 'F': # <<<<<<<<<<<<<< * for idx in range(ndim): * strides[idx] = stride */ __pyx_t_1 = ((__pyx_v_order == 'F') != 0); if (__pyx_t_1) { /* "View.MemoryView":1199 * * if order == 'F': * for idx in range(ndim): # <<<<<<<<<<<<<< * strides[idx] = stride * stride *= shape[idx] */ __pyx_t_2 = __pyx_v_ndim; __pyx_t_3 = __pyx_t_2; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_idx = __pyx_t_4; /* "View.MemoryView":1200 * if order == 'F': * for idx in range(ndim): * strides[idx] = stride # <<<<<<<<<<<<<< * stride *= shape[idx] * else: */ (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride; /* "View.MemoryView":1201 * for idx in range(ndim): * strides[idx] = stride * stride *= shape[idx] # <<<<<<<<<<<<<< * else: * for idx in range(ndim - 1, -1, -1): */ __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx])); } /* "View.MemoryView":1198 * cdef int idx * * if order == 'F': # <<<<<<<<<<<<<< * for idx in range(ndim): * strides[idx] = stride */ goto __pyx_L3; } /* "View.MemoryView":1203 * stride *= shape[idx] * else: * for idx in range(ndim - 1, -1, -1): # <<<<<<<<<<<<<< * strides[idx] = stride * stride *= shape[idx] */ /*else*/ { for (__pyx_t_2 = (__pyx_v_ndim - 1); __pyx_t_2 > -1; __pyx_t_2-=1) { __pyx_v_idx = __pyx_t_2; /* "View.MemoryView":1204 * else: * for idx in range(ndim - 1, -1, -1): * strides[idx] = stride # <<<<<<<<<<<<<< * stride *= shape[idx] * */ (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride; /* "View.MemoryView":1205 * for idx in range(ndim - 1, -1, -1): * strides[idx] = stride * stride *= shape[idx] # <<<<<<<<<<<<<< * * return stride */ __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx])); } } __pyx_L3:; /* "View.MemoryView":1207 * stride *= shape[idx] * * return stride # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_copy_data_to_temp') */ __pyx_r = __pyx_v_stride; goto __pyx_L0; /* "View.MemoryView":1189 * * @cname('__pyx_fill_contig_strides_array') * cdef Py_ssize_t fill_contig_strides_array( # <<<<<<<<<<<<<< * Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t stride, * int ndim, char order) nogil: */ /* function exit code */ __pyx_L0:; return __pyx_r; } /* "View.MemoryView":1210 * * @cname('__pyx_memoryview_copy_data_to_temp') * cdef void *copy_data_to_temp(__Pyx_memviewslice *src, # <<<<<<<<<<<<<< * __Pyx_memviewslice *tmpslice, * char order, */ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, __Pyx_memviewslice *__pyx_v_tmpslice, char __pyx_v_order, int __pyx_v_ndim) { int __pyx_v_i; void *__pyx_v_result; size_t __pyx_v_itemsize; size_t __pyx_v_size; void *__pyx_r; Py_ssize_t __pyx_t_1; int __pyx_t_2; int __pyx_t_3; struct __pyx_memoryview_obj *__pyx_t_4; int __pyx_t_5; int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; /* "View.MemoryView":1221 * cdef void *result * * cdef size_t itemsize = src.memview.view.itemsize # <<<<<<<<<<<<<< * cdef size_t size = slice_get_size(src, ndim) * */ __pyx_t_1 = __pyx_v_src->memview->view.itemsize; __pyx_v_itemsize = __pyx_t_1; /* "View.MemoryView":1222 * * cdef size_t itemsize = src.memview.view.itemsize * cdef size_t size = slice_get_size(src, ndim) # <<<<<<<<<<<<<< * * result = malloc(size) */ __pyx_v_size = __pyx_memoryview_slice_get_size(__pyx_v_src, __pyx_v_ndim); /* "View.MemoryView":1224 * cdef size_t size = slice_get_size(src, ndim) * * result = malloc(size) # <<<<<<<<<<<<<< * if not result: * _err(MemoryError, NULL) */ __pyx_v_result = malloc(__pyx_v_size); /* "View.MemoryView":1225 * * result = malloc(size) * if not result: # <<<<<<<<<<<<<< * _err(MemoryError, NULL) * */ __pyx_t_2 = ((!(__pyx_v_result != 0)) != 0); if (__pyx_t_2) { /* "View.MemoryView":1226 * result = malloc(size) * if not result: * _err(MemoryError, NULL) # <<<<<<<<<<<<<< * * */ __pyx_t_3 = __pyx_memoryview_err(__pyx_builtin_MemoryError, NULL); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 1226, __pyx_L1_error) /* "View.MemoryView":1225 * * result = malloc(size) * if not result: # <<<<<<<<<<<<<< * _err(MemoryError, NULL) * */ } /* "View.MemoryView":1229 * * * tmpslice.data = result # <<<<<<<<<<<<<< * tmpslice.memview = src.memview * for i in range(ndim): */ __pyx_v_tmpslice->data = ((char *)__pyx_v_result); /* "View.MemoryView":1230 * * tmpslice.data = result * tmpslice.memview = src.memview # <<<<<<<<<<<<<< * for i in range(ndim): * tmpslice.shape[i] = src.shape[i] */ __pyx_t_4 = __pyx_v_src->memview; __pyx_v_tmpslice->memview = __pyx_t_4; /* "View.MemoryView":1231 * tmpslice.data = result * tmpslice.memview = src.memview * for i in range(ndim): # <<<<<<<<<<<<<< * tmpslice.shape[i] = src.shape[i] * tmpslice.suboffsets[i] = -1 */ __pyx_t_3 = __pyx_v_ndim; __pyx_t_5 = __pyx_t_3; for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; /* "View.MemoryView":1232 * tmpslice.memview = src.memview * for i in range(ndim): * tmpslice.shape[i] = src.shape[i] # <<<<<<<<<<<<<< * tmpslice.suboffsets[i] = -1 * */ (__pyx_v_tmpslice->shape[__pyx_v_i]) = (__pyx_v_src->shape[__pyx_v_i]); /* "View.MemoryView":1233 * for i in range(ndim): * tmpslice.shape[i] = src.shape[i] * tmpslice.suboffsets[i] = -1 # <<<<<<<<<<<<<< * * fill_contig_strides_array(&tmpslice.shape[0], &tmpslice.strides[0], itemsize, */ (__pyx_v_tmpslice->suboffsets[__pyx_v_i]) = -1L; } /* "View.MemoryView":1235 * tmpslice.suboffsets[i] = -1 * * fill_contig_strides_array(&tmpslice.shape[0], &tmpslice.strides[0], itemsize, # <<<<<<<<<<<<<< * ndim, order) * */ (void)(__pyx_fill_contig_strides_array((&(__pyx_v_tmpslice->shape[0])), (&(__pyx_v_tmpslice->strides[0])), __pyx_v_itemsize, __pyx_v_ndim, __pyx_v_order)); /* "View.MemoryView":1239 * * * for i in range(ndim): # <<<<<<<<<<<<<< * if tmpslice.shape[i] == 1: * tmpslice.strides[i] = 0 */ __pyx_t_3 = __pyx_v_ndim; __pyx_t_5 = __pyx_t_3; for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; /* "View.MemoryView":1240 * * for i in range(ndim): * if tmpslice.shape[i] == 1: # <<<<<<<<<<<<<< * tmpslice.strides[i] = 0 * */ __pyx_t_2 = (((__pyx_v_tmpslice->shape[__pyx_v_i]) == 1) != 0); if (__pyx_t_2) { /* "View.MemoryView":1241 * for i in range(ndim): * if tmpslice.shape[i] == 1: * tmpslice.strides[i] = 0 # <<<<<<<<<<<<<< * * if slice_is_contig(src[0], order, ndim): */ (__pyx_v_tmpslice->strides[__pyx_v_i]) = 0; /* "View.MemoryView":1240 * * for i in range(ndim): * if tmpslice.shape[i] == 1: # <<<<<<<<<<<<<< * tmpslice.strides[i] = 0 * */ } } /* "View.MemoryView":1243 * tmpslice.strides[i] = 0 * * if slice_is_contig(src[0], order, ndim): # <<<<<<<<<<<<<< * memcpy(result, src.data, size) * else: */ __pyx_t_2 = (__pyx_memviewslice_is_contig((__pyx_v_src[0]), __pyx_v_order, __pyx_v_ndim) != 0); if (__pyx_t_2) { /* "View.MemoryView":1244 * * if slice_is_contig(src[0], order, ndim): * memcpy(result, src.data, size) # <<<<<<<<<<<<<< * else: * copy_strided_to_strided(src, tmpslice, ndim, itemsize) */ (void)(memcpy(__pyx_v_result, __pyx_v_src->data, __pyx_v_size)); /* "View.MemoryView":1243 * tmpslice.strides[i] = 0 * * if slice_is_contig(src[0], order, ndim): # <<<<<<<<<<<<<< * memcpy(result, src.data, size) * else: */ goto __pyx_L9; } /* "View.MemoryView":1246 * memcpy(result, src.data, size) * else: * copy_strided_to_strided(src, tmpslice, ndim, itemsize) # <<<<<<<<<<<<<< * * return result */ /*else*/ { copy_strided_to_strided(__pyx_v_src, __pyx_v_tmpslice, __pyx_v_ndim, __pyx_v_itemsize); } __pyx_L9:; /* "View.MemoryView":1248 * copy_strided_to_strided(src, tmpslice, ndim, itemsize) * * return result # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_result; goto __pyx_L0; /* "View.MemoryView":1210 * * @cname('__pyx_memoryview_copy_data_to_temp') * cdef void *copy_data_to_temp(__Pyx_memviewslice *src, # <<<<<<<<<<<<<< * __Pyx_memviewslice *tmpslice, * char order, */ /* function exit code */ __pyx_L1_error:; { #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_AddTraceback("View.MemoryView.copy_data_to_temp", __pyx_clineno, __pyx_lineno, __pyx_filename); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif } __pyx_r = NULL; __pyx_L0:; return __pyx_r; } /* "View.MemoryView":1253 * * @cname('__pyx_memoryview_err_extents') * cdef int _err_extents(int i, Py_ssize_t extent1, # <<<<<<<<<<<<<< * Py_ssize_t extent2) except -1 with gil: * raise ValueError("got differing extents in dimension %d (got %d and %d)" % */ static int __pyx_memoryview_err_extents(int __pyx_v_i, Py_ssize_t __pyx_v_extent1, Py_ssize_t __pyx_v_extent2) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_RefNannySetupContext("_err_extents", 0); /* "View.MemoryView":1256 * Py_ssize_t extent2) except -1 with gil: * raise ValueError("got differing extents in dimension %d (got %d and %d)" % * (i, extent1, extent2)) # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_err_dim') */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_extent1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_extent2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = 0; /* "View.MemoryView":1255 * cdef int _err_extents(int i, Py_ssize_t extent1, * Py_ssize_t extent2) except -1 with gil: * raise ValueError("got differing extents in dimension %d (got %d and %d)" % # <<<<<<<<<<<<<< * (i, extent1, extent2)) * */ __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_got_differing_extents_in_dimensi, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(2, 1255, __pyx_L1_error) /* "View.MemoryView":1253 * * @cname('__pyx_memoryview_err_extents') * cdef int _err_extents(int i, Py_ssize_t extent1, # <<<<<<<<<<<<<< * Py_ssize_t extent2) except -1 with gil: * raise ValueError("got differing extents in dimension %d (got %d and %d)" % */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("View.MemoryView._err_extents", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __Pyx_RefNannyFinishContext(); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif return __pyx_r; } /* "View.MemoryView":1259 * * @cname('__pyx_memoryview_err_dim') * cdef int _err_dim(object error, char *msg, int dim) except -1 with gil: # <<<<<<<<<<<<<< * raise error(msg.decode('ascii') % dim) * */ static int __pyx_memoryview_err_dim(PyObject *__pyx_v_error, char *__pyx_v_msg, int __pyx_v_dim) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_RefNannySetupContext("_err_dim", 0); __Pyx_INCREF(__pyx_v_error); /* "View.MemoryView":1260 * @cname('__pyx_memoryview_err_dim') * cdef int _err_dim(object error, char *msg, int dim) except -1 with gil: * raise error(msg.decode('ascii') % dim) # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_err') */ __pyx_t_2 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_dim); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyUnicode_Format(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_INCREF(__pyx_v_error); __pyx_t_3 = __pyx_v_error; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 1260, __pyx_L1_error) /* "View.MemoryView":1259 * * @cname('__pyx_memoryview_err_dim') * cdef int _err_dim(object error, char *msg, int dim) except -1 with gil: # <<<<<<<<<<<<<< * raise error(msg.decode('ascii') % dim) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("View.MemoryView._err_dim", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __Pyx_XDECREF(__pyx_v_error); __Pyx_RefNannyFinishContext(); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif return __pyx_r; } /* "View.MemoryView":1263 * * @cname('__pyx_memoryview_err') * cdef int _err(object error, char *msg) except -1 with gil: # <<<<<<<<<<<<<< * if msg != NULL: * raise error(msg.decode('ascii')) */ static int __pyx_memoryview_err(PyObject *__pyx_v_error, char *__pyx_v_msg) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_RefNannySetupContext("_err", 0); __Pyx_INCREF(__pyx_v_error); /* "View.MemoryView":1264 * @cname('__pyx_memoryview_err') * cdef int _err(object error, char *msg) except -1 with gil: * if msg != NULL: # <<<<<<<<<<<<<< * raise error(msg.decode('ascii')) * else: */ __pyx_t_1 = ((__pyx_v_msg != NULL) != 0); if (unlikely(__pyx_t_1)) { /* "View.MemoryView":1265 * cdef int _err(object error, char *msg) except -1 with gil: * if msg != NULL: * raise error(msg.decode('ascii')) # <<<<<<<<<<<<<< * else: * raise error */ __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_error); __pyx_t_4 = __pyx_v_error; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(2, 1265, __pyx_L1_error) /* "View.MemoryView":1264 * @cname('__pyx_memoryview_err') * cdef int _err(object error, char *msg) except -1 with gil: * if msg != NULL: # <<<<<<<<<<<<<< * raise error(msg.decode('ascii')) * else: */ } /* "View.MemoryView":1267 * raise error(msg.decode('ascii')) * else: * raise error # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_copy_contents') */ /*else*/ { __Pyx_Raise(__pyx_v_error, 0, 0, 0); __PYX_ERR(2, 1267, __pyx_L1_error) } /* "View.MemoryView":1263 * * @cname('__pyx_memoryview_err') * cdef int _err(object error, char *msg) except -1 with gil: # <<<<<<<<<<<<<< * if msg != NULL: * raise error(msg.decode('ascii')) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("View.MemoryView._err", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __Pyx_XDECREF(__pyx_v_error); __Pyx_RefNannyFinishContext(); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif return __pyx_r; } /* "View.MemoryView":1270 * * @cname('__pyx_memoryview_copy_contents') * cdef int memoryview_copy_contents(__Pyx_memviewslice src, # <<<<<<<<<<<<<< * __Pyx_memviewslice dst, * int src_ndim, int dst_ndim, */ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_memviewslice __pyx_v_dst, int __pyx_v_src_ndim, int __pyx_v_dst_ndim, int __pyx_v_dtype_is_object) { void *__pyx_v_tmpdata; size_t __pyx_v_itemsize; int __pyx_v_i; char __pyx_v_order; int __pyx_v_broadcasting; int __pyx_v_direct_copy; __Pyx_memviewslice __pyx_v_tmp; int __pyx_v_ndim; int __pyx_r; Py_ssize_t __pyx_t_1; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; int __pyx_t_5; int __pyx_t_6; void *__pyx_t_7; int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; /* "View.MemoryView":1278 * Check for overlapping memory and verify the shapes. * """ * cdef void *tmpdata = NULL # <<<<<<<<<<<<<< * cdef size_t itemsize = src.memview.view.itemsize * cdef int i */ __pyx_v_tmpdata = NULL; /* "View.MemoryView":1279 * """ * cdef void *tmpdata = NULL * cdef size_t itemsize = src.memview.view.itemsize # <<<<<<<<<<<<<< * cdef int i * cdef char order = get_best_order(&src, src_ndim) */ __pyx_t_1 = __pyx_v_src.memview->view.itemsize; __pyx_v_itemsize = __pyx_t_1; /* "View.MemoryView":1281 * cdef size_t itemsize = src.memview.view.itemsize * cdef int i * cdef char order = get_best_order(&src, src_ndim) # <<<<<<<<<<<<<< * cdef bint broadcasting = False * cdef bint direct_copy = False */ __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_src), __pyx_v_src_ndim); /* "View.MemoryView":1282 * cdef int i * cdef char order = get_best_order(&src, src_ndim) * cdef bint broadcasting = False # <<<<<<<<<<<<<< * cdef bint direct_copy = False * cdef __Pyx_memviewslice tmp */ __pyx_v_broadcasting = 0; /* "View.MemoryView":1283 * cdef char order = get_best_order(&src, src_ndim) * cdef bint broadcasting = False * cdef bint direct_copy = False # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice tmp * */ __pyx_v_direct_copy = 0; /* "View.MemoryView":1286 * cdef __Pyx_memviewslice tmp * * if src_ndim < dst_ndim: # <<<<<<<<<<<<<< * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: */ __pyx_t_2 = ((__pyx_v_src_ndim < __pyx_v_dst_ndim) != 0); if (__pyx_t_2) { /* "View.MemoryView":1287 * * if src_ndim < dst_ndim: * broadcast_leading(&src, src_ndim, dst_ndim) # <<<<<<<<<<<<<< * elif dst_ndim < src_ndim: * broadcast_leading(&dst, dst_ndim, src_ndim) */ __pyx_memoryview_broadcast_leading((&__pyx_v_src), __pyx_v_src_ndim, __pyx_v_dst_ndim); /* "View.MemoryView":1286 * cdef __Pyx_memviewslice tmp * * if src_ndim < dst_ndim: # <<<<<<<<<<<<<< * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: */ goto __pyx_L3; } /* "View.MemoryView":1288 * if src_ndim < dst_ndim: * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: # <<<<<<<<<<<<<< * broadcast_leading(&dst, dst_ndim, src_ndim) * */ __pyx_t_2 = ((__pyx_v_dst_ndim < __pyx_v_src_ndim) != 0); if (__pyx_t_2) { /* "View.MemoryView":1289 * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: * broadcast_leading(&dst, dst_ndim, src_ndim) # <<<<<<<<<<<<<< * * cdef int ndim = max(src_ndim, dst_ndim) */ __pyx_memoryview_broadcast_leading((&__pyx_v_dst), __pyx_v_dst_ndim, __pyx_v_src_ndim); /* "View.MemoryView":1288 * if src_ndim < dst_ndim: * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: # <<<<<<<<<<<<<< * broadcast_leading(&dst, dst_ndim, src_ndim) * */ } __pyx_L3:; /* "View.MemoryView":1291 * broadcast_leading(&dst, dst_ndim, src_ndim) * * cdef int ndim = max(src_ndim, dst_ndim) # <<<<<<<<<<<<<< * * for i in range(ndim): */ __pyx_t_3 = __pyx_v_dst_ndim; __pyx_t_4 = __pyx_v_src_ndim; if (((__pyx_t_3 > __pyx_t_4) != 0)) { __pyx_t_5 = __pyx_t_3; } else { __pyx_t_5 = __pyx_t_4; } __pyx_v_ndim = __pyx_t_5; /* "View.MemoryView":1293 * cdef int ndim = max(src_ndim, dst_ndim) * * for i in range(ndim): # <<<<<<<<<<<<<< * if src.shape[i] != dst.shape[i]: * if src.shape[i] == 1: */ __pyx_t_5 = __pyx_v_ndim; __pyx_t_3 = __pyx_t_5; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; /* "View.MemoryView":1294 * * for i in range(ndim): * if src.shape[i] != dst.shape[i]: # <<<<<<<<<<<<<< * if src.shape[i] == 1: * broadcasting = True */ __pyx_t_2 = (((__pyx_v_src.shape[__pyx_v_i]) != (__pyx_v_dst.shape[__pyx_v_i])) != 0); if (__pyx_t_2) { /* "View.MemoryView":1295 * for i in range(ndim): * if src.shape[i] != dst.shape[i]: * if src.shape[i] == 1: # <<<<<<<<<<<<<< * broadcasting = True * src.strides[i] = 0 */ __pyx_t_2 = (((__pyx_v_src.shape[__pyx_v_i]) == 1) != 0); if (__pyx_t_2) { /* "View.MemoryView":1296 * if src.shape[i] != dst.shape[i]: * if src.shape[i] == 1: * broadcasting = True # <<<<<<<<<<<<<< * src.strides[i] = 0 * else: */ __pyx_v_broadcasting = 1; /* "View.MemoryView":1297 * if src.shape[i] == 1: * broadcasting = True * src.strides[i] = 0 # <<<<<<<<<<<<<< * else: * _err_extents(i, dst.shape[i], src.shape[i]) */ (__pyx_v_src.strides[__pyx_v_i]) = 0; /* "View.MemoryView":1295 * for i in range(ndim): * if src.shape[i] != dst.shape[i]: * if src.shape[i] == 1: # <<<<<<<<<<<<<< * broadcasting = True * src.strides[i] = 0 */ goto __pyx_L7; } /* "View.MemoryView":1299 * src.strides[i] = 0 * else: * _err_extents(i, dst.shape[i], src.shape[i]) # <<<<<<<<<<<<<< * * if src.suboffsets[i] >= 0: */ /*else*/ { __pyx_t_6 = __pyx_memoryview_err_extents(__pyx_v_i, (__pyx_v_dst.shape[__pyx_v_i]), (__pyx_v_src.shape[__pyx_v_i])); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1299, __pyx_L1_error) } __pyx_L7:; /* "View.MemoryView":1294 * * for i in range(ndim): * if src.shape[i] != dst.shape[i]: # <<<<<<<<<<<<<< * if src.shape[i] == 1: * broadcasting = True */ } /* "View.MemoryView":1301 * _err_extents(i, dst.shape[i], src.shape[i]) * * if src.suboffsets[i] >= 0: # <<<<<<<<<<<<<< * _err_dim(ValueError, "Dimension %d is not direct", i) * */ __pyx_t_2 = (((__pyx_v_src.suboffsets[__pyx_v_i]) >= 0) != 0); if (__pyx_t_2) { /* "View.MemoryView":1302 * * if src.suboffsets[i] >= 0: * _err_dim(ValueError, "Dimension %d is not direct", i) # <<<<<<<<<<<<<< * * if slices_overlap(&src, &dst, ndim, itemsize): */ __pyx_t_6 = __pyx_memoryview_err_dim(__pyx_builtin_ValueError, ((char *)"Dimension %d is not direct"), __pyx_v_i); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1302, __pyx_L1_error) /* "View.MemoryView":1301 * _err_extents(i, dst.shape[i], src.shape[i]) * * if src.suboffsets[i] >= 0: # <<<<<<<<<<<<<< * _err_dim(ValueError, "Dimension %d is not direct", i) * */ } } /* "View.MemoryView":1304 * _err_dim(ValueError, "Dimension %d is not direct", i) * * if slices_overlap(&src, &dst, ndim, itemsize): # <<<<<<<<<<<<<< * * if not slice_is_contig(src, order, ndim): */ __pyx_t_2 = (__pyx_slices_overlap((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize) != 0); if (__pyx_t_2) { /* "View.MemoryView":1306 * if slices_overlap(&src, &dst, ndim, itemsize): * * if not slice_is_contig(src, order, ndim): # <<<<<<<<<<<<<< * order = get_best_order(&dst, ndim) * */ __pyx_t_2 = ((!(__pyx_memviewslice_is_contig(__pyx_v_src, __pyx_v_order, __pyx_v_ndim) != 0)) != 0); if (__pyx_t_2) { /* "View.MemoryView":1307 * * if not slice_is_contig(src, order, ndim): * order = get_best_order(&dst, ndim) # <<<<<<<<<<<<<< * * tmpdata = copy_data_to_temp(&src, &tmp, order, ndim) */ __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim); /* "View.MemoryView":1306 * if slices_overlap(&src, &dst, ndim, itemsize): * * if not slice_is_contig(src, order, ndim): # <<<<<<<<<<<<<< * order = get_best_order(&dst, ndim) * */ } /* "View.MemoryView":1309 * order = get_best_order(&dst, ndim) * * tmpdata = copy_data_to_temp(&src, &tmp, order, ndim) # <<<<<<<<<<<<<< * src = tmp * */ __pyx_t_7 = __pyx_memoryview_copy_data_to_temp((&__pyx_v_src), (&__pyx_v_tmp), __pyx_v_order, __pyx_v_ndim); if (unlikely(__pyx_t_7 == ((void *)NULL))) __PYX_ERR(2, 1309, __pyx_L1_error) __pyx_v_tmpdata = __pyx_t_7; /* "View.MemoryView":1310 * * tmpdata = copy_data_to_temp(&src, &tmp, order, ndim) * src = tmp # <<<<<<<<<<<<<< * * if not broadcasting: */ __pyx_v_src = __pyx_v_tmp; /* "View.MemoryView":1304 * _err_dim(ValueError, "Dimension %d is not direct", i) * * if slices_overlap(&src, &dst, ndim, itemsize): # <<<<<<<<<<<<<< * * if not slice_is_contig(src, order, ndim): */ } /* "View.MemoryView":1312 * src = tmp * * if not broadcasting: # <<<<<<<<<<<<<< * * */ __pyx_t_2 = ((!(__pyx_v_broadcasting != 0)) != 0); if (__pyx_t_2) { /* "View.MemoryView":1315 * * * if slice_is_contig(src, 'C', ndim): # <<<<<<<<<<<<<< * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): */ __pyx_t_2 = (__pyx_memviewslice_is_contig(__pyx_v_src, 'C', __pyx_v_ndim) != 0); if (__pyx_t_2) { /* "View.MemoryView":1316 * * if slice_is_contig(src, 'C', ndim): * direct_copy = slice_is_contig(dst, 'C', ndim) # <<<<<<<<<<<<<< * elif slice_is_contig(src, 'F', ndim): * direct_copy = slice_is_contig(dst, 'F', ndim) */ __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst, 'C', __pyx_v_ndim); /* "View.MemoryView":1315 * * * if slice_is_contig(src, 'C', ndim): # <<<<<<<<<<<<<< * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): */ goto __pyx_L12; } /* "View.MemoryView":1317 * if slice_is_contig(src, 'C', ndim): * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): # <<<<<<<<<<<<<< * direct_copy = slice_is_contig(dst, 'F', ndim) * */ __pyx_t_2 = (__pyx_memviewslice_is_contig(__pyx_v_src, 'F', __pyx_v_ndim) != 0); if (__pyx_t_2) { /* "View.MemoryView":1318 * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): * direct_copy = slice_is_contig(dst, 'F', ndim) # <<<<<<<<<<<<<< * * if direct_copy: */ __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst, 'F', __pyx_v_ndim); /* "View.MemoryView":1317 * if slice_is_contig(src, 'C', ndim): * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): # <<<<<<<<<<<<<< * direct_copy = slice_is_contig(dst, 'F', ndim) * */ } __pyx_L12:; /* "View.MemoryView":1320 * direct_copy = slice_is_contig(dst, 'F', ndim) * * if direct_copy: # <<<<<<<<<<<<<< * * refcount_copying(&dst, dtype_is_object, ndim, False) */ __pyx_t_2 = (__pyx_v_direct_copy != 0); if (__pyx_t_2) { /* "View.MemoryView":1322 * if direct_copy: * * refcount_copying(&dst, dtype_is_object, ndim, False) # <<<<<<<<<<<<<< * memcpy(dst.data, src.data, slice_get_size(&src, ndim)) * refcount_copying(&dst, dtype_is_object, ndim, True) */ __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0); /* "View.MemoryView":1323 * * refcount_copying(&dst, dtype_is_object, ndim, False) * memcpy(dst.data, src.data, slice_get_size(&src, ndim)) # <<<<<<<<<<<<<< * refcount_copying(&dst, dtype_is_object, ndim, True) * free(tmpdata) */ (void)(memcpy(__pyx_v_dst.data, __pyx_v_src.data, __pyx_memoryview_slice_get_size((&__pyx_v_src), __pyx_v_ndim))); /* "View.MemoryView":1324 * refcount_copying(&dst, dtype_is_object, ndim, False) * memcpy(dst.data, src.data, slice_get_size(&src, ndim)) * refcount_copying(&dst, dtype_is_object, ndim, True) # <<<<<<<<<<<<<< * free(tmpdata) * return 0 */ __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1); /* "View.MemoryView":1325 * memcpy(dst.data, src.data, slice_get_size(&src, ndim)) * refcount_copying(&dst, dtype_is_object, ndim, True) * free(tmpdata) # <<<<<<<<<<<<<< * return 0 * */ free(__pyx_v_tmpdata); /* "View.MemoryView":1326 * refcount_copying(&dst, dtype_is_object, ndim, True) * free(tmpdata) * return 0 # <<<<<<<<<<<<<< * * if order == 'F' == get_best_order(&dst, ndim): */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":1320 * direct_copy = slice_is_contig(dst, 'F', ndim) * * if direct_copy: # <<<<<<<<<<<<<< * * refcount_copying(&dst, dtype_is_object, ndim, False) */ } /* "View.MemoryView":1312 * src = tmp * * if not broadcasting: # <<<<<<<<<<<<<< * * */ } /* "View.MemoryView":1328 * return 0 * * if order == 'F' == get_best_order(&dst, ndim): # <<<<<<<<<<<<<< * * */ __pyx_t_2 = (__pyx_v_order == 'F'); if (__pyx_t_2) { __pyx_t_2 = ('F' == __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim)); } __pyx_t_8 = (__pyx_t_2 != 0); if (__pyx_t_8) { /* "View.MemoryView":1331 * * * transpose_memslice(&src) # <<<<<<<<<<<<<< * transpose_memslice(&dst) * */ __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_src)); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(2, 1331, __pyx_L1_error) /* "View.MemoryView":1332 * * transpose_memslice(&src) * transpose_memslice(&dst) # <<<<<<<<<<<<<< * * refcount_copying(&dst, dtype_is_object, ndim, False) */ __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_dst)); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(2, 1332, __pyx_L1_error) /* "View.MemoryView":1328 * return 0 * * if order == 'F' == get_best_order(&dst, ndim): # <<<<<<<<<<<<<< * * */ } /* "View.MemoryView":1334 * transpose_memslice(&dst) * * refcount_copying(&dst, dtype_is_object, ndim, False) # <<<<<<<<<<<<<< * copy_strided_to_strided(&src, &dst, ndim, itemsize) * refcount_copying(&dst, dtype_is_object, ndim, True) */ __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0); /* "View.MemoryView":1335 * * refcount_copying(&dst, dtype_is_object, ndim, False) * copy_strided_to_strided(&src, &dst, ndim, itemsize) # <<<<<<<<<<<<<< * refcount_copying(&dst, dtype_is_object, ndim, True) * */ copy_strided_to_strided((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize); /* "View.MemoryView":1336 * refcount_copying(&dst, dtype_is_object, ndim, False) * copy_strided_to_strided(&src, &dst, ndim, itemsize) * refcount_copying(&dst, dtype_is_object, ndim, True) # <<<<<<<<<<<<<< * * free(tmpdata) */ __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1); /* "View.MemoryView":1338 * refcount_copying(&dst, dtype_is_object, ndim, True) * * free(tmpdata) # <<<<<<<<<<<<<< * return 0 * */ free(__pyx_v_tmpdata); /* "View.MemoryView":1339 * * free(tmpdata) * return 0 # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_broadcast_leading') */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":1270 * * @cname('__pyx_memoryview_copy_contents') * cdef int memoryview_copy_contents(__Pyx_memviewslice src, # <<<<<<<<<<<<<< * __Pyx_memviewslice dst, * int src_ndim, int dst_ndim, */ /* function exit code */ __pyx_L1_error:; { #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_AddTraceback("View.MemoryView.memoryview_copy_contents", __pyx_clineno, __pyx_lineno, __pyx_filename); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif } __pyx_r = -1; __pyx_L0:; return __pyx_r; } /* "View.MemoryView":1342 * * @cname('__pyx_memoryview_broadcast_leading') * cdef void broadcast_leading(__Pyx_memviewslice *mslice, # <<<<<<<<<<<<<< * int ndim, * int ndim_other) nogil: */ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslice, int __pyx_v_ndim, int __pyx_v_ndim_other) { int __pyx_v_i; int __pyx_v_offset; int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; /* "View.MemoryView":1346 * int ndim_other) nogil: * cdef int i * cdef int offset = ndim_other - ndim # <<<<<<<<<<<<<< * * for i in range(ndim - 1, -1, -1): */ __pyx_v_offset = (__pyx_v_ndim_other - __pyx_v_ndim); /* "View.MemoryView":1348 * cdef int offset = ndim_other - ndim * * for i in range(ndim - 1, -1, -1): # <<<<<<<<<<<<<< * mslice.shape[i + offset] = mslice.shape[i] * mslice.strides[i + offset] = mslice.strides[i] */ for (__pyx_t_1 = (__pyx_v_ndim - 1); __pyx_t_1 > -1; __pyx_t_1-=1) { __pyx_v_i = __pyx_t_1; /* "View.MemoryView":1349 * * for i in range(ndim - 1, -1, -1): * mslice.shape[i + offset] = mslice.shape[i] # <<<<<<<<<<<<<< * mslice.strides[i + offset] = mslice.strides[i] * mslice.suboffsets[i + offset] = mslice.suboffsets[i] */ (__pyx_v_mslice->shape[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->shape[__pyx_v_i]); /* "View.MemoryView":1350 * for i in range(ndim - 1, -1, -1): * mslice.shape[i + offset] = mslice.shape[i] * mslice.strides[i + offset] = mslice.strides[i] # <<<<<<<<<<<<<< * mslice.suboffsets[i + offset] = mslice.suboffsets[i] * */ (__pyx_v_mslice->strides[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->strides[__pyx_v_i]); /* "View.MemoryView":1351 * mslice.shape[i + offset] = mslice.shape[i] * mslice.strides[i + offset] = mslice.strides[i] * mslice.suboffsets[i + offset] = mslice.suboffsets[i] # <<<<<<<<<<<<<< * * for i in range(offset): */ (__pyx_v_mslice->suboffsets[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->suboffsets[__pyx_v_i]); } /* "View.MemoryView":1353 * mslice.suboffsets[i + offset] = mslice.suboffsets[i] * * for i in range(offset): # <<<<<<<<<<<<<< * mslice.shape[i] = 1 * mslice.strides[i] = mslice.strides[0] */ __pyx_t_1 = __pyx_v_offset; __pyx_t_2 = __pyx_t_1; for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { __pyx_v_i = __pyx_t_3; /* "View.MemoryView":1354 * * for i in range(offset): * mslice.shape[i] = 1 # <<<<<<<<<<<<<< * mslice.strides[i] = mslice.strides[0] * mslice.suboffsets[i] = -1 */ (__pyx_v_mslice->shape[__pyx_v_i]) = 1; /* "View.MemoryView":1355 * for i in range(offset): * mslice.shape[i] = 1 * mslice.strides[i] = mslice.strides[0] # <<<<<<<<<<<<<< * mslice.suboffsets[i] = -1 * */ (__pyx_v_mslice->strides[__pyx_v_i]) = (__pyx_v_mslice->strides[0]); /* "View.MemoryView":1356 * mslice.shape[i] = 1 * mslice.strides[i] = mslice.strides[0] * mslice.suboffsets[i] = -1 # <<<<<<<<<<<<<< * * */ (__pyx_v_mslice->suboffsets[__pyx_v_i]) = -1L; } /* "View.MemoryView":1342 * * @cname('__pyx_memoryview_broadcast_leading') * cdef void broadcast_leading(__Pyx_memviewslice *mslice, # <<<<<<<<<<<<<< * int ndim, * int ndim_other) nogil: */ /* function exit code */ } /* "View.MemoryView":1364 * * @cname('__pyx_memoryview_refcount_copying') * cdef void refcount_copying(__Pyx_memviewslice *dst, bint dtype_is_object, # <<<<<<<<<<<<<< * int ndim, bint inc) nogil: * */ static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *__pyx_v_dst, int __pyx_v_dtype_is_object, int __pyx_v_ndim, int __pyx_v_inc) { int __pyx_t_1; /* "View.MemoryView":1368 * * * if dtype_is_object: # <<<<<<<<<<<<<< * refcount_objects_in_slice_with_gil(dst.data, dst.shape, * dst.strides, ndim, inc) */ __pyx_t_1 = (__pyx_v_dtype_is_object != 0); if (__pyx_t_1) { /* "View.MemoryView":1369 * * if dtype_is_object: * refcount_objects_in_slice_with_gil(dst.data, dst.shape, # <<<<<<<<<<<<<< * dst.strides, ndim, inc) * */ __pyx_memoryview_refcount_objects_in_slice_with_gil(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_inc); /* "View.MemoryView":1368 * * * if dtype_is_object: # <<<<<<<<<<<<<< * refcount_objects_in_slice_with_gil(dst.data, dst.shape, * dst.strides, ndim, inc) */ } /* "View.MemoryView":1364 * * @cname('__pyx_memoryview_refcount_copying') * cdef void refcount_copying(__Pyx_memviewslice *dst, bint dtype_is_object, # <<<<<<<<<<<<<< * int ndim, bint inc) nogil: * */ /* function exit code */ } /* "View.MemoryView":1373 * * @cname('__pyx_memoryview_refcount_objects_in_slice_with_gil') * cdef void refcount_objects_in_slice_with_gil(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, * bint inc) with gil: */ static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, int __pyx_v_ndim, int __pyx_v_inc) { __Pyx_RefNannyDeclarations #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #endif __Pyx_RefNannySetupContext("refcount_objects_in_slice_with_gil", 0); /* "View.MemoryView":1376 * Py_ssize_t *strides, int ndim, * bint inc) with gil: * refcount_objects_in_slice(data, shape, strides, ndim, inc) # <<<<<<<<<<<<<< * * @cname('__pyx_memoryview_refcount_objects_in_slice') */ __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, __pyx_v_shape, __pyx_v_strides, __pyx_v_ndim, __pyx_v_inc); /* "View.MemoryView":1373 * * @cname('__pyx_memoryview_refcount_objects_in_slice_with_gil') * cdef void refcount_objects_in_slice_with_gil(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, * bint inc) with gil: */ /* function exit code */ __Pyx_RefNannyFinishContext(); #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif } /* "View.MemoryView":1379 * * @cname('__pyx_memoryview_refcount_objects_in_slice') * cdef void refcount_objects_in_slice(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, bint inc): * cdef Py_ssize_t i */ static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, int __pyx_v_ndim, int __pyx_v_inc) { CYTHON_UNUSED Py_ssize_t __pyx_v_i; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; Py_ssize_t __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; __Pyx_RefNannySetupContext("refcount_objects_in_slice", 0); /* "View.MemoryView":1383 * cdef Py_ssize_t i * * for i in range(shape[0]): # <<<<<<<<<<<<<< * if ndim == 1: * if inc: */ __pyx_t_1 = (__pyx_v_shape[0]); __pyx_t_2 = __pyx_t_1; for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { __pyx_v_i = __pyx_t_3; /* "View.MemoryView":1384 * * for i in range(shape[0]): * if ndim == 1: # <<<<<<<<<<<<<< * if inc: * Py_INCREF(( data)[0]) */ __pyx_t_4 = ((__pyx_v_ndim == 1) != 0); if (__pyx_t_4) { /* "View.MemoryView":1385 * for i in range(shape[0]): * if ndim == 1: * if inc: # <<<<<<<<<<<<<< * Py_INCREF(( data)[0]) * else: */ __pyx_t_4 = (__pyx_v_inc != 0); if (__pyx_t_4) { /* "View.MemoryView":1386 * if ndim == 1: * if inc: * Py_INCREF(( data)[0]) # <<<<<<<<<<<<<< * else: * Py_DECREF(( data)[0]) */ Py_INCREF((((PyObject **)__pyx_v_data)[0])); /* "View.MemoryView":1385 * for i in range(shape[0]): * if ndim == 1: * if inc: # <<<<<<<<<<<<<< * Py_INCREF(( data)[0]) * else: */ goto __pyx_L6; } /* "View.MemoryView":1388 * Py_INCREF(( data)[0]) * else: * Py_DECREF(( data)[0]) # <<<<<<<<<<<<<< * else: * refcount_objects_in_slice(data, shape + 1, strides + 1, */ /*else*/ { Py_DECREF((((PyObject **)__pyx_v_data)[0])); } __pyx_L6:; /* "View.MemoryView":1384 * * for i in range(shape[0]): * if ndim == 1: # <<<<<<<<<<<<<< * if inc: * Py_INCREF(( data)[0]) */ goto __pyx_L5; } /* "View.MemoryView":1390 * Py_DECREF(( data)[0]) * else: * refcount_objects_in_slice(data, shape + 1, strides + 1, # <<<<<<<<<<<<<< * ndim - 1, inc) * */ /*else*/ { /* "View.MemoryView":1391 * else: * refcount_objects_in_slice(data, shape + 1, strides + 1, * ndim - 1, inc) # <<<<<<<<<<<<<< * * data += strides[0] */ __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_inc); } __pyx_L5:; /* "View.MemoryView":1393 * ndim - 1, inc) * * data += strides[0] # <<<<<<<<<<<<<< * * */ __pyx_v_data = (__pyx_v_data + (__pyx_v_strides[0])); } /* "View.MemoryView":1379 * * @cname('__pyx_memoryview_refcount_objects_in_slice') * cdef void refcount_objects_in_slice(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, bint inc): * cdef Py_ssize_t i */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "View.MemoryView":1399 * * @cname('__pyx_memoryview_slice_assign_scalar') * cdef void slice_assign_scalar(__Pyx_memviewslice *dst, int ndim, # <<<<<<<<<<<<<< * size_t itemsize, void *item, * bint dtype_is_object) nogil: */ static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *__pyx_v_dst, int __pyx_v_ndim, size_t __pyx_v_itemsize, void *__pyx_v_item, int __pyx_v_dtype_is_object) { /* "View.MemoryView":1402 * size_t itemsize, void *item, * bint dtype_is_object) nogil: * refcount_copying(dst, dtype_is_object, ndim, False) # <<<<<<<<<<<<<< * _slice_assign_scalar(dst.data, dst.shape, dst.strides, ndim, * itemsize, item) */ __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 0); /* "View.MemoryView":1403 * bint dtype_is_object) nogil: * refcount_copying(dst, dtype_is_object, ndim, False) * _slice_assign_scalar(dst.data, dst.shape, dst.strides, ndim, # <<<<<<<<<<<<<< * itemsize, item) * refcount_copying(dst, dtype_is_object, ndim, True) */ __pyx_memoryview__slice_assign_scalar(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_itemsize, __pyx_v_item); /* "View.MemoryView":1405 * _slice_assign_scalar(dst.data, dst.shape, dst.strides, ndim, * itemsize, item) * refcount_copying(dst, dtype_is_object, ndim, True) # <<<<<<<<<<<<<< * * */ __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 1); /* "View.MemoryView":1399 * * @cname('__pyx_memoryview_slice_assign_scalar') * cdef void slice_assign_scalar(__Pyx_memviewslice *dst, int ndim, # <<<<<<<<<<<<<< * size_t itemsize, void *item, * bint dtype_is_object) nogil: */ /* function exit code */ } /* "View.MemoryView":1409 * * @cname('__pyx_memoryview__slice_assign_scalar') * cdef void _slice_assign_scalar(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, * size_t itemsize, void *item) nogil: */ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, int __pyx_v_ndim, size_t __pyx_v_itemsize, void *__pyx_v_item) { CYTHON_UNUSED Py_ssize_t __pyx_v_i; Py_ssize_t __pyx_v_stride; Py_ssize_t __pyx_v_extent; int __pyx_t_1; Py_ssize_t __pyx_t_2; Py_ssize_t __pyx_t_3; Py_ssize_t __pyx_t_4; /* "View.MemoryView":1413 * size_t itemsize, void *item) nogil: * cdef Py_ssize_t i * cdef Py_ssize_t stride = strides[0] # <<<<<<<<<<<<<< * cdef Py_ssize_t extent = shape[0] * */ __pyx_v_stride = (__pyx_v_strides[0]); /* "View.MemoryView":1414 * cdef Py_ssize_t i * cdef Py_ssize_t stride = strides[0] * cdef Py_ssize_t extent = shape[0] # <<<<<<<<<<<<<< * * if ndim == 1: */ __pyx_v_extent = (__pyx_v_shape[0]); /* "View.MemoryView":1416 * cdef Py_ssize_t extent = shape[0] * * if ndim == 1: # <<<<<<<<<<<<<< * for i in range(extent): * memcpy(data, item, itemsize) */ __pyx_t_1 = ((__pyx_v_ndim == 1) != 0); if (__pyx_t_1) { /* "View.MemoryView":1417 * * if ndim == 1: * for i in range(extent): # <<<<<<<<<<<<<< * memcpy(data, item, itemsize) * data += stride */ __pyx_t_2 = __pyx_v_extent; __pyx_t_3 = __pyx_t_2; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; /* "View.MemoryView":1418 * if ndim == 1: * for i in range(extent): * memcpy(data, item, itemsize) # <<<<<<<<<<<<<< * data += stride * else: */ (void)(memcpy(__pyx_v_data, __pyx_v_item, __pyx_v_itemsize)); /* "View.MemoryView":1419 * for i in range(extent): * memcpy(data, item, itemsize) * data += stride # <<<<<<<<<<<<<< * else: * for i in range(extent): */ __pyx_v_data = (__pyx_v_data + __pyx_v_stride); } /* "View.MemoryView":1416 * cdef Py_ssize_t extent = shape[0] * * if ndim == 1: # <<<<<<<<<<<<<< * for i in range(extent): * memcpy(data, item, itemsize) */ goto __pyx_L3; } /* "View.MemoryView":1421 * data += stride * else: * for i in range(extent): # <<<<<<<<<<<<<< * _slice_assign_scalar(data, shape + 1, strides + 1, * ndim - 1, itemsize, item) */ /*else*/ { __pyx_t_2 = __pyx_v_extent; __pyx_t_3 = __pyx_t_2; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; /* "View.MemoryView":1422 * else: * for i in range(extent): * _slice_assign_scalar(data, shape + 1, strides + 1, # <<<<<<<<<<<<<< * ndim - 1, itemsize, item) * data += stride */ __pyx_memoryview__slice_assign_scalar(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize, __pyx_v_item); /* "View.MemoryView":1424 * _slice_assign_scalar(data, shape + 1, strides + 1, * ndim - 1, itemsize, item) * data += stride # <<<<<<<<<<<<<< * * */ __pyx_v_data = (__pyx_v_data + __pyx_v_stride); } } __pyx_L3:; /* "View.MemoryView":1409 * * @cname('__pyx_memoryview__slice_assign_scalar') * cdef void _slice_assign_scalar(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, * size_t itemsize, void *item) nogil: */ /* function exit code */ } /* "(tree fragment)":1 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum = {"__pyx_unpickle_Enum", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_Enum (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Enum", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Enum", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_Enum") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Enum", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("View.MemoryView.__pyx_unpickle_Enum", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Enum", 0); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xb068931, 0x82a3537, 0x6ae9995): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))" % __pyx_checksum) */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__137, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xb068931, 0x82a3537, 0x6ae9995): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))" % __pyx_checksum) * __pyx_result = Enum.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError); __pyx_t_4 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xb068931, 0x82a3537, 0x6ae9995): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))" % __pyx_checksum) # <<<<<<<<<<<<<< * __pyx_result = Enum.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_INCREF(__pyx_v___pyx_PickleError); __pyx_t_1 = __pyx_v___pyx_PickleError; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xb068931, 0x82a3537, 0x6ae9995): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))" % __pyx_checksum) */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))" % __pyx_checksum) * __pyx_result = Enum.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_Enum__set_state( __pyx_result, __pyx_state) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_MemviewEnum_type), __pyx_n_s_new); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v___pyx_type); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result = __pyx_t_4; __pyx_t_4 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))" % __pyx_checksum) * __pyx_result = Enum.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Enum__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_3 = (__pyx_v___pyx_state != Py_None); __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = Enum.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_Enum__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_4 = __pyx_unpickle_Enum__set_state(((struct __pyx_MemviewEnum_obj *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))" % __pyx_checksum) * __pyx_result = Enum.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Enum__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_Enum__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state): * __pyx_result.name = __pyx_state[0] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("View.MemoryView.__pyx_unpickle_Enum", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_Enum__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.name = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Enum__set_state", 0); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state): * __pyx_result.name = __pyx_state[0] # <<<<<<<<<<<<<< * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->name); __Pyx_DECREF(__pyx_v___pyx_result->name); __pyx_v___pyx_result->name = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state): * __pyx_result.name = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = ((__pyx_t_3 > 1) != 0); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 != 0); __pyx_t_2 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.name = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } __pyx_t_1 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state): * __pyx_result.name = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ } /* "(tree fragment)":11 * __pyx_unpickle_Enum__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.name = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("View.MemoryView.__pyx_unpickle_Enum__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static struct __pyx_vtabstruct_5imgui_4core__Font __pyx_vtable_5imgui_4core__Font; static PyObject *__pyx_tp_new_5imgui_4core__Font(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__Font *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__Font *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__Font; return o; } static void __pyx_tp_dealloc_5imgui_4core__Font(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyMethodDef __pyx_methods_5imgui_4core__Font[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_5_Font_1__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_5_Font___reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_5_Font_3__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_5_Font_2__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__Font = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._Font", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__Font), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__Font, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__Font, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__Font, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiContext __pyx_vtable_5imgui_4core__ImGuiContext; static PyObject *__pyx_tp_new_5imgui_4core__ImGuiContext(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__ImGuiContext *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__ImGuiContext *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__ImGuiContext; return o; } static void __pyx_tp_dealloc_5imgui_4core__ImGuiContext(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__ImGuiContext(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_13_ImGuiContext_1__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_13_ImGuiContext_1__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyMethodDef __pyx_methods_5imgui_4core__ImGuiContext[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_13_ImGuiContext_3__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_13_ImGuiContext_2__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_13_ImGuiContext_5__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_13_ImGuiContext_4__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__ImGuiContext = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._ImGuiContext", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__ImGuiContext), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__ImGuiContext, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__ImGuiContext, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__ImGuiContext, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__ImGuiContext, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__DrawCmd __pyx_vtable_5imgui_4core__DrawCmd; static PyObject *__pyx_tp_new_5imgui_4core__DrawCmd(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__DrawCmd *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__DrawCmd *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__DrawCmd; return o; } static void __pyx_tp_dealloc_5imgui_4core__DrawCmd(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_getprop_5imgui_4core_8_DrawCmd_texture_id(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8_DrawCmd_10texture_id_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_8_DrawCmd_clip_rect(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8_DrawCmd_9clip_rect_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_8_DrawCmd_elem_count(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8_DrawCmd_10elem_count_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__DrawCmd[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_8_DrawCmd_1__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_8_DrawCmd___reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_8_DrawCmd_3__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_8_DrawCmd_2__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__DrawCmd[] = { {(char *)"texture_id", __pyx_getprop_5imgui_4core_8_DrawCmd_texture_id, 0, (char *)0, 0}, {(char *)"clip_rect", __pyx_getprop_5imgui_4core_8_DrawCmd_clip_rect, 0, (char *)0, 0}, {(char *)"elem_count", __pyx_getprop_5imgui_4core_8_DrawCmd_elem_count, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__DrawCmd = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._DrawCmd", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__DrawCmd), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__DrawCmd, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__DrawCmd, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__DrawCmd, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__DrawCmd, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__DrawList __pyx_vtable_5imgui_4core__DrawList; static PyObject *__pyx_tp_new_5imgui_4core__DrawList(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__DrawList *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__DrawList *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__DrawList; return o; } static void __pyx_tp_dealloc_5imgui_4core__DrawList(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawList_cmd_buffer_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawList_15cmd_buffer_size_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawList_cmd_buffer_data(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawList_15cmd_buffer_data_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawList_vtx_buffer_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawList_15vtx_buffer_size_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawList_vtx_buffer_data(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawList_15vtx_buffer_data_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawList_idx_buffer_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawList_15idx_buffer_size_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawList_idx_buffer_data(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawList_15idx_buffer_data_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawList_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawList_5flags_1__get__(o); } static int __pyx_setprop_5imgui_4core_9_DrawList_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_9_DrawList_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_9_DrawList_commands(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawList_8commands_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__DrawList[] = { {"push_clip_rect", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_1push_clip_rect, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_push_clip_rect}, {"push_clip_rect_full_screen", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_3push_clip_rect_full_screen, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawList_2push_clip_rect_full_screen}, {"pop_clip_rect", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_5pop_clip_rect, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawList_4pop_clip_rect}, {"push_texture_id", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_7push_texture_id, METH_O, __pyx_doc_5imgui_4core_9_DrawList_6push_texture_id}, {"pop_texture_id", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_9pop_texture_id, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawList_8pop_texture_id}, {"get_clip_rect_min", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_11get_clip_rect_min, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawList_10get_clip_rect_min}, {"get_clip_rect_max", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_13get_clip_rect_max, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawList_12get_clip_rect_max}, {"add_line", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_15add_line, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_14add_line}, {"add_rect", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_17add_rect, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_16add_rect}, {"add_rect_filled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_19add_rect_filled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_18add_rect_filled}, {"add_rect_filled_multicolor", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_21add_rect_filled_multicolor, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_20add_rect_filled_multicolor}, {"add_quad", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_23add_quad, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_22add_quad}, {"add_quad_filled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_25add_quad_filled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_24add_quad_filled}, {"add_triangle", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_27add_triangle, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_26add_triangle}, {"add_triangle_filled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_29add_triangle_filled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_28add_triangle_filled}, {"add_bezier_cubic", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_31add_bezier_cubic, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_30add_bezier_cubic}, {"add_bezier_quadratic", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_33add_bezier_quadratic, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_32add_bezier_quadratic}, {"add_circle", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_35add_circle, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_34add_circle}, {"add_circle_filled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_37add_circle_filled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_36add_circle_filled}, {"add_ngon", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_39add_ngon, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_38add_ngon}, {"add_ngon_filled", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_41add_ngon_filled, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_40add_ngon_filled}, {"add_text", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_43add_text, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_42add_text}, {"add_image", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_45add_image, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_44add_image}, {"add_image_rounded", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_47add_image_rounded, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_46add_image_rounded}, {"add_polyline", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_49add_polyline, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_48add_polyline}, {"path_clear", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_51path_clear, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawList_50path_clear}, {"path_line_to", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_53path_line_to, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_52path_line_to}, {"path_arc_to", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_55path_arc_to, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_54path_arc_to}, {"path_arc_to_fast", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_57path_arc_to_fast, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_56path_arc_to_fast}, {"path_rect", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_59path_rect, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_58path_rect}, {"path_fill_convex", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_61path_fill_convex, METH_O, __pyx_doc_5imgui_4core_9_DrawList_60path_fill_convex}, {"path_stroke", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_63path_stroke, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_62path_stroke}, {"channels_split", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_65channels_split, METH_O, __pyx_doc_5imgui_4core_9_DrawList_64channels_split}, {"channels_set_current", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_67channels_set_current, METH_O, __pyx_doc_5imgui_4core_9_DrawList_66channels_set_current}, {"channels_merge", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_69channels_merge, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawList_68channels_merge}, {"prim_reserve", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_71prim_reserve, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_70prim_reserve}, {"prim_unreserve", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_73prim_unreserve, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_72prim_unreserve}, {"prim_rect", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_75prim_rect, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_74prim_rect}, {"prim_rect_UV", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_77prim_rect_UV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_76prim_rect_UV}, {"prim_quad_UV", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_79prim_quad_UV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_78prim_quad_UV}, {"prim_write_vtx", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_81prim_write_vtx, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_80prim_write_vtx}, {"prim_write_idx", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_83prim_write_idx, METH_O, __pyx_doc_5imgui_4core_9_DrawList_82prim_write_idx}, {"prim_vtx", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawList_85prim_vtx, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawList_84prim_vtx}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_87__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawList_86__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawList_89__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_9_DrawList_88__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__DrawList[] = { {(char *)"cmd_buffer_size", __pyx_getprop_5imgui_4core_9_DrawList_cmd_buffer_size, 0, (char *)0, 0}, {(char *)"cmd_buffer_data", __pyx_getprop_5imgui_4core_9_DrawList_cmd_buffer_data, 0, (char *)0, 0}, {(char *)"vtx_buffer_size", __pyx_getprop_5imgui_4core_9_DrawList_vtx_buffer_size, 0, (char *)0, 0}, {(char *)"vtx_buffer_data", __pyx_getprop_5imgui_4core_9_DrawList_vtx_buffer_data, 0, (char *)0, 0}, {(char *)"idx_buffer_size", __pyx_getprop_5imgui_4core_9_DrawList_idx_buffer_size, 0, (char *)0, 0}, {(char *)"idx_buffer_data", __pyx_getprop_5imgui_4core_9_DrawList_idx_buffer_data, 0, (char *)0, 0}, {(char *)"flags", __pyx_getprop_5imgui_4core_9_DrawList_flags, __pyx_setprop_5imgui_4core_9_DrawList_flags, (char *)0, 0}, {(char *)"commands", __pyx_getprop_5imgui_4core_9_DrawList_commands, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__DrawList = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._DrawList", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__DrawList), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__DrawList, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ " Low level drawing API.\n\n _DrawList instance can be acquired by calling :func:`get_window_draw_list`.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__DrawList, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__DrawList, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__DrawList, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__Colors __pyx_vtable_5imgui_4core__Colors; static PyObject *__pyx_tp_new_5imgui_4core__Colors(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__Colors *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__Colors *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__Colors; p->_style = ((struct __pyx_obj_5imgui_4core_GuiStyle *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_5imgui_4core_7_Colors_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__Colors(PyObject *o) { struct __pyx_obj_5imgui_4core__Colors *p = (struct __pyx_obj_5imgui_4core__Colors *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->_style); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_5imgui_4core__Colors(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core__Colors *p = (struct __pyx_obj_5imgui_4core__Colors *)o; if (p->_style) { e = (*v)(((PyObject *)p->_style), a); if (e) return e; } return 0; } static int __pyx_tp_clear_5imgui_4core__Colors(PyObject *o) { PyObject* tmp; struct __pyx_obj_5imgui_4core__Colors *p = (struct __pyx_obj_5imgui_4core__Colors *)o; tmp = ((PyObject*)p->_style); p->_style = ((struct __pyx_obj_5imgui_4core_GuiStyle *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_sq_item_5imgui_4core__Colors(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static int __pyx_mp_ass_subscript_5imgui_4core__Colors(PyObject *o, PyObject *i, PyObject *v) { if (v) { return __pyx_pw_5imgui_4core_7_Colors_7__setitem__(o, i, v); } else { PyErr_Format(PyExc_NotImplementedError, "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name); return -1; } } static PyMethodDef __pyx_methods_5imgui_4core__Colors[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_7_Colors_9__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_7_Colors_8__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_7_Colors_11__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_7_Colors_10__setstate_cython__}, {0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence__Colors = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_5imgui_4core__Colors, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping__Colors = { 0, /*mp_length*/ __pyx_pw_5imgui_4core_7_Colors_5__getitem__, /*mp_subscript*/ __pyx_mp_ass_subscript_5imgui_4core__Colors, /*mp_ass_subscript*/ }; static PyTypeObject __pyx_type_5imgui_4core__Colors = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._Colors", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__Colors), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__Colors, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence__Colors, /*tp_as_sequence*/ &__pyx_tp_as_mapping__Colors, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "_Colors(GuiStyle gui_style)", /*tp_doc*/ __pyx_tp_traverse_5imgui_4core__Colors, /*tp_traverse*/ __pyx_tp_clear_5imgui_4core__Colors, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__Colors, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_7_Colors_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__Colors, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core_GuiStyle __pyx_vtable_5imgui_4core_GuiStyle; static PyObject *__pyx_tp_new_5imgui_4core_GuiStyle(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core_GuiStyle *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core_GuiStyle *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core_GuiStyle; p->_colors = ((struct __pyx_obj_5imgui_4core__Colors *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_5imgui_4core_8GuiStyle_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core_GuiStyle(PyObject *o) { struct __pyx_obj_5imgui_4core_GuiStyle *p = (struct __pyx_obj_5imgui_4core_GuiStyle *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1); __pyx_pw_5imgui_4core_8GuiStyle_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_colors); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_5imgui_4core_GuiStyle(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core_GuiStyle *p = (struct __pyx_obj_5imgui_4core_GuiStyle *)o; if (p->_colors) { e = (*v)(((PyObject *)p->_colors), a); if (e) return e; } return 0; } static int __pyx_tp_clear_5imgui_4core_GuiStyle(PyObject *o) { PyObject* tmp; struct __pyx_obj_5imgui_4core_GuiStyle *p = (struct __pyx_obj_5imgui_4core_GuiStyle *)o; tmp = ((PyObject*)p->_colors); p->_colors = ((struct __pyx_obj_5imgui_4core__Colors *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_tp_richcompare_5imgui_4core_GuiStyle(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_8GuiStyle_5__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_8GuiStyle_5__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_alpha(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_5alpha_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_alpha(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_5alpha_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_window_padding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_14window_padding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_window_padding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_14window_padding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_window_min_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_15window_min_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_window_min_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_15window_min_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_window_rounding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_15window_rounding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_window_rounding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_15window_rounding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_window_border_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_18window_border_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_window_border_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_18window_border_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_child_rounding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_14child_rounding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_child_rounding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_14child_rounding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_child_border_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_17child_border_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_child_border_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_17child_border_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_popup_rounding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_14popup_rounding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_popup_rounding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_14popup_rounding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_popup_border_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_17popup_border_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_popup_border_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_17popup_border_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_window_title_align(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_18window_title_align_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_window_title_align(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_18window_title_align_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_window_menu_button_position(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_27window_menu_button_position_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_window_menu_button_position(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_27window_menu_button_position_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_frame_padding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_13frame_padding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_frame_padding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_13frame_padding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_frame_rounding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_14frame_rounding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_frame_rounding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_14frame_rounding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_frame_border_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_17frame_border_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_frame_border_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_17frame_border_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_item_spacing(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_12item_spacing_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_item_spacing(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_12item_spacing_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_item_inner_spacing(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_18item_inner_spacing_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_item_inner_spacing(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_18item_inner_spacing_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_cell_padding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_12cell_padding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_cell_padding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_12cell_padding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_touch_extra_padding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_19touch_extra_padding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_touch_extra_padding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_19touch_extra_padding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_indent_spacing(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_14indent_spacing_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_indent_spacing(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_14indent_spacing_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_columns_min_spacing(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_19columns_min_spacing_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_columns_min_spacing(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_19columns_min_spacing_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_scrollbar_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_14scrollbar_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_scrollbar_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_14scrollbar_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_scrollbar_rounding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_18scrollbar_rounding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_scrollbar_rounding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_18scrollbar_rounding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_grab_min_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_13grab_min_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_grab_min_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_13grab_min_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_grab_rounding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_13grab_rounding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_grab_rounding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_13grab_rounding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_log_slider_deadzone(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_19log_slider_deadzone_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_log_slider_deadzone(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_19log_slider_deadzone_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_tab_rounding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_12tab_rounding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_tab_rounding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_12tab_rounding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_tab_border_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_15tab_border_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_tab_border_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_15tab_border_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_tab_min_width_for_close_button(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_tab_min_width_for_close_button(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_30tab_min_width_for_close_button_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_color_button_position(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_21color_button_position_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_color_button_position(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_21color_button_position_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_button_text_align(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_17button_text_align_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_button_text_align(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_17button_text_align_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_selectable_text_align(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_21selectable_text_align_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_selectable_text_align(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_21selectable_text_align_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_display_window_padding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_22display_window_padding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_display_window_padding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_22display_window_padding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_display_safe_area_padding(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_25display_safe_area_padding_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_display_safe_area_padding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_25display_safe_area_padding_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_mouse_cursor_scale(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_18mouse_cursor_scale_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_mouse_cursor_scale(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_18mouse_cursor_scale_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_anti_aliased_lines(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_18anti_aliased_lines_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_anti_aliased_lines(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_18anti_aliased_lines_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_anti_aliased_line_use_tex(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_anti_aliased_line_use_tex(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_25anti_aliased_line_use_tex_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_anti_aliased_fill(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_17anti_aliased_fill_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_anti_aliased_fill(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_17anti_aliased_fill_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_curve_tessellation_tolerance(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_curve_tessellation_tolerance(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_28curve_tessellation_tolerance_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_circle_segment_max_error(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_24circle_segment_max_error_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_circle_segment_max_error(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_24circle_segment_max_error_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_circle_tessellation_max_error(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_1__get__(o); } static int __pyx_setprop_5imgui_4core_8GuiStyle_circle_tessellation_max_error(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_8GuiStyle_29circle_tessellation_max_error_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_8GuiStyle_colors(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_8GuiStyle_6colors_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core_GuiStyle[] = { {"create", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_8GuiStyle_7create, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_8GuiStyle_6create}, {"color", (PyCFunction)__pyx_pw_5imgui_4core_8GuiStyle_9color, METH_O, __pyx_doc_5imgui_4core_8GuiStyle_8color}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_8GuiStyle_11__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_8GuiStyle_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_8GuiStyle_13__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_8GuiStyle_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core_GuiStyle[] = { {(char *)"alpha", __pyx_getprop_5imgui_4core_8GuiStyle_alpha, __pyx_setprop_5imgui_4core_8GuiStyle_alpha, (char *)"Global alpha blending parameter for windows\n\n Returns:\n float\n ", 0}, {(char *)"window_padding", __pyx_getprop_5imgui_4core_8GuiStyle_window_padding, __pyx_setprop_5imgui_4core_8GuiStyle_window_padding, (char *)0, 0}, {(char *)"window_min_size", __pyx_getprop_5imgui_4core_8GuiStyle_window_min_size, __pyx_setprop_5imgui_4core_8GuiStyle_window_min_size, (char *)0, 0}, {(char *)"window_rounding", __pyx_getprop_5imgui_4core_8GuiStyle_window_rounding, __pyx_setprop_5imgui_4core_8GuiStyle_window_rounding, (char *)0, 0}, {(char *)"window_border_size", __pyx_getprop_5imgui_4core_8GuiStyle_window_border_size, __pyx_setprop_5imgui_4core_8GuiStyle_window_border_size, (char *)0, 0}, {(char *)"child_rounding", __pyx_getprop_5imgui_4core_8GuiStyle_child_rounding, __pyx_setprop_5imgui_4core_8GuiStyle_child_rounding, (char *)0, 0}, {(char *)"child_border_size", __pyx_getprop_5imgui_4core_8GuiStyle_child_border_size, __pyx_setprop_5imgui_4core_8GuiStyle_child_border_size, (char *)0, 0}, {(char *)"popup_rounding", __pyx_getprop_5imgui_4core_8GuiStyle_popup_rounding, __pyx_setprop_5imgui_4core_8GuiStyle_popup_rounding, (char *)0, 0}, {(char *)"popup_border_size", __pyx_getprop_5imgui_4core_8GuiStyle_popup_border_size, __pyx_setprop_5imgui_4core_8GuiStyle_popup_border_size, (char *)0, 0}, {(char *)"window_title_align", __pyx_getprop_5imgui_4core_8GuiStyle_window_title_align, __pyx_setprop_5imgui_4core_8GuiStyle_window_title_align, (char *)0, 0}, {(char *)"window_menu_button_position", __pyx_getprop_5imgui_4core_8GuiStyle_window_menu_button_position, __pyx_setprop_5imgui_4core_8GuiStyle_window_menu_button_position, (char *)0, 0}, {(char *)"frame_padding", __pyx_getprop_5imgui_4core_8GuiStyle_frame_padding, __pyx_setprop_5imgui_4core_8GuiStyle_frame_padding, (char *)0, 0}, {(char *)"frame_rounding", __pyx_getprop_5imgui_4core_8GuiStyle_frame_rounding, __pyx_setprop_5imgui_4core_8GuiStyle_frame_rounding, (char *)0, 0}, {(char *)"frame_border_size", __pyx_getprop_5imgui_4core_8GuiStyle_frame_border_size, __pyx_setprop_5imgui_4core_8GuiStyle_frame_border_size, (char *)0, 0}, {(char *)"item_spacing", __pyx_getprop_5imgui_4core_8GuiStyle_item_spacing, __pyx_setprop_5imgui_4core_8GuiStyle_item_spacing, (char *)0, 0}, {(char *)"item_inner_spacing", __pyx_getprop_5imgui_4core_8GuiStyle_item_inner_spacing, __pyx_setprop_5imgui_4core_8GuiStyle_item_inner_spacing, (char *)0, 0}, {(char *)"cell_padding", __pyx_getprop_5imgui_4core_8GuiStyle_cell_padding, __pyx_setprop_5imgui_4core_8GuiStyle_cell_padding, (char *)0, 0}, {(char *)"touch_extra_padding", __pyx_getprop_5imgui_4core_8GuiStyle_touch_extra_padding, __pyx_setprop_5imgui_4core_8GuiStyle_touch_extra_padding, (char *)0, 0}, {(char *)"indent_spacing", __pyx_getprop_5imgui_4core_8GuiStyle_indent_spacing, __pyx_setprop_5imgui_4core_8GuiStyle_indent_spacing, (char *)0, 0}, {(char *)"columns_min_spacing", __pyx_getprop_5imgui_4core_8GuiStyle_columns_min_spacing, __pyx_setprop_5imgui_4core_8GuiStyle_columns_min_spacing, (char *)0, 0}, {(char *)"scrollbar_size", __pyx_getprop_5imgui_4core_8GuiStyle_scrollbar_size, __pyx_setprop_5imgui_4core_8GuiStyle_scrollbar_size, (char *)0, 0}, {(char *)"scrollbar_rounding", __pyx_getprop_5imgui_4core_8GuiStyle_scrollbar_rounding, __pyx_setprop_5imgui_4core_8GuiStyle_scrollbar_rounding, (char *)0, 0}, {(char *)"grab_min_size", __pyx_getprop_5imgui_4core_8GuiStyle_grab_min_size, __pyx_setprop_5imgui_4core_8GuiStyle_grab_min_size, (char *)0, 0}, {(char *)"grab_rounding", __pyx_getprop_5imgui_4core_8GuiStyle_grab_rounding, __pyx_setprop_5imgui_4core_8GuiStyle_grab_rounding, (char *)0, 0}, {(char *)"log_slider_deadzone", __pyx_getprop_5imgui_4core_8GuiStyle_log_slider_deadzone, __pyx_setprop_5imgui_4core_8GuiStyle_log_slider_deadzone, (char *)0, 0}, {(char *)"tab_rounding", __pyx_getprop_5imgui_4core_8GuiStyle_tab_rounding, __pyx_setprop_5imgui_4core_8GuiStyle_tab_rounding, (char *)0, 0}, {(char *)"tab_border_size", __pyx_getprop_5imgui_4core_8GuiStyle_tab_border_size, __pyx_setprop_5imgui_4core_8GuiStyle_tab_border_size, (char *)0, 0}, {(char *)"tab_min_width_for_close_button", __pyx_getprop_5imgui_4core_8GuiStyle_tab_min_width_for_close_button, __pyx_setprop_5imgui_4core_8GuiStyle_tab_min_width_for_close_button, (char *)0, 0}, {(char *)"color_button_position", __pyx_getprop_5imgui_4core_8GuiStyle_color_button_position, __pyx_setprop_5imgui_4core_8GuiStyle_color_button_position, (char *)0, 0}, {(char *)"button_text_align", __pyx_getprop_5imgui_4core_8GuiStyle_button_text_align, __pyx_setprop_5imgui_4core_8GuiStyle_button_text_align, (char *)0, 0}, {(char *)"selectable_text_align", __pyx_getprop_5imgui_4core_8GuiStyle_selectable_text_align, __pyx_setprop_5imgui_4core_8GuiStyle_selectable_text_align, (char *)0, 0}, {(char *)"display_window_padding", __pyx_getprop_5imgui_4core_8GuiStyle_display_window_padding, __pyx_setprop_5imgui_4core_8GuiStyle_display_window_padding, (char *)0, 0}, {(char *)"display_safe_area_padding", __pyx_getprop_5imgui_4core_8GuiStyle_display_safe_area_padding, __pyx_setprop_5imgui_4core_8GuiStyle_display_safe_area_padding, (char *)0, 0}, {(char *)"mouse_cursor_scale", __pyx_getprop_5imgui_4core_8GuiStyle_mouse_cursor_scale, __pyx_setprop_5imgui_4core_8GuiStyle_mouse_cursor_scale, (char *)0, 0}, {(char *)"anti_aliased_lines", __pyx_getprop_5imgui_4core_8GuiStyle_anti_aliased_lines, __pyx_setprop_5imgui_4core_8GuiStyle_anti_aliased_lines, (char *)0, 0}, {(char *)"anti_aliased_line_use_tex", __pyx_getprop_5imgui_4core_8GuiStyle_anti_aliased_line_use_tex, __pyx_setprop_5imgui_4core_8GuiStyle_anti_aliased_line_use_tex, (char *)0, 0}, {(char *)"anti_aliased_fill", __pyx_getprop_5imgui_4core_8GuiStyle_anti_aliased_fill, __pyx_setprop_5imgui_4core_8GuiStyle_anti_aliased_fill, (char *)0, 0}, {(char *)"curve_tessellation_tolerance", __pyx_getprop_5imgui_4core_8GuiStyle_curve_tessellation_tolerance, __pyx_setprop_5imgui_4core_8GuiStyle_curve_tessellation_tolerance, (char *)0, 0}, {(char *)"circle_segment_max_error", __pyx_getprop_5imgui_4core_8GuiStyle_circle_segment_max_error, __pyx_setprop_5imgui_4core_8GuiStyle_circle_segment_max_error, (char *)0, 0}, {(char *)"circle_tessellation_max_error", __pyx_getprop_5imgui_4core_8GuiStyle_circle_tessellation_max_error, __pyx_setprop_5imgui_4core_8GuiStyle_circle_tessellation_max_error, (char *)0, 0}, {(char *)"colors", __pyx_getprop_5imgui_4core_8GuiStyle_colors, 0, (char *)"Retrieve and modify style colors through list-like interface.\n\n .. visual-example::\n :width: 700\n :height: 500\n :auto_layout:\n\n style = imgui.get_style()\n imgui.begin(\"Color window\")\n imgui.columns(4)\n for color in range(0, imgui.COLOR_COUNT):\n imgui.text(\"Color: {}\".format(color))\n imgui.color_button(\"color#{}\".format(color), *style.colors[color])\n imgui.next_column()\n\n imgui.end()\n ", 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core_GuiStyle = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.GuiStyle", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core_GuiStyle), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core_GuiStyle, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n Container for ImGui style information\n\n ", /*tp_doc*/ __pyx_tp_traverse_5imgui_4core_GuiStyle, /*tp_traverse*/ __pyx_tp_clear_5imgui_4core_GuiStyle, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core_GuiStyle, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core_GuiStyle, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core_GuiStyle, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core_GuiStyle, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs __pyx_vtable_5imgui_4core__ImGuiTableColumnSortSpecs; static PyObject *__pyx_tp_new_5imgui_4core__ImGuiTableColumnSortSpecs(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__ImGuiTableColumnSortSpecs; return o; } static void __pyx_tp_dealloc_5imgui_4core__ImGuiTableColumnSortSpecs(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_getprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_column_user_id(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_1__get__(o); } static int __pyx_setprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_column_user_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14column_user_id_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_column_index(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_1__get__(o); } static int __pyx_setprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_column_index(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_12column_index_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_sort_order(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_1__get__(o); } static int __pyx_setprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_sort_order(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_10sort_order_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_sort_direction(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_1__get__(o); } static int __pyx_setprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_sort_direction(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_14sort_direction_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyMethodDef __pyx_methods_5imgui_4core__ImGuiTableColumnSortSpecs[] = { {"_require_pointer", (PyCFunction)__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_3_require_pointer, METH_NOARGS, __pyx_doc_5imgui_4core_26_ImGuiTableColumnSortSpecs_2_require_pointer}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_5__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_26_ImGuiTableColumnSortSpecs_4__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_7__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_26_ImGuiTableColumnSortSpecs_6__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__ImGuiTableColumnSortSpecs[] = { {(char *)"column_user_id", __pyx_getprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_column_user_id, __pyx_setprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_column_user_id, (char *)0, 0}, {(char *)"column_index", __pyx_getprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_column_index, __pyx_setprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_column_index, (char *)0, 0}, {(char *)"sort_order", __pyx_getprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_sort_order, __pyx_setprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_sort_order, (char *)0, 0}, {(char *)"sort_direction", __pyx_getprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_sort_direction, __pyx_setprop_5imgui_4core_26_ImGuiTableColumnSortSpecs_sort_direction, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._ImGuiTableColumnSortSpecs", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__ImGuiTableColumnSortSpecs, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "_ImGuiTableColumnSortSpecs()", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__ImGuiTableColumnSortSpecs, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__ImGuiTableColumnSortSpecs, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_26_ImGuiTableColumnSortSpecs_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__ImGuiTableColumnSortSpecs, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiTableColumnSortSpecs_array __pyx_vtable_5imgui_4core__ImGuiTableColumnSortSpecs_array; static PyObject *__pyx_tp_new_5imgui_4core__ImGuiTableColumnSortSpecs_array(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__ImGuiTableColumnSortSpecs_array; return o; } static void __pyx_tp_dealloc_5imgui_4core__ImGuiTableColumnSortSpecs_array(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_sq_item_5imgui_4core__ImGuiTableColumnSortSpecs_array(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static PyObject *__pyx_specialmethod___pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_9__next__(PyObject *self, CYTHON_UNUSED PyObject *arg) {return __pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_9__next__(self);} static PyMethodDef __pyx_methods_5imgui_4core__ImGuiTableColumnSortSpecs_array[] = { {"_require_pointer", (PyCFunction)__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_3_require_pointer, METH_NOARGS, __pyx_doc_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_2_require_pointer}, {"__next__", (PyCFunction)__pyx_specialmethod___pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_9__next__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_11__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_13__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_12__setstate_cython__}, {0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence__ImGuiTableColumnSortSpecs_array = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_5imgui_4core__ImGuiTableColumnSortSpecs_array, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping__ImGuiTableColumnSortSpecs_array = { 0, /*mp_length*/ __pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_5__getitem__, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyTypeObject __pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._ImGuiTableColumnSortSpecs_array", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__ImGuiTableColumnSortSpecs_array, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence__ImGuiTableColumnSortSpecs_array, /*tp_as_sequence*/ &__pyx_tp_as_mapping__ImGuiTableColumnSortSpecs_array, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "_ImGuiTableColumnSortSpecs_array()", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ __pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_7__iter__, /*tp_iter*/ __pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_9__next__, /*tp_iternext*/ __pyx_methods_5imgui_4core__ImGuiTableColumnSortSpecs_array, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__ImGuiTableColumnSortSpecs_array, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiTableSortSpecs __pyx_vtable_5imgui_4core__ImGuiTableSortSpecs; static PyObject *__pyx_tp_new_5imgui_4core__ImGuiTableSortSpecs(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__ImGuiTableSortSpecs; p->specs = ((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_5imgui_4core__ImGuiTableSortSpecs(PyObject *o) { struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *p = (struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->specs); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_5imgui_4core__ImGuiTableSortSpecs(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *p = (struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)o; if (p->specs) { e = (*v)(((PyObject *)p->specs), a); if (e) return e; } return 0; } static int __pyx_tp_clear_5imgui_4core__ImGuiTableSortSpecs(PyObject *o) { PyObject* tmp; struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *p = (struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs *)o; tmp = ((PyObject*)p->specs); p->specs = ((struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_5imgui_4core_20_ImGuiTableSortSpecs_specs(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_5specs_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_20_ImGuiTableSortSpecs_specs_count(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_count_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_20_ImGuiTableSortSpecs_specs_dirty(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_1__get__(o); } static int __pyx_setprop_5imgui_4core_20_ImGuiTableSortSpecs_specs_dirty(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_11specs_dirty_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyMethodDef __pyx_methods_5imgui_4core__ImGuiTableSortSpecs[] = { {"_require_pointer", (PyCFunction)__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_3_require_pointer, METH_NOARGS, __pyx_doc_5imgui_4core_20_ImGuiTableSortSpecs_2_require_pointer}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_5__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_20_ImGuiTableSortSpecs_4__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_7__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_20_ImGuiTableSortSpecs_6__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__ImGuiTableSortSpecs[] = { {(char *)"specs", __pyx_getprop_5imgui_4core_20_ImGuiTableSortSpecs_specs, 0, (char *)0, 0}, {(char *)"specs_count", __pyx_getprop_5imgui_4core_20_ImGuiTableSortSpecs_specs_count, 0, (char *)0, 0}, {(char *)"specs_dirty", __pyx_getprop_5imgui_4core_20_ImGuiTableSortSpecs_specs_dirty, __pyx_setprop_5imgui_4core_20_ImGuiTableSortSpecs_specs_dirty, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__ImGuiTableSortSpecs = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._ImGuiTableSortSpecs", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__ImGuiTableSortSpecs), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__ImGuiTableSortSpecs, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "_ImGuiTableSortSpecs()", /*tp_doc*/ __pyx_tp_traverse_5imgui_4core__ImGuiTableSortSpecs, /*tp_traverse*/ __pyx_tp_clear_5imgui_4core__ImGuiTableSortSpecs, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__ImGuiTableSortSpecs, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__ImGuiTableSortSpecs, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_20_ImGuiTableSortSpecs_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__ImGuiTableSortSpecs, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiViewport __pyx_vtable_5imgui_4core__ImGuiViewport; static PyObject *__pyx_tp_new_5imgui_4core__ImGuiViewport(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__ImGuiViewport *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__ImGuiViewport *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__ImGuiViewport; return o; } static void __pyx_tp_dealloc_5imgui_4core__ImGuiViewport(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_getprop_5imgui_4core_14_ImGuiViewport_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_ImGuiViewport_5flags_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_14_ImGuiViewport_pos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_ImGuiViewport_3pos_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_14_ImGuiViewport_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_ImGuiViewport_4size_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_14_ImGuiViewport_work_pos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_ImGuiViewport_8work_pos_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_14_ImGuiViewport_work_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_ImGuiViewport_9work_size_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__ImGuiViewport[] = { {"_require_pointer", (PyCFunction)__pyx_pw_5imgui_4core_14_ImGuiViewport_3_require_pointer, METH_NOARGS, __pyx_doc_5imgui_4core_14_ImGuiViewport_2_require_pointer}, {"get_center", (PyCFunction)__pyx_pw_5imgui_4core_14_ImGuiViewport_5get_center, METH_NOARGS, __pyx_doc_5imgui_4core_14_ImGuiViewport_4get_center}, {"get_work_center", (PyCFunction)__pyx_pw_5imgui_4core_14_ImGuiViewport_7get_work_center, METH_NOARGS, __pyx_doc_5imgui_4core_14_ImGuiViewport_6get_work_center}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_ImGuiViewport_9__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_14_ImGuiViewport_8__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_ImGuiViewport_11__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_14_ImGuiViewport_10__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__ImGuiViewport[] = { {(char *)"flags", __pyx_getprop_5imgui_4core_14_ImGuiViewport_flags, 0, (char *)0, 0}, {(char *)"pos", __pyx_getprop_5imgui_4core_14_ImGuiViewport_pos, 0, (char *)"Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates)", 0}, {(char *)"size", __pyx_getprop_5imgui_4core_14_ImGuiViewport_size, 0, (char *)"Main Area: Size of the viewport.", 0}, {(char *)"work_pos", __pyx_getprop_5imgui_4core_14_ImGuiViewport_work_pos, 0, (char *)"Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos)", 0}, {(char *)"work_size", __pyx_getprop_5imgui_4core_14_ImGuiViewport_work_size, 0, (char *)"Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size)", 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__ImGuiViewport = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._ImGuiViewport", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__ImGuiViewport), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__ImGuiViewport, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "_ImGuiViewport()\nCurrently represents the Platform Window created by the application which is hosting our Dear ImGui windows.\n \n About Main Area vs Work Area:\n - Main Area = entire viewport.\n - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).\n - Windows are generally trying to stay within the Work Area of their host viewport.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__ImGuiViewport, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__ImGuiViewport, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_14_ImGuiViewport_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__ImGuiViewport, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__DrawData __pyx_vtable_5imgui_4core__DrawData; static PyObject *__pyx_tp_new_5imgui_4core__DrawData(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__DrawData *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__DrawData *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__DrawData; return o; } static void __pyx_tp_dealloc_5imgui_4core__DrawData(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawData_valid(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawData_5valid_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawData_cmd_count(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawData_9cmd_count_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawData_total_vtx_count(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawData_15total_vtx_count_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawData_display_pos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawData_11display_pos_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawData_display_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawData_12display_size_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawData_frame_buffer_scale(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawData_18frame_buffer_scale_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawData_total_idx_count(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawData_15total_idx_count_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_DrawData_commands_lists(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_DrawData_14commands_lists_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__DrawData[] = { {"_require_pointer", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawData_3_require_pointer, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawData_2_require_pointer}, {"deindex_all_buffers", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawData_5deindex_all_buffers, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawData_4deindex_all_buffers}, {"scale_clip_rects", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_DrawData_7scale_clip_rects, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_DrawData_6scale_clip_rects}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawData_9__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_9_DrawData_8__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_9_DrawData_11__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_9_DrawData_10__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__DrawData[] = { {(char *)"valid", __pyx_getprop_5imgui_4core_9_DrawData_valid, 0, (char *)0, 0}, {(char *)"cmd_count", __pyx_getprop_5imgui_4core_9_DrawData_cmd_count, 0, (char *)0, 0}, {(char *)"total_vtx_count", __pyx_getprop_5imgui_4core_9_DrawData_total_vtx_count, 0, (char *)0, 0}, {(char *)"display_pos", __pyx_getprop_5imgui_4core_9_DrawData_display_pos, 0, (char *)0, 0}, {(char *)"display_size", __pyx_getprop_5imgui_4core_9_DrawData_display_size, 0, (char *)0, 0}, {(char *)"frame_buffer_scale", __pyx_getprop_5imgui_4core_9_DrawData_frame_buffer_scale, 0, (char *)0, 0}, {(char *)"total_idx_count", __pyx_getprop_5imgui_4core_9_DrawData_total_idx_count, 0, (char *)0, 0}, {(char *)"commands_lists", __pyx_getprop_5imgui_4core_9_DrawData_commands_lists, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__DrawData = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._DrawData", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__DrawData), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__DrawData, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "_DrawData()", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__DrawData, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__DrawData, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_9_DrawData_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__DrawData, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__StaticGlyphRanges __pyx_vtable_5imgui_4core__StaticGlyphRanges; static PyObject *__pyx_tp_new_5imgui_4core__StaticGlyphRanges(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__StaticGlyphRanges *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__StaticGlyphRanges *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__StaticGlyphRanges; return o; } static void __pyx_tp_dealloc_5imgui_4core__StaticGlyphRanges(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyMethodDef __pyx_methods_5imgui_4core__StaticGlyphRanges[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_18_StaticGlyphRanges_1__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_18_StaticGlyphRanges___reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_18_StaticGlyphRanges_3__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_18_StaticGlyphRanges_2__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__StaticGlyphRanges = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._StaticGlyphRanges", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__StaticGlyphRanges), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__StaticGlyphRanges, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__StaticGlyphRanges, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__StaticGlyphRanges, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core_GlyphRanges(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; return o; } static void __pyx_tp_dealloc_5imgui_4core_GlyphRanges(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyMethodDef __pyx_methods_5imgui_4core_GlyphRanges[] = { {"__del__", (PyCFunction)__pyx_pw_5imgui_4core_11GlyphRanges_3__del__, METH_NOARGS, __pyx_doc_5imgui_4core_11GlyphRanges_2__del__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_11GlyphRanges_5__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_11GlyphRanges_4__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_11GlyphRanges_7__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_11GlyphRanges_6__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core_GlyphRanges = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.GlyphRanges", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core_GlyphRanges), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core_GlyphRanges, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "GlyphRanges(glyph_ranges)", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core_GlyphRanges, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_11GlyphRanges_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core_GlyphRanges, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core_FontConfig(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core_FontConfig *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core_FontConfig *)o); new((void*)&(p->config)) ImFontConfig(); return o; } static void __pyx_tp_dealloc_5imgui_4core_FontConfig(PyObject *o) { struct __pyx_obj_5imgui_4core_FontConfig *p = (struct __pyx_obj_5imgui_4core_FontConfig *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif __Pyx_call_destructor(p->config); (*Py_TYPE(o)->tp_free)(o); } static PyMethodDef __pyx_methods_5imgui_4core_FontConfig[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_10FontConfig_3__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_10FontConfig_2__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_10FontConfig_5__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_10FontConfig_4__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core_FontConfig = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.FontConfig", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core_FontConfig), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core_FontConfig, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "FontConfig(font_no=None, size_pixels=None, oversample_h=None, oversample_v=None, pixel_snap_h=None, glyph_extra_spacing_x=None, glyph_extra_spacing_y=None, glyph_offset_x=None, glyph_offset_y=None, glyph_min_advance_x=None, glyph_max_advance_x=None, merge_mode=None, font_builder_flags=None, rasterizer_multiply=None, ellipsis_char=None)", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core_FontConfig, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_10FontConfig_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core_FontConfig, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__FontAtlas __pyx_vtable_5imgui_4core__FontAtlas; static PyObject *__pyx_tp_new_5imgui_4core__FontAtlas(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__FontAtlas *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__FontAtlas *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__FontAtlas; return o; } static void __pyx_tp_dealloc_5imgui_4core__FontAtlas(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_getprop_5imgui_4core_10_FontAtlas_texture_id(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_10_FontAtlas_10texture_id_1__get__(o); } static int __pyx_setprop_5imgui_4core_10_FontAtlas_texture_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_10_FontAtlas_10texture_id_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_10_FontAtlas_texture_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_10_FontAtlas_13texture_width_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_10_FontAtlas_texture_height(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_10_FontAtlas_14texture_height_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_10_FontAtlas_texture_desired_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_10_FontAtlas_21texture_desired_width_1__get__(o); } static int __pyx_setprop_5imgui_4core_10_FontAtlas_texture_desired_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_10_FontAtlas_21texture_desired_width_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyMethodDef __pyx_methods_5imgui_4core__FontAtlas[] = { {"_require_pointer", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_3_require_pointer, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_2_require_pointer}, {"add_font_default", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_5add_font_default, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_4add_font_default}, {"add_font_from_file_ttf", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_10_FontAtlas_7add_font_from_file_ttf, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_10_FontAtlas_6add_font_from_file_ttf}, {"clear_tex_data", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_9clear_tex_data, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_8clear_tex_data}, {"clear_input_data", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_11clear_input_data, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_10clear_input_data}, {"clear_fonts", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_13clear_fonts, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_12clear_fonts}, {"clear", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_15clear, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_14clear}, {"get_glyph_ranges_default", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_17get_glyph_ranges_default, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_16get_glyph_ranges_default}, {"get_glyph_ranges_korean", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_19get_glyph_ranges_korean, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_18get_glyph_ranges_korean}, {"get_glyph_ranges_japanese", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_21get_glyph_ranges_japanese, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_20get_glyph_ranges_japanese}, {"get_glyph_ranges_chinese_full", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_23get_glyph_ranges_chinese_full, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_22get_glyph_ranges_chinese_full}, {"get_glyph_ranges_chinese", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_25get_glyph_ranges_chinese, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_24get_glyph_ranges_chinese}, {"get_glyph_ranges_cyrillic", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_27get_glyph_ranges_cyrillic, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_26get_glyph_ranges_cyrillic}, {"get_glyph_ranges_thai", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_29get_glyph_ranges_thai, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_28get_glyph_ranges_thai}, {"get_glyph_ranges_vietnamese", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_31get_glyph_ranges_vietnamese, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_30get_glyph_ranges_vietnamese}, {"get_glyph_ranges_latin", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_33get_glyph_ranges_latin, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_32get_glyph_ranges_latin}, {"get_tex_data_as_alpha8", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_35get_tex_data_as_alpha8, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_34get_tex_data_as_alpha8}, {"get_tex_data_as_rgba32", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_37get_tex_data_as_rgba32, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_36get_tex_data_as_rgba32}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_39__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_10_FontAtlas_38__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_10_FontAtlas_41__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_10_FontAtlas_40__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__FontAtlas[] = { {(char *)"texture_id", __pyx_getprop_5imgui_4core_10_FontAtlas_texture_id, __pyx_setprop_5imgui_4core_10_FontAtlas_texture_id, (char *)"\n Note: difference in mapping (maps actual TexID and not TextureID)\n\n Note: texture ID type is implementation dependent. It is usually\n integer (at least for OpenGL).\n\n ", 0}, {(char *)"texture_width", __pyx_getprop_5imgui_4core_10_FontAtlas_texture_width, 0, (char *)0, 0}, {(char *)"texture_height", __pyx_getprop_5imgui_4core_10_FontAtlas_texture_height, 0, (char *)0, 0}, {(char *)"texture_desired_width", __pyx_getprop_5imgui_4core_10_FontAtlas_texture_desired_width, __pyx_setprop_5imgui_4core_10_FontAtlas_texture_desired_width, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__FontAtlas = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._FontAtlas", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__FontAtlas), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__FontAtlas, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "_FontAtlas()\nFont atlas object responsible for controling and loading fonts.\n\n This class is not intended to be instantiated by user (thus `_`\n name prefix). It should be accessed through :any:`_IO.fonts` attribute\n of :class:`_IO` obtained with :func:`get_io` function.\n\n Example::\n\n import imgui\n\n io = imgui.get_io()\n io.fonts.add_font_default()\n\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__FontAtlas, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__FontAtlas, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_10_FontAtlas_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__FontAtlas, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__IO __pyx_vtable_5imgui_4core__IO; static PyObject *__pyx_tp_new_5imgui_4core__IO(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__IO *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__IO *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__IO; p->_fonts = Py_None; Py_INCREF(Py_None); p->_keep_ini_alive = Py_None; Py_INCREF(Py_None); p->_keep_logfile_alive = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_5imgui_4core__IO(PyObject *o) { struct __pyx_obj_5imgui_4core__IO *p = (struct __pyx_obj_5imgui_4core__IO *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->_fonts); Py_CLEAR(p->_keep_ini_alive); Py_CLEAR(p->_keep_logfile_alive); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_5imgui_4core__IO(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core__IO *p = (struct __pyx_obj_5imgui_4core__IO *)o; if (p->_fonts) { e = (*v)(p->_fonts, a); if (e) return e; } if (p->_keep_ini_alive) { e = (*v)(p->_keep_ini_alive, a); if (e) return e; } if (p->_keep_logfile_alive) { e = (*v)(p->_keep_logfile_alive, a); if (e) return e; } return 0; } static int __pyx_tp_clear_5imgui_4core__IO(PyObject *o) { PyObject* tmp; struct __pyx_obj_5imgui_4core__IO *p = (struct __pyx_obj_5imgui_4core__IO *)o; tmp = ((PyObject*)p->_fonts); p->_fonts = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_keep_ini_alive); p->_keep_ini_alive = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_keep_logfile_alive); p->_keep_logfile_alive = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_5imgui_4core_3_IO_config_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_12config_flags_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_config_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_12config_flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_backend_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_13backend_flags_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_backend_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_13backend_flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_display_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_12display_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_display_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_12display_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_delta_time(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_10delta_time_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_delta_time(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_10delta_time_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_ini_saving_rate(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_15ini_saving_rate_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_ini_saving_rate(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_15ini_saving_rate_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_log_file_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_13log_file_name_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_log_file_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_13log_file_name_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_ini_file_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_13ini_file_name_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_ini_file_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_13ini_file_name_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_double_click_time(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_23mouse_double_click_time_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_mouse_double_click_time(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_23mouse_double_click_time_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_double_click_max_distance(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_31mouse_double_click_max_distance_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_mouse_double_click_max_distance(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_31mouse_double_click_max_distance_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_drag_threshold(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_20mouse_drag_threshold_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_mouse_drag_threshold(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_20mouse_drag_threshold_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_key_map(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_7key_map_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_key_repeat_delay(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_16key_repeat_delay_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_key_repeat_delay(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_16key_repeat_delay_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_key_repeat_rate(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_15key_repeat_rate_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_key_repeat_rate(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_15key_repeat_rate_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_fonts(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_5fonts_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_font_global_scale(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_17font_global_scale_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_font_global_scale(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_17font_global_scale_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_font_allow_user_scaling(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_23font_allow_user_scaling_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_font_allow_user_scaling(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_23font_allow_user_scaling_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_display_fb_scale(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_16display_fb_scale_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_display_fb_scale(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_16display_fb_scale_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_config_mac_osx_behaviors(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_24config_mac_osx_behaviors_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_config_mac_osx_behaviors(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_24config_mac_osx_behaviors_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_config_cursor_blink(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_19config_cursor_blink_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_config_cursor_blink(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_19config_cursor_blink_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_config_drag_click_to_input_text(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_31config_drag_click_to_input_text_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_config_drag_click_to_input_text(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_31config_drag_click_to_input_text_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_config_windows_resize_from_edges(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_32config_windows_resize_from_edges_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_config_windows_resize_from_edges(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_32config_windows_resize_from_edges_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_config_windows_move_from_title_bar_only(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_config_windows_move_from_title_bar_only(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_39config_windows_move_from_title_bar_only_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_config_memory_compact_timer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_27config_memory_compact_timer_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_config_memory_compact_timer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_27config_memory_compact_timer_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_get_clipboard_text_fn(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_21get_clipboard_text_fn_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_get_clipboard_text_fn(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_21get_clipboard_text_fn_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_set_clipboard_text_fn(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_21set_clipboard_text_fn_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_set_clipboard_text_fn(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_21set_clipboard_text_fn_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_pos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_9mouse_pos_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_mouse_pos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_9mouse_pos_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_down(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_10mouse_down_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_wheel(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_11mouse_wheel_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_mouse_wheel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_11mouse_wheel_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_wheel_horizontal(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_22mouse_wheel_horizontal_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_mouse_wheel_horizontal(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_22mouse_wheel_horizontal_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_draw_cursor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_17mouse_draw_cursor_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_mouse_draw_cursor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_17mouse_draw_cursor_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_key_ctrl(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_8key_ctrl_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_key_ctrl(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_8key_ctrl_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_key_shift(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_9key_shift_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_key_shift(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_9key_shift_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_key_alt(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_7key_alt_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_key_alt(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_7key_alt_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_key_super(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_9key_super_1__get__(o); } static int __pyx_setprop_5imgui_4core_3_IO_key_super(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_3_IO_9key_super_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_3_IO_keys_down(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_9keys_down_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_nav_inputs(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_10nav_inputs_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_want_capture_mouse(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_18want_capture_mouse_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_want_capture_keyboard(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_21want_capture_keyboard_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_want_text_input(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_15want_text_input_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_want_set_mouse_pos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_18want_set_mouse_pos_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_want_save_ini_settings(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_22want_save_ini_settings_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_nav_active(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_10nav_active_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_nav_visible(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_11nav_visible_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_framerate(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_9framerate_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_metrics_render_vertices(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_23metrics_render_vertices_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_metrics_render_indices(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_22metrics_render_indices_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_metrics_render_windows(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_22metrics_render_windows_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_metrics_active_windows(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_22metrics_active_windows_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_metrics_active_allocations(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_26metrics_active_allocations_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_3_IO_mouse_delta(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_3_IO_11mouse_delta_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__IO[] = { {"add_input_character", (PyCFunction)__pyx_pw_5imgui_4core_3_IO_3add_input_character, METH_O, __pyx_doc_5imgui_4core_3_IO_2add_input_character}, {"add_input_character_utf16", (PyCFunction)__pyx_pw_5imgui_4core_3_IO_5add_input_character_utf16, METH_O, __pyx_doc_5imgui_4core_3_IO_4add_input_character_utf16}, {"add_input_characters_utf8", (PyCFunction)__pyx_pw_5imgui_4core_3_IO_7add_input_characters_utf8, METH_O, __pyx_doc_5imgui_4core_3_IO_6add_input_characters_utf8}, {"clear_input_characters", (PyCFunction)__pyx_pw_5imgui_4core_3_IO_9clear_input_characters, METH_NOARGS, __pyx_doc_5imgui_4core_3_IO_8clear_input_characters}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_3_IO_11__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_3_IO_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_3_IO_13__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_3_IO_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__IO[] = { {(char *)"config_flags", __pyx_getprop_5imgui_4core_3_IO_config_flags, __pyx_setprop_5imgui_4core_3_IO_config_flags, (char *)0, 0}, {(char *)"backend_flags", __pyx_getprop_5imgui_4core_3_IO_backend_flags, __pyx_setprop_5imgui_4core_3_IO_backend_flags, (char *)0, 0}, {(char *)"display_size", __pyx_getprop_5imgui_4core_3_IO_display_size, __pyx_setprop_5imgui_4core_3_IO_display_size, (char *)0, 0}, {(char *)"delta_time", __pyx_getprop_5imgui_4core_3_IO_delta_time, __pyx_setprop_5imgui_4core_3_IO_delta_time, (char *)0, 0}, {(char *)"ini_saving_rate", __pyx_getprop_5imgui_4core_3_IO_ini_saving_rate, __pyx_setprop_5imgui_4core_3_IO_ini_saving_rate, (char *)0, 0}, {(char *)"log_file_name", __pyx_getprop_5imgui_4core_3_IO_log_file_name, __pyx_setprop_5imgui_4core_3_IO_log_file_name, (char *)0, 0}, {(char *)"ini_file_name", __pyx_getprop_5imgui_4core_3_IO_ini_file_name, __pyx_setprop_5imgui_4core_3_IO_ini_file_name, (char *)0, 0}, {(char *)"mouse_double_click_time", __pyx_getprop_5imgui_4core_3_IO_mouse_double_click_time, __pyx_setprop_5imgui_4core_3_IO_mouse_double_click_time, (char *)0, 0}, {(char *)"mouse_double_click_max_distance", __pyx_getprop_5imgui_4core_3_IO_mouse_double_click_max_distance, __pyx_setprop_5imgui_4core_3_IO_mouse_double_click_max_distance, (char *)0, 0}, {(char *)"mouse_drag_threshold", __pyx_getprop_5imgui_4core_3_IO_mouse_drag_threshold, __pyx_setprop_5imgui_4core_3_IO_mouse_drag_threshold, (char *)0, 0}, {(char *)"key_map", __pyx_getprop_5imgui_4core_3_IO_key_map, 0, (char *)0, 0}, {(char *)"key_repeat_delay", __pyx_getprop_5imgui_4core_3_IO_key_repeat_delay, __pyx_setprop_5imgui_4core_3_IO_key_repeat_delay, (char *)0, 0}, {(char *)"key_repeat_rate", __pyx_getprop_5imgui_4core_3_IO_key_repeat_rate, __pyx_setprop_5imgui_4core_3_IO_key_repeat_rate, (char *)0, 0}, {(char *)"fonts", __pyx_getprop_5imgui_4core_3_IO_fonts, 0, (char *)0, 0}, {(char *)"font_global_scale", __pyx_getprop_5imgui_4core_3_IO_font_global_scale, __pyx_setprop_5imgui_4core_3_IO_font_global_scale, (char *)0, 0}, {(char *)"font_allow_user_scaling", __pyx_getprop_5imgui_4core_3_IO_font_allow_user_scaling, __pyx_setprop_5imgui_4core_3_IO_font_allow_user_scaling, (char *)0, 0}, {(char *)"display_fb_scale", __pyx_getprop_5imgui_4core_3_IO_display_fb_scale, __pyx_setprop_5imgui_4core_3_IO_display_fb_scale, (char *)0, 0}, {(char *)"config_mac_osx_behaviors", __pyx_getprop_5imgui_4core_3_IO_config_mac_osx_behaviors, __pyx_setprop_5imgui_4core_3_IO_config_mac_osx_behaviors, (char *)0, 0}, {(char *)"config_cursor_blink", __pyx_getprop_5imgui_4core_3_IO_config_cursor_blink, __pyx_setprop_5imgui_4core_3_IO_config_cursor_blink, (char *)0, 0}, {(char *)"config_drag_click_to_input_text", __pyx_getprop_5imgui_4core_3_IO_config_drag_click_to_input_text, __pyx_setprop_5imgui_4core_3_IO_config_drag_click_to_input_text, (char *)0, 0}, {(char *)"config_windows_resize_from_edges", __pyx_getprop_5imgui_4core_3_IO_config_windows_resize_from_edges, __pyx_setprop_5imgui_4core_3_IO_config_windows_resize_from_edges, (char *)0, 0}, {(char *)"config_windows_move_from_title_bar_only", __pyx_getprop_5imgui_4core_3_IO_config_windows_move_from_title_bar_only, __pyx_setprop_5imgui_4core_3_IO_config_windows_move_from_title_bar_only, (char *)0, 0}, {(char *)"config_memory_compact_timer", __pyx_getprop_5imgui_4core_3_IO_config_memory_compact_timer, __pyx_setprop_5imgui_4core_3_IO_config_memory_compact_timer, (char *)0, 0}, {(char *)"get_clipboard_text_fn", __pyx_getprop_5imgui_4core_3_IO_get_clipboard_text_fn, __pyx_setprop_5imgui_4core_3_IO_get_clipboard_text_fn, (char *)0, 0}, {(char *)"set_clipboard_text_fn", __pyx_getprop_5imgui_4core_3_IO_set_clipboard_text_fn, __pyx_setprop_5imgui_4core_3_IO_set_clipboard_text_fn, (char *)0, 0}, {(char *)"mouse_pos", __pyx_getprop_5imgui_4core_3_IO_mouse_pos, __pyx_setprop_5imgui_4core_3_IO_mouse_pos, (char *)0, 0}, {(char *)"mouse_down", __pyx_getprop_5imgui_4core_3_IO_mouse_down, 0, (char *)0, 0}, {(char *)"mouse_wheel", __pyx_getprop_5imgui_4core_3_IO_mouse_wheel, __pyx_setprop_5imgui_4core_3_IO_mouse_wheel, (char *)0, 0}, {(char *)"mouse_wheel_horizontal", __pyx_getprop_5imgui_4core_3_IO_mouse_wheel_horizontal, __pyx_setprop_5imgui_4core_3_IO_mouse_wheel_horizontal, (char *)0, 0}, {(char *)"mouse_draw_cursor", __pyx_getprop_5imgui_4core_3_IO_mouse_draw_cursor, __pyx_setprop_5imgui_4core_3_IO_mouse_draw_cursor, (char *)0, 0}, {(char *)"key_ctrl", __pyx_getprop_5imgui_4core_3_IO_key_ctrl, __pyx_setprop_5imgui_4core_3_IO_key_ctrl, (char *)0, 0}, {(char *)"key_shift", __pyx_getprop_5imgui_4core_3_IO_key_shift, __pyx_setprop_5imgui_4core_3_IO_key_shift, (char *)0, 0}, {(char *)"key_alt", __pyx_getprop_5imgui_4core_3_IO_key_alt, __pyx_setprop_5imgui_4core_3_IO_key_alt, (char *)0, 0}, {(char *)"key_super", __pyx_getprop_5imgui_4core_3_IO_key_super, __pyx_setprop_5imgui_4core_3_IO_key_super, (char *)0, 0}, {(char *)"keys_down", __pyx_getprop_5imgui_4core_3_IO_keys_down, 0, (char *)0, 0}, {(char *)"nav_inputs", __pyx_getprop_5imgui_4core_3_IO_nav_inputs, 0, (char *)0, 0}, {(char *)"want_capture_mouse", __pyx_getprop_5imgui_4core_3_IO_want_capture_mouse, 0, (char *)0, 0}, {(char *)"want_capture_keyboard", __pyx_getprop_5imgui_4core_3_IO_want_capture_keyboard, 0, (char *)0, 0}, {(char *)"want_text_input", __pyx_getprop_5imgui_4core_3_IO_want_text_input, 0, (char *)0, 0}, {(char *)"want_set_mouse_pos", __pyx_getprop_5imgui_4core_3_IO_want_set_mouse_pos, 0, (char *)0, 0}, {(char *)"want_save_ini_settings", __pyx_getprop_5imgui_4core_3_IO_want_save_ini_settings, 0, (char *)0, 0}, {(char *)"nav_active", __pyx_getprop_5imgui_4core_3_IO_nav_active, 0, (char *)0, 0}, {(char *)"nav_visible", __pyx_getprop_5imgui_4core_3_IO_nav_visible, 0, (char *)0, 0}, {(char *)"framerate", __pyx_getprop_5imgui_4core_3_IO_framerate, 0, (char *)0, 0}, {(char *)"metrics_render_vertices", __pyx_getprop_5imgui_4core_3_IO_metrics_render_vertices, 0, (char *)0, 0}, {(char *)"metrics_render_indices", __pyx_getprop_5imgui_4core_3_IO_metrics_render_indices, 0, (char *)0, 0}, {(char *)"metrics_render_windows", __pyx_getprop_5imgui_4core_3_IO_metrics_render_windows, 0, (char *)0, 0}, {(char *)"metrics_active_windows", __pyx_getprop_5imgui_4core_3_IO_metrics_active_windows, 0, (char *)0, 0}, {(char *)"metrics_active_allocations", __pyx_getprop_5imgui_4core_3_IO_metrics_active_allocations, 0, (char *)0, 0}, {(char *)"mouse_delta", __pyx_getprop_5imgui_4core_3_IO_mouse_delta, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__IO = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._IO", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__IO), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__IO, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "_IO()\nMain ImGui I/O context class used for ImGui configuration.\n\n This class is not intended to be instantiated by user (thus `_`\n name prefix). It should be accessed through obtained with :func:`get_io`\n function.\n\n Example::\n\n import imgui\n\n io = imgui.get_io()\n ", /*tp_doc*/ __pyx_tp_traverse_5imgui_4core__IO, /*tp_traverse*/ __pyx_tp_clear_5imgui_4core__IO, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__IO, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__IO, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_3_IO_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__IO, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__callback_user_info __pyx_vtable_5imgui_4core__callback_user_info; static PyObject *__pyx_tp_new_5imgui_4core__callback_user_info(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__callback_user_info *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__callback_user_info *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__callback_user_info; p->callback_fn = Py_None; Py_INCREF(Py_None); p->user_data = Py_None; Py_INCREF(Py_None); if (unlikely(__pyx_pw_5imgui_4core_19_callback_user_info_3__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__callback_user_info(PyObject *o) { struct __pyx_obj_5imgui_4core__callback_user_info *p = (struct __pyx_obj_5imgui_4core__callback_user_info *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->callback_fn); Py_CLEAR(p->user_data); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_5imgui_4core__callback_user_info(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core__callback_user_info *p = (struct __pyx_obj_5imgui_4core__callback_user_info *)o; if (p->callback_fn) { e = (*v)(p->callback_fn, a); if (e) return e; } if (p->user_data) { e = (*v)(p->user_data, a); if (e) return e; } return 0; } static int __pyx_tp_clear_5imgui_4core__callback_user_info(PyObject *o) { PyObject* tmp; struct __pyx_obj_5imgui_4core__callback_user_info *p = (struct __pyx_obj_5imgui_4core__callback_user_info *)o; tmp = ((PyObject*)p->callback_fn); p->callback_fn = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->user_data); p->user_data = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyMethodDef __pyx_methods_5imgui_4core__callback_user_info[] = { {"populate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_19_callback_user_info_5populate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_19_callback_user_info_4populate}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_19_callback_user_info_7__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_19_callback_user_info_6__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_19_callback_user_info_9__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_19_callback_user_info_8__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__callback_user_info = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._callback_user_info", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__callback_user_info), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__callback_user_info, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "_callback_user_info()", /*tp_doc*/ __pyx_tp_traverse_5imgui_4core__callback_user_info, /*tp_traverse*/ __pyx_tp_clear_5imgui_4core__callback_user_info, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__callback_user_info, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_19_callback_user_info_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__callback_user_info, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__InputTextSharedBuffer __pyx_vtable_5imgui_4core__InputTextSharedBuffer; static PyObject *__pyx_tp_new_5imgui_4core__InputTextSharedBuffer(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__InputTextSharedBuffer; if (unlikely(__pyx_pw_5imgui_4core_22_InputTextSharedBuffer_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__InputTextSharedBuffer(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1); __pyx_pw_5imgui_4core_22_InputTextSharedBuffer_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } (*Py_TYPE(o)->tp_free)(o); } static PyMethodDef __pyx_methods_5imgui_4core__InputTextSharedBuffer[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_22_InputTextSharedBuffer_5__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_22_InputTextSharedBuffer_4__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_22_InputTextSharedBuffer_7__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_22_InputTextSharedBuffer_6__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__InputTextSharedBuffer = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._InputTextSharedBuffer", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__InputTextSharedBuffer, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__InputTextSharedBuffer, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__InputTextSharedBuffer, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiInputTextCallbackData __pyx_vtable_5imgui_4core__ImGuiInputTextCallbackData; static PyObject *__pyx_tp_new_5imgui_4core__ImGuiInputTextCallbackData(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__ImGuiInputTextCallbackData; return o; } static void __pyx_tp_dealloc_5imgui_4core__ImGuiInputTextCallbackData(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_event_flag(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_flag_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_5flags_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_user_data(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9user_data_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_event_char(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_1__get__(o); } static int __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_event_char(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10event_char_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_event_key(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9event_key_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_1__get__(o); } static int __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_6buffer_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer_text_length(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_18buffer_text_length_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_11buffer_size_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer_dirty(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_1__get__(o); } static int __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer_dirty(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_12buffer_dirty_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_cursor_pos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_1__get__(o); } static int __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_cursor_pos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_10cursor_pos_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_selection_start(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_1__get__(o); } static int __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_selection_start(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15selection_start_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_selection_end(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_1__get__(o); } static int __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_selection_end(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13selection_end_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyMethodDef __pyx_methods_5imgui_4core__ImGuiInputTextCallbackData[] = { {"_require_pointer", (PyCFunction)__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_3_require_pointer, METH_NOARGS, __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_2_require_pointer}, {"delete_chars", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_5delete_chars, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_4delete_chars}, {"insert_chars", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_7insert_chars, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_6insert_chars}, {"select_all", (PyCFunction)__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_9select_all, METH_NOARGS, __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_8select_all}, {"clear_selection", (PyCFunction)__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_11clear_selection, METH_NOARGS, __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_10clear_selection}, {"has_selection", (PyCFunction)__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_13has_selection, METH_NOARGS, __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_12has_selection}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_15__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_14__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_17__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_27_ImGuiInputTextCallbackData_16__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__ImGuiInputTextCallbackData[] = { {(char *)"event_flag", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_event_flag, 0, (char *)0, 0}, {(char *)"flags", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_flags, 0, (char *)0, 0}, {(char *)"user_data", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_user_data, 0, (char *)0, 0}, {(char *)"event_char", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_event_char, __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_event_char, (char *)0, 0}, {(char *)"event_key", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_event_key, 0, (char *)0, 0}, {(char *)"buffer", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer, __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer, (char *)0, 0}, {(char *)"buffer_text_length", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer_text_length, 0, (char *)0, 0}, {(char *)"buffer_size", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer_size, 0, (char *)0, 0}, {(char *)"buffer_dirty", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer_dirty, __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_buffer_dirty, (char *)0, 0}, {(char *)"cursor_pos", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_cursor_pos, __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_cursor_pos, (char *)0, 0}, {(char *)"selection_start", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_selection_start, __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_selection_start, (char *)0, 0}, {(char *)"selection_end", __pyx_getprop_5imgui_4core_27_ImGuiInputTextCallbackData_selection_end, __pyx_setprop_5imgui_4core_27_ImGuiInputTextCallbackData_selection_end, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__ImGuiInputTextCallbackData = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._ImGuiInputTextCallbackData", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__ImGuiInputTextCallbackData), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__ImGuiInputTextCallbackData, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "_ImGuiInputTextCallbackData()", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__ImGuiInputTextCallbackData, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__ImGuiInputTextCallbackData, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_27_ImGuiInputTextCallbackData_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__ImGuiInputTextCallbackData, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_5imgui_4core__ImGuiSizeCallbackData __pyx_vtable_5imgui_4core__ImGuiSizeCallbackData; static PyObject *__pyx_tp_new_5imgui_4core__ImGuiSizeCallbackData(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData *)o); p->__pyx_vtab = __pyx_vtabptr_5imgui_4core__ImGuiSizeCallbackData; return o; } static void __pyx_tp_dealloc_5imgui_4core__ImGuiSizeCallbackData(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_getprop_5imgui_4core_22_ImGuiSizeCallbackData_user_data(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_9user_data_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_22_ImGuiSizeCallbackData_pos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_3pos_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_22_ImGuiSizeCallbackData_current_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12current_size_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_22_ImGuiSizeCallbackData_desired_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_1__get__(o); } static int __pyx_setprop_5imgui_4core_22_ImGuiSizeCallbackData_desired_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_12desired_size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyMethodDef __pyx_methods_5imgui_4core__ImGuiSizeCallbackData[] = { {"_require_pointer", (PyCFunction)__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_3_require_pointer, METH_NOARGS, __pyx_doc_5imgui_4core_22_ImGuiSizeCallbackData_2_require_pointer}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_5__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_22_ImGuiSizeCallbackData_4__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_7__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_22_ImGuiSizeCallbackData_6__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__ImGuiSizeCallbackData[] = { {(char *)"user_data", __pyx_getprop_5imgui_4core_22_ImGuiSizeCallbackData_user_data, 0, (char *)0, 0}, {(char *)"pos", __pyx_getprop_5imgui_4core_22_ImGuiSizeCallbackData_pos, 0, (char *)0, 0}, {(char *)"current_size", __pyx_getprop_5imgui_4core_22_ImGuiSizeCallbackData_current_size, 0, (char *)0, 0}, {(char *)"desired_size", __pyx_getprop_5imgui_4core_22_ImGuiSizeCallbackData_desired_size, __pyx_setprop_5imgui_4core_22_ImGuiSizeCallbackData_desired_size, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__ImGuiSizeCallbackData = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._ImGuiSizeCallbackData", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__ImGuiSizeCallbackData), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__ImGuiSizeCallbackData, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "_ImGuiSizeCallbackData()", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__ImGuiSizeCallbackData, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__ImGuiSizeCallbackData, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_pw_5imgui_4core_22_ImGuiSizeCallbackData_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__ImGuiSizeCallbackData, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEnd(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_9_BeginEnd_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEnd(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_sq_item_5imgui_4core__BeginEnd(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEnd(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_9_BeginEnd_13__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_9_BeginEnd_13__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_9_BeginEnd_expanded(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_BeginEnd_8expanded_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_9_BeginEnd_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_9_BeginEnd_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEnd[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_9_BeginEnd_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_9_BeginEnd_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_9_BeginEnd_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_9_BeginEnd_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_9_BeginEnd_15__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_9_BeginEnd_14__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_9_BeginEnd_17__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_9_BeginEnd_16__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEnd[] = { {(char *)"expanded", __pyx_getprop_5imgui_4core_9_BeginEnd_expanded, 0, (char *)0, 0}, {(char *)"opened", __pyx_getprop_5imgui_4core_9_BeginEnd_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence__BeginEnd = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_5imgui_4core__BeginEnd, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping__BeginEnd = { 0, /*mp_length*/ __pyx_pw_5imgui_4core_9_BeginEnd_7__getitem__, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyTypeObject __pyx_type_5imgui_4core__BeginEnd = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEnd", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEnd), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEnd, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_9_BeginEnd_11__repr__, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence__BeginEnd, /*tp_as_sequence*/ &__pyx_tp_as_mapping__BeginEnd, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin` exposing ``expanded`` and ``opened`` boolean attributes.\n See :func:`begin` for an explanation of these attributes and examples.\n\n For legacy support, the attributes can also be accessed by unpacking or indexing into this object.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end` to end the window\n created with :func:`begin` when the block ends, even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEnd, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ __pyx_pw_5imgui_4core_9_BeginEnd_9__iter__, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEnd, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEnd, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEnd, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndChild(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_14_BeginEndChild_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndChild(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndChild(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_14_BeginEndChild_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_14_BeginEndChild_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_14_BeginEndChild_visible(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_BeginEndChild_7visible_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndChild[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndChild_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndChild_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_14_BeginEndChild_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_14_BeginEndChild_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndChild_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndChild_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndChild_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_14_BeginEndChild_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndChild[] = { {(char *)"visible", __pyx_getprop_5imgui_4core_14_BeginEndChild_visible, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndChild = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_14_BeginEndChild_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndChild = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndChild", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndChild), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndChild, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_14_BeginEndChild_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndChild, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_child` exposing ``visible`` boolean attribute.\n See :func:`begin_child` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically\n call :func:`end_child` to end the child created with :func:`begin_child`\n when the block ends, even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_child` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndChild, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndChild, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndChild, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndChild, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndListBox(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_16_BeginEndListBox_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndListBox(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndListBox(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_16_BeginEndListBox_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_16_BeginEndListBox_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_16_BeginEndListBox_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_16_BeginEndListBox_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndListBox[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndListBox_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_16_BeginEndListBox_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_16_BeginEndListBox_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_16_BeginEndListBox_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndListBox_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_16_BeginEndListBox_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndListBox_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_16_BeginEndListBox_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndListBox[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_16_BeginEndListBox_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndListBox = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_16_BeginEndListBox_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndListBox = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndListBox", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndListBox), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndListBox, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_16_BeginEndListBox_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndListBox, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_list_box` exposing ``opened`` boolean attribute.\n See :func:`begin_list_box` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_list_box`\n (if necessary) to end the list box created with :func:`begin_list_box` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_list_box` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndListBox, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndListBox, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndListBox, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndListBox, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndTooltip(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; return o; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndTooltip(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndTooltip[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndTooltip_1__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_16_BeginEndTooltip___enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_16_BeginEndTooltip_3__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_16_BeginEndTooltip_2__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndTooltip_7__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_16_BeginEndTooltip_6__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndTooltip_9__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_16_BeginEndTooltip_8__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndTooltip = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndTooltip", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndTooltip), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndTooltip, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_16_BeginEndTooltip_5__repr__, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_tooltip`.\n See :func:`begin_tooltip` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_tooltip`\n to end the tooltip created with :func:`begin_tooltip` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_tooltip` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndTooltip, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndTooltip, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndMainMenuBar(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndMainMenuBar(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndMainMenuBar(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_20_BeginEndMainMenuBar_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndMainMenuBar[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_20_BeginEndMainMenuBar_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_20_BeginEndMainMenuBar_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_20_BeginEndMainMenuBar_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_20_BeginEndMainMenuBar_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndMainMenuBar[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_20_BeginEndMainMenuBar_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndMainMenuBar = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndMainMenuBar = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndMainMenuBar", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndMainMenuBar), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndMainMenuBar, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_20_BeginEndMainMenuBar_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndMainMenuBar, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_main_menu_bar` exposing ``opened`` (displayed) boolean attribute.\n See :func:`begin_main_menu_bar` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_main_menu_bar`\n (if necessary) to end the main menu bar created with :func:`begin_main_menu_bar` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_main_menu_bar` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndMainMenuBar, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndMainMenuBar, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndMainMenuBar, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndMainMenuBar, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndMenuBar(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_16_BeginEndMenuBar_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndMenuBar(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndMenuBar(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_16_BeginEndMenuBar_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_16_BeginEndMenuBar_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_16_BeginEndMenuBar_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_16_BeginEndMenuBar_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndMenuBar[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndMenuBar_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_16_BeginEndMenuBar_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_16_BeginEndMenuBar_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_16_BeginEndMenuBar_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndMenuBar_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_16_BeginEndMenuBar_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndMenuBar_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_16_BeginEndMenuBar_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndMenuBar[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_16_BeginEndMenuBar_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndMenuBar = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_16_BeginEndMenuBar_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndMenuBar = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndMenuBar", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndMenuBar), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndMenuBar, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_16_BeginEndMenuBar_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndMenuBar, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_menu_bar` exposing ``opened`` (displayed) boolean attribute.\n See :func:`begin_menu_bar` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_menu_bar`\n (if necessary) to end the menu bar created with :func:`begin_menu_bar` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_menu_bar` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndMenuBar, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndMenuBar, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndMenuBar, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndMenuBar, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndMenu(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_13_BeginEndMenu_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndMenu(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndMenu(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_13_BeginEndMenu_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_13_BeginEndMenu_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_13_BeginEndMenu_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_13_BeginEndMenu_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndMenu[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_13_BeginEndMenu_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_13_BeginEndMenu_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_13_BeginEndMenu_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_13_BeginEndMenu_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_13_BeginEndMenu_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_13_BeginEndMenu_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_13_BeginEndMenu_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_13_BeginEndMenu_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndMenu[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_13_BeginEndMenu_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndMenu = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_13_BeginEndMenu_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndMenu = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndMenu", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndMenu), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndMenu, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_13_BeginEndMenu_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndMenu, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_menu` exposing ``opened`` boolean attribute.\n See :func:`begin_menu` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_menu`\n (if necessary) to end the menu created with :func:`begin_menu` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_menu` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndMenu, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndMenu, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndMenu, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndMenu, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndPopup(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_14_BeginEndPopup_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndPopup(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndPopup(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_14_BeginEndPopup_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_14_BeginEndPopup_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_14_BeginEndPopup_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_BeginEndPopup_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndPopup[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndPopup_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndPopup_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_14_BeginEndPopup_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_14_BeginEndPopup_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndPopup_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndPopup_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndPopup_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_14_BeginEndPopup_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndPopup[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_14_BeginEndPopup_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndPopup = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_14_BeginEndPopup_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndPopup = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndPopup", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndPopup), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndPopup, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_14_BeginEndPopup_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndPopup, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_popup` exposing ``opened`` boolean attribute.\n See :func:`begin_popup` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_popup`\n (if necessary) to end the popup created with :func:`begin_popup` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_popup` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndPopup, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndPopup, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndPopup, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndPopup, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndPopupModal(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_19_BeginEndPopupModal_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndPopupModal(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_sq_item_5imgui_4core__BeginEndPopupModal(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndPopupModal(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_19_BeginEndPopupModal_13__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_19_BeginEndPopupModal_13__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_19_BeginEndPopupModal_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_19_BeginEndPopupModal_6opened_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_19_BeginEndPopupModal_visible(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_19_BeginEndPopupModal_7visible_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndPopupModal[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_19_BeginEndPopupModal_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_19_BeginEndPopupModal_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_19_BeginEndPopupModal_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_19_BeginEndPopupModal_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_19_BeginEndPopupModal_15__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_19_BeginEndPopupModal_14__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_19_BeginEndPopupModal_17__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_19_BeginEndPopupModal_16__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndPopupModal[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_19_BeginEndPopupModal_opened, 0, (char *)0, 0}, {(char *)"visible", __pyx_getprop_5imgui_4core_19_BeginEndPopupModal_visible, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence__BeginEndPopupModal = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_5imgui_4core__BeginEndPopupModal, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping__BeginEndPopupModal = { 0, /*mp_length*/ __pyx_pw_5imgui_4core_19_BeginEndPopupModal_7__getitem__, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndPopupModal = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndPopupModal", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndPopupModal), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndPopupModal, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_19_BeginEndPopupModal_11__repr__, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence__BeginEndPopupModal, /*tp_as_sequence*/ &__pyx_tp_as_mapping__BeginEndPopupModal, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_popup_modal` exposing ``opened`` and ``visible`` boolean attributes.\n See :func:`begin_popup_modal` for an explanation and examples.\n\n For legacy support, the attributes can also be accessed by unpacking or indexing into this object.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_popup`\n (if necessary) to end the popup created with :func:`begin_popup_modal` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_popup_modal` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndPopupModal, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ __pyx_pw_5imgui_4core_19_BeginEndPopupModal_9__iter__, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndPopupModal, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndPopupModal, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndPopupModal, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndTable(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_14_BeginEndTable_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndTable(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndTable(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_14_BeginEndTable_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_14_BeginEndTable_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_14_BeginEndTable_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_BeginEndTable_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndTable[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndTable_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndTable_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_14_BeginEndTable_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_14_BeginEndTable_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndTable_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndTable_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndTable_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_14_BeginEndTable_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndTable[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_14_BeginEndTable_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndTable = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_14_BeginEndTable_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndTable = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndTable", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndTable), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndTable, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_14_BeginEndTable_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndTable, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_table` exposing ``opened`` boolean attribute.\n See :func:`begin_table` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_table`\n (if necessary) to end the table created with :func:`begin_table` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_table` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndTable, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndTable, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndTable, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndTable, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndCombo(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_14_BeginEndCombo_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndCombo(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndCombo(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_14_BeginEndCombo_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_14_BeginEndCombo_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_14_BeginEndCombo_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_14_BeginEndCombo_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndCombo[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndCombo_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndCombo_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_14_BeginEndCombo_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_14_BeginEndCombo_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndCombo_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndCombo_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndCombo_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_14_BeginEndCombo_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndCombo[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_14_BeginEndCombo_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndCombo = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_14_BeginEndCombo_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndCombo = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndCombo", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndCombo), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndCombo, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_14_BeginEndCombo_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndCombo, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_combo` exposing ``opened`` boolean attribute.\n See :func:`begin_combo` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically\n call :func:`end_combo` to end the combo created with :func:`begin_combo`\n when the block ends, even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_combo` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndCombo, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndCombo, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndCombo, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndCombo, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndTabBar(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_15_BeginEndTabBar_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndTabBar(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndTabBar(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_15_BeginEndTabBar_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_15_BeginEndTabBar_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_15_BeginEndTabBar_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_15_BeginEndTabBar_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndTabBar[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_15_BeginEndTabBar_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_15_BeginEndTabBar_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_15_BeginEndTabBar_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_15_BeginEndTabBar_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_15_BeginEndTabBar_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_15_BeginEndTabBar_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_15_BeginEndTabBar_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_15_BeginEndTabBar_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndTabBar[] = { {(char *)"opened", __pyx_getprop_5imgui_4core_15_BeginEndTabBar_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndTabBar = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_15_BeginEndTabBar_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndTabBar = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndTabBar", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndTabBar), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndTabBar, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_15_BeginEndTabBar_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndTabBar, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_tab_bar` exposing ``opened`` boolean attribute.\n See :func:`begin_tab_bar` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_tab_bar`\n (if necessary) to end the tar bar created with :func:`begin_tab_bar` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_tab_bar` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndTabBar, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndTabBar, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndTabBar, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndTabBar, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndTabItem(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_16_BeginEndTabItem_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndTabItem(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_sq_item_5imgui_4core__BeginEndTabItem(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndTabItem(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_16_BeginEndTabItem_13__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_16_BeginEndTabItem_13__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_16_BeginEndTabItem_selected(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_16_BeginEndTabItem_8selected_1__get__(o); } static PyObject *__pyx_getprop_5imgui_4core_16_BeginEndTabItem_opened(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_16_BeginEndTabItem_6opened_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndTabItem[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndTabItem_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_16_BeginEndTabItem_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_16_BeginEndTabItem_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_16_BeginEndTabItem_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndTabItem_15__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_16_BeginEndTabItem_14__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_16_BeginEndTabItem_17__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_16_BeginEndTabItem_16__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndTabItem[] = { {(char *)"selected", __pyx_getprop_5imgui_4core_16_BeginEndTabItem_selected, 0, (char *)0, 0}, {(char *)"opened", __pyx_getprop_5imgui_4core_16_BeginEndTabItem_opened, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence__BeginEndTabItem = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_5imgui_4core__BeginEndTabItem, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping__BeginEndTabItem = { 0, /*mp_length*/ __pyx_pw_5imgui_4core_16_BeginEndTabItem_7__getitem__, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndTabItem = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndTabItem", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndTabItem), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndTabItem, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_16_BeginEndTabItem_11__repr__, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence__BeginEndTabItem, /*tp_as_sequence*/ &__pyx_tp_as_mapping__BeginEndTabItem, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_tab_item` exposing ``selected`` and ``opened`` boolean attributes.\n See :func:`begin_tab_item` for an explanation of these attributes and examples.\n\n For legacy support, the attributes can also be accessed by unpacking or indexing into this object.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_tab_item`\n to end the tab item created with :func:`begin_tab_item` when the block ends, even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_tab_item` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndTabItem, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ __pyx_pw_5imgui_4core_16_BeginEndTabItem_9__iter__, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndTabItem, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndTabItem, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndTabItem, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndDragDropSource(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndDragDropSource(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndDragDropSource(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_23_BeginEndDragDropSource_dragging(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_8dragging_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndDragDropSource[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_23_BeginEndDragDropSource_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_23_BeginEndDragDropSource_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_23_BeginEndDragDropSource_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_23_BeginEndDragDropSource_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_23_BeginEndDragDropSource_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndDragDropSource[] = { {(char *)"dragging", __pyx_getprop_5imgui_4core_23_BeginEndDragDropSource_dragging, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndDragDropSource = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndDragDropSource = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndDragDropSource", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndDragDropSource), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndDragDropSource, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_23_BeginEndDragDropSource_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndDragDropSource, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_drag_drop_source` exposing ``dragging`` boolean attribute.\n See :func:`begin_drag_drop_source` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_drag_drop_source`\n (if necessary) to end the drag-drop source created with :func:`begin_drag_drop_source` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_drag_drop_source` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndDragDropSource, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndDragDropSource, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndDragDropSource, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndDragDropSource, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndDragDropTarget(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; if (unlikely(__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndDragDropTarget(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_tp_richcompare_5imgui_4core__BeginEndDragDropTarget(PyObject *o1, PyObject *o2, int op) { switch (op) { case Py_EQ: { return __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_11__eq__(o1, o2); } case Py_NE: { PyObject *ret; ret = __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_11__eq__(o1, o2); if (likely(ret && ret != Py_NotImplemented)) { int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret); if (unlikely(b < 0)) return NULL; ret = (b) ? Py_False : Py_True; Py_INCREF(ret); } return ret; } default: { return __Pyx_NewRef(Py_NotImplemented); } } } static PyObject *__pyx_getprop_5imgui_4core_23_BeginEndDragDropTarget_hovered(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_7hovered_1__get__(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndDragDropTarget[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_3__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_23_BeginEndDragDropTarget_2__enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_5__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_23_BeginEndDragDropTarget_4__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_13__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_23_BeginEndDragDropTarget_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_15__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_23_BeginEndDragDropTarget_14__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_5imgui_4core__BeginEndDragDropTarget[] = { {(char *)"hovered", __pyx_getprop_5imgui_4core_23_BeginEndDragDropTarget_hovered, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number__BeginEndDragDropTarget = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_7__bool__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif 0, /*nb_int*/ #if PY_MAJOR_VERSION < 3 0, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ 0, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndDragDropTarget = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndDragDropTarget", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndDragDropTarget), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndDragDropTarget, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_23_BeginEndDragDropTarget_9__repr__, /*tp_repr*/ &__pyx_tp_as_number__BeginEndDragDropTarget, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_drag_drop_target` exposing ``hovered`` boolean attribute.\n See :func:`begin_drag_drop_target` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_drag_drop_target`\n (if necessary) to end the drag-drop target created with :func:`begin_drag_drop_target` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_drag_drop_target` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ __pyx_tp_richcompare_5imgui_4core__BeginEndDragDropTarget, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndDragDropTarget, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_5imgui_4core__BeginEndDragDropTarget, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndDragDropTarget, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_5imgui_4core__BeginEndGroup(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; return o; } static void __pyx_tp_dealloc_5imgui_4core__BeginEndGroup(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyMethodDef __pyx_methods_5imgui_4core__BeginEndGroup[] = { {"__enter__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndGroup_1__enter__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndGroup___enter__}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_14_BeginEndGroup_3__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_14_BeginEndGroup_2__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndGroup_7__reduce_cython__, METH_NOARGS, __pyx_doc_5imgui_4core_14_BeginEndGroup_6__reduce_cython__}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5imgui_4core_14_BeginEndGroup_9__setstate_cython__, METH_O, __pyx_doc_5imgui_4core_14_BeginEndGroup_8__setstate_cython__}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_5imgui_4core__BeginEndGroup = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._BeginEndGroup", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core__BeginEndGroup), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core__BeginEndGroup, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_5imgui_4core_14_BeginEndGroup_5__repr__, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Return value of :func:`begin_group`.\n See :func:`begin_group` for an explanation and examples.\n\n Can be used as a context manager (in a ``with`` statement) to automatically call :func:`end_group`\n to end the group created with :func:`begin_group` when the block ends,\n even if an exception is raised.\n\n This class is not intended to be instantiated by the user (thus the `_` name prefix).\n It should be obtained as the return value of the :func:`begin_group` function.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_5imgui_4core__BeginEndGroup, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core__BeginEndGroup, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *__pyx_freelist_5imgui_4core___pyx_scope_struct___py_font[8]; static int __pyx_freecount_5imgui_4core___pyx_scope_struct___py_font = 0; static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct___py_font(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5imgui_4core___pyx_scope_struct___py_font > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font)))) { o = (PyObject*)__pyx_freelist_5imgui_4core___pyx_scope_struct___py_font[--__pyx_freecount_5imgui_4core___pyx_scope_struct___py_font]; memset(o, 0, sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } return o; } static void __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct___py_font(PyObject *o) { struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *)o; PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_font); if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5imgui_4core___pyx_scope_struct___py_font < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font)))) { __pyx_freelist_5imgui_4core___pyx_scope_struct___py_font[__pyx_freecount_5imgui_4core___pyx_scope_struct___py_font++] = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *)o); } else { (*Py_TYPE(o)->tp_free)(o); } } static int __pyx_tp_traverse_5imgui_4core___pyx_scope_struct___py_font(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font *)o; if (p->__pyx_v_font) { e = (*v)(((PyObject *)p->__pyx_v_font), a); if (e) return e; } return 0; } static PyTypeObject __pyx_type_5imgui_4core___pyx_scope_struct___py_font = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.__pyx_scope_struct___py_font", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct___py_font), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct___py_font, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_5imgui_4core___pyx_scope_struct___py_font, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core___pyx_scope_struct___py_font, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *__pyx_freelist_5imgui_4core___pyx_scope_struct_1__py_styled[8]; static int __pyx_freecount_5imgui_4core___pyx_scope_struct_1__py_styled = 0; static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct_1__py_styled(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5imgui_4core___pyx_scope_struct_1__py_styled > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled)))) { o = (PyObject*)__pyx_freelist_5imgui_4core___pyx_scope_struct_1__py_styled[--__pyx_freecount_5imgui_4core___pyx_scope_struct_1__py_styled]; memset(o, 0, sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } return o; } static void __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct_1__py_styled(PyObject *o) { struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *)o; PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_count); Py_CLEAR(p->__pyx_v_value); if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5imgui_4core___pyx_scope_struct_1__py_styled < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled)))) { __pyx_freelist_5imgui_4core___pyx_scope_struct_1__py_styled[__pyx_freecount_5imgui_4core___pyx_scope_struct_1__py_styled++] = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *)o); } else { (*Py_TYPE(o)->tp_free)(o); } } static int __pyx_tp_traverse_5imgui_4core___pyx_scope_struct_1__py_styled(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled *)o; if (p->__pyx_v_count) { e = (*v)(p->__pyx_v_count, a); if (e) return e; } if (p->__pyx_v_value) { e = (*v)(p->__pyx_v_value, a); if (e) return e; } return 0; } static PyTypeObject __pyx_type_5imgui_4core___pyx_scope_struct_1__py_styled = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.__pyx_scope_struct_1__py_styled", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_1__py_styled), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct_1__py_styled, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_5imgui_4core___pyx_scope_struct_1__py_styled, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core___pyx_scope_struct_1__py_styled, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *__pyx_freelist_5imgui_4core___pyx_scope_struct_2__py_colored[8]; static int __pyx_freecount_5imgui_4core___pyx_scope_struct_2__py_colored = 0; static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct_2__py_colored(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5imgui_4core___pyx_scope_struct_2__py_colored > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored)))) { o = (PyObject*)__pyx_freelist_5imgui_4core___pyx_scope_struct_2__py_colored[--__pyx_freecount_5imgui_4core___pyx_scope_struct_2__py_colored]; memset(o, 0, sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } return o; } static void __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct_2__py_colored(PyObject *o) { struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *)o; PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_count); if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5imgui_4core___pyx_scope_struct_2__py_colored < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored)))) { __pyx_freelist_5imgui_4core___pyx_scope_struct_2__py_colored[__pyx_freecount_5imgui_4core___pyx_scope_struct_2__py_colored++] = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *)o); } else { (*Py_TYPE(o)->tp_free)(o); } } static int __pyx_tp_traverse_5imgui_4core___pyx_scope_struct_2__py_colored(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored *)o; if (p->__pyx_v_count) { e = (*v)(p->__pyx_v_count, a); if (e) return e; } return 0; } static PyTypeObject __pyx_type_5imgui_4core___pyx_scope_struct_2__py_colored = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.__pyx_scope_struct_2__py_colored", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_2__py_colored), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct_2__py_colored, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_5imgui_4core___pyx_scope_struct_2__py_colored, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core___pyx_scope_struct_2__py_colored, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *__pyx_freelist_5imgui_4core___pyx_scope_struct_3__py_istyled[8]; static int __pyx_freecount_5imgui_4core___pyx_scope_struct_3__py_istyled = 0; static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct_3__py_istyled(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5imgui_4core___pyx_scope_struct_3__py_istyled > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled)))) { o = (PyObject*)__pyx_freelist_5imgui_4core___pyx_scope_struct_3__py_istyled[--__pyx_freecount_5imgui_4core___pyx_scope_struct_3__py_istyled]; memset(o, 0, sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } return o; } static void __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct_3__py_istyled(PyObject *o) { struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *)o; PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_count); Py_CLEAR(p->__pyx_v_iterator); Py_CLEAR(p->__pyx_v_val); Py_CLEAR(p->__pyx_v_var); Py_CLEAR(p->__pyx_v_variables_and_values); Py_CLEAR(p->__pyx_t_0); Py_CLEAR(p->__pyx_t_1); Py_CLEAR(p->__pyx_t_2); if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5imgui_4core___pyx_scope_struct_3__py_istyled < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled)))) { __pyx_freelist_5imgui_4core___pyx_scope_struct_3__py_istyled[__pyx_freecount_5imgui_4core___pyx_scope_struct_3__py_istyled++] = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *)o); } else { (*Py_TYPE(o)->tp_free)(o); } } static int __pyx_tp_traverse_5imgui_4core___pyx_scope_struct_3__py_istyled(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled *)o; if (p->__pyx_v_count) { e = (*v)(p->__pyx_v_count, a); if (e) return e; } if (p->__pyx_v_iterator) { e = (*v)(p->__pyx_v_iterator, a); if (e) return e; } if (p->__pyx_v_val) { e = (*v)(p->__pyx_v_val, a); if (e) return e; } if (p->__pyx_v_var) { e = (*v)(p->__pyx_v_var, a); if (e) return e; } if (p->__pyx_v_variables_and_values) { e = (*v)(p->__pyx_v_variables_and_values, a); if (e) return e; } if (p->__pyx_t_0) { e = (*v)(p->__pyx_t_0, a); if (e) return e; } if (p->__pyx_t_1) { e = (*v)(p->__pyx_t_1, a); if (e) return e; } if (p->__pyx_t_2) { e = (*v)(p->__pyx_t_2, a); if (e) return e; } return 0; } static PyTypeObject __pyx_type_5imgui_4core___pyx_scope_struct_3__py_istyled = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.__pyx_scope_struct_3__py_istyled", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_3__py_istyled), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct_3__py_istyled, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_5imgui_4core___pyx_scope_struct_3__py_istyled, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core___pyx_scope_struct_3__py_istyled, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *__pyx_freelist_5imgui_4core___pyx_scope_struct_4__py_scoped[8]; static int __pyx_freecount_5imgui_4core___pyx_scope_struct_4__py_scoped = 0; static PyObject *__pyx_tp_new_5imgui_4core___pyx_scope_struct_4__py_scoped(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5imgui_4core___pyx_scope_struct_4__py_scoped > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped)))) { o = (PyObject*)__pyx_freelist_5imgui_4core___pyx_scope_struct_4__py_scoped[--__pyx_freecount_5imgui_4core___pyx_scope_struct_4__py_scoped]; memset(o, 0, sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped)); (void) PyObject_INIT(o, t); } else { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } return o; } static void __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct_4__py_scoped(PyObject *o) { struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *p = (struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *)o; Py_CLEAR(p->__pyx_v_str_id); if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5imgui_4core___pyx_scope_struct_4__py_scoped < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped)))) { __pyx_freelist_5imgui_4core___pyx_scope_struct_4__py_scoped[__pyx_freecount_5imgui_4core___pyx_scope_struct_4__py_scoped++] = ((struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped *)o); } else { (*Py_TYPE(o)->tp_free)(o); } } static PyTypeObject __pyx_type_5imgui_4core___pyx_scope_struct_4__py_scoped = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.__pyx_scope_struct_4__py_scoped", /*tp_name*/ sizeof(struct __pyx_obj_5imgui_4core___pyx_scope_struct_4__py_scoped), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_5imgui_4core___pyx_scope_struct_4__py_scoped, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_5imgui_4core___pyx_scope_struct_4__py_scoped, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_array __pyx_vtable_array; static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_array_obj *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_array_obj *)o); p->__pyx_vtab = __pyx_vtabptr_array; p->mode = ((PyObject*)Py_None); Py_INCREF(Py_None); p->_format = ((PyObject*)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_array___cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_array(PyObject *o) { struct __pyx_array_obj *p = (struct __pyx_array_obj *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1); __pyx_array___dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->mode); Py_CLEAR(p->_format); (*Py_TYPE(o)->tp_free)(o); } static PyObject *__pyx_sq_item_array(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static int __pyx_mp_ass_subscript_array(PyObject *o, PyObject *i, PyObject *v) { if (v) { return __pyx_array___setitem__(o, i, v); } else { PyErr_Format(PyExc_NotImplementedError, "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name); return -1; } } static PyObject *__pyx_tp_getattro_array(PyObject *o, PyObject *n) { PyObject *v = __Pyx_PyObject_GenericGetAttr(o, n); if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); v = __pyx_array___getattr__(o, n); } return v; } static PyObject *__pyx_getprop___pyx_array_memview(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(o); } static PyMethodDef __pyx_methods_array[] = { {"__getattr__", (PyCFunction)__pyx_array___getattr__, METH_O|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_array_1__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_array_3__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_array[] = { {(char *)"memview", __pyx_getprop___pyx_array_memview, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence_array = { __pyx_array___len__, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_array, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_array = { __pyx_array___len__, /*mp_length*/ __pyx_array___getitem__, /*mp_subscript*/ __pyx_mp_ass_subscript_array, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_array = { #if PY_MAJOR_VERSION < 3 0, /*bf_getreadbuffer*/ #endif #if PY_MAJOR_VERSION < 3 0, /*bf_getwritebuffer*/ #endif #if PY_MAJOR_VERSION < 3 0, /*bf_getsegcount*/ #endif #if PY_MAJOR_VERSION < 3 0, /*bf_getcharbuffer*/ #endif __pyx_array_getbuffer, /*bf_getbuffer*/ 0, /*bf_releasebuffer*/ }; static PyTypeObject __pyx_type___pyx_array = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.array", /*tp_name*/ sizeof(struct __pyx_array_obj), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_array, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence_array, /*tp_as_sequence*/ &__pyx_tp_as_mapping_array, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ __pyx_tp_getattro_array, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_array, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_array, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_array, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_array, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_MemviewEnum_obj *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_MemviewEnum_obj *)o); p->name = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_Enum(PyObject *o) { struct __pyx_MemviewEnum_obj *p = (struct __pyx_MemviewEnum_obj *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->name); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_Enum(PyObject *o, visitproc v, void *a) { int e; struct __pyx_MemviewEnum_obj *p = (struct __pyx_MemviewEnum_obj *)o; if (p->name) { e = (*v)(p->name, a); if (e) return e; } return 0; } static int __pyx_tp_clear_Enum(PyObject *o) { PyObject* tmp; struct __pyx_MemviewEnum_obj *p = (struct __pyx_MemviewEnum_obj *)o; tmp = ((PyObject*)p->name); p->name = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyMethodDef __pyx_methods_Enum[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_1__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_3__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type___pyx_MemviewEnum = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.Enum", /*tp_name*/ sizeof(struct __pyx_MemviewEnum_obj), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_Enum, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_MemviewEnum___repr__, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_Enum, /*tp_traverse*/ __pyx_tp_clear_Enum, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_Enum, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_MemviewEnum___init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_Enum, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct_memoryview __pyx_vtable_memoryview; static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_memoryview_obj *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_memoryview_obj *)o); p->__pyx_vtab = __pyx_vtabptr_memoryview; p->obj = Py_None; Py_INCREF(Py_None); p->_size = Py_None; Py_INCREF(Py_None); p->_array_interface = Py_None; Py_INCREF(Py_None); p->view.obj = NULL; if (unlikely(__pyx_memoryview___cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_memoryview(PyObject *o) { struct __pyx_memoryview_obj *p = (struct __pyx_memoryview_obj *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1); __pyx_memoryview___dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->obj); Py_CLEAR(p->_size); Py_CLEAR(p->_array_interface); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_memoryview(PyObject *o, visitproc v, void *a) { int e; struct __pyx_memoryview_obj *p = (struct __pyx_memoryview_obj *)o; if (p->obj) { e = (*v)(p->obj, a); if (e) return e; } if (p->_size) { e = (*v)(p->_size, a); if (e) return e; } if (p->_array_interface) { e = (*v)(p->_array_interface, a); if (e) return e; } if (p->view.obj) { e = (*v)(p->view.obj, a); if (e) return e; } return 0; } static int __pyx_tp_clear_memoryview(PyObject *o) { PyObject* tmp; struct __pyx_memoryview_obj *p = (struct __pyx_memoryview_obj *)o; tmp = ((PyObject*)p->obj); p->obj = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_size); p->_size = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_array_interface); p->_array_interface = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); Py_CLEAR(p->view.obj); return 0; } static PyObject *__pyx_sq_item_memoryview(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static int __pyx_mp_ass_subscript_memoryview(PyObject *o, PyObject *i, PyObject *v) { if (v) { return __pyx_memoryview___setitem__(o, i, v); } else { PyErr_Format(PyExc_NotImplementedError, "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name); return -1; } } static PyObject *__pyx_getprop___pyx_memoryview_T(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(o); } static PyObject *__pyx_getprop___pyx_memoryview_base(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(o); } static PyObject *__pyx_getprop___pyx_memoryview_shape(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(o); } static PyObject *__pyx_getprop___pyx_memoryview_strides(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(o); } static PyObject *__pyx_getprop___pyx_memoryview_suboffsets(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(o); } static PyObject *__pyx_getprop___pyx_memoryview_ndim(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(o); } static PyObject *__pyx_getprop___pyx_memoryview_itemsize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(o); } static PyObject *__pyx_getprop___pyx_memoryview_nbytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(o); } static PyObject *__pyx_getprop___pyx_memoryview_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(o); } static PyMethodDef __pyx_methods_memoryview[] = { {"is_c_contig", (PyCFunction)__pyx_memoryview_is_c_contig, METH_NOARGS, 0}, {"is_f_contig", (PyCFunction)__pyx_memoryview_is_f_contig, METH_NOARGS, 0}, {"copy", (PyCFunction)__pyx_memoryview_copy, METH_NOARGS, 0}, {"copy_fortran", (PyCFunction)__pyx_memoryview_copy_fortran, METH_NOARGS, 0}, {"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_1__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_3__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_memoryview[] = { {(char *)"T", __pyx_getprop___pyx_memoryview_T, 0, (char *)0, 0}, {(char *)"base", __pyx_getprop___pyx_memoryview_base, 0, (char *)0, 0}, {(char *)"shape", __pyx_getprop___pyx_memoryview_shape, 0, (char *)0, 0}, {(char *)"strides", __pyx_getprop___pyx_memoryview_strides, 0, (char *)0, 0}, {(char *)"suboffsets", __pyx_getprop___pyx_memoryview_suboffsets, 0, (char *)0, 0}, {(char *)"ndim", __pyx_getprop___pyx_memoryview_ndim, 0, (char *)0, 0}, {(char *)"itemsize", __pyx_getprop___pyx_memoryview_itemsize, 0, (char *)0, 0}, {(char *)"nbytes", __pyx_getprop___pyx_memoryview_nbytes, 0, (char *)0, 0}, {(char *)"size", __pyx_getprop___pyx_memoryview_size, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence_memoryview = { __pyx_memoryview___len__, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_memoryview, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_memoryview = { __pyx_memoryview___len__, /*mp_length*/ __pyx_memoryview___getitem__, /*mp_subscript*/ __pyx_mp_ass_subscript_memoryview, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_memoryview = { #if PY_MAJOR_VERSION < 3 0, /*bf_getreadbuffer*/ #endif #if PY_MAJOR_VERSION < 3 0, /*bf_getwritebuffer*/ #endif #if PY_MAJOR_VERSION < 3 0, /*bf_getsegcount*/ #endif #if PY_MAJOR_VERSION < 3 0, /*bf_getcharbuffer*/ #endif __pyx_memoryview_getbuffer, /*bf_getbuffer*/ 0, /*bf_releasebuffer*/ }; static PyTypeObject __pyx_type___pyx_memoryview = { PyVarObject_HEAD_INIT(0, 0) "imgui.core.memoryview", /*tp_name*/ sizeof(struct __pyx_memoryview_obj), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_memoryview, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_memoryview___repr__, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence_memoryview, /*tp_as_sequence*/ &__pyx_tp_as_mapping_memoryview, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_memoryview___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_memoryview, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_memoryview, /*tp_traverse*/ __pyx_tp_clear_memoryview, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_memoryview, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_memoryview, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_memoryview, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static struct __pyx_vtabstruct__memoryviewslice __pyx_vtable__memoryviewslice; static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_memoryviewslice_obj *p; PyObject *o = __pyx_tp_new_memoryview(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_memoryviewslice_obj *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_memoryview*)__pyx_vtabptr__memoryviewslice; p->from_object = Py_None; Py_INCREF(Py_None); p->from_slice.memview = NULL; return o; } static void __pyx_tp_dealloc__memoryviewslice(PyObject *o) { struct __pyx_memoryviewslice_obj *p = (struct __pyx_memoryviewslice_obj *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1); __pyx_memoryviewslice___dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->from_object); PyObject_GC_Track(o); __pyx_tp_dealloc_memoryview(o); } static int __pyx_tp_traverse__memoryviewslice(PyObject *o, visitproc v, void *a) { int e; struct __pyx_memoryviewslice_obj *p = (struct __pyx_memoryviewslice_obj *)o; e = __pyx_tp_traverse_memoryview(o, v, a); if (e) return e; if (p->from_object) { e = (*v)(p->from_object, a); if (e) return e; } return 0; } static int __pyx_tp_clear__memoryviewslice(PyObject *o) { PyObject* tmp; struct __pyx_memoryviewslice_obj *p = (struct __pyx_memoryviewslice_obj *)o; __pyx_tp_clear_memoryview(o); tmp = ((PyObject*)p->from_object); p->from_object = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); __PYX_XDEC_MEMVIEW(&p->from_slice, 1); return 0; } static PyObject *__pyx_getprop___pyx_memoryviewslice_base(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(o); } static PyMethodDef __pyx_methods__memoryviewslice[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_1__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_3__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets__memoryviewslice[] = { {(char *)"base", __pyx_getprop___pyx_memoryviewslice_base, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type___pyx_memoryviewslice = { PyVarObject_HEAD_INIT(0, 0) "imgui.core._memoryviewslice", /*tp_name*/ sizeof(struct __pyx_memoryviewslice_obj), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc__memoryviewslice, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY __pyx_memoryview___repr__, /*tp_repr*/ #else 0, /*tp_repr*/ #endif 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ #if CYTHON_COMPILING_IN_PYPY __pyx_memoryview___str__, /*tp_str*/ #else 0, /*tp_str*/ #endif 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "Internal class for passing memoryview slices to Python", /*tp_doc*/ __pyx_tp_traverse__memoryviewslice, /*tp_traverse*/ __pyx_tp_clear__memoryviewslice, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods__memoryviewslice, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets__memoryviewslice, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new__memoryviewslice, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; static PyMethodDef __pyx_methods[] = { {"calc_text_size", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_451calc_text_size, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_450calc_text_size}, {"push_style_var", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_461push_style_var, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_460push_style_var}, {"push_style_color", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_463push_style_color, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_462push_style_color}, {"pop_style_var", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_465pop_style_var, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_464pop_style_var}, {"get_font_size", (PyCFunction)__pyx_pw_5imgui_4core_467get_font_size, METH_NOARGS, __pyx_doc_5imgui_4core_466get_font_size}, {"get_style_color_vec_4", (PyCFunction)__pyx_pw_5imgui_4core_469get_style_color_vec_4, METH_O, __pyx_doc_5imgui_4core_468get_style_color_vec_4}, {"get_font_tex_uv_white_pixel", (PyCFunction)__pyx_pw_5imgui_4core_471get_font_tex_uv_white_pixel, METH_NOARGS, __pyx_doc_5imgui_4core_470get_font_tex_uv_white_pixel}, {"get_color_u32_idx", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_473get_color_u32_idx, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_472get_color_u32_idx}, {"get_color_u32_rgba", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_475get_color_u32_rgba, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_474get_color_u32_rgba}, {"get_color_u32", (PyCFunction)__pyx_pw_5imgui_4core_477get_color_u32, METH_O, __pyx_doc_5imgui_4core_476get_color_u32}, {"push_item_width", (PyCFunction)__pyx_pw_5imgui_4core_479push_item_width, METH_O, __pyx_doc_5imgui_4core_478push_item_width}, {"pop_item_width", (PyCFunction)__pyx_pw_5imgui_4core_481pop_item_width, METH_NOARGS, __pyx_doc_5imgui_4core_480pop_item_width}, {"set_next_item_width", (PyCFunction)__pyx_pw_5imgui_4core_483set_next_item_width, METH_O, __pyx_doc_5imgui_4core_482set_next_item_width}, {"calculate_item_width", (PyCFunction)__pyx_pw_5imgui_4core_485calculate_item_width, METH_NOARGS, __pyx_doc_5imgui_4core_484calculate_item_width}, {"push_text_wrap_pos", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_487push_text_wrap_pos, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_486push_text_wrap_pos}, {"pop_text_wrap_pos", (PyCFunction)__pyx_pw_5imgui_4core_489pop_text_wrap_pos, METH_NOARGS, __pyx_doc_5imgui_4core_488pop_text_wrap_pos}, {"push_allow_keyboard_focus", (PyCFunction)__pyx_pw_5imgui_4core_491push_allow_keyboard_focus, METH_O, __pyx_doc_5imgui_4core_490push_allow_keyboard_focus}, {"pop_allow_keyboard_focus", (PyCFunction)__pyx_pw_5imgui_4core_493pop_allow_keyboard_focus, METH_NOARGS, __pyx_doc_5imgui_4core_492pop_allow_keyboard_focus}, {"push_button_repeat", (PyCFunction)__pyx_pw_5imgui_4core_495push_button_repeat, METH_O, __pyx_doc_5imgui_4core_494push_button_repeat}, {"pop_button_repeat", (PyCFunction)__pyx_pw_5imgui_4core_497pop_button_repeat, METH_NOARGS, __pyx_doc_5imgui_4core_496pop_button_repeat}, {"pop_style_color", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5imgui_4core_499pop_style_color, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5imgui_4core_498pop_style_color}, {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 #if CYTHON_PEP489_MULTI_PHASE_INIT static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ static int __pyx_pymod_exec_core(PyObject* module); /*proto*/ static PyModuleDef_Slot __pyx_moduledef_slots[] = { {Py_mod_create, (void*)__pyx_pymod_create}, {Py_mod_exec, (void*)__pyx_pymod_exec_core}, {0, NULL} }; #endif static struct PyModuleDef __pyx_moduledef = { PyModuleDef_HEAD_INIT, "core", __pyx_k_todo_consider_inlining_every_oc, /* m_doc */ #if CYTHON_PEP489_MULTI_PHASE_INIT 0, /* m_size */ #else -1, /* m_size */ #endif __pyx_methods /* m_methods */, #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_moduledef_slots, /* m_slots */ #else NULL, /* m_reload */ #endif NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif #ifndef CYTHON_SMALL_CODE #if defined(__clang__) #define CYTHON_SMALL_CODE #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) #define CYTHON_SMALL_CODE __attribute__((cold)) #else #define CYTHON_SMALL_CODE #endif #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_0f_deg, __pyx_k_0f_deg, sizeof(__pyx_k_0f_deg), 0, 0, 1, 0}, {&__pyx_kp_s_3f, __pyx_k_3f, sizeof(__pyx_k_3f), 0, 0, 1, 0}, {&__pyx_kp_s_6f, __pyx_k_6f, sizeof(__pyx_k_6f), 0, 0, 1, 0}, {&__pyx_n_s_ALWAYS, __pyx_k_ALWAYS, sizeof(__pyx_k_ALWAYS), 0, 0, 1, 1}, {&__pyx_n_s_APPEARING, __pyx_k_APPEARING, sizeof(__pyx_k_APPEARING), 0, 0, 1, 1}, {&__pyx_n_s_ASCII, __pyx_k_ASCII, sizeof(__pyx_k_ASCII), 0, 0, 1, 1}, {&__pyx_n_s_BACKEND_HAS_GAMEPAD, __pyx_k_BACKEND_HAS_GAMEPAD, sizeof(__pyx_k_BACKEND_HAS_GAMEPAD), 0, 0, 1, 1}, {&__pyx_n_s_BACKEND_HAS_MOUSE_CURSORS, __pyx_k_BACKEND_HAS_MOUSE_CURSORS, sizeof(__pyx_k_BACKEND_HAS_MOUSE_CURSORS), 0, 0, 1, 1}, {&__pyx_n_s_BACKEND_HAS_SET_MOUSE_POS, __pyx_k_BACKEND_HAS_SET_MOUSE_POS, sizeof(__pyx_k_BACKEND_HAS_SET_MOUSE_POS), 0, 0, 1, 1}, {&__pyx_n_s_BACKEND_NONE, __pyx_k_BACKEND_NONE, sizeof(__pyx_k_BACKEND_NONE), 0, 0, 1, 1}, {&__pyx_n_s_BACKEND_RENDERER_HAS_VTX_OFFSET, __pyx_k_BACKEND_RENDERER_HAS_VTX_OFFSET, sizeof(__pyx_k_BACKEND_RENDERER_HAS_VTX_OFFSET), 0, 0, 1, 1}, {&__pyx_n_s_BUTTON_MOUSE_BUTTON_LEFT, __pyx_k_BUTTON_MOUSE_BUTTON_LEFT, sizeof(__pyx_k_BUTTON_MOUSE_BUTTON_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_BUTTON_MOUSE_BUTTON_MIDDLE, __pyx_k_BUTTON_MOUSE_BUTTON_MIDDLE, sizeof(__pyx_k_BUTTON_MOUSE_BUTTON_MIDDLE), 0, 0, 1, 1}, {&__pyx_n_s_BUTTON_MOUSE_BUTTON_RIGHT, __pyx_k_BUTTON_MOUSE_BUTTON_RIGHT, sizeof(__pyx_k_BUTTON_MOUSE_BUTTON_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_BUTTON_NONE, __pyx_k_BUTTON_NONE, sizeof(__pyx_k_BUTTON_NONE), 0, 0, 1, 1}, {&__pyx_n_s_BeginEnd, __pyx_k_BeginEnd, sizeof(__pyx_k_BeginEnd), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndChild, __pyx_k_BeginEndChild, sizeof(__pyx_k_BeginEndChild), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndCombo, __pyx_k_BeginEndCombo, sizeof(__pyx_k_BeginEndCombo), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndDragDropSource, __pyx_k_BeginEndDragDropSource, sizeof(__pyx_k_BeginEndDragDropSource), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndDragDropTarget, __pyx_k_BeginEndDragDropTarget, sizeof(__pyx_k_BeginEndDragDropTarget), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndGroup, __pyx_k_BeginEndGroup, sizeof(__pyx_k_BeginEndGroup), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndListBox, __pyx_k_BeginEndListBox, sizeof(__pyx_k_BeginEndListBox), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndMainMenuBar, __pyx_k_BeginEndMainMenuBar, sizeof(__pyx_k_BeginEndMainMenuBar), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndMenu, __pyx_k_BeginEndMenu, sizeof(__pyx_k_BeginEndMenu), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndMenuBar, __pyx_k_BeginEndMenuBar, sizeof(__pyx_k_BeginEndMenuBar), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndPopup, __pyx_k_BeginEndPopup, sizeof(__pyx_k_BeginEndPopup), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndPopupModal, __pyx_k_BeginEndPopupModal, sizeof(__pyx_k_BeginEndPopupModal), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndTabBar, __pyx_k_BeginEndTabBar, sizeof(__pyx_k_BeginEndTabBar), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndTabItem, __pyx_k_BeginEndTabItem, sizeof(__pyx_k_BeginEndTabItem), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndTable, __pyx_k_BeginEndTable, sizeof(__pyx_k_BeginEndTable), 0, 0, 1, 1}, {&__pyx_n_s_BeginEndTooltip, __pyx_k_BeginEndTooltip, sizeof(__pyx_k_BeginEndTooltip), 0, 0, 1, 1}, {&__pyx_kp_s_Buffer_view_does_not_expose_stri, __pyx_k_Buffer_view_does_not_expose_stri, sizeof(__pyx_k_Buffer_view_does_not_expose_stri), 0, 0, 1, 0}, {&__pyx_n_s_COLOR_BORDER, __pyx_k_COLOR_BORDER, sizeof(__pyx_k_COLOR_BORDER), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_BORDER_SHADOW, __pyx_k_COLOR_BORDER_SHADOW, sizeof(__pyx_k_COLOR_BORDER_SHADOW), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_BUTTON, __pyx_k_COLOR_BUTTON, sizeof(__pyx_k_COLOR_BUTTON), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_BUTTON_ACTIVE, __pyx_k_COLOR_BUTTON_ACTIVE, sizeof(__pyx_k_COLOR_BUTTON_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_BUTTON_HOVERED, __pyx_k_COLOR_BUTTON_HOVERED, sizeof(__pyx_k_COLOR_BUTTON_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_CHECK_MARK, __pyx_k_COLOR_CHECK_MARK, sizeof(__pyx_k_COLOR_CHECK_MARK), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_CHILD_BACKGROUND, __pyx_k_COLOR_CHILD_BACKGROUND, sizeof(__pyx_k_COLOR_CHILD_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_COUNT, __pyx_k_COLOR_COUNT, sizeof(__pyx_k_COLOR_COUNT), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_DRAG_DROP_TARGET, __pyx_k_COLOR_DRAG_DROP_TARGET, sizeof(__pyx_k_COLOR_DRAG_DROP_TARGET), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_ALPHA_BAR, __pyx_k_COLOR_EDIT_ALPHA_BAR, sizeof(__pyx_k_COLOR_EDIT_ALPHA_BAR), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_ALPHA_PREVIEW, __pyx_k_COLOR_EDIT_ALPHA_PREVIEW, sizeof(__pyx_k_COLOR_EDIT_ALPHA_PREVIEW), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_ALPHA_PREVIEW_HALF, __pyx_k_COLOR_EDIT_ALPHA_PREVIEW_HALF, sizeof(__pyx_k_COLOR_EDIT_ALPHA_PREVIEW_HALF), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_DEFAULT_OPTIONS, __pyx_k_COLOR_EDIT_DEFAULT_OPTIONS, sizeof(__pyx_k_COLOR_EDIT_DEFAULT_OPTIONS), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_DISPLAY_HEX, __pyx_k_COLOR_EDIT_DISPLAY_HEX, sizeof(__pyx_k_COLOR_EDIT_DISPLAY_HEX), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_DISPLAY_HSV, __pyx_k_COLOR_EDIT_DISPLAY_HSV, sizeof(__pyx_k_COLOR_EDIT_DISPLAY_HSV), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_DISPLAY_RGB, __pyx_k_COLOR_EDIT_DISPLAY_RGB, sizeof(__pyx_k_COLOR_EDIT_DISPLAY_RGB), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_FLOAT, __pyx_k_COLOR_EDIT_FLOAT, sizeof(__pyx_k_COLOR_EDIT_FLOAT), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_HDR, __pyx_k_COLOR_EDIT_HDR, sizeof(__pyx_k_COLOR_EDIT_HDR), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_INPUT_HSV, __pyx_k_COLOR_EDIT_INPUT_HSV, sizeof(__pyx_k_COLOR_EDIT_INPUT_HSV), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_INPUT_RGB, __pyx_k_COLOR_EDIT_INPUT_RGB, sizeof(__pyx_k_COLOR_EDIT_INPUT_RGB), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NONE, __pyx_k_COLOR_EDIT_NONE, sizeof(__pyx_k_COLOR_EDIT_NONE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_ALPHA, __pyx_k_COLOR_EDIT_NO_ALPHA, sizeof(__pyx_k_COLOR_EDIT_NO_ALPHA), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_BORDER, __pyx_k_COLOR_EDIT_NO_BORDER, sizeof(__pyx_k_COLOR_EDIT_NO_BORDER), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_DRAG_DROP, __pyx_k_COLOR_EDIT_NO_DRAG_DROP, sizeof(__pyx_k_COLOR_EDIT_NO_DRAG_DROP), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_INPUTS, __pyx_k_COLOR_EDIT_NO_INPUTS, sizeof(__pyx_k_COLOR_EDIT_NO_INPUTS), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_LABEL, __pyx_k_COLOR_EDIT_NO_LABEL, sizeof(__pyx_k_COLOR_EDIT_NO_LABEL), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_OPTIONS, __pyx_k_COLOR_EDIT_NO_OPTIONS, sizeof(__pyx_k_COLOR_EDIT_NO_OPTIONS), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_PICKER, __pyx_k_COLOR_EDIT_NO_PICKER, sizeof(__pyx_k_COLOR_EDIT_NO_PICKER), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_SIDE_PREVIEW, __pyx_k_COLOR_EDIT_NO_SIDE_PREVIEW, sizeof(__pyx_k_COLOR_EDIT_NO_SIDE_PREVIEW), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_SMALL_PREVIEW, __pyx_k_COLOR_EDIT_NO_SMALL_PREVIEW, sizeof(__pyx_k_COLOR_EDIT_NO_SMALL_PREVIEW), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_NO_TOOLTIP, __pyx_k_COLOR_EDIT_NO_TOOLTIP, sizeof(__pyx_k_COLOR_EDIT_NO_TOOLTIP), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_PICKER_HUE_BAR, __pyx_k_COLOR_EDIT_PICKER_HUE_BAR, sizeof(__pyx_k_COLOR_EDIT_PICKER_HUE_BAR), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_PICKER_HUE_WHEEL, __pyx_k_COLOR_EDIT_PICKER_HUE_WHEEL, sizeof(__pyx_k_COLOR_EDIT_PICKER_HUE_WHEEL), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_EDIT_UINT8, __pyx_k_COLOR_EDIT_UINT8, sizeof(__pyx_k_COLOR_EDIT_UINT8), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_FRAME_BACKGROUND, __pyx_k_COLOR_FRAME_BACKGROUND, sizeof(__pyx_k_COLOR_FRAME_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_FRAME_BACKGROUND_ACTIVE, __pyx_k_COLOR_FRAME_BACKGROUND_ACTIVE, sizeof(__pyx_k_COLOR_FRAME_BACKGROUND_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_FRAME_BACKGROUND_HOVERED, __pyx_k_COLOR_FRAME_BACKGROUND_HOVERED, sizeof(__pyx_k_COLOR_FRAME_BACKGROUND_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_HEADER, __pyx_k_COLOR_HEADER, sizeof(__pyx_k_COLOR_HEADER), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_HEADER_ACTIVE, __pyx_k_COLOR_HEADER_ACTIVE, sizeof(__pyx_k_COLOR_HEADER_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_HEADER_HOVERED, __pyx_k_COLOR_HEADER_HOVERED, sizeof(__pyx_k_COLOR_HEADER_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_MENUBAR_BACKGROUND, __pyx_k_COLOR_MENUBAR_BACKGROUND, sizeof(__pyx_k_COLOR_MENUBAR_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_MODAL_WINDOW_DIM_BACKGROUN, __pyx_k_COLOR_MODAL_WINDOW_DIM_BACKGROUN, sizeof(__pyx_k_COLOR_MODAL_WINDOW_DIM_BACKGROUN), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_NAV_HIGHLIGHT, __pyx_k_COLOR_NAV_HIGHLIGHT, sizeof(__pyx_k_COLOR_NAV_HIGHLIGHT), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_NAV_WINDOWING_DIM_BACKGROU, __pyx_k_COLOR_NAV_WINDOWING_DIM_BACKGROU, sizeof(__pyx_k_COLOR_NAV_WINDOWING_DIM_BACKGROU), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_NAV_WINDOWING_HIGHLIGHT, __pyx_k_COLOR_NAV_WINDOWING_HIGHLIGHT, sizeof(__pyx_k_COLOR_NAV_WINDOWING_HIGHLIGHT), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_PLOT_HISTOGRAM, __pyx_k_COLOR_PLOT_HISTOGRAM, sizeof(__pyx_k_COLOR_PLOT_HISTOGRAM), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_PLOT_HISTOGRAM_HOVERED, __pyx_k_COLOR_PLOT_HISTOGRAM_HOVERED, sizeof(__pyx_k_COLOR_PLOT_HISTOGRAM_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_PLOT_LINES, __pyx_k_COLOR_PLOT_LINES, sizeof(__pyx_k_COLOR_PLOT_LINES), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_PLOT_LINES_HOVERED, __pyx_k_COLOR_PLOT_LINES_HOVERED, sizeof(__pyx_k_COLOR_PLOT_LINES_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_POPUP_BACKGROUND, __pyx_k_COLOR_POPUP_BACKGROUND, sizeof(__pyx_k_COLOR_POPUP_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_RESIZE_GRIP, __pyx_k_COLOR_RESIZE_GRIP, sizeof(__pyx_k_COLOR_RESIZE_GRIP), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_RESIZE_GRIP_ACTIVE, __pyx_k_COLOR_RESIZE_GRIP_ACTIVE, sizeof(__pyx_k_COLOR_RESIZE_GRIP_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_RESIZE_GRIP_HOVERED, __pyx_k_COLOR_RESIZE_GRIP_HOVERED, sizeof(__pyx_k_COLOR_RESIZE_GRIP_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SCROLLBAR_BACKGROUND, __pyx_k_COLOR_SCROLLBAR_BACKGROUND, sizeof(__pyx_k_COLOR_SCROLLBAR_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SCROLLBAR_GRAB, __pyx_k_COLOR_SCROLLBAR_GRAB, sizeof(__pyx_k_COLOR_SCROLLBAR_GRAB), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SCROLLBAR_GRAB_ACTIVE, __pyx_k_COLOR_SCROLLBAR_GRAB_ACTIVE, sizeof(__pyx_k_COLOR_SCROLLBAR_GRAB_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SCROLLBAR_GRAB_HOVERED, __pyx_k_COLOR_SCROLLBAR_GRAB_HOVERED, sizeof(__pyx_k_COLOR_SCROLLBAR_GRAB_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SEPARATOR, __pyx_k_COLOR_SEPARATOR, sizeof(__pyx_k_COLOR_SEPARATOR), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SEPARATOR_ACTIVE, __pyx_k_COLOR_SEPARATOR_ACTIVE, sizeof(__pyx_k_COLOR_SEPARATOR_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SEPARATOR_HOVERED, __pyx_k_COLOR_SEPARATOR_HOVERED, sizeof(__pyx_k_COLOR_SEPARATOR_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SLIDER_GRAB, __pyx_k_COLOR_SLIDER_GRAB, sizeof(__pyx_k_COLOR_SLIDER_GRAB), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_SLIDER_GRAB_ACTIVE, __pyx_k_COLOR_SLIDER_GRAB_ACTIVE, sizeof(__pyx_k_COLOR_SLIDER_GRAB_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TAB, __pyx_k_COLOR_TAB, sizeof(__pyx_k_COLOR_TAB), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TABLE_BORDER_LIGHT, __pyx_k_COLOR_TABLE_BORDER_LIGHT, sizeof(__pyx_k_COLOR_TABLE_BORDER_LIGHT), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TABLE_BORDER_STRONG, __pyx_k_COLOR_TABLE_BORDER_STRONG, sizeof(__pyx_k_COLOR_TABLE_BORDER_STRONG), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TABLE_HEADER_BACKGROUND, __pyx_k_COLOR_TABLE_HEADER_BACKGROUND, sizeof(__pyx_k_COLOR_TABLE_HEADER_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TABLE_ROW_BACKGROUND, __pyx_k_COLOR_TABLE_ROW_BACKGROUND, sizeof(__pyx_k_COLOR_TABLE_ROW_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TABLE_ROW_BACKGROUND_ALT, __pyx_k_COLOR_TABLE_ROW_BACKGROUND_ALT, sizeof(__pyx_k_COLOR_TABLE_ROW_BACKGROUND_ALT), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TAB_ACTIVE, __pyx_k_COLOR_TAB_ACTIVE, sizeof(__pyx_k_COLOR_TAB_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TAB_HOVERED, __pyx_k_COLOR_TAB_HOVERED, sizeof(__pyx_k_COLOR_TAB_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TAB_UNFOCUSED, __pyx_k_COLOR_TAB_UNFOCUSED, sizeof(__pyx_k_COLOR_TAB_UNFOCUSED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TAB_UNFOCUSED_ACTIVE, __pyx_k_COLOR_TAB_UNFOCUSED_ACTIVE, sizeof(__pyx_k_COLOR_TAB_UNFOCUSED_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TEXT, __pyx_k_COLOR_TEXT, sizeof(__pyx_k_COLOR_TEXT), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TEXT_DISABLED, __pyx_k_COLOR_TEXT_DISABLED, sizeof(__pyx_k_COLOR_TEXT_DISABLED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TEXT_SELECTED_BACKGROUND, __pyx_k_COLOR_TEXT_SELECTED_BACKGROUND, sizeof(__pyx_k_COLOR_TEXT_SELECTED_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TITLE_BACKGROUND, __pyx_k_COLOR_TITLE_BACKGROUND, sizeof(__pyx_k_COLOR_TITLE_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TITLE_BACKGROUND_ACTIVE, __pyx_k_COLOR_TITLE_BACKGROUND_ACTIVE, sizeof(__pyx_k_COLOR_TITLE_BACKGROUND_ACTIVE), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_TITLE_BACKGROUND_COLLAPSED, __pyx_k_COLOR_TITLE_BACKGROUND_COLLAPSED, sizeof(__pyx_k_COLOR_TITLE_BACKGROUND_COLLAPSED), 0, 0, 1, 1}, {&__pyx_n_s_COLOR_WINDOW_BACKGROUND, __pyx_k_COLOR_WINDOW_BACKGROUND, sizeof(__pyx_k_COLOR_WINDOW_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_HEIGHT_LARGE, __pyx_k_COMBO_HEIGHT_LARGE, sizeof(__pyx_k_COMBO_HEIGHT_LARGE), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_HEIGHT_LARGEST, __pyx_k_COMBO_HEIGHT_LARGEST, sizeof(__pyx_k_COMBO_HEIGHT_LARGEST), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_HEIGHT_MASK, __pyx_k_COMBO_HEIGHT_MASK, sizeof(__pyx_k_COMBO_HEIGHT_MASK), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_HEIGHT_REGULAR, __pyx_k_COMBO_HEIGHT_REGULAR, sizeof(__pyx_k_COMBO_HEIGHT_REGULAR), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_HEIGHT_SMALL, __pyx_k_COMBO_HEIGHT_SMALL, sizeof(__pyx_k_COMBO_HEIGHT_SMALL), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_NONE, __pyx_k_COMBO_NONE, sizeof(__pyx_k_COMBO_NONE), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_NO_ARROW_BUTTON, __pyx_k_COMBO_NO_ARROW_BUTTON, sizeof(__pyx_k_COMBO_NO_ARROW_BUTTON), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_NO_PREVIEW, __pyx_k_COMBO_NO_PREVIEW, sizeof(__pyx_k_COMBO_NO_PREVIEW), 0, 0, 1, 1}, {&__pyx_n_s_COMBO_POPUP_ALIGN_LEFT, __pyx_k_COMBO_POPUP_ALIGN_LEFT, sizeof(__pyx_k_COMBO_POPUP_ALIGN_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_IS_RGB, __pyx_k_CONFIG_IS_RGB, sizeof(__pyx_k_CONFIG_IS_RGB), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_IS_TOUCH_SCREEN, __pyx_k_CONFIG_IS_TOUCH_SCREEN, sizeof(__pyx_k_CONFIG_IS_TOUCH_SCREEN), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_NAV_ENABLE_GAMEPAD, __pyx_k_CONFIG_NAV_ENABLE_GAMEPAD, sizeof(__pyx_k_CONFIG_NAV_ENABLE_GAMEPAD), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_NAV_ENABLE_KEYBOARD, __pyx_k_CONFIG_NAV_ENABLE_KEYBOARD, sizeof(__pyx_k_CONFIG_NAV_ENABLE_KEYBOARD), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_NAV_ENABLE_SET_MOUSE_POS, __pyx_k_CONFIG_NAV_ENABLE_SET_MOUSE_POS, sizeof(__pyx_k_CONFIG_NAV_ENABLE_SET_MOUSE_POS), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_NAV_NO_CAPTURE_KEYBOARD, __pyx_k_CONFIG_NAV_NO_CAPTURE_KEYBOARD, sizeof(__pyx_k_CONFIG_NAV_NO_CAPTURE_KEYBOARD), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_NONE, __pyx_k_CONFIG_NONE, sizeof(__pyx_k_CONFIG_NONE), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_NO_MOUSE, __pyx_k_CONFIG_NO_MOUSE, sizeof(__pyx_k_CONFIG_NO_MOUSE), 0, 0, 1, 1}, {&__pyx_n_s_CONFIG_NO_MOUSE_CURSOR_CHANGE, __pyx_k_CONFIG_NO_MOUSE_CURSOR_CHANGE, sizeof(__pyx_k_CONFIG_NO_MOUSE_CURSOR_CHANGE), 0, 0, 1, 1}, {&__pyx_kp_s_Can_only_create_a_buffer_that_is, __pyx_k_Can_only_create_a_buffer_that_is, sizeof(__pyx_k_Can_only_create_a_buffer_that_is), 0, 0, 1, 0}, {&__pyx_kp_s_Cannot_assign_to_read_only_memor, __pyx_k_Cannot_assign_to_read_only_memor, sizeof(__pyx_k_Cannot_assign_to_read_only_memor), 0, 0, 1, 0}, {&__pyx_kp_s_Cannot_create_writable_memory_vi, __pyx_k_Cannot_create_writable_memory_vi, sizeof(__pyx_k_Cannot_create_writable_memory_vi), 0, 0, 1, 0}, {&__pyx_kp_s_Cannot_index_with_type_s, __pyx_k_Cannot_index_with_type_s, sizeof(__pyx_k_Cannot_index_with_type_s), 0, 0, 1, 0}, {&__pyx_n_s_Colors, __pyx_k_Colors, sizeof(__pyx_k_Colors), 0, 0, 1, 1}, {&__pyx_kp_s_Context_invalid_None_or_destroye, __pyx_k_Context_invalid_None_or_destroye, sizeof(__pyx_k_Context_invalid_None_or_destroye), 0, 0, 1, 0}, {&__pyx_n_s_DATA_TYPE_DOUBLE, __pyx_k_DATA_TYPE_DOUBLE, sizeof(__pyx_k_DATA_TYPE_DOUBLE), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_FLOAT, __pyx_k_DATA_TYPE_FLOAT, sizeof(__pyx_k_DATA_TYPE_FLOAT), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_S16, __pyx_k_DATA_TYPE_S16, sizeof(__pyx_k_DATA_TYPE_S16), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_S32, __pyx_k_DATA_TYPE_S32, sizeof(__pyx_k_DATA_TYPE_S32), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_S64, __pyx_k_DATA_TYPE_S64, sizeof(__pyx_k_DATA_TYPE_S64), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_S8, __pyx_k_DATA_TYPE_S8, sizeof(__pyx_k_DATA_TYPE_S8), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_U16, __pyx_k_DATA_TYPE_U16, sizeof(__pyx_k_DATA_TYPE_U16), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_U32, __pyx_k_DATA_TYPE_U32, sizeof(__pyx_k_DATA_TYPE_U32), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_U64, __pyx_k_DATA_TYPE_U64, sizeof(__pyx_k_DATA_TYPE_U64), 0, 0, 1, 1}, {&__pyx_n_s_DATA_TYPE_U8, __pyx_k_DATA_TYPE_U8, sizeof(__pyx_k_DATA_TYPE_U8), 0, 0, 1, 1}, {&__pyx_n_s_DIRECTION_DOWN, __pyx_k_DIRECTION_DOWN, sizeof(__pyx_k_DIRECTION_DOWN), 0, 0, 1, 1}, {&__pyx_n_s_DIRECTION_LEFT, __pyx_k_DIRECTION_LEFT, sizeof(__pyx_k_DIRECTION_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_DIRECTION_NONE, __pyx_k_DIRECTION_NONE, sizeof(__pyx_k_DIRECTION_NONE), 0, 0, 1, 1}, {&__pyx_n_s_DIRECTION_RIGHT, __pyx_k_DIRECTION_RIGHT, sizeof(__pyx_k_DIRECTION_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_DIRECTION_UP, __pyx_k_DIRECTION_UP, sizeof(__pyx_k_DIRECTION_UP), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_ACCEPT_BEFORE_DELIVERY, __pyx_k_DRAG_DROP_ACCEPT_BEFORE_DELIVERY, sizeof(__pyx_k_DRAG_DROP_ACCEPT_BEFORE_DELIVERY), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT, __pyx_k_DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT, sizeof(__pyx_k_DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_ACCEPT_NO_PREVIEW_TOOL, __pyx_k_DRAG_DROP_ACCEPT_NO_PREVIEW_TOOL, sizeof(__pyx_k_DRAG_DROP_ACCEPT_NO_PREVIEW_TOOL), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_ACCEPT_PEEK_ONLY, __pyx_k_DRAG_DROP_ACCEPT_PEEK_ONLY, sizeof(__pyx_k_DRAG_DROP_ACCEPT_PEEK_ONLY), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_NONE, __pyx_k_DRAG_DROP_NONE, sizeof(__pyx_k_DRAG_DROP_NONE), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_SOURCE_ALLOW_NULL_ID, __pyx_k_DRAG_DROP_SOURCE_ALLOW_NULL_ID, sizeof(__pyx_k_DRAG_DROP_SOURCE_ALLOW_NULL_ID), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_SOURCE_AUTO_EXPIRE_PAY, __pyx_k_DRAG_DROP_SOURCE_AUTO_EXPIRE_PAY, sizeof(__pyx_k_DRAG_DROP_SOURCE_AUTO_EXPIRE_PAY), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_SOURCE_EXTERN, __pyx_k_DRAG_DROP_SOURCE_EXTERN, sizeof(__pyx_k_DRAG_DROP_SOURCE_EXTERN), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_SOURCE_NO_DISABLE_HOVE, __pyx_k_DRAG_DROP_SOURCE_NO_DISABLE_HOVE, sizeof(__pyx_k_DRAG_DROP_SOURCE_NO_DISABLE_HOVE), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN, __pyx_k_DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN, sizeof(__pyx_k_DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN), 0, 0, 1, 1}, {&__pyx_n_s_DRAG_DROP_SOURCE_NO_PREVIEW_TOOL, __pyx_k_DRAG_DROP_SOURCE_NO_PREVIEW_TOOL, sizeof(__pyx_k_DRAG_DROP_SOURCE_NO_PREVIEW_TOOL), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CLOSED, __pyx_k_DRAW_CLOSED, sizeof(__pyx_k_DRAW_CLOSED), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_ALL, __pyx_k_DRAW_CORNER_ALL, sizeof(__pyx_k_DRAW_CORNER_ALL), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_BOTTOM, __pyx_k_DRAW_CORNER_BOTTOM, sizeof(__pyx_k_DRAW_CORNER_BOTTOM), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_BOTTOM_LEFT, __pyx_k_DRAW_CORNER_BOTTOM_LEFT, sizeof(__pyx_k_DRAW_CORNER_BOTTOM_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_BOTTOM_RIGHT, __pyx_k_DRAW_CORNER_BOTTOM_RIGHT, sizeof(__pyx_k_DRAW_CORNER_BOTTOM_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_LEFT, __pyx_k_DRAW_CORNER_LEFT, sizeof(__pyx_k_DRAW_CORNER_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_NONE, __pyx_k_DRAW_CORNER_NONE, sizeof(__pyx_k_DRAW_CORNER_NONE), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_RIGHT, __pyx_k_DRAW_CORNER_RIGHT, sizeof(__pyx_k_DRAW_CORNER_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_TOP, __pyx_k_DRAW_CORNER_TOP, sizeof(__pyx_k_DRAW_CORNER_TOP), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_TOP_LEFT, __pyx_k_DRAW_CORNER_TOP_LEFT, sizeof(__pyx_k_DRAW_CORNER_TOP_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_CORNER_TOP_RIGHT, __pyx_k_DRAW_CORNER_TOP_RIGHT, sizeof(__pyx_k_DRAW_CORNER_TOP_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_LIST_ALLOW_VTX_OFFSET, __pyx_k_DRAW_LIST_ALLOW_VTX_OFFSET, sizeof(__pyx_k_DRAW_LIST_ALLOW_VTX_OFFSET), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_LIST_ANTI_ALIASED_FILL, __pyx_k_DRAW_LIST_ANTI_ALIASED_FILL, sizeof(__pyx_k_DRAW_LIST_ANTI_ALIASED_FILL), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_LIST_ANTI_ALIASED_LINES, __pyx_k_DRAW_LIST_ANTI_ALIASED_LINES, sizeof(__pyx_k_DRAW_LIST_ANTI_ALIASED_LINES), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_LIST_ANTI_ALIASED_LINES_USE, __pyx_k_DRAW_LIST_ANTI_ALIASED_LINES_USE, sizeof(__pyx_k_DRAW_LIST_ANTI_ALIASED_LINES_USE), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_LIST_NONE, __pyx_k_DRAW_LIST_NONE, sizeof(__pyx_k_DRAW_LIST_NONE), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_NONE, __pyx_k_DRAW_NONE, sizeof(__pyx_k_DRAW_NONE), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_ALL, __pyx_k_DRAW_ROUND_CORNERS_ALL, sizeof(__pyx_k_DRAW_ROUND_CORNERS_ALL), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM, __pyx_k_DRAW_ROUND_CORNERS_BOTTOM, sizeof(__pyx_k_DRAW_ROUND_CORNERS_BOTTOM), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM_LEFT, __pyx_k_DRAW_ROUND_CORNERS_BOTTOM_LEFT, sizeof(__pyx_k_DRAW_ROUND_CORNERS_BOTTOM_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM_RIGHT, __pyx_k_DRAW_ROUND_CORNERS_BOTTOM_RIGHT, sizeof(__pyx_k_DRAW_ROUND_CORNERS_BOTTOM_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_LEFT, __pyx_k_DRAW_ROUND_CORNERS_LEFT, sizeof(__pyx_k_DRAW_ROUND_CORNERS_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_NONE, __pyx_k_DRAW_ROUND_CORNERS_NONE, sizeof(__pyx_k_DRAW_ROUND_CORNERS_NONE), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_RIGHT, __pyx_k_DRAW_ROUND_CORNERS_RIGHT, sizeof(__pyx_k_DRAW_ROUND_CORNERS_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_TOP, __pyx_k_DRAW_ROUND_CORNERS_TOP, sizeof(__pyx_k_DRAW_ROUND_CORNERS_TOP), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_TOP_LEFT, __pyx_k_DRAW_ROUND_CORNERS_TOP_LEFT, sizeof(__pyx_k_DRAW_ROUND_CORNERS_TOP_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_DRAW_ROUND_CORNERS_TOP_RIGHT, __pyx_k_DRAW_ROUND_CORNERS_TOP_RIGHT, sizeof(__pyx_k_DRAW_ROUND_CORNERS_TOP_RIGHT), 0, 0, 1, 1}, {&__pyx_kp_s_Direction_wasn_t_specified, __pyx_k_Direction_wasn_t_specified, sizeof(__pyx_k_Direction_wasn_t_specified), 0, 0, 1, 0}, {&__pyx_n_s_DrawCmd, __pyx_k_DrawCmd, sizeof(__pyx_k_DrawCmd), 0, 0, 1, 1}, {&__pyx_n_s_DrawData, __pyx_k_DrawData, sizeof(__pyx_k_DrawData), 0, 0, 1, 1}, {&__pyx_n_s_DrawList, __pyx_k_DrawList, sizeof(__pyx_k_DrawList), 0, 0, 1, 1}, {&__pyx_n_s_Ellipsis, __pyx_k_Ellipsis, sizeof(__pyx_k_Ellipsis), 0, 0, 1, 1}, {&__pyx_kp_s_Empty_shape_tuple_for_cython_arr, __pyx_k_Empty_shape_tuple_for_cython_arr, sizeof(__pyx_k_Empty_shape_tuple_for_cython_arr), 0, 0, 1, 0}, {&__pyx_kp_s_Expected_at_least_d_argument_s_g, __pyx_k_Expected_at_least_d_argument_s_g, sizeof(__pyx_k_Expected_at_least_d_argument_s_g), 0, 0, 1, 0}, {&__pyx_n_s_FIRST_USE_EVER, __pyx_k_FIRST_USE_EVER, sizeof(__pyx_k_FIRST_USE_EVER), 0, 0, 1, 1}, {&__pyx_n_s_FLOAT_MAX, __pyx_k_FLOAT_MAX, sizeof(__pyx_k_FLOAT_MAX), 0, 0, 1, 1}, {&__pyx_n_s_FLOAT_MIN, __pyx_k_FLOAT_MIN, sizeof(__pyx_k_FLOAT_MIN), 0, 0, 1, 1}, {&__pyx_n_s_FOCUS_ANY_WINDOW, __pyx_k_FOCUS_ANY_WINDOW, sizeof(__pyx_k_FOCUS_ANY_WINDOW), 0, 0, 1, 1}, {&__pyx_n_s_FOCUS_CHILD_WINDOWS, __pyx_k_FOCUS_CHILD_WINDOWS, sizeof(__pyx_k_FOCUS_CHILD_WINDOWS), 0, 0, 1, 1}, {&__pyx_n_s_FOCUS_NONE, __pyx_k_FOCUS_NONE, sizeof(__pyx_k_FOCUS_NONE), 0, 0, 1, 1}, {&__pyx_n_s_FOCUS_ROOT_AND_CHILD_WINDOWS, __pyx_k_FOCUS_ROOT_AND_CHILD_WINDOWS, sizeof(__pyx_k_FOCUS_ROOT_AND_CHILD_WINDOWS), 0, 0, 1, 1}, {&__pyx_n_s_FOCUS_ROOT_WINDOW, __pyx_k_FOCUS_ROOT_WINDOW, sizeof(__pyx_k_FOCUS_ROOT_WINDOW), 0, 0, 1, 1}, {&__pyx_n_s_FONT_ATLAS_NONE, __pyx_k_FONT_ATLAS_NONE, sizeof(__pyx_k_FONT_ATLAS_NONE), 0, 0, 1, 1}, {&__pyx_n_s_FONT_ATLAS_NO_BAKED_LINES, __pyx_k_FONT_ATLAS_NO_BAKED_LINES, sizeof(__pyx_k_FONT_ATLAS_NO_BAKED_LINES), 0, 0, 1, 1}, {&__pyx_n_s_FONT_ATLAS_NO_MOUSE_CURSOR, __pyx_k_FONT_ATLAS_NO_MOUSE_CURSOR, sizeof(__pyx_k_FONT_ATLAS_NO_MOUSE_CURSOR), 0, 0, 1, 1}, {&__pyx_n_s_FONT_ATLAS_NO_POWER_OF_TWO_HEIGH, __pyx_k_FONT_ATLAS_NO_POWER_OF_TWO_HEIGH, sizeof(__pyx_k_FONT_ATLAS_NO_POWER_OF_TWO_HEIGH), 0, 0, 1, 1}, {&__pyx_n_s_Font, __pyx_k_Font, sizeof(__pyx_k_Font), 0, 0, 1, 1}, {&__pyx_n_s_FontAtlas, __pyx_k_FontAtlas, sizeof(__pyx_k_FontAtlas), 0, 0, 1, 1}, {&__pyx_n_s_FontConfig, __pyx_k_FontConfig, sizeof(__pyx_k_FontConfig), 0, 0, 1, 1}, {&__pyx_kp_s_Function_call_with_ambiguous_arg, __pyx_k_Function_call_with_ambiguous_arg, sizeof(__pyx_k_Function_call_with_ambiguous_arg), 0, 0, 1, 0}, {&__pyx_n_s_GlyphRanges, __pyx_k_GlyphRanges, sizeof(__pyx_k_GlyphRanges), 0, 0, 1, 1}, {&__pyx_n_s_GuiStyle, __pyx_k_GuiStyle, sizeof(__pyx_k_GuiStyle), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_ALLOW_WHEN_BLOCKED_BY_AC, __pyx_k_HOVERED_ALLOW_WHEN_BLOCKED_BY_AC, sizeof(__pyx_k_HOVERED_ALLOW_WHEN_BLOCKED_BY_AC), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_ALLOW_WHEN_BLOCKED_BY_PO, __pyx_k_HOVERED_ALLOW_WHEN_BLOCKED_BY_PO, sizeof(__pyx_k_HOVERED_ALLOW_WHEN_BLOCKED_BY_PO), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_ALLOW_WHEN_DISABLED, __pyx_k_HOVERED_ALLOW_WHEN_DISABLED, sizeof(__pyx_k_HOVERED_ALLOW_WHEN_DISABLED), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_ALLOW_WHEN_OVERLAPPED, __pyx_k_HOVERED_ALLOW_WHEN_OVERLAPPED, sizeof(__pyx_k_HOVERED_ALLOW_WHEN_OVERLAPPED), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_ANY_WINDOW, __pyx_k_HOVERED_ANY_WINDOW, sizeof(__pyx_k_HOVERED_ANY_WINDOW), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_CHILD_WINDOWS, __pyx_k_HOVERED_CHILD_WINDOWS, sizeof(__pyx_k_HOVERED_CHILD_WINDOWS), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_NONE, __pyx_k_HOVERED_NONE, sizeof(__pyx_k_HOVERED_NONE), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_RECT_ONLY, __pyx_k_HOVERED_RECT_ONLY, sizeof(__pyx_k_HOVERED_RECT_ONLY), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_ROOT_AND_CHILD_WINDOWS, __pyx_k_HOVERED_ROOT_AND_CHILD_WINDOWS, sizeof(__pyx_k_HOVERED_ROOT_AND_CHILD_WINDOWS), 0, 0, 1, 1}, {&__pyx_n_s_HOVERED_ROOT_WINDOW, __pyx_k_HOVERED_ROOT_WINDOW, sizeof(__pyx_k_HOVERED_ROOT_WINDOW), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_ALLOW_TAB_INPUT, __pyx_k_INPUT_TEXT_ALLOW_TAB_INPUT, sizeof(__pyx_k_INPUT_TEXT_ALLOW_TAB_INPUT), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_ALWAYS_INSERT_MODE, __pyx_k_INPUT_TEXT_ALWAYS_INSERT_MODE, sizeof(__pyx_k_INPUT_TEXT_ALWAYS_INSERT_MODE), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_ALWAYS_OVERWRITE, __pyx_k_INPUT_TEXT_ALWAYS_OVERWRITE, sizeof(__pyx_k_INPUT_TEXT_ALWAYS_OVERWRITE), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_AUTO_SELECT_ALL, __pyx_k_INPUT_TEXT_AUTO_SELECT_ALL, sizeof(__pyx_k_INPUT_TEXT_AUTO_SELECT_ALL), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CALLBACK_ALWAYS, __pyx_k_INPUT_TEXT_CALLBACK_ALWAYS, sizeof(__pyx_k_INPUT_TEXT_CALLBACK_ALWAYS), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CALLBACK_CHAR_FILTER, __pyx_k_INPUT_TEXT_CALLBACK_CHAR_FILTER, sizeof(__pyx_k_INPUT_TEXT_CALLBACK_CHAR_FILTER), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CALLBACK_COMPLETION, __pyx_k_INPUT_TEXT_CALLBACK_COMPLETION, sizeof(__pyx_k_INPUT_TEXT_CALLBACK_COMPLETION), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CALLBACK_EDIT, __pyx_k_INPUT_TEXT_CALLBACK_EDIT, sizeof(__pyx_k_INPUT_TEXT_CALLBACK_EDIT), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CALLBACK_HISTORY, __pyx_k_INPUT_TEXT_CALLBACK_HISTORY, sizeof(__pyx_k_INPUT_TEXT_CALLBACK_HISTORY), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CALLBACK_RESIZE, __pyx_k_INPUT_TEXT_CALLBACK_RESIZE, sizeof(__pyx_k_INPUT_TEXT_CALLBACK_RESIZE), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CHARS_DECIMAL, __pyx_k_INPUT_TEXT_CHARS_DECIMAL, sizeof(__pyx_k_INPUT_TEXT_CHARS_DECIMAL), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CHARS_HEXADECIMAL, __pyx_k_INPUT_TEXT_CHARS_HEXADECIMAL, sizeof(__pyx_k_INPUT_TEXT_CHARS_HEXADECIMAL), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CHARS_NO_BLANK, __pyx_k_INPUT_TEXT_CHARS_NO_BLANK, sizeof(__pyx_k_INPUT_TEXT_CHARS_NO_BLANK), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CHARS_SCIENTIFIC, __pyx_k_INPUT_TEXT_CHARS_SCIENTIFIC, sizeof(__pyx_k_INPUT_TEXT_CHARS_SCIENTIFIC), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CHARS_UPPERCASE, __pyx_k_INPUT_TEXT_CHARS_UPPERCASE, sizeof(__pyx_k_INPUT_TEXT_CHARS_UPPERCASE), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_CTRL_ENTER_FOR_NEW_LI, __pyx_k_INPUT_TEXT_CTRL_ENTER_FOR_NEW_LI, sizeof(__pyx_k_INPUT_TEXT_CTRL_ENTER_FOR_NEW_LI), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_ENTER_RETURNS_TRUE, __pyx_k_INPUT_TEXT_ENTER_RETURNS_TRUE, sizeof(__pyx_k_INPUT_TEXT_ENTER_RETURNS_TRUE), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_NONE, __pyx_k_INPUT_TEXT_NONE, sizeof(__pyx_k_INPUT_TEXT_NONE), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_NO_HORIZONTAL_SCROLL, __pyx_k_INPUT_TEXT_NO_HORIZONTAL_SCROLL, sizeof(__pyx_k_INPUT_TEXT_NO_HORIZONTAL_SCROLL), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_NO_UNDO_REDO, __pyx_k_INPUT_TEXT_NO_UNDO_REDO, sizeof(__pyx_k_INPUT_TEXT_NO_UNDO_REDO), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_PASSWORD, __pyx_k_INPUT_TEXT_PASSWORD, sizeof(__pyx_k_INPUT_TEXT_PASSWORD), 0, 0, 1, 1}, {&__pyx_n_s_INPUT_TEXT_READ_ONLY, __pyx_k_INPUT_TEXT_READ_ONLY, sizeof(__pyx_k_INPUT_TEXT_READ_ONLY), 0, 0, 1, 1}, {&__pyx_n_s_IO, __pyx_k_IO, sizeof(__pyx_k_IO), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiContext, __pyx_k_ImGuiContext, sizeof(__pyx_k_ImGuiContext), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiError, __pyx_k_ImGuiError, sizeof(__pyx_k_ImGuiError), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiID, __pyx_k_ImGuiID, sizeof(__pyx_k_ImGuiID), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiInputTextCallbackData, __pyx_k_ImGuiInputTextCallbackData, sizeof(__pyx_k_ImGuiInputTextCallbackData), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiSizeCallbackData, __pyx_k_ImGuiSizeCallbackData, sizeof(__pyx_k_ImGuiSizeCallbackData), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiTableColumnSortSpecs, __pyx_k_ImGuiTableColumnSortSpecs, sizeof(__pyx_k_ImGuiTableColumnSortSpecs), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiTableColumnSortSpecs_array, __pyx_k_ImGuiTableColumnSortSpecs_array, sizeof(__pyx_k_ImGuiTableColumnSortSpecs_array), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiTableSortSpecs, __pyx_k_ImGuiTableSortSpecs, sizeof(__pyx_k_ImGuiTableSortSpecs), 0, 0, 1, 1}, {&__pyx_n_s_ImGuiViewport, __pyx_k_ImGuiViewport, sizeof(__pyx_k_ImGuiViewport), 0, 0, 1, 1}, {&__pyx_n_s_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 0, 0, 1, 1}, {&__pyx_kp_s_Improperly_initialized_use_imgui, __pyx_k_Improperly_initialized_use_imgui, sizeof(__pyx_k_Improperly_initialized_use_imgui), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_k_Incompatible_checksums_0x_x_vs_0, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2, __pyx_k_Incompatible_checksums_0x_x_vs_0_2, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_2), 0, 0, 1, 0}, {&__pyx_n_s_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 0, 0, 1, 1}, {&__pyx_kp_s_Indirect_dimensions_not_supporte, __pyx_k_Indirect_dimensions_not_supporte, sizeof(__pyx_k_Indirect_dimensions_not_supporte), 0, 0, 1, 0}, {&__pyx_n_s_InputTextSharedBuffer, __pyx_k_InputTextSharedBuffer, sizeof(__pyx_k_InputTextSharedBuffer), 0, 0, 1, 1}, {&__pyx_kp_s_Invalid_mode_expected_c_or_fortr, __pyx_k_Invalid_mode_expected_c_or_fortr, sizeof(__pyx_k_Invalid_mode_expected_c_or_fortr), 0, 0, 1, 0}, {&__pyx_kp_s_Invalid_shape_in_axis_d_d, __pyx_k_Invalid_shape_in_axis_d_d, sizeof(__pyx_k_Invalid_shape_in_axis_d_d), 0, 0, 1, 0}, {&__pyx_n_s_KEY_A, __pyx_k_KEY_A, sizeof(__pyx_k_KEY_A), 0, 0, 1, 1}, {&__pyx_n_s_KEY_BACKSPACE, __pyx_k_KEY_BACKSPACE, sizeof(__pyx_k_KEY_BACKSPACE), 0, 0, 1, 1}, {&__pyx_n_s_KEY_C, __pyx_k_KEY_C, sizeof(__pyx_k_KEY_C), 0, 0, 1, 1}, {&__pyx_n_s_KEY_DELETE, __pyx_k_KEY_DELETE, sizeof(__pyx_k_KEY_DELETE), 0, 0, 1, 1}, {&__pyx_n_s_KEY_DOWN_ARROW, __pyx_k_KEY_DOWN_ARROW, sizeof(__pyx_k_KEY_DOWN_ARROW), 0, 0, 1, 1}, {&__pyx_n_s_KEY_END, __pyx_k_KEY_END, sizeof(__pyx_k_KEY_END), 0, 0, 1, 1}, {&__pyx_n_s_KEY_ENTER, __pyx_k_KEY_ENTER, sizeof(__pyx_k_KEY_ENTER), 0, 0, 1, 1}, {&__pyx_n_s_KEY_ESCAPE, __pyx_k_KEY_ESCAPE, sizeof(__pyx_k_KEY_ESCAPE), 0, 0, 1, 1}, {&__pyx_n_s_KEY_HOME, __pyx_k_KEY_HOME, sizeof(__pyx_k_KEY_HOME), 0, 0, 1, 1}, {&__pyx_n_s_KEY_INSERT, __pyx_k_KEY_INSERT, sizeof(__pyx_k_KEY_INSERT), 0, 0, 1, 1}, {&__pyx_n_s_KEY_LEFT_ARROW, __pyx_k_KEY_LEFT_ARROW, sizeof(__pyx_k_KEY_LEFT_ARROW), 0, 0, 1, 1}, {&__pyx_n_s_KEY_MOD_ALT, __pyx_k_KEY_MOD_ALT, sizeof(__pyx_k_KEY_MOD_ALT), 0, 0, 1, 1}, {&__pyx_n_s_KEY_MOD_CTRL, __pyx_k_KEY_MOD_CTRL, sizeof(__pyx_k_KEY_MOD_CTRL), 0, 0, 1, 1}, {&__pyx_n_s_KEY_MOD_NONE, __pyx_k_KEY_MOD_NONE, sizeof(__pyx_k_KEY_MOD_NONE), 0, 0, 1, 1}, {&__pyx_n_s_KEY_MOD_SHIFT, __pyx_k_KEY_MOD_SHIFT, sizeof(__pyx_k_KEY_MOD_SHIFT), 0, 0, 1, 1}, {&__pyx_n_s_KEY_MOD_SUPER, __pyx_k_KEY_MOD_SUPER, sizeof(__pyx_k_KEY_MOD_SUPER), 0, 0, 1, 1}, {&__pyx_n_s_KEY_PAD_ENTER, __pyx_k_KEY_PAD_ENTER, sizeof(__pyx_k_KEY_PAD_ENTER), 0, 0, 1, 1}, {&__pyx_n_s_KEY_PAGE_DOWN, __pyx_k_KEY_PAGE_DOWN, sizeof(__pyx_k_KEY_PAGE_DOWN), 0, 0, 1, 1}, {&__pyx_n_s_KEY_PAGE_UP, __pyx_k_KEY_PAGE_UP, sizeof(__pyx_k_KEY_PAGE_UP), 0, 0, 1, 1}, {&__pyx_n_s_KEY_RIGHT_ARROW, __pyx_k_KEY_RIGHT_ARROW, sizeof(__pyx_k_KEY_RIGHT_ARROW), 0, 0, 1, 1}, {&__pyx_n_s_KEY_SPACE, __pyx_k_KEY_SPACE, sizeof(__pyx_k_KEY_SPACE), 0, 0, 1, 1}, {&__pyx_n_s_KEY_TAB, __pyx_k_KEY_TAB, sizeof(__pyx_k_KEY_TAB), 0, 0, 1, 1}, {&__pyx_n_s_KEY_UP_ARROW, __pyx_k_KEY_UP_ARROW, sizeof(__pyx_k_KEY_UP_ARROW), 0, 0, 1, 1}, {&__pyx_n_s_KEY_V, __pyx_k_KEY_V, sizeof(__pyx_k_KEY_V), 0, 0, 1, 1}, {&__pyx_n_s_KEY_X, __pyx_k_KEY_X, sizeof(__pyx_k_KEY_X), 0, 0, 1, 1}, {&__pyx_n_s_KEY_Y, __pyx_k_KEY_Y, sizeof(__pyx_k_KEY_Y), 0, 0, 1, 1}, {&__pyx_n_s_KEY_Z, __pyx_k_KEY_Z, sizeof(__pyx_k_KEY_Z), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_BUTTON_LEFT, __pyx_k_MOUSE_BUTTON_LEFT, sizeof(__pyx_k_MOUSE_BUTTON_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_BUTTON_MIDDLE, __pyx_k_MOUSE_BUTTON_MIDDLE, sizeof(__pyx_k_MOUSE_BUTTON_MIDDLE), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_BUTTON_RIGHT, __pyx_k_MOUSE_BUTTON_RIGHT, sizeof(__pyx_k_MOUSE_BUTTON_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_ARROW, __pyx_k_MOUSE_CURSOR_ARROW, sizeof(__pyx_k_MOUSE_CURSOR_ARROW), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_HAND, __pyx_k_MOUSE_CURSOR_HAND, sizeof(__pyx_k_MOUSE_CURSOR_HAND), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_NONE, __pyx_k_MOUSE_CURSOR_NONE, sizeof(__pyx_k_MOUSE_CURSOR_NONE), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_NOT_ALLOWED, __pyx_k_MOUSE_CURSOR_NOT_ALLOWED, sizeof(__pyx_k_MOUSE_CURSOR_NOT_ALLOWED), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_RESIZE_ALL, __pyx_k_MOUSE_CURSOR_RESIZE_ALL, sizeof(__pyx_k_MOUSE_CURSOR_RESIZE_ALL), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_RESIZE_EW, __pyx_k_MOUSE_CURSOR_RESIZE_EW, sizeof(__pyx_k_MOUSE_CURSOR_RESIZE_EW), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_RESIZE_NESW, __pyx_k_MOUSE_CURSOR_RESIZE_NESW, sizeof(__pyx_k_MOUSE_CURSOR_RESIZE_NESW), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_RESIZE_NS, __pyx_k_MOUSE_CURSOR_RESIZE_NS, sizeof(__pyx_k_MOUSE_CURSOR_RESIZE_NS), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_RESIZE_NWSE, __pyx_k_MOUSE_CURSOR_RESIZE_NWSE, sizeof(__pyx_k_MOUSE_CURSOR_RESIZE_NWSE), 0, 0, 1, 1}, {&__pyx_n_s_MOUSE_CURSOR_TEXT_INPUT, __pyx_k_MOUSE_CURSOR_TEXT_INPUT, sizeof(__pyx_k_MOUSE_CURSOR_TEXT_INPUT), 0, 0, 1, 1}, {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1}, {&__pyx_kp_s_MemoryView_of_r_at_0x_x, __pyx_k_MemoryView_of_r_at_0x_x, sizeof(__pyx_k_MemoryView_of_r_at_0x_x), 0, 0, 1, 0}, {&__pyx_kp_s_MemoryView_of_r_object, __pyx_k_MemoryView_of_r_object, sizeof(__pyx_k_MemoryView_of_r_object), 0, 0, 1, 0}, {&__pyx_n_s_NAV_INPUT_ACTIVATE, __pyx_k_NAV_INPUT_ACTIVATE, sizeof(__pyx_k_NAV_INPUT_ACTIVATE), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_CANCEL, __pyx_k_NAV_INPUT_CANCEL, sizeof(__pyx_k_NAV_INPUT_CANCEL), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_COUNT, __pyx_k_NAV_INPUT_COUNT, sizeof(__pyx_k_NAV_INPUT_COUNT), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_DPAD_DOWN, __pyx_k_NAV_INPUT_DPAD_DOWN, sizeof(__pyx_k_NAV_INPUT_DPAD_DOWN), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_DPAD_LEFT, __pyx_k_NAV_INPUT_DPAD_LEFT, sizeof(__pyx_k_NAV_INPUT_DPAD_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_DPAD_RIGHT, __pyx_k_NAV_INPUT_DPAD_RIGHT, sizeof(__pyx_k_NAV_INPUT_DPAD_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_DPAD_UP, __pyx_k_NAV_INPUT_DPAD_UP, sizeof(__pyx_k_NAV_INPUT_DPAD_UP), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_FOCUS_NEXT, __pyx_k_NAV_INPUT_FOCUS_NEXT, sizeof(__pyx_k_NAV_INPUT_FOCUS_NEXT), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_FOCUS_PREV, __pyx_k_NAV_INPUT_FOCUS_PREV, sizeof(__pyx_k_NAV_INPUT_FOCUS_PREV), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_INPUT, __pyx_k_NAV_INPUT_INPUT, sizeof(__pyx_k_NAV_INPUT_INPUT), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_L_STICK_DOWN, __pyx_k_NAV_INPUT_L_STICK_DOWN, sizeof(__pyx_k_NAV_INPUT_L_STICK_DOWN), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_L_STICK_LEFT, __pyx_k_NAV_INPUT_L_STICK_LEFT, sizeof(__pyx_k_NAV_INPUT_L_STICK_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_L_STICK_RIGHT, __pyx_k_NAV_INPUT_L_STICK_RIGHT, sizeof(__pyx_k_NAV_INPUT_L_STICK_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_L_STICK_UP, __pyx_k_NAV_INPUT_L_STICK_UP, sizeof(__pyx_k_NAV_INPUT_L_STICK_UP), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_MENU, __pyx_k_NAV_INPUT_MENU, sizeof(__pyx_k_NAV_INPUT_MENU), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_TWEAK_FAST, __pyx_k_NAV_INPUT_TWEAK_FAST, sizeof(__pyx_k_NAV_INPUT_TWEAK_FAST), 0, 0, 1, 1}, {&__pyx_n_s_NAV_INPUT_TWEAK_SLOW, __pyx_k_NAV_INPUT_TWEAK_SLOW, sizeof(__pyx_k_NAV_INPUT_TWEAK_SLOW), 0, 0, 1, 1}, {&__pyx_n_s_NONE, __pyx_k_NONE, sizeof(__pyx_k_NONE), 0, 0, 1, 1}, {&__pyx_kp_s_No_matching_signature_found, __pyx_k_No_matching_signature_found, sizeof(__pyx_k_No_matching_signature_found), 0, 0, 1, 0}, {&__pyx_n_b_O, __pyx_k_O, sizeof(__pyx_k_O), 0, 0, 0, 1}, {&__pyx_n_s_ONCE, __pyx_k_ONCE, sizeof(__pyx_k_ONCE), 0, 0, 1, 1}, {&__pyx_kp_s_Out_of_bound_access_to_idx_i_of, __pyx_k_Out_of_bound_access_to_idx_i_of, sizeof(__pyx_k_Out_of_bound_access_to_idx_i_of), 0, 0, 1, 0}, {&__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_k_Out_of_bounds_on_buffer_access_a, sizeof(__pyx_k_Out_of_bounds_on_buffer_access_a), 0, 0, 1, 0}, {&__pyx_n_s_POPUP_ANY_POPUP, __pyx_k_POPUP_ANY_POPUP, sizeof(__pyx_k_POPUP_ANY_POPUP), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_ANY_POPUP_ID, __pyx_k_POPUP_ANY_POPUP_ID, sizeof(__pyx_k_POPUP_ANY_POPUP_ID), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_ANY_POPUP_LEVEL, __pyx_k_POPUP_ANY_POPUP_LEVEL, sizeof(__pyx_k_POPUP_ANY_POPUP_LEVEL), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_MOUSE_BUTTON_DEFAULT, __pyx_k_POPUP_MOUSE_BUTTON_DEFAULT, sizeof(__pyx_k_POPUP_MOUSE_BUTTON_DEFAULT), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_MOUSE_BUTTON_LEFT, __pyx_k_POPUP_MOUSE_BUTTON_LEFT, sizeof(__pyx_k_POPUP_MOUSE_BUTTON_LEFT), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_MOUSE_BUTTON_MASK, __pyx_k_POPUP_MOUSE_BUTTON_MASK, sizeof(__pyx_k_POPUP_MOUSE_BUTTON_MASK), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_MOUSE_BUTTON_MIDDLE, __pyx_k_POPUP_MOUSE_BUTTON_MIDDLE, sizeof(__pyx_k_POPUP_MOUSE_BUTTON_MIDDLE), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_MOUSE_BUTTON_RIGHT, __pyx_k_POPUP_MOUSE_BUTTON_RIGHT, sizeof(__pyx_k_POPUP_MOUSE_BUTTON_RIGHT), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_NONE, __pyx_k_POPUP_NONE, sizeof(__pyx_k_POPUP_NONE), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_NO_OPEN_OVER_EXISTING_POPU, __pyx_k_POPUP_NO_OPEN_OVER_EXISTING_POPU, sizeof(__pyx_k_POPUP_NO_OPEN_OVER_EXISTING_POPU), 0, 0, 1, 1}, {&__pyx_n_s_POPUP_NO_OPEN_OVER_ITEMS, __pyx_k_POPUP_NO_OPEN_OVER_ITEMS, sizeof(__pyx_k_POPUP_NO_OPEN_OVER_ITEMS), 0, 0, 1, 1}, {&__pyx_n_s_PickleError, __pyx_k_PickleError, sizeof(__pyx_k_PickleError), 0, 0, 1, 1}, {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1}, {&__pyx_n_s_SELECTABLE_ALLOW_DOUBLE_CLICK, __pyx_k_SELECTABLE_ALLOW_DOUBLE_CLICK, sizeof(__pyx_k_SELECTABLE_ALLOW_DOUBLE_CLICK), 0, 0, 1, 1}, {&__pyx_n_s_SELECTABLE_ALLOW_ITEM_OVERLAP, __pyx_k_SELECTABLE_ALLOW_ITEM_OVERLAP, sizeof(__pyx_k_SELECTABLE_ALLOW_ITEM_OVERLAP), 0, 0, 1, 1}, {&__pyx_n_s_SELECTABLE_DISABLED, __pyx_k_SELECTABLE_DISABLED, sizeof(__pyx_k_SELECTABLE_DISABLED), 0, 0, 1, 1}, {&__pyx_n_s_SELECTABLE_DONT_CLOSE_POPUPS, __pyx_k_SELECTABLE_DONT_CLOSE_POPUPS, sizeof(__pyx_k_SELECTABLE_DONT_CLOSE_POPUPS), 0, 0, 1, 1}, {&__pyx_n_s_SELECTABLE_NONE, __pyx_k_SELECTABLE_NONE, sizeof(__pyx_k_SELECTABLE_NONE), 0, 0, 1, 1}, {&__pyx_n_s_SELECTABLE_SPAN_ALL_COLUMNS, __pyx_k_SELECTABLE_SPAN_ALL_COLUMNS, sizeof(__pyx_k_SELECTABLE_SPAN_ALL_COLUMNS), 0, 0, 1, 1}, {&__pyx_n_s_SLIDER_FLAGS_ALWAYS_CLAMP, __pyx_k_SLIDER_FLAGS_ALWAYS_CLAMP, sizeof(__pyx_k_SLIDER_FLAGS_ALWAYS_CLAMP), 0, 0, 1, 1}, {&__pyx_n_s_SLIDER_FLAGS_LOGARITHMIC, __pyx_k_SLIDER_FLAGS_LOGARITHMIC, sizeof(__pyx_k_SLIDER_FLAGS_LOGARITHMIC), 0, 0, 1, 1}, {&__pyx_n_s_SLIDER_FLAGS_NONE, __pyx_k_SLIDER_FLAGS_NONE, sizeof(__pyx_k_SLIDER_FLAGS_NONE), 0, 0, 1, 1}, {&__pyx_n_s_SLIDER_FLAGS_NO_INPUT, __pyx_k_SLIDER_FLAGS_NO_INPUT, sizeof(__pyx_k_SLIDER_FLAGS_NO_INPUT), 0, 0, 1, 1}, {&__pyx_n_s_SLIDER_FLAGS_NO_ROUND_TO_FORMAT, __pyx_k_SLIDER_FLAGS_NO_ROUND_TO_FORMAT, sizeof(__pyx_k_SLIDER_FLAGS_NO_ROUND_TO_FORMAT), 0, 0, 1, 1}, {&__pyx_n_s_SORT_DIRECTION_ASCENDING, __pyx_k_SORT_DIRECTION_ASCENDING, sizeof(__pyx_k_SORT_DIRECTION_ASCENDING), 0, 0, 1, 1}, {&__pyx_n_s_SORT_DIRECTION_DESCENDING, __pyx_k_SORT_DIRECTION_DESCENDING, sizeof(__pyx_k_SORT_DIRECTION_DESCENDING), 0, 0, 1, 1}, {&__pyx_n_s_SORT_DIRECTION_NONE, __pyx_k_SORT_DIRECTION_NONE, sizeof(__pyx_k_SORT_DIRECTION_NONE), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_ALPHA, __pyx_k_STYLE_ALPHA, sizeof(__pyx_k_STYLE_ALPHA), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_BUTTON_TEXT_ALIGN, __pyx_k_STYLE_BUTTON_TEXT_ALIGN, sizeof(__pyx_k_STYLE_BUTTON_TEXT_ALIGN), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_CELL_PADDING, __pyx_k_STYLE_CELL_PADDING, sizeof(__pyx_k_STYLE_CELL_PADDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_CHILD_BORDERSIZE, __pyx_k_STYLE_CHILD_BORDERSIZE, sizeof(__pyx_k_STYLE_CHILD_BORDERSIZE), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_CHILD_ROUNDING, __pyx_k_STYLE_CHILD_ROUNDING, sizeof(__pyx_k_STYLE_CHILD_ROUNDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_FRAME_BORDERSIZE, __pyx_k_STYLE_FRAME_BORDERSIZE, sizeof(__pyx_k_STYLE_FRAME_BORDERSIZE), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_FRAME_PADDING, __pyx_k_STYLE_FRAME_PADDING, sizeof(__pyx_k_STYLE_FRAME_PADDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_FRAME_ROUNDING, __pyx_k_STYLE_FRAME_ROUNDING, sizeof(__pyx_k_STYLE_FRAME_ROUNDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_GRAB_MIN_SIZE, __pyx_k_STYLE_GRAB_MIN_SIZE, sizeof(__pyx_k_STYLE_GRAB_MIN_SIZE), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_GRAB_ROUNDING, __pyx_k_STYLE_GRAB_ROUNDING, sizeof(__pyx_k_STYLE_GRAB_ROUNDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_INDENT_SPACING, __pyx_k_STYLE_INDENT_SPACING, sizeof(__pyx_k_STYLE_INDENT_SPACING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_ITEM_INNER_SPACING, __pyx_k_STYLE_ITEM_INNER_SPACING, sizeof(__pyx_k_STYLE_ITEM_INNER_SPACING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_ITEM_SPACING, __pyx_k_STYLE_ITEM_SPACING, sizeof(__pyx_k_STYLE_ITEM_SPACING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_POPUP_BORDERSIZE, __pyx_k_STYLE_POPUP_BORDERSIZE, sizeof(__pyx_k_STYLE_POPUP_BORDERSIZE), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_POPUP_ROUNDING, __pyx_k_STYLE_POPUP_ROUNDING, sizeof(__pyx_k_STYLE_POPUP_ROUNDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_SCROLLBAR_ROUNDING, __pyx_k_STYLE_SCROLLBAR_ROUNDING, sizeof(__pyx_k_STYLE_SCROLLBAR_ROUNDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_SCROLLBAR_SIZE, __pyx_k_STYLE_SCROLLBAR_SIZE, sizeof(__pyx_k_STYLE_SCROLLBAR_SIZE), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_SELECTABLE_TEXT_ALIGN, __pyx_k_STYLE_SELECTABLE_TEXT_ALIGN, sizeof(__pyx_k_STYLE_SELECTABLE_TEXT_ALIGN), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_TAB_ROUNDING, __pyx_k_STYLE_TAB_ROUNDING, sizeof(__pyx_k_STYLE_TAB_ROUNDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_WINDOW_BORDERSIZE, __pyx_k_STYLE_WINDOW_BORDERSIZE, sizeof(__pyx_k_STYLE_WINDOW_BORDERSIZE), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_WINDOW_MIN_SIZE, __pyx_k_STYLE_WINDOW_MIN_SIZE, sizeof(__pyx_k_STYLE_WINDOW_MIN_SIZE), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_WINDOW_PADDING, __pyx_k_STYLE_WINDOW_PADDING, sizeof(__pyx_k_STYLE_WINDOW_PADDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_WINDOW_ROUNDING, __pyx_k_STYLE_WINDOW_ROUNDING, sizeof(__pyx_k_STYLE_WINDOW_ROUNDING), 0, 0, 1, 1}, {&__pyx_n_s_STYLE_WINDOW_TITLE_ALIGN, __pyx_k_STYLE_WINDOW_TITLE_ALIGN, sizeof(__pyx_k_STYLE_WINDOW_TITLE_ALIGN), 0, 0, 1, 1}, {&__pyx_n_s_StaticGlyphRanges, __pyx_k_StaticGlyphRanges, sizeof(__pyx_k_StaticGlyphRanges), 0, 0, 1, 1}, {&__pyx_n_s_StopIteration, __pyx_k_StopIteration, sizeof(__pyx_k_StopIteration), 0, 0, 1, 1}, {&__pyx_kp_s_Style_value_must_be_float_or_two, __pyx_k_Style_value_must_be_float_or_two, sizeof(__pyx_k_Style_value_must_be_float_or_two), 0, 0, 1, 0}, {&__pyx_n_s_TABLE_BACKGROUND_TARGET_CELL_BG, __pyx_k_TABLE_BACKGROUND_TARGET_CELL_BG, sizeof(__pyx_k_TABLE_BACKGROUND_TARGET_CELL_BG), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BACKGROUND_TARGET_NONE, __pyx_k_TABLE_BACKGROUND_TARGET_NONE, sizeof(__pyx_k_TABLE_BACKGROUND_TARGET_NONE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BACKGROUND_TARGET_ROW_BG0, __pyx_k_TABLE_BACKGROUND_TARGET_ROW_BG0, sizeof(__pyx_k_TABLE_BACKGROUND_TARGET_ROW_BG0), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BACKGROUND_TARGET_ROW_BG1, __pyx_k_TABLE_BACKGROUND_TARGET_ROW_BG1, sizeof(__pyx_k_TABLE_BACKGROUND_TARGET_ROW_BG1), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS, __pyx_k_TABLE_BORDERS, sizeof(__pyx_k_TABLE_BORDERS), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS_HORIZONTAL, __pyx_k_TABLE_BORDERS_HORIZONTAL, sizeof(__pyx_k_TABLE_BORDERS_HORIZONTAL), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS_INNER, __pyx_k_TABLE_BORDERS_INNER, sizeof(__pyx_k_TABLE_BORDERS_INNER), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS_INNER_HORIZONTAL, __pyx_k_TABLE_BORDERS_INNER_HORIZONTAL, sizeof(__pyx_k_TABLE_BORDERS_INNER_HORIZONTAL), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS_INNER_VERTICAL, __pyx_k_TABLE_BORDERS_INNER_VERTICAL, sizeof(__pyx_k_TABLE_BORDERS_INNER_VERTICAL), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS_OUTER, __pyx_k_TABLE_BORDERS_OUTER, sizeof(__pyx_k_TABLE_BORDERS_OUTER), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS_OUTER_HORIZONTAL, __pyx_k_TABLE_BORDERS_OUTER_HORIZONTAL, sizeof(__pyx_k_TABLE_BORDERS_OUTER_HORIZONTAL), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS_OUTER_VERTICAL, __pyx_k_TABLE_BORDERS_OUTER_VERTICAL, sizeof(__pyx_k_TABLE_BORDERS_OUTER_VERTICAL), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_BORDERS_VERTICAL, __pyx_k_TABLE_BORDERS_VERTICAL, sizeof(__pyx_k_TABLE_BORDERS_VERTICAL), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_DEFAULT_HIDE, __pyx_k_TABLE_COLUMN_DEFAULT_HIDE, sizeof(__pyx_k_TABLE_COLUMN_DEFAULT_HIDE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_DEFAULT_SORT, __pyx_k_TABLE_COLUMN_DEFAULT_SORT, sizeof(__pyx_k_TABLE_COLUMN_DEFAULT_SORT), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_INDENT_DISABLE, __pyx_k_TABLE_COLUMN_INDENT_DISABLE, sizeof(__pyx_k_TABLE_COLUMN_INDENT_DISABLE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_INDENT_ENABLE, __pyx_k_TABLE_COLUMN_INDENT_ENABLE, sizeof(__pyx_k_TABLE_COLUMN_INDENT_ENABLE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_IS_ENABLED, __pyx_k_TABLE_COLUMN_IS_ENABLED, sizeof(__pyx_k_TABLE_COLUMN_IS_ENABLED), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_IS_HOVERED, __pyx_k_TABLE_COLUMN_IS_HOVERED, sizeof(__pyx_k_TABLE_COLUMN_IS_HOVERED), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_IS_SORTED, __pyx_k_TABLE_COLUMN_IS_SORTED, sizeof(__pyx_k_TABLE_COLUMN_IS_SORTED), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_IS_VISIBLE, __pyx_k_TABLE_COLUMN_IS_VISIBLE, sizeof(__pyx_k_TABLE_COLUMN_IS_VISIBLE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NONE, __pyx_k_TABLE_COLUMN_NONE, sizeof(__pyx_k_TABLE_COLUMN_NONE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NO_CLIP, __pyx_k_TABLE_COLUMN_NO_CLIP, sizeof(__pyx_k_TABLE_COLUMN_NO_CLIP), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NO_HEADER_WIDTH, __pyx_k_TABLE_COLUMN_NO_HEADER_WIDTH, sizeof(__pyx_k_TABLE_COLUMN_NO_HEADER_WIDTH), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NO_HIDE, __pyx_k_TABLE_COLUMN_NO_HIDE, sizeof(__pyx_k_TABLE_COLUMN_NO_HIDE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NO_REORDER, __pyx_k_TABLE_COLUMN_NO_REORDER, sizeof(__pyx_k_TABLE_COLUMN_NO_REORDER), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NO_RESIZE, __pyx_k_TABLE_COLUMN_NO_RESIZE, sizeof(__pyx_k_TABLE_COLUMN_NO_RESIZE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NO_SORT, __pyx_k_TABLE_COLUMN_NO_SORT, sizeof(__pyx_k_TABLE_COLUMN_NO_SORT), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NO_SORT_ASCENDING, __pyx_k_TABLE_COLUMN_NO_SORT_ASCENDING, sizeof(__pyx_k_TABLE_COLUMN_NO_SORT_ASCENDING), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_NO_SORT_DESCENDING, __pyx_k_TABLE_COLUMN_NO_SORT_DESCENDING, sizeof(__pyx_k_TABLE_COLUMN_NO_SORT_DESCENDING), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_PREFER_SORT_ASCENDI, __pyx_k_TABLE_COLUMN_PREFER_SORT_ASCENDI, sizeof(__pyx_k_TABLE_COLUMN_PREFER_SORT_ASCENDI), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_PREFER_SORT_DESCEND, __pyx_k_TABLE_COLUMN_PREFER_SORT_DESCEND, sizeof(__pyx_k_TABLE_COLUMN_PREFER_SORT_DESCEND), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_WIDTH_FIXED, __pyx_k_TABLE_COLUMN_WIDTH_FIXED, sizeof(__pyx_k_TABLE_COLUMN_WIDTH_FIXED), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_COLUMN_WIDTH_STRETCH, __pyx_k_TABLE_COLUMN_WIDTH_STRETCH, sizeof(__pyx_k_TABLE_COLUMN_WIDTH_STRETCH), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_CONTEXT_MENU_IN_BODY, __pyx_k_TABLE_CONTEXT_MENU_IN_BODY, sizeof(__pyx_k_TABLE_CONTEXT_MENU_IN_BODY), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_HIDEABLE, __pyx_k_TABLE_HIDEABLE, sizeof(__pyx_k_TABLE_HIDEABLE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NONE, __pyx_k_TABLE_NONE, sizeof(__pyx_k_TABLE_NONE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_BORDERS_IN_BODY, __pyx_k_TABLE_NO_BORDERS_IN_BODY, sizeof(__pyx_k_TABLE_NO_BORDERS_IN_BODY), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_BORDERS_IN_BODY_UTIL_RE, __pyx_k_TABLE_NO_BORDERS_IN_BODY_UTIL_RE, sizeof(__pyx_k_TABLE_NO_BORDERS_IN_BODY_UTIL_RE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_CLIP, __pyx_k_TABLE_NO_CLIP, sizeof(__pyx_k_TABLE_NO_CLIP), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_HOST_EXTEND_X, __pyx_k_TABLE_NO_HOST_EXTEND_X, sizeof(__pyx_k_TABLE_NO_HOST_EXTEND_X), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_HOST_EXTEND_Y, __pyx_k_TABLE_NO_HOST_EXTEND_Y, sizeof(__pyx_k_TABLE_NO_HOST_EXTEND_Y), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_KEEP_COLUMNS_VISIBLE, __pyx_k_TABLE_NO_KEEP_COLUMNS_VISIBLE, sizeof(__pyx_k_TABLE_NO_KEEP_COLUMNS_VISIBLE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_PAD_INNER_X, __pyx_k_TABLE_NO_PAD_INNER_X, sizeof(__pyx_k_TABLE_NO_PAD_INNER_X), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_PAD_OUTER_X, __pyx_k_TABLE_NO_PAD_OUTER_X, sizeof(__pyx_k_TABLE_NO_PAD_OUTER_X), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_NO_SAVED_SETTINGS, __pyx_k_TABLE_NO_SAVED_SETTINGS, sizeof(__pyx_k_TABLE_NO_SAVED_SETTINGS), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_PAD_OUTER_X, __pyx_k_TABLE_PAD_OUTER_X, sizeof(__pyx_k_TABLE_PAD_OUTER_X), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_PRECISE_WIDTHS, __pyx_k_TABLE_PRECISE_WIDTHS, sizeof(__pyx_k_TABLE_PRECISE_WIDTHS), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_REORDERABLE, __pyx_k_TABLE_REORDERABLE, sizeof(__pyx_k_TABLE_REORDERABLE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_RESIZABLE, __pyx_k_TABLE_RESIZABLE, sizeof(__pyx_k_TABLE_RESIZABLE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_ROW_BACKGROUND, __pyx_k_TABLE_ROW_BACKGROUND, sizeof(__pyx_k_TABLE_ROW_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_ROW_HEADERS, __pyx_k_TABLE_ROW_HEADERS, sizeof(__pyx_k_TABLE_ROW_HEADERS), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_ROW_NONE, __pyx_k_TABLE_ROW_NONE, sizeof(__pyx_k_TABLE_ROW_NONE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SCROLL_X, __pyx_k_TABLE_SCROLL_X, sizeof(__pyx_k_TABLE_SCROLL_X), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SCROLL_Y, __pyx_k_TABLE_SCROLL_Y, sizeof(__pyx_k_TABLE_SCROLL_Y), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SIZING_FIXED_FIT, __pyx_k_TABLE_SIZING_FIXED_FIT, sizeof(__pyx_k_TABLE_SIZING_FIXED_FIT), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SIZING_FIXED_SAME, __pyx_k_TABLE_SIZING_FIXED_SAME, sizeof(__pyx_k_TABLE_SIZING_FIXED_SAME), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SIZING_STRETCH_PROP, __pyx_k_TABLE_SIZING_STRETCH_PROP, sizeof(__pyx_k_TABLE_SIZING_STRETCH_PROP), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SIZING_STRETCH_SAME, __pyx_k_TABLE_SIZING_STRETCH_SAME, sizeof(__pyx_k_TABLE_SIZING_STRETCH_SAME), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SORTABLE, __pyx_k_TABLE_SORTABLE, sizeof(__pyx_k_TABLE_SORTABLE), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SORT_MULTI, __pyx_k_TABLE_SORT_MULTI, sizeof(__pyx_k_TABLE_SORT_MULTI), 0, 0, 1, 1}, {&__pyx_n_s_TABLE_SORT_TRISTATE, __pyx_k_TABLE_SORT_TRISTATE, sizeof(__pyx_k_TABLE_SORT_TRISTATE), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_AUTO_SELECT_NEW_TABS, __pyx_k_TAB_BAR_AUTO_SELECT_NEW_TABS, sizeof(__pyx_k_TAB_BAR_AUTO_SELECT_NEW_TABS), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_FITTING_POLICY_DEFAULT, __pyx_k_TAB_BAR_FITTING_POLICY_DEFAULT, sizeof(__pyx_k_TAB_BAR_FITTING_POLICY_DEFAULT), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_FITTING_POLICY_MASK, __pyx_k_TAB_BAR_FITTING_POLICY_MASK, sizeof(__pyx_k_TAB_BAR_FITTING_POLICY_MASK), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_FITTING_POLICY_RESIZE_DO, __pyx_k_TAB_BAR_FITTING_POLICY_RESIZE_DO, sizeof(__pyx_k_TAB_BAR_FITTING_POLICY_RESIZE_DO), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_FITTING_POLICY_SCROLL, __pyx_k_TAB_BAR_FITTING_POLICY_SCROLL, sizeof(__pyx_k_TAB_BAR_FITTING_POLICY_SCROLL), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_NONE, __pyx_k_TAB_BAR_NONE, sizeof(__pyx_k_TAB_BAR_NONE), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOU, __pyx_k_TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOU, sizeof(__pyx_k_TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOU), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_NO_TAB_LIST_SCROLLING_BU, __pyx_k_TAB_BAR_NO_TAB_LIST_SCROLLING_BU, sizeof(__pyx_k_TAB_BAR_NO_TAB_LIST_SCROLLING_BU), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_NO_TOOLTIP, __pyx_k_TAB_BAR_NO_TOOLTIP, sizeof(__pyx_k_TAB_BAR_NO_TOOLTIP), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_REORDERABLE, __pyx_k_TAB_BAR_REORDERABLE, sizeof(__pyx_k_TAB_BAR_REORDERABLE), 0, 0, 1, 1}, {&__pyx_n_s_TAB_BAR_TAB_LIST_POPUP_BUTTON, __pyx_k_TAB_BAR_TAB_LIST_POPUP_BUTTON, sizeof(__pyx_k_TAB_BAR_TAB_LIST_POPUP_BUTTON), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_LEADING, __pyx_k_TAB_ITEM_LEADING, sizeof(__pyx_k_TAB_ITEM_LEADING), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_NONE, __pyx_k_TAB_ITEM_NONE, sizeof(__pyx_k_TAB_ITEM_NONE), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MO, __pyx_k_TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MO, sizeof(__pyx_k_TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MO), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_NO_PUSH_ID, __pyx_k_TAB_ITEM_NO_PUSH_ID, sizeof(__pyx_k_TAB_ITEM_NO_PUSH_ID), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_NO_REORDER, __pyx_k_TAB_ITEM_NO_REORDER, sizeof(__pyx_k_TAB_ITEM_NO_REORDER), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_NO_TOOLTIP, __pyx_k_TAB_ITEM_NO_TOOLTIP, sizeof(__pyx_k_TAB_ITEM_NO_TOOLTIP), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_SET_SELECTED, __pyx_k_TAB_ITEM_SET_SELECTED, sizeof(__pyx_k_TAB_ITEM_SET_SELECTED), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_TRAILING, __pyx_k_TAB_ITEM_TRAILING, sizeof(__pyx_k_TAB_ITEM_TRAILING), 0, 0, 1, 1}, {&__pyx_n_s_TAB_ITEM_UNSAVED_DOCUMENT, __pyx_k_TAB_ITEM_UNSAVED_DOCUMENT, sizeof(__pyx_k_TAB_ITEM_UNSAVED_DOCUMENT), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_ALLOW_ITEM_OVERLAP, __pyx_k_TREE_NODE_ALLOW_ITEM_OVERLAP, sizeof(__pyx_k_TREE_NODE_ALLOW_ITEM_OVERLAP), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_BULLET, __pyx_k_TREE_NODE_BULLET, sizeof(__pyx_k_TREE_NODE_BULLET), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_COLLAPSING_HEADER, __pyx_k_TREE_NODE_COLLAPSING_HEADER, sizeof(__pyx_k_TREE_NODE_COLLAPSING_HEADER), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_DEFAULT_OPEN, __pyx_k_TREE_NODE_DEFAULT_OPEN, sizeof(__pyx_k_TREE_NODE_DEFAULT_OPEN), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_FRAMED, __pyx_k_TREE_NODE_FRAMED, sizeof(__pyx_k_TREE_NODE_FRAMED), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_FRAME_PADDING, __pyx_k_TREE_NODE_FRAME_PADDING, sizeof(__pyx_k_TREE_NODE_FRAME_PADDING), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_LEAF, __pyx_k_TREE_NODE_LEAF, sizeof(__pyx_k_TREE_NODE_LEAF), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_NAV_LEFT_JUPS_BACK_HER, __pyx_k_TREE_NODE_NAV_LEFT_JUPS_BACK_HER, sizeof(__pyx_k_TREE_NODE_NAV_LEFT_JUPS_BACK_HER), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_NONE, __pyx_k_TREE_NODE_NONE, sizeof(__pyx_k_TREE_NODE_NONE), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_NO_AUTO_OPEN_ON_LOG, __pyx_k_TREE_NODE_NO_AUTO_OPEN_ON_LOG, sizeof(__pyx_k_TREE_NODE_NO_AUTO_OPEN_ON_LOG), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_NO_TREE_PUSH_ON_OPEN, __pyx_k_TREE_NODE_NO_TREE_PUSH_ON_OPEN, sizeof(__pyx_k_TREE_NODE_NO_TREE_PUSH_ON_OPEN), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_OPEN_ON_ARROW, __pyx_k_TREE_NODE_OPEN_ON_ARROW, sizeof(__pyx_k_TREE_NODE_OPEN_ON_ARROW), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_OPEN_ON_DOUBLE_CLICK, __pyx_k_TREE_NODE_OPEN_ON_DOUBLE_CLICK, sizeof(__pyx_k_TREE_NODE_OPEN_ON_DOUBLE_CLICK), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_SELECTED, __pyx_k_TREE_NODE_SELECTED, sizeof(__pyx_k_TREE_NODE_SELECTED), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_SPAN_AVAILABLE_WIDTH, __pyx_k_TREE_NODE_SPAN_AVAILABLE_WIDTH, sizeof(__pyx_k_TREE_NODE_SPAN_AVAILABLE_WIDTH), 0, 0, 1, 1}, {&__pyx_n_s_TREE_NODE_SPAN_FULL_WIDTH, __pyx_k_TREE_NODE_SPAN_FULL_WIDTH, sizeof(__pyx_k_TREE_NODE_SPAN_FULL_WIDTH), 0, 0, 1, 1}, {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1}, {&__pyx_kp_s_Unable_to_convert_item_to_object, __pyx_k_Unable_to_convert_item_to_object, sizeof(__pyx_k_Unable_to_convert_item_to_object), 0, 0, 1, 0}, {&__pyx_kp_s_Unknown_style_variable, __pyx_k_Unknown_style_variable, sizeof(__pyx_k_Unknown_style_variable), 0, 0, 1, 0}, {&__pyx_kp_s_Unsufficient_style_info_variable, __pyx_k_Unsufficient_style_info_variable, sizeof(__pyx_k_Unsufficient_style_info_variable), 0, 0, 1, 0}, {&__pyx_n_s_VIEWPORT_FLAGS_IS_PLATFORM_MONIT, __pyx_k_VIEWPORT_FLAGS_IS_PLATFORM_MONIT, sizeof(__pyx_k_VIEWPORT_FLAGS_IS_PLATFORM_MONIT), 0, 0, 1, 1}, {&__pyx_n_s_VIEWPORT_FLAGS_IS_PLATFORM_WINDO, __pyx_k_VIEWPORT_FLAGS_IS_PLATFORM_WINDO, sizeof(__pyx_k_VIEWPORT_FLAGS_IS_PLATFORM_WINDO), 0, 0, 1, 1}, {&__pyx_n_s_VIEWPORT_FLAGS_NONE, __pyx_k_VIEWPORT_FLAGS_NONE, sizeof(__pyx_k_VIEWPORT_FLAGS_NONE), 0, 0, 1, 1}, {&__pyx_n_s_VIEWPORT_FLAGS_OWNED_BY_APP, __pyx_k_VIEWPORT_FLAGS_OWNED_BY_APP, sizeof(__pyx_k_VIEWPORT_FLAGS_OWNED_BY_APP), 0, 0, 1, 1}, {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, {&__pyx_n_s_Vec2, __pyx_k_Vec2, sizeof(__pyx_k_Vec2), 0, 0, 1, 1}, {&__pyx_n_s_Vec4, __pyx_k_Vec4, sizeof(__pyx_k_Vec4), 0, 0, 1, 1}, {&__pyx_n_s_View_MemoryView, __pyx_k_View_MemoryView, sizeof(__pyx_k_View_MemoryView), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_ALWAYS_AUTO_RESIZE, __pyx_k_WINDOW_ALWAYS_AUTO_RESIZE, sizeof(__pyx_k_WINDOW_ALWAYS_AUTO_RESIZE), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_ALWAYS_HORIZONTAL_SCROLLB, __pyx_k_WINDOW_ALWAYS_HORIZONTAL_SCROLLB, sizeof(__pyx_k_WINDOW_ALWAYS_HORIZONTAL_SCROLLB), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_ALWAYS_USE_WINDOW_PADDING, __pyx_k_WINDOW_ALWAYS_USE_WINDOW_PADDING, sizeof(__pyx_k_WINDOW_ALWAYS_USE_WINDOW_PADDING), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_ALWAYS_VERTICAL_SCROLLBAR, __pyx_k_WINDOW_ALWAYS_VERTICAL_SCROLLBAR, sizeof(__pyx_k_WINDOW_ALWAYS_VERTICAL_SCROLLBAR), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_HORIZONTAL_SCROLLING_BAR, __pyx_k_WINDOW_HORIZONTAL_SCROLLING_BAR, sizeof(__pyx_k_WINDOW_HORIZONTAL_SCROLLING_BAR), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_MENU_BAR, __pyx_k_WINDOW_MENU_BAR, sizeof(__pyx_k_WINDOW_MENU_BAR), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NONE, __pyx_k_WINDOW_NONE, sizeof(__pyx_k_WINDOW_NONE), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_BACKGROUND, __pyx_k_WINDOW_NO_BACKGROUND, sizeof(__pyx_k_WINDOW_NO_BACKGROUND), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_BRING_TO_FRONT_ON_FOCU, __pyx_k_WINDOW_NO_BRING_TO_FRONT_ON_FOCU, sizeof(__pyx_k_WINDOW_NO_BRING_TO_FRONT_ON_FOCU), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_COLLAPSE, __pyx_k_WINDOW_NO_COLLAPSE, sizeof(__pyx_k_WINDOW_NO_COLLAPSE), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_DECORATION, __pyx_k_WINDOW_NO_DECORATION, sizeof(__pyx_k_WINDOW_NO_DECORATION), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_FOCUS_ON_APPEARING, __pyx_k_WINDOW_NO_FOCUS_ON_APPEARING, sizeof(__pyx_k_WINDOW_NO_FOCUS_ON_APPEARING), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_INPUTS, __pyx_k_WINDOW_NO_INPUTS, sizeof(__pyx_k_WINDOW_NO_INPUTS), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_MOUSE_INPUTS, __pyx_k_WINDOW_NO_MOUSE_INPUTS, sizeof(__pyx_k_WINDOW_NO_MOUSE_INPUTS), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_MOVE, __pyx_k_WINDOW_NO_MOVE, sizeof(__pyx_k_WINDOW_NO_MOVE), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_NAV, __pyx_k_WINDOW_NO_NAV, sizeof(__pyx_k_WINDOW_NO_NAV), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_NAV_FOCUS, __pyx_k_WINDOW_NO_NAV_FOCUS, sizeof(__pyx_k_WINDOW_NO_NAV_FOCUS), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_NAV_INPUTS, __pyx_k_WINDOW_NO_NAV_INPUTS, sizeof(__pyx_k_WINDOW_NO_NAV_INPUTS), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_RESIZE, __pyx_k_WINDOW_NO_RESIZE, sizeof(__pyx_k_WINDOW_NO_RESIZE), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_SAVED_SETTINGS, __pyx_k_WINDOW_NO_SAVED_SETTINGS, sizeof(__pyx_k_WINDOW_NO_SAVED_SETTINGS), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_SCROLLBAR, __pyx_k_WINDOW_NO_SCROLLBAR, sizeof(__pyx_k_WINDOW_NO_SCROLLBAR), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_SCROLL_WITH_MOUSE, __pyx_k_WINDOW_NO_SCROLL_WITH_MOUSE, sizeof(__pyx_k_WINDOW_NO_SCROLL_WITH_MOUSE), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_NO_TITLE_BAR, __pyx_k_WINDOW_NO_TITLE_BAR, sizeof(__pyx_k_WINDOW_NO_TITLE_BAR), 0, 0, 1, 1}, {&__pyx_n_s_WINDOW_UNSAVED_DOCUMENT, __pyx_k_WINDOW_UNSAVED_DOCUMENT, sizeof(__pyx_k_WINDOW_UNSAVED_DOCUMENT), 0, 0, 1, 1}, {&__pyx_kp_b__40, __pyx_k__40, sizeof(__pyx_k__40), 0, 0, 0, 0}, {&__pyx_kp_s__40, __pyx_k__40, sizeof(__pyx_k__40), 0, 0, 1, 0}, {&__pyx_kp_s__60, __pyx_k__60, sizeof(__pyx_k__60), 0, 0, 1, 0}, {&__pyx_kp_s__61, __pyx_k__61, sizeof(__pyx_k__61), 0, 0, 1, 0}, {&__pyx_kp_s__75, __pyx_k__75, sizeof(__pyx_k__75), 0, 0, 1, 0}, {&__pyx_kp_s__94, __pyx_k__94, sizeof(__pyx_k__94), 0, 0, 1, 0}, {&__pyx_n_s_a, __pyx_k_a, sizeof(__pyx_k_a), 0, 0, 1, 1}, {&__pyx_n_s_a_max, __pyx_k_a_max, sizeof(__pyx_k_a_max), 0, 0, 1, 1}, {&__pyx_n_s_a_max_of_12, __pyx_k_a_max_of_12, sizeof(__pyx_k_a_max_of_12), 0, 0, 1, 1}, {&__pyx_n_s_a_min, __pyx_k_a_min, sizeof(__pyx_k_a_min), 0, 0, 1, 1}, {&__pyx_n_s_a_min_of_12, __pyx_k_a_min_of_12, sizeof(__pyx_k_a_min_of_12), 0, 0, 1, 1}, {&__pyx_n_s_a_x, __pyx_k_a_x, sizeof(__pyx_k_a_x), 0, 0, 1, 1}, {&__pyx_n_s_a_y, __pyx_k_a_y, sizeof(__pyx_k_a_y), 0, 0, 1, 1}, {&__pyx_n_s_accept_drag_drop_payload, __pyx_k_accept_drag_drop_payload, sizeof(__pyx_k_accept_drag_drop_payload), 0, 0, 1, 1}, {&__pyx_n_s_active, __pyx_k_active, sizeof(__pyx_k_active), 0, 0, 1, 1}, {&__pyx_n_s_align_text_to_frame_padding, __pyx_k_align_text_to_frame_padding, sizeof(__pyx_k_align_text_to_frame_padding), 0, 0, 1, 1}, {&__pyx_n_s_allocate_buffer, __pyx_k_allocate_buffer, sizeof(__pyx_k_allocate_buffer), 0, 0, 1, 1}, {&__pyx_n_s_alpha, __pyx_k_alpha, sizeof(__pyx_k_alpha), 0, 0, 1, 1}, {&__pyx_n_s_alpha_mul, __pyx_k_alpha_mul, sizeof(__pyx_k_alpha_mul), 0, 0, 1, 1}, {&__pyx_n_s_also_over_items, __pyx_k_also_over_items, sizeof(__pyx_k_also_over_items), 0, 0, 1, 1}, {&__pyx_n_s_ansifeed_text_ansi, __pyx_k_ansifeed_text_ansi, sizeof(__pyx_k_ansifeed_text_ansi), 0, 0, 1, 1}, {&__pyx_n_s_ansifeed_text_ansi_colored, __pyx_k_ansifeed_text_ansi_colored, sizeof(__pyx_k_ansifeed_text_ansi_colored), 0, 0, 1, 1}, {&__pyx_n_s_append, __pyx_k_append, sizeof(__pyx_k_append), 0, 0, 1, 1}, {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, {&__pyx_n_s_arrow_button, __pyx_k_arrow_button, sizeof(__pyx_k_arrow_button), 0, 0, 1, 1}, {&__pyx_n_s_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 0, 1, 1}, {&__pyx_n_s_b_format_max, __pyx_k_b_format_max, sizeof(__pyx_k_b_format_max), 0, 0, 1, 1}, {&__pyx_n_s_b_x, __pyx_k_b_x, sizeof(__pyx_k_b_x), 0, 0, 1, 1}, {&__pyx_n_s_b_y, __pyx_k_b_y, sizeof(__pyx_k_b_y), 0, 0, 1, 1}, {&__pyx_n_s_base, __pyx_k_base, sizeof(__pyx_k_base), 0, 0, 1, 1}, {&__pyx_n_s_begin, __pyx_k_begin, sizeof(__pyx_k_begin), 0, 0, 1, 1}, {&__pyx_n_s_begin_child, __pyx_k_begin_child, sizeof(__pyx_k_begin_child), 0, 0, 1, 1}, {&__pyx_n_s_begin_combo, __pyx_k_begin_combo, sizeof(__pyx_k_begin_combo), 0, 0, 1, 1}, {&__pyx_n_s_begin_drag_drop_source, __pyx_k_begin_drag_drop_source, sizeof(__pyx_k_begin_drag_drop_source), 0, 0, 1, 1}, {&__pyx_n_s_begin_drag_drop_target, __pyx_k_begin_drag_drop_target, sizeof(__pyx_k_begin_drag_drop_target), 0, 0, 1, 1}, {&__pyx_n_s_begin_group, __pyx_k_begin_group, sizeof(__pyx_k_begin_group), 0, 0, 1, 1}, {&__pyx_n_s_begin_list_box, __pyx_k_begin_list_box, sizeof(__pyx_k_begin_list_box), 0, 0, 1, 1}, {&__pyx_n_s_begin_main_menu_bar, __pyx_k_begin_main_menu_bar, sizeof(__pyx_k_begin_main_menu_bar), 0, 0, 1, 1}, {&__pyx_n_s_begin_menu, __pyx_k_begin_menu, sizeof(__pyx_k_begin_menu), 0, 0, 1, 1}, {&__pyx_n_s_begin_menu_bar, __pyx_k_begin_menu_bar, sizeof(__pyx_k_begin_menu_bar), 0, 0, 1, 1}, {&__pyx_n_s_begin_popup, __pyx_k_begin_popup, sizeof(__pyx_k_begin_popup), 0, 0, 1, 1}, {&__pyx_n_s_begin_popup_context_item, __pyx_k_begin_popup_context_item, sizeof(__pyx_k_begin_popup_context_item), 0, 0, 1, 1}, {&__pyx_n_s_begin_popup_context_void, __pyx_k_begin_popup_context_void, sizeof(__pyx_k_begin_popup_context_void), 0, 0, 1, 1}, {&__pyx_n_s_begin_popup_context_window, __pyx_k_begin_popup_context_window, sizeof(__pyx_k_begin_popup_context_window), 0, 0, 1, 1}, {&__pyx_n_s_begin_popup_modal, __pyx_k_begin_popup_modal, sizeof(__pyx_k_begin_popup_modal), 0, 0, 1, 1}, {&__pyx_n_s_begin_tab_bar, __pyx_k_begin_tab_bar, sizeof(__pyx_k_begin_tab_bar), 0, 0, 1, 1}, {&__pyx_n_s_begin_tab_item, __pyx_k_begin_tab_item, sizeof(__pyx_k_begin_tab_item), 0, 0, 1, 1}, {&__pyx_n_s_begin_table, __pyx_k_begin_table, sizeof(__pyx_k_begin_table), 0, 0, 1, 1}, {&__pyx_n_s_begin_tooltip, __pyx_k_begin_tooltip, sizeof(__pyx_k_begin_tooltip), 0, 0, 1, 1}, {&__pyx_n_s_border, __pyx_k_border, sizeof(__pyx_k_border), 0, 0, 1, 1}, {&__pyx_n_s_border_color, __pyx_k_border_color, sizeof(__pyx_k_border_color), 0, 0, 1, 1}, {&__pyx_n_s_buffer_length, __pyx_k_buffer_length, sizeof(__pyx_k_buffer_length), 0, 0, 1, 1}, {&__pyx_n_s_buffer_length_2, __pyx_k_buffer_length_2, sizeof(__pyx_k_buffer_length_2), 0, 0, 1, 1}, {&__pyx_n_s_bullet, __pyx_k_bullet, sizeof(__pyx_k_bullet), 0, 0, 1, 1}, {&__pyx_n_s_bullet_text, __pyx_k_bullet_text, sizeof(__pyx_k_bullet_text), 0, 0, 1, 1}, {&__pyx_n_s_button, __pyx_k_button, sizeof(__pyx_k_button), 0, 0, 1, 1}, {&__pyx_n_s_bytes_count, __pyx_k_bytes_count, sizeof(__pyx_k_bytes_count), 0, 0, 1, 1}, {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1}, {&__pyx_n_u_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 1, 0, 1}, {&__pyx_n_s_c_string, __pyx_k_c_string, sizeof(__pyx_k_c_string), 0, 0, 1, 1}, {&__pyx_n_s_c_x, __pyx_k_c_x, sizeof(__pyx_k_c_x), 0, 0, 1, 1}, {&__pyx_n_s_c_y, __pyx_k_c_y, sizeof(__pyx_k_c_y), 0, 0, 1, 1}, {&__pyx_n_s_callback, __pyx_k_callback, sizeof(__pyx_k_callback), 0, 0, 1, 1}, {&__pyx_n_s_callback_2, __pyx_k_callback_2, sizeof(__pyx_k_callback_2), 0, 0, 1, 1}, {&__pyx_n_s_callback_fn, __pyx_k_callback_fn, sizeof(__pyx_k_callback_fn), 0, 0, 1, 1}, {&__pyx_kp_s_callback_fn_is_not_a_callable_s, __pyx_k_callback_fn_is_not_a_callable_s, sizeof(__pyx_k_callback_fn_is_not_a_callable_s), 0, 0, 1, 0}, {&__pyx_n_s_callback_user_info, __pyx_k_callback_user_info, sizeof(__pyx_k_callback_user_info), 0, 0, 1, 1}, {&__pyx_n_s_capture_mouse_from_app, __pyx_k_capture_mouse_from_app, sizeof(__pyx_k_capture_mouse_from_app), 0, 0, 1, 1}, {&__pyx_n_s_center_x, __pyx_k_center_x, sizeof(__pyx_k_center_x), 0, 0, 1, 1}, {&__pyx_n_s_center_x_ratio, __pyx_k_center_x_ratio, sizeof(__pyx_k_center_x_ratio), 0, 0, 1, 1}, {&__pyx_n_s_center_y, __pyx_k_center_y, sizeof(__pyx_k_center_y), 0, 0, 1, 1}, {&__pyx_n_s_center_y_ratio, __pyx_k_center_y_ratio, sizeof(__pyx_k_center_y_ratio), 0, 0, 1, 1}, {&__pyx_n_s_centre_x, __pyx_k_centre_x, sizeof(__pyx_k_centre_x), 0, 0, 1, 1}, {&__pyx_n_s_centre_y, __pyx_k_centre_y, sizeof(__pyx_k_centre_y), 0, 0, 1, 1}, {&__pyx_n_s_change_speed, __pyx_k_change_speed, sizeof(__pyx_k_change_speed), 0, 0, 1, 1}, {&__pyx_n_s_changed, __pyx_k_changed, sizeof(__pyx_k_changed), 0, 0, 1, 1}, {&__pyx_n_s_checkbox, __pyx_k_checkbox, sizeof(__pyx_k_checkbox), 0, 0, 1, 1}, {&__pyx_n_s_checkbox_flags, __pyx_k_checkbox_flags, sizeof(__pyx_k_checkbox_flags), 0, 0, 1, 1}, {&__pyx_n_s_chr, __pyx_k_chr, sizeof(__pyx_k_chr), 0, 0, 1, 1}, {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1}, {&__pyx_n_s_clear, __pyx_k_clear, sizeof(__pyx_k_clear), 0, 0, 1, 1}, {&__pyx_n_s_clicked, __pyx_k_clicked, sizeof(__pyx_k_clicked), 0, 0, 1, 1}, {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_clip, __pyx_k_clip, sizeof(__pyx_k_clip), 0, 0, 1, 1}, {&__pyx_n_s_clip_rect_max_x, __pyx_k_clip_rect_max_x, sizeof(__pyx_k_clip_rect_max_x), 0, 0, 1, 1}, {&__pyx_n_s_clip_rect_max_y, __pyx_k_clip_rect_max_y, sizeof(__pyx_k_clip_rect_max_y), 0, 0, 1, 1}, {&__pyx_n_s_clip_rect_min_x, __pyx_k_clip_rect_min_x, sizeof(__pyx_k_clip_rect_min_x), 0, 0, 1, 1}, {&__pyx_n_s_clip_rect_min_y, __pyx_k_clip_rect_min_y, sizeof(__pyx_k_clip_rect_min_y), 0, 0, 1, 1}, {&__pyx_n_s_closable, __pyx_k_closable, sizeof(__pyx_k_closable), 0, 0, 1, 1}, {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1}, {&__pyx_n_s_close_current_popup, __pyx_k_close_current_popup, sizeof(__pyx_k_close_current_popup), 0, 0, 1, 1}, {&__pyx_n_s_col, __pyx_k_col, sizeof(__pyx_k_col), 0, 0, 1, 1}, {&__pyx_n_s_col_bot_left, __pyx_k_col_bot_left, sizeof(__pyx_k_col_bot_left), 0, 0, 1, 1}, {&__pyx_n_s_col_bot_right, __pyx_k_col_bot_right, sizeof(__pyx_k_col_bot_right), 0, 0, 1, 1}, {&__pyx_n_s_col_upr_left, __pyx_k_col_upr_left, sizeof(__pyx_k_col_upr_left), 0, 0, 1, 1}, {&__pyx_n_s_col_upr_right, __pyx_k_col_upr_right, sizeof(__pyx_k_col_upr_right), 0, 0, 1, 1}, {&__pyx_n_s_collapsed, __pyx_k_collapsed, sizeof(__pyx_k_collapsed), 0, 0, 1, 1}, {&__pyx_n_s_collapsing_header, __pyx_k_collapsing_header, sizeof(__pyx_k_collapsing_header), 0, 0, 1, 1}, {&__pyx_n_s_collections, __pyx_k_collections, sizeof(__pyx_k_collections), 0, 0, 1, 1}, {&__pyx_n_s_color, __pyx_k_color, sizeof(__pyx_k_color), 0, 0, 1, 1}, {&__pyx_n_s_color_button, __pyx_k_color_button, sizeof(__pyx_k_color_button), 0, 0, 1, 1}, {&__pyx_n_s_color_convert_float4_to_u32, __pyx_k_color_convert_float4_to_u32, sizeof(__pyx_k_color_convert_float4_to_u32), 0, 0, 1, 1}, {&__pyx_n_s_color_convert_hsv_to_rgb, __pyx_k_color_convert_hsv_to_rgb, sizeof(__pyx_k_color_convert_hsv_to_rgb), 0, 0, 1, 1}, {&__pyx_n_s_color_convert_rgb_to_hsv, __pyx_k_color_convert_rgb_to_hsv, sizeof(__pyx_k_color_convert_rgb_to_hsv), 0, 0, 1, 1}, {&__pyx_n_s_color_convert_u32_to_float4, __pyx_k_color_convert_u32_to_float4, sizeof(__pyx_k_color_convert_u32_to_float4), 0, 0, 1, 1}, {&__pyx_n_s_color_edit3, __pyx_k_color_edit3, sizeof(__pyx_k_color_edit3), 0, 0, 1, 1}, {&__pyx_n_s_color_edit4, __pyx_k_color_edit4, sizeof(__pyx_k_color_edit4), 0, 0, 1, 1}, {&__pyx_n_s_cols, __pyx_k_cols, sizeof(__pyx_k_cols), 0, 0, 1, 1}, {&__pyx_n_s_column, __pyx_k_column, sizeof(__pyx_k_column), 0, 0, 1, 1}, {&__pyx_n_s_column_index, __pyx_k_column_index, sizeof(__pyx_k_column_index), 0, 0, 1, 1}, {&__pyx_n_s_column_n, __pyx_k_column_n, sizeof(__pyx_k_column_n), 0, 0, 1, 1}, {&__pyx_n_s_columns, __pyx_k_columns, sizeof(__pyx_k_columns), 0, 0, 1, 1}, {&__pyx_n_s_combo, __pyx_k_combo, sizeof(__pyx_k_combo), 0, 0, 1, 1}, {&__pyx_n_s_components, __pyx_k_components, sizeof(__pyx_k_components), 0, 0, 1, 1}, {&__pyx_n_s_condition, __pyx_k_condition, sizeof(__pyx_k_condition), 0, 0, 1, 1}, {&__pyx_n_s_contextlib, __pyx_k_contextlib, sizeof(__pyx_k_contextlib), 0, 0, 1, 1}, {&__pyx_n_s_contextmanager, __pyx_k_contextmanager, sizeof(__pyx_k_contextmanager), 0, 0, 1, 1}, {&__pyx_n_s_contexts, __pyx_k_contexts, sizeof(__pyx_k_contexts), 0, 0, 1, 1}, {&__pyx_kp_s_contiguous_and_direct, __pyx_k_contiguous_and_direct, sizeof(__pyx_k_contiguous_and_direct), 0, 0, 1, 0}, {&__pyx_kp_s_contiguous_and_indirect, __pyx_k_contiguous_and_indirect, sizeof(__pyx_k_contiguous_and_indirect), 0, 0, 1, 0}, {&__pyx_n_s_count, __pyx_k_count, sizeof(__pyx_k_count), 0, 0, 1, 1}, {&__pyx_n_s_create, __pyx_k_create, sizeof(__pyx_k_create), 0, 0, 1, 1}, {&__pyx_n_s_create_context, __pyx_k_create_context, sizeof(__pyx_k_create_context), 0, 0, 1, 1}, {&__pyx_n_s_ctx, __pyx_k_ctx, sizeof(__pyx_k_ctx), 0, 0, 1, 1}, {&__pyx_n_s_current, __pyx_k_current, sizeof(__pyx_k_current), 0, 0, 1, 1}, {&__pyx_n_s_current_max, __pyx_k_current_max, sizeof(__pyx_k_current_max), 0, 0, 1, 1}, {&__pyx_n_s_current_min, __pyx_k_current_min, sizeof(__pyx_k_current_min), 0, 0, 1, 1}, {&__pyx_kp_s_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 0, 1, 0}, {&__pyx_n_s_d_x, __pyx_k_d_x, sizeof(__pyx_k_d_x), 0, 0, 1, 1}, {&__pyx_n_s_d_y, __pyx_k_d_y, sizeof(__pyx_k_d_y), 0, 0, 1, 1}, {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, {&__pyx_n_s_data_type, __pyx_k_data_type, sizeof(__pyx_k_data_type), 0, 0, 1, 1}, {&__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1}, {&__pyx_n_s_defaults, __pyx_k_defaults, sizeof(__pyx_k_defaults), 0, 0, 1, 1}, {&__pyx_n_s_desc_id, __pyx_k_desc_id, sizeof(__pyx_k_desc_id), 0, 0, 1, 1}, {&__pyx_n_s_destroy_context, __pyx_k_destroy_context, sizeof(__pyx_k_destroy_context), 0, 0, 1, 1}, {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1}, {&__pyx_n_s_direction, __pyx_k_direction, sizeof(__pyx_k_direction), 0, 0, 1, 1}, {&__pyx_n_s_drag_float, __pyx_k_drag_float, sizeof(__pyx_k_drag_float), 0, 0, 1, 1}, {&__pyx_n_s_drag_float2, __pyx_k_drag_float2, sizeof(__pyx_k_drag_float2), 0, 0, 1, 1}, {&__pyx_n_s_drag_float3, __pyx_k_drag_float3, sizeof(__pyx_k_drag_float3), 0, 0, 1, 1}, {&__pyx_n_s_drag_float4, __pyx_k_drag_float4, sizeof(__pyx_k_drag_float4), 0, 0, 1, 1}, {&__pyx_n_s_drag_float_range2, __pyx_k_drag_float_range2, sizeof(__pyx_k_drag_float_range2), 0, 0, 1, 1}, {&__pyx_n_s_drag_int, __pyx_k_drag_int, sizeof(__pyx_k_drag_int), 0, 0, 1, 1}, {&__pyx_n_s_drag_int2, __pyx_k_drag_int2, sizeof(__pyx_k_drag_int2), 0, 0, 1, 1}, {&__pyx_n_s_drag_int3, __pyx_k_drag_int3, sizeof(__pyx_k_drag_int3), 0, 0, 1, 1}, {&__pyx_n_s_drag_int4, __pyx_k_drag_int4, sizeof(__pyx_k_drag_int4), 0, 0, 1, 1}, {&__pyx_n_s_drag_int_range2, __pyx_k_drag_int_range2, sizeof(__pyx_k_drag_int_range2), 0, 0, 1, 1}, {&__pyx_n_s_drag_scalar, __pyx_k_drag_scalar, sizeof(__pyx_k_drag_scalar), 0, 0, 1, 1}, {&__pyx_n_s_drag_scalar_N, __pyx_k_drag_scalar_N, sizeof(__pyx_k_drag_scalar_N), 0, 0, 1, 1}, {&__pyx_n_s_dragging, __pyx_k_dragging, sizeof(__pyx_k_dragging), 0, 0, 1, 1}, {&__pyx_kp_s_dragging_2, __pyx_k_dragging_2, sizeof(__pyx_k_dragging_2), 0, 0, 1, 0}, {&__pyx_n_s_dst, __pyx_k_dst, sizeof(__pyx_k_dst), 0, 0, 1, 1}, {&__pyx_n_s_dtype_is_object, __pyx_k_dtype_is_object, sizeof(__pyx_k_dtype_is_object), 0, 0, 1, 1}, {&__pyx_n_s_dummy, __pyx_k_dummy, sizeof(__pyx_k_dummy), 0, 0, 1, 1}, {&__pyx_n_s_ellipsis_char, __pyx_k_ellipsis_char, sizeof(__pyx_k_ellipsis_char), 0, 0, 1, 1}, {&__pyx_n_s_enabled, __pyx_k_enabled, sizeof(__pyx_k_enabled), 0, 0, 1, 1}, {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1}, {&__pyx_n_s_end, __pyx_k_end, sizeof(__pyx_k_end), 0, 0, 1, 1}, {&__pyx_n_s_end_child, __pyx_k_end_child, sizeof(__pyx_k_end_child), 0, 0, 1, 1}, {&__pyx_n_s_end_combo, __pyx_k_end_combo, sizeof(__pyx_k_end_combo), 0, 0, 1, 1}, {&__pyx_n_s_end_drag_drop_source, __pyx_k_end_drag_drop_source, sizeof(__pyx_k_end_drag_drop_source), 0, 0, 1, 1}, {&__pyx_n_s_end_drag_drop_target, __pyx_k_end_drag_drop_target, sizeof(__pyx_k_end_drag_drop_target), 0, 0, 1, 1}, {&__pyx_n_s_end_frame, __pyx_k_end_frame, sizeof(__pyx_k_end_frame), 0, 0, 1, 1}, {&__pyx_n_s_end_group, __pyx_k_end_group, sizeof(__pyx_k_end_group), 0, 0, 1, 1}, {&__pyx_n_s_end_list_box, __pyx_k_end_list_box, sizeof(__pyx_k_end_list_box), 0, 0, 1, 1}, {&__pyx_n_s_end_main_menu_bar, __pyx_k_end_main_menu_bar, sizeof(__pyx_k_end_main_menu_bar), 0, 0, 1, 1}, {&__pyx_n_s_end_menu, __pyx_k_end_menu, sizeof(__pyx_k_end_menu), 0, 0, 1, 1}, {&__pyx_n_s_end_menu_bar, __pyx_k_end_menu_bar, sizeof(__pyx_k_end_menu_bar), 0, 0, 1, 1}, {&__pyx_n_s_end_popup, __pyx_k_end_popup, sizeof(__pyx_k_end_popup), 0, 0, 1, 1}, {&__pyx_n_s_end_tab_bar, __pyx_k_end_tab_bar, sizeof(__pyx_k_end_tab_bar), 0, 0, 1, 1}, {&__pyx_n_s_end_tab_item, __pyx_k_end_tab_item, sizeof(__pyx_k_end_tab_item), 0, 0, 1, 1}, {&__pyx_n_s_end_table, __pyx_k_end_table, sizeof(__pyx_k_end_table), 0, 0, 1, 1}, {&__pyx_n_s_end_tooltip, __pyx_k_end_tooltip, sizeof(__pyx_k_end_tooltip), 0, 0, 1, 1}, {&__pyx_n_s_end_x, __pyx_k_end_x, sizeof(__pyx_k_end_x), 0, 0, 1, 1}, {&__pyx_n_s_end_y, __pyx_k_end_y, sizeof(__pyx_k_end_y), 0, 0, 1, 1}, {&__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 0, 0, 1, 1}, {&__pyx_n_s_error, __pyx_k_error, sizeof(__pyx_k_error), 0, 0, 1, 1}, {&__pyx_n_s_errors, __pyx_k_errors, sizeof(__pyx_k_errors), 0, 0, 1, 1}, {&__pyx_n_s_exc_tb, __pyx_k_exc_tb, sizeof(__pyx_k_exc_tb), 0, 0, 1, 1}, {&__pyx_n_s_exc_type, __pyx_k_exc_type, sizeof(__pyx_k_exc_type), 0, 0, 1, 1}, {&__pyx_n_s_exc_val, __pyx_k_exc_val, sizeof(__pyx_k_exc_val), 0, 0, 1, 1}, {&__pyx_n_s_expanded, __pyx_k_expanded, sizeof(__pyx_k_expanded), 0, 0, 1, 1}, {&__pyx_kp_s_expanded_opened, __pyx_k_expanded_opened, sizeof(__pyx_k_expanded_opened), 0, 0, 1, 0}, {&__pyx_n_s_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 0, 1, 1}, {&__pyx_kp_s_f_2, __pyx_k_f_2, sizeof(__pyx_k_f_2), 0, 0, 1, 0}, {&__pyx_n_s_filename, __pyx_k_filename, sizeof(__pyx_k_filename), 0, 0, 1, 1}, {&__pyx_n_s_fillvalue, __pyx_k_fillvalue, sizeof(__pyx_k_fillvalue), 0, 0, 1, 1}, {&__pyx_n_s_flags, __pyx_k_flags, sizeof(__pyx_k_flags), 0, 0, 1, 1}, {&__pyx_n_s_flags_value, __pyx_k_flags_value, sizeof(__pyx_k_flags_value), 0, 0, 1, 1}, {&__pyx_n_s_fmt, __pyx_k_fmt, sizeof(__pyx_k_fmt), 0, 0, 1, 1}, {&__pyx_n_s_fmt_data, __pyx_k_fmt_data, sizeof(__pyx_k_fmt_data), 0, 0, 1, 1}, {&__pyx_n_s_font, __pyx_k_font, sizeof(__pyx_k_font), 0, 0, 1, 1}, {&__pyx_n_s_font_builder_flags, __pyx_k_font_builder_flags, sizeof(__pyx_k_font_builder_flags), 0, 0, 1, 1}, {&__pyx_n_s_font_config, __pyx_k_font_config, sizeof(__pyx_k_font_config), 0, 0, 1, 1}, {&__pyx_n_s_font_no, __pyx_k_font_no, sizeof(__pyx_k_font_no), 0, 0, 1, 1}, {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1}, {&__pyx_n_s_format_max, __pyx_k_format_max, sizeof(__pyx_k_format_max), 0, 0, 1, 1}, {&__pyx_n_s_fortran, __pyx_k_fortran, sizeof(__pyx_k_fortran), 0, 0, 1, 1}, {&__pyx_n_u_fortran, __pyx_k_fortran, sizeof(__pyx_k_fortran), 0, 1, 0, 1}, {&__pyx_n_s_fraction, __pyx_k_fraction, sizeof(__pyx_k_fraction), 0, 0, 1, 1}, {&__pyx_n_s_frame_padding, __pyx_k_frame_padding, sizeof(__pyx_k_frame_padding), 0, 0, 1, 1}, {&__pyx_kp_s_func_is_not_a_callable_s, __pyx_k_func_is_not_a_callable_s, sizeof(__pyx_k_func_is_not_a_callable_s), 0, 0, 1, 0}, {&__pyx_n_s_g, __pyx_k_g, sizeof(__pyx_k_g), 0, 0, 1, 1}, {&__pyx_n_s_get_background_draw_list, __pyx_k_get_background_draw_list, sizeof(__pyx_k_get_background_draw_list), 0, 0, 1, 1}, {&__pyx_n_s_get_clipboard_text, __pyx_k_get_clipboard_text, sizeof(__pyx_k_get_clipboard_text), 0, 0, 1, 1}, {&__pyx_n_s_get_clipboard_text_fn, __pyx_k_get_clipboard_text_fn, sizeof(__pyx_k_get_clipboard_text_fn), 0, 0, 1, 1}, {&__pyx_n_s_get_column_index, __pyx_k_get_column_index, sizeof(__pyx_k_get_column_index), 0, 0, 1, 1}, {&__pyx_n_s_get_column_offset, __pyx_k_get_column_offset, sizeof(__pyx_k_get_column_offset), 0, 0, 1, 1}, {&__pyx_n_s_get_column_width, __pyx_k_get_column_width, sizeof(__pyx_k_get_column_width), 0, 0, 1, 1}, {&__pyx_n_s_get_columns_count, __pyx_k_get_columns_count, sizeof(__pyx_k_get_columns_count), 0, 0, 1, 1}, {&__pyx_n_s_get_content_region_available, __pyx_k_get_content_region_available, sizeof(__pyx_k_get_content_region_available), 0, 0, 1, 1}, {&__pyx_n_s_get_content_region_available_wid, __pyx_k_get_content_region_available_wid, sizeof(__pyx_k_get_content_region_available_wid), 0, 0, 1, 1}, {&__pyx_n_s_get_content_region_max, __pyx_k_get_content_region_max, sizeof(__pyx_k_get_content_region_max), 0, 0, 1, 1}, {&__pyx_n_s_get_current_context, __pyx_k_get_current_context, sizeof(__pyx_k_get_current_context), 0, 0, 1, 1}, {&__pyx_n_s_get_cursor_pos, __pyx_k_get_cursor_pos, sizeof(__pyx_k_get_cursor_pos), 0, 0, 1, 1}, {&__pyx_n_s_get_cursor_pos_x, __pyx_k_get_cursor_pos_x, sizeof(__pyx_k_get_cursor_pos_x), 0, 0, 1, 1}, {&__pyx_n_s_get_cursor_pos_y, __pyx_k_get_cursor_pos_y, sizeof(__pyx_k_get_cursor_pos_y), 0, 0, 1, 1}, {&__pyx_n_s_get_cursor_position, __pyx_k_get_cursor_position, sizeof(__pyx_k_get_cursor_position), 0, 0, 1, 1}, {&__pyx_n_s_get_cursor_screen_pos, __pyx_k_get_cursor_screen_pos, sizeof(__pyx_k_get_cursor_screen_pos), 0, 0, 1, 1}, {&__pyx_n_s_get_cursor_screen_position, __pyx_k_get_cursor_screen_position, sizeof(__pyx_k_get_cursor_screen_position), 0, 0, 1, 1}, {&__pyx_n_s_get_cursor_start_pos, __pyx_k_get_cursor_start_pos, sizeof(__pyx_k_get_cursor_start_pos), 0, 0, 1, 1}, {&__pyx_n_s_get_cursor_start_position, __pyx_k_get_cursor_start_position, sizeof(__pyx_k_get_cursor_start_position), 0, 0, 1, 1}, {&__pyx_n_s_get_drag_drop_payload, __pyx_k_get_drag_drop_payload, sizeof(__pyx_k_get_drag_drop_payload), 0, 0, 1, 1}, {&__pyx_n_s_get_draw_data, __pyx_k_get_draw_data, sizeof(__pyx_k_get_draw_data), 0, 0, 1, 1}, {&__pyx_n_s_get_foreground_draw_list, __pyx_k_get_foreground_draw_list, sizeof(__pyx_k_get_foreground_draw_list), 0, 0, 1, 1}, {&__pyx_n_s_get_frame_height, __pyx_k_get_frame_height, sizeof(__pyx_k_get_frame_height), 0, 0, 1, 1}, {&__pyx_n_s_get_frame_height_with_spacing, __pyx_k_get_frame_height_with_spacing, sizeof(__pyx_k_get_frame_height_with_spacing), 0, 0, 1, 1}, {&__pyx_n_s_get_io, __pyx_k_get_io, sizeof(__pyx_k_get_io), 0, 0, 1, 1}, {&__pyx_n_s_get_item_rect_max, __pyx_k_get_item_rect_max, sizeof(__pyx_k_get_item_rect_max), 0, 0, 1, 1}, {&__pyx_n_s_get_item_rect_min, __pyx_k_get_item_rect_min, sizeof(__pyx_k_get_item_rect_min), 0, 0, 1, 1}, {&__pyx_n_s_get_item_rect_size, __pyx_k_get_item_rect_size, sizeof(__pyx_k_get_item_rect_size), 0, 0, 1, 1}, {&__pyx_n_s_get_key_index, __pyx_k_get_key_index, sizeof(__pyx_k_get_key_index), 0, 0, 1, 1}, {&__pyx_n_s_get_main_viewport, __pyx_k_get_main_viewport, sizeof(__pyx_k_get_main_viewport), 0, 0, 1, 1}, {&__pyx_n_s_get_mouse_cursor, __pyx_k_get_mouse_cursor, sizeof(__pyx_k_get_mouse_cursor), 0, 0, 1, 1}, {&__pyx_n_s_get_mouse_drag_delta, __pyx_k_get_mouse_drag_delta, sizeof(__pyx_k_get_mouse_drag_delta), 0, 0, 1, 1}, {&__pyx_n_s_get_mouse_pos, __pyx_k_get_mouse_pos, sizeof(__pyx_k_get_mouse_pos), 0, 0, 1, 1}, {&__pyx_n_s_get_mouse_position, __pyx_k_get_mouse_position, sizeof(__pyx_k_get_mouse_position), 0, 0, 1, 1}, {&__pyx_n_s_get_overlay_draw_list, __pyx_k_get_overlay_draw_list, sizeof(__pyx_k_get_overlay_draw_list), 0, 0, 1, 1}, {&__pyx_n_s_get_scroll_max_x, __pyx_k_get_scroll_max_x, sizeof(__pyx_k_get_scroll_max_x), 0, 0, 1, 1}, {&__pyx_n_s_get_scroll_max_y, __pyx_k_get_scroll_max_y, sizeof(__pyx_k_get_scroll_max_y), 0, 0, 1, 1}, {&__pyx_n_s_get_scroll_x, __pyx_k_get_scroll_x, sizeof(__pyx_k_get_scroll_x), 0, 0, 1, 1}, {&__pyx_n_s_get_scroll_y, __pyx_k_get_scroll_y, sizeof(__pyx_k_get_scroll_y), 0, 0, 1, 1}, {&__pyx_n_s_get_style, __pyx_k_get_style, sizeof(__pyx_k_get_style), 0, 0, 1, 1}, {&__pyx_n_s_get_style_color_name, __pyx_k_get_style_color_name, sizeof(__pyx_k_get_style_color_name), 0, 0, 1, 1}, {&__pyx_n_s_get_text_line_height, __pyx_k_get_text_line_height, sizeof(__pyx_k_get_text_line_height), 0, 0, 1, 1}, {&__pyx_n_s_get_text_line_height_with_spacin, __pyx_k_get_text_line_height_with_spacin, sizeof(__pyx_k_get_text_line_height_with_spacin), 0, 0, 1, 1}, {&__pyx_n_s_get_time, __pyx_k_get_time, sizeof(__pyx_k_get_time), 0, 0, 1, 1}, {&__pyx_n_s_get_tree_node_to_label_spacing, __pyx_k_get_tree_node_to_label_spacing, sizeof(__pyx_k_get_tree_node_to_label_spacing), 0, 0, 1, 1}, {&__pyx_n_s_get_version, __pyx_k_get_version, sizeof(__pyx_k_get_version), 0, 0, 1, 1}, {&__pyx_n_s_get_window_content_region_max, __pyx_k_get_window_content_region_max, sizeof(__pyx_k_get_window_content_region_max), 0, 0, 1, 1}, {&__pyx_n_s_get_window_content_region_min, __pyx_k_get_window_content_region_min, sizeof(__pyx_k_get_window_content_region_min), 0, 0, 1, 1}, {&__pyx_n_s_get_window_content_region_width, __pyx_k_get_window_content_region_width, sizeof(__pyx_k_get_window_content_region_width), 0, 0, 1, 1}, {&__pyx_n_s_get_window_draw_list, __pyx_k_get_window_draw_list, sizeof(__pyx_k_get_window_draw_list), 0, 0, 1, 1}, {&__pyx_n_s_get_window_height, __pyx_k_get_window_height, sizeof(__pyx_k_get_window_height), 0, 0, 1, 1}, {&__pyx_n_s_get_window_position, __pyx_k_get_window_position, sizeof(__pyx_k_get_window_position), 0, 0, 1, 1}, {&__pyx_n_s_get_window_size, __pyx_k_get_window_size, sizeof(__pyx_k_get_window_size), 0, 0, 1, 1}, {&__pyx_n_s_get_window_width, __pyx_k_get_window_width, sizeof(__pyx_k_get_window_width), 0, 0, 1, 1}, {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1}, {&__pyx_n_s_glyph_extra_spacing_x, __pyx_k_glyph_extra_spacing_x, sizeof(__pyx_k_glyph_extra_spacing_x), 0, 0, 1, 1}, {&__pyx_n_s_glyph_extra_spacing_y, __pyx_k_glyph_extra_spacing_y, sizeof(__pyx_k_glyph_extra_spacing_y), 0, 0, 1, 1}, {&__pyx_n_s_glyph_max_advance_x, __pyx_k_glyph_max_advance_x, sizeof(__pyx_k_glyph_max_advance_x), 0, 0, 1, 1}, {&__pyx_n_s_glyph_min_advance_x, __pyx_k_glyph_min_advance_x, sizeof(__pyx_k_glyph_min_advance_x), 0, 0, 1, 1}, {&__pyx_n_s_glyph_offset_x, __pyx_k_glyph_offset_x, sizeof(__pyx_k_glyph_offset_x), 0, 0, 1, 1}, {&__pyx_n_s_glyph_offset_y, __pyx_k_glyph_offset_y, sizeof(__pyx_k_glyph_offset_y), 0, 0, 1, 1}, {&__pyx_n_s_glyph_ranges, __pyx_k_glyph_ranges, sizeof(__pyx_k_glyph_ranges), 0, 0, 1, 1}, {&__pyx_kp_s_glyph_ranges_cannot_contain_nega, __pyx_k_glyph_ranges_cannot_contain_nega, sizeof(__pyx_k_glyph_ranges_cannot_contain_nega), 0, 0, 1, 0}, {&__pyx_kp_s_glyph_ranges_invalid_type, __pyx_k_glyph_ranges_invalid_type, sizeof(__pyx_k_glyph_ranges_invalid_type), 0, 0, 1, 0}, {&__pyx_kp_s_glyph_ranges_must_be_pairs_of_in, __pyx_k_glyph_ranges_must_be_pairs_of_in, sizeof(__pyx_k_glyph_ranges_must_be_pairs_of_in), 0, 0, 1, 0}, {&__pyx_kp_s_got_differing_extents_in_dimensi, __pyx_k_got_differing_extents_in_dimensi, sizeof(__pyx_k_got_differing_extents_in_dimensi), 0, 0, 1, 0}, {&__pyx_n_s_graph_size, __pyx_k_graph_size, sizeof(__pyx_k_graph_size), 0, 0, 1, 1}, {&__pyx_n_s_gui_style, __pyx_k_gui_style, sizeof(__pyx_k_gui_style), 0, 0, 1, 1}, {&__pyx_n_s_h, __pyx_k_h, sizeof(__pyx_k_h), 0, 0, 1, 1}, {&__pyx_n_s_height, __pyx_k_height, sizeof(__pyx_k_height), 0, 0, 1, 1}, {&__pyx_n_s_height_in_items, __pyx_k_height_in_items, sizeof(__pyx_k_height_in_items), 0, 0, 1, 1}, {&__pyx_n_s_hide_text_after_double_hash, __pyx_k_hide_text_after_double_hash, sizeof(__pyx_k_hide_text_after_double_hash), 0, 0, 1, 1}, {&__pyx_n_s_hint, __pyx_k_hint, sizeof(__pyx_k_hint), 0, 0, 1, 1}, {&__pyx_n_s_hovered, __pyx_k_hovered, sizeof(__pyx_k_hovered), 0, 0, 1, 1}, {&__pyx_kp_s_hovered_2, __pyx_k_hovered_2, sizeof(__pyx_k_hovered_2), 0, 0, 1, 0}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1}, {&__pyx_n_s_identifier, __pyx_k_identifier, sizeof(__pyx_k_identifier), 0, 0, 1, 1}, {&__pyx_n_s_idx, __pyx_k_idx, sizeof(__pyx_k_idx), 0, 0, 1, 1}, {&__pyx_n_s_idx_count, __pyx_k_idx_count, sizeof(__pyx_k_idx_count), 0, 0, 1, 1}, {&__pyx_n_s_ignore, __pyx_k_ignore, sizeof(__pyx_k_ignore), 0, 0, 1, 1}, {&__pyx_n_s_image, __pyx_k_image, sizeof(__pyx_k_image), 0, 0, 1, 1}, {&__pyx_n_s_image_button, __pyx_k_image_button, sizeof(__pyx_k_image_button), 0, 0, 1, 1}, {&__pyx_n_s_imgui_core, __pyx_k_imgui_core, sizeof(__pyx_k_imgui_core), 0, 0, 1, 1}, {&__pyx_kp_s_imgui_core_pyx, __pyx_k_imgui_core_pyx, sizeof(__pyx_k_imgui_core_pyx), 0, 0, 1, 0}, {&__pyx_n_s_imgui_sort_spec, __pyx_k_imgui_sort_spec, sizeof(__pyx_k_imgui_sort_spec), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_in, __pyx_k_in, sizeof(__pyx_k_in), 0, 0, 1, 1}, {&__pyx_n_s_in_items, __pyx_k_in_items, sizeof(__pyx_k_in_items), 0, 0, 1, 1}, {&__pyx_n_s_indent, __pyx_k_indent, sizeof(__pyx_k_indent), 0, 0, 1, 1}, {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, {&__pyx_n_s_ini_data, __pyx_k_ini_data, sizeof(__pyx_k_ini_data), 0, 0, 1, 1}, {&__pyx_n_s_ini_file_name, __pyx_k_ini_file_name, sizeof(__pyx_k_ini_file_name), 0, 0, 1, 1}, {&__pyx_kp_s_ini_file_name_must_be_a_string, __pyx_k_ini_file_name_must_be_a_string, sizeof(__pyx_k_ini_file_name_must_be_a_string), 0, 0, 1, 0}, {&__pyx_n_s_init_width_or_weight, __pyx_k_init_width_or_weight, sizeof(__pyx_k_init_width_or_weight), 0, 0, 1, 1}, {&__pyx_n_s_inner_width, __pyx_k_inner_width, sizeof(__pyx_k_inner_width), 0, 0, 1, 1}, {&__pyx_n_s_inout_color, __pyx_k_inout_color, sizeof(__pyx_k_inout_color), 0, 0, 1, 1}, {&__pyx_n_s_inout_current, __pyx_k_inout_current, sizeof(__pyx_k_inout_current), 0, 0, 1, 1}, {&__pyx_n_s_inout_current_max, __pyx_k_inout_current_max, sizeof(__pyx_k_inout_current_max), 0, 0, 1, 1}, {&__pyx_n_s_inout_current_min, __pyx_k_inout_current_min, sizeof(__pyx_k_inout_current_min), 0, 0, 1, 1}, {&__pyx_n_s_inout_flags, __pyx_k_inout_flags, sizeof(__pyx_k_inout_flags), 0, 0, 1, 1}, {&__pyx_n_s_inout_opened, __pyx_k_inout_opened, sizeof(__pyx_k_inout_opened), 0, 0, 1, 1}, {&__pyx_n_s_inout_r_value, __pyx_k_inout_r_value, sizeof(__pyx_k_inout_r_value), 0, 0, 1, 1}, {&__pyx_n_s_inout_selected, __pyx_k_inout_selected, sizeof(__pyx_k_inout_selected), 0, 0, 1, 1}, {&__pyx_n_s_inout_state, __pyx_k_inout_state, sizeof(__pyx_k_inout_state), 0, 0, 1, 1}, {&__pyx_n_s_inout_value, __pyx_k_inout_value, sizeof(__pyx_k_inout_value), 0, 0, 1, 1}, {&__pyx_n_s_inout_values, __pyx_k_inout_values, sizeof(__pyx_k_inout_values), 0, 0, 1, 1}, {&__pyx_n_s_inout_visible, __pyx_k_inout_visible, sizeof(__pyx_k_inout_visible), 0, 0, 1, 1}, {&__pyx_n_s_input_double, __pyx_k_input_double, sizeof(__pyx_k_input_double), 0, 0, 1, 1}, {&__pyx_n_s_input_float, __pyx_k_input_float, sizeof(__pyx_k_input_float), 0, 0, 1, 1}, {&__pyx_n_s_input_float2, __pyx_k_input_float2, sizeof(__pyx_k_input_float2), 0, 0, 1, 1}, {&__pyx_n_s_input_float3, __pyx_k_input_float3, sizeof(__pyx_k_input_float3), 0, 0, 1, 1}, {&__pyx_n_s_input_float4, __pyx_k_input_float4, sizeof(__pyx_k_input_float4), 0, 0, 1, 1}, {&__pyx_n_s_input_int, __pyx_k_input_int, sizeof(__pyx_k_input_int), 0, 0, 1, 1}, {&__pyx_n_s_input_int2, __pyx_k_input_int2, sizeof(__pyx_k_input_int2), 0, 0, 1, 1}, {&__pyx_n_s_input_int3, __pyx_k_input_int3, sizeof(__pyx_k_input_int3), 0, 0, 1, 1}, {&__pyx_n_s_input_int4, __pyx_k_input_int4, sizeof(__pyx_k_input_int4), 0, 0, 1, 1}, {&__pyx_n_s_input_scalar, __pyx_k_input_scalar, sizeof(__pyx_k_input_scalar), 0, 0, 1, 1}, {&__pyx_n_s_input_scalar_N, __pyx_k_input_scalar_N, sizeof(__pyx_k_input_scalar_N), 0, 0, 1, 1}, {&__pyx_n_s_input_text, __pyx_k_input_text, sizeof(__pyx_k_input_text), 0, 0, 1, 1}, {&__pyx_n_s_input_text_multiline, __pyx_k_input_text_multiline, sizeof(__pyx_k_input_text_multiline), 0, 0, 1, 1}, {&__pyx_n_s_input_text_with_hint, __pyx_k_input_text_with_hint, sizeof(__pyx_k_input_text_with_hint), 0, 0, 1, 1}, {&__pyx_n_s_intersect_with_current_clip_rect, __pyx_k_intersect_with_current_clip_rect, sizeof(__pyx_k_intersect_with_current_clip_rect), 0, 0, 1, 1}, {&__pyx_n_s_invisible_button, __pyx_k_invisible_button, sizeof(__pyx_k_invisible_button), 0, 0, 1, 1}, {&__pyx_n_s_io_clipboard, __pyx_k_io_clipboard, sizeof(__pyx_k_io_clipboard), 0, 0, 1, 1}, {&__pyx_n_s_is_any_item_active, __pyx_k_is_any_item_active, sizeof(__pyx_k_is_any_item_active), 0, 0, 1, 1}, {&__pyx_n_s_is_any_item_focused, __pyx_k_is_any_item_focused, sizeof(__pyx_k_is_any_item_focused), 0, 0, 1, 1}, {&__pyx_n_s_is_any_item_hovered, __pyx_k_is_any_item_hovered, sizeof(__pyx_k_is_any_item_hovered), 0, 0, 1, 1}, {&__pyx_n_s_is_item_activated, __pyx_k_is_item_activated, sizeof(__pyx_k_is_item_activated), 0, 0, 1, 1}, {&__pyx_n_s_is_item_active, __pyx_k_is_item_active, sizeof(__pyx_k_is_item_active), 0, 0, 1, 1}, {&__pyx_n_s_is_item_clicked, __pyx_k_is_item_clicked, sizeof(__pyx_k_is_item_clicked), 0, 0, 1, 1}, {&__pyx_n_s_is_item_deactivated, __pyx_k_is_item_deactivated, sizeof(__pyx_k_is_item_deactivated), 0, 0, 1, 1}, {&__pyx_n_s_is_item_deactivated_after_edit, __pyx_k_is_item_deactivated_after_edit, sizeof(__pyx_k_is_item_deactivated_after_edit), 0, 0, 1, 1}, {&__pyx_n_s_is_item_edited, __pyx_k_is_item_edited, sizeof(__pyx_k_is_item_edited), 0, 0, 1, 1}, {&__pyx_n_s_is_item_focused, __pyx_k_is_item_focused, sizeof(__pyx_k_is_item_focused), 0, 0, 1, 1}, {&__pyx_n_s_is_item_hovered, __pyx_k_is_item_hovered, sizeof(__pyx_k_is_item_hovered), 0, 0, 1, 1}, {&__pyx_n_s_is_item_toggled_open, __pyx_k_is_item_toggled_open, sizeof(__pyx_k_is_item_toggled_open), 0, 0, 1, 1}, {&__pyx_n_s_is_item_visible, __pyx_k_is_item_visible, sizeof(__pyx_k_is_item_visible), 0, 0, 1, 1}, {&__pyx_n_s_is_key_down, __pyx_k_is_key_down, sizeof(__pyx_k_is_key_down), 0, 0, 1, 1}, {&__pyx_n_s_is_key_pressed, __pyx_k_is_key_pressed, sizeof(__pyx_k_is_key_pressed), 0, 0, 1, 1}, {&__pyx_n_s_is_mouse_clicked, __pyx_k_is_mouse_clicked, sizeof(__pyx_k_is_mouse_clicked), 0, 0, 1, 1}, {&__pyx_n_s_is_mouse_double_clicked, __pyx_k_is_mouse_double_clicked, sizeof(__pyx_k_is_mouse_double_clicked), 0, 0, 1, 1}, {&__pyx_n_s_is_mouse_down, __pyx_k_is_mouse_down, sizeof(__pyx_k_is_mouse_down), 0, 0, 1, 1}, {&__pyx_n_s_is_mouse_dragging, __pyx_k_is_mouse_dragging, sizeof(__pyx_k_is_mouse_dragging), 0, 0, 1, 1}, {&__pyx_n_s_is_mouse_hovering_rect, __pyx_k_is_mouse_hovering_rect, sizeof(__pyx_k_is_mouse_hovering_rect), 0, 0, 1, 1}, {&__pyx_n_s_is_mouse_released, __pyx_k_is_mouse_released, sizeof(__pyx_k_is_mouse_released), 0, 0, 1, 1}, {&__pyx_n_s_is_open, __pyx_k_is_open, sizeof(__pyx_k_is_open), 0, 0, 1, 1}, {&__pyx_n_s_is_popup_open, __pyx_k_is_popup_open, sizeof(__pyx_k_is_popup_open), 0, 0, 1, 1}, {&__pyx_n_s_is_rect_visible, __pyx_k_is_rect_visible, sizeof(__pyx_k_is_rect_visible), 0, 0, 1, 1}, {&__pyx_n_s_is_window_appearing, __pyx_k_is_window_appearing, sizeof(__pyx_k_is_window_appearing), 0, 0, 1, 1}, {&__pyx_n_s_is_window_collapsed, __pyx_k_is_window_collapsed, sizeof(__pyx_k_is_window_collapsed), 0, 0, 1, 1}, {&__pyx_n_s_is_window_focused, __pyx_k_is_window_focused, sizeof(__pyx_k_is_window_focused), 0, 0, 1, 1}, {&__pyx_n_s_is_window_hovered, __pyx_k_is_window_hovered, sizeof(__pyx_k_is_window_hovered), 0, 0, 1, 1}, {&__pyx_n_s_item, __pyx_k_item, sizeof(__pyx_k_item), 0, 0, 1, 1}, {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1}, {&__pyx_n_s_itemsize, __pyx_k_itemsize, sizeof(__pyx_k_itemsize), 0, 0, 1, 1}, {&__pyx_kp_s_itemsize_0_for_cython_array, __pyx_k_itemsize_0_for_cython_array, sizeof(__pyx_k_itemsize_0_for_cython_array), 0, 0, 1, 0}, {&__pyx_n_s_iterator, __pyx_k_iterator, sizeof(__pyx_k_iterator), 0, 0, 1, 1}, {&__pyx_n_s_itertools, __pyx_k_itertools, sizeof(__pyx_k_itertools), 0, 0, 1, 1}, {&__pyx_n_s_izip_longest, __pyx_k_izip_longest, sizeof(__pyx_k_izip_longest), 0, 0, 1, 1}, {&__pyx_n_s_join, __pyx_k_join, sizeof(__pyx_k_join), 0, 0, 1, 1}, {&__pyx_n_s_keepalive_cache, __pyx_k_keepalive_cache, sizeof(__pyx_k_keepalive_cache), 0, 0, 1, 1}, {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1}, {&__pyx_n_s_key_index, __pyx_k_key_index, sizeof(__pyx_k_key_index), 0, 0, 1, 1}, {&__pyx_n_s_kwargs, __pyx_k_kwargs, sizeof(__pyx_k_kwargs), 0, 0, 1, 1}, {&__pyx_n_s_label, __pyx_k_label, sizeof(__pyx_k_label), 0, 0, 1, 1}, {&__pyx_n_s_label_text, __pyx_k_label_text, sizeof(__pyx_k_label_text), 0, 0, 1, 1}, {&__pyx_n_s_listbox, __pyx_k_listbox, sizeof(__pyx_k_listbox), 0, 0, 1, 1}, {&__pyx_n_s_listbox_footer, __pyx_k_listbox_footer, sizeof(__pyx_k_listbox_footer), 0, 0, 1, 1}, {&__pyx_n_s_listbox_header, __pyx_k_listbox_header, sizeof(__pyx_k_listbox_header), 0, 0, 1, 1}, {&__pyx_n_s_load_ini_settings_from_disk, __pyx_k_load_ini_settings_from_disk, sizeof(__pyx_k_load_ini_settings_from_disk), 0, 0, 1, 1}, {&__pyx_n_s_load_ini_settings_from_memory, __pyx_k_load_ini_settings_from_memory, sizeof(__pyx_k_load_ini_settings_from_memory), 0, 0, 1, 1}, {&__pyx_n_s_local_pos, __pyx_k_local_pos, sizeof(__pyx_k_local_pos), 0, 0, 1, 1}, {&__pyx_n_s_local_x, __pyx_k_local_x, sizeof(__pyx_k_local_x), 0, 0, 1, 1}, {&__pyx_n_s_local_y, __pyx_k_local_y, sizeof(__pyx_k_local_y), 0, 0, 1, 1}, {&__pyx_n_s_lock_threshold, __pyx_k_lock_threshold, sizeof(__pyx_k_lock_threshold), 0, 0, 1, 1}, {&__pyx_kp_s_log_file_name_must_be_a_string, __pyx_k_log_file_name_must_be_a_string, sizeof(__pyx_k_log_file_name_must_be_a_string), 0, 0, 1, 0}, {&__pyx_n_s_lower_right_x, __pyx_k_lower_right_x, sizeof(__pyx_k_lower_right_x), 0, 0, 1, 1}, {&__pyx_n_s_lower_right_y, __pyx_k_lower_right_y, sizeof(__pyx_k_lower_right_y), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_max_value, __pyx_k_max_value, sizeof(__pyx_k_max_value), 0, 0, 1, 1}, {&__pyx_n_s_memview, __pyx_k_memview, sizeof(__pyx_k_memview), 0, 0, 1, 1}, {&__pyx_n_s_menu_item, __pyx_k_menu_item, sizeof(__pyx_k_menu_item), 0, 0, 1, 1}, {&__pyx_n_s_merge_mode, __pyx_k_merge_mode, sizeof(__pyx_k_merge_mode), 0, 0, 1, 1}, {&__pyx_n_s_min_row_height, __pyx_k_min_row_height, sizeof(__pyx_k_min_row_height), 0, 0, 1, 1}, {&__pyx_n_s_min_value, __pyx_k_min_value, sizeof(__pyx_k_min_value), 0, 0, 1, 1}, {&__pyx_n_s_mode, __pyx_k_mode, sizeof(__pyx_k_mode), 0, 0, 1, 1}, {&__pyx_n_s_mouse_button, __pyx_k_mouse_button, sizeof(__pyx_k_mouse_button), 0, 0, 1, 1}, {&__pyx_n_s_mouse_cursor_type, __pyx_k_mouse_cursor_type, sizeof(__pyx_k_mouse_cursor_type), 0, 0, 1, 1}, {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1}, {&__pyx_n_s_namedtuple, __pyx_k_namedtuple, sizeof(__pyx_k_namedtuple), 0, 0, 1, 1}, {&__pyx_n_s_ndim, __pyx_k_ndim, sizeof(__pyx_k_ndim), 0, 0, 1, 1}, {&__pyx_n_s_new, __pyx_k_new, sizeof(__pyx_k_new), 0, 0, 1, 1}, {&__pyx_n_s_new_frame, __pyx_k_new_frame, sizeof(__pyx_k_new_frame), 0, 0, 1, 1}, {&__pyx_n_s_new_line, __pyx_k_new_line, sizeof(__pyx_k_new_line), 0, 0, 1, 1}, {&__pyx_n_s_next_column, __pyx_k_next_column, sizeof(__pyx_k_next_column), 0, 0, 1, 1}, {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0}, {&__pyx_n_s_num_segments, __pyx_k_num_segments, sizeof(__pyx_k_num_segments), 0, 0, 1, 1}, {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1}, {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1}, {&__pyx_n_s_offset, __pyx_k_offset, sizeof(__pyx_k_offset), 0, 0, 1, 1}, {&__pyx_n_s_offset_x, __pyx_k_offset_x, sizeof(__pyx_k_offset_x), 0, 0, 1, 1}, {&__pyx_n_s_open_popup, __pyx_k_open_popup, sizeof(__pyx_k_open_popup), 0, 0, 1, 1}, {&__pyx_n_s_open_popup_on_item_click, __pyx_k_open_popup_on_item_click, sizeof(__pyx_k_open_popup_on_item_click), 0, 0, 1, 1}, {&__pyx_n_s_opened, __pyx_k_opened, sizeof(__pyx_k_opened), 0, 0, 1, 1}, {&__pyx_kp_s_opened_2, __pyx_k_opened_2, sizeof(__pyx_k_opened_2), 0, 0, 1, 0}, {&__pyx_kp_s_opened_visible, __pyx_k_opened_visible, sizeof(__pyx_k_opened_visible), 0, 0, 1, 0}, {&__pyx_n_s_out_b, __pyx_k_out_b, sizeof(__pyx_k_out_b), 0, 0, 1, 1}, {&__pyx_n_s_out_g, __pyx_k_out_g, sizeof(__pyx_k_out_g), 0, 0, 1, 1}, {&__pyx_n_s_out_h, __pyx_k_out_h, sizeof(__pyx_k_out_h), 0, 0, 1, 1}, {&__pyx_n_s_out_r, __pyx_k_out_r, sizeof(__pyx_k_out_r), 0, 0, 1, 1}, {&__pyx_n_s_out_s, __pyx_k_out_s, sizeof(__pyx_k_out_s), 0, 0, 1, 1}, {&__pyx_n_s_out_v, __pyx_k_out_v, sizeof(__pyx_k_out_v), 0, 0, 1, 1}, {&__pyx_n_s_outer_size_height, __pyx_k_outer_size_height, sizeof(__pyx_k_outer_size_height), 0, 0, 1, 1}, {&__pyx_n_s_outer_size_width, __pyx_k_outer_size_width, sizeof(__pyx_k_outer_size_width), 0, 0, 1, 1}, {&__pyx_n_s_output, __pyx_k_output, sizeof(__pyx_k_output), 0, 0, 1, 1}, {&__pyx_n_s_overlay, __pyx_k_overlay, sizeof(__pyx_k_overlay), 0, 0, 1, 1}, {&__pyx_n_s_overlay_text, __pyx_k_overlay_text, sizeof(__pyx_k_overlay_text), 0, 0, 1, 1}, {&__pyx_n_s_overlay_text_b, __pyx_k_overlay_text_b, sizeof(__pyx_k_overlay_text_b), 0, 0, 1, 1}, {&__pyx_n_s_overlay_text_ptr, __pyx_k_overlay_text_ptr, sizeof(__pyx_k_overlay_text_ptr), 0, 0, 1, 1}, {&__pyx_n_s_oversample_h, __pyx_k_oversample_h, sizeof(__pyx_k_oversample_h), 0, 0, 1, 1}, {&__pyx_n_s_oversample_v, __pyx_k_oversample_v, sizeof(__pyx_k_oversample_v), 0, 0, 1, 1}, {&__pyx_n_s_p_data, __pyx_k_p_data, sizeof(__pyx_k_p_data), 0, 0, 1, 1}, {&__pyx_n_s_p_format_max, __pyx_k_p_format_max, sizeof(__pyx_k_p_format_max), 0, 0, 1, 1}, {&__pyx_n_s_p_max, __pyx_k_p_max, sizeof(__pyx_k_p_max), 0, 0, 1, 1}, {&__pyx_n_s_p_min, __pyx_k_p_min, sizeof(__pyx_k_p_min), 0, 0, 1, 1}, {&__pyx_n_s_p_step, __pyx_k_p_step, sizeof(__pyx_k_p_step), 0, 0, 1, 1}, {&__pyx_n_s_p_step_fast, __pyx_k_p_step_fast, sizeof(__pyx_k_p_step_fast), 0, 0, 1, 1}, {&__pyx_n_s_pack, __pyx_k_pack, sizeof(__pyx_k_pack), 0, 0, 1, 1}, {&__pyx_kp_s_pair_param_must_be_length_of_2, __pyx_k_pair_param_must_be_length_of_2, sizeof(__pyx_k_pair_param_must_be_length_of_2), 0, 0, 1, 0}, {&__pyx_n_s_payload, __pyx_k_payload, sizeof(__pyx_k_payload), 0, 0, 1, 1}, {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1}, {&__pyx_n_s_pivot_x, __pyx_k_pivot_x, sizeof(__pyx_k_pivot_x), 0, 0, 1, 1}, {&__pyx_n_s_pivot_y, __pyx_k_pivot_y, sizeof(__pyx_k_pivot_y), 0, 0, 1, 1}, {&__pyx_n_s_pixel_snap_h, __pyx_k_pixel_snap_h, sizeof(__pyx_k_pixel_snap_h), 0, 0, 1, 1}, {&__pyx_n_s_plot_histogram, __pyx_k_plot_histogram, sizeof(__pyx_k_plot_histogram), 0, 0, 1, 1}, {&__pyx_n_s_plot_lines, __pyx_k_plot_lines, sizeof(__pyx_k_plot_lines), 0, 0, 1, 1}, {&__pyx_n_s_point1_x, __pyx_k_point1_x, sizeof(__pyx_k_point1_x), 0, 0, 1, 1}, {&__pyx_n_s_point1_y, __pyx_k_point1_y, sizeof(__pyx_k_point1_y), 0, 0, 1, 1}, {&__pyx_n_s_point2_x, __pyx_k_point2_x, sizeof(__pyx_k_point2_x), 0, 0, 1, 1}, {&__pyx_n_s_point2_y, __pyx_k_point2_y, sizeof(__pyx_k_point2_y), 0, 0, 1, 1}, {&__pyx_n_s_point3_x, __pyx_k_point3_x, sizeof(__pyx_k_point3_x), 0, 0, 1, 1}, {&__pyx_n_s_point3_y, __pyx_k_point3_y, sizeof(__pyx_k_point3_y), 0, 0, 1, 1}, {&__pyx_n_s_point4_x, __pyx_k_point4_x, sizeof(__pyx_k_point4_x), 0, 0, 1, 1}, {&__pyx_n_s_point4_y, __pyx_k_point4_y, sizeof(__pyx_k_point4_y), 0, 0, 1, 1}, {&__pyx_n_s_points, __pyx_k_points, sizeof(__pyx_k_points), 0, 0, 1, 1}, {&__pyx_n_s_pop_clip_rect, __pyx_k_pop_clip_rect, sizeof(__pyx_k_pop_clip_rect), 0, 0, 1, 1}, {&__pyx_n_s_pop_font, __pyx_k_pop_font, sizeof(__pyx_k_pop_font), 0, 0, 1, 1}, {&__pyx_n_s_pop_id, __pyx_k_pop_id, sizeof(__pyx_k_pop_id), 0, 0, 1, 1}, {&__pyx_n_s_pop_text_wrap_pos, __pyx_k_pop_text_wrap_pos, sizeof(__pyx_k_pop_text_wrap_pos), 0, 0, 1, 1}, {&__pyx_n_s_pop_text_wrap_position, __pyx_k_pop_text_wrap_position, sizeof(__pyx_k_pop_text_wrap_position), 0, 0, 1, 1}, {&__pyx_n_s_populate, __pyx_k_populate, sizeof(__pyx_k_populate), 0, 0, 1, 1}, {&__pyx_n_s_popup_flags, __pyx_k_popup_flags, sizeof(__pyx_k_popup_flags), 0, 0, 1, 1}, {&__pyx_n_s_pos, __pyx_k_pos, sizeof(__pyx_k_pos), 0, 0, 1, 1}, {&__pyx_n_s_pos_x, __pyx_k_pos_x, sizeof(__pyx_k_pos_x), 0, 0, 1, 1}, {&__pyx_n_s_pos_y, __pyx_k_pos_y, sizeof(__pyx_k_pos_y), 0, 0, 1, 1}, {&__pyx_n_s_position, __pyx_k_position, sizeof(__pyx_k_position), 0, 0, 1, 1}, {&__pyx_n_s_power, __pyx_k_power, sizeof(__pyx_k_power), 0, 0, 1, 1}, {&__pyx_kp_s_power_parameter_obsoleted_in_ImG, __pyx_k_power_parameter_obsoleted_in_ImG, sizeof(__pyx_k_power_parameter_obsoleted_in_ImG), 0, 0, 1, 0}, {&__pyx_n_s_preview_value, __pyx_k_preview_value, sizeof(__pyx_k_preview_value), 0, 0, 1, 1}, {&__pyx_n_s_progress_bar, __pyx_k_progress_bar, sizeof(__pyx_k_progress_bar), 0, 0, 1, 1}, {&__pyx_n_s_ptr, __pyx_k_ptr, sizeof(__pyx_k_ptr), 0, 0, 1, 1}, {&__pyx_n_s_push_clip_rect, __pyx_k_push_clip_rect, sizeof(__pyx_k_push_clip_rect), 0, 0, 1, 1}, {&__pyx_n_s_push_font, __pyx_k_push_font, sizeof(__pyx_k_push_font), 0, 0, 1, 1}, {&__pyx_n_s_push_id, __pyx_k_push_id, sizeof(__pyx_k_push_id), 0, 0, 1, 1}, {&__pyx_n_s_push_text_wrap_pos, __pyx_k_push_text_wrap_pos, sizeof(__pyx_k_push_text_wrap_pos), 0, 0, 1, 1}, {&__pyx_n_s_push_text_wrap_position, __pyx_k_push_text_wrap_position, sizeof(__pyx_k_push_text_wrap_position), 0, 0, 1, 1}, {&__pyx_n_s_py_colored, __pyx_k_py_colored, sizeof(__pyx_k_py_colored), 0, 0, 1, 1}, {&__pyx_n_s_py_font, __pyx_k_py_font, sizeof(__pyx_k_py_font), 0, 0, 1, 1}, {&__pyx_n_s_py_index_buffer_index_size, __pyx_k_py_index_buffer_index_size, sizeof(__pyx_k_py_index_buffer_index_size), 0, 0, 1, 1}, {&__pyx_n_s_py_istyled, __pyx_k_py_istyled, sizeof(__pyx_k_py_istyled), 0, 0, 1, 1}, {&__pyx_n_s_py_scoped, __pyx_k_py_scoped, sizeof(__pyx_k_py_scoped), 0, 0, 1, 1}, {&__pyx_n_s_py_string, __pyx_k_py_string, sizeof(__pyx_k_py_string), 0, 0, 1, 1}, {&__pyx_n_s_py_styled, __pyx_k_py_styled, sizeof(__pyx_k_py_styled), 0, 0, 1, 1}, {&__pyx_n_s_py_vertex_buffer_vertex_col_off, __pyx_k_py_vertex_buffer_vertex_col_off, sizeof(__pyx_k_py_vertex_buffer_vertex_col_off), 0, 0, 1, 1}, {&__pyx_n_s_py_vertex_buffer_vertex_pos_off, __pyx_k_py_vertex_buffer_vertex_pos_off, sizeof(__pyx_k_py_vertex_buffer_vertex_pos_off), 0, 0, 1, 1}, {&__pyx_n_s_py_vertex_buffer_vertex_size, __pyx_k_py_vertex_buffer_vertex_size, sizeof(__pyx_k_py_vertex_buffer_vertex_size), 0, 0, 1, 1}, {&__pyx_n_s_py_vertex_buffer_vertex_uv_offs, __pyx_k_py_vertex_buffer_vertex_uv_offs, sizeof(__pyx_k_py_vertex_buffer_vertex_uv_offs), 0, 0, 1, 1}, {&__pyx_n_s_pyx_PickleError, __pyx_k_pyx_PickleError, sizeof(__pyx_k_pyx_PickleError), 0, 0, 1, 1}, {&__pyx_n_s_pyx_checksum, __pyx_k_pyx_checksum, sizeof(__pyx_k_pyx_checksum), 0, 0, 1, 1}, {&__pyx_n_s_pyx_getbuffer, __pyx_k_pyx_getbuffer, sizeof(__pyx_k_pyx_getbuffer), 0, 0, 1, 1}, {&__pyx_n_s_pyx_result, __pyx_k_pyx_result, sizeof(__pyx_k_pyx_result), 0, 0, 1, 1}, {&__pyx_n_s_pyx_state, __pyx_k_pyx_state, sizeof(__pyx_k_pyx_state), 0, 0, 1, 1}, {&__pyx_n_s_pyx_type, __pyx_k_pyx_type, sizeof(__pyx_k_pyx_type), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_Enum, __pyx_k_pyx_unpickle_Enum, sizeof(__pyx_k_pyx_unpickle_Enum), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle__BeginEndGroup, __pyx_k_pyx_unpickle__BeginEndGroup, sizeof(__pyx_k_pyx_unpickle__BeginEndGroup), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle__BeginEndTooltip, __pyx_k_pyx_unpickle__BeginEndTooltip, sizeof(__pyx_k_pyx_unpickle__BeginEndTooltip), 0, 0, 1, 1}, {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1}, {&__pyx_kp_s_quadruple_param_must_be_length_o, __pyx_k_quadruple_param_must_be_length_o, sizeof(__pyx_k_quadruple_param_must_be_length_o), 0, 0, 1, 0}, {&__pyx_n_s_r, __pyx_k_r, sizeof(__pyx_k_r), 0, 0, 1, 1}, {&__pyx_n_s_r_max_x, __pyx_k_r_max_x, sizeof(__pyx_k_r_max_x), 0, 0, 1, 1}, {&__pyx_n_s_r_max_y, __pyx_k_r_max_y, sizeof(__pyx_k_r_max_y), 0, 0, 1, 1}, {&__pyx_n_s_r_min_x, __pyx_k_r_min_x, sizeof(__pyx_k_r_min_x), 0, 0, 1, 1}, {&__pyx_n_s_r_min_y, __pyx_k_r_min_y, sizeof(__pyx_k_r_min_y), 0, 0, 1, 1}, {&__pyx_n_s_rad_value, __pyx_k_rad_value, sizeof(__pyx_k_rad_value), 0, 0, 1, 1}, {&__pyx_n_s_radio_button, __pyx_k_radio_button, sizeof(__pyx_k_radio_button), 0, 0, 1, 1}, {&__pyx_n_s_radius, __pyx_k_radius, sizeof(__pyx_k_radius), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_n_s_rasterizer_multiply, __pyx_k_rasterizer_multiply, sizeof(__pyx_k_rasterizer_multiply), 0, 0, 1, 1}, {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1}, {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1}, {&__pyx_n_s_render, __pyx_k_render, sizeof(__pyx_k_render), 0, 0, 1, 1}, {&__pyx_n_s_repeat, __pyx_k_repeat, sizeof(__pyx_k_repeat), 0, 0, 1, 1}, {&__pyx_n_s_require_pointer, __pyx_k_require_pointer, sizeof(__pyx_k_require_pointer), 0, 0, 1, 1}, {&__pyx_n_s_reset_mouse_drag_delta, __pyx_k_reset_mouse_drag_delta, sizeof(__pyx_k_reset_mouse_drag_delta), 0, 0, 1, 1}, {&__pyx_n_s_rounding, __pyx_k_rounding, sizeof(__pyx_k_rounding), 0, 0, 1, 1}, {&__pyx_n_s_row_flags, __pyx_k_row_flags, sizeof(__pyx_k_row_flags), 0, 0, 1, 1}, {&__pyx_n_s_rows, __pyx_k_rows, sizeof(__pyx_k_rows), 0, 0, 1, 1}, {&__pyx_n_s_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 0, 1, 1}, {&__pyx_kp_s_s_improperly_initialized, __pyx_k_s_improperly_initialized, sizeof(__pyx_k_s_improperly_initialized), 0, 0, 1, 0}, {&__pyx_n_s_same_line, __pyx_k_same_line, sizeof(__pyx_k_same_line), 0, 0, 1, 1}, {&__pyx_n_s_save_ini_settings_to_disk, __pyx_k_save_ini_settings_to_disk, sizeof(__pyx_k_save_ini_settings_to_disk), 0, 0, 1, 1}, {&__pyx_n_s_save_ini_settings_to_memory, __pyx_k_save_ini_settings_to_memory, sizeof(__pyx_k_save_ini_settings_to_memory), 0, 0, 1, 1}, {&__pyx_n_s_scale, __pyx_k_scale, sizeof(__pyx_k_scale), 0, 0, 1, 1}, {&__pyx_n_s_scale_max, __pyx_k_scale_max, sizeof(__pyx_k_scale_max), 0, 0, 1, 1}, {&__pyx_n_s_scale_min, __pyx_k_scale_min, sizeof(__pyx_k_scale_min), 0, 0, 1, 1}, {&__pyx_n_s_screen_pos, __pyx_k_screen_pos, sizeof(__pyx_k_screen_pos), 0, 0, 1, 1}, {&__pyx_n_s_scroll_x, __pyx_k_scroll_x, sizeof(__pyx_k_scroll_x), 0, 0, 1, 1}, {&__pyx_n_s_scroll_y, __pyx_k_scroll_y, sizeof(__pyx_k_scroll_y), 0, 0, 1, 1}, {&__pyx_n_s_selectable, __pyx_k_selectable, sizeof(__pyx_k_selectable), 0, 0, 1, 1}, {&__pyx_n_s_selected, __pyx_k_selected, sizeof(__pyx_k_selected), 0, 0, 1, 1}, {&__pyx_kp_s_selected_opened, __pyx_k_selected_opened, sizeof(__pyx_k_selected_opened), 0, 0, 1, 0}, {&__pyx_kp_s_self__ptr_cannot_be_converted_to, __pyx_k_self__ptr_cannot_be_converted_to, sizeof(__pyx_k_self__ptr_cannot_be_converted_to), 0, 0, 1, 0}, {&__pyx_kp_s_self_config_cannot_be_converted, __pyx_k_self_config_cannot_be_converted, sizeof(__pyx_k_self_config_cannot_be_converted), 0, 0, 1, 0}, {&__pyx_kp_s_self_ranges_ptr_cannot_be_conver, __pyx_k_self_ranges_ptr_cannot_be_conver, sizeof(__pyx_k_self_ranges_ptr_cannot_be_conver), 0, 0, 1, 0}, {&__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1}, {&__pyx_n_s_separator, __pyx_k_separator, sizeof(__pyx_k_separator), 0, 0, 1, 1}, {&__pyx_n_s_set_clipboard_text, __pyx_k_set_clipboard_text, sizeof(__pyx_k_set_clipboard_text), 0, 0, 1, 1}, {&__pyx_n_s_set_clipboard_text_fn, __pyx_k_set_clipboard_text_fn, sizeof(__pyx_k_set_clipboard_text_fn), 0, 0, 1, 1}, {&__pyx_n_s_set_column_offset, __pyx_k_set_column_offset, sizeof(__pyx_k_set_column_offset), 0, 0, 1, 1}, {&__pyx_n_s_set_column_width, __pyx_k_set_column_width, sizeof(__pyx_k_set_column_width), 0, 0, 1, 1}, {&__pyx_n_s_set_current_context, __pyx_k_set_current_context, sizeof(__pyx_k_set_current_context), 0, 0, 1, 1}, {&__pyx_n_s_set_cursor_pos, __pyx_k_set_cursor_pos, sizeof(__pyx_k_set_cursor_pos), 0, 0, 1, 1}, {&__pyx_n_s_set_cursor_pos_x, __pyx_k_set_cursor_pos_x, sizeof(__pyx_k_set_cursor_pos_x), 0, 0, 1, 1}, {&__pyx_n_s_set_cursor_pos_y, __pyx_k_set_cursor_pos_y, sizeof(__pyx_k_set_cursor_pos_y), 0, 0, 1, 1}, {&__pyx_n_s_set_cursor_position, __pyx_k_set_cursor_position, sizeof(__pyx_k_set_cursor_position), 0, 0, 1, 1}, {&__pyx_n_s_set_cursor_screen_pos, __pyx_k_set_cursor_screen_pos, sizeof(__pyx_k_set_cursor_screen_pos), 0, 0, 1, 1}, {&__pyx_n_s_set_cursor_screen_position, __pyx_k_set_cursor_screen_position, sizeof(__pyx_k_set_cursor_screen_position), 0, 0, 1, 1}, {&__pyx_n_s_set_drag_drop_payload, __pyx_k_set_drag_drop_payload, sizeof(__pyx_k_set_drag_drop_payload), 0, 0, 1, 1}, {&__pyx_n_s_set_item_allow_overlap, __pyx_k_set_item_allow_overlap, sizeof(__pyx_k_set_item_allow_overlap), 0, 0, 1, 1}, {&__pyx_n_s_set_item_default_focus, __pyx_k_set_item_default_focus, sizeof(__pyx_k_set_item_default_focus), 0, 0, 1, 1}, {&__pyx_n_s_set_keyboard_focus_here, __pyx_k_set_keyboard_focus_here, sizeof(__pyx_k_set_keyboard_focus_here), 0, 0, 1, 1}, {&__pyx_n_s_set_mouse_cursor, __pyx_k_set_mouse_cursor, sizeof(__pyx_k_set_mouse_cursor), 0, 0, 1, 1}, {&__pyx_n_s_set_next_item_open, __pyx_k_set_next_item_open, sizeof(__pyx_k_set_next_item_open), 0, 0, 1, 1}, {&__pyx_n_s_set_next_window_bg_alpha, __pyx_k_set_next_window_bg_alpha, sizeof(__pyx_k_set_next_window_bg_alpha), 0, 0, 1, 1}, {&__pyx_n_s_set_next_window_collapsed, __pyx_k_set_next_window_collapsed, sizeof(__pyx_k_set_next_window_collapsed), 0, 0, 1, 1}, {&__pyx_n_s_set_next_window_content_size, __pyx_k_set_next_window_content_size, sizeof(__pyx_k_set_next_window_content_size), 0, 0, 1, 1}, {&__pyx_n_s_set_next_window_focus, __pyx_k_set_next_window_focus, sizeof(__pyx_k_set_next_window_focus), 0, 0, 1, 1}, {&__pyx_n_s_set_next_window_position, __pyx_k_set_next_window_position, sizeof(__pyx_k_set_next_window_position), 0, 0, 1, 1}, {&__pyx_n_s_set_next_window_size, __pyx_k_set_next_window_size, sizeof(__pyx_k_set_next_window_size), 0, 0, 1, 1}, {&__pyx_n_s_set_next_window_size_constraints, __pyx_k_set_next_window_size_constraints, sizeof(__pyx_k_set_next_window_size_constraints), 0, 0, 1, 1}, {&__pyx_n_s_set_scroll_from_pos_x, __pyx_k_set_scroll_from_pos_x, sizeof(__pyx_k_set_scroll_from_pos_x), 0, 0, 1, 1}, {&__pyx_n_s_set_scroll_from_pos_y, __pyx_k_set_scroll_from_pos_y, sizeof(__pyx_k_set_scroll_from_pos_y), 0, 0, 1, 1}, {&__pyx_n_s_set_scroll_here_x, __pyx_k_set_scroll_here_x, sizeof(__pyx_k_set_scroll_here_x), 0, 0, 1, 1}, {&__pyx_n_s_set_scroll_here_y, __pyx_k_set_scroll_here_y, sizeof(__pyx_k_set_scroll_here_y), 0, 0, 1, 1}, {&__pyx_n_s_set_scroll_x, __pyx_k_set_scroll_x, sizeof(__pyx_k_set_scroll_x), 0, 0, 1, 1}, {&__pyx_n_s_set_scroll_y, __pyx_k_set_scroll_y, sizeof(__pyx_k_set_scroll_y), 0, 0, 1, 1}, {&__pyx_n_s_set_tab_item_closed, __pyx_k_set_tab_item_closed, sizeof(__pyx_k_set_tab_item_closed), 0, 0, 1, 1}, {&__pyx_n_s_set_tooltip, __pyx_k_set_tooltip, sizeof(__pyx_k_set_tooltip), 0, 0, 1, 1}, {&__pyx_n_s_set_window_collapsed, __pyx_k_set_window_collapsed, sizeof(__pyx_k_set_window_collapsed), 0, 0, 1, 1}, {&__pyx_n_s_set_window_collapsed_labeled, __pyx_k_set_window_collapsed_labeled, sizeof(__pyx_k_set_window_collapsed_labeled), 0, 0, 1, 1}, {&__pyx_n_s_set_window_focus, __pyx_k_set_window_focus, sizeof(__pyx_k_set_window_focus), 0, 0, 1, 1}, {&__pyx_n_s_set_window_focus_labeled, __pyx_k_set_window_focus_labeled, sizeof(__pyx_k_set_window_focus_labeled), 0, 0, 1, 1}, {&__pyx_n_s_set_window_font_scale, __pyx_k_set_window_font_scale, sizeof(__pyx_k_set_window_font_scale), 0, 0, 1, 1}, {&__pyx_n_s_set_window_position, __pyx_k_set_window_position, sizeof(__pyx_k_set_window_position), 0, 0, 1, 1}, {&__pyx_n_s_set_window_position_labeled, __pyx_k_set_window_position_labeled, sizeof(__pyx_k_set_window_position_labeled), 0, 0, 1, 1}, {&__pyx_n_s_set_window_size, __pyx_k_set_window_size, sizeof(__pyx_k_set_window_size), 0, 0, 1, 1}, {&__pyx_n_s_set_window_size_named, __pyx_k_set_window_size_named, sizeof(__pyx_k_set_window_size_named), 0, 0, 1, 1}, {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1}, {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_shape, __pyx_k_shape, sizeof(__pyx_k_shape), 0, 0, 1, 1}, {&__pyx_n_s_shared_font_atlas, __pyx_k_shared_font_atlas, sizeof(__pyx_k_shared_font_atlas), 0, 0, 1, 1}, {&__pyx_n_s_shortcut, __pyx_k_shortcut, sizeof(__pyx_k_shortcut), 0, 0, 1, 1}, {&__pyx_n_s_show_about_window, __pyx_k_show_about_window, sizeof(__pyx_k_show_about_window), 0, 0, 1, 1}, {&__pyx_n_s_show_demo_window, __pyx_k_show_demo_window, sizeof(__pyx_k_show_demo_window), 0, 0, 1, 1}, {&__pyx_n_s_show_font_selector, __pyx_k_show_font_selector, sizeof(__pyx_k_show_font_selector), 0, 0, 1, 1}, {&__pyx_n_s_show_metrics_window, __pyx_k_show_metrics_window, sizeof(__pyx_k_show_metrics_window), 0, 0, 1, 1}, {&__pyx_n_s_show_style_editor, __pyx_k_show_style_editor, sizeof(__pyx_k_show_style_editor), 0, 0, 1, 1}, {&__pyx_n_s_show_style_selector, __pyx_k_show_style_selector, sizeof(__pyx_k_show_style_selector), 0, 0, 1, 1}, {&__pyx_n_s_show_test_window, __pyx_k_show_test_window, sizeof(__pyx_k_show_test_window), 0, 0, 1, 1}, {&__pyx_n_s_show_user_guide, __pyx_k_show_user_guide, sizeof(__pyx_k_show_user_guide), 0, 0, 1, 1}, {&__pyx_n_s_signatures, __pyx_k_signatures, sizeof(__pyx_k_signatures), 0, 0, 1, 1}, {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1}, {&__pyx_n_s_size_height, __pyx_k_size_height, sizeof(__pyx_k_size_height), 0, 0, 1, 1}, {&__pyx_n_s_size_max, __pyx_k_size_max, sizeof(__pyx_k_size_max), 0, 0, 1, 1}, {&__pyx_n_s_size_min, __pyx_k_size_min, sizeof(__pyx_k_size_min), 0, 0, 1, 1}, {&__pyx_n_s_size_pixels, __pyx_k_size_pixels, sizeof(__pyx_k_size_pixels), 0, 0, 1, 1}, {&__pyx_n_s_size_width, __pyx_k_size_width, sizeof(__pyx_k_size_width), 0, 0, 1, 1}, {&__pyx_n_s_slider_angle, __pyx_k_slider_angle, sizeof(__pyx_k_slider_angle), 0, 0, 1, 1}, {&__pyx_n_s_slider_float, __pyx_k_slider_float, sizeof(__pyx_k_slider_float), 0, 0, 1, 1}, {&__pyx_n_s_slider_float2, __pyx_k_slider_float2, sizeof(__pyx_k_slider_float2), 0, 0, 1, 1}, {&__pyx_n_s_slider_float3, __pyx_k_slider_float3, sizeof(__pyx_k_slider_float3), 0, 0, 1, 1}, {&__pyx_n_s_slider_float4, __pyx_k_slider_float4, sizeof(__pyx_k_slider_float4), 0, 0, 1, 1}, {&__pyx_n_s_slider_int, __pyx_k_slider_int, sizeof(__pyx_k_slider_int), 0, 0, 1, 1}, {&__pyx_n_s_slider_int2, __pyx_k_slider_int2, sizeof(__pyx_k_slider_int2), 0, 0, 1, 1}, {&__pyx_n_s_slider_int3, __pyx_k_slider_int3, sizeof(__pyx_k_slider_int3), 0, 0, 1, 1}, {&__pyx_n_s_slider_int4, __pyx_k_slider_int4, sizeof(__pyx_k_slider_int4), 0, 0, 1, 1}, {&__pyx_n_s_slider_scalar, __pyx_k_slider_scalar, sizeof(__pyx_k_slider_scalar), 0, 0, 1, 1}, {&__pyx_n_s_slider_scalar_N, __pyx_k_slider_scalar_N, sizeof(__pyx_k_slider_scalar_N), 0, 0, 1, 1}, {&__pyx_n_s_small_button, __pyx_k_small_button, sizeof(__pyx_k_small_button), 0, 0, 1, 1}, {&__pyx_n_s_spacing, __pyx_k_spacing, sizeof(__pyx_k_spacing), 0, 0, 1, 1}, {&__pyx_n_s_speed, __pyx_k_speed, sizeof(__pyx_k_speed), 0, 0, 1, 1}, {&__pyx_n_s_split, __pyx_k_split, sizeof(__pyx_k_split), 0, 0, 1, 1}, {&__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1}, {&__pyx_n_s_start_x, __pyx_k_start_x, sizeof(__pyx_k_start_x), 0, 0, 1, 1}, {&__pyx_n_s_start_y, __pyx_k_start_y, sizeof(__pyx_k_start_y), 0, 0, 1, 1}, {&__pyx_n_s_state, __pyx_k_state, sizeof(__pyx_k_state), 0, 0, 1, 1}, {&__pyx_n_s_staticmethod, __pyx_k_staticmethod, sizeof(__pyx_k_staticmethod), 0, 0, 1, 1}, {&__pyx_n_s_step, __pyx_k_step, sizeof(__pyx_k_step), 0, 0, 1, 1}, {&__pyx_n_s_step_fast, __pyx_k_step_fast, sizeof(__pyx_k_step_fast), 0, 0, 1, 1}, {&__pyx_n_s_stop, __pyx_k_stop, sizeof(__pyx_k_stop), 0, 0, 1, 1}, {&__pyx_n_s_str, __pyx_k_str, sizeof(__pyx_k_str), 0, 0, 1, 1}, {&__pyx_n_s_str_id, __pyx_k_str_id, sizeof(__pyx_k_str_id), 0, 0, 1, 1}, {&__pyx_n_s_stride, __pyx_k_stride, sizeof(__pyx_k_stride), 0, 0, 1, 1}, {&__pyx_kp_s_strided_and_direct, __pyx_k_strided_and_direct, sizeof(__pyx_k_strided_and_direct), 0, 0, 1, 0}, {&__pyx_kp_s_strided_and_direct_or_indirect, __pyx_k_strided_and_direct_or_indirect, sizeof(__pyx_k_strided_and_direct_or_indirect), 0, 0, 1, 0}, {&__pyx_kp_s_strided_and_indirect, __pyx_k_strided_and_indirect, sizeof(__pyx_k_strided_and_indirect), 0, 0, 1, 0}, {&__pyx_kp_s_stringsource, __pyx_k_stringsource, sizeof(__pyx_k_stringsource), 0, 0, 1, 0}, {&__pyx_n_s_strip, __pyx_k_strip, sizeof(__pyx_k_strip), 0, 0, 1, 1}, {&__pyx_n_s_struct, __pyx_k_struct, sizeof(__pyx_k_struct), 0, 0, 1, 1}, {&__pyx_n_s_style, __pyx_k_style, sizeof(__pyx_k_style), 0, 0, 1, 1}, {&__pyx_n_s_style_colors_classic, __pyx_k_style_colors_classic, sizeof(__pyx_k_style_colors_classic), 0, 0, 1, 1}, {&__pyx_n_s_style_colors_dark, __pyx_k_style_colors_dark, sizeof(__pyx_k_style_colors_dark), 0, 0, 1, 1}, {&__pyx_n_s_style_colors_light, __pyx_k_style_colors_light, sizeof(__pyx_k_style_colors_light), 0, 0, 1, 1}, {&__pyx_n_s_tab_item_button, __pyx_k_tab_item_button, sizeof(__pyx_k_tab_item_button), 0, 0, 1, 1}, {&__pyx_n_s_tab_or_docked_window_label, __pyx_k_tab_or_docked_window_label, sizeof(__pyx_k_tab_or_docked_window_label), 0, 0, 1, 1}, {&__pyx_n_s_table_get_column_count, __pyx_k_table_get_column_count, sizeof(__pyx_k_table_get_column_count), 0, 0, 1, 1}, {&__pyx_n_s_table_get_column_flags, __pyx_k_table_get_column_flags, sizeof(__pyx_k_table_get_column_flags), 0, 0, 1, 1}, {&__pyx_n_s_table_get_column_index, __pyx_k_table_get_column_index, sizeof(__pyx_k_table_get_column_index), 0, 0, 1, 1}, {&__pyx_n_s_table_get_column_name, __pyx_k_table_get_column_name, sizeof(__pyx_k_table_get_column_name), 0, 0, 1, 1}, {&__pyx_n_s_table_get_row_index, __pyx_k_table_get_row_index, sizeof(__pyx_k_table_get_row_index), 0, 0, 1, 1}, {&__pyx_n_s_table_get_sort_specs, __pyx_k_table_get_sort_specs, sizeof(__pyx_k_table_get_sort_specs), 0, 0, 1, 1}, {&__pyx_n_s_table_header, __pyx_k_table_header, sizeof(__pyx_k_table_header), 0, 0, 1, 1}, {&__pyx_n_s_table_headers_row, __pyx_k_table_headers_row, sizeof(__pyx_k_table_headers_row), 0, 0, 1, 1}, {&__pyx_n_s_table_next_column, __pyx_k_table_next_column, sizeof(__pyx_k_table_next_column), 0, 0, 1, 1}, {&__pyx_n_s_table_next_row, __pyx_k_table_next_row, sizeof(__pyx_k_table_next_row), 0, 0, 1, 1}, {&__pyx_n_s_table_set_background_color, __pyx_k_table_set_background_color, sizeof(__pyx_k_table_set_background_color), 0, 0, 1, 1}, {&__pyx_n_s_table_set_column_index, __pyx_k_table_set_column_index, sizeof(__pyx_k_table_set_column_index), 0, 0, 1, 1}, {&__pyx_n_s_table_setup_column, __pyx_k_table_setup_column, sizeof(__pyx_k_table_setup_column), 0, 0, 1, 1}, {&__pyx_n_s_table_setup_scroll_freeze, __pyx_k_table_setup_scroll_freeze, sizeof(__pyx_k_table_setup_scroll_freeze), 0, 0, 1, 1}, {&__pyx_n_s_target, __pyx_k_target, sizeof(__pyx_k_target), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_text, __pyx_k_text, sizeof(__pyx_k_text), 0, 0, 1, 1}, {&__pyx_n_s_text_colored, __pyx_k_text_colored, sizeof(__pyx_k_text_colored), 0, 0, 1, 1}, {&__pyx_n_s_text_disabled, __pyx_k_text_disabled, sizeof(__pyx_k_text_disabled), 0, 0, 1, 1}, {&__pyx_n_s_text_input_buffer, __pyx_k_text_input_buffer, sizeof(__pyx_k_text_input_buffer), 0, 0, 1, 1}, {&__pyx_n_s_text_input_buffer_size, __pyx_k_text_input_buffer_size, sizeof(__pyx_k_text_input_buffer_size), 0, 0, 1, 1}, {&__pyx_n_s_text_unformatted, __pyx_k_text_unformatted, sizeof(__pyx_k_text_unformatted), 0, 0, 1, 1}, {&__pyx_n_s_text_wrapped, __pyx_k_text_wrapped, sizeof(__pyx_k_text_wrapped), 0, 0, 1, 1}, {&__pyx_n_s_texture_id, __pyx_k_texture_id, sizeof(__pyx_k_texture_id), 0, 0, 1, 1}, {&__pyx_n_s_thickness, __pyx_k_thickness, sizeof(__pyx_k_thickness), 0, 0, 1, 1}, {&__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1}, {&__pyx_n_s_tint_color, __pyx_k_tint_color, sizeof(__pyx_k_tint_color), 0, 0, 1, 1}, {&__pyx_n_s_title, __pyx_k_title, sizeof(__pyx_k_title), 0, 0, 1, 1}, {&__pyx_n_s_tree_node, __pyx_k_tree_node, sizeof(__pyx_k_tree_node), 0, 0, 1, 1}, {&__pyx_n_s_tree_pop, __pyx_k_tree_pop, sizeof(__pyx_k_tree_pop), 0, 0, 1, 1}, {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1}, {&__pyx_n_s_u, __pyx_k_u, sizeof(__pyx_k_u), 0, 0, 1, 1}, {&__pyx_kp_s_unable_to_allocate_array_data, __pyx_k_unable_to_allocate_array_data, sizeof(__pyx_k_unable_to_allocate_array_data), 0, 0, 1, 0}, {&__pyx_kp_s_unable_to_allocate_shape_and_str, __pyx_k_unable_to_allocate_shape_and_str, sizeof(__pyx_k_unable_to_allocate_shape_and_str), 0, 0, 1, 0}, {&__pyx_n_s_unindent, __pyx_k_unindent, sizeof(__pyx_k_unindent), 0, 0, 1, 1}, {&__pyx_n_s_unpack, __pyx_k_unpack, sizeof(__pyx_k_unpack), 0, 0, 1, 1}, {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1}, {&__pyx_n_s_upper_left_x, __pyx_k_upper_left_x, sizeof(__pyx_k_upper_left_x), 0, 0, 1, 1}, {&__pyx_n_s_upper_left_y, __pyx_k_upper_left_y, sizeof(__pyx_k_upper_left_y), 0, 0, 1, 1}, {&__pyx_n_s_user_data, __pyx_k_user_data, sizeof(__pyx_k_user_data), 0, 0, 1, 1}, {&__pyx_n_s_user_data_2, __pyx_k_user_data_2, sizeof(__pyx_k_user_data_2), 0, 0, 1, 1}, {&__pyx_n_s_user_id, __pyx_k_user_id, sizeof(__pyx_k_user_id), 0, 0, 1, 1}, {&__pyx_n_s_user_info, __pyx_k_user_info, sizeof(__pyx_k_user_info), 0, 0, 1, 1}, {&__pyx_kp_s_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 0, 1, 0}, {&__pyx_n_s_uv0, __pyx_k_uv0, sizeof(__pyx_k_uv0), 0, 0, 1, 1}, {&__pyx_n_s_uv1, __pyx_k_uv1, sizeof(__pyx_k_uv1), 0, 0, 1, 1}, {&__pyx_n_s_uv_a, __pyx_k_uv_a, sizeof(__pyx_k_uv_a), 0, 0, 1, 1}, {&__pyx_n_s_uv_a_u, __pyx_k_uv_a_u, sizeof(__pyx_k_uv_a_u), 0, 0, 1, 1}, {&__pyx_n_s_uv_a_v, __pyx_k_uv_a_v, sizeof(__pyx_k_uv_a_v), 0, 0, 1, 1}, {&__pyx_n_s_uv_b, __pyx_k_uv_b, sizeof(__pyx_k_uv_b), 0, 0, 1, 1}, {&__pyx_n_s_uv_b_u, __pyx_k_uv_b_u, sizeof(__pyx_k_uv_b_u), 0, 0, 1, 1}, {&__pyx_n_s_uv_b_v, __pyx_k_uv_b_v, sizeof(__pyx_k_uv_b_v), 0, 0, 1, 1}, {&__pyx_n_s_uv_c_u, __pyx_k_uv_c_u, sizeof(__pyx_k_uv_c_u), 0, 0, 1, 1}, {&__pyx_n_s_uv_c_v, __pyx_k_uv_c_v, sizeof(__pyx_k_uv_c_v), 0, 0, 1, 1}, {&__pyx_n_s_uv_d_u, __pyx_k_uv_d_u, sizeof(__pyx_k_uv_d_u), 0, 0, 1, 1}, {&__pyx_n_s_uv_d_v, __pyx_k_uv_d_v, sizeof(__pyx_k_uv_d_v), 0, 0, 1, 1}, {&__pyx_n_s_v, __pyx_k_v, sizeof(__pyx_k_v), 0, 0, 1, 1}, {&__pyx_n_s_v_slider_float, __pyx_k_v_slider_float, sizeof(__pyx_k_v_slider_float), 0, 0, 1, 1}, {&__pyx_n_s_v_slider_int, __pyx_k_v_slider_int, sizeof(__pyx_k_v_slider_int), 0, 0, 1, 1}, {&__pyx_n_s_v_slider_scalar, __pyx_k_v_slider_scalar, sizeof(__pyx_k_v_slider_scalar), 0, 0, 1, 1}, {&__pyx_n_s_val, __pyx_k_val, sizeof(__pyx_k_val), 0, 0, 1, 1}, {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, {&__pyx_n_s_value0, __pyx_k_value0, sizeof(__pyx_k_value0), 0, 0, 1, 1}, {&__pyx_n_s_value1, __pyx_k_value1, sizeof(__pyx_k_value1), 0, 0, 1, 1}, {&__pyx_n_s_value2, __pyx_k_value2, sizeof(__pyx_k_value2), 0, 0, 1, 1}, {&__pyx_n_s_value3, __pyx_k_value3, sizeof(__pyx_k_value3), 0, 0, 1, 1}, {&__pyx_n_s_value_bytes, __pyx_k_value_bytes, sizeof(__pyx_k_value_bytes), 0, 0, 1, 1}, {&__pyx_n_s_value_degrees_max, __pyx_k_value_degrees_max, sizeof(__pyx_k_value_degrees_max), 0, 0, 1, 1}, {&__pyx_n_s_value_degrees_min, __pyx_k_value_degrees_min, sizeof(__pyx_k_value_degrees_min), 0, 0, 1, 1}, {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1}, {&__pyx_n_s_values_count, __pyx_k_values_count, sizeof(__pyx_k_values_count), 0, 0, 1, 1}, {&__pyx_n_s_values_offset, __pyx_k_values_offset, sizeof(__pyx_k_values_offset), 0, 0, 1, 1}, {&__pyx_n_s_var, __pyx_k_var, sizeof(__pyx_k_var), 0, 0, 1, 1}, {&__pyx_n_s_variable, __pyx_k_variable, sizeof(__pyx_k_variable), 0, 0, 1, 1}, {&__pyx_n_s_variables_and_values, __pyx_k_variables_and_values, sizeof(__pyx_k_variables_and_values), 0, 0, 1, 1}, {&__pyx_n_s_visible, __pyx_k_visible, sizeof(__pyx_k_visible), 0, 0, 1, 1}, {&__pyx_kp_s_visible_2, __pyx_k_visible_2, sizeof(__pyx_k_visible_2), 0, 0, 1, 0}, {&__pyx_n_s_vtx_count, __pyx_k_vtx_count, sizeof(__pyx_k_vtx_count), 0, 0, 1, 1}, {&__pyx_n_s_w, __pyx_k_w, sizeof(__pyx_k_w), 0, 0, 1, 1}, {&__pyx_n_s_want_capture_mouse_value, __pyx_k_want_capture_mouse_value, sizeof(__pyx_k_want_capture_mouse_value), 0, 0, 1, 1}, {&__pyx_n_s_warn, __pyx_k_warn, sizeof(__pyx_k_warn), 0, 0, 1, 1}, {&__pyx_n_s_warnings, __pyx_k_warnings, sizeof(__pyx_k_warnings), 0, 0, 1, 1}, {&__pyx_n_s_width, __pyx_k_width, sizeof(__pyx_k_width), 0, 0, 1, 1}, {&__pyx_n_s_wrap_pos_x, __pyx_k_wrap_pos_x, sizeof(__pyx_k_wrap_pos_x), 0, 0, 1, 1}, {&__pyx_n_s_wrap_width, __pyx_k_wrap_width, sizeof(__pyx_k_wrap_width), 0, 0, 1, 1}, {&__pyx_n_s_x, __pyx_k_x, sizeof(__pyx_k_x), 0, 0, 1, 1}, {&__pyx_n_s_xrange, __pyx_k_xrange, sizeof(__pyx_k_xrange), 0, 0, 1, 1}, {&__pyx_n_s_y, __pyx_k_y, sizeof(__pyx_k_y), 0, 0, 1, 1}, {&__pyx_n_s_z, __pyx_k_z, sizeof(__pyx_k_z), 0, 0, 1, 1}, {&__pyx_n_s_zip_longest, __pyx_k_zip_longest, sizeof(__pyx_k_zip_longest), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(0, 20, __pyx_L1_error) __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(0, 2132, __pyx_L1_error) __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(1, 29, __pyx_L1_error) __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(2, 2, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 1595, __pyx_L1_error) #if PY_MAJOR_VERSION >= 3 __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_xrange) __PYX_ERR(0, 2072, __pyx_L1_error) #else __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_xrange); if (!__pyx_builtin_xrange) __PYX_ERR(0, 2072, __pyx_L1_error) #endif __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0, 2124, __pyx_L1_error) __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) __PYX_ERR(0, 2694, __pyx_L1_error) __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 2902, __pyx_L1_error) __pyx_builtin_chr = __Pyx_GetBuiltinName(__pyx_n_s_chr); if (!__pyx_builtin_chr) __PYX_ERR(0, 3726, __pyx_L1_error) __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(2, 149, __pyx_L1_error) __pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(2, 406, __pyx_L1_error) __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(2, 615, __pyx_L1_error) __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(2, 834, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "imgui/common.pyx":18 * * cdef str _from_bytes(bytes text): * return (text if PY_MAJOR_VERSION < 3 else text.decode('utf-8', errors='ignore')) # <<<<<<<<<<<<<< * * */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_utf_8); if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "imgui/common.pyx":29 * * if len(pair) != 2: * raise ValueError("pair param must be length of 2") # <<<<<<<<<<<<<< * * vec.x, vec.y = pair */ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_pair_param_must_be_length_of_2); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "imgui/common.pyx":48 * * if len(quadruple) != 4: * raise ValueError("quadruple param must be length of 4") # <<<<<<<<<<<<<< * * vec.x, vec.y, vec.z, vec.w = quadruple */ __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_quadruple_param_must_be_length_o); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(1, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); /* "imgui/core.pyx":1455 * tuple a, * tuple b, * tuple uv_a=(0,0), # <<<<<<<<<<<<<< * tuple uv_b=(1,1), * cimgui.ImU32 col=0xffffffff): */ __pyx_tuple__8 = PyTuple_Pack(2, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 1455, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); /* "imgui/core.pyx":1456 * tuple b, * tuple uv_a=(0,0), * tuple uv_b=(1,1), # <<<<<<<<<<<<<< * cimgui.ImU32 col=0xffffffff): * """Add image to the draw list. Aspect ratio is not preserved. */ __pyx_tuple__9 = PyTuple_Pack(2, __pyx_int_1, __pyx_int_1); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 1456, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); /* "imgui/core.pyx":2124 * cdef inline _check_ptr(self): * if self._ptr is NULL: * raise RuntimeError( # <<<<<<<<<<<<<< * "Improperly initialized, use imgui.get_style() or " * "GuiStyle.created() to obtain style classes" */ __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_Improperly_initialized_use_imgui); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 2124, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__17); __Pyx_GIVEREF(__pyx_tuple__17); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__19); __Pyx_GIVEREF(__pyx_tuple__19); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__23 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_self_ranges_ptr_cannot_be_conver); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); /* "(tree fragment)":4 * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_self_ranges_ptr_cannot_be_conver); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__28); __Pyx_GIVEREF(__pyx_tuple__28); /* "imgui/core.pyx":2899 * range_list = list(glyph_ranges) * if len(range_list) % 2 != 1 or range_list[-1] != 0: * raise RuntimeError('glyph_ranges must be pairs of integers (inclusive range) followed by a zero') # <<<<<<<<<<<<<< * arr = malloc(sizeof(cimgui.ImWchar) * len(range_list)) * self.ranges_ptr = arr */ __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_glyph_ranges_must_be_pairs_of_in); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 2899, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__29); __Pyx_GIVEREF(__pyx_tuple__29); /* "imgui/core.pyx":2905 * i_value = int(value) * if i_value < 0: * raise RuntimeError('glyph_ranges cannot contain negative values') # <<<<<<<<<<<<<< * arr[i] = i_value * */ __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_glyph_ranges_cannot_contain_nega); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 2905, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_self_ranges_ptr_cannot_be_conver); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); /* "(tree fragment)":4 * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.ranges_ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_self_ranges_ptr_cannot_be_conver); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__32); __Pyx_GIVEREF(__pyx_tuple__32); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self.config cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.config cannot be converted to a Python object for pickling") */ __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_self_config_cannot_be_converted); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__33); __Pyx_GIVEREF(__pyx_tuple__33); /* "(tree fragment)":4 * raise TypeError("self.config cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self.config cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_self_config_cannot_be_converted); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__34); __Pyx_GIVEREF(__pyx_tuple__34); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__35); __Pyx_GIVEREF(__pyx_tuple__35); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__36); __Pyx_GIVEREF(__pyx_tuple__36); /* "imgui/core.pyx":3035 * p_glyph_ranges = (glyph_ranges).ranges_ptr * else: * raise RuntimeError('glyph_ranges: invalid type') # <<<<<<<<<<<<<< * * cdef cimgui.ImFontConfig config */ __pyx_tuple__37 = PyTuple_Pack(1, __pyx_kp_s_glyph_ranges_invalid_type); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 3035, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__37); __Pyx_GIVEREF(__pyx_tuple__37); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__38 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__38); __Pyx_GIVEREF(__pyx_tuple__38); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__39 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__39); __Pyx_GIVEREF(__pyx_tuple__39); /* "imgui/core.pyx":3446 * # todo: modified in place * cdef cvarray mouse_down = cvarray( * shape=(5,), # <<<<<<<<<<<<<< * format='b', * itemsize=sizeof(bool), */ __pyx_tuple__41 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 3446, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__41); __Pyx_GIVEREF(__pyx_tuple__41); /* "imgui/core.pyx":3515 * # todo: modified in place * cdef cvarray keys_down = cvarray( * shape=(512,), # <<<<<<<<<<<<<< * format='b', * itemsize=sizeof(bool), */ __pyx_tuple__42 = PyTuple_Pack(1, __pyx_int_512); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 3515, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__42); __Pyx_GIVEREF(__pyx_tuple__42); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__43); __Pyx_GIVEREF(__pyx_tuple__43); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__44 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__44); __Pyx_GIVEREF(__pyx_tuple__44); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__45); __Pyx_GIVEREF(__pyx_tuple__45); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__46); __Pyx_GIVEREF(__pyx_tuple__46); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__47); __Pyx_GIVEREF(__pyx_tuple__47); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__48); __Pyx_GIVEREF(__pyx_tuple__48); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__49); __Pyx_GIVEREF(__pyx_tuple__49); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__50); __Pyx_GIVEREF(__pyx_tuple__50); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") */ __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__51); __Pyx_GIVEREF(__pyx_tuple__51); /* "(tree fragment)":4 * raise TypeError("self._ptr cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._ptr cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_self__ptr_cannot_be_converted_to); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__52); __Pyx_GIVEREF(__pyx_tuple__52); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__53); __Pyx_GIVEREF(__pyx_tuple__53); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__54); __Pyx_GIVEREF(__pyx_tuple__54); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__55 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__55); __Pyx_GIVEREF(__pyx_tuple__55); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__56 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__56); __Pyx_GIVEREF(__pyx_tuple__56); /* "imgui/core.pyx":4289 * * * def begin_child( # <<<<<<<<<<<<<< * child_id label, float width = 0, float height = 0, bool border = False, * cimgui.ImGuiWindowFlags flags = 0 */ __pyx_tuple__62 = PyTuple_Pack(1, __pyx_kp_s_No_matching_signature_found); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__62); __Pyx_GIVEREF(__pyx_tuple__62); __pyx_tuple__63 = PyTuple_Pack(1, __pyx_kp_s_Function_call_with_ambiguous_arg); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__63); __Pyx_GIVEREF(__pyx_tuple__63); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__73 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__73); __Pyx_GIVEREF(__pyx_tuple__73); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__74 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__74); __Pyx_GIVEREF(__pyx_tuple__74); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__76 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__76); __Pyx_GIVEREF(__pyx_tuple__76); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__77 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__77); __Pyx_GIVEREF(__pyx_tuple__77); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__78 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__78); __Pyx_GIVEREF(__pyx_tuple__78); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__79 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__79); __Pyx_GIVEREF(__pyx_tuple__79); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__80 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__80); __Pyx_GIVEREF(__pyx_tuple__80); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__81 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__81); __Pyx_GIVEREF(__pyx_tuple__81); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__82 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__82); __Pyx_GIVEREF(__pyx_tuple__82); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__83 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__83); __Pyx_GIVEREF(__pyx_tuple__83); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__84 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__84); __Pyx_GIVEREF(__pyx_tuple__84); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__85 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__85); __Pyx_GIVEREF(__pyx_tuple__85); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__86 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__86); __Pyx_GIVEREF(__pyx_tuple__86); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__87 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__87); __Pyx_GIVEREF(__pyx_tuple__87); /* "imgui/core.pyx":6940 * """ * if direction == DIRECTION_NONE: * raise ValueError("Direction wasn't specified.") # <<<<<<<<<<<<<< * return cimgui.ArrowButton(_bytes(label), direction) * */ __pyx_tuple__89 = PyTuple_Pack(1, __pyx_kp_s_Direction_wasn_t_specified); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 6940, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__89); __Pyx_GIVEREF(__pyx_tuple__89); /* "imgui/core.pyx":7028 * tuple uv0=(0, 0), * tuple uv1=(1, 1), * tuple tint_color=(1, 1, 1, 1), # <<<<<<<<<<<<<< * tuple border_color=(0, 0, 0, 0), * int frame_padding=-1, */ __pyx_tuple__90 = PyTuple_Pack(4, __pyx_int_1, __pyx_int_1, __pyx_int_1, __pyx_int_1); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(0, 7028, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__90); __Pyx_GIVEREF(__pyx_tuple__90); /* "imgui/core.pyx":7029 * tuple uv1=(1, 1), * tuple tint_color=(1, 1, 1, 1), * tuple border_color=(0, 0, 0, 0), # <<<<<<<<<<<<<< * int frame_padding=-1, * ): */ __pyx_tuple__91 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 7029, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__91); __Pyx_GIVEREF(__pyx_tuple__91); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__92 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__92); __Pyx_GIVEREF(__pyx_tuple__92); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__93 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__93); __Pyx_GIVEREF(__pyx_tuple__93); /* "imgui/core.pyx":11098 * cimgui.PushStyleVar(variable, (float(value))) * except ValueError: * raise ValueError( # <<<<<<<<<<<<<< * "Style value must be float or two-elements list/tuple" * ) */ __pyx_tuple__103 = PyTuple_Pack(1, __pyx_kp_s_Style_value_must_be_float_or_two); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 11098, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__103); __Pyx_GIVEREF(__pyx_tuple__103); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__104 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__104); __Pyx_GIVEREF(__pyx_tuple__104); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__105 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__105); __Pyx_GIVEREF(__pyx_tuple__105); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__106 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__106); __Pyx_GIVEREF(__pyx_tuple__106); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__107 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__107); __Pyx_GIVEREF(__pyx_tuple__107); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__108 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__108); __Pyx_GIVEREF(__pyx_tuple__108); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__109 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__109); __Pyx_GIVEREF(__pyx_tuple__109); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__110 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__110); __Pyx_GIVEREF(__pyx_tuple__110); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__111 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__111); __Pyx_GIVEREF(__pyx_tuple__111); /* "imgui/core.pyx":12579 * * else: * raise RuntimeError("Context invalid (None or destroyed)") # <<<<<<<<<<<<<< * * */ __pyx_tuple__112 = PyTuple_Pack(1, __pyx_kp_s_Context_invalid_None_or_destroye); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 12579, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__112); __Pyx_GIVEREF(__pyx_tuple__112); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd41d8cd, 0xe3b0c44, 0xda39a3e): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError("Incompatible checksums (0x%x vs (0xd41d8cd, 0xe3b0c44, 0xda39a3e) = ())" % __pyx_checksum) */ __pyx_tuple__118 = PyTuple_Pack(3, __pyx_int_222419149, __pyx_int_238750788, __pyx_int_228825662); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__118); __Pyx_GIVEREF(__pyx_tuple__118); /* "View.MemoryView":134 * * if not self.ndim: * raise ValueError("Empty shape tuple for cython.array") # <<<<<<<<<<<<<< * * if itemsize <= 0: */ __pyx_tuple__119 = PyTuple_Pack(1, __pyx_kp_s_Empty_shape_tuple_for_cython_arr); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(2, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__119); __Pyx_GIVEREF(__pyx_tuple__119); /* "View.MemoryView":137 * * if itemsize <= 0: * raise ValueError("itemsize <= 0 for cython.array") # <<<<<<<<<<<<<< * * if not isinstance(format, bytes): */ __pyx_tuple__120 = PyTuple_Pack(1, __pyx_kp_s_itemsize_0_for_cython_array); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(2, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__120); __Pyx_GIVEREF(__pyx_tuple__120); /* "View.MemoryView":149 * * if not self._shape: * raise MemoryError("unable to allocate shape and strides.") # <<<<<<<<<<<<<< * * */ __pyx_tuple__121 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_shape_and_str); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(2, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__121); __Pyx_GIVEREF(__pyx_tuple__121); /* "View.MemoryView":177 * self.data = malloc(self.len) * if not self.data: * raise MemoryError("unable to allocate array data.") # <<<<<<<<<<<<<< * * if self.dtype_is_object: */ __pyx_tuple__122 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_array_data); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(2, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__122); __Pyx_GIVEREF(__pyx_tuple__122); /* "View.MemoryView":193 * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS * if not (flags & bufmode): * raise ValueError("Can only create a buffer that is contiguous in memory.") # <<<<<<<<<<<<<< * info.buf = self.data * info.len = self.len */ __pyx_tuple__123 = PyTuple_Pack(1, __pyx_kp_s_Can_only_create_a_buffer_that_is); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(2, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__123); __Pyx_GIVEREF(__pyx_tuple__123); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__124 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__124); __Pyx_GIVEREF(__pyx_tuple__124); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__125 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__125); __Pyx_GIVEREF(__pyx_tuple__125); /* "View.MemoryView":420 * def __setitem__(memoryview self, object index, object value): * if self.view.readonly: * raise TypeError("Cannot assign to read-only memoryview") # <<<<<<<<<<<<<< * * have_slices, index = _unellipsify(index, self.view.ndim) */ __pyx_tuple__126 = PyTuple_Pack(1, __pyx_kp_s_Cannot_assign_to_read_only_memor); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(2, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__126); __Pyx_GIVEREF(__pyx_tuple__126); /* "View.MemoryView":497 * result = struct.unpack(self.view.format, bytesitem) * except struct.error: * raise ValueError("Unable to convert item to object") # <<<<<<<<<<<<<< * else: * if len(self.view.format) == 1: */ __pyx_tuple__127 = PyTuple_Pack(1, __pyx_kp_s_Unable_to_convert_item_to_object); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(2, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__127); __Pyx_GIVEREF(__pyx_tuple__127); /* "View.MemoryView":522 * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: * raise ValueError("Cannot create writable memory view from read-only memoryview") # <<<<<<<<<<<<<< * * if flags & PyBUF_ND: */ __pyx_tuple__128 = PyTuple_Pack(1, __pyx_kp_s_Cannot_create_writable_memory_vi); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(2, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__128); __Pyx_GIVEREF(__pyx_tuple__128); /* "View.MemoryView":572 * if self.view.strides == NULL: * * raise ValueError("Buffer view does not expose strides") # <<<<<<<<<<<<<< * * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) */ __pyx_tuple__129 = PyTuple_Pack(1, __pyx_kp_s_Buffer_view_does_not_expose_stri); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(2, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__129); __Pyx_GIVEREF(__pyx_tuple__129); /* "View.MemoryView":579 * def suboffsets(self): * if self.view.suboffsets == NULL: * return (-1,) * self.view.ndim # <<<<<<<<<<<<<< * * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) */ __pyx_tuple__130 = PyTuple_New(1); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(2, 579, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__130); __Pyx_INCREF(__pyx_int_neg_1); __Pyx_GIVEREF(__pyx_int_neg_1); PyTuple_SET_ITEM(__pyx_tuple__130, 0, __pyx_int_neg_1); __Pyx_GIVEREF(__pyx_tuple__130); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__131 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__131); __Pyx_GIVEREF(__pyx_tuple__131); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__132 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__132); __Pyx_GIVEREF(__pyx_tuple__132); /* "View.MemoryView":684 * if item is Ellipsis: * if not seen_ellipsis: * result.extend([slice(None)] * (ndim - len(tup) + 1)) # <<<<<<<<<<<<<< * seen_ellipsis = True * else: */ __pyx_slice__133 = PySlice_New(Py_None, Py_None, Py_None); if (unlikely(!__pyx_slice__133)) __PYX_ERR(2, 684, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__133); __Pyx_GIVEREF(__pyx_slice__133); /* "View.MemoryView":705 * for suboffset in suboffsets[:ndim]: * if suboffset >= 0: * raise ValueError("Indirect dimensions not supported") # <<<<<<<<<<<<<< * * */ __pyx_tuple__134 = PyTuple_Pack(1, __pyx_kp_s_Indirect_dimensions_not_supporte); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(2, 705, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__134); __Pyx_GIVEREF(__pyx_tuple__134); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__135 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(2, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__135); __Pyx_GIVEREF(__pyx_tuple__135); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__136 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__136); __Pyx_GIVEREF(__pyx_tuple__136); __pyx_tuple__137 = PyTuple_Pack(3, __pyx_int_184977713, __pyx_int_136983863, __pyx_int_112105877); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__137); __Pyx_GIVEREF(__pyx_tuple__137); /* "imgui/core.pyx":2133 * * @staticmethod * def create(): # <<<<<<<<<<<<<< * return GuiStyle._create() * */ __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_create, 2133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(0, 2133, __pyx_L1_error) /* "imgui/core.pyx":3884 * * _io_clipboard = {} * def get_io(): # <<<<<<<<<<<<<< * return _IO() * */ __pyx_codeobj__139 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_io, 3884, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__139)) __PYX_ERR(0, 3884, __pyx_L1_error) /* "imgui/core.pyx":3887 * return _IO() * * def get_style(): # <<<<<<<<<<<<<< * return GuiStyle.from_ref(cimgui.GetStyle()) * */ __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_style, 3887, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(0, 3887, __pyx_L1_error) /* "imgui/core.pyx":3891 * * * def new_frame(): # <<<<<<<<<<<<<< * """Start a new frame. * */ __pyx_codeobj__141 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_new_frame, 3891, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__141)) __PYX_ERR(0, 3891, __pyx_L1_error) /* "imgui/core.pyx":3904 * * * def end_frame(): # <<<<<<<<<<<<<< * """End a frame. * */ __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_frame, 3904, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(0, 3904, __pyx_L1_error) /* "imgui/core.pyx":3919 * * * def render(): # <<<<<<<<<<<<<< * """Finalize frame, set rendering data, and run render callback (if set). * */ __pyx_codeobj__143 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_render, 3919, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__143)) __PYX_ERR(0, 3919, __pyx_L1_error) /* "imgui/core.pyx":3928 * * * def show_user_guide(): # <<<<<<<<<<<<<< * """Show ImGui user guide editor. * */ __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_show_user_guide, 3928, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(0, 3928, __pyx_L1_error) /* "imgui/core.pyx":3947 * * * def get_version(): # <<<<<<<<<<<<<< * """Get the version of Dear ImGui. * */ __pyx_tuple__145 = PyTuple_Pack(2, __pyx_n_s_c_string, __pyx_n_s_py_string); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 3947, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__145); __Pyx_GIVEREF(__pyx_tuple__145); __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_version, 3947, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 3947, __pyx_L1_error) /* "imgui/core.pyx":3958 * * * def style_colors_dark(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Dark. * */ __pyx_tuple__147 = PyTuple_Pack(1, __pyx_n_s_dst); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 3958, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__147); __Pyx_GIVEREF(__pyx_tuple__147); __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_style_colors_dark, 3958, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(0, 3958, __pyx_L1_error) /* "imgui/core.pyx":3972 * * * def style_colors_classic(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Classic. * */ __pyx_tuple__149 = PyTuple_Pack(1, __pyx_n_s_dst); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 3972, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__149); __Pyx_GIVEREF(__pyx_tuple__149); __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_style_colors_classic, 3972, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(0, 3972, __pyx_L1_error) /* "imgui/core.pyx":3987 * * * def style_colors_light(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Light. * */ __pyx_tuple__151 = PyTuple_Pack(1, __pyx_n_s_dst); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 3987, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__151); __Pyx_GIVEREF(__pyx_tuple__151); __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_style_colors_light, 3987, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(0, 3987, __pyx_L1_error) /* "imgui/core.pyx":4001 * * * def show_style_editor(GuiStyle style=None): # <<<<<<<<<<<<<< * """Show ImGui style editor. * */ __pyx_tuple__153 = PyTuple_Pack(1, __pyx_n_s_style); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 4001, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__153); __Pyx_GIVEREF(__pyx_tuple__153); __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_show_style_editor, 4001, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(0, 4001, __pyx_L1_error) /* "imgui/core.pyx":4025 * * * def show_demo_window(closable=False): # <<<<<<<<<<<<<< * """Show ImGui demo window. * */ __pyx_tuple__155 = PyTuple_Pack(2, __pyx_n_s_closable, __pyx_n_s_opened); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 4025, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__155); __Pyx_GIVEREF(__pyx_tuple__155); __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_show_demo_window, 4025, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(0, 4025, __pyx_L1_error) /* "imgui/core.pyx":4053 * return opened * * def show_about_window(closable=False): # <<<<<<<<<<<<<< * """ Create About window. * Display Dear ImGui version, credits and build/system information. */ __pyx_tuple__157 = PyTuple_Pack(2, __pyx_n_s_closable, __pyx_n_s_opened); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 4053, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__157); __Pyx_GIVEREF(__pyx_tuple__157); __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_show_about_window, 4053, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(0, 4053, __pyx_L1_error) /* "imgui/core.pyx":4076 * * * def show_test_window(): # <<<<<<<<<<<<<< * """Show ImGui demo window. * */ __pyx_codeobj__159 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_show_test_window, 4076, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__159)) __PYX_ERR(0, 4076, __pyx_L1_error) /* "imgui/core.pyx":4093 * * * def show_metrics_window(closable=False): # <<<<<<<<<<<<<< * """Show ImGui metrics window. * */ __pyx_tuple__160 = PyTuple_Pack(2, __pyx_n_s_closable, __pyx_n_s_opened); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(0, 4093, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__160); __Pyx_GIVEREF(__pyx_tuple__160); __pyx_codeobj__161 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__160, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_show_metrics_window, 4093, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__161)) __PYX_ERR(0, 4093, __pyx_L1_error) /* "imgui/core.pyx":4122 * * * def show_style_selector(str label): # <<<<<<<<<<<<<< * return cimgui.ShowStyleSelector(_bytes(label)) * */ __pyx_tuple__162 = PyTuple_Pack(1, __pyx_n_s_label); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(0, 4122, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__162); __Pyx_GIVEREF(__pyx_tuple__162); __pyx_codeobj__163 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__162, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_show_style_selector, 4122, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__163)) __PYX_ERR(0, 4122, __pyx_L1_error) /* "imgui/core.pyx":4126 * * * def show_font_selector(str label): # <<<<<<<<<<<<<< * cimgui.ShowFontSelector(_bytes(label)) * */ __pyx_tuple__164 = PyTuple_Pack(1, __pyx_n_s_label); if (unlikely(!__pyx_tuple__164)) __PYX_ERR(0, 4126, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__164); __Pyx_GIVEREF(__pyx_tuple__164); __pyx_codeobj__165 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__164, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_show_font_selector, 4126, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__165)) __PYX_ERR(0, 4126, __pyx_L1_error) /* "imgui/core.pyx":4176 * * * def begin(str label, closable=False, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Begin a window. * */ __pyx_tuple__166 = PyTuple_Pack(4, __pyx_n_s_label, __pyx_n_s_closable, __pyx_n_s_flags, __pyx_n_s_opened); if (unlikely(!__pyx_tuple__166)) __PYX_ERR(0, 4176, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__166); __Pyx_GIVEREF(__pyx_tuple__166); __pyx_codeobj__167 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__166, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin, 4176, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__167)) __PYX_ERR(0, 4176, __pyx_L1_error) /* "imgui/core.pyx":4218 * * * def get_draw_data(): # <<<<<<<<<<<<<< * """Get draw data. * */ __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_draw_data, 4218, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(0, 4218, __pyx_L1_error) /* "imgui/core.pyx":4233 * * * def end(): # <<<<<<<<<<<<<< * """End a window. * */ __pyx_codeobj__169 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end, 4233, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__169)) __PYX_ERR(0, 4233, __pyx_L1_error) /* "imgui/core.pyx":4289 * * * def begin_child( # <<<<<<<<<<<<<< * child_id label, float width = 0, float height = 0, bool border = False, * cimgui.ImGuiWindowFlags flags = 0 */ __pyx_tuple__170 = PyTuple_Pack(5, __pyx_n_s_label, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_border, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__170); __Pyx_GIVEREF(__pyx_tuple__170); __pyx_codeobj__171 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__170, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_child, 4289, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__171)) __PYX_ERR(0, 4289, __pyx_L1_error) /* "imgui/core.pyx":4355 * ) * ) * def end_child(): # <<<<<<<<<<<<<< * """End scrolling region. * Only call if ``begin_child().visible`` is True. */ __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_child, 4355, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(0, 4355, __pyx_L1_error) /* "imgui/core.pyx":4365 * * * def get_content_region_max(): # <<<<<<<<<<<<<< * """Get current content boundaries in window coordinates. * */ __pyx_codeobj__173 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_content_region_max, 4365, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__173)) __PYX_ERR(0, 4365, __pyx_L1_error) /* "imgui/core.pyx":4380 * * * def get_content_region_available(): # <<<<<<<<<<<<<< * """Get available content region. * */ __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_content_region_available, 4380, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 4380, __pyx_L1_error) /* "imgui/core.pyx":4398 * * # OBSOLETED in 1.70 (from May 2019) * def get_content_region_available_width(): # <<<<<<<<<<<<<< * """Get available content region width. * */ __pyx_codeobj__175 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_content_region_available_wid, 4398, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__175)) __PYX_ERR(0, 4398, __pyx_L1_error) /* "imgui/core.pyx":4410 * * * def get_window_content_region_min(): # <<<<<<<<<<<<<< * """Get minimal current window content boundaries in window coordinates. * */ __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_window_content_region_min, 4410, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 4410, __pyx_L1_error) /* "imgui/core.pyx":4424 * * * def get_window_content_region_max(): # <<<<<<<<<<<<<< * """Get maximal current window content boundaries in window coordinates. * */ __pyx_codeobj__177 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_window_content_region_max, 4424, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__177)) __PYX_ERR(0, 4424, __pyx_L1_error) /* "imgui/core.pyx":4438 * * * def get_window_content_region_width(): # <<<<<<<<<<<<<< * """Get available current window content region width. * */ __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_window_content_region_width, 4438, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(0, 4438, __pyx_L1_error) /* "imgui/core.pyx":4450 * * * def set_window_focus(): # <<<<<<<<<<<<<< * """Set window to be focused * */ __pyx_codeobj__179 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_focus, 4450, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__179)) __PYX_ERR(0, 4450, __pyx_L1_error) /* "imgui/core.pyx":4471 * cimgui.SetWindowFocus() * * def set_window_focus_labeled(str label): # <<<<<<<<<<<<<< * """Set focus to the window named label * */ __pyx_tuple__180 = PyTuple_Pack(1, __pyx_n_s_label); if (unlikely(!__pyx_tuple__180)) __PYX_ERR(0, 4471, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__180); __Pyx_GIVEREF(__pyx_tuple__180); __pyx_codeobj__181 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__180, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_focus_labeled, 4471, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__181)) __PYX_ERR(0, 4471, __pyx_L1_error) /* "imgui/core.pyx":4502 * cimgui.SetWindowFocus(_bytes(label)) * * def set_window_size( # <<<<<<<<<<<<<< * float width, float height, cimgui.ImGuiCond condition=ONCE): * """Set window size */ __pyx_tuple__182 = PyTuple_Pack(3, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__182)) __PYX_ERR(0, 4502, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__182); __Pyx_GIVEREF(__pyx_tuple__182); __pyx_codeobj__183 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__182, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_size, 4502, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__183)) __PYX_ERR(0, 4502, __pyx_L1_error) /* "imgui/core.pyx":4534 * cimgui.SetWindowSize(_cast_args_ImVec2(width, height), condition) * * def set_window_size_named(str label, float width, float height, cimgui.ImGuiCond condition = ONCE): # <<<<<<<<<<<<<< * """Set the window with label to some size * */ __pyx_tuple__184 = PyTuple_Pack(4, __pyx_n_s_label, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__184)) __PYX_ERR(0, 4534, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__184); __Pyx_GIVEREF(__pyx_tuple__184); __pyx_codeobj__185 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__184, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_size_named, 4534, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__185)) __PYX_ERR(0, 4534, __pyx_L1_error) /* "imgui/core.pyx":4571 * ) * * def get_scroll_x(): # <<<<<<<<<<<<<< * """get scrolling amount [0..GetScrollMaxX()] * */ __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_scroll_x, 4571, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 4571, __pyx_L1_error) /* "imgui/core.pyx":4583 * * * def get_scroll_y(): # <<<<<<<<<<<<<< * """get scrolling amount [0..GetScrollMaxY()] * */ __pyx_codeobj__187 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_scroll_y, 4583, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__187)) __PYX_ERR(0, 4583, __pyx_L1_error) /* "imgui/core.pyx":4595 * * * def get_scroll_max_x(): # <<<<<<<<<<<<<< * """get maximum scrolling amount ~~ ContentSize.X - WindowSize.X * */ __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_scroll_max_x, 4595, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 4595, __pyx_L1_error) /* "imgui/core.pyx":4607 * * * def get_scroll_max_y(): # <<<<<<<<<<<<<< * """get maximum scrolling amount ~~ ContentSize.X - WindowSize.X * */ __pyx_codeobj__189 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_scroll_max_y, 4607, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__189)) __PYX_ERR(0, 4607, __pyx_L1_error) /* "imgui/core.pyx":4619 * * * def set_scroll_x(float scroll_x): # <<<<<<<<<<<<<< * """set scrolling amount [0..SetScrollMaxX()] * */ __pyx_tuple__190 = PyTuple_Pack(2, __pyx_n_s_scroll_x, __pyx_n_s_scroll_x); if (unlikely(!__pyx_tuple__190)) __PYX_ERR(0, 4619, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__190); __Pyx_GIVEREF(__pyx_tuple__190); __pyx_codeobj__191 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__190, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_scroll_x, 4619, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__191)) __PYX_ERR(0, 4619, __pyx_L1_error) /* "imgui/core.pyx":4628 * * * def set_scroll_y(float scroll_y): # <<<<<<<<<<<<<< * """set scrolling amount [0..SetScrollMaxY()] * */ __pyx_tuple__192 = PyTuple_Pack(2, __pyx_n_s_scroll_y, __pyx_n_s_scroll_y); if (unlikely(!__pyx_tuple__192)) __PYX_ERR(0, 4628, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__192); __Pyx_GIVEREF(__pyx_tuple__192); __pyx_codeobj__193 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__192, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_scroll_y, 4628, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__193)) __PYX_ERR(0, 4628, __pyx_L1_error) /* "imgui/core.pyx":4637 * * * def set_window_font_scale(float scale): # <<<<<<<<<<<<<< * """Adjust per-window font scale for current window. * */ __pyx_tuple__194 = PyTuple_Pack(2, __pyx_n_s_scale, __pyx_n_s_scale); if (unlikely(!__pyx_tuple__194)) __PYX_ERR(0, 4637, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__194); __Pyx_GIVEREF(__pyx_tuple__194); __pyx_codeobj__195 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__194, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_font_scale, 4637, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__195)) __PYX_ERR(0, 4637, __pyx_L1_error) /* "imgui/core.pyx":4663 * * * def set_next_window_collapsed( # <<<<<<<<<<<<<< * cimgui.bool collapsed, cimgui.ImGuiCond condition=ALWAYS * ): */ __pyx_tuple__196 = PyTuple_Pack(2, __pyx_n_s_collapsed, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__196)) __PYX_ERR(0, 4663, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__196); __Pyx_GIVEREF(__pyx_tuple__196); __pyx_codeobj__197 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__196, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_next_window_collapsed, 4663, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__197)) __PYX_ERR(0, 4663, __pyx_L1_error) /* "imgui/core.pyx":4693 * * * def set_next_window_focus(): # <<<<<<<<<<<<<< * """Set next window to be focused (most front). * */ __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_next_window_focus, 4693, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 4693, __pyx_L1_error) /* "imgui/core.pyx":4702 * * * def set_next_window_bg_alpha(float alpha): # <<<<<<<<<<<<<< * """set next window background color alpha. helper to easily modify ImGuiCol_WindowBg/ChildBg/PopupBg. * */ __pyx_tuple__199 = PyTuple_Pack(2, __pyx_n_s_alpha, __pyx_n_s_alpha); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 4702, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__199); __Pyx_GIVEREF(__pyx_tuple__199); __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_next_window_bg_alpha, 4702, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 4702, __pyx_L1_error) /* "imgui/core.pyx":4711 * * * def get_window_draw_list(): # <<<<<<<<<<<<<< * """Get the draw list associated with the window, to append your own drawing primitives * */ __pyx_codeobj__201 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_window_draw_list, 4711, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__201)) __PYX_ERR(0, 4711, __pyx_L1_error) /* "imgui/core.pyx":4750 * * # OBSOLETED in 1.69 (from Mar 2019) * def get_overlay_draw_list(): # <<<<<<<<<<<<<< * """Get a special draw list that will be drawn last (over all windows). * */ __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_overlay_draw_list, 4750, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(0, 4750, __pyx_L1_error) /* "imgui/core.pyx":4764 * * * def get_window_position(): # <<<<<<<<<<<<<< * """Get current window position. * */ __pyx_codeobj__203 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_window_position, 4764, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__203)) __PYX_ERR(0, 4764, __pyx_L1_error) /* "imgui/core.pyx":4779 * * * def get_window_size(): # <<<<<<<<<<<<<< * """Get current window size. * */ __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_window_size, 4779, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 4779, __pyx_L1_error) /* "imgui/core.pyx":4791 * * * def get_window_width(): # <<<<<<<<<<<<<< * """Get current window width. * */ __pyx_codeobj__205 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_window_width, 4791, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__205)) __PYX_ERR(0, 4791, __pyx_L1_error) /* "imgui/core.pyx":4803 * * * def get_window_height(): # <<<<<<<<<<<<<< * """Get current window height. * */ __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_window_height, 4803, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 4803, __pyx_L1_error) /* "imgui/core.pyx":4815 * * * def set_next_window_position( # <<<<<<<<<<<<<< * float x, float y, cimgui.ImGuiCond condition=ALWAYS, float pivot_x=0, float pivot_y=0 * ): */ __pyx_tuple__207 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_condition, __pyx_n_s_pivot_x, __pyx_n_s_pivot_y); if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 4815, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__207); __Pyx_GIVEREF(__pyx_tuple__207); __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__207, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_next_window_position, 4815, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(0, 4815, __pyx_L1_error) /* "imgui/core.pyx":4852 * * * def set_next_window_size( # <<<<<<<<<<<<<< * float width, float height, cimgui.ImGuiCond condition=ALWAYS * ): */ __pyx_tuple__209 = PyTuple_Pack(3, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 4852, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__209); __Pyx_GIVEREF(__pyx_tuple__209); __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__209, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_next_window_size, 4852, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(0, 4852, __pyx_L1_error) /* "imgui/core.pyx":4885 * # Useful for non trivial constraints * cdef _callback_user_info _global_next_window_size_constraints_callback_user_info = _callback_user_info() * def set_next_window_size_constraints( # <<<<<<<<<<<<<< * tuple size_min, * tuple size_max, */ __pyx_tuple__211 = PyTuple_Pack(6, __pyx_n_s_size_min, __pyx_n_s_size_max, __pyx_n_s_callback, __pyx_n_s_user_data, __pyx_n_s_callback_2, __pyx_n_s_user_data_2); if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 4885, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__211); __Pyx_GIVEREF(__pyx_tuple__211); __pyx_codeobj__212 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__211, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_next_window_size_constraints, 4885, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__212)) __PYX_ERR(0, 4885, __pyx_L1_error) /* "imgui/core.pyx":4933 * _callback, _user_data) * * def set_next_window_content_size(float width, float height): # <<<<<<<<<<<<<< * """Set content size of the next window. Show scrollbars * if content doesn't fit in the window */ __pyx_tuple__213 = PyTuple_Pack(2, __pyx_n_s_width, __pyx_n_s_height); if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 4933, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__213); __Pyx_GIVEREF(__pyx_tuple__213); __pyx_codeobj__214 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__213, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_next_window_content_size, 4933, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__214)) __PYX_ERR(0, 4933, __pyx_L1_error) /* "imgui/core.pyx":4961 * cimgui.SetNextWindowContentSize(_cast_args_ImVec2(width, height)) * * def set_window_position(float x, float y, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the size of the current window * */ __pyx_tuple__215 = PyTuple_Pack(3, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 4961, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__215); __Pyx_GIVEREF(__pyx_tuple__215); __pyx_codeobj__216 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__215, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_position, 4961, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__216)) __PYX_ERR(0, 4961, __pyx_L1_error) /* "imgui/core.pyx":4992 * cimgui.SetWindowPos(_cast_args_ImVec2(x,y), condition) * * def set_window_position_labeled(str label, float x, float y, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the size of the window with label * */ __pyx_tuple__217 = PyTuple_Pack(4, __pyx_n_s_label, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 4992, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__217); __Pyx_GIVEREF(__pyx_tuple__217); __pyx_codeobj__218 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__217, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_position_labeled, 4992, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__218)) __PYX_ERR(0, 4992, __pyx_L1_error) /* "imgui/core.pyx":5029 * ) * * def set_window_collapsed(bool collapsed, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the current window to be collapsed * */ __pyx_tuple__219 = PyTuple_Pack(2, __pyx_n_s_collapsed, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 5029, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__219); __Pyx_GIVEREF(__pyx_tuple__219); __pyx_codeobj__220 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__219, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_collapsed, 5029, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__220)) __PYX_ERR(0, 5029, __pyx_L1_error) /* "imgui/core.pyx":5055 * cimgui.SetWindowCollapsed(collapsed, condition) * * def set_window_collapsed_labeled(str label, bool collapsed, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set window with label to collapse * */ __pyx_tuple__221 = PyTuple_Pack(3, __pyx_n_s_label, __pyx_n_s_collapsed, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 5055, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__221); __Pyx_GIVEREF(__pyx_tuple__221); __pyx_codeobj__222 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__221, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_window_collapsed_labeled, 5055, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__222)) __PYX_ERR(0, 5055, __pyx_L1_error) /* "imgui/core.pyx":5082 * * * def is_window_collapsed(): # <<<<<<<<<<<<<< * """Check if current window is collapsed. * */ __pyx_codeobj__223 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_window_collapsed, 5082, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__223)) __PYX_ERR(0, 5082, __pyx_L1_error) /* "imgui/core.pyx":5091 * * * def is_window_appearing(): # <<<<<<<<<<<<<< * """Check if current window is appearing. * */ __pyx_codeobj__224 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_window_appearing, 5091, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__224)) __PYX_ERR(0, 5091, __pyx_L1_error) /* "imgui/core.pyx":5101 * * * def tree_node(str text, cimgui.ImGuiTreeNodeFlags flags=0): # <<<<<<<<<<<<<< * """Draw a tree node. * */ __pyx_tuple__225 = PyTuple_Pack(2, __pyx_n_s_text, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 5101, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__225); __Pyx_GIVEREF(__pyx_tuple__225); __pyx_codeobj__226 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__225, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_tree_node, 5101, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__226)) __PYX_ERR(0, 5101, __pyx_L1_error) /* "imgui/core.pyx":5133 * * * def tree_pop(): # <<<<<<<<<<<<<< * """Called to clear the tree nodes stack and return back the identation. * */ __pyx_codeobj__227 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_tree_pop, 5133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__227)) __PYX_ERR(0, 5133, __pyx_L1_error) /* "imgui/core.pyx":5144 * cimgui.TreePop() * * def get_tree_node_to_label_spacing(): # <<<<<<<<<<<<<< * """Horizontal distance preceding label when using ``tree_node*()`` * or ``bullet() == (g.FontSize + style.FramePadding.x*2)`` for a */ __pyx_codeobj__228 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_tree_node_to_label_spacing, 5144, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__228)) __PYX_ERR(0, 5144, __pyx_L1_error) /* "imgui/core.pyx":5169 * return cimgui.GetTreeNodeToLabelSpacing() * * def collapsing_header( # <<<<<<<<<<<<<< * str text, * visible=None, */ __pyx_tuple__229 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_visible, __pyx_n_s_flags, __pyx_n_s_inout_opened, __pyx_n_s_clicked); if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 5169, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__229); __Pyx_GIVEREF(__pyx_tuple__229); __pyx_codeobj__230 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__229, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_collapsing_header, 5169, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__230)) __PYX_ERR(0, 5169, __pyx_L1_error) /* "imgui/core.pyx":5224 * return clicked, None if visible is None else inout_opened * * def set_next_item_open(bool is_open, cimgui.ImGuiCond condition = 0): # <<<<<<<<<<<<<< * """Set next TreeNode/CollapsingHeader open state. * */ __pyx_tuple__231 = PyTuple_Pack(2, __pyx_n_s_is_open, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 5224, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__231); __Pyx_GIVEREF(__pyx_tuple__231); __pyx_codeobj__232 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__231, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_next_item_open, 5224, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__232)) __PYX_ERR(0, 5224, __pyx_L1_error) /* "imgui/core.pyx":5237 * cimgui.SetNextItemOpen(is_open, condition) * * def selectable( # <<<<<<<<<<<<<< * str label, * selected=False, */ __pyx_tuple__233 = PyTuple_Pack(6, __pyx_n_s_label, __pyx_n_s_selected, __pyx_n_s_flags, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_inout_selected); if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 5237, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__233); __Pyx_GIVEREF(__pyx_tuple__233); __pyx_codeobj__234 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__233, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_selectable, 5237, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__234)) __PYX_ERR(0, 5237, __pyx_L1_error) /* "imgui/core.pyx":5301 * * * def listbox( # <<<<<<<<<<<<<< * str label, * int current, */ __pyx_tuple__235 = PyTuple_Pack(10, __pyx_n_s_label, __pyx_n_s_current, __pyx_n_s_items, __pyx_n_s_height_in_items, __pyx_n_s_inout_current, __pyx_n_s_in_items, __pyx_n_s_index, __pyx_n_s_item, __pyx_n_s_opened, __pyx_n_s_i); if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 5301, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__235); __Pyx_GIVEREF(__pyx_tuple__235); __pyx_codeobj__236 = (PyObject*)__Pyx_PyCode_New(4, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__235, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_listbox, 5301, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__236)) __PYX_ERR(0, 5301, __pyx_L1_error) /* "imgui/core.pyx":5407 * * * def begin_list_box( # <<<<<<<<<<<<<< * str label, * width = 0, */ __pyx_tuple__237 = PyTuple_Pack(3, __pyx_n_s_label, __pyx_n_s_width, __pyx_n_s_height); if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 5407, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__237); __Pyx_GIVEREF(__pyx_tuple__237); __pyx_codeobj__238 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__237, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_list_box, 5407, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__238)) __PYX_ERR(0, 5407, __pyx_L1_error) /* "imgui/core.pyx":5467 * ) * * def listbox_header( # OBSOLETED in 1.81 (from February 2021) # <<<<<<<<<<<<<< * str label, * width=0, */ __pyx_tuple__239 = PyTuple_Pack(3, __pyx_n_s_label, __pyx_n_s_width, __pyx_n_s_height); if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 5467, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__239); __Pyx_GIVEREF(__pyx_tuple__239); __pyx_codeobj__240 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__239, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_listbox_header, 5467, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__240)) __PYX_ERR(0, 5467, __pyx_L1_error) /* "imgui/core.pyx":5493 * return begin_list_box(label, width, height) * * def end_list_box(): # <<<<<<<<<<<<<< * """ * */ __pyx_codeobj__241 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_list_box, 5493, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__241)) __PYX_ERR(0, 5493, __pyx_L1_error) /* "imgui/core.pyx":5506 * cimgui.EndListBox() * * def listbox_footer(): # OBSOLETED in 1.81 (from February 2021) # <<<<<<<<<<<<<< * """*Obsoleted in imgui v1.81 from February 2021, refer to :func:`end_list_box()`* * */ __pyx_codeobj__242 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_listbox_footer, 5506, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__242)) __PYX_ERR(0, 5506, __pyx_L1_error) /* "imgui/core.pyx":5519 * * * def set_tooltip(str text): # <<<<<<<<<<<<<< * """Set tooltip under mouse-cursor. * */ __pyx_tuple__243 = PyTuple_Pack(1, __pyx_n_s_text); if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 5519, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__243); __Pyx_GIVEREF(__pyx_tuple__243); __pyx_codeobj__244 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__243, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_tooltip, 5519, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__244)) __PYX_ERR(0, 5519, __pyx_L1_error) /* "imgui/core.pyx":5567 * * * def begin_tooltip(): # <<<<<<<<<<<<<< * """Use to create full-featured tooltip windows that aren't just text. * */ __pyx_codeobj__245 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_tooltip, 5567, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__245)) __PYX_ERR(0, 5567, __pyx_L1_error) /* "imgui/core.pyx":5597 * * * def end_tooltip(): # <<<<<<<<<<<<<< * """End tooltip window. * */ __pyx_codeobj__246 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_tooltip, 5597, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__246)) __PYX_ERR(0, 5597, __pyx_L1_error) /* "imgui/core.pyx":5648 * * * def begin_main_menu_bar(): # <<<<<<<<<<<<<< * """Create new full-screen menu bar. * */ __pyx_codeobj__247 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_main_menu_bar, 5648, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__247)) __PYX_ERR(0, 5648, __pyx_L1_error) /* "imgui/core.pyx":5704 * * * def end_main_menu_bar(): # <<<<<<<<<<<<<< * """Close main menu bar context. * */ __pyx_codeobj__248 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_main_menu_bar, 5704, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__248)) __PYX_ERR(0, 5704, __pyx_L1_error) /* "imgui/core.pyx":5758 * * * def begin_menu_bar(): # <<<<<<<<<<<<<< * """Append new menu menu bar to current window. * */ __pyx_codeobj__249 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_menu_bar, 5758, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__249)) __PYX_ERR(0, 5758, __pyx_L1_error) /* "imgui/core.pyx":5812 * * * def end_menu_bar(): # <<<<<<<<<<<<<< * """Close menu bar context. * */ __pyx_codeobj__250 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_menu_bar, 5812, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__250)) __PYX_ERR(0, 5812, __pyx_L1_error) /* "imgui/core.pyx":5866 * * * def begin_menu(str label, enabled=True): # <<<<<<<<<<<<<< * """Create new expandable menu in current menu bar. * */ __pyx_tuple__251 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_enabled); if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 5866, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__251); __Pyx_GIVEREF(__pyx_tuple__251); __pyx_codeobj__252 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__251, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_menu, 5866, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__252)) __PYX_ERR(0, 5866, __pyx_L1_error) /* "imgui/core.pyx":5896 * * * def end_menu(): # <<<<<<<<<<<<<< * """Close menu context. * */ __pyx_codeobj__253 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_menu, 5896, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__253)) __PYX_ERR(0, 5896, __pyx_L1_error) /* "imgui/core.pyx":5910 * * * def menu_item( # <<<<<<<<<<<<<< * str label, str shortcut=None, cimgui.bool selected=False, enabled=True * ): */ __pyx_tuple__254 = PyTuple_Pack(6, __pyx_n_s_label, __pyx_n_s_shortcut, __pyx_n_s_selected, __pyx_n_s_enabled, __pyx_n_s_inout_selected, __pyx_n_s_clicked); if (unlikely(!__pyx_tuple__254)) __PYX_ERR(0, 5910, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__254); __Pyx_GIVEREF(__pyx_tuple__254); __pyx_codeobj__255 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__254, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_menu_item, 5910, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__255)) __PYX_ERR(0, 5910, __pyx_L1_error) /* "imgui/core.pyx":5963 * * * def open_popup(str label, cimgui.ImGuiPopupFlags flags=0): # <<<<<<<<<<<<<< * """Open a popup window. * */ __pyx_tuple__256 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__256)) __PYX_ERR(0, 5963, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__256); __Pyx_GIVEREF(__pyx_tuple__256); __pyx_codeobj__257 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__256, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_open_popup, 5963, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__257)) __PYX_ERR(0, 5963, __pyx_L1_error) /* "imgui/core.pyx":6000 * cimgui.OpenPopup(_bytes(label), flags) * * def open_popup_on_item_click(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): # <<<<<<<<<<<<<< * """Helper to open popup when clicked on last item. * (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) */ __pyx_tuple__258 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_popup_flags); if (unlikely(!__pyx_tuple__258)) __PYX_ERR(0, 6000, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__258); __Pyx_GIVEREF(__pyx_tuple__258); __pyx_codeobj__259 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__258, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_open_popup_on_item_click, 6000, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__259)) __PYX_ERR(0, 6000, __pyx_L1_error) /* "imgui/core.pyx":6057 * * * def begin_popup(str label, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Open a popup window. * */ __pyx_tuple__260 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__260)) __PYX_ERR(0, 6057, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__260); __Pyx_GIVEREF(__pyx_tuple__260); __pyx_codeobj__261 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__260, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_popup, 6057, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__261)) __PYX_ERR(0, 6057, __pyx_L1_error) /* "imgui/core.pyx":6172 * * * def begin_popup_modal(str title, visible=None, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Begin pouring popup contents. * */ __pyx_tuple__262 = PyTuple_Pack(4, __pyx_n_s_title, __pyx_n_s_visible, __pyx_n_s_flags, __pyx_n_s_inout_visible); if (unlikely(!__pyx_tuple__262)) __PYX_ERR(0, 6172, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__262); __Pyx_GIVEREF(__pyx_tuple__262); __pyx_codeobj__263 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__262, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_popup_modal, 6172, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__263)) __PYX_ERR(0, 6172, __pyx_L1_error) /* "imgui/core.pyx":6255 * * * def begin_popup_context_item(str label = None, cimgui.ImGuiPopupFlags mouse_button = 1): # <<<<<<<<<<<<<< * """This is a helper function to handle the most simple case of associating * one named popup to one given widget. */ __pyx_tuple__264 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_mouse_button); if (unlikely(!__pyx_tuple__264)) __PYX_ERR(0, 6255, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__264); __Pyx_GIVEREF(__pyx_tuple__264); __pyx_codeobj__265 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__264, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_popup_context_item, 6255, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__265)) __PYX_ERR(0, 6255, __pyx_L1_error) /* "imgui/core.pyx":6302 * * * def begin_popup_context_window( # <<<<<<<<<<<<<< * str label = None, * cimgui.ImGuiPopupFlags popup_flags = 1, */ __pyx_tuple__266 = PyTuple_Pack(3, __pyx_n_s_label, __pyx_n_s_popup_flags, __pyx_n_s_also_over_items); if (unlikely(!__pyx_tuple__266)) __PYX_ERR(0, 6302, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__266); __Pyx_GIVEREF(__pyx_tuple__266); __pyx_codeobj__267 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__266, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_popup_context_window, 6302, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__267)) __PYX_ERR(0, 6302, __pyx_L1_error) /* "imgui/core.pyx":6365 * ) * * def begin_popup_context_void(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): # <<<<<<<<<<<<<< * """Open+begin popup when clicked in void (where there are no windows). * */ __pyx_tuple__268 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_popup_flags); if (unlikely(!__pyx_tuple__268)) __PYX_ERR(0, 6365, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__268); __Pyx_GIVEREF(__pyx_tuple__268); __pyx_codeobj__269 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__268, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_popup_context_void, 6365, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__269)) __PYX_ERR(0, 6365, __pyx_L1_error) /* "imgui/core.pyx":6392 * ) * * def is_popup_open( str label, cimgui.ImGuiPopupFlags flags = 0): # <<<<<<<<<<<<<< * """Popups: test function * */ __pyx_tuple__270 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__270)) __PYX_ERR(0, 6392, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__270); __Pyx_GIVEREF(__pyx_tuple__270); __pyx_codeobj__271 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__270, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_popup_open, 6392, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__271)) __PYX_ERR(0, 6392, __pyx_L1_error) /* "imgui/core.pyx":6406 * return cimgui.IsPopupOpen(_bytes(label), flags) * * def end_popup(): # <<<<<<<<<<<<<< * """End a popup window. * */ __pyx_codeobj__272 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_popup, 6406, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__272)) __PYX_ERR(0, 6406, __pyx_L1_error) /* "imgui/core.pyx":6421 * * * def close_current_popup(): # <<<<<<<<<<<<<< * """Close the current popup window begin-ed directly above this call. * Clicking on a :func:`menu_item()` or :func:`selectable()` automatically */ __pyx_codeobj__273 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_close_current_popup, 6421, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__273)) __PYX_ERR(0, 6421, __pyx_L1_error) /* "imgui/core.pyx":6475 * * * def begin_table( # <<<<<<<<<<<<<< * str label, * int column, */ __pyx_tuple__274 = PyTuple_Pack(6, __pyx_n_s_label, __pyx_n_s_column, __pyx_n_s_flags, __pyx_n_s_outer_size_width, __pyx_n_s_outer_size_height, __pyx_n_s_inner_width); if (unlikely(!__pyx_tuple__274)) __PYX_ERR(0, 6475, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__274); __Pyx_GIVEREF(__pyx_tuple__274); __pyx_codeobj__275 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__274, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_table, 6475, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__275)) __PYX_ERR(0, 6475, __pyx_L1_error) /* "imgui/core.pyx":6510 * ) * * def end_table(): # <<<<<<<<<<<<<< * """ * End a previously opened table. */ __pyx_codeobj__276 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_table, 6510, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__276)) __PYX_ERR(0, 6510, __pyx_L1_error) /* "imgui/core.pyx":6520 * cimgui.EndTable() * * def table_next_row( # <<<<<<<<<<<<<< * cimgui.ImGuiTableRowFlags row_flags = 0, * float min_row_height = 0.0 */ __pyx_tuple__277 = PyTuple_Pack(2, __pyx_n_s_row_flags, __pyx_n_s_min_row_height); if (unlikely(!__pyx_tuple__277)) __PYX_ERR(0, 6520, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__277); __Pyx_GIVEREF(__pyx_tuple__277); __pyx_codeobj__278 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__277, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_next_row, 6520, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__278)) __PYX_ERR(0, 6520, __pyx_L1_error) /* "imgui/core.pyx":6534 * cimgui.TableNextRow(row_flags, min_row_height) * * def table_next_column(): # <<<<<<<<<<<<<< * """ * */ __pyx_codeobj__279 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_next_column, 6534, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__279)) __PYX_ERR(0, 6534, __pyx_L1_error) /* "imgui/core.pyx":6542 * return cimgui.TableNextColumn() * * def table_set_column_index(int column_n): # <<<<<<<<<<<<<< * """ * */ __pyx_tuple__280 = PyTuple_Pack(2, __pyx_n_s_column_n, __pyx_n_s_column_n); if (unlikely(!__pyx_tuple__280)) __PYX_ERR(0, 6542, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__280); __Pyx_GIVEREF(__pyx_tuple__280); __pyx_codeobj__281 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__280, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_set_column_index, 6542, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__281)) __PYX_ERR(0, 6542, __pyx_L1_error) /* "imgui/core.pyx":6550 * return cimgui.TableSetColumnIndex(column_n) * * def table_setup_column( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiTableColumnFlags flags = 0, */ __pyx_tuple__282 = PyTuple_Pack(4, __pyx_n_s_label, __pyx_n_s_flags, __pyx_n_s_init_width_or_weight, __pyx_n_s_user_id); if (unlikely(!__pyx_tuple__282)) __PYX_ERR(0, 6550, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__282); __Pyx_GIVEREF(__pyx_tuple__282); __pyx_codeobj__283 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__282, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_setup_column, 6550, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__283)) __PYX_ERR(0, 6550, __pyx_L1_error) /* "imgui/core.pyx":6572 * user_id) * * def table_setup_scroll_freeze(int cols, int rows): # <<<<<<<<<<<<<< * """ * */ __pyx_tuple__284 = PyTuple_Pack(2, __pyx_n_s_cols, __pyx_n_s_rows); if (unlikely(!__pyx_tuple__284)) __PYX_ERR(0, 6572, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__284); __Pyx_GIVEREF(__pyx_tuple__284); __pyx_codeobj__285 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__284, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_setup_scroll_freeze, 6572, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__285)) __PYX_ERR(0, 6572, __pyx_L1_error) /* "imgui/core.pyx":6580 * cimgui.TableSetupScrollFreeze(cols, rows) * * def table_headers_row(): # <<<<<<<<<<<<<< * """ * */ __pyx_codeobj__286 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_headers_row, 6580, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__286)) __PYX_ERR(0, 6580, __pyx_L1_error) /* "imgui/core.pyx":6588 * cimgui.TableHeadersRow() * * def table_header(str label): # <<<<<<<<<<<<<< * """ * */ __pyx_tuple__287 = PyTuple_Pack(1, __pyx_n_s_label); if (unlikely(!__pyx_tuple__287)) __PYX_ERR(0, 6588, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__287); __Pyx_GIVEREF(__pyx_tuple__287); __pyx_codeobj__288 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__287, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_header, 6588, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__288)) __PYX_ERR(0, 6588, __pyx_L1_error) /* "imgui/core.pyx":6596 * cimgui.TableHeader(_bytes(label)) * * def table_get_sort_specs(): # <<<<<<<<<<<<<< * """ * */ __pyx_tuple__289 = PyTuple_Pack(1, __pyx_n_s_imgui_sort_spec); if (unlikely(!__pyx_tuple__289)) __PYX_ERR(0, 6596, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__289); __Pyx_GIVEREF(__pyx_tuple__289); __pyx_codeobj__290 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__289, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_get_sort_specs, 6596, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__290)) __PYX_ERR(0, 6596, __pyx_L1_error) /* "imgui/core.pyx":6608 * return _ImGuiTableSortSpecs.from_ptr(imgui_sort_spec) * * def table_get_column_count(): # <<<<<<<<<<<<<< * """ * */ __pyx_codeobj__291 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_get_column_count, 6608, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__291)) __PYX_ERR(0, 6608, __pyx_L1_error) /* "imgui/core.pyx":6616 * return cimgui.TableGetColumnCount() * * def table_get_column_index(): # <<<<<<<<<<<<<< * """ * */ __pyx_codeobj__292 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_get_column_index, 6616, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__292)) __PYX_ERR(0, 6616, __pyx_L1_error) /* "imgui/core.pyx":6624 * return cimgui.TableGetColumnIndex() * * def table_get_row_index(): # <<<<<<<<<<<<<< * """ * */ __pyx_codeobj__293 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_get_row_index, 6624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__293)) __PYX_ERR(0, 6624, __pyx_L1_error) /* "imgui/core.pyx":6632 * return cimgui.TableGetRowIndex() * * def table_get_column_name(int column_n = -1): # <<<<<<<<<<<<<< * """ * */ __pyx_tuple__294 = PyTuple_Pack(1, __pyx_n_s_column_n); if (unlikely(!__pyx_tuple__294)) __PYX_ERR(0, 6632, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__294); __Pyx_GIVEREF(__pyx_tuple__294); __pyx_codeobj__295 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__294, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_get_column_name, 6632, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__295)) __PYX_ERR(0, 6632, __pyx_L1_error) /* "imgui/core.pyx":6642 * return _from_bytes(cimgui.TableGetColumnName(column_n)) * * def table_get_column_flags(int column_n = -1): # <<<<<<<<<<<<<< * """ * */ __pyx_tuple__296 = PyTuple_Pack(1, __pyx_n_s_column_n); if (unlikely(!__pyx_tuple__296)) __PYX_ERR(0, 6642, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__296); __Pyx_GIVEREF(__pyx_tuple__296); __pyx_codeobj__297 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__296, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_get_column_flags, 6642, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__297)) __PYX_ERR(0, 6642, __pyx_L1_error) /* "imgui/core.pyx":6652 * return cimgui.TableGetColumnFlags(column_n) * * def table_set_background_color( # <<<<<<<<<<<<<< * cimgui.ImGuiTableBgTarget target, * cimgui.ImU32 color, */ __pyx_tuple__298 = PyTuple_Pack(3, __pyx_n_s_target, __pyx_n_s_color, __pyx_n_s_column_n); if (unlikely(!__pyx_tuple__298)) __PYX_ERR(0, 6652, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__298); __Pyx_GIVEREF(__pyx_tuple__298); __pyx_codeobj__299 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__298, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_table_set_background_color, 6652, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__299)) __PYX_ERR(0, 6652, __pyx_L1_error) /* "imgui/core.pyx":6668 * cimgui.TableSetBgColor(target, color, column_n) * * def text(str text): # <<<<<<<<<<<<<< * """Add text to current widget stack. * */ __pyx_tuple__300 = PyTuple_Pack(1, __pyx_n_s_text); if (unlikely(!__pyx_tuple__300)) __PYX_ERR(0, 6668, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__300); __Pyx_GIVEREF(__pyx_tuple__300); __pyx_codeobj__301 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__300, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_text, 6668, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__301)) __PYX_ERR(0, 6668, __pyx_L1_error) /* "imgui/core.pyx":6690 * * * def text_colored(str text, float r, float g, float b, float a=1.): # <<<<<<<<<<<<<< * """Add colored text to current widget stack. * */ __pyx_tuple__302 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_r, __pyx_n_s_g, __pyx_n_s_b, __pyx_n_s_a); if (unlikely(!__pyx_tuple__302)) __PYX_ERR(0, 6690, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__302); __Pyx_GIVEREF(__pyx_tuple__302); __pyx_codeobj__303 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__302, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_text_colored, 6690, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__303)) __PYX_ERR(0, 6690, __pyx_L1_error) /* "imgui/core.pyx":6725 * * * def text_disabled(str text): # <<<<<<<<<<<<<< * """Add disabled(grayed out) text to current widget stack. * */ __pyx_tuple__304 = PyTuple_Pack(1, __pyx_n_s_text); if (unlikely(!__pyx_tuple__304)) __PYX_ERR(0, 6725, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__304); __Pyx_GIVEREF(__pyx_tuple__304); __pyx_codeobj__305 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__304, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_text_disabled, 6725, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__305)) __PYX_ERR(0, 6725, __pyx_L1_error) /* "imgui/core.pyx":6746 * cimgui.TextDisabled("%s", _bytes(text)) * * def text_wrapped(str text): # <<<<<<<<<<<<<< * """Add wrappable text to current widget stack. * */ __pyx_tuple__306 = PyTuple_Pack(1, __pyx_n_s_text); if (unlikely(!__pyx_tuple__306)) __PYX_ERR(0, 6746, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__306); __Pyx_GIVEREF(__pyx_tuple__306); __pyx_codeobj__307 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__306, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_text_wrapped, 6746, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__307)) __PYX_ERR(0, 6746, __pyx_L1_error) /* "imgui/core.pyx":6770 * * * def label_text(str label, str text): # <<<<<<<<<<<<<< * """Display text+label aligned the same way as value+label widgets. * */ __pyx_tuple__308 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_text); if (unlikely(!__pyx_tuple__308)) __PYX_ERR(0, 6770, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__308); __Pyx_GIVEREF(__pyx_tuple__308); __pyx_codeobj__309 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__308, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_label_text, 6770, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__309)) __PYX_ERR(0, 6770, __pyx_L1_error) /* "imgui/core.pyx":6793 * * * def text_unformatted(str text): # <<<<<<<<<<<<<< * """Big area text display - the size is defined by it's container. * Recommended for long chunks of text. */ __pyx_tuple__310 = PyTuple_Pack(1, __pyx_n_s_text); if (unlikely(!__pyx_tuple__310)) __PYX_ERR(0, 6793, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__310); __Pyx_GIVEREF(__pyx_tuple__310); __pyx_codeobj__311 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__310, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_text_unformatted, 6793, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__311)) __PYX_ERR(0, 6793, __pyx_L1_error) /* "imgui/core.pyx":6816 * * * def bullet(): # <<<<<<<<<<<<<< * """Display a small circle and keep the cursor on the same line. * */ __pyx_codeobj__312 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_bullet, 6816, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__312)) __PYX_ERR(0, 6816, __pyx_L1_error) /* "imgui/core.pyx":6839 * * * def bullet_text(str text): # <<<<<<<<<<<<<< * """Display bullet and text. * */ __pyx_tuple__313 = PyTuple_Pack(1, __pyx_n_s_text); if (unlikely(!__pyx_tuple__313)) __PYX_ERR(0, 6839, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__313); __Pyx_GIVEREF(__pyx_tuple__313); __pyx_codeobj__314 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__313, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_bullet_text, 6839, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__314)) __PYX_ERR(0, 6839, __pyx_L1_error) /* "imgui/core.pyx":6869 * * * def button(str label, width=0, height=0): # <<<<<<<<<<<<<< * """Display button. * */ __pyx_tuple__315 = PyTuple_Pack(3, __pyx_n_s_label, __pyx_n_s_width, __pyx_n_s_height); if (unlikely(!__pyx_tuple__315)) __PYX_ERR(0, 6869, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__315); __Pyx_GIVEREF(__pyx_tuple__315); __pyx_codeobj__316 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__315, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_button, 6869, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__316)) __PYX_ERR(0, 6869, __pyx_L1_error) /* "imgui/core.pyx":6895 * * * def small_button(str label): # <<<<<<<<<<<<<< * """Display small button (with 0 frame padding). * */ __pyx_tuple__317 = PyTuple_Pack(1, __pyx_n_s_label); if (unlikely(!__pyx_tuple__317)) __PYX_ERR(0, 6895, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__317); __Pyx_GIVEREF(__pyx_tuple__317); __pyx_codeobj__318 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__317, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_small_button, 6895, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__318)) __PYX_ERR(0, 6895, __pyx_L1_error) /* "imgui/core.pyx":6918 * return cimgui.SmallButton(_bytes(label)) * * def arrow_button(str label, cimgui.ImGuiDir direction = DIRECTION_NONE): # <<<<<<<<<<<<<< * """Display an arrow button * */ __pyx_tuple__319 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_direction); if (unlikely(!__pyx_tuple__319)) __PYX_ERR(0, 6918, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__319); __Pyx_GIVEREF(__pyx_tuple__319); __pyx_codeobj__320 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__319, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_arrow_button, 6918, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__320)) __PYX_ERR(0, 6918, __pyx_L1_error) /* "imgui/core.pyx":6943 * return cimgui.ArrowButton(_bytes(label), direction) * * def invisible_button(str identifier, float width, float height, cimgui.ImGuiButtonFlags flags = 0): # <<<<<<<<<<<<<< * """Create invisible button. * */ __pyx_tuple__321 = PyTuple_Pack(4, __pyx_n_s_identifier, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__321)) __PYX_ERR(0, 6943, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__321); __Pyx_GIVEREF(__pyx_tuple__321); __pyx_codeobj__322 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__321, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_invisible_button, 6943, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__322)) __PYX_ERR(0, 6943, __pyx_L1_error) /* "imgui/core.pyx":6978 * * * def color_button( # <<<<<<<<<<<<<< * str desc_id, * float r, float g, float b, a=1., */ __pyx_tuple__323 = PyTuple_Pack(8, __pyx_n_s_desc_id, __pyx_n_s_r, __pyx_n_s_g, __pyx_n_s_b, __pyx_n_s_a, __pyx_n_s_flags, __pyx_n_s_width, __pyx_n_s_height); if (unlikely(!__pyx_tuple__323)) __PYX_ERR(0, 6978, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__323); __Pyx_GIVEREF(__pyx_tuple__323); __pyx_codeobj__324 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__323, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_color_button, 6978, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__324)) __PYX_ERR(0, 6978, __pyx_L1_error) /* "imgui/core.pyx":7022 * * * def image_button( # <<<<<<<<<<<<<< * texture_id, * float width, */ __pyx_tuple__325 = PyTuple_Pack(8, __pyx_n_s_texture_id, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_uv0, __pyx_n_s_uv1, __pyx_n_s_tint_color, __pyx_n_s_border_color, __pyx_n_s_frame_padding); if (unlikely(!__pyx_tuple__325)) __PYX_ERR(0, 7022, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__325); __Pyx_GIVEREF(__pyx_tuple__325); __pyx_codeobj__326 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__325, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_image_button, 7022, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__326)) __PYX_ERR(0, 7022, __pyx_L1_error) /* "imgui/core.pyx":7076 * * * def image( # <<<<<<<<<<<<<< * texture_id, * float width, */ __pyx_tuple__327 = PyTuple_Pack(7, __pyx_n_s_texture_id, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_uv0, __pyx_n_s_uv1, __pyx_n_s_tint_color, __pyx_n_s_border_color); if (unlikely(!__pyx_tuple__327)) __PYX_ERR(0, 7076, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__327); __Pyx_GIVEREF(__pyx_tuple__327); __pyx_codeobj__328 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__327, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_image, 7076, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__328)) __PYX_ERR(0, 7076, __pyx_L1_error) /* "imgui/core.pyx":7130 * * * def checkbox(str label, cimgui.bool state): # <<<<<<<<<<<<<< * """Display checkbox widget. * */ __pyx_tuple__329 = PyTuple_Pack(3, __pyx_n_s_label, __pyx_n_s_state, __pyx_n_s_inout_state); if (unlikely(!__pyx_tuple__329)) __PYX_ERR(0, 7130, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__329); __Pyx_GIVEREF(__pyx_tuple__329); __pyx_codeobj__330 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__329, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_checkbox, 7130, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__330)) __PYX_ERR(0, 7130, __pyx_L1_error) /* "imgui/core.pyx":7175 * * * def checkbox_flags(str label, unsigned int flags, unsigned int flags_value): # <<<<<<<<<<<<<< * """Display checkbox widget that handle integer flags (bit fields). * */ __pyx_tuple__331 = PyTuple_Pack(4, __pyx_n_s_label, __pyx_n_s_flags, __pyx_n_s_flags_value, __pyx_n_s_inout_flags); if (unlikely(!__pyx_tuple__331)) __PYX_ERR(0, 7175, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__331); __Pyx_GIVEREF(__pyx_tuple__331); __pyx_codeobj__332 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__331, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_checkbox_flags, 7175, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__332)) __PYX_ERR(0, 7175, __pyx_L1_error) /* "imgui/core.pyx":7232 * * * def radio_button(str label, cimgui.bool active): # <<<<<<<<<<<<<< * """Display radio button widget * */ __pyx_tuple__333 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_active); if (unlikely(!__pyx_tuple__333)) __PYX_ERR(0, 7232, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__333); __Pyx_GIVEREF(__pyx_tuple__333); __pyx_codeobj__334 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__333, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_radio_button, 7232, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__334)) __PYX_ERR(0, 7232, __pyx_L1_error) /* "imgui/core.pyx":7303 * * * def begin_combo(str label, str preview_value, cimgui.ImGuiComboFlags flags = 0): # <<<<<<<<<<<<<< * """Begin a combo box with control over how items are displayed. * */ __pyx_tuple__335 = PyTuple_Pack(3, __pyx_n_s_label, __pyx_n_s_preview_value, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__335)) __PYX_ERR(0, 7303, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__335); __Pyx_GIVEREF(__pyx_tuple__335); __pyx_codeobj__336 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__335, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_combo, 7303, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__336)) __PYX_ERR(0, 7303, __pyx_L1_error) /* "imgui/core.pyx":7373 * ) * ) * def end_combo(): # <<<<<<<<<<<<<< * """End combo box. * Only call if ``begin_combo().opened`` is True. */ __pyx_codeobj__337 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_combo, 7373, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__337)) __PYX_ERR(0, 7373, __pyx_L1_error) /* "imgui/core.pyx":7383 * * * def combo(str label, int current, list items, int height_in_items=-1): # <<<<<<<<<<<<<< * """Display combo widget. * */ __pyx_tuple__338 = PyTuple_Pack(6, __pyx_n_s_label, __pyx_n_s_current, __pyx_n_s_items, __pyx_n_s_height_in_items, __pyx_n_s_inout_current, __pyx_n_s_in_items); if (unlikely(!__pyx_tuple__338)) __PYX_ERR(0, 7383, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__338); __Pyx_GIVEREF(__pyx_tuple__338); __pyx_codeobj__339 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__338, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_combo, 7383, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__339)) __PYX_ERR(0, 7383, __pyx_L1_error) /* "imgui/core.pyx":7427 * * * def color_edit3(str label, float r, float g, float b, cimgui.ImGuiColorEditFlags flags = 0): # <<<<<<<<<<<<<< * """Display color edit widget for color without alpha value. * */ __pyx_tuple__340 = PyTuple_Pack(6, __pyx_n_s_label, __pyx_n_s_r, __pyx_n_s_g, __pyx_n_s_b, __pyx_n_s_flags, __pyx_n_s_inout_color); if (unlikely(!__pyx_tuple__340)) __PYX_ERR(0, 7427, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__340); __Pyx_GIVEREF(__pyx_tuple__340); __pyx_codeobj__341 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__340, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_color_edit3, 7427, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__341)) __PYX_ERR(0, 7427, __pyx_L1_error) /* "imgui/core.pyx":7471 * * * def color_edit4(str label, float r, float g, float b, float a, cimgui.ImGuiColorEditFlags flags = 0): # <<<<<<<<<<<<<< * """Display color edit widget for color with alpha value. * */ __pyx_tuple__342 = PyTuple_Pack(7, __pyx_n_s_label, __pyx_n_s_r, __pyx_n_s_g, __pyx_n_s_b, __pyx_n_s_a, __pyx_n_s_flags, __pyx_n_s_inout_color); if (unlikely(!__pyx_tuple__342)) __PYX_ERR(0, 7471, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__342); __Pyx_GIVEREF(__pyx_tuple__342); __pyx_codeobj__343 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__342, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_color_edit4, 7471, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__343)) __PYX_ERR(0, 7471, __pyx_L1_error) /* "imgui/core.pyx":7516 * * * def drag_float( # <<<<<<<<<<<<<< * str label, float value, * float change_speed = 1.0, */ __pyx_tuple__344 = PyTuple_Pack(9, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_power, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__344)) __PYX_ERR(0, 7516, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__344); __Pyx_GIVEREF(__pyx_tuple__344); __pyx_codeobj__345 = (PyObject*)__Pyx_PyCode_New(8, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__344, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_float, 7516, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__345)) __PYX_ERR(0, 7516, __pyx_L1_error) /* "imgui/core.pyx":7586 * * * def drag_float2( # <<<<<<<<<<<<<< * str label, float value0, float value1, * float change_speed = 1.0, */ __pyx_tuple__346 = PyTuple_Pack(10, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_power, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__346)) __PYX_ERR(0, 7586, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__346); __Pyx_GIVEREF(__pyx_tuple__346); __pyx_codeobj__347 = (PyObject*)__Pyx_PyCode_New(9, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__346, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_float2, 7586, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__347)) __PYX_ERR(0, 7586, __pyx_L1_error) /* "imgui/core.pyx":7649 * * * def drag_float3( # <<<<<<<<<<<<<< * str label, float value0, float value1, float value2, * float change_speed = 1.0, */ __pyx_tuple__348 = PyTuple_Pack(11, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_power, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__348)) __PYX_ERR(0, 7649, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__348); __Pyx_GIVEREF(__pyx_tuple__348); __pyx_codeobj__349 = (PyObject*)__Pyx_PyCode_New(10, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__348, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_float3, 7649, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__349)) __PYX_ERR(0, 7649, __pyx_L1_error) /* "imgui/core.pyx":7712 * * * def drag_float4( # <<<<<<<<<<<<<< * str label, float value0, float value1, float value2, float value3, * float change_speed = 1.0, */ __pyx_tuple__350 = PyTuple_Pack(12, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_value3, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_power, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__350)) __PYX_ERR(0, 7712, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__350); __Pyx_GIVEREF(__pyx_tuple__350); __pyx_codeobj__351 = (PyObject*)__Pyx_PyCode_New(11, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__350, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_float4, 7712, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__351)) __PYX_ERR(0, 7712, __pyx_L1_error) /* "imgui/core.pyx":7774 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_float_range2( # <<<<<<<<<<<<<< * str label, * float current_min, */ __pyx_tuple__352 = PyTuple_Pack(14, __pyx_n_s_label, __pyx_n_s_current_min, __pyx_n_s_current_max, __pyx_n_s_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_format_max, __pyx_n_s_flags, __pyx_n_s_inout_current_min, __pyx_n_s_inout_current_max, __pyx_n_s_b_format_max, __pyx_n_s_p_format_max, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__352)) __PYX_ERR(0, 7774, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__352); __Pyx_GIVEREF(__pyx_tuple__352); __pyx_codeobj__353 = (PyObject*)__Pyx_PyCode_New(9, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__352, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_float_range2, 7774, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__353)) __PYX_ERR(0, 7774, __pyx_L1_error) /* "imgui/core.pyx":7856 * * * def drag_int( # <<<<<<<<<<<<<< * str label, int value, * float change_speed = 1.0, */ __pyx_tuple__354 = PyTuple_Pack(8, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__354)) __PYX_ERR(0, 7856, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__354); __Pyx_GIVEREF(__pyx_tuple__354); __pyx_codeobj__355 = (PyObject*)__Pyx_PyCode_New(7, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__354, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_int, 7856, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__355)) __PYX_ERR(0, 7856, __pyx_L1_error) /* "imgui/core.pyx":7918 * * * def drag_int2( # <<<<<<<<<<<<<< * str label, int value0, int value1, * float change_speed = 1.0, */ __pyx_tuple__356 = PyTuple_Pack(9, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__356)) __PYX_ERR(0, 7918, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__356); __Pyx_GIVEREF(__pyx_tuple__356); __pyx_codeobj__357 = (PyObject*)__Pyx_PyCode_New(8, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__356, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_int2, 7918, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__357)) __PYX_ERR(0, 7918, __pyx_L1_error) /* "imgui/core.pyx":7975 * * * def drag_int3( # <<<<<<<<<<<<<< * str label, int value0, int value1, int value2, * float change_speed = 1.0, */ __pyx_tuple__358 = PyTuple_Pack(10, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__358)) __PYX_ERR(0, 7975, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__358); __Pyx_GIVEREF(__pyx_tuple__358); __pyx_codeobj__359 = (PyObject*)__Pyx_PyCode_New(9, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__358, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_int3, 7975, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__359)) __PYX_ERR(0, 7975, __pyx_L1_error) /* "imgui/core.pyx":8032 * * * def drag_int4( # <<<<<<<<<<<<<< * str label, int value0, int value1, int value2, int value3, * float change_speed = 1.0, */ __pyx_tuple__360 = PyTuple_Pack(11, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_value3, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__360)) __PYX_ERR(0, 8032, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__360); __Pyx_GIVEREF(__pyx_tuple__360); __pyx_codeobj__361 = (PyObject*)__Pyx_PyCode_New(10, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__360, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_int4, 8032, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__361)) __PYX_ERR(0, 8032, __pyx_L1_error) /* "imgui/core.pyx":8088 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_int_range2( # <<<<<<<<<<<<<< * str label, * int current_min, */ __pyx_tuple__362 = PyTuple_Pack(14, __pyx_n_s_label, __pyx_n_s_current_min, __pyx_n_s_current_max, __pyx_n_s_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_format_max, __pyx_n_s_flags, __pyx_n_s_inout_current_min, __pyx_n_s_inout_current_max, __pyx_n_s_b_format_max, __pyx_n_s_p_format_max, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__362)) __PYX_ERR(0, 8088, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__362); __Pyx_GIVEREF(__pyx_tuple__362); __pyx_codeobj__363 = (PyObject*)__Pyx_PyCode_New(9, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__362, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_int_range2, 8088, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__363)) __PYX_ERR(0, 8088, __pyx_L1_error) /* "imgui/core.pyx":8169 * * * def drag_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_tuple__364 = PyTuple_Pack(14, __pyx_n_s_label, __pyx_n_s_data_type, __pyx_n_s_data, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_p_data, __pyx_n_s_p_min, __pyx_n_s_p_max, __pyx_n_s_fmt, __pyx_n_s_fmt_data, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__364)) __PYX_ERR(0, 8169, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__364); __Pyx_GIVEREF(__pyx_tuple__364); __pyx_codeobj__365 = (PyObject*)__Pyx_PyCode_New(8, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__364, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_scalar, 8169, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__365)) __PYX_ERR(0, 8169, __pyx_L1_error) /* "imgui/core.pyx":8238 * return changed, data * * def drag_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_tuple__366 = PyTuple_Pack(15, __pyx_n_s_label, __pyx_n_s_data_type, __pyx_n_s_data, __pyx_n_s_components, __pyx_n_s_change_speed, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_p_data, __pyx_n_s_p_min, __pyx_n_s_p_max, __pyx_n_s_fmt, __pyx_n_s_fmt_data, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__366)) __PYX_ERR(0, 8238, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__366); __Pyx_GIVEREF(__pyx_tuple__366); __pyx_codeobj__367 = (PyObject*)__Pyx_PyCode_New(9, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__366, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_drag_scalar_N, 8238, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__367)) __PYX_ERR(0, 8238, __pyx_L1_error) /* "imgui/core.pyx":8311 * return changed, data * * def input_text( # <<<<<<<<<<<<<< * str label, * str value, */ __pyx_tuple__368 = PyTuple_Pack(13, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_buffer_length, __pyx_n_s_flags, __pyx_n_s_callback, __pyx_n_s_user_data, __pyx_n_s_value_bytes, __pyx_n_s_buffer_length_2, __pyx_n_s_user_info, __pyx_n_s_callback_2, __pyx_n_s_user_data_2, __pyx_n_s_changed, __pyx_n_s_output); if (unlikely(!__pyx_tuple__368)) __PYX_ERR(0, 8311, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__368); __Pyx_GIVEREF(__pyx_tuple__368); __pyx_codeobj__369 = (PyObject*)__Pyx_PyCode_New(6, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__368, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_text, 8311, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__369)) __PYX_ERR(0, 8311, __pyx_L1_error) /* "imgui/core.pyx":8392 * * * def input_text_multiline( # <<<<<<<<<<<<<< * str label, * str value, */ __pyx_tuple__370 = PyTuple_Pack(15, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_buffer_length, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_flags, __pyx_n_s_callback, __pyx_n_s_user_data, __pyx_n_s_value_bytes, __pyx_n_s_buffer_length_2, __pyx_n_s_user_info, __pyx_n_s_callback_2, __pyx_n_s_user_data_2, __pyx_n_s_changed, __pyx_n_s_output); if (unlikely(!__pyx_tuple__370)) __PYX_ERR(0, 8392, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__370); __Pyx_GIVEREF(__pyx_tuple__370); __pyx_codeobj__371 = (PyObject*)__Pyx_PyCode_New(8, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__370, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_text_multiline, 8392, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__371)) __PYX_ERR(0, 8392, __pyx_L1_error) /* "imgui/core.pyx":8485 * * * def input_text_with_hint( # <<<<<<<<<<<<<< * str label, * str hint, */ __pyx_tuple__372 = PyTuple_Pack(14, __pyx_n_s_label, __pyx_n_s_hint, __pyx_n_s_value, __pyx_n_s_buffer_length, __pyx_n_s_flags, __pyx_n_s_callback, __pyx_n_s_user_data, __pyx_n_s_value_bytes, __pyx_n_s_buffer_length_2, __pyx_n_s_user_info, __pyx_n_s_callback_2, __pyx_n_s_user_data_2, __pyx_n_s_changed, __pyx_n_s_output); if (unlikely(!__pyx_tuple__372)) __PYX_ERR(0, 8485, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__372); __Pyx_GIVEREF(__pyx_tuple__372); __pyx_codeobj__373 = (PyObject*)__Pyx_PyCode_New(7, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__372, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_text_with_hint, 8485, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__373)) __PYX_ERR(0, 8485, __pyx_L1_error) /* "imgui/core.pyx":8567 * return changed, output * * def input_float( # <<<<<<<<<<<<<< * str label, * float value, */ __pyx_tuple__374 = PyTuple_Pack(7, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_step, __pyx_n_s_step_fast, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__374)) __PYX_ERR(0, 8567, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__374); __Pyx_GIVEREF(__pyx_tuple__374); __pyx_codeobj__375 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__374, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_float, 8567, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__375)) __PYX_ERR(0, 8567, __pyx_L1_error) /* "imgui/core.pyx":8618 * ), inout_value * * def input_float2( # <<<<<<<<<<<<<< * str label, * float value0, float value1, */ __pyx_tuple__376 = PyTuple_Pack(6, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__376)) __PYX_ERR(0, 8618, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__376); __Pyx_GIVEREF(__pyx_tuple__376); __pyx_codeobj__377 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__376, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_float2, 8618, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__377)) __PYX_ERR(0, 8618, __pyx_L1_error) /* "imgui/core.pyx":8663 * ), (inout_values[0], inout_values[1]) * * def input_float3( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, */ __pyx_tuple__378 = PyTuple_Pack(7, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__378)) __PYX_ERR(0, 8663, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__378); __Pyx_GIVEREF(__pyx_tuple__378); __pyx_codeobj__379 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__378, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_float3, 8663, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__379)) __PYX_ERR(0, 8663, __pyx_L1_error) /* "imgui/core.pyx":8708 * ), (inout_values[0], inout_values[1], inout_values[2]) * * def input_float4( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, float value3, */ __pyx_tuple__380 = PyTuple_Pack(8, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_value3, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__380)) __PYX_ERR(0, 8708, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__380); __Pyx_GIVEREF(__pyx_tuple__380); __pyx_codeobj__381 = (PyObject*)__Pyx_PyCode_New(7, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__380, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_float4, 8708, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__381)) __PYX_ERR(0, 8708, __pyx_L1_error) /* "imgui/core.pyx":8754 * * * def input_int( # <<<<<<<<<<<<<< * str label, * int value, */ __pyx_tuple__382 = PyTuple_Pack(6, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_step, __pyx_n_s_step_fast, __pyx_n_s_flags, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__382)) __PYX_ERR(0, 8754, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__382); __Pyx_GIVEREF(__pyx_tuple__382); __pyx_codeobj__383 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__382, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_int, 8754, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__383)) __PYX_ERR(0, 8754, __pyx_L1_error) /* "imgui/core.pyx":8802 * * * def input_int2( # <<<<<<<<<<<<<< * str label, * int value0, int value1, */ __pyx_tuple__384 = PyTuple_Pack(5, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__384)) __PYX_ERR(0, 8802, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__384); __Pyx_GIVEREF(__pyx_tuple__384); __pyx_codeobj__385 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__384, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_int2, 8802, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__385)) __PYX_ERR(0, 8802, __pyx_L1_error) /* "imgui/core.pyx":8844 * * * def input_int3( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, */ __pyx_tuple__386 = PyTuple_Pack(6, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__386)) __PYX_ERR(0, 8844, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__386); __Pyx_GIVEREF(__pyx_tuple__386); __pyx_codeobj__387 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__386, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_int3, 8844, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__387)) __PYX_ERR(0, 8844, __pyx_L1_error) /* "imgui/core.pyx":8886 * * * def input_int4( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, int value3, */ __pyx_tuple__388 = PyTuple_Pack(7, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_value3, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__388)) __PYX_ERR(0, 8886, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__388); __Pyx_GIVEREF(__pyx_tuple__388); __pyx_codeobj__389 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__388, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_int4, 8886, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__389)) __PYX_ERR(0, 8886, __pyx_L1_error) /* "imgui/core.pyx":8928 * * * def input_double( # <<<<<<<<<<<<<< * str label, * double value, */ __pyx_tuple__390 = PyTuple_Pack(7, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_step, __pyx_n_s_step_fast, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__390)) __PYX_ERR(0, 8928, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__390); __Pyx_GIVEREF(__pyx_tuple__390); __pyx_codeobj__391 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__390, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_double, 8928, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__391)) __PYX_ERR(0, 8928, __pyx_L1_error) /* "imgui/core.pyx":8978 * ), inout_value * * def input_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_tuple__392 = PyTuple_Pack(13, __pyx_n_s_label, __pyx_n_s_data_type, __pyx_n_s_data, __pyx_n_s_step, __pyx_n_s_step_fast, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_p_data, __pyx_n_s_p_step, __pyx_n_s_p_step_fast, __pyx_n_s_fmt, __pyx_n_s_fmt_data, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__392)) __PYX_ERR(0, 8978, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__392); __Pyx_GIVEREF(__pyx_tuple__392); __pyx_codeobj__393 = (PyObject*)__Pyx_PyCode_New(7, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__392, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_scalar, 8978, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__393)) __PYX_ERR(0, 8978, __pyx_L1_error) /* "imgui/core.pyx":9042 * return changed, data * * def input_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_tuple__394 = PyTuple_Pack(14, __pyx_n_s_label, __pyx_n_s_data_type, __pyx_n_s_data, __pyx_n_s_components, __pyx_n_s_step, __pyx_n_s_step_fast, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_p_data, __pyx_n_s_p_step, __pyx_n_s_p_step_fast, __pyx_n_s_fmt, __pyx_n_s_fmt_data, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__394)) __PYX_ERR(0, 9042, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__394); __Pyx_GIVEREF(__pyx_tuple__394); __pyx_codeobj__395 = (PyObject*)__Pyx_PyCode_New(8, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__394, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_input_scalar_N, 9042, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__395)) __PYX_ERR(0, 9042, __pyx_L1_error) /* "imgui/core.pyx":9110 * return changed, data * * def slider_float( # <<<<<<<<<<<<<< * str label, * float value, */ __pyx_tuple__396 = PyTuple_Pack(8, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_power, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__396)) __PYX_ERR(0, 9110, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__396); __Pyx_GIVEREF(__pyx_tuple__396); __pyx_codeobj__397 = (PyObject*)__Pyx_PyCode_New(7, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__396, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_float, 9110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__397)) __PYX_ERR(0, 9110, __pyx_L1_error) /* "imgui/core.pyx":9172 * * * def slider_float2( # <<<<<<<<<<<<<< * str label, * float value0, float value1, */ __pyx_tuple__398 = PyTuple_Pack(9, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_power, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__398)) __PYX_ERR(0, 9172, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__398); __Pyx_GIVEREF(__pyx_tuple__398); __pyx_codeobj__399 = (PyObject*)__Pyx_PyCode_New(8, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__398, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_float2, 9172, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__399)) __PYX_ERR(0, 9172, __pyx_L1_error) /* "imgui/core.pyx":9235 * * * def slider_float3( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, */ __pyx_tuple__400 = PyTuple_Pack(10, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_power, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__400)) __PYX_ERR(0, 9235, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__400); __Pyx_GIVEREF(__pyx_tuple__400); __pyx_codeobj__401 = (PyObject*)__Pyx_PyCode_New(9, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__400, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_float3, 9235, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__401)) __PYX_ERR(0, 9235, __pyx_L1_error) /* "imgui/core.pyx":9297 * * * def slider_float4( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, float value3, */ __pyx_tuple__402 = PyTuple_Pack(11, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_value3, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_power, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__402)) __PYX_ERR(0, 9297, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__402); __Pyx_GIVEREF(__pyx_tuple__402); __pyx_codeobj__403 = (PyObject*)__Pyx_PyCode_New(10, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__402, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_float4, 9297, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__403)) __PYX_ERR(0, 9297, __pyx_L1_error) /* "imgui/core.pyx":9358 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_angle( # <<<<<<<<<<<<<< * str label, * float rad_value, */ __pyx_tuple__404 = PyTuple_Pack(7, __pyx_n_s_label, __pyx_n_s_rad_value, __pyx_n_s_value_degrees_min, __pyx_n_s_value_degrees_max, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_r_value); if (unlikely(!__pyx_tuple__404)) __PYX_ERR(0, 9358, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__404); __Pyx_GIVEREF(__pyx_tuple__404); __pyx_codeobj__405 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__404, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_angle, 9358, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__405)) __PYX_ERR(0, 9358, __pyx_L1_error) /* "imgui/core.pyx":9414 * ), inout_r_value * * def slider_int( # <<<<<<<<<<<<<< * str label, * int value, */ __pyx_tuple__406 = PyTuple_Pack(7, __pyx_n_s_label, __pyx_n_s_value, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__406)) __PYX_ERR(0, 9414, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__406); __Pyx_GIVEREF(__pyx_tuple__406); __pyx_codeobj__407 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__406, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_int, 9414, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__407)) __PYX_ERR(0, 9414, __pyx_L1_error) /* "imgui/core.pyx":9472 * * * def slider_int2( # <<<<<<<<<<<<<< * str label, * int value0, int value1, */ __pyx_tuple__408 = PyTuple_Pack(8, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__408)) __PYX_ERR(0, 9472, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__408); __Pyx_GIVEREF(__pyx_tuple__408); __pyx_codeobj__409 = (PyObject*)__Pyx_PyCode_New(7, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__408, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_int2, 9472, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__409)) __PYX_ERR(0, 9472, __pyx_L1_error) /* "imgui/core.pyx":9530 * * * def slider_int3( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, */ __pyx_tuple__410 = PyTuple_Pack(9, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__410)) __PYX_ERR(0, 9530, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__410); __Pyx_GIVEREF(__pyx_tuple__410); __pyx_codeobj__411 = (PyObject*)__Pyx_PyCode_New(8, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__410, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_int3, 9530, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__411)) __PYX_ERR(0, 9530, __pyx_L1_error) /* "imgui/core.pyx":9588 * * * def slider_int4( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, int value3, */ __pyx_tuple__412 = PyTuple_Pack(10, __pyx_n_s_label, __pyx_n_s_value0, __pyx_n_s_value1, __pyx_n_s_value2, __pyx_n_s_value3, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_values); if (unlikely(!__pyx_tuple__412)) __PYX_ERR(0, 9588, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__412); __Pyx_GIVEREF(__pyx_tuple__412); __pyx_codeobj__413 = (PyObject*)__Pyx_PyCode_New(9, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__412, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_int4, 9588, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__413)) __PYX_ERR(0, 9588, __pyx_L1_error) /* "imgui/core.pyx":9644 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_tuple__414 = PyTuple_Pack(13, __pyx_n_s_label, __pyx_n_s_data_type, __pyx_n_s_data, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_p_data, __pyx_n_s_p_min, __pyx_n_s_p_max, __pyx_n_s_fmt, __pyx_n_s_fmt_data, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__414)) __PYX_ERR(0, 9644, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__414); __Pyx_GIVEREF(__pyx_tuple__414); __pyx_codeobj__415 = (PyObject*)__Pyx_PyCode_New(7, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__414, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_scalar, 9644, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__415)) __PYX_ERR(0, 9644, __pyx_L1_error) /* "imgui/core.pyx":9706 * return changed, data * * def slider_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_tuple__416 = PyTuple_Pack(14, __pyx_n_s_label, __pyx_n_s_data_type, __pyx_n_s_data, __pyx_n_s_components, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_p_data, __pyx_n_s_p_min, __pyx_n_s_p_max, __pyx_n_s_fmt, __pyx_n_s_fmt_data, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__416)) __PYX_ERR(0, 9706, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__416); __Pyx_GIVEREF(__pyx_tuple__416); __pyx_codeobj__417 = (PyObject*)__Pyx_PyCode_New(8, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__416, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_slider_scalar_N, 9706, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__417)) __PYX_ERR(0, 9706, __pyx_L1_error) /* "imgui/core.pyx":9772 * return changed, data * * def v_slider_float( # <<<<<<<<<<<<<< * str label, * float width, */ __pyx_tuple__418 = PyTuple_Pack(9, __pyx_n_s_label, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_value, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__418)) __PYX_ERR(0, 9772, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__418); __Pyx_GIVEREF(__pyx_tuple__418); __pyx_codeobj__419 = (PyObject*)__Pyx_PyCode_New(8, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__418, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_v_slider_float, 9772, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__419)) __PYX_ERR(0, 9772, __pyx_L1_error) /* "imgui/core.pyx":9838 * * * def v_slider_int( # <<<<<<<<<<<<<< * str label, * float width, */ __pyx_tuple__420 = PyTuple_Pack(9, __pyx_n_s_label, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_value, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_inout_value); if (unlikely(!__pyx_tuple__420)) __PYX_ERR(0, 9838, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__420); __Pyx_GIVEREF(__pyx_tuple__420); __pyx_codeobj__421 = (PyObject*)__Pyx_PyCode_New(8, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__420, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_v_slider_int, 9838, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__421)) __PYX_ERR(0, 9838, __pyx_L1_error) /* "imgui/core.pyx":9903 * * * def v_slider_scalar( # <<<<<<<<<<<<<< * str label, * float width, */ __pyx_tuple__422 = PyTuple_Pack(15, __pyx_n_s_label, __pyx_n_s_width, __pyx_n_s_height, __pyx_n_s_data_type, __pyx_n_s_data, __pyx_n_s_min_value, __pyx_n_s_max_value, __pyx_n_s_format, __pyx_n_s_flags, __pyx_n_s_p_data, __pyx_n_s_p_min, __pyx_n_s_p_max, __pyx_n_s_fmt, __pyx_n_s_fmt_data, __pyx_n_s_changed); if (unlikely(!__pyx_tuple__422)) __PYX_ERR(0, 9903, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__422); __Pyx_GIVEREF(__pyx_tuple__422); __pyx_codeobj__423 = (PyObject*)__Pyx_PyCode_New(9, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__422, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_v_slider_scalar, 9903, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__423)) __PYX_ERR(0, 9903, __pyx_L1_error) /* "imgui/core.pyx":9971 * return changed, data * * def plot_lines( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ __pyx_tuple__424 = PyTuple_Pack(11, __pyx_n_s_label, __pyx_n_s_values, __pyx_n_s_values_count, __pyx_n_s_values_offset, __pyx_n_s_overlay_text, __pyx_n_s_scale_min, __pyx_n_s_scale_max, __pyx_n_s_graph_size, __pyx_n_s_stride, __pyx_n_s_overlay_text_ptr, __pyx_n_s_overlay_text_b); if (unlikely(!__pyx_tuple__424)) __PYX_ERR(0, 9971, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__424); __Pyx_GIVEREF(__pyx_tuple__424); __pyx_codeobj__425 = (PyObject*)__Pyx_PyCode_New(9, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__424, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_plot_lines, 9971, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__425)) __PYX_ERR(0, 9971, __pyx_L1_error) /* "imgui/core.pyx":10063 * * * def plot_histogram( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ __pyx_tuple__426 = PyTuple_Pack(11, __pyx_n_s_label, __pyx_n_s_values, __pyx_n_s_values_count, __pyx_n_s_values_offset, __pyx_n_s_overlay_text, __pyx_n_s_scale_min, __pyx_n_s_scale_max, __pyx_n_s_graph_size, __pyx_n_s_stride, __pyx_n_s_overlay_text_ptr, __pyx_n_s_overlay_text_b); if (unlikely(!__pyx_tuple__426)) __PYX_ERR(0, 10063, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__426); __Pyx_GIVEREF(__pyx_tuple__426); __pyx_codeobj__427 = (PyObject*)__Pyx_PyCode_New(9, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__426, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_plot_histogram, 10063, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__427)) __PYX_ERR(0, 10063, __pyx_L1_error) /* "imgui/core.pyx":10155 * ) * * def progress_bar(float fraction, size = (-FLOAT_MIN,0), str overlay = ""): # <<<<<<<<<<<<<< * """ Show a progress bar * */ __pyx_tuple__428 = PyTuple_Pack(3, __pyx_n_s_fraction, __pyx_n_s_size, __pyx_n_s_overlay); if (unlikely(!__pyx_tuple__428)) __PYX_ERR(0, 10155, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__428); __Pyx_GIVEREF(__pyx_tuple__428); __pyx_codeobj__429 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__428, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_progress_bar, 10155, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__429)) __PYX_ERR(0, 10155, __pyx_L1_error) /* "imgui/core.pyx":10184 * cimgui.ProgressBar(fraction, _cast_tuple_ImVec2(size), _bytes(overlay)) * * def set_item_default_focus(): # <<<<<<<<<<<<<< * """Make last item the default focused item of a window. * Please use instead of "if (is_window_appearing()) set_scroll_here()" to signify "default item". */ __pyx_codeobj__430 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_item_default_focus, 10184, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__430)) __PYX_ERR(0, 10184, __pyx_L1_error) /* "imgui/core.pyx":10194 * * * def set_keyboard_focus_here(int offset = 0): # <<<<<<<<<<<<<< * """Focus keyboard on the next widget. * Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. */ __pyx_tuple__431 = PyTuple_Pack(1, __pyx_n_s_offset); if (unlikely(!__pyx_tuple__431)) __PYX_ERR(0, 10194, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__431); __Pyx_GIVEREF(__pyx_tuple__431); __pyx_codeobj__432 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__431, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_keyboard_focus_here, 10194, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__432)) __PYX_ERR(0, 10194, __pyx_L1_error) /* "imgui/core.pyx":10204 * * * def is_item_hovered( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ __pyx_tuple__433 = PyTuple_Pack(1, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__433)) __PYX_ERR(0, 10204, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__433); __Pyx_GIVEREF(__pyx_tuple__433); __pyx_codeobj__434 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__433, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_hovered, 10204, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__434)) __PYX_ERR(0, 10204, __pyx_L1_error) /* "imgui/core.pyx":10218 * * * def is_item_focused(): # <<<<<<<<<<<<<< * """Check if the last item is focused * */ __pyx_codeobj__435 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_focused, 10218, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__435)) __PYX_ERR(0, 10218, __pyx_L1_error) /* "imgui/core.pyx":10230 * * * def is_item_active(): # <<<<<<<<<<<<<< * """Was the last item active? For ex. button being held or text field * being edited. Items that don't interact will always return false. */ __pyx_codeobj__436 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_active, 10230, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__436)) __PYX_ERR(0, 10230, __pyx_L1_error) /* "imgui/core.pyx":10243 * * * def is_item_clicked(cimgui.ImGuiMouseButton mouse_button = 0): # <<<<<<<<<<<<<< * """ Was the last item hovered and mouse clicked on? * Button or node that was just being clicked on. */ __pyx_tuple__437 = PyTuple_Pack(1, __pyx_n_s_mouse_button); if (unlikely(!__pyx_tuple__437)) __PYX_ERR(0, 10243, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__437); __Pyx_GIVEREF(__pyx_tuple__437); __pyx_codeobj__438 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__437, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_clicked, 10243, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__438)) __PYX_ERR(0, 10243, __pyx_L1_error) /* "imgui/core.pyx":10259 * * * def is_item_visible(): # <<<<<<<<<<<<<< * """Was the last item visible? Aka not out of sight due to * clipping/scrolling. */ __pyx_codeobj__439 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_visible, 10259, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__439)) __PYX_ERR(0, 10259, __pyx_L1_error) /* "imgui/core.pyx":10271 * return cimgui.IsItemVisible() * * def is_item_edited(): # <<<<<<<<<<<<<< * """Did the last item modify its underlying value this frame? or was pressed? * This is generally the same as the "bool" return value of many widgets. */ __pyx_codeobj__440 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_edited, 10271, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__440)) __PYX_ERR(0, 10271, __pyx_L1_error) /* "imgui/core.pyx":10283 * return cimgui.IsItemEdited() * * def is_item_activated(): # <<<<<<<<<<<<<< * """Was the last item just made active (item was previously inactive)? * */ __pyx_codeobj__441 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_activated, 10283, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__441)) __PYX_ERR(0, 10283, __pyx_L1_error) /* "imgui/core.pyx":10294 * return cimgui.IsItemActivated() * * def is_item_deactivated(): # <<<<<<<<<<<<<< * """Was the last item just made inactive (item was previously active)? * Useful for Undo/Redo patterns with widgets that requires continuous editing. */ __pyx_codeobj__442 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_deactivated, 10294, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__442)) __PYX_ERR(0, 10294, __pyx_L1_error) /* "imgui/core.pyx":10306 * return cimgui.IsItemDeactivated() * * def is_item_deactivated_after_edit(): # <<<<<<<<<<<<<< * """Was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). * Useful for Undo/Redo patterns with widgets that requires continuous editing. */ __pyx_codeobj__443 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_deactivated_after_edit, 10306, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__443)) __PYX_ERR(0, 10306, __pyx_L1_error) /* "imgui/core.pyx":10319 * return cimgui.IsItemDeactivatedAfterEdit() * * def is_item_toggled_open(): # <<<<<<<<<<<<<< * """Was the last item open state toggled? set by TreeNode(). * */ __pyx_codeobj__444 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_item_toggled_open, 10319, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__444)) __PYX_ERR(0, 10319, __pyx_L1_error) /* "imgui/core.pyx":10327 * return cimgui.IsItemToggledOpen() * * def is_any_item_hovered(): # <<<<<<<<<<<<<< * """Was any of the items hovered. * */ __pyx_codeobj__445 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_any_item_hovered, 10327, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__445)) __PYX_ERR(0, 10327, __pyx_L1_error) /* "imgui/core.pyx":10339 * * * def is_any_item_active(): # <<<<<<<<<<<<<< * """Was any of the items active. * */ __pyx_codeobj__446 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_any_item_active, 10339, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__446)) __PYX_ERR(0, 10339, __pyx_L1_error) /* "imgui/core.pyx":10351 * * * def is_any_item_focused(): # <<<<<<<<<<<<<< * """Is any of the items focused. * */ __pyx_codeobj__447 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_any_item_focused, 10351, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__447)) __PYX_ERR(0, 10351, __pyx_L1_error) /* "imgui/core.pyx":10363 * * * def get_item_rect_min(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ __pyx_codeobj__448 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_item_rect_min, 10363, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__448)) __PYX_ERR(0, 10363, __pyx_L1_error) /* "imgui/core.pyx":10375 * * * def get_item_rect_max(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ __pyx_codeobj__449 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_item_rect_max, 10375, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__449)) __PYX_ERR(0, 10375, __pyx_L1_error) /* "imgui/core.pyx":10387 * * * def get_item_rect_size(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ __pyx_codeobj__450 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_item_rect_size, 10387, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__450)) __PYX_ERR(0, 10387, __pyx_L1_error) /* "imgui/core.pyx":10399 * * * def set_item_allow_overlap(): # <<<<<<<<<<<<<< * """Allow last item to be overlapped by a subsequent item. * Sometimes useful with invisible buttons, selectables, etc. */ __pyx_codeobj__451 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_item_allow_overlap, 10399, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__451)) __PYX_ERR(0, 10399, __pyx_L1_error) /* "imgui/core.pyx":10409 * cimgui.SetItemAllowOverlap() * * def get_main_viewport(): # <<<<<<<<<<<<<< * """Currently represents the Platform Window created by the application which is hosting * our Dear ImGui windows. */ __pyx_codeobj__452 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_main_viewport, 10409, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__452)) __PYX_ERR(0, 10409, __pyx_L1_error) /* "imgui/core.pyx":10424 * return _ImGuiViewport.from_ptr(cimgui.GetMainViewport()) * * def is_window_hovered( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ __pyx_tuple__453 = PyTuple_Pack(1, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__453)) __PYX_ERR(0, 10424, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__453); __Pyx_GIVEREF(__pyx_tuple__453); __pyx_codeobj__454 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__453, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_window_hovered, 10424, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__454)) __PYX_ERR(0, 10424, __pyx_L1_error) /* "imgui/core.pyx":10439 * * * def is_window_focused( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ __pyx_tuple__455 = PyTuple_Pack(1, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__455)) __PYX_ERR(0, 10439, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__455); __Pyx_GIVEREF(__pyx_tuple__455); __pyx_codeobj__456 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__455, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_window_focused, 10439, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__456)) __PYX_ERR(0, 10439, __pyx_L1_error) /* "imgui/core.pyx":10453 * * * def is_rect_visible(float size_width, float size_height): # <<<<<<<<<<<<<< * """Test if a rectangle of the given size, starting from the cursor * position is visible (not clipped). */ __pyx_tuple__457 = PyTuple_Pack(2, __pyx_n_s_size_width, __pyx_n_s_size_height); if (unlikely(!__pyx_tuple__457)) __PYX_ERR(0, 10453, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__457); __Pyx_GIVEREF(__pyx_tuple__457); __pyx_codeobj__458 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__457, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_rect_visible, 10453, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__458)) __PYX_ERR(0, 10453, __pyx_L1_error) /* "imgui/core.pyx":10470 * * * def get_style_color_name(int index): # <<<<<<<<<<<<<< * """Get the style color name for a given ImGuiCol index. * */ __pyx_tuple__459 = PyTuple_Pack(4, __pyx_n_s_index, __pyx_n_s_index, __pyx_n_s_c_string, __pyx_n_s_py_string); if (unlikely(!__pyx_tuple__459)) __PYX_ERR(0, 10470, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__459); __Pyx_GIVEREF(__pyx_tuple__459); __pyx_codeobj__460 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__459, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_style_color_name, 10470, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__460)) __PYX_ERR(0, 10470, __pyx_L1_error) /* "imgui/core.pyx":10481 * * * def get_time(): # <<<<<<<<<<<<<< * """Seconds since program start. * */ __pyx_codeobj__461 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_time, 10481, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__461)) __PYX_ERR(0, 10481, __pyx_L1_error) /* "imgui/core.pyx":10493 * * * def get_background_draw_list(): # <<<<<<<<<<<<<< * """This draw list will be the first rendering one. * Useful to quickly draw shapes/text behind dear imgui contents. */ __pyx_codeobj__462 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_background_draw_list, 10493, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__462)) __PYX_ERR(0, 10493, __pyx_L1_error) /* "imgui/core.pyx":10505 * return _DrawList.from_ptr(cimgui.GetBackgroundDrawList()) * * def get_foreground_draw_list(): # <<<<<<<<<<<<<< * """This draw list will be the last rendered one. * Useful to quickly draw shapes/text over dear imgui contents. */ __pyx_codeobj__463 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_foreground_draw_list, 10505, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__463)) __PYX_ERR(0, 10505, __pyx_L1_error) /* "imgui/core.pyx":10518 * * * def get_key_index(int key): # <<<<<<<<<<<<<< * """Map ImGuiKey_* values into user's key index. == io.KeyMap[key] * */ __pyx_tuple__464 = PyTuple_Pack(2, __pyx_n_s_key, __pyx_n_s_key); if (unlikely(!__pyx_tuple__464)) __PYX_ERR(0, 10518, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__464); __Pyx_GIVEREF(__pyx_tuple__464); __pyx_codeobj__465 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__464, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_key_index, 10518, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__465)) __PYX_ERR(0, 10518, __pyx_L1_error) /* "imgui/core.pyx":10530 * * * def is_key_pressed(int key_index, bool repeat = False): # <<<<<<<<<<<<<< * """Was key pressed (went from !Down to Down). * If repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate */ __pyx_tuple__466 = PyTuple_Pack(2, __pyx_n_s_key_index, __pyx_n_s_repeat); if (unlikely(!__pyx_tuple__466)) __PYX_ERR(0, 10530, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__466); __Pyx_GIVEREF(__pyx_tuple__466); __pyx_codeobj__467 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__466, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_key_pressed, 10530, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__467)) __PYX_ERR(0, 10530, __pyx_L1_error) /* "imgui/core.pyx":10543 * * * def is_key_down(int key_index): # <<<<<<<<<<<<<< * """Returns if key is being held -- io.KeysDown[user_key_index]. * Note that imgui doesn't know the semantic of each entry of */ __pyx_tuple__468 = PyTuple_Pack(2, __pyx_n_s_key_index, __pyx_n_s_key_index); if (unlikely(!__pyx_tuple__468)) __PYX_ERR(0, 10543, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__468); __Pyx_GIVEREF(__pyx_tuple__468); __pyx_codeobj__469 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__468, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_key_down, 10543, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__469)) __PYX_ERR(0, 10543, __pyx_L1_error) /* "imgui/core.pyx":10558 * * * def is_mouse_hovering_rect( # <<<<<<<<<<<<<< * float r_min_x, float r_min_y, * float r_max_x, float r_max_y, */ __pyx_tuple__470 = PyTuple_Pack(5, __pyx_n_s_r_min_x, __pyx_n_s_r_min_y, __pyx_n_s_r_max_x, __pyx_n_s_r_max_y, __pyx_n_s_clip); if (unlikely(!__pyx_tuple__470)) __PYX_ERR(0, 10558, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__470); __Pyx_GIVEREF(__pyx_tuple__470); __pyx_codeobj__471 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__470, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_mouse_hovering_rect, 10558, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__471)) __PYX_ERR(0, 10558, __pyx_L1_error) /* "imgui/core.pyx":10586 * * * def is_mouse_double_clicked(int button = 0): # <<<<<<<<<<<<<< * """Return True if mouse was double-clicked. * */ __pyx_tuple__472 = PyTuple_Pack(1, __pyx_n_s_button); if (unlikely(!__pyx_tuple__472)) __PYX_ERR(0, 10586, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__472); __Pyx_GIVEREF(__pyx_tuple__472); __pyx_codeobj__473 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__472, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_mouse_double_clicked, 10586, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__473)) __PYX_ERR(0, 10586, __pyx_L1_error) /* "imgui/core.pyx":10603 * * * def is_mouse_clicked(int button = 0, bool repeat = False): # <<<<<<<<<<<<<< * """Returns if the mouse was clicked this frame. * */ __pyx_tuple__474 = PyTuple_Pack(2, __pyx_n_s_button, __pyx_n_s_repeat); if (unlikely(!__pyx_tuple__474)) __PYX_ERR(0, 10603, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__474); __Pyx_GIVEREF(__pyx_tuple__474); __pyx_codeobj__475 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__474, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_mouse_clicked, 10603, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__475)) __PYX_ERR(0, 10603, __pyx_L1_error) /* "imgui/core.pyx":10619 * * * def is_mouse_released(int button = 0): # <<<<<<<<<<<<<< * """Returns if the mouse was released this frame. * */ __pyx_tuple__476 = PyTuple_Pack(1, __pyx_n_s_button); if (unlikely(!__pyx_tuple__476)) __PYX_ERR(0, 10619, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__476); __Pyx_GIVEREF(__pyx_tuple__476); __pyx_codeobj__477 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__476, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_mouse_released, 10619, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__477)) __PYX_ERR(0, 10619, __pyx_L1_error) /* "imgui/core.pyx":10634 * * * def is_mouse_down(int button = 0): # <<<<<<<<<<<<<< * """Returns if the mouse is down. * */ __pyx_tuple__478 = PyTuple_Pack(1, __pyx_n_s_button); if (unlikely(!__pyx_tuple__478)) __PYX_ERR(0, 10634, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__478); __Pyx_GIVEREF(__pyx_tuple__478); __pyx_codeobj__479 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__478, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_mouse_down, 10634, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__479)) __PYX_ERR(0, 10634, __pyx_L1_error) /* "imgui/core.pyx":10649 * * * def is_mouse_dragging(int button, float lock_threshold = -1.0): # <<<<<<<<<<<<<< * """Returns if mouse is dragging. * */ __pyx_tuple__480 = PyTuple_Pack(2, __pyx_n_s_button, __pyx_n_s_lock_threshold); if (unlikely(!__pyx_tuple__480)) __PYX_ERR(0, 10649, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__480); __Pyx_GIVEREF(__pyx_tuple__480); __pyx_codeobj__481 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__480, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_is_mouse_dragging, 10649, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__481)) __PYX_ERR(0, 10649, __pyx_L1_error) /* "imgui/core.pyx":10666 * * * def get_mouse_drag_delta(int button=0, float lock_threshold = -1.0): # <<<<<<<<<<<<<< * """Dragging amount since clicking. * */ __pyx_tuple__482 = PyTuple_Pack(2, __pyx_n_s_button, __pyx_n_s_lock_threshold); if (unlikely(!__pyx_tuple__482)) __PYX_ERR(0, 10666, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__482); __Pyx_GIVEREF(__pyx_tuple__482); __pyx_codeobj__483 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__482, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_mouse_drag_delta, 10666, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__483)) __PYX_ERR(0, 10666, __pyx_L1_error) /* "imgui/core.pyx":10685 * * * def get_mouse_pos(): # <<<<<<<<<<<<<< * """Current mouse position. * */ __pyx_codeobj__484 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_mouse_pos, 10685, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__484)) __PYX_ERR(0, 10685, __pyx_L1_error) /* "imgui/core.pyx":10701 * * * def reset_mouse_drag_delta(int button = 0): # <<<<<<<<<<<<<< * """Reset the mouse dragging delta. * */ __pyx_tuple__485 = PyTuple_Pack(1, __pyx_n_s_button); if (unlikely(!__pyx_tuple__485)) __PYX_ERR(0, 10701, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__485); __Pyx_GIVEREF(__pyx_tuple__485); __pyx_codeobj__486 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__485, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_reset_mouse_drag_delta, 10701, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__486)) __PYX_ERR(0, 10701, __pyx_L1_error) /* "imgui/core.pyx":10713 * * * def get_mouse_cursor(): # <<<<<<<<<<<<<< * """Return the mouse cursor id. * */ __pyx_codeobj__487 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_mouse_cursor, 10713, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__487)) __PYX_ERR(0, 10713, __pyx_L1_error) /* "imgui/core.pyx":10722 * * * def set_mouse_cursor(cimgui.ImGuiMouseCursor mouse_cursor_type): # <<<<<<<<<<<<<< * """Set the mouse cursor id. * */ __pyx_tuple__488 = PyTuple_Pack(2, __pyx_n_s_mouse_cursor_type, __pyx_n_s_mouse_cursor_type); if (unlikely(!__pyx_tuple__488)) __PYX_ERR(0, 10722, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__488); __Pyx_GIVEREF(__pyx_tuple__488); __pyx_codeobj__489 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__488, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_mouse_cursor, 10722, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__489)) __PYX_ERR(0, 10722, __pyx_L1_error) /* "imgui/core.pyx":10733 * return cimgui.SetMouseCursor(mouse_cursor_type) * * def capture_mouse_from_app(bool want_capture_mouse_value = True): # <<<<<<<<<<<<<< * """Attention: misleading name! * Manually override io.WantCaptureMouse flag next frame */ __pyx_tuple__490 = PyTuple_Pack(1, __pyx_n_s_want_capture_mouse_value); if (unlikely(!__pyx_tuple__490)) __PYX_ERR(0, 10733, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__490); __Pyx_GIVEREF(__pyx_tuple__490); __pyx_codeobj__491 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__490, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_capture_mouse_from_app, 10733, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__491)) __PYX_ERR(0, 10733, __pyx_L1_error) /* "imgui/core.pyx":10746 * cimgui.CaptureMouseFromApp(want_capture_mouse_value) * * def get_clipboard_text(): # <<<<<<<<<<<<<< * """Also see the ``log_to_clipboard()`` function to capture GUI into clipboard, * or easily output text data to the clipboard. */ __pyx_codeobj__492 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_clipboard_text, 10746, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__492)) __PYX_ERR(0, 10746, __pyx_L1_error) /* "imgui/core.pyx":10758 * return _from_bytes(cimgui.GetClipboardText()) * * def load_ini_settings_from_disk(str ini_file_name): # <<<<<<<<<<<<<< * """Call after ``create_context()`` and before the first call to ``new_frame()``. * ``new_frame()`` automatically calls ``load_ini_settings_from_disk(io.ini_file_name)``. */ __pyx_tuple__493 = PyTuple_Pack(1, __pyx_n_s_ini_file_name); if (unlikely(!__pyx_tuple__493)) __PYX_ERR(0, 10758, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__493); __Pyx_GIVEREF(__pyx_tuple__493); __pyx_codeobj__494 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__493, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_load_ini_settings_from_disk, 10758, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__494)) __PYX_ERR(0, 10758, __pyx_L1_error) /* "imgui/core.pyx":10770 * cimgui.LoadIniSettingsFromDisk(_bytes(ini_file_name)) * * def load_ini_settings_from_memory(str ini_data): # <<<<<<<<<<<<<< * """Call after ``create_context()`` and before the first call to ``new_frame()`` * to provide .ini data from your own data source. */ __pyx_tuple__495 = PyTuple_Pack(1, __pyx_n_s_ini_data); if (unlikely(!__pyx_tuple__495)) __PYX_ERR(0, 10770, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__495); __Pyx_GIVEREF(__pyx_tuple__495); __pyx_codeobj__496 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__495, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_load_ini_settings_from_memory, 10770, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__496)) __PYX_ERR(0, 10770, __pyx_L1_error) /* "imgui/core.pyx":10780 * cimgui.LoadIniSettingsFromMemory(_bytes(ini_data), 0) * * def save_ini_settings_to_disk(str ini_file_name): # <<<<<<<<<<<<<< * """This is automatically called (if ``io.ini_file_name`` is not empty) * a few seconds after any modification that should be reflected in the .ini file */ __pyx_tuple__497 = PyTuple_Pack(1, __pyx_n_s_ini_file_name); if (unlikely(!__pyx_tuple__497)) __PYX_ERR(0, 10780, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__497); __Pyx_GIVEREF(__pyx_tuple__497); __pyx_codeobj__498 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__497, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_save_ini_settings_to_disk, 10780, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__498)) __PYX_ERR(0, 10780, __pyx_L1_error) /* "imgui/core.pyx":10793 * cimgui.SaveIniSettingsToDisk(_bytes(ini_file_name)) * * def save_ini_settings_to_memory(): # <<<<<<<<<<<<<< * """Return a string with the .ini data which you can save by your own mean. * Call when ``io.want_save_ini_settings`` is set, then save data by your own mean */ __pyx_codeobj__499 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_save_ini_settings_to_memory, 10793, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__499)) __PYX_ERR(0, 10793, __pyx_L1_error) /* "imgui/core.pyx":10806 * return _from_bytes(cimgui.SaveIniSettingsToMemory(NULL)) * * def set_clipboard_text(str text): # <<<<<<<<<<<<<< * """Set the clipboard content * */ __pyx_tuple__500 = PyTuple_Pack(1, __pyx_n_s_text); if (unlikely(!__pyx_tuple__500)) __PYX_ERR(0, 10806, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__500); __Pyx_GIVEREF(__pyx_tuple__500); __pyx_codeobj__501 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__500, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_clipboard_text, 10806, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__501)) __PYX_ERR(0, 10806, __pyx_L1_error) /* "imgui/core.pyx":10832 * # return cimgui.SetScrollHere(center_y_ratio) * * def set_scroll_here_x(float center_x_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll here X. * */ __pyx_tuple__502 = PyTuple_Pack(1, __pyx_n_s_center_x_ratio); if (unlikely(!__pyx_tuple__502)) __PYX_ERR(0, 10832, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__502); __Pyx_GIVEREF(__pyx_tuple__502); __pyx_codeobj__503 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__502, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_scroll_here_x, 10832, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__503)) __PYX_ERR(0, 10832, __pyx_L1_error) /* "imgui/core.pyx":10851 * return cimgui.SetScrollHereX(center_x_ratio) * * def set_scroll_here_y(float center_y_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll here Y. * */ __pyx_tuple__504 = PyTuple_Pack(1, __pyx_n_s_center_y_ratio); if (unlikely(!__pyx_tuple__504)) __PYX_ERR(0, 10851, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__504); __Pyx_GIVEREF(__pyx_tuple__504); __pyx_codeobj__505 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__504, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_scroll_here_y, 10851, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__505)) __PYX_ERR(0, 10851, __pyx_L1_error) /* "imgui/core.pyx":10871 * * * def set_scroll_from_pos_x(float local_x, float center_x_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll from position X * */ __pyx_tuple__506 = PyTuple_Pack(2, __pyx_n_s_local_x, __pyx_n_s_center_x_ratio); if (unlikely(!__pyx_tuple__506)) __PYX_ERR(0, 10871, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__506); __Pyx_GIVEREF(__pyx_tuple__506); __pyx_codeobj__507 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__506, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_scroll_from_pos_x, 10871, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__507)) __PYX_ERR(0, 10871, __pyx_L1_error) /* "imgui/core.pyx":10887 * * * def set_scroll_from_pos_y(float local_y, float center_y_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll from position Y * */ __pyx_tuple__508 = PyTuple_Pack(2, __pyx_n_s_local_y, __pyx_n_s_center_y_ratio); if (unlikely(!__pyx_tuple__508)) __PYX_ERR(0, 10887, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__508); __Pyx_GIVEREF(__pyx_tuple__508); __pyx_codeobj__509 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__508, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_scroll_from_pos_y, 10887, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__509)) __PYX_ERR(0, 10887, __pyx_L1_error) /* "imgui/core.pyx":10903 * * * def push_font(_Font font): # <<<<<<<<<<<<<< * """Push font on a stack. * */ __pyx_tuple__510 = PyTuple_Pack(1, __pyx_n_s_font); if (unlikely(!__pyx_tuple__510)) __PYX_ERR(0, 10903, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__510); __Pyx_GIVEREF(__pyx_tuple__510); __pyx_codeobj__511 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__510, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_push_font, 10903, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__511)) __PYX_ERR(0, 10903, __pyx_L1_error) /* "imgui/core.pyx":10942 * cimgui.PushFont(font._ptr) * * def pop_font(): # <<<<<<<<<<<<<< * """Pop font on a stack. * */ __pyx_codeobj__512 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_pop_font, 10942, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__512)) __PYX_ERR(0, 10942, __pyx_L1_error) /* "imgui/core.pyx":10992 * ) * * def color_convert_u32_to_float4(cimgui.ImU32 in_): # <<<<<<<<<<<<<< * """Convert an unsigned int 32 to 4 component r, g, b, a * */ __pyx_tuple__513 = PyTuple_Pack(2, __pyx_n_s_in, __pyx_n_s_in); if (unlikely(!__pyx_tuple__513)) __PYX_ERR(0, 10992, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__513); __Pyx_GIVEREF(__pyx_tuple__513); __pyx_codeobj__514 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__513, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_color_convert_u32_to_float4, 10992, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__514)) __PYX_ERR(0, 10992, __pyx_L1_error) /* "imgui/core.pyx":11006 * return _cast_ImVec4_tuple(cimgui.ColorConvertU32ToFloat4(in_)) * * def color_convert_float4_to_u32(float r, float g, float b, float a): # <<<<<<<<<<<<<< * """Convert a set of r, g, b, a floats to unsigned int 32 color * */ __pyx_tuple__515 = PyTuple_Pack(5, __pyx_n_s_r, __pyx_n_s_g, __pyx_n_s_b, __pyx_n_s_a, __pyx_n_s_color); if (unlikely(!__pyx_tuple__515)) __PYX_ERR(0, 11006, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__515); __Pyx_GIVEREF(__pyx_tuple__515); __pyx_codeobj__516 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__515, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_color_convert_float4_to_u32, 11006, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__516)) __PYX_ERR(0, 11006, __pyx_L1_error) /* "imgui/core.pyx":11021 * return cimgui.ColorConvertFloat4ToU32(color) * * def color_convert_rgb_to_hsv(float r, float g, float b): # <<<<<<<<<<<<<< * """Convert color from RGB space to HSV space * */ __pyx_tuple__517 = PyTuple_Pack(6, __pyx_n_s_r, __pyx_n_s_g, __pyx_n_s_b, __pyx_n_s_out_h, __pyx_n_s_out_s, __pyx_n_s_out_v); if (unlikely(!__pyx_tuple__517)) __PYX_ERR(0, 11021, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__517); __Pyx_GIVEREF(__pyx_tuple__517); __pyx_codeobj__518 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__517, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_color_convert_rgb_to_hsv, 11021, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__518)) __PYX_ERR(0, 11021, __pyx_L1_error) /* "imgui/core.pyx":11038 * return out_h, out_s, out_v * * def color_convert_hsv_to_rgb(float h, float s, float v): # <<<<<<<<<<<<<< * """Convert color from HSV space to RGB space * */ __pyx_tuple__519 = PyTuple_Pack(6, __pyx_n_s_h, __pyx_n_s_s, __pyx_n_s_v, __pyx_n_s_out_r, __pyx_n_s_out_g, __pyx_n_s_out_b); if (unlikely(!__pyx_tuple__519)) __PYX_ERR(0, 11038, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__519); __Pyx_GIVEREF(__pyx_tuple__519); __pyx_codeobj__520 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__519, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_color_convert_hsv_to_rgb, 11038, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__520)) __PYX_ERR(0, 11038, __pyx_L1_error) /* "imgui/core.pyx":11380 * * * def separator(): # <<<<<<<<<<<<<< * """Add vertical line as a separator beween elements. * */ __pyx_codeobj__521 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_separator, 11380, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__521)) __PYX_ERR(0, 11380, __pyx_L1_error) /* "imgui/core.pyx":11407 * * * def same_line(float position=0.0, float spacing=-1.0): # <<<<<<<<<<<<<< * """Call between widgets or groups to layout them horizontally. * */ __pyx_tuple__522 = PyTuple_Pack(2, __pyx_n_s_position, __pyx_n_s_spacing); if (unlikely(!__pyx_tuple__522)) __PYX_ERR(0, 11407, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__522); __Pyx_GIVEREF(__pyx_tuple__522); __pyx_codeobj__523 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__522, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_same_line, 11407, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__523)) __PYX_ERR(0, 11407, __pyx_L1_error) /* "imgui/core.pyx":11440 * * * def new_line(): # <<<<<<<<<<<<<< * """Undo :any:`same_line()` call. * */ __pyx_codeobj__524 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_new_line, 11440, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__524)) __PYX_ERR(0, 11440, __pyx_L1_error) /* "imgui/core.pyx":11449 * * * def spacing(): # <<<<<<<<<<<<<< * """Add vertical spacing beween elements. * */ __pyx_codeobj__525 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_spacing, 11449, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__525)) __PYX_ERR(0, 11449, __pyx_L1_error) /* "imgui/core.pyx":11476 * * * def dummy(width, height): # <<<<<<<<<<<<<< * """Add dummy element of given size. * */ __pyx_tuple__526 = PyTuple_Pack(2, __pyx_n_s_width, __pyx_n_s_height); if (unlikely(!__pyx_tuple__526)) __PYX_ERR(0, 11476, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__526); __Pyx_GIVEREF(__pyx_tuple__526); __pyx_codeobj__527 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__526, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_dummy, 11476, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__527)) __PYX_ERR(0, 11476, __pyx_L1_error) /* "imgui/core.pyx":11500 * * * def indent(float width=0.0): # <<<<<<<<<<<<<< * """Move content to right by indent width. * */ __pyx_tuple__528 = PyTuple_Pack(1, __pyx_n_s_width); if (unlikely(!__pyx_tuple__528)) __PYX_ERR(0, 11500, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__528); __Pyx_GIVEREF(__pyx_tuple__528); __pyx_codeobj__529 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__528, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_indent, 11500, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__529)) __PYX_ERR(0, 11500, __pyx_L1_error) /* "imgui/core.pyx":11531 * * * def unindent(float width=0.0): # <<<<<<<<<<<<<< * """Move content to left by indent width. * */ __pyx_tuple__530 = PyTuple_Pack(1, __pyx_n_s_width); if (unlikely(!__pyx_tuple__530)) __PYX_ERR(0, 11531, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__530); __Pyx_GIVEREF(__pyx_tuple__530); __pyx_codeobj__531 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__530, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_unindent, 11531, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__531)) __PYX_ERR(0, 11531, __pyx_L1_error) /* "imgui/core.pyx":11562 * * * def columns(int count=1, str identifier=None, bool border=True): # <<<<<<<<<<<<<< * """Setup number of columns. Use an identifier to distinguish multiple * column sets. close with ``columns(1)``. */ __pyx_tuple__532 = PyTuple_Pack(3, __pyx_n_s_count, __pyx_n_s_identifier, __pyx_n_s_border); if (unlikely(!__pyx_tuple__532)) __PYX_ERR(0, 11562, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__532); __Pyx_GIVEREF(__pyx_tuple__532); __pyx_codeobj__533 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__532, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_columns, 11562, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__533)) __PYX_ERR(0, 11562, __pyx_L1_error) /* "imgui/core.pyx":11624 * * * def next_column(): # <<<<<<<<<<<<<< * """Move to the next column drawing. * */ __pyx_codeobj__534 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_next_column, 11624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__534)) __PYX_ERR(0, 11624, __pyx_L1_error) /* "imgui/core.pyx":11637 * * * def get_column_index(): # <<<<<<<<<<<<<< * """Returns the current column index. * */ __pyx_codeobj__535 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_column_index, 11637, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__535)) __PYX_ERR(0, 11637, __pyx_L1_error) /* "imgui/core.pyx":11653 * * * def get_column_offset(int column_index=-1): # <<<<<<<<<<<<<< * """Returns position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column, otherwise 0 to */ __pyx_tuple__536 = PyTuple_Pack(1, __pyx_n_s_column_index); if (unlikely(!__pyx_tuple__536)) __PYX_ERR(0, 11653, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__536); __Pyx_GIVEREF(__pyx_tuple__536); __pyx_codeobj__537 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__536, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_column_offset, 11653, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__537)) __PYX_ERR(0, 11653, __pyx_L1_error) /* "imgui/core.pyx":11675 * * * def set_column_offset(int column_index, float offset_x): # <<<<<<<<<<<<<< * """Set the position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column. */ __pyx_tuple__538 = PyTuple_Pack(2, __pyx_n_s_column_index, __pyx_n_s_offset_x); if (unlikely(!__pyx_tuple__538)) __PYX_ERR(0, 11675, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__538); __Pyx_GIVEREF(__pyx_tuple__538); __pyx_codeobj__539 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__538, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_column_offset, 11675, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__539)) __PYX_ERR(0, 11675, __pyx_L1_error) /* "imgui/core.pyx":11693 * * * def get_column_width(int column_index=-1): # <<<<<<<<<<<<<< * """Return the column width. * */ __pyx_tuple__540 = PyTuple_Pack(1, __pyx_n_s_column_index); if (unlikely(!__pyx_tuple__540)) __PYX_ERR(0, 11693, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__540); __Pyx_GIVEREF(__pyx_tuple__540); __pyx_codeobj__541 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__540, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_column_width, 11693, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__541)) __PYX_ERR(0, 11693, __pyx_L1_error) /* "imgui/core.pyx":11709 * * * def set_column_width(int column_index, float width): # <<<<<<<<<<<<<< * """Set the position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column. */ __pyx_tuple__542 = PyTuple_Pack(2, __pyx_n_s_column_index, __pyx_n_s_width); if (unlikely(!__pyx_tuple__542)) __PYX_ERR(0, 11709, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__542); __Pyx_GIVEREF(__pyx_tuple__542); __pyx_codeobj__543 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__542, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_column_width, 11709, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__543)) __PYX_ERR(0, 11709, __pyx_L1_error) /* "imgui/core.pyx":11727 * * * def get_columns_count(): # <<<<<<<<<<<<<< * """Get count of the columns in the current table. * */ __pyx_codeobj__544 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_columns_count, 11727, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__544)) __PYX_ERR(0, 11727, __pyx_L1_error) /* "imgui/core.pyx":11782 * * * def begin_tab_bar(str identifier, cimgui.ImGuiTabBarFlags flags = 0): # <<<<<<<<<<<<<< * """Create and append into a TabBar * */ __pyx_tuple__545 = PyTuple_Pack(2, __pyx_n_s_identifier, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__545)) __PYX_ERR(0, 11782, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__545); __Pyx_GIVEREF(__pyx_tuple__545); __pyx_codeobj__546 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__545, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_tab_bar, 11782, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__546)) __PYX_ERR(0, 11782, __pyx_L1_error) /* "imgui/core.pyx":11804 * ) * * def end_tab_bar(): # <<<<<<<<<<<<<< * """End a previously opened tab bar. * Only call this function if ``begin_tab_bar().opened`` is True. */ __pyx_codeobj__547 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_tab_bar, 11804, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__547)) __PYX_ERR(0, 11804, __pyx_L1_error) /* "imgui/core.pyx":11860 * * * def begin_tab_item(str label, opened = None, cimgui.ImGuiTabItemFlags flags = 0): # <<<<<<<<<<<<<< * """Create a Tab. * */ __pyx_tuple__548 = PyTuple_Pack(4, __pyx_n_s_label, __pyx_n_s_opened, __pyx_n_s_flags, __pyx_n_s_inout_opened); if (unlikely(!__pyx_tuple__548)) __PYX_ERR(0, 11860, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__548); __Pyx_GIVEREF(__pyx_tuple__548); __pyx_codeobj__549 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__548, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_tab_item, 11860, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__549)) __PYX_ERR(0, 11860, __pyx_L1_error) /* "imgui/core.pyx":11943 * ) * * def end_tab_item(): # <<<<<<<<<<<<<< * """End a previously opened tab item. * Only call this function if ``begin_tab_item().selected`` is True. */ __pyx_codeobj__550 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_tab_item, 11943, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__550)) __PYX_ERR(0, 11943, __pyx_L1_error) /* "imgui/core.pyx":11952 * cimgui.EndTabItem() * * def tab_item_button(str label, cimgui.ImGuiTabItemFlags flags = 0): # <<<<<<<<<<<<<< * """Create a Tab behaving like a button. * Cannot be selected in the tab bar. */ __pyx_tuple__551 = PyTuple_Pack(2, __pyx_n_s_label, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__551)) __PYX_ERR(0, 11952, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__551); __Pyx_GIVEREF(__pyx_tuple__551); __pyx_codeobj__552 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__551, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_tab_item_button, 11952, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__552)) __PYX_ERR(0, 11952, __pyx_L1_error) /* "imgui/core.pyx":11986 * return cimgui.TabItemButton(_bytes(label), flags) * * def set_tab_item_closed(str tab_or_docked_window_label): # <<<<<<<<<<<<<< * """Notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). * For tab-bar: call after BeginTabBar() and before Tab submissions. */ __pyx_tuple__553 = PyTuple_Pack(1, __pyx_n_s_tab_or_docked_window_label); if (unlikely(!__pyx_tuple__553)) __PYX_ERR(0, 11986, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__553); __Pyx_GIVEREF(__pyx_tuple__553); __pyx_codeobj__554 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__553, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_tab_item_closed, 11986, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__554)) __PYX_ERR(0, 11986, __pyx_L1_error) /* "imgui/core.pyx":12060 * * * def begin_drag_drop_source(cimgui.ImGuiDragDropFlags flags=0): # <<<<<<<<<<<<<< * """Set the current item as a drag and drop source. If ``dragging`` is True, you * can call :func:`set_drag_drop_payload` and :func:`end_drag_drop_source`. */ __pyx_tuple__555 = PyTuple_Pack(1, __pyx_n_s_flags); if (unlikely(!__pyx_tuple__555)) __PYX_ERR(0, 12060, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__555); __Pyx_GIVEREF(__pyx_tuple__555); __pyx_codeobj__556 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__555, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_drag_drop_source, 12060, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__556)) __PYX_ERR(0, 12060, __pyx_L1_error) /* "imgui/core.pyx":12122 * * * def set_drag_drop_payload(str type, bytes data, cimgui.ImGuiCond condition=0): # <<<<<<<<<<<<<< * """Set the payload for a drag and drop source. Only call after * :func:`begin_drag_drop_source` returns True. */ __pyx_tuple__557 = PyTuple_Pack(3, __pyx_n_s_type, __pyx_n_s_data, __pyx_n_s_condition); if (unlikely(!__pyx_tuple__557)) __PYX_ERR(0, 12122, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__557); __Pyx_GIVEREF(__pyx_tuple__557); __pyx_codeobj__558 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__557, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_drag_drop_payload, 12122, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__558)) __PYX_ERR(0, 12122, __pyx_L1_error) /* "imgui/core.pyx":12142 * * * def end_drag_drop_source(): # <<<<<<<<<<<<<< * """End the drag and drop source. * Only call if ``begin_drag_drop_source().dragging`` is True. */ __pyx_codeobj__559 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_drag_drop_source, 12142, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__559)) __PYX_ERR(0, 12142, __pyx_L1_error) /* "imgui/core.pyx":12196 * * * def begin_drag_drop_target(): # <<<<<<<<<<<<<< * """Set the current item as a drag and drop target. If ``hovered`` is True, you * can call :func:`accept_drag_drop_payload` and :func:`end_drag_drop_target`. */ __pyx_codeobj__560 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_drag_drop_target, 12196, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__560)) __PYX_ERR(0, 12196, __pyx_L1_error) /* "imgui/core.pyx":12219 * * * def accept_drag_drop_payload(str type, cimgui.ImGuiDragDropFlags flags=0): # <<<<<<<<<<<<<< * """Get the drag and drop payload. Only call after :func:`begin_drag_drop_target` * returns True. */ __pyx_tuple__561 = PyTuple_Pack(4, __pyx_n_s_type, __pyx_n_s_flags, __pyx_n_s_payload, __pyx_n_s_data); if (unlikely(!__pyx_tuple__561)) __PYX_ERR(0, 12219, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__561); __Pyx_GIVEREF(__pyx_tuple__561); __pyx_codeobj__562 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__561, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_accept_drag_drop_payload, 12219, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__562)) __PYX_ERR(0, 12219, __pyx_L1_error) /* "imgui/core.pyx":12244 * * * def end_drag_drop_target(): # <<<<<<<<<<<<<< * """End the drag and drop source. * Only call this function if ``begin_drag_drop_target().hovered`` is True. */ __pyx_codeobj__563 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_drag_drop_target, 12244, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__563)) __PYX_ERR(0, 12244, __pyx_L1_error) /* "imgui/core.pyx":12258 * * * def get_drag_drop_payload(): # <<<<<<<<<<<<<< * """Peek directly into the current payload from anywhere. * May return NULL. */ __pyx_tuple__564 = PyTuple_Pack(2, __pyx_n_s_payload, __pyx_n_s_data); if (unlikely(!__pyx_tuple__564)) __PYX_ERR(0, 12258, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__564); __Pyx_GIVEREF(__pyx_tuple__564); __pyx_codeobj__565 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__564, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_drag_drop_payload, 12258, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__565)) __PYX_ERR(0, 12258, __pyx_L1_error) /* "imgui/core.pyx":12273 * return data[:payload.DataSize] * * def push_clip_rect( # <<<<<<<<<<<<<< * float clip_rect_min_x, * float clip_rect_min_y, */ __pyx_tuple__566 = PyTuple_Pack(5, __pyx_n_s_clip_rect_min_x, __pyx_n_s_clip_rect_min_y, __pyx_n_s_clip_rect_max_x, __pyx_n_s_clip_rect_max_y, __pyx_n_s_intersect_with_current_clip_rect); if (unlikely(!__pyx_tuple__566)) __PYX_ERR(0, 12273, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__566); __Pyx_GIVEREF(__pyx_tuple__566); __pyx_codeobj__567 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__566, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_push_clip_rect, 12273, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__567)) __PYX_ERR(0, 12273, __pyx_L1_error) /* "imgui/core.pyx":12324 * ) * * def pop_clip_rect(): # <<<<<<<<<<<<<< * """Pop the last clip region from the stack. See: :func:`push_clip_rect()`. * */ __pyx_codeobj__568 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_pop_clip_rect, 12324, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__568)) __PYX_ERR(0, 12324, __pyx_L1_error) /* "imgui/core.pyx":12358 * * * def begin_group(): # <<<<<<<<<<<<<< * """Start item group and lock its horizontal starting position. * */ __pyx_codeobj__569 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_begin_group, 12358, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__569)) __PYX_ERR(0, 12358, __pyx_L1_error) /* "imgui/core.pyx":12413 * * * def end_group(): # <<<<<<<<<<<<<< * """End group (see: :any:`begin_group`). * */ __pyx_codeobj__570 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_end_group, 12413, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__570)) __PYX_ERR(0, 12413, __pyx_L1_error) /* "imgui/core.pyx":12422 * * * def get_cursor_pos(): # <<<<<<<<<<<<<< * """Get the cursor position. * */ __pyx_codeobj__571 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_cursor_pos, 12422, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__571)) __PYX_ERR(0, 12422, __pyx_L1_error) /* "imgui/core.pyx":12431 * * * def get_cursor_pos_x(): # <<<<<<<<<<<<<< * return cimgui.GetCursorPosX() * */ __pyx_codeobj__572 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_cursor_pos_x, 12431, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__572)) __PYX_ERR(0, 12431, __pyx_L1_error) /* "imgui/core.pyx":12435 * * * def get_cursor_pos_y(): # <<<<<<<<<<<<<< * return cimgui.GetCursorPosY() * */ __pyx_codeobj__573 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_cursor_pos_y, 12435, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__573)) __PYX_ERR(0, 12435, __pyx_L1_error) /* "imgui/core.pyx":12439 * * * def set_cursor_pos(local_pos): # <<<<<<<<<<<<<< * """Set the cursor position in local coordinates [0..] (useful to work with ImDrawList API) * */ __pyx_tuple__574 = PyTuple_Pack(1, __pyx_n_s_local_pos); if (unlikely(!__pyx_tuple__574)) __PYX_ERR(0, 12439, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__574); __Pyx_GIVEREF(__pyx_tuple__574); __pyx_codeobj__575 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__574, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_cursor_pos, 12439, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__575)) __PYX_ERR(0, 12439, __pyx_L1_error) /* "imgui/core.pyx":12448 * * * def set_cursor_pos_x(float x): # <<<<<<<<<<<<<< * cimgui.SetCursorPosX(x) * */ __pyx_tuple__576 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__576)) __PYX_ERR(0, 12448, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__576); __Pyx_GIVEREF(__pyx_tuple__576); __pyx_codeobj__577 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__576, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_cursor_pos_x, 12448, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__577)) __PYX_ERR(0, 12448, __pyx_L1_error) /* "imgui/core.pyx":12452 * * * def set_cursor_pos_y(float y): # <<<<<<<<<<<<<< * cimgui.SetCursorPosY(y) * */ __pyx_tuple__578 = PyTuple_Pack(2, __pyx_n_s_y, __pyx_n_s_y); if (unlikely(!__pyx_tuple__578)) __PYX_ERR(0, 12452, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__578); __Pyx_GIVEREF(__pyx_tuple__578); __pyx_codeobj__579 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__578, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_cursor_pos_y, 12452, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__579)) __PYX_ERR(0, 12452, __pyx_L1_error) /* "imgui/core.pyx":12456 * * * def get_cursor_start_pos(): # <<<<<<<<<<<<<< * """Get the initial cursor position. * */ __pyx_codeobj__580 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_cursor_start_pos, 12456, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__580)) __PYX_ERR(0, 12456, __pyx_L1_error) /* "imgui/core.pyx":12465 * * * def get_cursor_screen_pos(): # <<<<<<<<<<<<<< * """Get the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) * */ __pyx_codeobj__581 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_cursor_screen_pos, 12465, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__581)) __PYX_ERR(0, 12465, __pyx_L1_error) /* "imgui/core.pyx":12474 * * * def set_cursor_screen_pos(screen_pos): # <<<<<<<<<<<<<< * """Set the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) * */ __pyx_tuple__582 = PyTuple_Pack(1, __pyx_n_s_screen_pos); if (unlikely(!__pyx_tuple__582)) __PYX_ERR(0, 12474, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__582); __Pyx_GIVEREF(__pyx_tuple__582); __pyx_codeobj__583 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__582, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_cursor_screen_pos, 12474, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__583)) __PYX_ERR(0, 12474, __pyx_L1_error) /* "imgui/core.pyx":12489 * set_cursor_screen_position = set_cursor_screen_pos * * def align_text_to_frame_padding(): # <<<<<<<<<<<<<< * cimgui.AlignTextToFramePadding() * */ __pyx_codeobj__584 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_align_text_to_frame_padding, 12489, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__584)) __PYX_ERR(0, 12489, __pyx_L1_error) /* "imgui/core.pyx":12492 * cimgui.AlignTextToFramePadding() * * def get_text_line_height(): # <<<<<<<<<<<<<< * """Get text line height. * */ __pyx_codeobj__585 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_text_line_height, 12492, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__585)) __PYX_ERR(0, 12492, __pyx_L1_error) /* "imgui/core.pyx":12504 * * * def get_text_line_height_with_spacing(): # <<<<<<<<<<<<<< * """Get text line height, with spacing. * */ __pyx_codeobj__586 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_text_line_height_with_spacin, 12504, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__586)) __PYX_ERR(0, 12504, __pyx_L1_error) /* "imgui/core.pyx":12516 * * * def get_frame_height(): # <<<<<<<<<<<<<< * """~ FontSize + style.FramePadding.y * 2 * */ __pyx_codeobj__587 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_frame_height, 12516, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__587)) __PYX_ERR(0, 12516, __pyx_L1_error) /* "imgui/core.pyx":12526 * * * def get_frame_height_with_spacing(): # <<<<<<<<<<<<<< * """~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) * */ __pyx_codeobj__588 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_frame_height_with_spacing, 12526, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__588)) __PYX_ERR(0, 12526, __pyx_L1_error) /* "imgui/core.pyx":12535 * * * def create_context(_FontAtlas shared_font_atlas = None): # <<<<<<<<<<<<<< * """CreateContext * */ __pyx_tuple__589 = PyTuple_Pack(2, __pyx_n_s_shared_font_atlas, __pyx_n_s_ptr); if (unlikely(!__pyx_tuple__589)) __PYX_ERR(0, 12535, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__589); __Pyx_GIVEREF(__pyx_tuple__589); __pyx_codeobj__590 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__589, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_create_context, 12535, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__590)) __PYX_ERR(0, 12535, __pyx_L1_error) /* "imgui/core.pyx":12561 * * * def destroy_context(_ImGuiContext ctx = None): # <<<<<<<<<<<<<< * """DestroyContext * */ __pyx_tuple__591 = PyTuple_Pack(1, __pyx_n_s_ctx); if (unlikely(!__pyx_tuple__591)) __PYX_ERR(0, 12561, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__591); __Pyx_GIVEREF(__pyx_tuple__591); __pyx_codeobj__592 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__591, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_destroy_context, 12561, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__592)) __PYX_ERR(0, 12561, __pyx_L1_error) /* "imgui/core.pyx":12582 * * * def get_current_context(): # <<<<<<<<<<<<<< * """GetCurrentContext * */ __pyx_tuple__593 = PyTuple_Pack(1, __pyx_n_s_ptr); if (unlikely(!__pyx_tuple__593)) __PYX_ERR(0, 12582, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__593); __Pyx_GIVEREF(__pyx_tuple__593); __pyx_codeobj__594 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__593, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_get_current_context, 12582, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__594)) __PYX_ERR(0, 12582, __pyx_L1_error) /* "imgui/core.pyx":12594 * * * def set_current_context(_ImGuiContext ctx): # <<<<<<<<<<<<<< * """SetCurrentContext * */ __pyx_tuple__595 = PyTuple_Pack(1, __pyx_n_s_ctx); if (unlikely(!__pyx_tuple__595)) __PYX_ERR(0, 12594, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__595); __Pyx_GIVEREF(__pyx_tuple__595); __pyx_codeobj__596 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__595, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_set_current_context, 12594, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__596)) __PYX_ERR(0, 12594, __pyx_L1_error) /* "imgui/core.pyx":12607 * * * def push_id(str str_id): # <<<<<<<<<<<<<< * """Push an ID into the ID stack * */ __pyx_tuple__597 = PyTuple_Pack(1, __pyx_n_s_str_id); if (unlikely(!__pyx_tuple__597)) __PYX_ERR(0, 12607, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__597); __Pyx_GIVEREF(__pyx_tuple__597); __pyx_codeobj__598 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__597, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_push_id, 12607, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__598)) __PYX_ERR(0, 12607, __pyx_L1_error) /* "imgui/core.pyx":12619 * * * def pop_id(): # <<<<<<<<<<<<<< * """Pop from the ID stack * */ __pyx_codeobj__599 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_pop_id, 12619, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__599)) __PYX_ERR(0, 12619, __pyx_L1_error) /* "imgui/core.pyx":12627 * cimgui.PopID() * * def _ansifeed_text_ansi(str text): # <<<<<<<<<<<<<< * """Add ANSI-escape-formatted text to current widget stack. * */ __pyx_tuple__600 = PyTuple_Pack(1, __pyx_n_s_text); if (unlikely(!__pyx_tuple__600)) __PYX_ERR(0, 12627, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__600); __Pyx_GIVEREF(__pyx_tuple__600); __pyx_codeobj__601 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__600, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_ansifeed_text_ansi, 12627, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__601)) __PYX_ERR(0, 12627, __pyx_L1_error) /* "imgui/core.pyx":12652 * * * def _ansifeed_text_ansi_colored(str text, float r, float g, float b, float a=1.): # <<<<<<<<<<<<<< * """Add pre-colored ANSI-escape-formatted text to current widget stack. * */ __pyx_tuple__602 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_r, __pyx_n_s_g, __pyx_n_s_b, __pyx_n_s_a); if (unlikely(!__pyx_tuple__602)) __PYX_ERR(0, 12652, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__602); __Pyx_GIVEREF(__pyx_tuple__602); __pyx_codeobj__603 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__602, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_ansifeed_text_ansi_colored, 12652, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__603)) __PYX_ERR(0, 12652, __pyx_L1_error) /* "imgui/core.pyx":12694 * @contextmanager * @cython.binding(True) * def _py_font(_Font font): # <<<<<<<<<<<<<< * """Use specified font in given context. * */ __pyx_tuple__604 = PyTuple_Pack(1, __pyx_n_s_font); if (unlikely(!__pyx_tuple__604)) __PYX_ERR(0, 12694, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__604); __Pyx_GIVEREF(__pyx_tuple__604); __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__604, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_font, 12694, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(0, 12694, __pyx_L1_error) /* "imgui/core.pyx":12727 * @contextmanager * @cython.binding(True) * def _py_styled(cimgui.ImGuiStyleVar variable, value): # <<<<<<<<<<<<<< * # note: we treat bool value as integer to guess if we are required to pop * # anything because IMGUI may simply skip pushing */ __pyx_tuple__605 = PyTuple_Pack(3, __pyx_n_s_variable, __pyx_n_s_value, __pyx_n_s_count); if (unlikely(!__pyx_tuple__605)) __PYX_ERR(0, 12727, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__605); __Pyx_GIVEREF(__pyx_tuple__605); __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__605, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_styled, 12727, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 12727, __pyx_L1_error) /* "imgui/core.pyx":12737 * @contextmanager * @cython.binding(True) * def _py_colored( # <<<<<<<<<<<<<< * cimgui.ImGuiCol variable, * float r, */ __pyx_tuple__606 = PyTuple_Pack(6, __pyx_n_s_variable, __pyx_n_s_r, __pyx_n_s_g, __pyx_n_s_b, __pyx_n_s_a, __pyx_n_s_count); if (unlikely(!__pyx_tuple__606)) __PYX_ERR(0, 12737, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__606); __Pyx_GIVEREF(__pyx_tuple__606); __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__606, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_colored, 12737, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(0, 12737, __pyx_L1_error) /* "imgui/core.pyx":12753 * @contextmanager * @cython.binding(True) * def _py_istyled(*variables_and_values): # <<<<<<<<<<<<<< * # todo: rename to nstyled? * count = 0 */ __pyx_tuple__607 = PyTuple_Pack(5, __pyx_n_s_variables_and_values, __pyx_n_s_count, __pyx_n_s_iterator, __pyx_n_s_var, __pyx_n_s_val); if (unlikely(!__pyx_tuple__607)) __PYX_ERR(0, 12753, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__607); __Pyx_GIVEREF(__pyx_tuple__607); __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__607, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_istyled, 12753, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(0, 12753, __pyx_L1_error) /* "imgui/core.pyx":12782 * @contextmanager * @cython.binding(True) * def _py_scoped(str str_id): # <<<<<<<<<<<<<< * """Use scoped ID within a block of code. * */ __pyx_tuple__608 = PyTuple_Pack(1, __pyx_n_s_str_id); if (unlikely(!__pyx_tuple__608)) __PYX_ERR(0, 12782, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__608); __Pyx_GIVEREF(__pyx_tuple__608); __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__608, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_scoped, 12782, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(0, 12782, __pyx_L1_error) /* "imgui/core.pyx":12799 * * * def _py_vertex_buffer_vertex_pos_offset(): # <<<<<<<<<<<<<< * return &(NULL).pos * */ __pyx_codeobj__609 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_vertex_buffer_vertex_pos_off, 12799, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__609)) __PYX_ERR(0, 12799, __pyx_L1_error) /* "imgui/core.pyx":12802 * return &(NULL).pos * * def _py_vertex_buffer_vertex_uv_offset(): # <<<<<<<<<<<<<< * return &(NULL).uv * */ __pyx_codeobj__610 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_vertex_buffer_vertex_uv_offs, 12802, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__610)) __PYX_ERR(0, 12802, __pyx_L1_error) /* "imgui/core.pyx":12805 * return &(NULL).uv * * def _py_vertex_buffer_vertex_col_offset(): # <<<<<<<<<<<<<< * return &(NULL).col * */ __pyx_codeobj__611 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_vertex_buffer_vertex_col_off, 12805, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__611)) __PYX_ERR(0, 12805, __pyx_L1_error) /* "imgui/core.pyx":12808 * return &(NULL).col * * def _py_vertex_buffer_vertex_size(): # <<<<<<<<<<<<<< * return sizeof(cimgui.ImDrawVert) * */ __pyx_codeobj__612 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_vertex_buffer_vertex_size, 12808, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__612)) __PYX_ERR(0, 12808, __pyx_L1_error) /* "imgui/core.pyx":12811 * return sizeof(cimgui.ImDrawVert) * * def _py_index_buffer_index_size(): # <<<<<<<<<<<<<< * return sizeof(cimgui.ImDrawIdx) */ __pyx_codeobj__613 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_imgui_core_pyx, __pyx_n_s_py_index_buffer_index_size, 12811, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__613)) __PYX_ERR(0, 12811, __pyx_L1_error) /* "(tree fragment)":1 * def __pyx_unpickle__BeginEndTooltip(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_tuple__614 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__614)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__614); __Pyx_GIVEREF(__pyx_tuple__614); __pyx_codeobj__615 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__614, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle__BeginEndTooltip, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__615)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_tuple__616 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__616)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__616); __Pyx_GIVEREF(__pyx_tuple__616); __pyx_codeobj__617 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__616, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle__BeginEndGroup, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__617)) __PYX_ERR(2, 1, __pyx_L1_error) /* "View.MemoryView":287 * return self.name * * cdef generic = Enum("") # <<<<<<<<<<<<<< * cdef strided = Enum("") # default * cdef indirect = Enum("") */ __pyx_tuple__618 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct_or_indirect); if (unlikely(!__pyx_tuple__618)) __PYX_ERR(2, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__618); __Pyx_GIVEREF(__pyx_tuple__618); /* "View.MemoryView":288 * * cdef generic = Enum("") * cdef strided = Enum("") # default # <<<<<<<<<<<<<< * cdef indirect = Enum("") * */ __pyx_tuple__619 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct); if (unlikely(!__pyx_tuple__619)) __PYX_ERR(2, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__619); __Pyx_GIVEREF(__pyx_tuple__619); /* "View.MemoryView":289 * cdef generic = Enum("") * cdef strided = Enum("") # default * cdef indirect = Enum("") # <<<<<<<<<<<<<< * * */ __pyx_tuple__620 = PyTuple_Pack(1, __pyx_kp_s_strided_and_indirect); if (unlikely(!__pyx_tuple__620)) __PYX_ERR(2, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__620); __Pyx_GIVEREF(__pyx_tuple__620); /* "View.MemoryView":292 * * * cdef contiguous = Enum("") # <<<<<<<<<<<<<< * cdef indirect_contiguous = Enum("") * */ __pyx_tuple__621 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_direct); if (unlikely(!__pyx_tuple__621)) __PYX_ERR(2, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__621); __Pyx_GIVEREF(__pyx_tuple__621); /* "View.MemoryView":293 * * cdef contiguous = Enum("") * cdef indirect_contiguous = Enum("") # <<<<<<<<<<<<<< * * */ __pyx_tuple__622 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_indirect); if (unlikely(!__pyx_tuple__622)) __PYX_ERR(2, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__622); __Pyx_GIVEREF(__pyx_tuple__622); /* "(tree fragment)":1 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_tuple__623 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__623)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__623); __Pyx_GIVEREF(__pyx_tuple__623); __pyx_codeobj__624 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__623, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__624)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) { /* AssertionsEnabled.init */ __Pyx_init_assertions_enabled(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_umethod_PyString_Type_encode.type = (PyObject*)&PyString_Type; if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_float_1_ = PyFloat_FromDouble(1.); if (unlikely(!__pyx_float_1_)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_512 = PyInt_FromLong(512); if (unlikely(!__pyx_int_512)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_112105877 = PyInt_FromLong(112105877L); if (unlikely(!__pyx_int_112105877)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_136983863 = PyInt_FromLong(136983863L); if (unlikely(!__pyx_int_136983863)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_184977713 = PyInt_FromLong(184977713L); if (unlikely(!__pyx_int_184977713)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_222419149 = PyInt_FromLong(222419149L); if (unlikely(!__pyx_int_222419149)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_228825662 = PyInt_FromLong(228825662L); if (unlikely(!__pyx_int_228825662)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_238750788 = PyInt_FromLong(238750788L); if (unlikely(!__pyx_int_238750788)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/ static int __Pyx_modinit_global_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); /*--- Global init code ---*/ ImGuiError = Py_None; Py_INCREF(Py_None); __pyx_v_5imgui_4core__input_text_shared_buffer = ((struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *)Py_None); Py_INCREF(Py_None); __pyx_v_5imgui_4core__global_next_window_size_constraints_callback_user_info = ((struct __pyx_obj_5imgui_4core__callback_user_info *)Py_None); Py_INCREF(Py_None); generic = Py_None; Py_INCREF(Py_None); strided = Py_None; Py_INCREF(Py_None); indirect = Py_None; Py_INCREF(Py_None); contiguous = Py_None; Py_INCREF(Py_None); indirect_contiguous = Py_None; Py_INCREF(Py_None); __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_variable_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); /*--- Variable export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); /*--- Function export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_type_init_code(void) { __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); /*--- Type init code ---*/ __pyx_vtabptr_5imgui_4core__Font = &__pyx_vtable_5imgui_4core__Font; __pyx_vtable_5imgui_4core__Font.from_ptr = (PyObject *(*)(ImFont *))__pyx_f_5imgui_4core_5_Font_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__Font) < 0) __PYX_ERR(0, 2966, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__Font.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__Font.tp_dictoffset && __pyx_type_5imgui_4core__Font.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__Font.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__Font.tp_dict, __pyx_vtabptr_5imgui_4core__Font) < 0) __PYX_ERR(0, 2966, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Font, (PyObject *)&__pyx_type_5imgui_4core__Font) < 0) __PYX_ERR(0, 2966, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__Font) < 0) __PYX_ERR(0, 2966, __pyx_L1_error) __pyx_ptype_5imgui_4core__Font = &__pyx_type_5imgui_4core__Font; __pyx_vtabptr_5imgui_4core__ImGuiContext = &__pyx_vtable_5imgui_4core__ImGuiContext; __pyx_vtable_5imgui_4core__ImGuiContext.from_ptr = (PyObject *(*)(ImGuiContext *))__pyx_f_5imgui_4core_13_ImGuiContext_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__ImGuiContext) < 0) __PYX_ERR(0, 577, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__ImGuiContext.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__ImGuiContext.tp_dictoffset && __pyx_type_5imgui_4core__ImGuiContext.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__ImGuiContext.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__ImGuiContext.tp_dict, __pyx_vtabptr_5imgui_4core__ImGuiContext) < 0) __PYX_ERR(0, 577, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ImGuiContext, (PyObject *)&__pyx_type_5imgui_4core__ImGuiContext) < 0) __PYX_ERR(0, 577, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__ImGuiContext) < 0) __PYX_ERR(0, 577, __pyx_L1_error) __pyx_ptype_5imgui_4core__ImGuiContext = &__pyx_type_5imgui_4core__ImGuiContext; __pyx_vtabptr_5imgui_4core__DrawCmd = &__pyx_vtable_5imgui_4core__DrawCmd; __pyx_vtable_5imgui_4core__DrawCmd.from_ptr = (PyObject *(*)(ImDrawCmd *))__pyx_f_5imgui_4core_8_DrawCmd_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__DrawCmd) < 0) __PYX_ERR(0, 600, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__DrawCmd.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__DrawCmd.tp_dictoffset && __pyx_type_5imgui_4core__DrawCmd.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__DrawCmd.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__DrawCmd.tp_dict, __pyx_vtabptr_5imgui_4core__DrawCmd) < 0) __PYX_ERR(0, 600, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DrawCmd, (PyObject *)&__pyx_type_5imgui_4core__DrawCmd) < 0) __PYX_ERR(0, 600, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__DrawCmd) < 0) __PYX_ERR(0, 600, __pyx_L1_error) __pyx_ptype_5imgui_4core__DrawCmd = &__pyx_type_5imgui_4core__DrawCmd; __pyx_vtabptr_5imgui_4core__DrawList = &__pyx_vtable_5imgui_4core__DrawList; __pyx_vtable_5imgui_4core__DrawList.from_ptr = (PyObject *(*)(ImDrawList *))__pyx_f_5imgui_4core_9_DrawList_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__DrawList) < 0) __PYX_ERR(0, 627, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__DrawList.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__DrawList.tp_dictoffset && __pyx_type_5imgui_4core__DrawList.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__DrawList.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__DrawList.tp_dict, __pyx_vtabptr_5imgui_4core__DrawList) < 0) __PYX_ERR(0, 627, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DrawList, (PyObject *)&__pyx_type_5imgui_4core__DrawList) < 0) __PYX_ERR(0, 627, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__DrawList) < 0) __PYX_ERR(0, 627, __pyx_L1_error) __pyx_ptype_5imgui_4core__DrawList = &__pyx_type_5imgui_4core__DrawList; __pyx_vtabptr_5imgui_4core__Colors = &__pyx_vtable_5imgui_4core__Colors; __pyx_vtable_5imgui_4core__Colors._check_color = (PyObject *(*)(struct __pyx_obj_5imgui_4core__Colors *, ImGuiCol))__pyx_f_5imgui_4core_7_Colors__check_color; if (PyType_Ready(&__pyx_type_5imgui_4core__Colors) < 0) __PYX_ERR(0, 2076, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__Colors.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__Colors.tp_dictoffset && __pyx_type_5imgui_4core__Colors.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__Colors.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__Colors.tp_dict, __pyx_vtabptr_5imgui_4core__Colors) < 0) __PYX_ERR(0, 2076, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Colors, (PyObject *)&__pyx_type_5imgui_4core__Colors) < 0) __PYX_ERR(0, 2076, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__Colors) < 0) __PYX_ERR(0, 2076, __pyx_L1_error) __pyx_ptype_5imgui_4core__Colors = &__pyx_type_5imgui_4core__Colors; __pyx_vtabptr_5imgui_4core_GuiStyle = &__pyx_vtable_5imgui_4core_GuiStyle; __pyx_vtable_5imgui_4core_GuiStyle._check_ptr = (PyObject *(*)(struct __pyx_obj_5imgui_4core_GuiStyle *))__pyx_f_5imgui_4core_8GuiStyle__check_ptr; __pyx_vtable_5imgui_4core_GuiStyle.from_ref = (struct __pyx_obj_5imgui_4core_GuiStyle *(*)(ImGuiStyle &))__pyx_f_5imgui_4core_8GuiStyle_from_ref; __pyx_vtable_5imgui_4core_GuiStyle._create = (struct __pyx_obj_5imgui_4core_GuiStyle *(*)(void))__pyx_f_5imgui_4core_8GuiStyle__create; if (PyType_Ready(&__pyx_type_5imgui_4core_GuiStyle) < 0) __PYX_ERR(0, 2102, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core_GuiStyle.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core_GuiStyle.tp_dictoffset && __pyx_type_5imgui_4core_GuiStyle.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core_GuiStyle.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core_GuiStyle.tp_dict, __pyx_vtabptr_5imgui_4core_GuiStyle) < 0) __PYX_ERR(0, 2102, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_GuiStyle, (PyObject *)&__pyx_type_5imgui_4core_GuiStyle) < 0) __PYX_ERR(0, 2102, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core_GuiStyle) < 0) __PYX_ERR(0, 2102, __pyx_L1_error) __pyx_ptype_5imgui_4core_GuiStyle = &__pyx_type_5imgui_4core_GuiStyle; __pyx_vtabptr_5imgui_4core__ImGuiTableColumnSortSpecs = &__pyx_vtable_5imgui_4core__ImGuiTableColumnSortSpecs; __pyx_vtable_5imgui_4core__ImGuiTableColumnSortSpecs.from_ptr = (PyObject *(*)(ImGuiTableColumnSortSpecs *))__pyx_f_5imgui_4core_26_ImGuiTableColumnSortSpecs_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs) < 0) __PYX_ERR(0, 2588, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs.tp_dictoffset && __pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs.tp_dict, __pyx_vtabptr_5imgui_4core__ImGuiTableColumnSortSpecs) < 0) __PYX_ERR(0, 2588, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ImGuiTableColumnSortSpecs, (PyObject *)&__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs) < 0) __PYX_ERR(0, 2588, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs) < 0) __PYX_ERR(0, 2588, __pyx_L1_error) __pyx_ptype_5imgui_4core__ImGuiTableColumnSortSpecs = &__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs; __pyx_vtabptr_5imgui_4core__ImGuiTableColumnSortSpecs_array = &__pyx_vtable_5imgui_4core__ImGuiTableColumnSortSpecs_array; __pyx_vtable_5imgui_4core__ImGuiTableColumnSortSpecs_array.from_ptr = (PyObject *(*)(ImGuiTableSortSpecs *))__pyx_f_5imgui_4core_32_ImGuiTableColumnSortSpecs_array_from_ptr; __pyx_vtable_5imgui_4core__ImGuiTableColumnSortSpecs_array._get_item = (PyObject *(*)(struct __pyx_obj_5imgui_4core__ImGuiTableColumnSortSpecs_array *, size_t))__pyx_f_5imgui_4core_32_ImGuiTableColumnSortSpecs_array__get_item; if (PyType_Ready(&__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array) < 0) __PYX_ERR(0, 2650, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array.tp_dictoffset && __pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array.tp_dict, __pyx_vtabptr_5imgui_4core__ImGuiTableColumnSortSpecs_array) < 0) __PYX_ERR(0, 2650, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ImGuiTableColumnSortSpecs_array, (PyObject *)&__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array) < 0) __PYX_ERR(0, 2650, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array) < 0) __PYX_ERR(0, 2650, __pyx_L1_error) __pyx_ptype_5imgui_4core__ImGuiTableColumnSortSpecs_array = &__pyx_type_5imgui_4core__ImGuiTableColumnSortSpecs_array; __pyx_vtabptr_5imgui_4core__ImGuiTableSortSpecs = &__pyx_vtable_5imgui_4core__ImGuiTableSortSpecs; __pyx_vtable_5imgui_4core__ImGuiTableSortSpecs.from_ptr = (PyObject *(*)(ImGuiTableSortSpecs *))__pyx_f_5imgui_4core_20_ImGuiTableSortSpecs_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__ImGuiTableSortSpecs) < 0) __PYX_ERR(0, 2699, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__ImGuiTableSortSpecs.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__ImGuiTableSortSpecs.tp_dictoffset && __pyx_type_5imgui_4core__ImGuiTableSortSpecs.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__ImGuiTableSortSpecs.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__ImGuiTableSortSpecs.tp_dict, __pyx_vtabptr_5imgui_4core__ImGuiTableSortSpecs) < 0) __PYX_ERR(0, 2699, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ImGuiTableSortSpecs, (PyObject *)&__pyx_type_5imgui_4core__ImGuiTableSortSpecs) < 0) __PYX_ERR(0, 2699, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__ImGuiTableSortSpecs) < 0) __PYX_ERR(0, 2699, __pyx_L1_error) __pyx_ptype_5imgui_4core__ImGuiTableSortSpecs = &__pyx_type_5imgui_4core__ImGuiTableSortSpecs; __pyx_vtabptr_5imgui_4core__ImGuiViewport = &__pyx_vtable_5imgui_4core__ImGuiViewport; __pyx_vtable_5imgui_4core__ImGuiViewport.from_ptr = (PyObject *(*)(ImGuiViewport *))__pyx_f_5imgui_4core_14_ImGuiViewport_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__ImGuiViewport) < 0) __PYX_ERR(0, 2741, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__ImGuiViewport.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__ImGuiViewport.tp_dictoffset && __pyx_type_5imgui_4core__ImGuiViewport.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__ImGuiViewport.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__ImGuiViewport.tp_dict, __pyx_vtabptr_5imgui_4core__ImGuiViewport) < 0) __PYX_ERR(0, 2741, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ImGuiViewport, (PyObject *)&__pyx_type_5imgui_4core__ImGuiViewport) < 0) __PYX_ERR(0, 2741, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__ImGuiViewport) < 0) __PYX_ERR(0, 2741, __pyx_L1_error) __pyx_ptype_5imgui_4core__ImGuiViewport = &__pyx_type_5imgui_4core__ImGuiViewport; __pyx_vtabptr_5imgui_4core__DrawData = &__pyx_vtable_5imgui_4core__DrawData; __pyx_vtable_5imgui_4core__DrawData.from_ptr = (PyObject *(*)(ImDrawData *))__pyx_f_5imgui_4core_9_DrawData_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__DrawData) < 0) __PYX_ERR(0, 2807, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__DrawData.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__DrawData.tp_dictoffset && __pyx_type_5imgui_4core__DrawData.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__DrawData.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__DrawData.tp_dict, __pyx_vtabptr_5imgui_4core__DrawData) < 0) __PYX_ERR(0, 2807, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DrawData, (PyObject *)&__pyx_type_5imgui_4core__DrawData) < 0) __PYX_ERR(0, 2807, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__DrawData) < 0) __PYX_ERR(0, 2807, __pyx_L1_error) __pyx_ptype_5imgui_4core__DrawData = &__pyx_type_5imgui_4core__DrawData; __pyx_vtabptr_5imgui_4core__StaticGlyphRanges = &__pyx_vtable_5imgui_4core__StaticGlyphRanges; __pyx_vtable_5imgui_4core__StaticGlyphRanges.from_ptr = (PyObject *(*)(ImWchar const *))__pyx_f_5imgui_4core_18_StaticGlyphRanges_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__StaticGlyphRanges) < 0) __PYX_ERR(0, 2879, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__StaticGlyphRanges.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__StaticGlyphRanges.tp_dictoffset && __pyx_type_5imgui_4core__StaticGlyphRanges.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__StaticGlyphRanges.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__StaticGlyphRanges.tp_dict, __pyx_vtabptr_5imgui_4core__StaticGlyphRanges) < 0) __PYX_ERR(0, 2879, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_StaticGlyphRanges, (PyObject *)&__pyx_type_5imgui_4core__StaticGlyphRanges) < 0) __PYX_ERR(0, 2879, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__StaticGlyphRanges) < 0) __PYX_ERR(0, 2879, __pyx_L1_error) __pyx_ptype_5imgui_4core__StaticGlyphRanges = &__pyx_type_5imgui_4core__StaticGlyphRanges; if (PyType_Ready(&__pyx_type_5imgui_4core_GlyphRanges) < 0) __PYX_ERR(0, 2892, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core_GlyphRanges.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core_GlyphRanges.tp_dictoffset && __pyx_type_5imgui_4core_GlyphRanges.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core_GlyphRanges.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_GlyphRanges, (PyObject *)&__pyx_type_5imgui_4core_GlyphRanges) < 0) __PYX_ERR(0, 2892, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core_GlyphRanges) < 0) __PYX_ERR(0, 2892, __pyx_L1_error) __pyx_ptype_5imgui_4core_GlyphRanges = &__pyx_type_5imgui_4core_GlyphRanges; if (PyType_Ready(&__pyx_type_5imgui_4core_FontConfig) < 0) __PYX_ERR(0, 2913, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core_FontConfig.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core_FontConfig.tp_dictoffset && __pyx_type_5imgui_4core_FontConfig.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core_FontConfig.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FontConfig, (PyObject *)&__pyx_type_5imgui_4core_FontConfig) < 0) __PYX_ERR(0, 2913, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core_FontConfig) < 0) __PYX_ERR(0, 2913, __pyx_L1_error) __pyx_ptype_5imgui_4core_FontConfig = &__pyx_type_5imgui_4core_FontConfig; __pyx_vtabptr_5imgui_4core__FontAtlas = &__pyx_vtable_5imgui_4core__FontAtlas; __pyx_vtable_5imgui_4core__FontAtlas.from_ptr = (PyObject *(*)(ImFontAtlas *))__pyx_f_5imgui_4core_10_FontAtlas_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__FontAtlas) < 0) __PYX_ERR(0, 2977, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__FontAtlas.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__FontAtlas.tp_dictoffset && __pyx_type_5imgui_4core__FontAtlas.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__FontAtlas.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__FontAtlas.tp_dict, __pyx_vtabptr_5imgui_4core__FontAtlas) < 0) __PYX_ERR(0, 2977, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FontAtlas, (PyObject *)&__pyx_type_5imgui_4core__FontAtlas) < 0) __PYX_ERR(0, 2977, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__FontAtlas) < 0) __PYX_ERR(0, 2977, __pyx_L1_error) __pyx_ptype_5imgui_4core__FontAtlas = &__pyx_type_5imgui_4core__FontAtlas; __pyx_vtabptr_5imgui_4core__IO = &__pyx_vtable_5imgui_4core__IO; __pyx_vtable_5imgui_4core__IO._get_clipboard_text = (char const *(*)(void *))__pyx_f_5imgui_4core_3_IO__get_clipboard_text; __pyx_vtable_5imgui_4core__IO._set_clipboard_text = (void (*)(void *, char const *))__pyx_f_5imgui_4core_3_IO__set_clipboard_text; if (PyType_Ready(&__pyx_type_5imgui_4core__IO) < 0) __PYX_ERR(0, 3141, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__IO.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__IO.tp_dictoffset && __pyx_type_5imgui_4core__IO.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__IO.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__IO.tp_dict, __pyx_vtabptr_5imgui_4core__IO) < 0) __PYX_ERR(0, 3141, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_IO, (PyObject *)&__pyx_type_5imgui_4core__IO) < 0) __PYX_ERR(0, 3141, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__IO) < 0) __PYX_ERR(0, 3141, __pyx_L1_error) __pyx_ptype_5imgui_4core__IO = &__pyx_type_5imgui_4core__IO; __pyx_vtabptr_5imgui_4core__callback_user_info = &__pyx_vtable_5imgui_4core__callback_user_info; __pyx_vtable_5imgui_4core__callback_user_info.set_text_input_buffer = (PyObject *(*)(struct __pyx_obj_5imgui_4core__callback_user_info *, char *, int))__pyx_f_5imgui_4core_19_callback_user_info_set_text_input_buffer; if (PyType_Ready(&__pyx_type_5imgui_4core__callback_user_info) < 0) __PYX_ERR(0, 3603, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__callback_user_info.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__callback_user_info.tp_dictoffset && __pyx_type_5imgui_4core__callback_user_info.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__callback_user_info.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__callback_user_info.tp_dict, __pyx_vtabptr_5imgui_4core__callback_user_info) < 0) __PYX_ERR(0, 3603, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_callback_user_info, (PyObject *)&__pyx_type_5imgui_4core__callback_user_info) < 0) __PYX_ERR(0, 3603, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__callback_user_info) < 0) __PYX_ERR(0, 3603, __pyx_L1_error) __pyx_ptype_5imgui_4core__callback_user_info = &__pyx_type_5imgui_4core__callback_user_info; __pyx_vtabptr_5imgui_4core__InputTextSharedBuffer = &__pyx_vtable_5imgui_4core__InputTextSharedBuffer; __pyx_vtable_5imgui_4core__InputTextSharedBuffer.reserve_memory = (PyObject *(*)(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *, int))__pyx_f_5imgui_4core_22_InputTextSharedBuffer_reserve_memory; __pyx_vtable_5imgui_4core__InputTextSharedBuffer.free_memory = (PyObject *(*)(struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *))__pyx_f_5imgui_4core_22_InputTextSharedBuffer_free_memory; if (PyType_Ready(&__pyx_type_5imgui_4core__InputTextSharedBuffer) < 0) __PYX_ERR(0, 3626, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__InputTextSharedBuffer.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__InputTextSharedBuffer.tp_dictoffset && __pyx_type_5imgui_4core__InputTextSharedBuffer.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__InputTextSharedBuffer.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__InputTextSharedBuffer.tp_dict, __pyx_vtabptr_5imgui_4core__InputTextSharedBuffer) < 0) __PYX_ERR(0, 3626, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_InputTextSharedBuffer, (PyObject *)&__pyx_type_5imgui_4core__InputTextSharedBuffer) < 0) __PYX_ERR(0, 3626, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__InputTextSharedBuffer) < 0) __PYX_ERR(0, 3626, __pyx_L1_error) __pyx_ptype_5imgui_4core__InputTextSharedBuffer = &__pyx_type_5imgui_4core__InputTextSharedBuffer; __pyx_vtabptr_5imgui_4core__ImGuiInputTextCallbackData = &__pyx_vtable_5imgui_4core__ImGuiInputTextCallbackData; __pyx_vtable_5imgui_4core__ImGuiInputTextCallbackData.from_ptr = (PyObject *(*)(ImGuiInputTextCallbackData *))__pyx_f_5imgui_4core_27_ImGuiInputTextCallbackData_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__ImGuiInputTextCallbackData) < 0) __PYX_ERR(0, 3684, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__ImGuiInputTextCallbackData.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__ImGuiInputTextCallbackData.tp_dictoffset && __pyx_type_5imgui_4core__ImGuiInputTextCallbackData.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__ImGuiInputTextCallbackData.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__ImGuiInputTextCallbackData.tp_dict, __pyx_vtabptr_5imgui_4core__ImGuiInputTextCallbackData) < 0) __PYX_ERR(0, 3684, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ImGuiInputTextCallbackData, (PyObject *)&__pyx_type_5imgui_4core__ImGuiInputTextCallbackData) < 0) __PYX_ERR(0, 3684, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__ImGuiInputTextCallbackData) < 0) __PYX_ERR(0, 3684, __pyx_L1_error) __pyx_ptype_5imgui_4core__ImGuiInputTextCallbackData = &__pyx_type_5imgui_4core__ImGuiInputTextCallbackData; __pyx_vtabptr_5imgui_4core__ImGuiSizeCallbackData = &__pyx_vtable_5imgui_4core__ImGuiSizeCallbackData; __pyx_vtable_5imgui_4core__ImGuiSizeCallbackData.from_ptr = (PyObject *(*)(ImGuiSizeCallbackData *))__pyx_f_5imgui_4core_22_ImGuiSizeCallbackData_from_ptr; if (PyType_Ready(&__pyx_type_5imgui_4core__ImGuiSizeCallbackData) < 0) __PYX_ERR(0, 3834, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__ImGuiSizeCallbackData.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__ImGuiSizeCallbackData.tp_dictoffset && __pyx_type_5imgui_4core__ImGuiSizeCallbackData.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__ImGuiSizeCallbackData.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_5imgui_4core__ImGuiSizeCallbackData.tp_dict, __pyx_vtabptr_5imgui_4core__ImGuiSizeCallbackData) < 0) __PYX_ERR(0, 3834, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ImGuiSizeCallbackData, (PyObject *)&__pyx_type_5imgui_4core__ImGuiSizeCallbackData) < 0) __PYX_ERR(0, 3834, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__ImGuiSizeCallbackData) < 0) __PYX_ERR(0, 3834, __pyx_L1_error) __pyx_ptype_5imgui_4core__ImGuiSizeCallbackData = &__pyx_type_5imgui_4core__ImGuiSizeCallbackData; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEnd) < 0) __PYX_ERR(0, 4130, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEnd.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEnd.tp_dictoffset && __pyx_type_5imgui_4core__BeginEnd.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEnd.tp_getattro = __Pyx_PyObject_GenericGetAttr; } #if CYTHON_UPDATE_DESCRIPTOR_DOC { PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5imgui_4core__BeginEnd, "__getitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 4130, __pyx_L1_error) if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) { __pyx_wrapperbase_5imgui_4core_9_BeginEnd_6__getitem__ = *((PyWrapperDescrObject *)wrapper)->d_base; __pyx_wrapperbase_5imgui_4core_9_BeginEnd_6__getitem__.doc = __pyx_doc_5imgui_4core_9_BeginEnd_6__getitem__; ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5imgui_4core_9_BeginEnd_6__getitem__; } } #endif #if CYTHON_UPDATE_DESCRIPTOR_DOC { PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5imgui_4core__BeginEnd, "__iter__"); if (unlikely(!wrapper)) __PYX_ERR(0, 4130, __pyx_L1_error) if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) { __pyx_wrapperbase_5imgui_4core_9_BeginEnd_8__iter__ = *((PyWrapperDescrObject *)wrapper)->d_base; __pyx_wrapperbase_5imgui_4core_9_BeginEnd_8__iter__.doc = __pyx_doc_5imgui_4core_9_BeginEnd_8__iter__; ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5imgui_4core_9_BeginEnd_8__iter__; } } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEnd, (PyObject *)&__pyx_type_5imgui_4core__BeginEnd) < 0) __PYX_ERR(0, 4130, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEnd) < 0) __PYX_ERR(0, 4130, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEnd = &__pyx_type_5imgui_4core__BeginEnd; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndChild) < 0) __PYX_ERR(0, 4245, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndChild.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndChild.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndChild.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndChild.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndChild, (PyObject *)&__pyx_type_5imgui_4core__BeginEndChild) < 0) __PYX_ERR(0, 4245, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndChild) < 0) __PYX_ERR(0, 4245, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndChild = &__pyx_type_5imgui_4core__BeginEndChild; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndListBox) < 0) __PYX_ERR(0, 5367, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndListBox.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndListBox.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndListBox.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndListBox.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndListBox, (PyObject *)&__pyx_type_5imgui_4core__BeginEndListBox) < 0) __PYX_ERR(0, 5367, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndListBox) < 0) __PYX_ERR(0, 5367, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndListBox = &__pyx_type_5imgui_4core__BeginEndListBox; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndTooltip) < 0) __PYX_ERR(0, 5544, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndTooltip.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndTooltip.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndTooltip.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndTooltip.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndTooltip, (PyObject *)&__pyx_type_5imgui_4core__BeginEndTooltip) < 0) __PYX_ERR(0, 5544, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndTooltip) < 0) __PYX_ERR(0, 5544, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndTooltip = &__pyx_type_5imgui_4core__BeginEndTooltip; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndMainMenuBar) < 0) __PYX_ERR(0, 5608, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndMainMenuBar.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndMainMenuBar.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndMainMenuBar.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndMainMenuBar.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndMainMenuBar, (PyObject *)&__pyx_type_5imgui_4core__BeginEndMainMenuBar) < 0) __PYX_ERR(0, 5608, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndMainMenuBar) < 0) __PYX_ERR(0, 5608, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndMainMenuBar = &__pyx_type_5imgui_4core__BeginEndMainMenuBar; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndMenuBar) < 0) __PYX_ERR(0, 5718, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndMenuBar.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndMenuBar.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndMenuBar.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndMenuBar.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndMenuBar, (PyObject *)&__pyx_type_5imgui_4core__BeginEndMenuBar) < 0) __PYX_ERR(0, 5718, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndMenuBar) < 0) __PYX_ERR(0, 5718, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndMenuBar = &__pyx_type_5imgui_4core__BeginEndMenuBar; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndMenu) < 0) __PYX_ERR(0, 5826, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndMenu.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndMenu.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndMenu.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndMenu.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndMenu, (PyObject *)&__pyx_type_5imgui_4core__BeginEndMenu) < 0) __PYX_ERR(0, 5826, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndMenu) < 0) __PYX_ERR(0, 5826, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndMenu = &__pyx_type_5imgui_4core__BeginEndMenu; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndPopup) < 0) __PYX_ERR(0, 6017, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndPopup.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndPopup.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndPopup.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndPopup.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndPopup, (PyObject *)&__pyx_type_5imgui_4core__BeginEndPopup) < 0) __PYX_ERR(0, 6017, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndPopup) < 0) __PYX_ERR(0, 6017, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndPopup = &__pyx_type_5imgui_4core__BeginEndPopup; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndPopupModal) < 0) __PYX_ERR(0, 6124, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndPopupModal.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndPopupModal.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndPopupModal.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndPopupModal.tp_getattro = __Pyx_PyObject_GenericGetAttr; } #if CYTHON_UPDATE_DESCRIPTOR_DOC { PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5imgui_4core__BeginEndPopupModal, "__getitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 6124, __pyx_L1_error) if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) { __pyx_wrapperbase_5imgui_4core_19_BeginEndPopupModal_6__getitem__ = *((PyWrapperDescrObject *)wrapper)->d_base; __pyx_wrapperbase_5imgui_4core_19_BeginEndPopupModal_6__getitem__.doc = __pyx_doc_5imgui_4core_19_BeginEndPopupModal_6__getitem__; ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5imgui_4core_19_BeginEndPopupModal_6__getitem__; } } #endif #if CYTHON_UPDATE_DESCRIPTOR_DOC { PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5imgui_4core__BeginEndPopupModal, "__iter__"); if (unlikely(!wrapper)) __PYX_ERR(0, 6124, __pyx_L1_error) if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) { __pyx_wrapperbase_5imgui_4core_19_BeginEndPopupModal_8__iter__ = *((PyWrapperDescrObject *)wrapper)->d_base; __pyx_wrapperbase_5imgui_4core_19_BeginEndPopupModal_8__iter__.doc = __pyx_doc_5imgui_4core_19_BeginEndPopupModal_8__iter__; ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5imgui_4core_19_BeginEndPopupModal_8__iter__; } } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndPopupModal, (PyObject *)&__pyx_type_5imgui_4core__BeginEndPopupModal) < 0) __PYX_ERR(0, 6124, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndPopupModal) < 0) __PYX_ERR(0, 6124, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndPopupModal = &__pyx_type_5imgui_4core__BeginEndPopupModal; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndTable) < 0) __PYX_ERR(0, 6435, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndTable.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndTable.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndTable.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndTable.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndTable, (PyObject *)&__pyx_type_5imgui_4core__BeginEndTable) < 0) __PYX_ERR(0, 6435, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndTable) < 0) __PYX_ERR(0, 6435, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndTable = &__pyx_type_5imgui_4core__BeginEndTable; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndCombo) < 0) __PYX_ERR(0, 7263, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndCombo.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndCombo.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndCombo.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndCombo.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndCombo, (PyObject *)&__pyx_type_5imgui_4core__BeginEndCombo) < 0) __PYX_ERR(0, 7263, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndCombo) < 0) __PYX_ERR(0, 7263, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndCombo = &__pyx_type_5imgui_4core__BeginEndCombo; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndTabBar) < 0) __PYX_ERR(0, 11742, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndTabBar.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndTabBar.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndTabBar.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndTabBar.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndTabBar, (PyObject *)&__pyx_type_5imgui_4core__BeginEndTabBar) < 0) __PYX_ERR(0, 11742, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndTabBar) < 0) __PYX_ERR(0, 11742, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndTabBar = &__pyx_type_5imgui_4core__BeginEndTabBar; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndTabItem) < 0) __PYX_ERR(0, 11813, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndTabItem.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndTabItem.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndTabItem.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndTabItem.tp_getattro = __Pyx_PyObject_GenericGetAttr; } #if CYTHON_UPDATE_DESCRIPTOR_DOC { PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5imgui_4core__BeginEndTabItem, "__getitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 11813, __pyx_L1_error) if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) { __pyx_wrapperbase_5imgui_4core_16_BeginEndTabItem_6__getitem__ = *((PyWrapperDescrObject *)wrapper)->d_base; __pyx_wrapperbase_5imgui_4core_16_BeginEndTabItem_6__getitem__.doc = __pyx_doc_5imgui_4core_16_BeginEndTabItem_6__getitem__; ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5imgui_4core_16_BeginEndTabItem_6__getitem__; } } #endif #if CYTHON_UPDATE_DESCRIPTOR_DOC { PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5imgui_4core__BeginEndTabItem, "__iter__"); if (unlikely(!wrapper)) __PYX_ERR(0, 11813, __pyx_L1_error) if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) { __pyx_wrapperbase_5imgui_4core_16_BeginEndTabItem_8__iter__ = *((PyWrapperDescrObject *)wrapper)->d_base; __pyx_wrapperbase_5imgui_4core_16_BeginEndTabItem_8__iter__.doc = __pyx_doc_5imgui_4core_16_BeginEndTabItem_8__iter__; ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5imgui_4core_16_BeginEndTabItem_8__iter__; } } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndTabItem, (PyObject *)&__pyx_type_5imgui_4core__BeginEndTabItem) < 0) __PYX_ERR(0, 11813, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndTabItem) < 0) __PYX_ERR(0, 11813, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndTabItem = &__pyx_type_5imgui_4core__BeginEndTabItem; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndDragDropSource) < 0) __PYX_ERR(0, 12020, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndDragDropSource.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndDragDropSource.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndDragDropSource.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndDragDropSource.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndDragDropSource, (PyObject *)&__pyx_type_5imgui_4core__BeginEndDragDropSource) < 0) __PYX_ERR(0, 12020, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndDragDropSource) < 0) __PYX_ERR(0, 12020, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndDragDropSource = &__pyx_type_5imgui_4core__BeginEndDragDropSource; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndDragDropTarget) < 0) __PYX_ERR(0, 12156, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndDragDropTarget.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndDragDropTarget.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndDragDropTarget.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndDragDropTarget.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndDragDropTarget, (PyObject *)&__pyx_type_5imgui_4core__BeginEndDragDropTarget) < 0) __PYX_ERR(0, 12156, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndDragDropTarget) < 0) __PYX_ERR(0, 12156, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndDragDropTarget = &__pyx_type_5imgui_4core__BeginEndDragDropTarget; if (PyType_Ready(&__pyx_type_5imgui_4core__BeginEndGroup) < 0) __PYX_ERR(0, 12333, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core__BeginEndGroup.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core__BeginEndGroup.tp_dictoffset && __pyx_type_5imgui_4core__BeginEndGroup.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core__BeginEndGroup.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BeginEndGroup, (PyObject *)&__pyx_type_5imgui_4core__BeginEndGroup) < 0) __PYX_ERR(0, 12333, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5imgui_4core__BeginEndGroup) < 0) __PYX_ERR(0, 12333, __pyx_L1_error) __pyx_ptype_5imgui_4core__BeginEndGroup = &__pyx_type_5imgui_4core__BeginEndGroup; if (PyType_Ready(&__pyx_type_5imgui_4core___pyx_scope_struct___py_font) < 0) __PYX_ERR(0, 12694, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core___pyx_scope_struct___py_font.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core___pyx_scope_struct___py_font.tp_dictoffset && __pyx_type_5imgui_4core___pyx_scope_struct___py_font.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core___pyx_scope_struct___py_font.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } __pyx_ptype_5imgui_4core___pyx_scope_struct___py_font = &__pyx_type_5imgui_4core___pyx_scope_struct___py_font; if (PyType_Ready(&__pyx_type_5imgui_4core___pyx_scope_struct_1__py_styled) < 0) __PYX_ERR(0, 12727, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core___pyx_scope_struct_1__py_styled.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core___pyx_scope_struct_1__py_styled.tp_dictoffset && __pyx_type_5imgui_4core___pyx_scope_struct_1__py_styled.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core___pyx_scope_struct_1__py_styled.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } __pyx_ptype_5imgui_4core___pyx_scope_struct_1__py_styled = &__pyx_type_5imgui_4core___pyx_scope_struct_1__py_styled; if (PyType_Ready(&__pyx_type_5imgui_4core___pyx_scope_struct_2__py_colored) < 0) __PYX_ERR(0, 12737, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core___pyx_scope_struct_2__py_colored.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core___pyx_scope_struct_2__py_colored.tp_dictoffset && __pyx_type_5imgui_4core___pyx_scope_struct_2__py_colored.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core___pyx_scope_struct_2__py_colored.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } __pyx_ptype_5imgui_4core___pyx_scope_struct_2__py_colored = &__pyx_type_5imgui_4core___pyx_scope_struct_2__py_colored; if (PyType_Ready(&__pyx_type_5imgui_4core___pyx_scope_struct_3__py_istyled) < 0) __PYX_ERR(0, 12753, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core___pyx_scope_struct_3__py_istyled.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core___pyx_scope_struct_3__py_istyled.tp_dictoffset && __pyx_type_5imgui_4core___pyx_scope_struct_3__py_istyled.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core___pyx_scope_struct_3__py_istyled.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } __pyx_ptype_5imgui_4core___pyx_scope_struct_3__py_istyled = &__pyx_type_5imgui_4core___pyx_scope_struct_3__py_istyled; if (PyType_Ready(&__pyx_type_5imgui_4core___pyx_scope_struct_4__py_scoped) < 0) __PYX_ERR(0, 12782, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5imgui_4core___pyx_scope_struct_4__py_scoped.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5imgui_4core___pyx_scope_struct_4__py_scoped.tp_dictoffset && __pyx_type_5imgui_4core___pyx_scope_struct_4__py_scoped.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5imgui_4core___pyx_scope_struct_4__py_scoped.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } __pyx_ptype_5imgui_4core___pyx_scope_struct_4__py_scoped = &__pyx_type_5imgui_4core___pyx_scope_struct_4__py_scoped; __pyx_vtabptr_array = &__pyx_vtable_array; __pyx_vtable_array.get_memview = (PyObject *(*)(struct __pyx_array_obj *))__pyx_array_get_memview; if (PyType_Ready(&__pyx_type___pyx_array) < 0) __PYX_ERR(2, 106, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type___pyx_array.tp_print = 0; #endif if (__Pyx_SetVtable(__pyx_type___pyx_array.tp_dict, __pyx_vtabptr_array) < 0) __PYX_ERR(2, 106, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_array) < 0) __PYX_ERR(2, 106, __pyx_L1_error) __pyx_array_type = &__pyx_type___pyx_array; if (PyType_Ready(&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(2, 280, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type___pyx_MemviewEnum.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_MemviewEnum.tp_dictoffset && __pyx_type___pyx_MemviewEnum.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type___pyx_MemviewEnum.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(2, 280, __pyx_L1_error) __pyx_MemviewEnum_type = &__pyx_type___pyx_MemviewEnum; __pyx_vtabptr_memoryview = &__pyx_vtable_memoryview; __pyx_vtable_memoryview.get_item_pointer = (char *(*)(struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_get_item_pointer; __pyx_vtable_memoryview.is_slice = (PyObject *(*)(struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_is_slice; __pyx_vtable_memoryview.setitem_slice_assignment = (PyObject *(*)(struct __pyx_memoryview_obj *, PyObject *, PyObject *))__pyx_memoryview_setitem_slice_assignment; __pyx_vtable_memoryview.setitem_slice_assign_scalar = (PyObject *(*)(struct __pyx_memoryview_obj *, struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_setitem_slice_assign_scalar; __pyx_vtable_memoryview.setitem_indexed = (PyObject *(*)(struct __pyx_memoryview_obj *, PyObject *, PyObject *))__pyx_memoryview_setitem_indexed; __pyx_vtable_memoryview.convert_item_to_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *))__pyx_memoryview_convert_item_to_object; __pyx_vtable_memoryview.assign_item_from_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *, PyObject *))__pyx_memoryview_assign_item_from_object; if (PyType_Ready(&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(2, 331, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type___pyx_memoryview.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryview.tp_dictoffset && __pyx_type___pyx_memoryview.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type___pyx_memoryview.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type___pyx_memoryview.tp_dict, __pyx_vtabptr_memoryview) < 0) __PYX_ERR(2, 331, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(2, 331, __pyx_L1_error) __pyx_memoryview_type = &__pyx_type___pyx_memoryview; __pyx_vtabptr__memoryviewslice = &__pyx_vtable__memoryviewslice; __pyx_vtable__memoryviewslice.__pyx_base = *__pyx_vtabptr_memoryview; __pyx_vtable__memoryviewslice.__pyx_base.convert_item_to_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *))__pyx_memoryviewslice_convert_item_to_object; __pyx_vtable__memoryviewslice.__pyx_base.assign_item_from_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *, PyObject *))__pyx_memoryviewslice_assign_item_from_object; __pyx_type___pyx_memoryviewslice.tp_base = __pyx_memoryview_type; if (PyType_Ready(&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(2, 967, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type___pyx_memoryviewslice.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryviewslice.tp_dictoffset && __pyx_type___pyx_memoryviewslice.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type___pyx_memoryviewslice.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type___pyx_memoryviewslice.tp_dict, __pyx_vtabptr__memoryviewslice) < 0) __PYX_ERR(2, 967, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(2, 967, __pyx_L1_error) __pyx_memoryviewslice_type = &__pyx_type___pyx_memoryviewslice; __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_type_import_code(void) { __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); /*--- Type import code ---*/ __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_0_29_37(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_0_29_37(PyTypeObject), #else sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_0_29_37(PyHeapTypeObject), #endif __Pyx_ImportType_CheckSize_Warn_0_29_37); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_variable_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); /*--- Variable import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_import_code(void) { __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); /*--- Function import code ---*/ __pyx_t_1 = PyImport_ImportModule("imgui.internal"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_ImportFunction_0_29_37(__pyx_t_1, "UpdateImGuiContext", (void (**)(void))&__pyx_f_5imgui_8internal_UpdateImGuiContext, "PyObject *(ImGuiContext *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_RefNannyFinishContext(); return -1; } #ifndef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #elif PY_MAJOR_VERSION < 3 #ifdef __cplusplus #define __Pyx_PyMODINIT_FUNC extern "C" void #else #define __Pyx_PyMODINIT_FUNC void #endif #else #ifdef __cplusplus #define __Pyx_PyMODINIT_FUNC extern "C" PyObject * #else #define __Pyx_PyMODINIT_FUNC PyObject * #endif #endif #if PY_MAJOR_VERSION < 3 __Pyx_PyMODINIT_FUNC initcore(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC initcore(void) #else __Pyx_PyMODINIT_FUNC PyInit_core(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC PyInit_core(void) #if CYTHON_PEP489_MULTI_PHASE_INIT { return PyModuleDef_Init(&__pyx_moduledef); } static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) { #if PY_VERSION_HEX >= 0x030700A1 static PY_INT64_T main_interpreter_id = -1; PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp); if (main_interpreter_id == -1) { main_interpreter_id = current_id; return (unlikely(current_id == -1)) ? -1 : 0; } else if (unlikely(main_interpreter_id != current_id)) #else static PyInterpreterState *main_interpreter = NULL; PyInterpreterState *current_interpreter = PyThreadState_Get()->interp; if (!main_interpreter) { main_interpreter = current_interpreter; } else if (unlikely(main_interpreter != current_interpreter)) #endif { PyErr_SetString( PyExc_ImportError, "Interpreter change detected - this module can only be loaded into one interpreter per process."); return -1; } return 0; } static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) { PyObject *value = PyObject_GetAttrString(spec, from_name); int result = 0; if (likely(value)) { if (allow_none || value != Py_None) { result = PyDict_SetItemString(moddict, to_name, value); } Py_DECREF(value); } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); } else { result = -1; } return result; } static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) { PyObject *module = NULL, *moddict, *modname; if (__Pyx_check_single_interpreter()) return NULL; if (__pyx_m) return __Pyx_NewRef(__pyx_m); modname = PyObject_GetAttrString(spec, "name"); if (unlikely(!modname)) goto bad; module = PyModule_NewObject(modname); Py_DECREF(modname); if (unlikely(!module)) goto bad; moddict = PyModule_GetDict(module); if (unlikely(!moddict)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad; return module; bad: Py_XDECREF(module); return NULL; } static CYTHON_SMALL_CODE int __pyx_pymod_exec_core(PyObject *__pyx_pyinit_module) #endif #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; static unsigned int __pyx_t_10[3]; ImGuiCond __pyx_t_11; ImGuiDir __pyx_t_12; float __pyx_t_13; static PyThread_type_lock __pyx_t_14[8]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannyDeclarations #if CYTHON_PEP489_MULTI_PHASE_INIT if (__pyx_m) { if (__pyx_m == __pyx_pyinit_module) return 0; PyErr_SetString(PyExc_RuntimeError, "Module 'core' has already been imported. Re-initialisation is not supported."); return -1; } #elif PY_MAJOR_VERSION >= 3 if (__pyx_m) return __Pyx_NewRef(__pyx_m); #endif #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_core(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pxy_PyFrame_Initialize_Offsets __Pxy_PyFrame_Initialize_Offsets(); #endif __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS PyEval_InitThreads(); #endif /*--- Module creation code ---*/ #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_m = __pyx_pyinit_module; Py_INCREF(__pyx_m); #else #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("core", __pyx_methods, __pyx_k_todo_consider_inlining_every_oc, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) #endif __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_b); __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_cython_runtime); if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_imgui__core) { if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "imgui.core")) { if (unlikely(PyDict_SetItemString(modules, "imgui.core", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global type/function init code ---*/ (void)__Pyx_modinit_global_init_code(); (void)__Pyx_modinit_variable_export_code(); (void)__Pyx_modinit_function_export_code(); if (unlikely(__Pyx_modinit_type_init_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error) if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error) (void)__Pyx_modinit_variable_import_code(); if (unlikely(__Pyx_modinit_function_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "imgui/core.pyx":15 * from cython.operator cimport dereference as deref * * from collections import namedtuple # <<<<<<<<<<<<<< * import warnings * from contextlib import contextmanager */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_namedtuple); __Pyx_GIVEREF(__pyx_n_s_namedtuple); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_namedtuple); __pyx_t_2 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_namedtuple); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_namedtuple, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":16 * * from collections import namedtuple * import warnings # <<<<<<<<<<<<<< * from contextlib import contextmanager * try: */ __pyx_t_2 = __Pyx_Import(__pyx_n_s_warnings, 0, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_warnings, __pyx_t_2) < 0) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":17 * from collections import namedtuple * import warnings * from contextlib import contextmanager # <<<<<<<<<<<<<< * try: * from itertools import izip_longest */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_contextmanager); __Pyx_GIVEREF(__pyx_n_s_contextmanager); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_contextmanager); __pyx_t_1 = __Pyx_Import(__pyx_n_s_contextlib, __pyx_t_2, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_contextmanager); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_contextmanager, __pyx_t_2) < 0) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":18 * import warnings * from contextlib import contextmanager * try: # <<<<<<<<<<<<<< * from itertools import izip_longest * except ImportError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "imgui/core.pyx":19 * from contextlib import contextmanager * try: * from itertools import izip_longest # <<<<<<<<<<<<<< * except ImportError: * from itertools import zip_longest as izip_longest */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_izip_longest); __Pyx_GIVEREF(__pyx_n_s_izip_longest); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_izip_longest); __pyx_t_2 = __Pyx_Import(__pyx_n_s_itertools, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_izip_longest); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_izip_longest, __pyx_t_1) < 0) __PYX_ERR(0, 19, __pyx_L2_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":18 * import warnings * from contextlib import contextmanager * try: # <<<<<<<<<<<<<< * from itertools import izip_longest * except ImportError: */ } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L7_try_end; __pyx_L2_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":20 * try: * from itertools import izip_longest * except ImportError: # <<<<<<<<<<<<<< * from itertools import zip_longest as izip_longest * */ __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError); if (__pyx_t_6) { __Pyx_AddTraceback("imgui.core", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_7) < 0) __PYX_ERR(0, 20, __pyx_L4_except_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_7); /* "imgui/core.pyx":21 * from itertools import izip_longest * except ImportError: * from itertools import zip_longest as izip_longest # <<<<<<<<<<<<<< * * from libc.stdlib cimport malloc, realloc, free */ __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21, __pyx_L4_except_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_n_s_zip_longest); __Pyx_GIVEREF(__pyx_n_s_zip_longest); PyList_SET_ITEM(__pyx_t_8, 0, __pyx_n_s_zip_longest); __pyx_t_9 = __Pyx_Import(__pyx_n_s_itertools, __pyx_t_8, -1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21, __pyx_L4_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_ImportFrom(__pyx_t_9, __pyx_n_s_zip_longest); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21, __pyx_L4_except_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_izip_longest, __pyx_t_8) < 0) __PYX_ERR(0, 21, __pyx_L4_except_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L3_exception_handled; } goto __pyx_L4_except_error; __pyx_L4_except_error:; /* "imgui/core.pyx":18 * import warnings * from contextlib import contextmanager * try: # <<<<<<<<<<<<<< * from itertools import izip_longest * except ImportError: */ __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); goto __pyx_L1_error; __pyx_L3_exception_handled:; __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); __pyx_L7_try_end:; } /* "imgui/core.pyx":31 * from libcpp cimport bool * * FLOAT_MIN = FLT_MIN # <<<<<<<<<<<<<< * FLOAT_MAX = FLT_MAX * */ __pyx_t_7 = PyFloat_FromDouble(FLT_MIN); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FLOAT_MIN, __pyx_t_7) < 0) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":32 * * FLOAT_MIN = FLT_MIN * FLOAT_MAX = FLT_MAX # <<<<<<<<<<<<<< * * cimport cimgui */ __pyx_t_7 = PyFloat_FromDouble(FLT_MAX); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FLOAT_MAX, __pyx_t_7) < 0) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":45 * DEF TARGET_IMGUI_VERSION = (1, 79) * * cdef unsigned int* _LATIN_ALL = [0x0020, 0x024F , 0] # <<<<<<<<<<<<<< * * # ==== Condition enum redefines ==== */ __pyx_t_10[0] = 0x0020; __pyx_t_10[1] = 0x024F; __pyx_t_10[2] = 0; __pyx_v_5imgui_4core__LATIN_ALL = __pyx_t_10; /* "imgui/core.pyx":48 * * # ==== Condition enum redefines ==== * NONE = enums.ImGuiCond_None # <<<<<<<<<<<<<< * ALWAYS = enums.ImGuiCond_Always * ONCE = enums.ImGuiCond_Once */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCond_(ImGuiCond_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":49 * # ==== Condition enum redefines ==== * NONE = enums.ImGuiCond_None * ALWAYS = enums.ImGuiCond_Always # <<<<<<<<<<<<<< * ONCE = enums.ImGuiCond_Once * FIRST_USE_EVER = enums.ImGuiCond_FirstUseEver */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCond_(ImGuiCond_Always); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ALWAYS, __pyx_t_7) < 0) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":50 * NONE = enums.ImGuiCond_None * ALWAYS = enums.ImGuiCond_Always * ONCE = enums.ImGuiCond_Once # <<<<<<<<<<<<<< * FIRST_USE_EVER = enums.ImGuiCond_FirstUseEver * APPEARING = enums.ImGuiCond_Appearing */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCond_(ImGuiCond_Once); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ONCE, __pyx_t_7) < 0) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":51 * ALWAYS = enums.ImGuiCond_Always * ONCE = enums.ImGuiCond_Once * FIRST_USE_EVER = enums.ImGuiCond_FirstUseEver # <<<<<<<<<<<<<< * APPEARING = enums.ImGuiCond_Appearing * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCond_(ImGuiCond_FirstUseEver); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FIRST_USE_EVER, __pyx_t_7) < 0) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":52 * ONCE = enums.ImGuiCond_Once * FIRST_USE_EVER = enums.ImGuiCond_FirstUseEver * APPEARING = enums.ImGuiCond_Appearing # <<<<<<<<<<<<<< * * # ==== Style var enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCond_(ImGuiCond_Appearing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_APPEARING, __pyx_t_7) < 0) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":55 * * # ==== Style var enum redefines ==== * STYLE_ALPHA = enums.ImGuiStyleVar_Alpha # float # <<<<<<<<<<<<<< * STYLE_WINDOW_PADDING = enums.ImGuiStyleVar_WindowPadding # Vec2 * STYLE_WINDOW_ROUNDING = enums.ImGuiStyleVar_WindowRounding # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_Alpha); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_ALPHA, __pyx_t_7) < 0) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":56 * # ==== Style var enum redefines ==== * STYLE_ALPHA = enums.ImGuiStyleVar_Alpha # float * STYLE_WINDOW_PADDING = enums.ImGuiStyleVar_WindowPadding # Vec2 # <<<<<<<<<<<<<< * STYLE_WINDOW_ROUNDING = enums.ImGuiStyleVar_WindowRounding # float * STYLE_WINDOW_BORDERSIZE = enums.ImGuiStyleVar_WindowBorderSize # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_WindowPadding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_WINDOW_PADDING, __pyx_t_7) < 0) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":57 * STYLE_ALPHA = enums.ImGuiStyleVar_Alpha # float * STYLE_WINDOW_PADDING = enums.ImGuiStyleVar_WindowPadding # Vec2 * STYLE_WINDOW_ROUNDING = enums.ImGuiStyleVar_WindowRounding # float # <<<<<<<<<<<<<< * STYLE_WINDOW_BORDERSIZE = enums.ImGuiStyleVar_WindowBorderSize # float * STYLE_WINDOW_MIN_SIZE = enums.ImGuiStyleVar_WindowMinSize # Vec2 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_WindowRounding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_WINDOW_ROUNDING, __pyx_t_7) < 0) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":58 * STYLE_WINDOW_PADDING = enums.ImGuiStyleVar_WindowPadding # Vec2 * STYLE_WINDOW_ROUNDING = enums.ImGuiStyleVar_WindowRounding # float * STYLE_WINDOW_BORDERSIZE = enums.ImGuiStyleVar_WindowBorderSize # float # <<<<<<<<<<<<<< * STYLE_WINDOW_MIN_SIZE = enums.ImGuiStyleVar_WindowMinSize # Vec2 * STYLE_WINDOW_TITLE_ALIGN = enums.ImGuiStyleVar_WindowTitleAlign # Vec2 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_WindowBorderSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_WINDOW_BORDERSIZE, __pyx_t_7) < 0) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":59 * STYLE_WINDOW_ROUNDING = enums.ImGuiStyleVar_WindowRounding # float * STYLE_WINDOW_BORDERSIZE = enums.ImGuiStyleVar_WindowBorderSize # float * STYLE_WINDOW_MIN_SIZE = enums.ImGuiStyleVar_WindowMinSize # Vec2 # <<<<<<<<<<<<<< * STYLE_WINDOW_TITLE_ALIGN = enums.ImGuiStyleVar_WindowTitleAlign # Vec2 * STYLE_CHILD_ROUNDING = enums.ImGuiStyleVar_ChildRounding # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_WindowMinSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_WINDOW_MIN_SIZE, __pyx_t_7) < 0) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":60 * STYLE_WINDOW_BORDERSIZE = enums.ImGuiStyleVar_WindowBorderSize # float * STYLE_WINDOW_MIN_SIZE = enums.ImGuiStyleVar_WindowMinSize # Vec2 * STYLE_WINDOW_TITLE_ALIGN = enums.ImGuiStyleVar_WindowTitleAlign # Vec2 # <<<<<<<<<<<<<< * STYLE_CHILD_ROUNDING = enums.ImGuiStyleVar_ChildRounding # float * STYLE_CHILD_BORDERSIZE = enums.ImGuiStyleVar_ChildBorderSize # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_WindowTitleAlign); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_WINDOW_TITLE_ALIGN, __pyx_t_7) < 0) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":61 * STYLE_WINDOW_MIN_SIZE = enums.ImGuiStyleVar_WindowMinSize # Vec2 * STYLE_WINDOW_TITLE_ALIGN = enums.ImGuiStyleVar_WindowTitleAlign # Vec2 * STYLE_CHILD_ROUNDING = enums.ImGuiStyleVar_ChildRounding # float # <<<<<<<<<<<<<< * STYLE_CHILD_BORDERSIZE = enums.ImGuiStyleVar_ChildBorderSize # float * STYLE_POPUP_ROUNDING = enums.ImGuiStyleVar_PopupRounding # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ChildRounding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_CHILD_ROUNDING, __pyx_t_7) < 0) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":62 * STYLE_WINDOW_TITLE_ALIGN = enums.ImGuiStyleVar_WindowTitleAlign # Vec2 * STYLE_CHILD_ROUNDING = enums.ImGuiStyleVar_ChildRounding # float * STYLE_CHILD_BORDERSIZE = enums.ImGuiStyleVar_ChildBorderSize # float # <<<<<<<<<<<<<< * STYLE_POPUP_ROUNDING = enums.ImGuiStyleVar_PopupRounding # float * STYLE_POPUP_BORDERSIZE = enums.ImGuiStyleVar_PopupBorderSize # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ChildBorderSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_CHILD_BORDERSIZE, __pyx_t_7) < 0) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":63 * STYLE_CHILD_ROUNDING = enums.ImGuiStyleVar_ChildRounding # float * STYLE_CHILD_BORDERSIZE = enums.ImGuiStyleVar_ChildBorderSize # float * STYLE_POPUP_ROUNDING = enums.ImGuiStyleVar_PopupRounding # float # <<<<<<<<<<<<<< * STYLE_POPUP_BORDERSIZE = enums.ImGuiStyleVar_PopupBorderSize # float * STYLE_FRAME_PADDING = enums.ImGuiStyleVar_FramePadding # Vec2 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_PopupRounding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_POPUP_ROUNDING, __pyx_t_7) < 0) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":64 * STYLE_CHILD_BORDERSIZE = enums.ImGuiStyleVar_ChildBorderSize # float * STYLE_POPUP_ROUNDING = enums.ImGuiStyleVar_PopupRounding # float * STYLE_POPUP_BORDERSIZE = enums.ImGuiStyleVar_PopupBorderSize # float # <<<<<<<<<<<<<< * STYLE_FRAME_PADDING = enums.ImGuiStyleVar_FramePadding # Vec2 * STYLE_FRAME_ROUNDING = enums.ImGuiStyleVar_FrameRounding # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_PopupBorderSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_POPUP_BORDERSIZE, __pyx_t_7) < 0) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":65 * STYLE_POPUP_ROUNDING = enums.ImGuiStyleVar_PopupRounding # float * STYLE_POPUP_BORDERSIZE = enums.ImGuiStyleVar_PopupBorderSize # float * STYLE_FRAME_PADDING = enums.ImGuiStyleVar_FramePadding # Vec2 # <<<<<<<<<<<<<< * STYLE_FRAME_ROUNDING = enums.ImGuiStyleVar_FrameRounding # float * STYLE_FRAME_BORDERSIZE = enums.ImGuiStyleVar_FrameBorderSize # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_FramePadding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_FRAME_PADDING, __pyx_t_7) < 0) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":66 * STYLE_POPUP_BORDERSIZE = enums.ImGuiStyleVar_PopupBorderSize # float * STYLE_FRAME_PADDING = enums.ImGuiStyleVar_FramePadding # Vec2 * STYLE_FRAME_ROUNDING = enums.ImGuiStyleVar_FrameRounding # float # <<<<<<<<<<<<<< * STYLE_FRAME_BORDERSIZE = enums.ImGuiStyleVar_FrameBorderSize # float * STYLE_ITEM_SPACING = enums.ImGuiStyleVar_ItemSpacing # Vec2 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_FrameRounding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_FRAME_ROUNDING, __pyx_t_7) < 0) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":67 * STYLE_FRAME_PADDING = enums.ImGuiStyleVar_FramePadding # Vec2 * STYLE_FRAME_ROUNDING = enums.ImGuiStyleVar_FrameRounding # float * STYLE_FRAME_BORDERSIZE = enums.ImGuiStyleVar_FrameBorderSize # float # <<<<<<<<<<<<<< * STYLE_ITEM_SPACING = enums.ImGuiStyleVar_ItemSpacing # Vec2 * STYLE_ITEM_INNER_SPACING = enums.ImGuiStyleVar_ItemInnerSpacing # Vec2 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_FrameBorderSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_FRAME_BORDERSIZE, __pyx_t_7) < 0) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":68 * STYLE_FRAME_ROUNDING = enums.ImGuiStyleVar_FrameRounding # float * STYLE_FRAME_BORDERSIZE = enums.ImGuiStyleVar_FrameBorderSize # float * STYLE_ITEM_SPACING = enums.ImGuiStyleVar_ItemSpacing # Vec2 # <<<<<<<<<<<<<< * STYLE_ITEM_INNER_SPACING = enums.ImGuiStyleVar_ItemInnerSpacing # Vec2 * STYLE_INDENT_SPACING = enums.ImGuiStyleVar_IndentSpacing # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ItemSpacing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_ITEM_SPACING, __pyx_t_7) < 0) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":69 * STYLE_FRAME_BORDERSIZE = enums.ImGuiStyleVar_FrameBorderSize # float * STYLE_ITEM_SPACING = enums.ImGuiStyleVar_ItemSpacing # Vec2 * STYLE_ITEM_INNER_SPACING = enums.ImGuiStyleVar_ItemInnerSpacing # Vec2 # <<<<<<<<<<<<<< * STYLE_INDENT_SPACING = enums.ImGuiStyleVar_IndentSpacing # float * STYLE_CELL_PADDING = enums.ImGuiStyleVar_CellPadding # ImVec2 CellPadding */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ItemInnerSpacing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_ITEM_INNER_SPACING, __pyx_t_7) < 0) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":70 * STYLE_ITEM_SPACING = enums.ImGuiStyleVar_ItemSpacing # Vec2 * STYLE_ITEM_INNER_SPACING = enums.ImGuiStyleVar_ItemInnerSpacing # Vec2 * STYLE_INDENT_SPACING = enums.ImGuiStyleVar_IndentSpacing # float # <<<<<<<<<<<<<< * STYLE_CELL_PADDING = enums.ImGuiStyleVar_CellPadding # ImVec2 CellPadding * STYLE_SCROLLBAR_SIZE = enums.ImGuiStyleVar_ScrollbarSize # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_IndentSpacing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_INDENT_SPACING, __pyx_t_7) < 0) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":71 * STYLE_ITEM_INNER_SPACING = enums.ImGuiStyleVar_ItemInnerSpacing # Vec2 * STYLE_INDENT_SPACING = enums.ImGuiStyleVar_IndentSpacing # float * STYLE_CELL_PADDING = enums.ImGuiStyleVar_CellPadding # ImVec2 CellPadding # <<<<<<<<<<<<<< * STYLE_SCROLLBAR_SIZE = enums.ImGuiStyleVar_ScrollbarSize # float * STYLE_SCROLLBAR_ROUNDING = enums.ImGuiStyleVar_ScrollbarRounding # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_CellPadding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_CELL_PADDING, __pyx_t_7) < 0) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":72 * STYLE_INDENT_SPACING = enums.ImGuiStyleVar_IndentSpacing # float * STYLE_CELL_PADDING = enums.ImGuiStyleVar_CellPadding # ImVec2 CellPadding * STYLE_SCROLLBAR_SIZE = enums.ImGuiStyleVar_ScrollbarSize # float # <<<<<<<<<<<<<< * STYLE_SCROLLBAR_ROUNDING = enums.ImGuiStyleVar_ScrollbarRounding # float * STYLE_GRAB_MIN_SIZE = enums.ImGuiStyleVar_GrabMinSize # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ScrollbarSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_SCROLLBAR_SIZE, __pyx_t_7) < 0) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":73 * STYLE_CELL_PADDING = enums.ImGuiStyleVar_CellPadding # ImVec2 CellPadding * STYLE_SCROLLBAR_SIZE = enums.ImGuiStyleVar_ScrollbarSize # float * STYLE_SCROLLBAR_ROUNDING = enums.ImGuiStyleVar_ScrollbarRounding # float # <<<<<<<<<<<<<< * STYLE_GRAB_MIN_SIZE = enums.ImGuiStyleVar_GrabMinSize # float * STYLE_GRAB_ROUNDING = enums.ImGuiStyleVar_GrabRounding # float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ScrollbarRounding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_SCROLLBAR_ROUNDING, __pyx_t_7) < 0) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":74 * STYLE_SCROLLBAR_SIZE = enums.ImGuiStyleVar_ScrollbarSize # float * STYLE_SCROLLBAR_ROUNDING = enums.ImGuiStyleVar_ScrollbarRounding # float * STYLE_GRAB_MIN_SIZE = enums.ImGuiStyleVar_GrabMinSize # float # <<<<<<<<<<<<<< * STYLE_GRAB_ROUNDING = enums.ImGuiStyleVar_GrabRounding # float * STYLE_TAB_ROUNDING = enums.ImGuiStyleVar_TabRounding # flot */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_GrabMinSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_GRAB_MIN_SIZE, __pyx_t_7) < 0) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":75 * STYLE_SCROLLBAR_ROUNDING = enums.ImGuiStyleVar_ScrollbarRounding # float * STYLE_GRAB_MIN_SIZE = enums.ImGuiStyleVar_GrabMinSize # float * STYLE_GRAB_ROUNDING = enums.ImGuiStyleVar_GrabRounding # float # <<<<<<<<<<<<<< * STYLE_TAB_ROUNDING = enums.ImGuiStyleVar_TabRounding # flot * STYLE_BUTTON_TEXT_ALIGN = enums.ImGuiStyleVar_ButtonTextAlign # Vec2 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_GrabRounding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_GRAB_ROUNDING, __pyx_t_7) < 0) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":76 * STYLE_GRAB_MIN_SIZE = enums.ImGuiStyleVar_GrabMinSize # float * STYLE_GRAB_ROUNDING = enums.ImGuiStyleVar_GrabRounding # float * STYLE_TAB_ROUNDING = enums.ImGuiStyleVar_TabRounding # flot # <<<<<<<<<<<<<< * STYLE_BUTTON_TEXT_ALIGN = enums.ImGuiStyleVar_ButtonTextAlign # Vec2 * STYLE_SELECTABLE_TEXT_ALIGN = enums.ImGuiStyleVar_SelectableTextAlign # Vec2 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_TabRounding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_TAB_ROUNDING, __pyx_t_7) < 0) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":77 * STYLE_GRAB_ROUNDING = enums.ImGuiStyleVar_GrabRounding # float * STYLE_TAB_ROUNDING = enums.ImGuiStyleVar_TabRounding # flot * STYLE_BUTTON_TEXT_ALIGN = enums.ImGuiStyleVar_ButtonTextAlign # Vec2 # <<<<<<<<<<<<<< * STYLE_SELECTABLE_TEXT_ALIGN = enums.ImGuiStyleVar_SelectableTextAlign # Vec2 * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ButtonTextAlign); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_BUTTON_TEXT_ALIGN, __pyx_t_7) < 0) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":78 * STYLE_TAB_ROUNDING = enums.ImGuiStyleVar_TabRounding # flot * STYLE_BUTTON_TEXT_ALIGN = enums.ImGuiStyleVar_ButtonTextAlign # Vec2 * STYLE_SELECTABLE_TEXT_ALIGN = enums.ImGuiStyleVar_SelectableTextAlign # Vec2 # <<<<<<<<<<<<<< * * # ==== Button Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_SelectableTextAlign); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_STYLE_SELECTABLE_TEXT_ALIGN, __pyx_t_7) < 0) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":81 * * # ==== Button Flags ==== * BUTTON_NONE = enums.ImGuiButtonFlags_None # <<<<<<<<<<<<<< * BUTTON_MOUSE_BUTTON_LEFT = enums.ImGuiButtonFlags_MouseButtonLeft * BUTTON_MOUSE_BUTTON_RIGHT = enums.ImGuiButtonFlags_MouseButtonRight */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiButtonFlags_(ImGuiButtonFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BUTTON_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":82 * # ==== Button Flags ==== * BUTTON_NONE = enums.ImGuiButtonFlags_None * BUTTON_MOUSE_BUTTON_LEFT = enums.ImGuiButtonFlags_MouseButtonLeft # <<<<<<<<<<<<<< * BUTTON_MOUSE_BUTTON_RIGHT = enums.ImGuiButtonFlags_MouseButtonRight * BUTTON_MOUSE_BUTTON_MIDDLE = enums.ImGuiButtonFlags_MouseButtonMiddle */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiButtonFlags_(ImGuiButtonFlags_MouseButtonLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BUTTON_MOUSE_BUTTON_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":83 * BUTTON_NONE = enums.ImGuiButtonFlags_None * BUTTON_MOUSE_BUTTON_LEFT = enums.ImGuiButtonFlags_MouseButtonLeft * BUTTON_MOUSE_BUTTON_RIGHT = enums.ImGuiButtonFlags_MouseButtonRight # <<<<<<<<<<<<<< * BUTTON_MOUSE_BUTTON_MIDDLE = enums.ImGuiButtonFlags_MouseButtonMiddle * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiButtonFlags_(ImGuiButtonFlags_MouseButtonRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BUTTON_MOUSE_BUTTON_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":84 * BUTTON_MOUSE_BUTTON_LEFT = enums.ImGuiButtonFlags_MouseButtonLeft * BUTTON_MOUSE_BUTTON_RIGHT = enums.ImGuiButtonFlags_MouseButtonRight * BUTTON_MOUSE_BUTTON_MIDDLE = enums.ImGuiButtonFlags_MouseButtonMiddle # <<<<<<<<<<<<<< * * # ==== Key map enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiButtonFlags_(ImGuiButtonFlags_MouseButtonMiddle); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BUTTON_MOUSE_BUTTON_MIDDLE, __pyx_t_7) < 0) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":87 * * # ==== Key map enum redefines ==== * KEY_TAB = enums.ImGuiKey_Tab # for tabbing through fields # <<<<<<<<<<<<<< * KEY_LEFT_ARROW = enums.ImGuiKey_LeftArrow # for text edit * KEY_RIGHT_ARROW = enums.ImGuiKey_RightArrow # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Tab); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_TAB, __pyx_t_7) < 0) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":88 * # ==== Key map enum redefines ==== * KEY_TAB = enums.ImGuiKey_Tab # for tabbing through fields * KEY_LEFT_ARROW = enums.ImGuiKey_LeftArrow # for text edit # <<<<<<<<<<<<<< * KEY_RIGHT_ARROW = enums.ImGuiKey_RightArrow # for text edit * KEY_UP_ARROW = enums.ImGuiKey_UpArrow # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_LeftArrow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_LEFT_ARROW, __pyx_t_7) < 0) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":89 * KEY_TAB = enums.ImGuiKey_Tab # for tabbing through fields * KEY_LEFT_ARROW = enums.ImGuiKey_LeftArrow # for text edit * KEY_RIGHT_ARROW = enums.ImGuiKey_RightArrow # for text edit # <<<<<<<<<<<<<< * KEY_UP_ARROW = enums.ImGuiKey_UpArrow # for text edit * KEY_DOWN_ARROW = enums.ImGuiKey_DownArrow # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_RightArrow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_RIGHT_ARROW, __pyx_t_7) < 0) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":90 * KEY_LEFT_ARROW = enums.ImGuiKey_LeftArrow # for text edit * KEY_RIGHT_ARROW = enums.ImGuiKey_RightArrow # for text edit * KEY_UP_ARROW = enums.ImGuiKey_UpArrow # for text edit # <<<<<<<<<<<<<< * KEY_DOWN_ARROW = enums.ImGuiKey_DownArrow # for text edit * KEY_PAGE_UP = enums.ImGuiKey_PageUp */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_UpArrow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_UP_ARROW, __pyx_t_7) < 0) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":91 * KEY_RIGHT_ARROW = enums.ImGuiKey_RightArrow # for text edit * KEY_UP_ARROW = enums.ImGuiKey_UpArrow # for text edit * KEY_DOWN_ARROW = enums.ImGuiKey_DownArrow # for text edit # <<<<<<<<<<<<<< * KEY_PAGE_UP = enums.ImGuiKey_PageUp * KEY_PAGE_DOWN = enums.ImGuiKey_PageDown */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_DownArrow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_DOWN_ARROW, __pyx_t_7) < 0) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":92 * KEY_UP_ARROW = enums.ImGuiKey_UpArrow # for text edit * KEY_DOWN_ARROW = enums.ImGuiKey_DownArrow # for text edit * KEY_PAGE_UP = enums.ImGuiKey_PageUp # <<<<<<<<<<<<<< * KEY_PAGE_DOWN = enums.ImGuiKey_PageDown * KEY_HOME = enums.ImGuiKey_Home # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_PageUp); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_PAGE_UP, __pyx_t_7) < 0) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":93 * KEY_DOWN_ARROW = enums.ImGuiKey_DownArrow # for text edit * KEY_PAGE_UP = enums.ImGuiKey_PageUp * KEY_PAGE_DOWN = enums.ImGuiKey_PageDown # <<<<<<<<<<<<<< * KEY_HOME = enums.ImGuiKey_Home # for text edit * KEY_END = enums.ImGuiKey_End # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_PageDown); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_PAGE_DOWN, __pyx_t_7) < 0) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":94 * KEY_PAGE_UP = enums.ImGuiKey_PageUp * KEY_PAGE_DOWN = enums.ImGuiKey_PageDown * KEY_HOME = enums.ImGuiKey_Home # for text edit # <<<<<<<<<<<<<< * KEY_END = enums.ImGuiKey_End # for text edit * KEY_INSERT = enums.ImGuiKey_Insert # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Home); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_HOME, __pyx_t_7) < 0) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":95 * KEY_PAGE_DOWN = enums.ImGuiKey_PageDown * KEY_HOME = enums.ImGuiKey_Home # for text edit * KEY_END = enums.ImGuiKey_End # for text edit # <<<<<<<<<<<<<< * KEY_INSERT = enums.ImGuiKey_Insert # for text edit * KEY_DELETE = enums.ImGuiKey_Delete # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_End); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_END, __pyx_t_7) < 0) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":96 * KEY_HOME = enums.ImGuiKey_Home # for text edit * KEY_END = enums.ImGuiKey_End # for text edit * KEY_INSERT = enums.ImGuiKey_Insert # for text edit # <<<<<<<<<<<<<< * KEY_DELETE = enums.ImGuiKey_Delete # for text edit * KEY_BACKSPACE = enums.ImGuiKey_Backspace # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Insert); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_INSERT, __pyx_t_7) < 0) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":97 * KEY_END = enums.ImGuiKey_End # for text edit * KEY_INSERT = enums.ImGuiKey_Insert # for text edit * KEY_DELETE = enums.ImGuiKey_Delete # for text edit # <<<<<<<<<<<<<< * KEY_BACKSPACE = enums.ImGuiKey_Backspace # for text edit * KEY_SPACE = enums.ImGuiKey_Space # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Delete); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_DELETE, __pyx_t_7) < 0) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":98 * KEY_INSERT = enums.ImGuiKey_Insert # for text edit * KEY_DELETE = enums.ImGuiKey_Delete # for text edit * KEY_BACKSPACE = enums.ImGuiKey_Backspace # for text edit # <<<<<<<<<<<<<< * KEY_SPACE = enums.ImGuiKey_Space # for text edit * KEY_ENTER = enums.ImGuiKey_Enter # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Backspace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_BACKSPACE, __pyx_t_7) < 0) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":99 * KEY_DELETE = enums.ImGuiKey_Delete # for text edit * KEY_BACKSPACE = enums.ImGuiKey_Backspace # for text edit * KEY_SPACE = enums.ImGuiKey_Space # for text edit # <<<<<<<<<<<<<< * KEY_ENTER = enums.ImGuiKey_Enter # for text edit * KEY_ESCAPE = enums.ImGuiKey_Escape # for text edit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Space); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_SPACE, __pyx_t_7) < 0) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":100 * KEY_BACKSPACE = enums.ImGuiKey_Backspace # for text edit * KEY_SPACE = enums.ImGuiKey_Space # for text edit * KEY_ENTER = enums.ImGuiKey_Enter # for text edit # <<<<<<<<<<<<<< * KEY_ESCAPE = enums.ImGuiKey_Escape # for text edit * KEY_PAD_ENTER = enums.ImGuiKey_KeyPadEnter */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Enter); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_ENTER, __pyx_t_7) < 0) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":101 * KEY_SPACE = enums.ImGuiKey_Space # for text edit * KEY_ENTER = enums.ImGuiKey_Enter # for text edit * KEY_ESCAPE = enums.ImGuiKey_Escape # for text edit # <<<<<<<<<<<<<< * KEY_PAD_ENTER = enums.ImGuiKey_KeyPadEnter * KEY_A = enums.ImGuiKey_A # for text edit CTRL+A: select all */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Escape); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_ESCAPE, __pyx_t_7) < 0) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":102 * KEY_ENTER = enums.ImGuiKey_Enter # for text edit * KEY_ESCAPE = enums.ImGuiKey_Escape # for text edit * KEY_PAD_ENTER = enums.ImGuiKey_KeyPadEnter # <<<<<<<<<<<<<< * KEY_A = enums.ImGuiKey_A # for text edit CTRL+A: select all * KEY_C = enums.ImGuiKey_C # for text edit CTRL+C: copy */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_KeyPadEnter); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_PAD_ENTER, __pyx_t_7) < 0) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":103 * KEY_ESCAPE = enums.ImGuiKey_Escape # for text edit * KEY_PAD_ENTER = enums.ImGuiKey_KeyPadEnter * KEY_A = enums.ImGuiKey_A # for text edit CTRL+A: select all # <<<<<<<<<<<<<< * KEY_C = enums.ImGuiKey_C # for text edit CTRL+C: copy * KEY_V = enums.ImGuiKey_V # for text edit CTRL+V: paste */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_A); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_A, __pyx_t_7) < 0) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":104 * KEY_PAD_ENTER = enums.ImGuiKey_KeyPadEnter * KEY_A = enums.ImGuiKey_A # for text edit CTRL+A: select all * KEY_C = enums.ImGuiKey_C # for text edit CTRL+C: copy # <<<<<<<<<<<<<< * KEY_V = enums.ImGuiKey_V # for text edit CTRL+V: paste * KEY_X = enums.ImGuiKey_X # for text edit CTRL+X: cut */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_C); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_C, __pyx_t_7) < 0) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":105 * KEY_A = enums.ImGuiKey_A # for text edit CTRL+A: select all * KEY_C = enums.ImGuiKey_C # for text edit CTRL+C: copy * KEY_V = enums.ImGuiKey_V # for text edit CTRL+V: paste # <<<<<<<<<<<<<< * KEY_X = enums.ImGuiKey_X # for text edit CTRL+X: cut * KEY_Y = enums.ImGuiKey_Y # for text edit CTRL+Y: redo */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_V); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_V, __pyx_t_7) < 0) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":106 * KEY_C = enums.ImGuiKey_C # for text edit CTRL+C: copy * KEY_V = enums.ImGuiKey_V # for text edit CTRL+V: paste * KEY_X = enums.ImGuiKey_X # for text edit CTRL+X: cut # <<<<<<<<<<<<<< * KEY_Y = enums.ImGuiKey_Y # for text edit CTRL+Y: redo * KEY_Z = enums.ImGuiKey_Z # for text edit CTRL+Z: undo */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_X); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_X, __pyx_t_7) < 0) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":107 * KEY_V = enums.ImGuiKey_V # for text edit CTRL+V: paste * KEY_X = enums.ImGuiKey_X # for text edit CTRL+X: cut * KEY_Y = enums.ImGuiKey_Y # for text edit CTRL+Y: redo # <<<<<<<<<<<<<< * KEY_Z = enums.ImGuiKey_Z # for text edit CTRL+Z: undo * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Y); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_Y, __pyx_t_7) < 0) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":108 * KEY_X = enums.ImGuiKey_X # for text edit CTRL+X: cut * KEY_Y = enums.ImGuiKey_Y # for text edit CTRL+Y: redo * KEY_Z = enums.ImGuiKey_Z # for text edit CTRL+Z: undo # <<<<<<<<<<<<<< * * # ==== Key Mod Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_Z); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_Z, __pyx_t_7) < 0) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":111 * * # ==== Key Mod Flags ==== * KEY_MOD_NONE = enums.ImGuiKeyModFlags_None # <<<<<<<<<<<<<< * KEY_MOD_CTRL = enums.ImGuiKeyModFlags_Ctrl * KEY_MOD_SHIFT = enums.ImGuiKeyModFlags_Shift */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKeyModFlags_(ImGuiKeyModFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_MOD_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":112 * # ==== Key Mod Flags ==== * KEY_MOD_NONE = enums.ImGuiKeyModFlags_None * KEY_MOD_CTRL = enums.ImGuiKeyModFlags_Ctrl # <<<<<<<<<<<<<< * KEY_MOD_SHIFT = enums.ImGuiKeyModFlags_Shift * KEY_MOD_ALT = enums.ImGuiKeyModFlags_Alt */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKeyModFlags_(ImGuiKeyModFlags_Ctrl); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_MOD_CTRL, __pyx_t_7) < 0) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":113 * KEY_MOD_NONE = enums.ImGuiKeyModFlags_None * KEY_MOD_CTRL = enums.ImGuiKeyModFlags_Ctrl * KEY_MOD_SHIFT = enums.ImGuiKeyModFlags_Shift # <<<<<<<<<<<<<< * KEY_MOD_ALT = enums.ImGuiKeyModFlags_Alt * KEY_MOD_SUPER = enums.ImGuiKeyModFlags_Super */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKeyModFlags_(ImGuiKeyModFlags_Shift); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_MOD_SHIFT, __pyx_t_7) < 0) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":114 * KEY_MOD_CTRL = enums.ImGuiKeyModFlags_Ctrl * KEY_MOD_SHIFT = enums.ImGuiKeyModFlags_Shift * KEY_MOD_ALT = enums.ImGuiKeyModFlags_Alt # <<<<<<<<<<<<<< * KEY_MOD_SUPER = enums.ImGuiKeyModFlags_Super * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKeyModFlags_(ImGuiKeyModFlags_Alt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_MOD_ALT, __pyx_t_7) < 0) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":115 * KEY_MOD_SHIFT = enums.ImGuiKeyModFlags_Shift * KEY_MOD_ALT = enums.ImGuiKeyModFlags_Alt * KEY_MOD_SUPER = enums.ImGuiKeyModFlags_Super # <<<<<<<<<<<<<< * * # ==== Nav Input ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiKeyModFlags_(ImGuiKeyModFlags_Super); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_MOD_SUPER, __pyx_t_7) < 0) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":118 * * # ==== Nav Input ==== * NAV_INPUT_ACTIVATE = enums.ImGuiNavInput_Activate # <<<<<<<<<<<<<< * NAV_INPUT_CANCEL = enums.ImGuiNavInput_Cancel * NAV_INPUT_INPUT = enums.ImGuiNavInput_Input */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_Activate); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_ACTIVATE, __pyx_t_7) < 0) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":119 * # ==== Nav Input ==== * NAV_INPUT_ACTIVATE = enums.ImGuiNavInput_Activate * NAV_INPUT_CANCEL = enums.ImGuiNavInput_Cancel # <<<<<<<<<<<<<< * NAV_INPUT_INPUT = enums.ImGuiNavInput_Input * NAV_INPUT_MENU = enums.ImGuiNavInput_Menu */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_Cancel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_CANCEL, __pyx_t_7) < 0) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":120 * NAV_INPUT_ACTIVATE = enums.ImGuiNavInput_Activate * NAV_INPUT_CANCEL = enums.ImGuiNavInput_Cancel * NAV_INPUT_INPUT = enums.ImGuiNavInput_Input # <<<<<<<<<<<<<< * NAV_INPUT_MENU = enums.ImGuiNavInput_Menu * NAV_INPUT_DPAD_LEFT = enums.ImGuiNavInput_DpadLeft */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_Input); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_INPUT, __pyx_t_7) < 0) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":121 * NAV_INPUT_CANCEL = enums.ImGuiNavInput_Cancel * NAV_INPUT_INPUT = enums.ImGuiNavInput_Input * NAV_INPUT_MENU = enums.ImGuiNavInput_Menu # <<<<<<<<<<<<<< * NAV_INPUT_DPAD_LEFT = enums.ImGuiNavInput_DpadLeft * NAV_INPUT_DPAD_RIGHT = enums.ImGuiNavInput_DpadRight */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_Menu); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_MENU, __pyx_t_7) < 0) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":122 * NAV_INPUT_INPUT = enums.ImGuiNavInput_Input * NAV_INPUT_MENU = enums.ImGuiNavInput_Menu * NAV_INPUT_DPAD_LEFT = enums.ImGuiNavInput_DpadLeft # <<<<<<<<<<<<<< * NAV_INPUT_DPAD_RIGHT = enums.ImGuiNavInput_DpadRight * NAV_INPUT_DPAD_UP = enums.ImGuiNavInput_DpadUp */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_DpadLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_DPAD_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":123 * NAV_INPUT_MENU = enums.ImGuiNavInput_Menu * NAV_INPUT_DPAD_LEFT = enums.ImGuiNavInput_DpadLeft * NAV_INPUT_DPAD_RIGHT = enums.ImGuiNavInput_DpadRight # <<<<<<<<<<<<<< * NAV_INPUT_DPAD_UP = enums.ImGuiNavInput_DpadUp * NAV_INPUT_DPAD_DOWN = enums.ImGuiNavInput_DpadDown */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_DpadRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_DPAD_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":124 * NAV_INPUT_DPAD_LEFT = enums.ImGuiNavInput_DpadLeft * NAV_INPUT_DPAD_RIGHT = enums.ImGuiNavInput_DpadRight * NAV_INPUT_DPAD_UP = enums.ImGuiNavInput_DpadUp # <<<<<<<<<<<<<< * NAV_INPUT_DPAD_DOWN = enums.ImGuiNavInput_DpadDown * NAV_INPUT_L_STICK_LEFT = enums.ImGuiNavInput_LStickLeft */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_DpadUp); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_DPAD_UP, __pyx_t_7) < 0) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":125 * NAV_INPUT_DPAD_RIGHT = enums.ImGuiNavInput_DpadRight * NAV_INPUT_DPAD_UP = enums.ImGuiNavInput_DpadUp * NAV_INPUT_DPAD_DOWN = enums.ImGuiNavInput_DpadDown # <<<<<<<<<<<<<< * NAV_INPUT_L_STICK_LEFT = enums.ImGuiNavInput_LStickLeft * NAV_INPUT_L_STICK_RIGHT = enums.ImGuiNavInput_LStickRight */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_DpadDown); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_DPAD_DOWN, __pyx_t_7) < 0) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":126 * NAV_INPUT_DPAD_UP = enums.ImGuiNavInput_DpadUp * NAV_INPUT_DPAD_DOWN = enums.ImGuiNavInput_DpadDown * NAV_INPUT_L_STICK_LEFT = enums.ImGuiNavInput_LStickLeft # <<<<<<<<<<<<<< * NAV_INPUT_L_STICK_RIGHT = enums.ImGuiNavInput_LStickRight * NAV_INPUT_L_STICK_UP = enums.ImGuiNavInput_LStickUp */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_LStickLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_L_STICK_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":127 * NAV_INPUT_DPAD_DOWN = enums.ImGuiNavInput_DpadDown * NAV_INPUT_L_STICK_LEFT = enums.ImGuiNavInput_LStickLeft * NAV_INPUT_L_STICK_RIGHT = enums.ImGuiNavInput_LStickRight # <<<<<<<<<<<<<< * NAV_INPUT_L_STICK_UP = enums.ImGuiNavInput_LStickUp * NAV_INPUT_L_STICK_DOWN = enums.ImGuiNavInput_LStickDown */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_LStickRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_L_STICK_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":128 * NAV_INPUT_L_STICK_LEFT = enums.ImGuiNavInput_LStickLeft * NAV_INPUT_L_STICK_RIGHT = enums.ImGuiNavInput_LStickRight * NAV_INPUT_L_STICK_UP = enums.ImGuiNavInput_LStickUp # <<<<<<<<<<<<<< * NAV_INPUT_L_STICK_DOWN = enums.ImGuiNavInput_LStickDown * NAV_INPUT_FOCUS_PREV = enums.ImGuiNavInput_FocusPrev */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_LStickUp); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_L_STICK_UP, __pyx_t_7) < 0) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":129 * NAV_INPUT_L_STICK_RIGHT = enums.ImGuiNavInput_LStickRight * NAV_INPUT_L_STICK_UP = enums.ImGuiNavInput_LStickUp * NAV_INPUT_L_STICK_DOWN = enums.ImGuiNavInput_LStickDown # <<<<<<<<<<<<<< * NAV_INPUT_FOCUS_PREV = enums.ImGuiNavInput_FocusPrev * NAV_INPUT_FOCUS_NEXT = enums.ImGuiNavInput_FocusNext */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_LStickDown); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_L_STICK_DOWN, __pyx_t_7) < 0) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":130 * NAV_INPUT_L_STICK_UP = enums.ImGuiNavInput_LStickUp * NAV_INPUT_L_STICK_DOWN = enums.ImGuiNavInput_LStickDown * NAV_INPUT_FOCUS_PREV = enums.ImGuiNavInput_FocusPrev # <<<<<<<<<<<<<< * NAV_INPUT_FOCUS_NEXT = enums.ImGuiNavInput_FocusNext * NAV_INPUT_TWEAK_SLOW = enums.ImGuiNavInput_TweakSlow */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_FocusPrev); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_FOCUS_PREV, __pyx_t_7) < 0) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":131 * NAV_INPUT_L_STICK_DOWN = enums.ImGuiNavInput_LStickDown * NAV_INPUT_FOCUS_PREV = enums.ImGuiNavInput_FocusPrev * NAV_INPUT_FOCUS_NEXT = enums.ImGuiNavInput_FocusNext # <<<<<<<<<<<<<< * NAV_INPUT_TWEAK_SLOW = enums.ImGuiNavInput_TweakSlow * NAV_INPUT_TWEAK_FAST = enums.ImGuiNavInput_TweakFast */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_FocusNext); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_FOCUS_NEXT, __pyx_t_7) < 0) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":132 * NAV_INPUT_FOCUS_PREV = enums.ImGuiNavInput_FocusPrev * NAV_INPUT_FOCUS_NEXT = enums.ImGuiNavInput_FocusNext * NAV_INPUT_TWEAK_SLOW = enums.ImGuiNavInput_TweakSlow # <<<<<<<<<<<<<< * NAV_INPUT_TWEAK_FAST = enums.ImGuiNavInput_TweakFast * NAV_INPUT_COUNT = enums.ImGuiNavInput_COUNT */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_TweakSlow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_TWEAK_SLOW, __pyx_t_7) < 0) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":133 * NAV_INPUT_FOCUS_NEXT = enums.ImGuiNavInput_FocusNext * NAV_INPUT_TWEAK_SLOW = enums.ImGuiNavInput_TweakSlow * NAV_INPUT_TWEAK_FAST = enums.ImGuiNavInput_TweakFast # <<<<<<<<<<<<<< * NAV_INPUT_COUNT = enums.ImGuiNavInput_COUNT * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_TweakFast); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_TWEAK_FAST, __pyx_t_7) < 0) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":134 * NAV_INPUT_TWEAK_SLOW = enums.ImGuiNavInput_TweakSlow * NAV_INPUT_TWEAK_FAST = enums.ImGuiNavInput_TweakFast * NAV_INPUT_COUNT = enums.ImGuiNavInput_COUNT # <<<<<<<<<<<<<< * * # ==== Window flags enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_COUNT); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAV_INPUT_COUNT, __pyx_t_7) < 0) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":137 * * # ==== Window flags enum redefines ==== * WINDOW_NONE = enums.ImGuiWindowFlags_None # <<<<<<<<<<<<<< * WINDOW_NO_TITLE_BAR = enums.ImGuiWindowFlags_NoTitleBar * WINDOW_NO_RESIZE = enums.ImGuiWindowFlags_NoResize */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":138 * # ==== Window flags enum redefines ==== * WINDOW_NONE = enums.ImGuiWindowFlags_None * WINDOW_NO_TITLE_BAR = enums.ImGuiWindowFlags_NoTitleBar # <<<<<<<<<<<<<< * WINDOW_NO_RESIZE = enums.ImGuiWindowFlags_NoResize * WINDOW_NO_MOVE = enums.ImGuiWindowFlags_NoMove */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoTitleBar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_TITLE_BAR, __pyx_t_7) < 0) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":139 * WINDOW_NONE = enums.ImGuiWindowFlags_None * WINDOW_NO_TITLE_BAR = enums.ImGuiWindowFlags_NoTitleBar * WINDOW_NO_RESIZE = enums.ImGuiWindowFlags_NoResize # <<<<<<<<<<<<<< * WINDOW_NO_MOVE = enums.ImGuiWindowFlags_NoMove * WINDOW_NO_SCROLLBAR = enums.ImGuiWindowFlags_NoScrollbar */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoResize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_RESIZE, __pyx_t_7) < 0) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":140 * WINDOW_NO_TITLE_BAR = enums.ImGuiWindowFlags_NoTitleBar * WINDOW_NO_RESIZE = enums.ImGuiWindowFlags_NoResize * WINDOW_NO_MOVE = enums.ImGuiWindowFlags_NoMove # <<<<<<<<<<<<<< * WINDOW_NO_SCROLLBAR = enums.ImGuiWindowFlags_NoScrollbar * WINDOW_NO_SCROLL_WITH_MOUSE = enums.ImGuiWindowFlags_NoScrollWithMouse */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoMove); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_MOVE, __pyx_t_7) < 0) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":141 * WINDOW_NO_RESIZE = enums.ImGuiWindowFlags_NoResize * WINDOW_NO_MOVE = enums.ImGuiWindowFlags_NoMove * WINDOW_NO_SCROLLBAR = enums.ImGuiWindowFlags_NoScrollbar # <<<<<<<<<<<<<< * WINDOW_NO_SCROLL_WITH_MOUSE = enums.ImGuiWindowFlags_NoScrollWithMouse * WINDOW_NO_COLLAPSE = enums.ImGuiWindowFlags_NoCollapse */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoScrollbar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_SCROLLBAR, __pyx_t_7) < 0) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":142 * WINDOW_NO_MOVE = enums.ImGuiWindowFlags_NoMove * WINDOW_NO_SCROLLBAR = enums.ImGuiWindowFlags_NoScrollbar * WINDOW_NO_SCROLL_WITH_MOUSE = enums.ImGuiWindowFlags_NoScrollWithMouse # <<<<<<<<<<<<<< * WINDOW_NO_COLLAPSE = enums.ImGuiWindowFlags_NoCollapse * WINDOW_ALWAYS_AUTO_RESIZE = enums.ImGuiWindowFlags_AlwaysAutoResize */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoScrollWithMouse); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_SCROLL_WITH_MOUSE, __pyx_t_7) < 0) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":143 * WINDOW_NO_SCROLLBAR = enums.ImGuiWindowFlags_NoScrollbar * WINDOW_NO_SCROLL_WITH_MOUSE = enums.ImGuiWindowFlags_NoScrollWithMouse * WINDOW_NO_COLLAPSE = enums.ImGuiWindowFlags_NoCollapse # <<<<<<<<<<<<<< * WINDOW_ALWAYS_AUTO_RESIZE = enums.ImGuiWindowFlags_AlwaysAutoResize * WINDOW_NO_BACKGROUND = enums.ImGuiWindowFlags_NoBackground */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoCollapse); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_COLLAPSE, __pyx_t_7) < 0) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":144 * WINDOW_NO_SCROLL_WITH_MOUSE = enums.ImGuiWindowFlags_NoScrollWithMouse * WINDOW_NO_COLLAPSE = enums.ImGuiWindowFlags_NoCollapse * WINDOW_ALWAYS_AUTO_RESIZE = enums.ImGuiWindowFlags_AlwaysAutoResize # <<<<<<<<<<<<<< * WINDOW_NO_BACKGROUND = enums.ImGuiWindowFlags_NoBackground * WINDOW_NO_SAVED_SETTINGS = enums.ImGuiWindowFlags_NoSavedSettings */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_AlwaysAutoResize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_ALWAYS_AUTO_RESIZE, __pyx_t_7) < 0) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":145 * WINDOW_NO_COLLAPSE = enums.ImGuiWindowFlags_NoCollapse * WINDOW_ALWAYS_AUTO_RESIZE = enums.ImGuiWindowFlags_AlwaysAutoResize * WINDOW_NO_BACKGROUND = enums.ImGuiWindowFlags_NoBackground # <<<<<<<<<<<<<< * WINDOW_NO_SAVED_SETTINGS = enums.ImGuiWindowFlags_NoSavedSettings * WINDOW_NO_MOUSE_INPUTS = enums.ImGuiWindowFlags_NoMouseInputs */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoBackground); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":146 * WINDOW_ALWAYS_AUTO_RESIZE = enums.ImGuiWindowFlags_AlwaysAutoResize * WINDOW_NO_BACKGROUND = enums.ImGuiWindowFlags_NoBackground * WINDOW_NO_SAVED_SETTINGS = enums.ImGuiWindowFlags_NoSavedSettings # <<<<<<<<<<<<<< * WINDOW_NO_MOUSE_INPUTS = enums.ImGuiWindowFlags_NoMouseInputs * WINDOW_MENU_BAR = enums.ImGuiWindowFlags_MenuBar */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoSavedSettings); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_SAVED_SETTINGS, __pyx_t_7) < 0) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":147 * WINDOW_NO_BACKGROUND = enums.ImGuiWindowFlags_NoBackground * WINDOW_NO_SAVED_SETTINGS = enums.ImGuiWindowFlags_NoSavedSettings * WINDOW_NO_MOUSE_INPUTS = enums.ImGuiWindowFlags_NoMouseInputs # <<<<<<<<<<<<<< * WINDOW_MENU_BAR = enums.ImGuiWindowFlags_MenuBar * WINDOW_HORIZONTAL_SCROLLING_BAR = enums.ImGuiWindowFlags_HorizontalScrollbar */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoMouseInputs); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_MOUSE_INPUTS, __pyx_t_7) < 0) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":148 * WINDOW_NO_SAVED_SETTINGS = enums.ImGuiWindowFlags_NoSavedSettings * WINDOW_NO_MOUSE_INPUTS = enums.ImGuiWindowFlags_NoMouseInputs * WINDOW_MENU_BAR = enums.ImGuiWindowFlags_MenuBar # <<<<<<<<<<<<<< * WINDOW_HORIZONTAL_SCROLLING_BAR = enums.ImGuiWindowFlags_HorizontalScrollbar * WINDOW_NO_FOCUS_ON_APPEARING = enums.ImGuiWindowFlags_NoFocusOnAppearing */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_MenuBar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_MENU_BAR, __pyx_t_7) < 0) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":149 * WINDOW_NO_MOUSE_INPUTS = enums.ImGuiWindowFlags_NoMouseInputs * WINDOW_MENU_BAR = enums.ImGuiWindowFlags_MenuBar * WINDOW_HORIZONTAL_SCROLLING_BAR = enums.ImGuiWindowFlags_HorizontalScrollbar # <<<<<<<<<<<<<< * WINDOW_NO_FOCUS_ON_APPEARING = enums.ImGuiWindowFlags_NoFocusOnAppearing * WINDOW_NO_BRING_TO_FRONT_ON_FOCUS = enums.ImGuiWindowFlags_NoBringToFrontOnFocus */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_HorizontalScrollbar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_HORIZONTAL_SCROLLING_BAR, __pyx_t_7) < 0) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":150 * WINDOW_MENU_BAR = enums.ImGuiWindowFlags_MenuBar * WINDOW_HORIZONTAL_SCROLLING_BAR = enums.ImGuiWindowFlags_HorizontalScrollbar * WINDOW_NO_FOCUS_ON_APPEARING = enums.ImGuiWindowFlags_NoFocusOnAppearing # <<<<<<<<<<<<<< * WINDOW_NO_BRING_TO_FRONT_ON_FOCUS = enums.ImGuiWindowFlags_NoBringToFrontOnFocus * WINDOW_ALWAYS_VERTICAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysVerticalScrollbar */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoFocusOnAppearing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_FOCUS_ON_APPEARING, __pyx_t_7) < 0) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":151 * WINDOW_HORIZONTAL_SCROLLING_BAR = enums.ImGuiWindowFlags_HorizontalScrollbar * WINDOW_NO_FOCUS_ON_APPEARING = enums.ImGuiWindowFlags_NoFocusOnAppearing * WINDOW_NO_BRING_TO_FRONT_ON_FOCUS = enums.ImGuiWindowFlags_NoBringToFrontOnFocus # <<<<<<<<<<<<<< * WINDOW_ALWAYS_VERTICAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysVerticalScrollbar * WINDOW_ALWAYS_HORIZONTAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysHorizontalScrollbar */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoBringToFrontOnFocus); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_BRING_TO_FRONT_ON_FOCU, __pyx_t_7) < 0) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":152 * WINDOW_NO_FOCUS_ON_APPEARING = enums.ImGuiWindowFlags_NoFocusOnAppearing * WINDOW_NO_BRING_TO_FRONT_ON_FOCUS = enums.ImGuiWindowFlags_NoBringToFrontOnFocus * WINDOW_ALWAYS_VERTICAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysVerticalScrollbar # <<<<<<<<<<<<<< * WINDOW_ALWAYS_HORIZONTAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysHorizontalScrollbar * WINDOW_ALWAYS_USE_WINDOW_PADDING = enums.ImGuiWindowFlags_AlwaysUseWindowPadding */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_AlwaysVerticalScrollbar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_ALWAYS_VERTICAL_SCROLLBAR, __pyx_t_7) < 0) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":153 * WINDOW_NO_BRING_TO_FRONT_ON_FOCUS = enums.ImGuiWindowFlags_NoBringToFrontOnFocus * WINDOW_ALWAYS_VERTICAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysVerticalScrollbar * WINDOW_ALWAYS_HORIZONTAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysHorizontalScrollbar # <<<<<<<<<<<<<< * WINDOW_ALWAYS_USE_WINDOW_PADDING = enums.ImGuiWindowFlags_AlwaysUseWindowPadding * WINDOW_NO_NAV_INPUTS = enums.ImGuiWindowFlags_NoNavInputs */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_AlwaysHorizontalScrollbar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_ALWAYS_HORIZONTAL_SCROLLB, __pyx_t_7) < 0) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":154 * WINDOW_ALWAYS_VERTICAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysVerticalScrollbar * WINDOW_ALWAYS_HORIZONTAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysHorizontalScrollbar * WINDOW_ALWAYS_USE_WINDOW_PADDING = enums.ImGuiWindowFlags_AlwaysUseWindowPadding # <<<<<<<<<<<<<< * WINDOW_NO_NAV_INPUTS = enums.ImGuiWindowFlags_NoNavInputs * WINDOW_NO_NAV_FOCUS = enums.ImGuiWindowFlags_NoNavFocus */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_AlwaysUseWindowPadding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_ALWAYS_USE_WINDOW_PADDING, __pyx_t_7) < 0) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":155 * WINDOW_ALWAYS_HORIZONTAL_SCROLLBAR = enums.ImGuiWindowFlags_AlwaysHorizontalScrollbar * WINDOW_ALWAYS_USE_WINDOW_PADDING = enums.ImGuiWindowFlags_AlwaysUseWindowPadding * WINDOW_NO_NAV_INPUTS = enums.ImGuiWindowFlags_NoNavInputs # <<<<<<<<<<<<<< * WINDOW_NO_NAV_FOCUS = enums.ImGuiWindowFlags_NoNavFocus * WINDOW_UNSAVED_DOCUMENT = enums.ImGuiWindowFlags_UnsavedDocument */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoNavInputs); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_NAV_INPUTS, __pyx_t_7) < 0) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":156 * WINDOW_ALWAYS_USE_WINDOW_PADDING = enums.ImGuiWindowFlags_AlwaysUseWindowPadding * WINDOW_NO_NAV_INPUTS = enums.ImGuiWindowFlags_NoNavInputs * WINDOW_NO_NAV_FOCUS = enums.ImGuiWindowFlags_NoNavFocus # <<<<<<<<<<<<<< * WINDOW_UNSAVED_DOCUMENT = enums.ImGuiWindowFlags_UnsavedDocument * WINDOW_NO_NAV = enums.ImGuiWindowFlags_NoNav */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoNavFocus); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_NAV_FOCUS, __pyx_t_7) < 0) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":157 * WINDOW_NO_NAV_INPUTS = enums.ImGuiWindowFlags_NoNavInputs * WINDOW_NO_NAV_FOCUS = enums.ImGuiWindowFlags_NoNavFocus * WINDOW_UNSAVED_DOCUMENT = enums.ImGuiWindowFlags_UnsavedDocument # <<<<<<<<<<<<<< * WINDOW_NO_NAV = enums.ImGuiWindowFlags_NoNav * WINDOW_NO_DECORATION = enums.ImGuiWindowFlags_NoDecoration */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_UnsavedDocument); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_UNSAVED_DOCUMENT, __pyx_t_7) < 0) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":158 * WINDOW_NO_NAV_FOCUS = enums.ImGuiWindowFlags_NoNavFocus * WINDOW_UNSAVED_DOCUMENT = enums.ImGuiWindowFlags_UnsavedDocument * WINDOW_NO_NAV = enums.ImGuiWindowFlags_NoNav # <<<<<<<<<<<<<< * WINDOW_NO_DECORATION = enums.ImGuiWindowFlags_NoDecoration * WINDOW_NO_INPUTS = enums.ImGuiWindowFlags_NoInputs */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoNav); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_NAV, __pyx_t_7) < 0) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":159 * WINDOW_UNSAVED_DOCUMENT = enums.ImGuiWindowFlags_UnsavedDocument * WINDOW_NO_NAV = enums.ImGuiWindowFlags_NoNav * WINDOW_NO_DECORATION = enums.ImGuiWindowFlags_NoDecoration # <<<<<<<<<<<<<< * WINDOW_NO_INPUTS = enums.ImGuiWindowFlags_NoInputs * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoDecoration); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_DECORATION, __pyx_t_7) < 0) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":160 * WINDOW_NO_NAV = enums.ImGuiWindowFlags_NoNav * WINDOW_NO_DECORATION = enums.ImGuiWindowFlags_NoDecoration * WINDOW_NO_INPUTS = enums.ImGuiWindowFlags_NoInputs # <<<<<<<<<<<<<< * * # ==== Color Edit Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_NoInputs); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_NO_INPUTS, __pyx_t_7) < 0) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":163 * * # ==== Color Edit Flags ==== * COLOR_EDIT_NONE = enums.ImGuiColorEditFlags_None # <<<<<<<<<<<<<< * COLOR_EDIT_NO_ALPHA = enums.ImGuiColorEditFlags_NoAlpha * COLOR_EDIT_NO_PICKER = enums.ImGuiColorEditFlags_NoPicker */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":164 * # ==== Color Edit Flags ==== * COLOR_EDIT_NONE = enums.ImGuiColorEditFlags_None * COLOR_EDIT_NO_ALPHA = enums.ImGuiColorEditFlags_NoAlpha # <<<<<<<<<<<<<< * COLOR_EDIT_NO_PICKER = enums.ImGuiColorEditFlags_NoPicker * COLOR_EDIT_NO_OPTIONS = enums.ImGuiColorEditFlags_NoOptions */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoAlpha); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_ALPHA, __pyx_t_7) < 0) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":165 * COLOR_EDIT_NONE = enums.ImGuiColorEditFlags_None * COLOR_EDIT_NO_ALPHA = enums.ImGuiColorEditFlags_NoAlpha * COLOR_EDIT_NO_PICKER = enums.ImGuiColorEditFlags_NoPicker # <<<<<<<<<<<<<< * COLOR_EDIT_NO_OPTIONS = enums.ImGuiColorEditFlags_NoOptions * COLOR_EDIT_NO_SMALL_PREVIEW = enums.ImGuiColorEditFlags_NoSmallPreview */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoPicker); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_PICKER, __pyx_t_7) < 0) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":166 * COLOR_EDIT_NO_ALPHA = enums.ImGuiColorEditFlags_NoAlpha * COLOR_EDIT_NO_PICKER = enums.ImGuiColorEditFlags_NoPicker * COLOR_EDIT_NO_OPTIONS = enums.ImGuiColorEditFlags_NoOptions # <<<<<<<<<<<<<< * COLOR_EDIT_NO_SMALL_PREVIEW = enums.ImGuiColorEditFlags_NoSmallPreview * COLOR_EDIT_NO_INPUTS = enums.ImGuiColorEditFlags_NoInputs */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoOptions); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_OPTIONS, __pyx_t_7) < 0) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":167 * COLOR_EDIT_NO_PICKER = enums.ImGuiColorEditFlags_NoPicker * COLOR_EDIT_NO_OPTIONS = enums.ImGuiColorEditFlags_NoOptions * COLOR_EDIT_NO_SMALL_PREVIEW = enums.ImGuiColorEditFlags_NoSmallPreview # <<<<<<<<<<<<<< * COLOR_EDIT_NO_INPUTS = enums.ImGuiColorEditFlags_NoInputs * COLOR_EDIT_NO_TOOLTIP = enums.ImGuiColorEditFlags_NoTooltip */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoSmallPreview); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_SMALL_PREVIEW, __pyx_t_7) < 0) __PYX_ERR(0, 167, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":168 * COLOR_EDIT_NO_OPTIONS = enums.ImGuiColorEditFlags_NoOptions * COLOR_EDIT_NO_SMALL_PREVIEW = enums.ImGuiColorEditFlags_NoSmallPreview * COLOR_EDIT_NO_INPUTS = enums.ImGuiColorEditFlags_NoInputs # <<<<<<<<<<<<<< * COLOR_EDIT_NO_TOOLTIP = enums.ImGuiColorEditFlags_NoTooltip * COLOR_EDIT_NO_LABEL = enums.ImGuiColorEditFlags_NoLabel */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoInputs); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_INPUTS, __pyx_t_7) < 0) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":169 * COLOR_EDIT_NO_SMALL_PREVIEW = enums.ImGuiColorEditFlags_NoSmallPreview * COLOR_EDIT_NO_INPUTS = enums.ImGuiColorEditFlags_NoInputs * COLOR_EDIT_NO_TOOLTIP = enums.ImGuiColorEditFlags_NoTooltip # <<<<<<<<<<<<<< * COLOR_EDIT_NO_LABEL = enums.ImGuiColorEditFlags_NoLabel * COLOR_EDIT_NO_SIDE_PREVIEW = enums.ImGuiColorEditFlags_NoSidePreview */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoTooltip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_TOOLTIP, __pyx_t_7) < 0) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":170 * COLOR_EDIT_NO_INPUTS = enums.ImGuiColorEditFlags_NoInputs * COLOR_EDIT_NO_TOOLTIP = enums.ImGuiColorEditFlags_NoTooltip * COLOR_EDIT_NO_LABEL = enums.ImGuiColorEditFlags_NoLabel # <<<<<<<<<<<<<< * COLOR_EDIT_NO_SIDE_PREVIEW = enums.ImGuiColorEditFlags_NoSidePreview * COLOR_EDIT_NO_DRAG_DROP = enums.ImGuiColorEditFlags_NoDragDrop */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoLabel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_LABEL, __pyx_t_7) < 0) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":171 * COLOR_EDIT_NO_TOOLTIP = enums.ImGuiColorEditFlags_NoTooltip * COLOR_EDIT_NO_LABEL = enums.ImGuiColorEditFlags_NoLabel * COLOR_EDIT_NO_SIDE_PREVIEW = enums.ImGuiColorEditFlags_NoSidePreview # <<<<<<<<<<<<<< * COLOR_EDIT_NO_DRAG_DROP = enums.ImGuiColorEditFlags_NoDragDrop * COLOR_EDIT_NO_BORDER = enums.ImGuiColorEditFlags_NoBorder */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoSidePreview); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_SIDE_PREVIEW, __pyx_t_7) < 0) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":172 * COLOR_EDIT_NO_LABEL = enums.ImGuiColorEditFlags_NoLabel * COLOR_EDIT_NO_SIDE_PREVIEW = enums.ImGuiColorEditFlags_NoSidePreview * COLOR_EDIT_NO_DRAG_DROP = enums.ImGuiColorEditFlags_NoDragDrop # <<<<<<<<<<<<<< * COLOR_EDIT_NO_BORDER = enums.ImGuiColorEditFlags_NoBorder * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoDragDrop); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_DRAG_DROP, __pyx_t_7) < 0) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":173 * COLOR_EDIT_NO_SIDE_PREVIEW = enums.ImGuiColorEditFlags_NoSidePreview * COLOR_EDIT_NO_DRAG_DROP = enums.ImGuiColorEditFlags_NoDragDrop * COLOR_EDIT_NO_BORDER = enums.ImGuiColorEditFlags_NoBorder # <<<<<<<<<<<<<< * * COLOR_EDIT_ALPHA_BAR = enums.ImGuiColorEditFlags_AlphaBar */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_NoBorder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_NO_BORDER, __pyx_t_7) < 0) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":175 * COLOR_EDIT_NO_BORDER = enums.ImGuiColorEditFlags_NoBorder * * COLOR_EDIT_ALPHA_BAR = enums.ImGuiColorEditFlags_AlphaBar # <<<<<<<<<<<<<< * COLOR_EDIT_ALPHA_PREVIEW = enums.ImGuiColorEditFlags_AlphaPreview * COLOR_EDIT_ALPHA_PREVIEW_HALF = enums.ImGuiColorEditFlags_AlphaPreviewHalf */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_AlphaBar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_ALPHA_BAR, __pyx_t_7) < 0) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":176 * * COLOR_EDIT_ALPHA_BAR = enums.ImGuiColorEditFlags_AlphaBar * COLOR_EDIT_ALPHA_PREVIEW = enums.ImGuiColorEditFlags_AlphaPreview # <<<<<<<<<<<<<< * COLOR_EDIT_ALPHA_PREVIEW_HALF = enums.ImGuiColorEditFlags_AlphaPreviewHalf * COLOR_EDIT_HDR = enums.ImGuiColorEditFlags_HDR */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_AlphaPreview); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_ALPHA_PREVIEW, __pyx_t_7) < 0) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":177 * COLOR_EDIT_ALPHA_BAR = enums.ImGuiColorEditFlags_AlphaBar * COLOR_EDIT_ALPHA_PREVIEW = enums.ImGuiColorEditFlags_AlphaPreview * COLOR_EDIT_ALPHA_PREVIEW_HALF = enums.ImGuiColorEditFlags_AlphaPreviewHalf # <<<<<<<<<<<<<< * COLOR_EDIT_HDR = enums.ImGuiColorEditFlags_HDR * COLOR_EDIT_DISPLAY_RGB = enums.ImGuiColorEditFlags_DisplayRGB */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_AlphaPreviewHalf); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_ALPHA_PREVIEW_HALF, __pyx_t_7) < 0) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":178 * COLOR_EDIT_ALPHA_PREVIEW = enums.ImGuiColorEditFlags_AlphaPreview * COLOR_EDIT_ALPHA_PREVIEW_HALF = enums.ImGuiColorEditFlags_AlphaPreviewHalf * COLOR_EDIT_HDR = enums.ImGuiColorEditFlags_HDR # <<<<<<<<<<<<<< * COLOR_EDIT_DISPLAY_RGB = enums.ImGuiColorEditFlags_DisplayRGB * COLOR_EDIT_DISPLAY_HSV = enums.ImGuiColorEditFlags_DisplayHSV */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_HDR); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_HDR, __pyx_t_7) < 0) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":179 * COLOR_EDIT_ALPHA_PREVIEW_HALF = enums.ImGuiColorEditFlags_AlphaPreviewHalf * COLOR_EDIT_HDR = enums.ImGuiColorEditFlags_HDR * COLOR_EDIT_DISPLAY_RGB = enums.ImGuiColorEditFlags_DisplayRGB # <<<<<<<<<<<<<< * COLOR_EDIT_DISPLAY_HSV = enums.ImGuiColorEditFlags_DisplayHSV * COLOR_EDIT_DISPLAY_HEX = enums.ImGuiColorEditFlags_DisplayHex */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_DisplayRGB); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_DISPLAY_RGB, __pyx_t_7) < 0) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":180 * COLOR_EDIT_HDR = enums.ImGuiColorEditFlags_HDR * COLOR_EDIT_DISPLAY_RGB = enums.ImGuiColorEditFlags_DisplayRGB * COLOR_EDIT_DISPLAY_HSV = enums.ImGuiColorEditFlags_DisplayHSV # <<<<<<<<<<<<<< * COLOR_EDIT_DISPLAY_HEX = enums.ImGuiColorEditFlags_DisplayHex * COLOR_EDIT_UINT8 = enums.ImGuiColorEditFlags_Uint8 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_DisplayHSV); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_DISPLAY_HSV, __pyx_t_7) < 0) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":181 * COLOR_EDIT_DISPLAY_RGB = enums.ImGuiColorEditFlags_DisplayRGB * COLOR_EDIT_DISPLAY_HSV = enums.ImGuiColorEditFlags_DisplayHSV * COLOR_EDIT_DISPLAY_HEX = enums.ImGuiColorEditFlags_DisplayHex # <<<<<<<<<<<<<< * COLOR_EDIT_UINT8 = enums.ImGuiColorEditFlags_Uint8 * COLOR_EDIT_FLOAT = enums.ImGuiColorEditFlags_Float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_DisplayHex); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_DISPLAY_HEX, __pyx_t_7) < 0) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":182 * COLOR_EDIT_DISPLAY_HSV = enums.ImGuiColorEditFlags_DisplayHSV * COLOR_EDIT_DISPLAY_HEX = enums.ImGuiColorEditFlags_DisplayHex * COLOR_EDIT_UINT8 = enums.ImGuiColorEditFlags_Uint8 # <<<<<<<<<<<<<< * COLOR_EDIT_FLOAT = enums.ImGuiColorEditFlags_Float * COLOR_EDIT_PICKER_HUE_BAR = enums.ImGuiColorEditFlags_PickerHueBar */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_Uint8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_UINT8, __pyx_t_7) < 0) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":183 * COLOR_EDIT_DISPLAY_HEX = enums.ImGuiColorEditFlags_DisplayHex * COLOR_EDIT_UINT8 = enums.ImGuiColorEditFlags_Uint8 * COLOR_EDIT_FLOAT = enums.ImGuiColorEditFlags_Float # <<<<<<<<<<<<<< * COLOR_EDIT_PICKER_HUE_BAR = enums.ImGuiColorEditFlags_PickerHueBar * COLOR_EDIT_PICKER_HUE_WHEEL = enums.ImGuiColorEditFlags_PickerHueWheel */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_Float); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_FLOAT, __pyx_t_7) < 0) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":184 * COLOR_EDIT_UINT8 = enums.ImGuiColorEditFlags_Uint8 * COLOR_EDIT_FLOAT = enums.ImGuiColorEditFlags_Float * COLOR_EDIT_PICKER_HUE_BAR = enums.ImGuiColorEditFlags_PickerHueBar # <<<<<<<<<<<<<< * COLOR_EDIT_PICKER_HUE_WHEEL = enums.ImGuiColorEditFlags_PickerHueWheel * COLOR_EDIT_INPUT_RGB = enums.ImGuiColorEditFlags_InputRGB */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_PickerHueBar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_PICKER_HUE_BAR, __pyx_t_7) < 0) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":185 * COLOR_EDIT_FLOAT = enums.ImGuiColorEditFlags_Float * COLOR_EDIT_PICKER_HUE_BAR = enums.ImGuiColorEditFlags_PickerHueBar * COLOR_EDIT_PICKER_HUE_WHEEL = enums.ImGuiColorEditFlags_PickerHueWheel # <<<<<<<<<<<<<< * COLOR_EDIT_INPUT_RGB = enums.ImGuiColorEditFlags_InputRGB * COLOR_EDIT_INPUT_HSV = enums.ImGuiColorEditFlags_InputHSV */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_PickerHueWheel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_PICKER_HUE_WHEEL, __pyx_t_7) < 0) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":186 * COLOR_EDIT_PICKER_HUE_BAR = enums.ImGuiColorEditFlags_PickerHueBar * COLOR_EDIT_PICKER_HUE_WHEEL = enums.ImGuiColorEditFlags_PickerHueWheel * COLOR_EDIT_INPUT_RGB = enums.ImGuiColorEditFlags_InputRGB # <<<<<<<<<<<<<< * COLOR_EDIT_INPUT_HSV = enums.ImGuiColorEditFlags_InputHSV * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_InputRGB); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_INPUT_RGB, __pyx_t_7) < 0) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":187 * COLOR_EDIT_PICKER_HUE_WHEEL = enums.ImGuiColorEditFlags_PickerHueWheel * COLOR_EDIT_INPUT_RGB = enums.ImGuiColorEditFlags_InputRGB * COLOR_EDIT_INPUT_HSV = enums.ImGuiColorEditFlags_InputHSV # <<<<<<<<<<<<<< * * COLOR_EDIT_DEFAULT_OPTIONS = enums.ImGuiColorEditFlags__OptionsDefault */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_InputHSV); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_INPUT_HSV, __pyx_t_7) < 0) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":189 * COLOR_EDIT_INPUT_HSV = enums.ImGuiColorEditFlags_InputHSV * * COLOR_EDIT_DEFAULT_OPTIONS = enums.ImGuiColorEditFlags__OptionsDefault # <<<<<<<<<<<<<< * * # ==== TreeNode flags enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags__OptionsDefault); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_EDIT_DEFAULT_OPTIONS, __pyx_t_7) < 0) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":192 * * # ==== TreeNode flags enum redefines ==== * TREE_NODE_NONE = enums.ImGuiTreeNodeFlags_None # <<<<<<<<<<<<<< * TREE_NODE_SELECTED = enums.ImGuiTreeNodeFlags_Selected * TREE_NODE_FRAMED = enums.ImGuiTreeNodeFlags_Framed */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":193 * # ==== TreeNode flags enum redefines ==== * TREE_NODE_NONE = enums.ImGuiTreeNodeFlags_None * TREE_NODE_SELECTED = enums.ImGuiTreeNodeFlags_Selected # <<<<<<<<<<<<<< * TREE_NODE_FRAMED = enums.ImGuiTreeNodeFlags_Framed * TREE_NODE_ALLOW_ITEM_OVERLAP = enums.ImGuiTreeNodeFlags_AllowItemOverlap */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_Selected); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_SELECTED, __pyx_t_7) < 0) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":194 * TREE_NODE_NONE = enums.ImGuiTreeNodeFlags_None * TREE_NODE_SELECTED = enums.ImGuiTreeNodeFlags_Selected * TREE_NODE_FRAMED = enums.ImGuiTreeNodeFlags_Framed # <<<<<<<<<<<<<< * TREE_NODE_ALLOW_ITEM_OVERLAP = enums.ImGuiTreeNodeFlags_AllowItemOverlap * TREE_NODE_NO_TREE_PUSH_ON_OPEN = enums.ImGuiTreeNodeFlags_NoTreePushOnOpen */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_Framed); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_FRAMED, __pyx_t_7) < 0) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":195 * TREE_NODE_SELECTED = enums.ImGuiTreeNodeFlags_Selected * TREE_NODE_FRAMED = enums.ImGuiTreeNodeFlags_Framed * TREE_NODE_ALLOW_ITEM_OVERLAP = enums.ImGuiTreeNodeFlags_AllowItemOverlap # <<<<<<<<<<<<<< * TREE_NODE_NO_TREE_PUSH_ON_OPEN = enums.ImGuiTreeNodeFlags_NoTreePushOnOpen * TREE_NODE_NO_AUTO_OPEN_ON_LOG = enums.ImGuiTreeNodeFlags_NoAutoOpenOnLog */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_AllowItemOverlap); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_ALLOW_ITEM_OVERLAP, __pyx_t_7) < 0) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":196 * TREE_NODE_FRAMED = enums.ImGuiTreeNodeFlags_Framed * TREE_NODE_ALLOW_ITEM_OVERLAP = enums.ImGuiTreeNodeFlags_AllowItemOverlap * TREE_NODE_NO_TREE_PUSH_ON_OPEN = enums.ImGuiTreeNodeFlags_NoTreePushOnOpen # <<<<<<<<<<<<<< * TREE_NODE_NO_AUTO_OPEN_ON_LOG = enums.ImGuiTreeNodeFlags_NoAutoOpenOnLog * TREE_NODE_DEFAULT_OPEN = enums.ImGuiTreeNodeFlags_DefaultOpen */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_NoTreePushOnOpen); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_NO_TREE_PUSH_ON_OPEN, __pyx_t_7) < 0) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":197 * TREE_NODE_ALLOW_ITEM_OVERLAP = enums.ImGuiTreeNodeFlags_AllowItemOverlap * TREE_NODE_NO_TREE_PUSH_ON_OPEN = enums.ImGuiTreeNodeFlags_NoTreePushOnOpen * TREE_NODE_NO_AUTO_OPEN_ON_LOG = enums.ImGuiTreeNodeFlags_NoAutoOpenOnLog # <<<<<<<<<<<<<< * TREE_NODE_DEFAULT_OPEN = enums.ImGuiTreeNodeFlags_DefaultOpen * TREE_NODE_OPEN_ON_DOUBLE_CLICK = enums.ImGuiTreeNodeFlags_OpenOnDoubleClick */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_NoAutoOpenOnLog); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_NO_AUTO_OPEN_ON_LOG, __pyx_t_7) < 0) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":198 * TREE_NODE_NO_TREE_PUSH_ON_OPEN = enums.ImGuiTreeNodeFlags_NoTreePushOnOpen * TREE_NODE_NO_AUTO_OPEN_ON_LOG = enums.ImGuiTreeNodeFlags_NoAutoOpenOnLog * TREE_NODE_DEFAULT_OPEN = enums.ImGuiTreeNodeFlags_DefaultOpen # <<<<<<<<<<<<<< * TREE_NODE_OPEN_ON_DOUBLE_CLICK = enums.ImGuiTreeNodeFlags_OpenOnDoubleClick * TREE_NODE_OPEN_ON_ARROW = enums.ImGuiTreeNodeFlags_OpenOnArrow */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_DefaultOpen); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_DEFAULT_OPEN, __pyx_t_7) < 0) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":199 * TREE_NODE_NO_AUTO_OPEN_ON_LOG = enums.ImGuiTreeNodeFlags_NoAutoOpenOnLog * TREE_NODE_DEFAULT_OPEN = enums.ImGuiTreeNodeFlags_DefaultOpen * TREE_NODE_OPEN_ON_DOUBLE_CLICK = enums.ImGuiTreeNodeFlags_OpenOnDoubleClick # <<<<<<<<<<<<<< * TREE_NODE_OPEN_ON_ARROW = enums.ImGuiTreeNodeFlags_OpenOnArrow * TREE_NODE_LEAF = enums.ImGuiTreeNodeFlags_Leaf */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_OpenOnDoubleClick); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_OPEN_ON_DOUBLE_CLICK, __pyx_t_7) < 0) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":200 * TREE_NODE_DEFAULT_OPEN = enums.ImGuiTreeNodeFlags_DefaultOpen * TREE_NODE_OPEN_ON_DOUBLE_CLICK = enums.ImGuiTreeNodeFlags_OpenOnDoubleClick * TREE_NODE_OPEN_ON_ARROW = enums.ImGuiTreeNodeFlags_OpenOnArrow # <<<<<<<<<<<<<< * TREE_NODE_LEAF = enums.ImGuiTreeNodeFlags_Leaf * TREE_NODE_BULLET = enums.ImGuiTreeNodeFlags_Bullet */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_OpenOnArrow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_OPEN_ON_ARROW, __pyx_t_7) < 0) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":201 * TREE_NODE_OPEN_ON_DOUBLE_CLICK = enums.ImGuiTreeNodeFlags_OpenOnDoubleClick * TREE_NODE_OPEN_ON_ARROW = enums.ImGuiTreeNodeFlags_OpenOnArrow * TREE_NODE_LEAF = enums.ImGuiTreeNodeFlags_Leaf # <<<<<<<<<<<<<< * TREE_NODE_BULLET = enums.ImGuiTreeNodeFlags_Bullet * TREE_NODE_FRAME_PADDING = enums.ImGuiTreeNodeFlags_FramePadding */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_Leaf); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_LEAF, __pyx_t_7) < 0) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":202 * TREE_NODE_OPEN_ON_ARROW = enums.ImGuiTreeNodeFlags_OpenOnArrow * TREE_NODE_LEAF = enums.ImGuiTreeNodeFlags_Leaf * TREE_NODE_BULLET = enums.ImGuiTreeNodeFlags_Bullet # <<<<<<<<<<<<<< * TREE_NODE_FRAME_PADDING = enums.ImGuiTreeNodeFlags_FramePadding * TREE_NODE_SPAN_AVAILABLE_WIDTH = enums.ImGuiTreeNodeFlags_SpanAvailWidth */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_Bullet); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_BULLET, __pyx_t_7) < 0) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":203 * TREE_NODE_LEAF = enums.ImGuiTreeNodeFlags_Leaf * TREE_NODE_BULLET = enums.ImGuiTreeNodeFlags_Bullet * TREE_NODE_FRAME_PADDING = enums.ImGuiTreeNodeFlags_FramePadding # <<<<<<<<<<<<<< * TREE_NODE_SPAN_AVAILABLE_WIDTH = enums.ImGuiTreeNodeFlags_SpanAvailWidth * TREE_NODE_SPAN_FULL_WIDTH = enums.ImGuiTreeNodeFlags_SpanFullWidth */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_FramePadding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_FRAME_PADDING, __pyx_t_7) < 0) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":204 * TREE_NODE_BULLET = enums.ImGuiTreeNodeFlags_Bullet * TREE_NODE_FRAME_PADDING = enums.ImGuiTreeNodeFlags_FramePadding * TREE_NODE_SPAN_AVAILABLE_WIDTH = enums.ImGuiTreeNodeFlags_SpanAvailWidth # <<<<<<<<<<<<<< * TREE_NODE_SPAN_FULL_WIDTH = enums.ImGuiTreeNodeFlags_SpanFullWidth * TREE_NODE_NAV_LEFT_JUPS_BACK_HERE = enums.ImGuiTreeNodeFlags_NavLeftJumpsBackHere */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_SpanAvailWidth); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_SPAN_AVAILABLE_WIDTH, __pyx_t_7) < 0) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":205 * TREE_NODE_FRAME_PADDING = enums.ImGuiTreeNodeFlags_FramePadding * TREE_NODE_SPAN_AVAILABLE_WIDTH = enums.ImGuiTreeNodeFlags_SpanAvailWidth * TREE_NODE_SPAN_FULL_WIDTH = enums.ImGuiTreeNodeFlags_SpanFullWidth # <<<<<<<<<<<<<< * TREE_NODE_NAV_LEFT_JUPS_BACK_HERE = enums.ImGuiTreeNodeFlags_NavLeftJumpsBackHere * TREE_NODE_COLLAPSING_HEADER = enums.ImGuiTreeNodeFlags_CollapsingHeader */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_SpanFullWidth); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_SPAN_FULL_WIDTH, __pyx_t_7) < 0) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":206 * TREE_NODE_SPAN_AVAILABLE_WIDTH = enums.ImGuiTreeNodeFlags_SpanAvailWidth * TREE_NODE_SPAN_FULL_WIDTH = enums.ImGuiTreeNodeFlags_SpanFullWidth * TREE_NODE_NAV_LEFT_JUPS_BACK_HERE = enums.ImGuiTreeNodeFlags_NavLeftJumpsBackHere # <<<<<<<<<<<<<< * TREE_NODE_COLLAPSING_HEADER = enums.ImGuiTreeNodeFlags_CollapsingHeader * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_NavLeftJumpsBackHere); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_NAV_LEFT_JUPS_BACK_HER, __pyx_t_7) < 0) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":207 * TREE_NODE_SPAN_FULL_WIDTH = enums.ImGuiTreeNodeFlags_SpanFullWidth * TREE_NODE_NAV_LEFT_JUPS_BACK_HERE = enums.ImGuiTreeNodeFlags_NavLeftJumpsBackHere * TREE_NODE_COLLAPSING_HEADER = enums.ImGuiTreeNodeFlags_CollapsingHeader # <<<<<<<<<<<<<< * * # ==== Popup Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_CollapsingHeader); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TREE_NODE_COLLAPSING_HEADER, __pyx_t_7) < 0) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":210 * * # ==== Popup Flags ==== * POPUP_NONE = enums.ImGuiPopupFlags_None # <<<<<<<<<<<<<< * POPUP_MOUSE_BUTTON_LEFT = enums.ImGuiPopupFlags_MouseButtonLeft * POPUP_MOUSE_BUTTON_RIGHT = enums.ImGuiPopupFlags_MouseButtonRight */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":211 * # ==== Popup Flags ==== * POPUP_NONE = enums.ImGuiPopupFlags_None * POPUP_MOUSE_BUTTON_LEFT = enums.ImGuiPopupFlags_MouseButtonLeft # <<<<<<<<<<<<<< * POPUP_MOUSE_BUTTON_RIGHT = enums.ImGuiPopupFlags_MouseButtonRight * POPUP_MOUSE_BUTTON_MIDDLE = enums.ImGuiPopupFlags_MouseButtonMiddle */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_MouseButtonLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_MOUSE_BUTTON_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":212 * POPUP_NONE = enums.ImGuiPopupFlags_None * POPUP_MOUSE_BUTTON_LEFT = enums.ImGuiPopupFlags_MouseButtonLeft * POPUP_MOUSE_BUTTON_RIGHT = enums.ImGuiPopupFlags_MouseButtonRight # <<<<<<<<<<<<<< * POPUP_MOUSE_BUTTON_MIDDLE = enums.ImGuiPopupFlags_MouseButtonMiddle * POPUP_MOUSE_BUTTON_MASK = enums.ImGuiPopupFlags_MouseButtonMask_ */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_MouseButtonRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_MOUSE_BUTTON_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":213 * POPUP_MOUSE_BUTTON_LEFT = enums.ImGuiPopupFlags_MouseButtonLeft * POPUP_MOUSE_BUTTON_RIGHT = enums.ImGuiPopupFlags_MouseButtonRight * POPUP_MOUSE_BUTTON_MIDDLE = enums.ImGuiPopupFlags_MouseButtonMiddle # <<<<<<<<<<<<<< * POPUP_MOUSE_BUTTON_MASK = enums.ImGuiPopupFlags_MouseButtonMask_ * POPUP_MOUSE_BUTTON_DEFAULT = enums.ImGuiPopupFlags_MouseButtonDefault_ */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_MouseButtonMiddle); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_MOUSE_BUTTON_MIDDLE, __pyx_t_7) < 0) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":214 * POPUP_MOUSE_BUTTON_RIGHT = enums.ImGuiPopupFlags_MouseButtonRight * POPUP_MOUSE_BUTTON_MIDDLE = enums.ImGuiPopupFlags_MouseButtonMiddle * POPUP_MOUSE_BUTTON_MASK = enums.ImGuiPopupFlags_MouseButtonMask_ # <<<<<<<<<<<<<< * POPUP_MOUSE_BUTTON_DEFAULT = enums.ImGuiPopupFlags_MouseButtonDefault_ * POPUP_NO_OPEN_OVER_EXISTING_POPUP = enums.ImGuiPopupFlags_NoOpenOverExistingPopup */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_MouseButtonMask_); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_MOUSE_BUTTON_MASK, __pyx_t_7) < 0) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":215 * POPUP_MOUSE_BUTTON_MIDDLE = enums.ImGuiPopupFlags_MouseButtonMiddle * POPUP_MOUSE_BUTTON_MASK = enums.ImGuiPopupFlags_MouseButtonMask_ * POPUP_MOUSE_BUTTON_DEFAULT = enums.ImGuiPopupFlags_MouseButtonDefault_ # <<<<<<<<<<<<<< * POPUP_NO_OPEN_OVER_EXISTING_POPUP = enums.ImGuiPopupFlags_NoOpenOverExistingPopup * POPUP_NO_OPEN_OVER_ITEMS = enums.ImGuiPopupFlags_NoOpenOverItems */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_MouseButtonDefault_); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_MOUSE_BUTTON_DEFAULT, __pyx_t_7) < 0) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":216 * POPUP_MOUSE_BUTTON_MASK = enums.ImGuiPopupFlags_MouseButtonMask_ * POPUP_MOUSE_BUTTON_DEFAULT = enums.ImGuiPopupFlags_MouseButtonDefault_ * POPUP_NO_OPEN_OVER_EXISTING_POPUP = enums.ImGuiPopupFlags_NoOpenOverExistingPopup # <<<<<<<<<<<<<< * POPUP_NO_OPEN_OVER_ITEMS = enums.ImGuiPopupFlags_NoOpenOverItems * POPUP_ANY_POPUP_ID = enums.ImGuiPopupFlags_AnyPopupId */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_NoOpenOverExistingPopup); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_NO_OPEN_OVER_EXISTING_POPU, __pyx_t_7) < 0) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":217 * POPUP_MOUSE_BUTTON_DEFAULT = enums.ImGuiPopupFlags_MouseButtonDefault_ * POPUP_NO_OPEN_OVER_EXISTING_POPUP = enums.ImGuiPopupFlags_NoOpenOverExistingPopup * POPUP_NO_OPEN_OVER_ITEMS = enums.ImGuiPopupFlags_NoOpenOverItems # <<<<<<<<<<<<<< * POPUP_ANY_POPUP_ID = enums.ImGuiPopupFlags_AnyPopupId * POPUP_ANY_POPUP_LEVEL = enums.ImGuiPopupFlags_AnyPopupLevel */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_NoOpenOverItems); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_NO_OPEN_OVER_ITEMS, __pyx_t_7) < 0) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":218 * POPUP_NO_OPEN_OVER_EXISTING_POPUP = enums.ImGuiPopupFlags_NoOpenOverExistingPopup * POPUP_NO_OPEN_OVER_ITEMS = enums.ImGuiPopupFlags_NoOpenOverItems * POPUP_ANY_POPUP_ID = enums.ImGuiPopupFlags_AnyPopupId # <<<<<<<<<<<<<< * POPUP_ANY_POPUP_LEVEL = enums.ImGuiPopupFlags_AnyPopupLevel * POPUP_ANY_POPUP = enums.ImGuiPopupFlags_AnyPopup */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_AnyPopupId); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_ANY_POPUP_ID, __pyx_t_7) < 0) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":219 * POPUP_NO_OPEN_OVER_ITEMS = enums.ImGuiPopupFlags_NoOpenOverItems * POPUP_ANY_POPUP_ID = enums.ImGuiPopupFlags_AnyPopupId * POPUP_ANY_POPUP_LEVEL = enums.ImGuiPopupFlags_AnyPopupLevel # <<<<<<<<<<<<<< * POPUP_ANY_POPUP = enums.ImGuiPopupFlags_AnyPopup * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_AnyPopupLevel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_ANY_POPUP_LEVEL, __pyx_t_7) < 0) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":220 * POPUP_ANY_POPUP_ID = enums.ImGuiPopupFlags_AnyPopupId * POPUP_ANY_POPUP_LEVEL = enums.ImGuiPopupFlags_AnyPopupLevel * POPUP_ANY_POPUP = enums.ImGuiPopupFlags_AnyPopup # <<<<<<<<<<<<<< * * # ==== Selectable flags enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_AnyPopup); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_POPUP_ANY_POPUP, __pyx_t_7) < 0) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":223 * * # ==== Selectable flags enum redefines ==== * SELECTABLE_NONE = enums.ImGuiSelectableFlags_None # <<<<<<<<<<<<<< * SELECTABLE_DONT_CLOSE_POPUPS = enums.ImGuiSelectableFlags_DontClosePopups * SELECTABLE_SPAN_ALL_COLUMNS = enums.ImGuiSelectableFlags_SpanAllColumns */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSelectableFlags_(ImGuiSelectableFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SELECTABLE_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":224 * # ==== Selectable flags enum redefines ==== * SELECTABLE_NONE = enums.ImGuiSelectableFlags_None * SELECTABLE_DONT_CLOSE_POPUPS = enums.ImGuiSelectableFlags_DontClosePopups # <<<<<<<<<<<<<< * SELECTABLE_SPAN_ALL_COLUMNS = enums.ImGuiSelectableFlags_SpanAllColumns * SELECTABLE_ALLOW_DOUBLE_CLICK = enums.ImGuiSelectableFlags_AllowDoubleClick */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSelectableFlags_(ImGuiSelectableFlags_DontClosePopups); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SELECTABLE_DONT_CLOSE_POPUPS, __pyx_t_7) < 0) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":225 * SELECTABLE_NONE = enums.ImGuiSelectableFlags_None * SELECTABLE_DONT_CLOSE_POPUPS = enums.ImGuiSelectableFlags_DontClosePopups * SELECTABLE_SPAN_ALL_COLUMNS = enums.ImGuiSelectableFlags_SpanAllColumns # <<<<<<<<<<<<<< * SELECTABLE_ALLOW_DOUBLE_CLICK = enums.ImGuiSelectableFlags_AllowDoubleClick * SELECTABLE_DISABLED = enums.ImGuiSelectableFlags_Disabled */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSelectableFlags_(ImGuiSelectableFlags_SpanAllColumns); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SELECTABLE_SPAN_ALL_COLUMNS, __pyx_t_7) < 0) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":226 * SELECTABLE_DONT_CLOSE_POPUPS = enums.ImGuiSelectableFlags_DontClosePopups * SELECTABLE_SPAN_ALL_COLUMNS = enums.ImGuiSelectableFlags_SpanAllColumns * SELECTABLE_ALLOW_DOUBLE_CLICK = enums.ImGuiSelectableFlags_AllowDoubleClick # <<<<<<<<<<<<<< * SELECTABLE_DISABLED = enums.ImGuiSelectableFlags_Disabled * SELECTABLE_ALLOW_ITEM_OVERLAP = enums.ImGuiSelectableFlags_AllowItemOverlap */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSelectableFlags_(ImGuiSelectableFlags_AllowDoubleClick); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SELECTABLE_ALLOW_DOUBLE_CLICK, __pyx_t_7) < 0) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":227 * SELECTABLE_SPAN_ALL_COLUMNS = enums.ImGuiSelectableFlags_SpanAllColumns * SELECTABLE_ALLOW_DOUBLE_CLICK = enums.ImGuiSelectableFlags_AllowDoubleClick * SELECTABLE_DISABLED = enums.ImGuiSelectableFlags_Disabled # <<<<<<<<<<<<<< * SELECTABLE_ALLOW_ITEM_OVERLAP = enums.ImGuiSelectableFlags_AllowItemOverlap * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSelectableFlags_(ImGuiSelectableFlags_Disabled); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SELECTABLE_DISABLED, __pyx_t_7) < 0) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":228 * SELECTABLE_ALLOW_DOUBLE_CLICK = enums.ImGuiSelectableFlags_AllowDoubleClick * SELECTABLE_DISABLED = enums.ImGuiSelectableFlags_Disabled * SELECTABLE_ALLOW_ITEM_OVERLAP = enums.ImGuiSelectableFlags_AllowItemOverlap # <<<<<<<<<<<<<< * * # ==== Combo flags enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSelectableFlags_(ImGuiSelectableFlags_AllowItemOverlap); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SELECTABLE_ALLOW_ITEM_OVERLAP, __pyx_t_7) < 0) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":231 * * # ==== Combo flags enum redefines ==== * COMBO_NONE = enums.ImGuiComboFlags_None # <<<<<<<<<<<<<< * COMBO_POPUP_ALIGN_LEFT = enums.ImGuiComboFlags_PopupAlignLeft * COMBO_HEIGHT_SMALL = enums.ImGuiComboFlags_HeightSmall */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":232 * # ==== Combo flags enum redefines ==== * COMBO_NONE = enums.ImGuiComboFlags_None * COMBO_POPUP_ALIGN_LEFT = enums.ImGuiComboFlags_PopupAlignLeft # <<<<<<<<<<<<<< * COMBO_HEIGHT_SMALL = enums.ImGuiComboFlags_HeightSmall * COMBO_HEIGHT_REGULAR = enums.ImGuiComboFlags_HeightRegular */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_PopupAlignLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_POPUP_ALIGN_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":233 * COMBO_NONE = enums.ImGuiComboFlags_None * COMBO_POPUP_ALIGN_LEFT = enums.ImGuiComboFlags_PopupAlignLeft * COMBO_HEIGHT_SMALL = enums.ImGuiComboFlags_HeightSmall # <<<<<<<<<<<<<< * COMBO_HEIGHT_REGULAR = enums.ImGuiComboFlags_HeightRegular * COMBO_HEIGHT_LARGE = enums.ImGuiComboFlags_HeightLarge */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_HeightSmall); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_HEIGHT_SMALL, __pyx_t_7) < 0) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":234 * COMBO_POPUP_ALIGN_LEFT = enums.ImGuiComboFlags_PopupAlignLeft * COMBO_HEIGHT_SMALL = enums.ImGuiComboFlags_HeightSmall * COMBO_HEIGHT_REGULAR = enums.ImGuiComboFlags_HeightRegular # <<<<<<<<<<<<<< * COMBO_HEIGHT_LARGE = enums.ImGuiComboFlags_HeightLarge * COMBO_HEIGHT_LARGEST = enums.ImGuiComboFlags_HeightLargest */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_HeightRegular); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_HEIGHT_REGULAR, __pyx_t_7) < 0) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":235 * COMBO_HEIGHT_SMALL = enums.ImGuiComboFlags_HeightSmall * COMBO_HEIGHT_REGULAR = enums.ImGuiComboFlags_HeightRegular * COMBO_HEIGHT_LARGE = enums.ImGuiComboFlags_HeightLarge # <<<<<<<<<<<<<< * COMBO_HEIGHT_LARGEST = enums.ImGuiComboFlags_HeightLargest * COMBO_NO_ARROW_BUTTON = enums.ImGuiComboFlags_NoArrowButton */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_HeightLarge); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_HEIGHT_LARGE, __pyx_t_7) < 0) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":236 * COMBO_HEIGHT_REGULAR = enums.ImGuiComboFlags_HeightRegular * COMBO_HEIGHT_LARGE = enums.ImGuiComboFlags_HeightLarge * COMBO_HEIGHT_LARGEST = enums.ImGuiComboFlags_HeightLargest # <<<<<<<<<<<<<< * COMBO_NO_ARROW_BUTTON = enums.ImGuiComboFlags_NoArrowButton * COMBO_NO_PREVIEW = enums.ImGuiComboFlags_NoPreview */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_HeightLargest); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_HEIGHT_LARGEST, __pyx_t_7) < 0) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":237 * COMBO_HEIGHT_LARGE = enums.ImGuiComboFlags_HeightLarge * COMBO_HEIGHT_LARGEST = enums.ImGuiComboFlags_HeightLargest * COMBO_NO_ARROW_BUTTON = enums.ImGuiComboFlags_NoArrowButton # <<<<<<<<<<<<<< * COMBO_NO_PREVIEW = enums.ImGuiComboFlags_NoPreview * COMBO_HEIGHT_MASK = enums.ImGuiComboFlags_HeightMask_ */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_NoArrowButton); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_NO_ARROW_BUTTON, __pyx_t_7) < 0) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":238 * COMBO_HEIGHT_LARGEST = enums.ImGuiComboFlags_HeightLargest * COMBO_NO_ARROW_BUTTON = enums.ImGuiComboFlags_NoArrowButton * COMBO_NO_PREVIEW = enums.ImGuiComboFlags_NoPreview # <<<<<<<<<<<<<< * COMBO_HEIGHT_MASK = enums.ImGuiComboFlags_HeightMask_ * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_NoPreview); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_NO_PREVIEW, __pyx_t_7) < 0) __PYX_ERR(0, 238, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":239 * COMBO_NO_ARROW_BUTTON = enums.ImGuiComboFlags_NoArrowButton * COMBO_NO_PREVIEW = enums.ImGuiComboFlags_NoPreview * COMBO_HEIGHT_MASK = enums.ImGuiComboFlags_HeightMask_ # <<<<<<<<<<<<<< * * # ==== Tab Bar Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_HeightMask_); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBO_HEIGHT_MASK, __pyx_t_7) < 0) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":242 * * # ==== Tab Bar Flags ==== * TAB_BAR_NONE = enums.ImGuiTabBarFlags_None # <<<<<<<<<<<<<< * TAB_BAR_REORDERABLE = enums.ImGuiTabBarFlags_Reorderable * TAB_BAR_AUTO_SELECT_NEW_TABS = enums.ImGuiTabBarFlags_AutoSelectNewTabs */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":243 * # ==== Tab Bar Flags ==== * TAB_BAR_NONE = enums.ImGuiTabBarFlags_None * TAB_BAR_REORDERABLE = enums.ImGuiTabBarFlags_Reorderable # <<<<<<<<<<<<<< * TAB_BAR_AUTO_SELECT_NEW_TABS = enums.ImGuiTabBarFlags_AutoSelectNewTabs * TAB_BAR_TAB_LIST_POPUP_BUTTON = enums.ImGuiTabBarFlags_TabListPopupButton */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_Reorderable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_REORDERABLE, __pyx_t_7) < 0) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":244 * TAB_BAR_NONE = enums.ImGuiTabBarFlags_None * TAB_BAR_REORDERABLE = enums.ImGuiTabBarFlags_Reorderable * TAB_BAR_AUTO_SELECT_NEW_TABS = enums.ImGuiTabBarFlags_AutoSelectNewTabs # <<<<<<<<<<<<<< * TAB_BAR_TAB_LIST_POPUP_BUTTON = enums.ImGuiTabBarFlags_TabListPopupButton * TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabBarFlags_NoCloseWithMiddleMouseButton */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_AutoSelectNewTabs); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_AUTO_SELECT_NEW_TABS, __pyx_t_7) < 0) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":245 * TAB_BAR_REORDERABLE = enums.ImGuiTabBarFlags_Reorderable * TAB_BAR_AUTO_SELECT_NEW_TABS = enums.ImGuiTabBarFlags_AutoSelectNewTabs * TAB_BAR_TAB_LIST_POPUP_BUTTON = enums.ImGuiTabBarFlags_TabListPopupButton # <<<<<<<<<<<<<< * TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabBarFlags_NoCloseWithMiddleMouseButton * TAB_BAR_NO_TAB_LIST_SCROLLING_BUTTONS = enums.ImGuiTabBarFlags_NoTabListScrollingButtons */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_TabListPopupButton); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_TAB_LIST_POPUP_BUTTON, __pyx_t_7) < 0) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":246 * TAB_BAR_AUTO_SELECT_NEW_TABS = enums.ImGuiTabBarFlags_AutoSelectNewTabs * TAB_BAR_TAB_LIST_POPUP_BUTTON = enums.ImGuiTabBarFlags_TabListPopupButton * TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabBarFlags_NoCloseWithMiddleMouseButton # <<<<<<<<<<<<<< * TAB_BAR_NO_TAB_LIST_SCROLLING_BUTTONS = enums.ImGuiTabBarFlags_NoTabListScrollingButtons * TAB_BAR_NO_TOOLTIP = enums.ImGuiTabBarFlags_NoTooltip */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_NoCloseWithMiddleMouseButton); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOU, __pyx_t_7) < 0) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":247 * TAB_BAR_TAB_LIST_POPUP_BUTTON = enums.ImGuiTabBarFlags_TabListPopupButton * TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabBarFlags_NoCloseWithMiddleMouseButton * TAB_BAR_NO_TAB_LIST_SCROLLING_BUTTONS = enums.ImGuiTabBarFlags_NoTabListScrollingButtons # <<<<<<<<<<<<<< * TAB_BAR_NO_TOOLTIP = enums.ImGuiTabBarFlags_NoTooltip * TAB_BAR_FITTING_POLICY_RESIZE_DOWN = enums.ImGuiTabBarFlags_FittingPolicyResizeDown */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_NoTabListScrollingButtons); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_NO_TAB_LIST_SCROLLING_BU, __pyx_t_7) < 0) __PYX_ERR(0, 247, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":248 * TAB_BAR_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabBarFlags_NoCloseWithMiddleMouseButton * TAB_BAR_NO_TAB_LIST_SCROLLING_BUTTONS = enums.ImGuiTabBarFlags_NoTabListScrollingButtons * TAB_BAR_NO_TOOLTIP = enums.ImGuiTabBarFlags_NoTooltip # <<<<<<<<<<<<<< * TAB_BAR_FITTING_POLICY_RESIZE_DOWN = enums.ImGuiTabBarFlags_FittingPolicyResizeDown * TAB_BAR_FITTING_POLICY_SCROLL = enums.ImGuiTabBarFlags_FittingPolicyScroll */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_NoTooltip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_NO_TOOLTIP, __pyx_t_7) < 0) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":249 * TAB_BAR_NO_TAB_LIST_SCROLLING_BUTTONS = enums.ImGuiTabBarFlags_NoTabListScrollingButtons * TAB_BAR_NO_TOOLTIP = enums.ImGuiTabBarFlags_NoTooltip * TAB_BAR_FITTING_POLICY_RESIZE_DOWN = enums.ImGuiTabBarFlags_FittingPolicyResizeDown # <<<<<<<<<<<<<< * TAB_BAR_FITTING_POLICY_SCROLL = enums.ImGuiTabBarFlags_FittingPolicyScroll * TAB_BAR_FITTING_POLICY_MASK = enums.ImGuiTabBarFlags_FittingPolicyMask_ */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_FittingPolicyResizeDown); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_FITTING_POLICY_RESIZE_DO, __pyx_t_7) < 0) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":250 * TAB_BAR_NO_TOOLTIP = enums.ImGuiTabBarFlags_NoTooltip * TAB_BAR_FITTING_POLICY_RESIZE_DOWN = enums.ImGuiTabBarFlags_FittingPolicyResizeDown * TAB_BAR_FITTING_POLICY_SCROLL = enums.ImGuiTabBarFlags_FittingPolicyScroll # <<<<<<<<<<<<<< * TAB_BAR_FITTING_POLICY_MASK = enums.ImGuiTabBarFlags_FittingPolicyMask_ * TAB_BAR_FITTING_POLICY_DEFAULT = enums.ImGuiTabBarFlags_FittingPolicyDefault_ */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_FittingPolicyScroll); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_FITTING_POLICY_SCROLL, __pyx_t_7) < 0) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":251 * TAB_BAR_FITTING_POLICY_RESIZE_DOWN = enums.ImGuiTabBarFlags_FittingPolicyResizeDown * TAB_BAR_FITTING_POLICY_SCROLL = enums.ImGuiTabBarFlags_FittingPolicyScroll * TAB_BAR_FITTING_POLICY_MASK = enums.ImGuiTabBarFlags_FittingPolicyMask_ # <<<<<<<<<<<<<< * TAB_BAR_FITTING_POLICY_DEFAULT = enums.ImGuiTabBarFlags_FittingPolicyDefault_ * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_FittingPolicyMask_); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_FITTING_POLICY_MASK, __pyx_t_7) < 0) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":252 * TAB_BAR_FITTING_POLICY_SCROLL = enums.ImGuiTabBarFlags_FittingPolicyScroll * TAB_BAR_FITTING_POLICY_MASK = enums.ImGuiTabBarFlags_FittingPolicyMask_ * TAB_BAR_FITTING_POLICY_DEFAULT = enums.ImGuiTabBarFlags_FittingPolicyDefault_ # <<<<<<<<<<<<<< * * # ==== Tab Item Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_FittingPolicyDefault_); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_BAR_FITTING_POLICY_DEFAULT, __pyx_t_7) < 0) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":255 * * # ==== Tab Item Flags ==== * TAB_ITEM_NONE = enums.ImGuiTabItemFlags_None # <<<<<<<<<<<<<< * TAB_ITEM_UNSAVED_DOCUMENT = enums.ImGuiTabItemFlags_UnsavedDocument * TAB_ITEM_SET_SELECTED = enums.ImGuiTabItemFlags_SetSelected */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":256 * # ==== Tab Item Flags ==== * TAB_ITEM_NONE = enums.ImGuiTabItemFlags_None * TAB_ITEM_UNSAVED_DOCUMENT = enums.ImGuiTabItemFlags_UnsavedDocument # <<<<<<<<<<<<<< * TAB_ITEM_SET_SELECTED = enums.ImGuiTabItemFlags_SetSelected * TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabItemFlags_NoCloseWithMiddleMouseButton */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_UnsavedDocument); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_UNSAVED_DOCUMENT, __pyx_t_7) < 0) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":257 * TAB_ITEM_NONE = enums.ImGuiTabItemFlags_None * TAB_ITEM_UNSAVED_DOCUMENT = enums.ImGuiTabItemFlags_UnsavedDocument * TAB_ITEM_SET_SELECTED = enums.ImGuiTabItemFlags_SetSelected # <<<<<<<<<<<<<< * TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabItemFlags_NoCloseWithMiddleMouseButton * TAB_ITEM_NO_PUSH_ID = enums.ImGuiTabItemFlags_NoPushId */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_SetSelected); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_SET_SELECTED, __pyx_t_7) < 0) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":258 * TAB_ITEM_UNSAVED_DOCUMENT = enums.ImGuiTabItemFlags_UnsavedDocument * TAB_ITEM_SET_SELECTED = enums.ImGuiTabItemFlags_SetSelected * TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabItemFlags_NoCloseWithMiddleMouseButton # <<<<<<<<<<<<<< * TAB_ITEM_NO_PUSH_ID = enums.ImGuiTabItemFlags_NoPushId * TAB_ITEM_NO_TOOLTIP = enums.ImGuiTabItemFlags_NoTooltip */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_NoCloseWithMiddleMouseButton); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MO, __pyx_t_7) < 0) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":259 * TAB_ITEM_SET_SELECTED = enums.ImGuiTabItemFlags_SetSelected * TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabItemFlags_NoCloseWithMiddleMouseButton * TAB_ITEM_NO_PUSH_ID = enums.ImGuiTabItemFlags_NoPushId # <<<<<<<<<<<<<< * TAB_ITEM_NO_TOOLTIP = enums.ImGuiTabItemFlags_NoTooltip * TAB_ITEM_NO_REORDER = enums.ImGuiTabItemFlags_NoReorder */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_NoPushId); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_NO_PUSH_ID, __pyx_t_7) < 0) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":260 * TAB_ITEM_NO_CLOSE_WITH_MIDDLE_MOUSE_BUTTON = enums.ImGuiTabItemFlags_NoCloseWithMiddleMouseButton * TAB_ITEM_NO_PUSH_ID = enums.ImGuiTabItemFlags_NoPushId * TAB_ITEM_NO_TOOLTIP = enums.ImGuiTabItemFlags_NoTooltip # <<<<<<<<<<<<<< * TAB_ITEM_NO_REORDER = enums.ImGuiTabItemFlags_NoReorder * TAB_ITEM_LEADING = enums.ImGuiTabItemFlags_Leading */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_NoTooltip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_NO_TOOLTIP, __pyx_t_7) < 0) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":261 * TAB_ITEM_NO_PUSH_ID = enums.ImGuiTabItemFlags_NoPushId * TAB_ITEM_NO_TOOLTIP = enums.ImGuiTabItemFlags_NoTooltip * TAB_ITEM_NO_REORDER = enums.ImGuiTabItemFlags_NoReorder # <<<<<<<<<<<<<< * TAB_ITEM_LEADING = enums.ImGuiTabItemFlags_Leading * TAB_ITEM_TRAILING = enums.ImGuiTabItemFlags_Trailing */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_NoReorder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_NO_REORDER, __pyx_t_7) < 0) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":262 * TAB_ITEM_NO_TOOLTIP = enums.ImGuiTabItemFlags_NoTooltip * TAB_ITEM_NO_REORDER = enums.ImGuiTabItemFlags_NoReorder * TAB_ITEM_LEADING = enums.ImGuiTabItemFlags_Leading # <<<<<<<<<<<<<< * TAB_ITEM_TRAILING = enums.ImGuiTabItemFlags_Trailing * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_Leading); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_LEADING, __pyx_t_7) < 0) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":263 * TAB_ITEM_NO_REORDER = enums.ImGuiTabItemFlags_NoReorder * TAB_ITEM_LEADING = enums.ImGuiTabItemFlags_Leading * TAB_ITEM_TRAILING = enums.ImGuiTabItemFlags_Trailing # <<<<<<<<<<<<<< * * # === Table Flags === */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_Trailing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAB_ITEM_TRAILING, __pyx_t_7) < 0) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":267 * # === Table Flags === * # Features * TABLE_NONE = enums.ImGuiTableFlags_None # <<<<<<<<<<<<<< * TABLE_RESIZABLE = enums.ImGuiTableFlags_Resizable * TABLE_REORDERABLE = enums.ImGuiTableFlags_Reorderable */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":268 * # Features * TABLE_NONE = enums.ImGuiTableFlags_None * TABLE_RESIZABLE = enums.ImGuiTableFlags_Resizable # <<<<<<<<<<<<<< * TABLE_REORDERABLE = enums.ImGuiTableFlags_Reorderable * TABLE_HIDEABLE = enums.ImGuiTableFlags_Hideable */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_Resizable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_RESIZABLE, __pyx_t_7) < 0) __PYX_ERR(0, 268, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":269 * TABLE_NONE = enums.ImGuiTableFlags_None * TABLE_RESIZABLE = enums.ImGuiTableFlags_Resizable * TABLE_REORDERABLE = enums.ImGuiTableFlags_Reorderable # <<<<<<<<<<<<<< * TABLE_HIDEABLE = enums.ImGuiTableFlags_Hideable * TABLE_SORTABLE = enums.ImGuiTableFlags_Sortable */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_Reorderable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_REORDERABLE, __pyx_t_7) < 0) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":270 * TABLE_RESIZABLE = enums.ImGuiTableFlags_Resizable * TABLE_REORDERABLE = enums.ImGuiTableFlags_Reorderable * TABLE_HIDEABLE = enums.ImGuiTableFlags_Hideable # <<<<<<<<<<<<<< * TABLE_SORTABLE = enums.ImGuiTableFlags_Sortable * TABLE_NO_SAVED_SETTINGS = enums.ImGuiTableFlags_NoSavedSettings */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_Hideable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_HIDEABLE, __pyx_t_7) < 0) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":271 * TABLE_REORDERABLE = enums.ImGuiTableFlags_Reorderable * TABLE_HIDEABLE = enums.ImGuiTableFlags_Hideable * TABLE_SORTABLE = enums.ImGuiTableFlags_Sortable # <<<<<<<<<<<<<< * TABLE_NO_SAVED_SETTINGS = enums.ImGuiTableFlags_NoSavedSettings * TABLE_CONTEXT_MENU_IN_BODY = enums.ImGuiTableFlags_ContextMenuInBody */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_Sortable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SORTABLE, __pyx_t_7) < 0) __PYX_ERR(0, 271, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":272 * TABLE_HIDEABLE = enums.ImGuiTableFlags_Hideable * TABLE_SORTABLE = enums.ImGuiTableFlags_Sortable * TABLE_NO_SAVED_SETTINGS = enums.ImGuiTableFlags_NoSavedSettings # <<<<<<<<<<<<<< * TABLE_CONTEXT_MENU_IN_BODY = enums.ImGuiTableFlags_ContextMenuInBody * # Decorations */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoSavedSettings); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_SAVED_SETTINGS, __pyx_t_7) < 0) __PYX_ERR(0, 272, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":273 * TABLE_SORTABLE = enums.ImGuiTableFlags_Sortable * TABLE_NO_SAVED_SETTINGS = enums.ImGuiTableFlags_NoSavedSettings * TABLE_CONTEXT_MENU_IN_BODY = enums.ImGuiTableFlags_ContextMenuInBody # <<<<<<<<<<<<<< * # Decorations * TABLE_ROW_BACKGROUND = enums.ImGuiTableFlags_RowBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_ContextMenuInBody); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_CONTEXT_MENU_IN_BODY, __pyx_t_7) < 0) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":275 * TABLE_CONTEXT_MENU_IN_BODY = enums.ImGuiTableFlags_ContextMenuInBody * # Decorations * TABLE_ROW_BACKGROUND = enums.ImGuiTableFlags_RowBg # <<<<<<<<<<<<<< * TABLE_BORDERS_INNER_HORIZONTAL = enums.ImGuiTableFlags_BordersInnerH * TABLE_BORDERS_OUTER_HORIZONTAL = enums.ImGuiTableFlags_BordersOuterH */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_RowBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_ROW_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 275, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":276 * # Decorations * TABLE_ROW_BACKGROUND = enums.ImGuiTableFlags_RowBg * TABLE_BORDERS_INNER_HORIZONTAL = enums.ImGuiTableFlags_BordersInnerH # <<<<<<<<<<<<<< * TABLE_BORDERS_OUTER_HORIZONTAL = enums.ImGuiTableFlags_BordersOuterH * TABLE_BORDERS_INNER_VERTICAL = enums.ImGuiTableFlags_BordersInnerV */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_BordersInnerH); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS_INNER_HORIZONTAL, __pyx_t_7) < 0) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":277 * TABLE_ROW_BACKGROUND = enums.ImGuiTableFlags_RowBg * TABLE_BORDERS_INNER_HORIZONTAL = enums.ImGuiTableFlags_BordersInnerH * TABLE_BORDERS_OUTER_HORIZONTAL = enums.ImGuiTableFlags_BordersOuterH # <<<<<<<<<<<<<< * TABLE_BORDERS_INNER_VERTICAL = enums.ImGuiTableFlags_BordersInnerV * TABLE_BORDERS_OUTER_VERTICAL = enums.ImGuiTableFlags_BordersOuterV */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_BordersOuterH); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS_OUTER_HORIZONTAL, __pyx_t_7) < 0) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":278 * TABLE_BORDERS_INNER_HORIZONTAL = enums.ImGuiTableFlags_BordersInnerH * TABLE_BORDERS_OUTER_HORIZONTAL = enums.ImGuiTableFlags_BordersOuterH * TABLE_BORDERS_INNER_VERTICAL = enums.ImGuiTableFlags_BordersInnerV # <<<<<<<<<<<<<< * TABLE_BORDERS_OUTER_VERTICAL = enums.ImGuiTableFlags_BordersOuterV * TABLE_BORDERS_HORIZONTAL = enums.ImGuiTableFlags_BordersH */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_BordersInnerV); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS_INNER_VERTICAL, __pyx_t_7) < 0) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":279 * TABLE_BORDERS_OUTER_HORIZONTAL = enums.ImGuiTableFlags_BordersOuterH * TABLE_BORDERS_INNER_VERTICAL = enums.ImGuiTableFlags_BordersInnerV * TABLE_BORDERS_OUTER_VERTICAL = enums.ImGuiTableFlags_BordersOuterV # <<<<<<<<<<<<<< * TABLE_BORDERS_HORIZONTAL = enums.ImGuiTableFlags_BordersH * TABLE_BORDERS_VERTICAL = enums.ImGuiTableFlags_BordersV */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_BordersOuterV); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS_OUTER_VERTICAL, __pyx_t_7) < 0) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":280 * TABLE_BORDERS_INNER_VERTICAL = enums.ImGuiTableFlags_BordersInnerV * TABLE_BORDERS_OUTER_VERTICAL = enums.ImGuiTableFlags_BordersOuterV * TABLE_BORDERS_HORIZONTAL = enums.ImGuiTableFlags_BordersH # <<<<<<<<<<<<<< * TABLE_BORDERS_VERTICAL = enums.ImGuiTableFlags_BordersV * TABLE_BORDERS_INNER = enums.ImGuiTableFlags_BordersInner */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_BordersH); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS_HORIZONTAL, __pyx_t_7) < 0) __PYX_ERR(0, 280, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":281 * TABLE_BORDERS_OUTER_VERTICAL = enums.ImGuiTableFlags_BordersOuterV * TABLE_BORDERS_HORIZONTAL = enums.ImGuiTableFlags_BordersH * TABLE_BORDERS_VERTICAL = enums.ImGuiTableFlags_BordersV # <<<<<<<<<<<<<< * TABLE_BORDERS_INNER = enums.ImGuiTableFlags_BordersInner * TABLE_BORDERS_OUTER = enums.ImGuiTableFlags_BordersOuter */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_BordersV); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS_VERTICAL, __pyx_t_7) < 0) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":282 * TABLE_BORDERS_HORIZONTAL = enums.ImGuiTableFlags_BordersH * TABLE_BORDERS_VERTICAL = enums.ImGuiTableFlags_BordersV * TABLE_BORDERS_INNER = enums.ImGuiTableFlags_BordersInner # <<<<<<<<<<<<<< * TABLE_BORDERS_OUTER = enums.ImGuiTableFlags_BordersOuter * TABLE_BORDERS = enums.ImGuiTableFlags_Borders */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_BordersInner); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS_INNER, __pyx_t_7) < 0) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":283 * TABLE_BORDERS_VERTICAL = enums.ImGuiTableFlags_BordersV * TABLE_BORDERS_INNER = enums.ImGuiTableFlags_BordersInner * TABLE_BORDERS_OUTER = enums.ImGuiTableFlags_BordersOuter # <<<<<<<<<<<<<< * TABLE_BORDERS = enums.ImGuiTableFlags_Borders * TABLE_NO_BORDERS_IN_BODY = enums.ImGuiTableFlags_NoBordersInBody */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_BordersOuter); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS_OUTER, __pyx_t_7) < 0) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":284 * TABLE_BORDERS_INNER = enums.ImGuiTableFlags_BordersInner * TABLE_BORDERS_OUTER = enums.ImGuiTableFlags_BordersOuter * TABLE_BORDERS = enums.ImGuiTableFlags_Borders # <<<<<<<<<<<<<< * TABLE_NO_BORDERS_IN_BODY = enums.ImGuiTableFlags_NoBordersInBody * TABLE_NO_BORDERS_IN_BODY_UTIL_RESIZE = enums.ImGuiTableFlags_NoBordersInBodyUntilResize */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_Borders); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BORDERS, __pyx_t_7) < 0) __PYX_ERR(0, 284, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":285 * TABLE_BORDERS_OUTER = enums.ImGuiTableFlags_BordersOuter * TABLE_BORDERS = enums.ImGuiTableFlags_Borders * TABLE_NO_BORDERS_IN_BODY = enums.ImGuiTableFlags_NoBordersInBody # <<<<<<<<<<<<<< * TABLE_NO_BORDERS_IN_BODY_UTIL_RESIZE = enums.ImGuiTableFlags_NoBordersInBodyUntilResize * # Sizing Policy (read above for defaults) */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoBordersInBody); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_BORDERS_IN_BODY, __pyx_t_7) < 0) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":286 * TABLE_BORDERS = enums.ImGuiTableFlags_Borders * TABLE_NO_BORDERS_IN_BODY = enums.ImGuiTableFlags_NoBordersInBody * TABLE_NO_BORDERS_IN_BODY_UTIL_RESIZE = enums.ImGuiTableFlags_NoBordersInBodyUntilResize # <<<<<<<<<<<<<< * # Sizing Policy (read above for defaults) * TABLE_SIZING_FIXED_FIT = enums.ImGuiTableFlags_SizingFixedFit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoBordersInBodyUntilResize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_BORDERS_IN_BODY_UTIL_RE, __pyx_t_7) < 0) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":288 * TABLE_NO_BORDERS_IN_BODY_UTIL_RESIZE = enums.ImGuiTableFlags_NoBordersInBodyUntilResize * # Sizing Policy (read above for defaults) * TABLE_SIZING_FIXED_FIT = enums.ImGuiTableFlags_SizingFixedFit # <<<<<<<<<<<<<< * TABLE_SIZING_FIXED_SAME = enums.ImGuiTableFlags_SizingFixedSame * TABLE_SIZING_STRETCH_PROP = enums.ImGuiTableFlags_SizingStretchProp */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_SizingFixedFit); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SIZING_FIXED_FIT, __pyx_t_7) < 0) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":289 * # Sizing Policy (read above for defaults) * TABLE_SIZING_FIXED_FIT = enums.ImGuiTableFlags_SizingFixedFit * TABLE_SIZING_FIXED_SAME = enums.ImGuiTableFlags_SizingFixedSame # <<<<<<<<<<<<<< * TABLE_SIZING_STRETCH_PROP = enums.ImGuiTableFlags_SizingStretchProp * TABLE_SIZING_STRETCH_SAME = enums.ImGuiTableFlags_SizingStretchSame */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_SizingFixedSame); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SIZING_FIXED_SAME, __pyx_t_7) < 0) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":290 * TABLE_SIZING_FIXED_FIT = enums.ImGuiTableFlags_SizingFixedFit * TABLE_SIZING_FIXED_SAME = enums.ImGuiTableFlags_SizingFixedSame * TABLE_SIZING_STRETCH_PROP = enums.ImGuiTableFlags_SizingStretchProp # <<<<<<<<<<<<<< * TABLE_SIZING_STRETCH_SAME = enums.ImGuiTableFlags_SizingStretchSame * # Sizing Extra Options */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_SizingStretchProp); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SIZING_STRETCH_PROP, __pyx_t_7) < 0) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":291 * TABLE_SIZING_FIXED_SAME = enums.ImGuiTableFlags_SizingFixedSame * TABLE_SIZING_STRETCH_PROP = enums.ImGuiTableFlags_SizingStretchProp * TABLE_SIZING_STRETCH_SAME = enums.ImGuiTableFlags_SizingStretchSame # <<<<<<<<<<<<<< * # Sizing Extra Options * TABLE_NO_HOST_EXTEND_X = enums.ImGuiTableFlags_NoHostExtendX */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_SizingStretchSame); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SIZING_STRETCH_SAME, __pyx_t_7) < 0) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":293 * TABLE_SIZING_STRETCH_SAME = enums.ImGuiTableFlags_SizingStretchSame * # Sizing Extra Options * TABLE_NO_HOST_EXTEND_X = enums.ImGuiTableFlags_NoHostExtendX # <<<<<<<<<<<<<< * TABLE_NO_HOST_EXTEND_Y = enums.ImGuiTableFlags_NoHostExtendY * TABLE_NO_KEEP_COLUMNS_VISIBLE = enums.ImGuiTableFlags_NoKeepColumnsVisible */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoHostExtendX); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_HOST_EXTEND_X, __pyx_t_7) < 0) __PYX_ERR(0, 293, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":294 * # Sizing Extra Options * TABLE_NO_HOST_EXTEND_X = enums.ImGuiTableFlags_NoHostExtendX * TABLE_NO_HOST_EXTEND_Y = enums.ImGuiTableFlags_NoHostExtendY # <<<<<<<<<<<<<< * TABLE_NO_KEEP_COLUMNS_VISIBLE = enums.ImGuiTableFlags_NoKeepColumnsVisible * TABLE_PRECISE_WIDTHS = enums.ImGuiTableFlags_PreciseWidths */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoHostExtendY); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_HOST_EXTEND_Y, __pyx_t_7) < 0) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":295 * TABLE_NO_HOST_EXTEND_X = enums.ImGuiTableFlags_NoHostExtendX * TABLE_NO_HOST_EXTEND_Y = enums.ImGuiTableFlags_NoHostExtendY * TABLE_NO_KEEP_COLUMNS_VISIBLE = enums.ImGuiTableFlags_NoKeepColumnsVisible # <<<<<<<<<<<<<< * TABLE_PRECISE_WIDTHS = enums.ImGuiTableFlags_PreciseWidths * # Clipping */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoKeepColumnsVisible); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_KEEP_COLUMNS_VISIBLE, __pyx_t_7) < 0) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":296 * TABLE_NO_HOST_EXTEND_Y = enums.ImGuiTableFlags_NoHostExtendY * TABLE_NO_KEEP_COLUMNS_VISIBLE = enums.ImGuiTableFlags_NoKeepColumnsVisible * TABLE_PRECISE_WIDTHS = enums.ImGuiTableFlags_PreciseWidths # <<<<<<<<<<<<<< * # Clipping * TABLE_NO_CLIP = enums.ImGuiTableFlags_NoClip */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_PreciseWidths); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_PRECISE_WIDTHS, __pyx_t_7) < 0) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":298 * TABLE_PRECISE_WIDTHS = enums.ImGuiTableFlags_PreciseWidths * # Clipping * TABLE_NO_CLIP = enums.ImGuiTableFlags_NoClip # <<<<<<<<<<<<<< * # Padding * TABLE_PAD_OUTER_X = enums.ImGuiTableFlags_PadOuterX */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoClip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_CLIP, __pyx_t_7) < 0) __PYX_ERR(0, 298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":300 * TABLE_NO_CLIP = enums.ImGuiTableFlags_NoClip * # Padding * TABLE_PAD_OUTER_X = enums.ImGuiTableFlags_PadOuterX # <<<<<<<<<<<<<< * TABLE_NO_PAD_OUTER_X = enums.ImGuiTableFlags_NoPadOuterX * TABLE_NO_PAD_INNER_X = enums.ImGuiTableFlags_NoPadInnerX */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_PadOuterX); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_PAD_OUTER_X, __pyx_t_7) < 0) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":301 * # Padding * TABLE_PAD_OUTER_X = enums.ImGuiTableFlags_PadOuterX * TABLE_NO_PAD_OUTER_X = enums.ImGuiTableFlags_NoPadOuterX # <<<<<<<<<<<<<< * TABLE_NO_PAD_INNER_X = enums.ImGuiTableFlags_NoPadInnerX * # Scrolling */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoPadOuterX); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_PAD_OUTER_X, __pyx_t_7) < 0) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":302 * TABLE_PAD_OUTER_X = enums.ImGuiTableFlags_PadOuterX * TABLE_NO_PAD_OUTER_X = enums.ImGuiTableFlags_NoPadOuterX * TABLE_NO_PAD_INNER_X = enums.ImGuiTableFlags_NoPadInnerX # <<<<<<<<<<<<<< * # Scrolling * TABLE_SCROLL_X = enums.ImGuiTableFlags_ScrollX */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_NoPadInnerX); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_NO_PAD_INNER_X, __pyx_t_7) < 0) __PYX_ERR(0, 302, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":304 * TABLE_NO_PAD_INNER_X = enums.ImGuiTableFlags_NoPadInnerX * # Scrolling * TABLE_SCROLL_X = enums.ImGuiTableFlags_ScrollX # <<<<<<<<<<<<<< * TABLE_SCROLL_Y = enums.ImGuiTableFlags_ScrollY * # Sorting */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_ScrollX); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SCROLL_X, __pyx_t_7) < 0) __PYX_ERR(0, 304, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":305 * # Scrolling * TABLE_SCROLL_X = enums.ImGuiTableFlags_ScrollX * TABLE_SCROLL_Y = enums.ImGuiTableFlags_ScrollY # <<<<<<<<<<<<<< * # Sorting * TABLE_SORT_MULTI = enums.ImGuiTableFlags_SortMulti */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_ScrollY); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SCROLL_Y, __pyx_t_7) < 0) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":307 * TABLE_SCROLL_Y = enums.ImGuiTableFlags_ScrollY * # Sorting * TABLE_SORT_MULTI = enums.ImGuiTableFlags_SortMulti # <<<<<<<<<<<<<< * TABLE_SORT_TRISTATE = enums.ImGuiTableFlags_SortTristate * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_SortMulti); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SORT_MULTI, __pyx_t_7) < 0) __PYX_ERR(0, 307, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":308 * # Sorting * TABLE_SORT_MULTI = enums.ImGuiTableFlags_SortMulti * TABLE_SORT_TRISTATE = enums.ImGuiTableFlags_SortTristate # <<<<<<<<<<<<<< * * # === Table Column Flags === */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_SortTristate); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_SORT_TRISTATE, __pyx_t_7) < 0) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":312 * # === Table Column Flags === * # Input configuration flags * TABLE_COLUMN_NONE = enums.ImGuiTableColumnFlags_None # <<<<<<<<<<<<<< * TABLE_COLUMN_DEFAULT_HIDE = enums.ImGuiTableColumnFlags_DefaultHide * TABLE_COLUMN_DEFAULT_SORT = enums.ImGuiTableColumnFlags_DefaultSort */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":313 * # Input configuration flags * TABLE_COLUMN_NONE = enums.ImGuiTableColumnFlags_None * TABLE_COLUMN_DEFAULT_HIDE = enums.ImGuiTableColumnFlags_DefaultHide # <<<<<<<<<<<<<< * TABLE_COLUMN_DEFAULT_SORT = enums.ImGuiTableColumnFlags_DefaultSort * TABLE_COLUMN_WIDTH_STRETCH = enums.ImGuiTableColumnFlags_WidthStretch */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_DefaultHide); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_DEFAULT_HIDE, __pyx_t_7) < 0) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":314 * TABLE_COLUMN_NONE = enums.ImGuiTableColumnFlags_None * TABLE_COLUMN_DEFAULT_HIDE = enums.ImGuiTableColumnFlags_DefaultHide * TABLE_COLUMN_DEFAULT_SORT = enums.ImGuiTableColumnFlags_DefaultSort # <<<<<<<<<<<<<< * TABLE_COLUMN_WIDTH_STRETCH = enums.ImGuiTableColumnFlags_WidthStretch * TABLE_COLUMN_WIDTH_FIXED = enums.ImGuiTableColumnFlags_WidthFixed */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_DefaultSort); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_DEFAULT_SORT, __pyx_t_7) < 0) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":315 * TABLE_COLUMN_DEFAULT_HIDE = enums.ImGuiTableColumnFlags_DefaultHide * TABLE_COLUMN_DEFAULT_SORT = enums.ImGuiTableColumnFlags_DefaultSort * TABLE_COLUMN_WIDTH_STRETCH = enums.ImGuiTableColumnFlags_WidthStretch # <<<<<<<<<<<<<< * TABLE_COLUMN_WIDTH_FIXED = enums.ImGuiTableColumnFlags_WidthFixed * TABLE_COLUMN_NO_RESIZE = enums.ImGuiTableColumnFlags_NoResize */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_WidthStretch); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_WIDTH_STRETCH, __pyx_t_7) < 0) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":316 * TABLE_COLUMN_DEFAULT_SORT = enums.ImGuiTableColumnFlags_DefaultSort * TABLE_COLUMN_WIDTH_STRETCH = enums.ImGuiTableColumnFlags_WidthStretch * TABLE_COLUMN_WIDTH_FIXED = enums.ImGuiTableColumnFlags_WidthFixed # <<<<<<<<<<<<<< * TABLE_COLUMN_NO_RESIZE = enums.ImGuiTableColumnFlags_NoResize * TABLE_COLUMN_NO_REORDER = enums.ImGuiTableColumnFlags_NoReorder */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_WidthFixed); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_WIDTH_FIXED, __pyx_t_7) < 0) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":317 * TABLE_COLUMN_WIDTH_STRETCH = enums.ImGuiTableColumnFlags_WidthStretch * TABLE_COLUMN_WIDTH_FIXED = enums.ImGuiTableColumnFlags_WidthFixed * TABLE_COLUMN_NO_RESIZE = enums.ImGuiTableColumnFlags_NoResize # <<<<<<<<<<<<<< * TABLE_COLUMN_NO_REORDER = enums.ImGuiTableColumnFlags_NoReorder * TABLE_COLUMN_NO_HIDE = enums.ImGuiTableColumnFlags_NoHide */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_NoResize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NO_RESIZE, __pyx_t_7) < 0) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":318 * TABLE_COLUMN_WIDTH_FIXED = enums.ImGuiTableColumnFlags_WidthFixed * TABLE_COLUMN_NO_RESIZE = enums.ImGuiTableColumnFlags_NoResize * TABLE_COLUMN_NO_REORDER = enums.ImGuiTableColumnFlags_NoReorder # <<<<<<<<<<<<<< * TABLE_COLUMN_NO_HIDE = enums.ImGuiTableColumnFlags_NoHide * TABLE_COLUMN_NO_CLIP = enums.ImGuiTableColumnFlags_NoClip */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_NoReorder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NO_REORDER, __pyx_t_7) < 0) __PYX_ERR(0, 318, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":319 * TABLE_COLUMN_NO_RESIZE = enums.ImGuiTableColumnFlags_NoResize * TABLE_COLUMN_NO_REORDER = enums.ImGuiTableColumnFlags_NoReorder * TABLE_COLUMN_NO_HIDE = enums.ImGuiTableColumnFlags_NoHide # <<<<<<<<<<<<<< * TABLE_COLUMN_NO_CLIP = enums.ImGuiTableColumnFlags_NoClip * TABLE_COLUMN_NO_SORT = enums.ImGuiTableColumnFlags_NoSort */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_NoHide); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NO_HIDE, __pyx_t_7) < 0) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":320 * TABLE_COLUMN_NO_REORDER = enums.ImGuiTableColumnFlags_NoReorder * TABLE_COLUMN_NO_HIDE = enums.ImGuiTableColumnFlags_NoHide * TABLE_COLUMN_NO_CLIP = enums.ImGuiTableColumnFlags_NoClip # <<<<<<<<<<<<<< * TABLE_COLUMN_NO_SORT = enums.ImGuiTableColumnFlags_NoSort * TABLE_COLUMN_NO_SORT_ASCENDING = enums.ImGuiTableColumnFlags_NoSortAscending */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_NoClip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NO_CLIP, __pyx_t_7) < 0) __PYX_ERR(0, 320, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":321 * TABLE_COLUMN_NO_HIDE = enums.ImGuiTableColumnFlags_NoHide * TABLE_COLUMN_NO_CLIP = enums.ImGuiTableColumnFlags_NoClip * TABLE_COLUMN_NO_SORT = enums.ImGuiTableColumnFlags_NoSort # <<<<<<<<<<<<<< * TABLE_COLUMN_NO_SORT_ASCENDING = enums.ImGuiTableColumnFlags_NoSortAscending * TABLE_COLUMN_NO_SORT_DESCENDING = enums.ImGuiTableColumnFlags_NoSortDescending */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_NoSort); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NO_SORT, __pyx_t_7) < 0) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":322 * TABLE_COLUMN_NO_CLIP = enums.ImGuiTableColumnFlags_NoClip * TABLE_COLUMN_NO_SORT = enums.ImGuiTableColumnFlags_NoSort * TABLE_COLUMN_NO_SORT_ASCENDING = enums.ImGuiTableColumnFlags_NoSortAscending # <<<<<<<<<<<<<< * TABLE_COLUMN_NO_SORT_DESCENDING = enums.ImGuiTableColumnFlags_NoSortDescending * TABLE_COLUMN_NO_HEADER_WIDTH = enums.ImGuiTableColumnFlags_NoHeaderWidth */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_NoSortAscending); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NO_SORT_ASCENDING, __pyx_t_7) < 0) __PYX_ERR(0, 322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":323 * TABLE_COLUMN_NO_SORT = enums.ImGuiTableColumnFlags_NoSort * TABLE_COLUMN_NO_SORT_ASCENDING = enums.ImGuiTableColumnFlags_NoSortAscending * TABLE_COLUMN_NO_SORT_DESCENDING = enums.ImGuiTableColumnFlags_NoSortDescending # <<<<<<<<<<<<<< * TABLE_COLUMN_NO_HEADER_WIDTH = enums.ImGuiTableColumnFlags_NoHeaderWidth * TABLE_COLUMN_PREFER_SORT_ASCENDING = enums.ImGuiTableColumnFlags_PreferSortAscending */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_NoSortDescending); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NO_SORT_DESCENDING, __pyx_t_7) < 0) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":324 * TABLE_COLUMN_NO_SORT_ASCENDING = enums.ImGuiTableColumnFlags_NoSortAscending * TABLE_COLUMN_NO_SORT_DESCENDING = enums.ImGuiTableColumnFlags_NoSortDescending * TABLE_COLUMN_NO_HEADER_WIDTH = enums.ImGuiTableColumnFlags_NoHeaderWidth # <<<<<<<<<<<<<< * TABLE_COLUMN_PREFER_SORT_ASCENDING = enums.ImGuiTableColumnFlags_PreferSortAscending * TABLE_COLUMN_PREFER_SORT_DESCENDING = enums.ImGuiTableColumnFlags_PreferSortDescending */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_NoHeaderWidth); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_NO_HEADER_WIDTH, __pyx_t_7) < 0) __PYX_ERR(0, 324, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":325 * TABLE_COLUMN_NO_SORT_DESCENDING = enums.ImGuiTableColumnFlags_NoSortDescending * TABLE_COLUMN_NO_HEADER_WIDTH = enums.ImGuiTableColumnFlags_NoHeaderWidth * TABLE_COLUMN_PREFER_SORT_ASCENDING = enums.ImGuiTableColumnFlags_PreferSortAscending # <<<<<<<<<<<<<< * TABLE_COLUMN_PREFER_SORT_DESCENDING = enums.ImGuiTableColumnFlags_PreferSortDescending * TABLE_COLUMN_INDENT_ENABLE = enums.ImGuiTableColumnFlags_IndentEnable */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_PreferSortAscending); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_PREFER_SORT_ASCENDI, __pyx_t_7) < 0) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":326 * TABLE_COLUMN_NO_HEADER_WIDTH = enums.ImGuiTableColumnFlags_NoHeaderWidth * TABLE_COLUMN_PREFER_SORT_ASCENDING = enums.ImGuiTableColumnFlags_PreferSortAscending * TABLE_COLUMN_PREFER_SORT_DESCENDING = enums.ImGuiTableColumnFlags_PreferSortDescending # <<<<<<<<<<<<<< * TABLE_COLUMN_INDENT_ENABLE = enums.ImGuiTableColumnFlags_IndentEnable * TABLE_COLUMN_INDENT_DISABLE = enums.ImGuiTableColumnFlags_IndentDisable */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_PreferSortDescending); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_PREFER_SORT_DESCEND, __pyx_t_7) < 0) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":327 * TABLE_COLUMN_PREFER_SORT_ASCENDING = enums.ImGuiTableColumnFlags_PreferSortAscending * TABLE_COLUMN_PREFER_SORT_DESCENDING = enums.ImGuiTableColumnFlags_PreferSortDescending * TABLE_COLUMN_INDENT_ENABLE = enums.ImGuiTableColumnFlags_IndentEnable # <<<<<<<<<<<<<< * TABLE_COLUMN_INDENT_DISABLE = enums.ImGuiTableColumnFlags_IndentDisable * # Output status flags, read-only via TableGetColumnFlags() */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_IndentEnable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_INDENT_ENABLE, __pyx_t_7) < 0) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":328 * TABLE_COLUMN_PREFER_SORT_DESCENDING = enums.ImGuiTableColumnFlags_PreferSortDescending * TABLE_COLUMN_INDENT_ENABLE = enums.ImGuiTableColumnFlags_IndentEnable * TABLE_COLUMN_INDENT_DISABLE = enums.ImGuiTableColumnFlags_IndentDisable # <<<<<<<<<<<<<< * # Output status flags, read-only via TableGetColumnFlags() * TABLE_COLUMN_IS_ENABLED = enums.ImGuiTableColumnFlags_IsEnabled */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_IndentDisable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_INDENT_DISABLE, __pyx_t_7) < 0) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":330 * TABLE_COLUMN_INDENT_DISABLE = enums.ImGuiTableColumnFlags_IndentDisable * # Output status flags, read-only via TableGetColumnFlags() * TABLE_COLUMN_IS_ENABLED = enums.ImGuiTableColumnFlags_IsEnabled # <<<<<<<<<<<<<< * TABLE_COLUMN_IS_VISIBLE = enums.ImGuiTableColumnFlags_IsVisible * TABLE_COLUMN_IS_SORTED = enums.ImGuiTableColumnFlags_IsSorted */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_IsEnabled); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_IS_ENABLED, __pyx_t_7) < 0) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":331 * # Output status flags, read-only via TableGetColumnFlags() * TABLE_COLUMN_IS_ENABLED = enums.ImGuiTableColumnFlags_IsEnabled * TABLE_COLUMN_IS_VISIBLE = enums.ImGuiTableColumnFlags_IsVisible # <<<<<<<<<<<<<< * TABLE_COLUMN_IS_SORTED = enums.ImGuiTableColumnFlags_IsSorted * TABLE_COLUMN_IS_HOVERED = enums.ImGuiTableColumnFlags_IsHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_IsVisible); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_IS_VISIBLE, __pyx_t_7) < 0) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":332 * TABLE_COLUMN_IS_ENABLED = enums.ImGuiTableColumnFlags_IsEnabled * TABLE_COLUMN_IS_VISIBLE = enums.ImGuiTableColumnFlags_IsVisible * TABLE_COLUMN_IS_SORTED = enums.ImGuiTableColumnFlags_IsSorted # <<<<<<<<<<<<<< * TABLE_COLUMN_IS_HOVERED = enums.ImGuiTableColumnFlags_IsHovered * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_IsSorted); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_IS_SORTED, __pyx_t_7) < 0) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":333 * TABLE_COLUMN_IS_VISIBLE = enums.ImGuiTableColumnFlags_IsVisible * TABLE_COLUMN_IS_SORTED = enums.ImGuiTableColumnFlags_IsSorted * TABLE_COLUMN_IS_HOVERED = enums.ImGuiTableColumnFlags_IsHovered # <<<<<<<<<<<<<< * * # === Table Row Flags === */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_IsHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_COLUMN_IS_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":336 * * # === Table Row Flags === * TABLE_ROW_NONE = enums.ImGuiTableRowFlags_None # <<<<<<<<<<<<<< * TABLE_ROW_HEADERS = enums.ImGuiTableRowFlags_Headers * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableRowFlags_(ImGuiTableRowFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_ROW_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":337 * # === Table Row Flags === * TABLE_ROW_NONE = enums.ImGuiTableRowFlags_None * TABLE_ROW_HEADERS = enums.ImGuiTableRowFlags_Headers # <<<<<<<<<<<<<< * * # === Table Background Target === */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableRowFlags_(ImGuiTableRowFlags_Headers); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_ROW_HEADERS, __pyx_t_7) < 0) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":340 * * # === Table Background Target === * TABLE_BACKGROUND_TARGET_NONE = enums.ImGuiTableBgTarget_None # <<<<<<<<<<<<<< * TABLE_BACKGROUND_TARGET_ROW_BG0 = enums.ImGuiTableBgTarget_RowBg0 * TABLE_BACKGROUND_TARGET_ROW_BG1 = enums.ImGuiTableBgTarget_RowBg1 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableBgTarget_(ImGuiTableBgTarget_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BACKGROUND_TARGET_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":341 * # === Table Background Target === * TABLE_BACKGROUND_TARGET_NONE = enums.ImGuiTableBgTarget_None * TABLE_BACKGROUND_TARGET_ROW_BG0 = enums.ImGuiTableBgTarget_RowBg0 # <<<<<<<<<<<<<< * TABLE_BACKGROUND_TARGET_ROW_BG1 = enums.ImGuiTableBgTarget_RowBg1 * TABLE_BACKGROUND_TARGET_CELL_BG = enums.ImGuiTableBgTarget_CellBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableBgTarget_(ImGuiTableBgTarget_RowBg0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BACKGROUND_TARGET_ROW_BG0, __pyx_t_7) < 0) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":342 * TABLE_BACKGROUND_TARGET_NONE = enums.ImGuiTableBgTarget_None * TABLE_BACKGROUND_TARGET_ROW_BG0 = enums.ImGuiTableBgTarget_RowBg0 * TABLE_BACKGROUND_TARGET_ROW_BG1 = enums.ImGuiTableBgTarget_RowBg1 # <<<<<<<<<<<<<< * TABLE_BACKGROUND_TARGET_CELL_BG = enums.ImGuiTableBgTarget_CellBg * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableBgTarget_(ImGuiTableBgTarget_RowBg1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BACKGROUND_TARGET_ROW_BG1, __pyx_t_7) < 0) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":343 * TABLE_BACKGROUND_TARGET_ROW_BG0 = enums.ImGuiTableBgTarget_RowBg0 * TABLE_BACKGROUND_TARGET_ROW_BG1 = enums.ImGuiTableBgTarget_RowBg1 * TABLE_BACKGROUND_TARGET_CELL_BG = enums.ImGuiTableBgTarget_CellBg # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiTableBgTarget_(ImGuiTableBgTarget_CellBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_TABLE_BACKGROUND_TARGET_CELL_BG, __pyx_t_7) < 0) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":348 * # === Focus flag enum redefines ==== * # TODO: Change to FOCUSED_ ? * FOCUS_NONE = enums.ImGuiFocusedFlags_None # <<<<<<<<<<<<<< * FOCUS_CHILD_WINDOWS = enums.ImGuiFocusedFlags_ChildWindows * FOCUS_ROOT_WINDOW = enums.ImGuiFocusedFlags_RootWindow */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiFocusedFlags_(ImGuiFocusedFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FOCUS_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 348, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":349 * # TODO: Change to FOCUSED_ ? * FOCUS_NONE = enums.ImGuiFocusedFlags_None * FOCUS_CHILD_WINDOWS = enums.ImGuiFocusedFlags_ChildWindows # <<<<<<<<<<<<<< * FOCUS_ROOT_WINDOW = enums.ImGuiFocusedFlags_RootWindow * FOCUS_ANY_WINDOW = enums.ImGuiFocusedFlags_AnyWindow */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiFocusedFlags_(ImGuiFocusedFlags_ChildWindows); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FOCUS_CHILD_WINDOWS, __pyx_t_7) < 0) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":350 * FOCUS_NONE = enums.ImGuiFocusedFlags_None * FOCUS_CHILD_WINDOWS = enums.ImGuiFocusedFlags_ChildWindows * FOCUS_ROOT_WINDOW = enums.ImGuiFocusedFlags_RootWindow # <<<<<<<<<<<<<< * FOCUS_ANY_WINDOW = enums.ImGuiFocusedFlags_AnyWindow * FOCUS_ROOT_AND_CHILD_WINDOWS = enums.ImGuiFocusedFlags_RootAndChildWindows */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiFocusedFlags_(ImGuiFocusedFlags_RootWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FOCUS_ROOT_WINDOW, __pyx_t_7) < 0) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":351 * FOCUS_CHILD_WINDOWS = enums.ImGuiFocusedFlags_ChildWindows * FOCUS_ROOT_WINDOW = enums.ImGuiFocusedFlags_RootWindow * FOCUS_ANY_WINDOW = enums.ImGuiFocusedFlags_AnyWindow # <<<<<<<<<<<<<< * FOCUS_ROOT_AND_CHILD_WINDOWS = enums.ImGuiFocusedFlags_RootAndChildWindows * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiFocusedFlags_(ImGuiFocusedFlags_AnyWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FOCUS_ANY_WINDOW, __pyx_t_7) < 0) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":352 * FOCUS_ROOT_WINDOW = enums.ImGuiFocusedFlags_RootWindow * FOCUS_ANY_WINDOW = enums.ImGuiFocusedFlags_AnyWindow * FOCUS_ROOT_AND_CHILD_WINDOWS = enums.ImGuiFocusedFlags_RootAndChildWindows # <<<<<<<<<<<<<< * * # === Hovered flag enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiFocusedFlags_(ImGuiFocusedFlags_RootAndChildWindows); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FOCUS_ROOT_AND_CHILD_WINDOWS, __pyx_t_7) < 0) __PYX_ERR(0, 352, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":355 * * # === Hovered flag enum redefines ==== * HOVERED_NONE = enums.ImGuiHoveredFlags_None # <<<<<<<<<<<<<< * HOVERED_CHILD_WINDOWS = enums.ImGuiHoveredFlags_ChildWindows * HOVERED_ROOT_WINDOW = enums.ImGuiHoveredFlags_RootWindow */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":356 * # === Hovered flag enum redefines ==== * HOVERED_NONE = enums.ImGuiHoveredFlags_None * HOVERED_CHILD_WINDOWS = enums.ImGuiHoveredFlags_ChildWindows # <<<<<<<<<<<<<< * HOVERED_ROOT_WINDOW = enums.ImGuiHoveredFlags_RootWindow * HOVERED_ANY_WINDOW = enums.ImGuiHoveredFlags_AnyWindow */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_ChildWindows); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_CHILD_WINDOWS, __pyx_t_7) < 0) __PYX_ERR(0, 356, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":357 * HOVERED_NONE = enums.ImGuiHoveredFlags_None * HOVERED_CHILD_WINDOWS = enums.ImGuiHoveredFlags_ChildWindows * HOVERED_ROOT_WINDOW = enums.ImGuiHoveredFlags_RootWindow # <<<<<<<<<<<<<< * HOVERED_ANY_WINDOW = enums.ImGuiHoveredFlags_AnyWindow * HOVERED_ALLOW_WHEN_BLOCKED_BY_POPUP = enums.ImGuiHoveredFlags_AllowWhenBlockedByPopup */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_RootWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_ROOT_WINDOW, __pyx_t_7) < 0) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":358 * HOVERED_CHILD_WINDOWS = enums.ImGuiHoveredFlags_ChildWindows * HOVERED_ROOT_WINDOW = enums.ImGuiHoveredFlags_RootWindow * HOVERED_ANY_WINDOW = enums.ImGuiHoveredFlags_AnyWindow # <<<<<<<<<<<<<< * HOVERED_ALLOW_WHEN_BLOCKED_BY_POPUP = enums.ImGuiHoveredFlags_AllowWhenBlockedByPopup * HOVERED_ALLOW_WHEN_BLOCKED_BY_ACTIVE_ITEM = enums.ImGuiHoveredFlags_AllowWhenBlockedByActiveItem */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_AnyWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_ANY_WINDOW, __pyx_t_7) < 0) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":359 * HOVERED_ROOT_WINDOW = enums.ImGuiHoveredFlags_RootWindow * HOVERED_ANY_WINDOW = enums.ImGuiHoveredFlags_AnyWindow * HOVERED_ALLOW_WHEN_BLOCKED_BY_POPUP = enums.ImGuiHoveredFlags_AllowWhenBlockedByPopup # <<<<<<<<<<<<<< * HOVERED_ALLOW_WHEN_BLOCKED_BY_ACTIVE_ITEM = enums.ImGuiHoveredFlags_AllowWhenBlockedByActiveItem * HOVERED_ALLOW_WHEN_OVERLAPPED = enums.ImGuiHoveredFlags_AllowWhenOverlapped */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_AllowWhenBlockedByPopup); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_ALLOW_WHEN_BLOCKED_BY_PO, __pyx_t_7) < 0) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":360 * HOVERED_ANY_WINDOW = enums.ImGuiHoveredFlags_AnyWindow * HOVERED_ALLOW_WHEN_BLOCKED_BY_POPUP = enums.ImGuiHoveredFlags_AllowWhenBlockedByPopup * HOVERED_ALLOW_WHEN_BLOCKED_BY_ACTIVE_ITEM = enums.ImGuiHoveredFlags_AllowWhenBlockedByActiveItem # <<<<<<<<<<<<<< * HOVERED_ALLOW_WHEN_OVERLAPPED = enums.ImGuiHoveredFlags_AllowWhenOverlapped * HOVERED_ALLOW_WHEN_DISABLED = enums.ImGuiHoveredFlags_AllowWhenDisabled */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_ALLOW_WHEN_BLOCKED_BY_AC, __pyx_t_7) < 0) __PYX_ERR(0, 360, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":361 * HOVERED_ALLOW_WHEN_BLOCKED_BY_POPUP = enums.ImGuiHoveredFlags_AllowWhenBlockedByPopup * HOVERED_ALLOW_WHEN_BLOCKED_BY_ACTIVE_ITEM = enums.ImGuiHoveredFlags_AllowWhenBlockedByActiveItem * HOVERED_ALLOW_WHEN_OVERLAPPED = enums.ImGuiHoveredFlags_AllowWhenOverlapped # <<<<<<<<<<<<<< * HOVERED_ALLOW_WHEN_DISABLED = enums.ImGuiHoveredFlags_AllowWhenDisabled * HOVERED_RECT_ONLY = enums.ImGuiHoveredFlags_RectOnly */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_AllowWhenOverlapped); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_ALLOW_WHEN_OVERLAPPED, __pyx_t_7) < 0) __PYX_ERR(0, 361, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":362 * HOVERED_ALLOW_WHEN_BLOCKED_BY_ACTIVE_ITEM = enums.ImGuiHoveredFlags_AllowWhenBlockedByActiveItem * HOVERED_ALLOW_WHEN_OVERLAPPED = enums.ImGuiHoveredFlags_AllowWhenOverlapped * HOVERED_ALLOW_WHEN_DISABLED = enums.ImGuiHoveredFlags_AllowWhenDisabled # <<<<<<<<<<<<<< * HOVERED_RECT_ONLY = enums.ImGuiHoveredFlags_RectOnly * HOVERED_ROOT_AND_CHILD_WINDOWS = enums.ImGuiHoveredFlags_RootAndChildWindows */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_AllowWhenDisabled); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_ALLOW_WHEN_DISABLED, __pyx_t_7) < 0) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":363 * HOVERED_ALLOW_WHEN_OVERLAPPED = enums.ImGuiHoveredFlags_AllowWhenOverlapped * HOVERED_ALLOW_WHEN_DISABLED = enums.ImGuiHoveredFlags_AllowWhenDisabled * HOVERED_RECT_ONLY = enums.ImGuiHoveredFlags_RectOnly # <<<<<<<<<<<<<< * HOVERED_ROOT_AND_CHILD_WINDOWS = enums.ImGuiHoveredFlags_RootAndChildWindows * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_RectOnly); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_RECT_ONLY, __pyx_t_7) < 0) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":364 * HOVERED_ALLOW_WHEN_DISABLED = enums.ImGuiHoveredFlags_AllowWhenDisabled * HOVERED_RECT_ONLY = enums.ImGuiHoveredFlags_RectOnly * HOVERED_ROOT_AND_CHILD_WINDOWS = enums.ImGuiHoveredFlags_RootAndChildWindows # <<<<<<<<<<<<<< * * # === Drag Drop flag enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_RootAndChildWindows); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_HOVERED_ROOT_AND_CHILD_WINDOWS, __pyx_t_7) < 0) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":367 * * # === Drag Drop flag enum redefines ==== * DRAG_DROP_NONE = enums.ImGuiDragDropFlags_None # <<<<<<<<<<<<<< * DRAG_DROP_SOURCE_NO_PREVIEW_TOOLTIP = enums.ImGuiDragDropFlags_SourceNoPreviewTooltip * DRAG_DROP_SOURCE_NO_DISABLE_HOVER = enums.ImGuiDragDropFlags_SourceNoDisableHover */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 367, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":368 * # === Drag Drop flag enum redefines ==== * DRAG_DROP_NONE = enums.ImGuiDragDropFlags_None * DRAG_DROP_SOURCE_NO_PREVIEW_TOOLTIP = enums.ImGuiDragDropFlags_SourceNoPreviewTooltip # <<<<<<<<<<<<<< * DRAG_DROP_SOURCE_NO_DISABLE_HOVER = enums.ImGuiDragDropFlags_SourceNoDisableHover * DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN_OTHERS = enums.ImGuiDragDropFlags_SourceNoHoldToOpenOthers */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_SourceNoPreviewTooltip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_SOURCE_NO_PREVIEW_TOOL, __pyx_t_7) < 0) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":369 * DRAG_DROP_NONE = enums.ImGuiDragDropFlags_None * DRAG_DROP_SOURCE_NO_PREVIEW_TOOLTIP = enums.ImGuiDragDropFlags_SourceNoPreviewTooltip * DRAG_DROP_SOURCE_NO_DISABLE_HOVER = enums.ImGuiDragDropFlags_SourceNoDisableHover # <<<<<<<<<<<<<< * DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN_OTHERS = enums.ImGuiDragDropFlags_SourceNoHoldToOpenOthers * DRAG_DROP_SOURCE_ALLOW_NULL_ID = enums.ImGuiDragDropFlags_SourceAllowNullID */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_SourceNoDisableHover); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_SOURCE_NO_DISABLE_HOVE, __pyx_t_7) < 0) __PYX_ERR(0, 369, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":370 * DRAG_DROP_SOURCE_NO_PREVIEW_TOOLTIP = enums.ImGuiDragDropFlags_SourceNoPreviewTooltip * DRAG_DROP_SOURCE_NO_DISABLE_HOVER = enums.ImGuiDragDropFlags_SourceNoDisableHover * DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN_OTHERS = enums.ImGuiDragDropFlags_SourceNoHoldToOpenOthers # <<<<<<<<<<<<<< * DRAG_DROP_SOURCE_ALLOW_NULL_ID = enums.ImGuiDragDropFlags_SourceAllowNullID * DRAG_DROP_SOURCE_EXTERN = enums.ImGuiDragDropFlags_SourceExtern */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_SourceNoHoldToOpenOthers); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN, __pyx_t_7) < 0) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":371 * DRAG_DROP_SOURCE_NO_DISABLE_HOVER = enums.ImGuiDragDropFlags_SourceNoDisableHover * DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN_OTHERS = enums.ImGuiDragDropFlags_SourceNoHoldToOpenOthers * DRAG_DROP_SOURCE_ALLOW_NULL_ID = enums.ImGuiDragDropFlags_SourceAllowNullID # <<<<<<<<<<<<<< * DRAG_DROP_SOURCE_EXTERN = enums.ImGuiDragDropFlags_SourceExtern * DRAG_DROP_SOURCE_AUTO_EXPIRE_PAYLOAD = enums.ImGuiDragDropFlags_SourceAutoExpirePayload */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_SourceAllowNullID); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_SOURCE_ALLOW_NULL_ID, __pyx_t_7) < 0) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":372 * DRAG_DROP_SOURCE_NO_HOLD_TO_OPEN_OTHERS = enums.ImGuiDragDropFlags_SourceNoHoldToOpenOthers * DRAG_DROP_SOURCE_ALLOW_NULL_ID = enums.ImGuiDragDropFlags_SourceAllowNullID * DRAG_DROP_SOURCE_EXTERN = enums.ImGuiDragDropFlags_SourceExtern # <<<<<<<<<<<<<< * DRAG_DROP_SOURCE_AUTO_EXPIRE_PAYLOAD = enums.ImGuiDragDropFlags_SourceAutoExpirePayload * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_SourceExtern); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_SOURCE_EXTERN, __pyx_t_7) < 0) __PYX_ERR(0, 372, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":373 * DRAG_DROP_SOURCE_ALLOW_NULL_ID = enums.ImGuiDragDropFlags_SourceAllowNullID * DRAG_DROP_SOURCE_EXTERN = enums.ImGuiDragDropFlags_SourceExtern * DRAG_DROP_SOURCE_AUTO_EXPIRE_PAYLOAD = enums.ImGuiDragDropFlags_SourceAutoExpirePayload # <<<<<<<<<<<<<< * * # === Accept Drag Drop Payload flag enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_SourceAutoExpirePayload); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_SOURCE_AUTO_EXPIRE_PAY, __pyx_t_7) < 0) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":376 * * # === Accept Drag Drop Payload flag enum redefines ==== * DRAG_DROP_ACCEPT_BEFORE_DELIVERY = enums.ImGuiDragDropFlags_AcceptBeforeDelivery # <<<<<<<<<<<<<< * DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT_RECT = enums.ImGuiDragDropFlags_AcceptNoDrawDefaultRect * DRAG_DROP_ACCEPT_NO_PREVIEW_TOOLTIP = enums.ImGuiDragDropFlags_AcceptNoPreviewTooltip */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_AcceptBeforeDelivery); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_ACCEPT_BEFORE_DELIVERY, __pyx_t_7) < 0) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":377 * # === Accept Drag Drop Payload flag enum redefines ==== * DRAG_DROP_ACCEPT_BEFORE_DELIVERY = enums.ImGuiDragDropFlags_AcceptBeforeDelivery * DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT_RECT = enums.ImGuiDragDropFlags_AcceptNoDrawDefaultRect # <<<<<<<<<<<<<< * DRAG_DROP_ACCEPT_NO_PREVIEW_TOOLTIP = enums.ImGuiDragDropFlags_AcceptNoPreviewTooltip * DRAG_DROP_ACCEPT_PEEK_ONLY = enums.ImGuiDragDropFlags_AcceptPeekOnly */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_AcceptNoDrawDefaultRect); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT, __pyx_t_7) < 0) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":378 * DRAG_DROP_ACCEPT_BEFORE_DELIVERY = enums.ImGuiDragDropFlags_AcceptBeforeDelivery * DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT_RECT = enums.ImGuiDragDropFlags_AcceptNoDrawDefaultRect * DRAG_DROP_ACCEPT_NO_PREVIEW_TOOLTIP = enums.ImGuiDragDropFlags_AcceptNoPreviewTooltip # <<<<<<<<<<<<<< * DRAG_DROP_ACCEPT_PEEK_ONLY = enums.ImGuiDragDropFlags_AcceptPeekOnly * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_AcceptNoPreviewTooltip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_ACCEPT_NO_PREVIEW_TOOL, __pyx_t_7) < 0) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":379 * DRAG_DROP_ACCEPT_NO_DRAW_DEFAULT_RECT = enums.ImGuiDragDropFlags_AcceptNoDrawDefaultRect * DRAG_DROP_ACCEPT_NO_PREVIEW_TOOLTIP = enums.ImGuiDragDropFlags_AcceptNoPreviewTooltip * DRAG_DROP_ACCEPT_PEEK_ONLY = enums.ImGuiDragDropFlags_AcceptPeekOnly # <<<<<<<<<<<<<< * * # === Cardinal Direction enum redefines ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_AcceptPeekOnly); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAG_DROP_ACCEPT_PEEK_ONLY, __pyx_t_7) < 0) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":382 * * # === Cardinal Direction enum redefines ==== * DIRECTION_NONE = enums.ImGuiDir_None # <<<<<<<<<<<<<< * DIRECTION_LEFT = enums.ImGuiDir_Left * DIRECTION_RIGHT = enums.ImGuiDir_Right */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDir_(ImGuiDir_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DIRECTION_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":383 * # === Cardinal Direction enum redefines ==== * DIRECTION_NONE = enums.ImGuiDir_None * DIRECTION_LEFT = enums.ImGuiDir_Left # <<<<<<<<<<<<<< * DIRECTION_RIGHT = enums.ImGuiDir_Right * DIRECTION_UP = enums.ImGuiDir_Up */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDir_(ImGuiDir_Left); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DIRECTION_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":384 * DIRECTION_NONE = enums.ImGuiDir_None * DIRECTION_LEFT = enums.ImGuiDir_Left * DIRECTION_RIGHT = enums.ImGuiDir_Right # <<<<<<<<<<<<<< * DIRECTION_UP = enums.ImGuiDir_Up * DIRECTION_DOWN = enums.ImGuiDir_Down */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDir_(ImGuiDir_Right); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DIRECTION_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 384, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":385 * DIRECTION_LEFT = enums.ImGuiDir_Left * DIRECTION_RIGHT = enums.ImGuiDir_Right * DIRECTION_UP = enums.ImGuiDir_Up # <<<<<<<<<<<<<< * DIRECTION_DOWN = enums.ImGuiDir_Down * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDir_(ImGuiDir_Up); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DIRECTION_UP, __pyx_t_7) < 0) __PYX_ERR(0, 385, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":386 * DIRECTION_RIGHT = enums.ImGuiDir_Right * DIRECTION_UP = enums.ImGuiDir_Up * DIRECTION_DOWN = enums.ImGuiDir_Down # <<<<<<<<<<<<<< * * # === Sorting Direction === */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDir_(ImGuiDir_Down); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DIRECTION_DOWN, __pyx_t_7) < 0) __PYX_ERR(0, 386, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":389 * * # === Sorting Direction === * SORT_DIRECTION_NONE = enums.ImGuiSortDirection_None # <<<<<<<<<<<<<< * SORT_DIRECTION_ASCENDING = enums.ImGuiSortDirection_Ascending * SORT_DIRECTION_DESCENDING = enums.ImGuiSortDirection_Descending */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSortDirection_(ImGuiSortDirection_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SORT_DIRECTION_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":390 * # === Sorting Direction === * SORT_DIRECTION_NONE = enums.ImGuiSortDirection_None * SORT_DIRECTION_ASCENDING = enums.ImGuiSortDirection_Ascending # <<<<<<<<<<<<<< * SORT_DIRECTION_DESCENDING = enums.ImGuiSortDirection_Descending * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSortDirection_(ImGuiSortDirection_Ascending); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SORT_DIRECTION_ASCENDING, __pyx_t_7) < 0) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":391 * SORT_DIRECTION_NONE = enums.ImGuiSortDirection_None * SORT_DIRECTION_ASCENDING = enums.ImGuiSortDirection_Ascending * SORT_DIRECTION_DESCENDING = enums.ImGuiSortDirection_Descending # <<<<<<<<<<<<<< * * # ==== Mouse Cursors ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSortDirection_(ImGuiSortDirection_Descending); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SORT_DIRECTION_DESCENDING, __pyx_t_7) < 0) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":394 * * # ==== Mouse Cursors ==== * MOUSE_CURSOR_NONE = enums.ImGuiMouseCursor_None # <<<<<<<<<<<<<< * MOUSE_CURSOR_ARROW = enums.ImGuiMouseCursor_Arrow * MOUSE_CURSOR_TEXT_INPUT = enums.ImGuiMouseCursor_TextInput */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":395 * # ==== Mouse Cursors ==== * MOUSE_CURSOR_NONE = enums.ImGuiMouseCursor_None * MOUSE_CURSOR_ARROW = enums.ImGuiMouseCursor_Arrow # <<<<<<<<<<<<<< * MOUSE_CURSOR_TEXT_INPUT = enums.ImGuiMouseCursor_TextInput * MOUSE_CURSOR_RESIZE_ALL = enums.ImGuiMouseCursor_ResizeAll */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_Arrow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_ARROW, __pyx_t_7) < 0) __PYX_ERR(0, 395, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":396 * MOUSE_CURSOR_NONE = enums.ImGuiMouseCursor_None * MOUSE_CURSOR_ARROW = enums.ImGuiMouseCursor_Arrow * MOUSE_CURSOR_TEXT_INPUT = enums.ImGuiMouseCursor_TextInput # <<<<<<<<<<<<<< * MOUSE_CURSOR_RESIZE_ALL = enums.ImGuiMouseCursor_ResizeAll * MOUSE_CURSOR_RESIZE_NS = enums.ImGuiMouseCursor_ResizeNS */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_TextInput); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_TEXT_INPUT, __pyx_t_7) < 0) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":397 * MOUSE_CURSOR_ARROW = enums.ImGuiMouseCursor_Arrow * MOUSE_CURSOR_TEXT_INPUT = enums.ImGuiMouseCursor_TextInput * MOUSE_CURSOR_RESIZE_ALL = enums.ImGuiMouseCursor_ResizeAll # <<<<<<<<<<<<<< * MOUSE_CURSOR_RESIZE_NS = enums.ImGuiMouseCursor_ResizeNS * MOUSE_CURSOR_RESIZE_EW = enums.ImGuiMouseCursor_ResizeEW */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_ResizeAll); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_RESIZE_ALL, __pyx_t_7) < 0) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":398 * MOUSE_CURSOR_TEXT_INPUT = enums.ImGuiMouseCursor_TextInput * MOUSE_CURSOR_RESIZE_ALL = enums.ImGuiMouseCursor_ResizeAll * MOUSE_CURSOR_RESIZE_NS = enums.ImGuiMouseCursor_ResizeNS # <<<<<<<<<<<<<< * MOUSE_CURSOR_RESIZE_EW = enums.ImGuiMouseCursor_ResizeEW * MOUSE_CURSOR_RESIZE_NESW = enums.ImGuiMouseCursor_ResizeNESW */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_ResizeNS); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_RESIZE_NS, __pyx_t_7) < 0) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":399 * MOUSE_CURSOR_RESIZE_ALL = enums.ImGuiMouseCursor_ResizeAll * MOUSE_CURSOR_RESIZE_NS = enums.ImGuiMouseCursor_ResizeNS * MOUSE_CURSOR_RESIZE_EW = enums.ImGuiMouseCursor_ResizeEW # <<<<<<<<<<<<<< * MOUSE_CURSOR_RESIZE_NESW = enums.ImGuiMouseCursor_ResizeNESW * MOUSE_CURSOR_RESIZE_NWSE = enums.ImGuiMouseCursor_ResizeNWSE */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_ResizeEW); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_RESIZE_EW, __pyx_t_7) < 0) __PYX_ERR(0, 399, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":400 * MOUSE_CURSOR_RESIZE_NS = enums.ImGuiMouseCursor_ResizeNS * MOUSE_CURSOR_RESIZE_EW = enums.ImGuiMouseCursor_ResizeEW * MOUSE_CURSOR_RESIZE_NESW = enums.ImGuiMouseCursor_ResizeNESW # <<<<<<<<<<<<<< * MOUSE_CURSOR_RESIZE_NWSE = enums.ImGuiMouseCursor_ResizeNWSE * MOUSE_CURSOR_HAND = enums.ImGuiMouseCursor_Hand */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_ResizeNESW); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_RESIZE_NESW, __pyx_t_7) < 0) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":401 * MOUSE_CURSOR_RESIZE_EW = enums.ImGuiMouseCursor_ResizeEW * MOUSE_CURSOR_RESIZE_NESW = enums.ImGuiMouseCursor_ResizeNESW * MOUSE_CURSOR_RESIZE_NWSE = enums.ImGuiMouseCursor_ResizeNWSE # <<<<<<<<<<<<<< * MOUSE_CURSOR_HAND = enums.ImGuiMouseCursor_Hand * MOUSE_CURSOR_NOT_ALLOWED = enums.ImGuiMouseCursor_NotAllowed */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_ResizeNWSE); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_RESIZE_NWSE, __pyx_t_7) < 0) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":402 * MOUSE_CURSOR_RESIZE_NESW = enums.ImGuiMouseCursor_ResizeNESW * MOUSE_CURSOR_RESIZE_NWSE = enums.ImGuiMouseCursor_ResizeNWSE * MOUSE_CURSOR_HAND = enums.ImGuiMouseCursor_Hand # <<<<<<<<<<<<<< * MOUSE_CURSOR_NOT_ALLOWED = enums.ImGuiMouseCursor_NotAllowed * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_Hand); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_HAND, __pyx_t_7) < 0) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":403 * MOUSE_CURSOR_RESIZE_NWSE = enums.ImGuiMouseCursor_ResizeNWSE * MOUSE_CURSOR_HAND = enums.ImGuiMouseCursor_Hand * MOUSE_CURSOR_NOT_ALLOWED = enums.ImGuiMouseCursor_NotAllowed # <<<<<<<<<<<<<< * * # ==== Color identifiers for styling ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_NotAllowed); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_CURSOR_NOT_ALLOWED, __pyx_t_7) < 0) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":406 * * # ==== Color identifiers for styling ==== * COLOR_TEXT = enums.ImGuiCol_Text # <<<<<<<<<<<<<< * COLOR_TEXT_DISABLED = enums.ImGuiCol_TextDisabled * COLOR_WINDOW_BACKGROUND = enums.ImGuiCol_WindowBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_Text); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TEXT, __pyx_t_7) < 0) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":407 * # ==== Color identifiers for styling ==== * COLOR_TEXT = enums.ImGuiCol_Text * COLOR_TEXT_DISABLED = enums.ImGuiCol_TextDisabled # <<<<<<<<<<<<<< * COLOR_WINDOW_BACKGROUND = enums.ImGuiCol_WindowBg * COLOR_CHILD_BACKGROUND = enums.ImGuiCol_ChildBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TextDisabled); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TEXT_DISABLED, __pyx_t_7) < 0) __PYX_ERR(0, 407, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":408 * COLOR_TEXT = enums.ImGuiCol_Text * COLOR_TEXT_DISABLED = enums.ImGuiCol_TextDisabled * COLOR_WINDOW_BACKGROUND = enums.ImGuiCol_WindowBg # <<<<<<<<<<<<<< * COLOR_CHILD_BACKGROUND = enums.ImGuiCol_ChildBg * COLOR_POPUP_BACKGROUND = enums.ImGuiCol_PopupBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_WindowBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_WINDOW_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":409 * COLOR_TEXT_DISABLED = enums.ImGuiCol_TextDisabled * COLOR_WINDOW_BACKGROUND = enums.ImGuiCol_WindowBg * COLOR_CHILD_BACKGROUND = enums.ImGuiCol_ChildBg # <<<<<<<<<<<<<< * COLOR_POPUP_BACKGROUND = enums.ImGuiCol_PopupBg * COLOR_BORDER = enums.ImGuiCol_Border */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ChildBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_CHILD_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":410 * COLOR_WINDOW_BACKGROUND = enums.ImGuiCol_WindowBg * COLOR_CHILD_BACKGROUND = enums.ImGuiCol_ChildBg * COLOR_POPUP_BACKGROUND = enums.ImGuiCol_PopupBg # <<<<<<<<<<<<<< * COLOR_BORDER = enums.ImGuiCol_Border * COLOR_BORDER_SHADOW = enums.ImGuiCol_BorderShadow */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_PopupBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_POPUP_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":411 * COLOR_CHILD_BACKGROUND = enums.ImGuiCol_ChildBg * COLOR_POPUP_BACKGROUND = enums.ImGuiCol_PopupBg * COLOR_BORDER = enums.ImGuiCol_Border # <<<<<<<<<<<<<< * COLOR_BORDER_SHADOW = enums.ImGuiCol_BorderShadow * COLOR_FRAME_BACKGROUND = enums.ImGuiCol_FrameBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_Border); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_BORDER, __pyx_t_7) < 0) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":412 * COLOR_POPUP_BACKGROUND = enums.ImGuiCol_PopupBg * COLOR_BORDER = enums.ImGuiCol_Border * COLOR_BORDER_SHADOW = enums.ImGuiCol_BorderShadow # <<<<<<<<<<<<<< * COLOR_FRAME_BACKGROUND = enums.ImGuiCol_FrameBg * COLOR_FRAME_BACKGROUND_HOVERED = enums.ImGuiCol_FrameBgHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_BorderShadow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_BORDER_SHADOW, __pyx_t_7) < 0) __PYX_ERR(0, 412, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":413 * COLOR_BORDER = enums.ImGuiCol_Border * COLOR_BORDER_SHADOW = enums.ImGuiCol_BorderShadow * COLOR_FRAME_BACKGROUND = enums.ImGuiCol_FrameBg # <<<<<<<<<<<<<< * COLOR_FRAME_BACKGROUND_HOVERED = enums.ImGuiCol_FrameBgHovered * COLOR_FRAME_BACKGROUND_ACTIVE = enums.ImGuiCol_FrameBgActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_FrameBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_FRAME_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 413, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":414 * COLOR_BORDER_SHADOW = enums.ImGuiCol_BorderShadow * COLOR_FRAME_BACKGROUND = enums.ImGuiCol_FrameBg * COLOR_FRAME_BACKGROUND_HOVERED = enums.ImGuiCol_FrameBgHovered # <<<<<<<<<<<<<< * COLOR_FRAME_BACKGROUND_ACTIVE = enums.ImGuiCol_FrameBgActive * COLOR_TITLE_BACKGROUND = enums.ImGuiCol_TitleBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_FrameBgHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_FRAME_BACKGROUND_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":415 * COLOR_FRAME_BACKGROUND = enums.ImGuiCol_FrameBg * COLOR_FRAME_BACKGROUND_HOVERED = enums.ImGuiCol_FrameBgHovered * COLOR_FRAME_BACKGROUND_ACTIVE = enums.ImGuiCol_FrameBgActive # <<<<<<<<<<<<<< * COLOR_TITLE_BACKGROUND = enums.ImGuiCol_TitleBg * COLOR_TITLE_BACKGROUND_ACTIVE = enums.ImGuiCol_TitleBgActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_FrameBgActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_FRAME_BACKGROUND_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 415, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":416 * COLOR_FRAME_BACKGROUND_HOVERED = enums.ImGuiCol_FrameBgHovered * COLOR_FRAME_BACKGROUND_ACTIVE = enums.ImGuiCol_FrameBgActive * COLOR_TITLE_BACKGROUND = enums.ImGuiCol_TitleBg # <<<<<<<<<<<<<< * COLOR_TITLE_BACKGROUND_ACTIVE = enums.ImGuiCol_TitleBgActive * COLOR_TITLE_BACKGROUND_COLLAPSED = enums.ImGuiCol_TitleBgCollapsed */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TitleBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TITLE_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 416, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":417 * COLOR_FRAME_BACKGROUND_ACTIVE = enums.ImGuiCol_FrameBgActive * COLOR_TITLE_BACKGROUND = enums.ImGuiCol_TitleBg * COLOR_TITLE_BACKGROUND_ACTIVE = enums.ImGuiCol_TitleBgActive # <<<<<<<<<<<<<< * COLOR_TITLE_BACKGROUND_COLLAPSED = enums.ImGuiCol_TitleBgCollapsed * COLOR_MENUBAR_BACKGROUND = enums.ImGuiCol_MenuBarBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TitleBgActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TITLE_BACKGROUND_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":418 * COLOR_TITLE_BACKGROUND = enums.ImGuiCol_TitleBg * COLOR_TITLE_BACKGROUND_ACTIVE = enums.ImGuiCol_TitleBgActive * COLOR_TITLE_BACKGROUND_COLLAPSED = enums.ImGuiCol_TitleBgCollapsed # <<<<<<<<<<<<<< * COLOR_MENUBAR_BACKGROUND = enums.ImGuiCol_MenuBarBg * COLOR_SCROLLBAR_BACKGROUND = enums.ImGuiCol_ScrollbarBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TitleBgCollapsed); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TITLE_BACKGROUND_COLLAPSED, __pyx_t_7) < 0) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":419 * COLOR_TITLE_BACKGROUND_ACTIVE = enums.ImGuiCol_TitleBgActive * COLOR_TITLE_BACKGROUND_COLLAPSED = enums.ImGuiCol_TitleBgCollapsed * COLOR_MENUBAR_BACKGROUND = enums.ImGuiCol_MenuBarBg # <<<<<<<<<<<<<< * COLOR_SCROLLBAR_BACKGROUND = enums.ImGuiCol_ScrollbarBg * COLOR_SCROLLBAR_GRAB = enums.ImGuiCol_ScrollbarGrab */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_MenuBarBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_MENUBAR_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 419, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":420 * COLOR_TITLE_BACKGROUND_COLLAPSED = enums.ImGuiCol_TitleBgCollapsed * COLOR_MENUBAR_BACKGROUND = enums.ImGuiCol_MenuBarBg * COLOR_SCROLLBAR_BACKGROUND = enums.ImGuiCol_ScrollbarBg # <<<<<<<<<<<<<< * COLOR_SCROLLBAR_GRAB = enums.ImGuiCol_ScrollbarGrab * COLOR_SCROLLBAR_GRAB_HOVERED = enums.ImGuiCol_ScrollbarGrabHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ScrollbarBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SCROLLBAR_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":421 * COLOR_MENUBAR_BACKGROUND = enums.ImGuiCol_MenuBarBg * COLOR_SCROLLBAR_BACKGROUND = enums.ImGuiCol_ScrollbarBg * COLOR_SCROLLBAR_GRAB = enums.ImGuiCol_ScrollbarGrab # <<<<<<<<<<<<<< * COLOR_SCROLLBAR_GRAB_HOVERED = enums.ImGuiCol_ScrollbarGrabHovered * COLOR_SCROLLBAR_GRAB_ACTIVE = enums.ImGuiCol_ScrollbarGrabActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ScrollbarGrab); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SCROLLBAR_GRAB, __pyx_t_7) < 0) __PYX_ERR(0, 421, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":422 * COLOR_SCROLLBAR_BACKGROUND = enums.ImGuiCol_ScrollbarBg * COLOR_SCROLLBAR_GRAB = enums.ImGuiCol_ScrollbarGrab * COLOR_SCROLLBAR_GRAB_HOVERED = enums.ImGuiCol_ScrollbarGrabHovered # <<<<<<<<<<<<<< * COLOR_SCROLLBAR_GRAB_ACTIVE = enums.ImGuiCol_ScrollbarGrabActive * COLOR_CHECK_MARK = enums.ImGuiCol_CheckMark */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ScrollbarGrabHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SCROLLBAR_GRAB_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 422, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":423 * COLOR_SCROLLBAR_GRAB = enums.ImGuiCol_ScrollbarGrab * COLOR_SCROLLBAR_GRAB_HOVERED = enums.ImGuiCol_ScrollbarGrabHovered * COLOR_SCROLLBAR_GRAB_ACTIVE = enums.ImGuiCol_ScrollbarGrabActive # <<<<<<<<<<<<<< * COLOR_CHECK_MARK = enums.ImGuiCol_CheckMark * COLOR_SLIDER_GRAB = enums.ImGuiCol_SliderGrab */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ScrollbarGrabActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SCROLLBAR_GRAB_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":424 * COLOR_SCROLLBAR_GRAB_HOVERED = enums.ImGuiCol_ScrollbarGrabHovered * COLOR_SCROLLBAR_GRAB_ACTIVE = enums.ImGuiCol_ScrollbarGrabActive * COLOR_CHECK_MARK = enums.ImGuiCol_CheckMark # <<<<<<<<<<<<<< * COLOR_SLIDER_GRAB = enums.ImGuiCol_SliderGrab * COLOR_SLIDER_GRAB_ACTIVE = enums.ImGuiCol_SliderGrabActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_CheckMark); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_CHECK_MARK, __pyx_t_7) < 0) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":425 * COLOR_SCROLLBAR_GRAB_ACTIVE = enums.ImGuiCol_ScrollbarGrabActive * COLOR_CHECK_MARK = enums.ImGuiCol_CheckMark * COLOR_SLIDER_GRAB = enums.ImGuiCol_SliderGrab # <<<<<<<<<<<<<< * COLOR_SLIDER_GRAB_ACTIVE = enums.ImGuiCol_SliderGrabActive * COLOR_BUTTON = enums.ImGuiCol_Button */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_SliderGrab); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SLIDER_GRAB, __pyx_t_7) < 0) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":426 * COLOR_CHECK_MARK = enums.ImGuiCol_CheckMark * COLOR_SLIDER_GRAB = enums.ImGuiCol_SliderGrab * COLOR_SLIDER_GRAB_ACTIVE = enums.ImGuiCol_SliderGrabActive # <<<<<<<<<<<<<< * COLOR_BUTTON = enums.ImGuiCol_Button * COLOR_BUTTON_HOVERED = enums.ImGuiCol_ButtonHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_SliderGrabActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SLIDER_GRAB_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":427 * COLOR_SLIDER_GRAB = enums.ImGuiCol_SliderGrab * COLOR_SLIDER_GRAB_ACTIVE = enums.ImGuiCol_SliderGrabActive * COLOR_BUTTON = enums.ImGuiCol_Button # <<<<<<<<<<<<<< * COLOR_BUTTON_HOVERED = enums.ImGuiCol_ButtonHovered * COLOR_BUTTON_ACTIVE = enums.ImGuiCol_ButtonActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_Button); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_BUTTON, __pyx_t_7) < 0) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":428 * COLOR_SLIDER_GRAB_ACTIVE = enums.ImGuiCol_SliderGrabActive * COLOR_BUTTON = enums.ImGuiCol_Button * COLOR_BUTTON_HOVERED = enums.ImGuiCol_ButtonHovered # <<<<<<<<<<<<<< * COLOR_BUTTON_ACTIVE = enums.ImGuiCol_ButtonActive * COLOR_HEADER = enums.ImGuiCol_Header */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ButtonHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_BUTTON_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":429 * COLOR_BUTTON = enums.ImGuiCol_Button * COLOR_BUTTON_HOVERED = enums.ImGuiCol_ButtonHovered * COLOR_BUTTON_ACTIVE = enums.ImGuiCol_ButtonActive # <<<<<<<<<<<<<< * COLOR_HEADER = enums.ImGuiCol_Header * COLOR_HEADER_HOVERED = enums.ImGuiCol_HeaderHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ButtonActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_BUTTON_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":430 * COLOR_BUTTON_HOVERED = enums.ImGuiCol_ButtonHovered * COLOR_BUTTON_ACTIVE = enums.ImGuiCol_ButtonActive * COLOR_HEADER = enums.ImGuiCol_Header # <<<<<<<<<<<<<< * COLOR_HEADER_HOVERED = enums.ImGuiCol_HeaderHovered * COLOR_HEADER_ACTIVE = enums.ImGuiCol_HeaderActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_Header); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_HEADER, __pyx_t_7) < 0) __PYX_ERR(0, 430, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":431 * COLOR_BUTTON_ACTIVE = enums.ImGuiCol_ButtonActive * COLOR_HEADER = enums.ImGuiCol_Header * COLOR_HEADER_HOVERED = enums.ImGuiCol_HeaderHovered # <<<<<<<<<<<<<< * COLOR_HEADER_ACTIVE = enums.ImGuiCol_HeaderActive * COLOR_SEPARATOR = enums.ImGuiCol_Separator */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_HeaderHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_HEADER_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 431, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":432 * COLOR_HEADER = enums.ImGuiCol_Header * COLOR_HEADER_HOVERED = enums.ImGuiCol_HeaderHovered * COLOR_HEADER_ACTIVE = enums.ImGuiCol_HeaderActive # <<<<<<<<<<<<<< * COLOR_SEPARATOR = enums.ImGuiCol_Separator * COLOR_SEPARATOR_HOVERED = enums.ImGuiCol_SeparatorHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_HeaderActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_HEADER_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 432, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":433 * COLOR_HEADER_HOVERED = enums.ImGuiCol_HeaderHovered * COLOR_HEADER_ACTIVE = enums.ImGuiCol_HeaderActive * COLOR_SEPARATOR = enums.ImGuiCol_Separator # <<<<<<<<<<<<<< * COLOR_SEPARATOR_HOVERED = enums.ImGuiCol_SeparatorHovered * COLOR_SEPARATOR_ACTIVE = enums.ImGuiCol_SeparatorActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_Separator); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SEPARATOR, __pyx_t_7) < 0) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":434 * COLOR_HEADER_ACTIVE = enums.ImGuiCol_HeaderActive * COLOR_SEPARATOR = enums.ImGuiCol_Separator * COLOR_SEPARATOR_HOVERED = enums.ImGuiCol_SeparatorHovered # <<<<<<<<<<<<<< * COLOR_SEPARATOR_ACTIVE = enums.ImGuiCol_SeparatorActive * COLOR_RESIZE_GRIP = enums.ImGuiCol_ResizeGrip */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_SeparatorHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SEPARATOR_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 434, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":435 * COLOR_SEPARATOR = enums.ImGuiCol_Separator * COLOR_SEPARATOR_HOVERED = enums.ImGuiCol_SeparatorHovered * COLOR_SEPARATOR_ACTIVE = enums.ImGuiCol_SeparatorActive # <<<<<<<<<<<<<< * COLOR_RESIZE_GRIP = enums.ImGuiCol_ResizeGrip * COLOR_RESIZE_GRIP_HOVERED = enums.ImGuiCol_ResizeGripHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_SeparatorActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_SEPARATOR_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 435, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":436 * COLOR_SEPARATOR_HOVERED = enums.ImGuiCol_SeparatorHovered * COLOR_SEPARATOR_ACTIVE = enums.ImGuiCol_SeparatorActive * COLOR_RESIZE_GRIP = enums.ImGuiCol_ResizeGrip # <<<<<<<<<<<<<< * COLOR_RESIZE_GRIP_HOVERED = enums.ImGuiCol_ResizeGripHovered * COLOR_RESIZE_GRIP_ACTIVE = enums.ImGuiCol_ResizeGripActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ResizeGrip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_RESIZE_GRIP, __pyx_t_7) < 0) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":437 * COLOR_SEPARATOR_ACTIVE = enums.ImGuiCol_SeparatorActive * COLOR_RESIZE_GRIP = enums.ImGuiCol_ResizeGrip * COLOR_RESIZE_GRIP_HOVERED = enums.ImGuiCol_ResizeGripHovered # <<<<<<<<<<<<<< * COLOR_RESIZE_GRIP_ACTIVE = enums.ImGuiCol_ResizeGripActive * COLOR_TAB = enums.ImGuiCol_Tab */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ResizeGripHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_RESIZE_GRIP_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 437, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":438 * COLOR_RESIZE_GRIP = enums.ImGuiCol_ResizeGrip * COLOR_RESIZE_GRIP_HOVERED = enums.ImGuiCol_ResizeGripHovered * COLOR_RESIZE_GRIP_ACTIVE = enums.ImGuiCol_ResizeGripActive # <<<<<<<<<<<<<< * COLOR_TAB = enums.ImGuiCol_Tab * COLOR_TAB_HOVERED = enums.ImGuiCol_TabHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ResizeGripActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_RESIZE_GRIP_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 438, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":439 * COLOR_RESIZE_GRIP_HOVERED = enums.ImGuiCol_ResizeGripHovered * COLOR_RESIZE_GRIP_ACTIVE = enums.ImGuiCol_ResizeGripActive * COLOR_TAB = enums.ImGuiCol_Tab # <<<<<<<<<<<<<< * COLOR_TAB_HOVERED = enums.ImGuiCol_TabHovered * COLOR_TAB_ACTIVE = enums.ImGuiCol_TabActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_Tab); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TAB, __pyx_t_7) < 0) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":440 * COLOR_RESIZE_GRIP_ACTIVE = enums.ImGuiCol_ResizeGripActive * COLOR_TAB = enums.ImGuiCol_Tab * COLOR_TAB_HOVERED = enums.ImGuiCol_TabHovered # <<<<<<<<<<<<<< * COLOR_TAB_ACTIVE = enums.ImGuiCol_TabActive * COLOR_TAB_UNFOCUSED = enums.ImGuiCol_TabUnfocused */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TabHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TAB_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":441 * COLOR_TAB = enums.ImGuiCol_Tab * COLOR_TAB_HOVERED = enums.ImGuiCol_TabHovered * COLOR_TAB_ACTIVE = enums.ImGuiCol_TabActive # <<<<<<<<<<<<<< * COLOR_TAB_UNFOCUSED = enums.ImGuiCol_TabUnfocused * COLOR_TAB_UNFOCUSED_ACTIVE = enums.ImGuiCol_TabUnfocusedActive */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TabActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TAB_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":442 * COLOR_TAB_HOVERED = enums.ImGuiCol_TabHovered * COLOR_TAB_ACTIVE = enums.ImGuiCol_TabActive * COLOR_TAB_UNFOCUSED = enums.ImGuiCol_TabUnfocused # <<<<<<<<<<<<<< * COLOR_TAB_UNFOCUSED_ACTIVE = enums.ImGuiCol_TabUnfocusedActive * COLOR_PLOT_LINES = enums.ImGuiCol_PlotLines */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TabUnfocused); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TAB_UNFOCUSED, __pyx_t_7) < 0) __PYX_ERR(0, 442, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":443 * COLOR_TAB_ACTIVE = enums.ImGuiCol_TabActive * COLOR_TAB_UNFOCUSED = enums.ImGuiCol_TabUnfocused * COLOR_TAB_UNFOCUSED_ACTIVE = enums.ImGuiCol_TabUnfocusedActive # <<<<<<<<<<<<<< * COLOR_PLOT_LINES = enums.ImGuiCol_PlotLines * COLOR_PLOT_LINES_HOVERED = enums.ImGuiCol_PlotLinesHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TabUnfocusedActive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TAB_UNFOCUSED_ACTIVE, __pyx_t_7) < 0) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":444 * COLOR_TAB_UNFOCUSED = enums.ImGuiCol_TabUnfocused * COLOR_TAB_UNFOCUSED_ACTIVE = enums.ImGuiCol_TabUnfocusedActive * COLOR_PLOT_LINES = enums.ImGuiCol_PlotLines # <<<<<<<<<<<<<< * COLOR_PLOT_LINES_HOVERED = enums.ImGuiCol_PlotLinesHovered * COLOR_PLOT_HISTOGRAM = enums.ImGuiCol_PlotHistogram */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_PlotLines); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_PLOT_LINES, __pyx_t_7) < 0) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":445 * COLOR_TAB_UNFOCUSED_ACTIVE = enums.ImGuiCol_TabUnfocusedActive * COLOR_PLOT_LINES = enums.ImGuiCol_PlotLines * COLOR_PLOT_LINES_HOVERED = enums.ImGuiCol_PlotLinesHovered # <<<<<<<<<<<<<< * COLOR_PLOT_HISTOGRAM = enums.ImGuiCol_PlotHistogram * COLOR_PLOT_HISTOGRAM_HOVERED = enums.ImGuiCol_PlotHistogramHovered */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_PlotLinesHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_PLOT_LINES_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 445, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":446 * COLOR_PLOT_LINES = enums.ImGuiCol_PlotLines * COLOR_PLOT_LINES_HOVERED = enums.ImGuiCol_PlotLinesHovered * COLOR_PLOT_HISTOGRAM = enums.ImGuiCol_PlotHistogram # <<<<<<<<<<<<<< * COLOR_PLOT_HISTOGRAM_HOVERED = enums.ImGuiCol_PlotHistogramHovered * COLOR_TABLE_HEADER_BACKGROUND = enums.ImGuiCol_TableHeaderBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_PlotHistogram); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_PLOT_HISTOGRAM, __pyx_t_7) < 0) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":447 * COLOR_PLOT_LINES_HOVERED = enums.ImGuiCol_PlotLinesHovered * COLOR_PLOT_HISTOGRAM = enums.ImGuiCol_PlotHistogram * COLOR_PLOT_HISTOGRAM_HOVERED = enums.ImGuiCol_PlotHistogramHovered # <<<<<<<<<<<<<< * COLOR_TABLE_HEADER_BACKGROUND = enums.ImGuiCol_TableHeaderBg * COLOR_TABLE_BORDER_STRONG = enums.ImGuiCol_TableBorderStrong */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_PlotHistogramHovered); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_PLOT_HISTOGRAM_HOVERED, __pyx_t_7) < 0) __PYX_ERR(0, 447, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":448 * COLOR_PLOT_HISTOGRAM = enums.ImGuiCol_PlotHistogram * COLOR_PLOT_HISTOGRAM_HOVERED = enums.ImGuiCol_PlotHistogramHovered * COLOR_TABLE_HEADER_BACKGROUND = enums.ImGuiCol_TableHeaderBg # <<<<<<<<<<<<<< * COLOR_TABLE_BORDER_STRONG = enums.ImGuiCol_TableBorderStrong * COLOR_TABLE_BORDER_LIGHT = enums.ImGuiCol_TableBorderLight */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TableHeaderBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TABLE_HEADER_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":449 * COLOR_PLOT_HISTOGRAM_HOVERED = enums.ImGuiCol_PlotHistogramHovered * COLOR_TABLE_HEADER_BACKGROUND = enums.ImGuiCol_TableHeaderBg * COLOR_TABLE_BORDER_STRONG = enums.ImGuiCol_TableBorderStrong # <<<<<<<<<<<<<< * COLOR_TABLE_BORDER_LIGHT = enums.ImGuiCol_TableBorderLight * COLOR_TABLE_ROW_BACKGROUND = enums.ImGuiCol_TableRowBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TableBorderStrong); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TABLE_BORDER_STRONG, __pyx_t_7) < 0) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":450 * COLOR_TABLE_HEADER_BACKGROUND = enums.ImGuiCol_TableHeaderBg * COLOR_TABLE_BORDER_STRONG = enums.ImGuiCol_TableBorderStrong * COLOR_TABLE_BORDER_LIGHT = enums.ImGuiCol_TableBorderLight # <<<<<<<<<<<<<< * COLOR_TABLE_ROW_BACKGROUND = enums.ImGuiCol_TableRowBg * COLOR_TABLE_ROW_BACKGROUND_ALT = enums.ImGuiCol_TableRowBgAlt */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TableBorderLight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TABLE_BORDER_LIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 450, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":451 * COLOR_TABLE_BORDER_STRONG = enums.ImGuiCol_TableBorderStrong * COLOR_TABLE_BORDER_LIGHT = enums.ImGuiCol_TableBorderLight * COLOR_TABLE_ROW_BACKGROUND = enums.ImGuiCol_TableRowBg # <<<<<<<<<<<<<< * COLOR_TABLE_ROW_BACKGROUND_ALT = enums.ImGuiCol_TableRowBgAlt * COLOR_TEXT_SELECTED_BACKGROUND = enums.ImGuiCol_TextSelectedBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TableRowBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TABLE_ROW_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 451, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":452 * COLOR_TABLE_BORDER_LIGHT = enums.ImGuiCol_TableBorderLight * COLOR_TABLE_ROW_BACKGROUND = enums.ImGuiCol_TableRowBg * COLOR_TABLE_ROW_BACKGROUND_ALT = enums.ImGuiCol_TableRowBgAlt # <<<<<<<<<<<<<< * COLOR_TEXT_SELECTED_BACKGROUND = enums.ImGuiCol_TextSelectedBg * COLOR_DRAG_DROP_TARGET = enums.ImGuiCol_DragDropTarget */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TableRowBgAlt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TABLE_ROW_BACKGROUND_ALT, __pyx_t_7) < 0) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":453 * COLOR_TABLE_ROW_BACKGROUND = enums.ImGuiCol_TableRowBg * COLOR_TABLE_ROW_BACKGROUND_ALT = enums.ImGuiCol_TableRowBgAlt * COLOR_TEXT_SELECTED_BACKGROUND = enums.ImGuiCol_TextSelectedBg # <<<<<<<<<<<<<< * COLOR_DRAG_DROP_TARGET = enums.ImGuiCol_DragDropTarget * COLOR_NAV_HIGHLIGHT = enums.ImGuiCol_NavHighlight */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_TextSelectedBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_TEXT_SELECTED_BACKGROUND, __pyx_t_7) < 0) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":454 * COLOR_TABLE_ROW_BACKGROUND_ALT = enums.ImGuiCol_TableRowBgAlt * COLOR_TEXT_SELECTED_BACKGROUND = enums.ImGuiCol_TextSelectedBg * COLOR_DRAG_DROP_TARGET = enums.ImGuiCol_DragDropTarget # <<<<<<<<<<<<<< * COLOR_NAV_HIGHLIGHT = enums.ImGuiCol_NavHighlight * COLOR_NAV_WINDOWING_HIGHLIGHT = enums.ImGuiCol_NavWindowingHighlight */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_DragDropTarget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_DRAG_DROP_TARGET, __pyx_t_7) < 0) __PYX_ERR(0, 454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":455 * COLOR_TEXT_SELECTED_BACKGROUND = enums.ImGuiCol_TextSelectedBg * COLOR_DRAG_DROP_TARGET = enums.ImGuiCol_DragDropTarget * COLOR_NAV_HIGHLIGHT = enums.ImGuiCol_NavHighlight # <<<<<<<<<<<<<< * COLOR_NAV_WINDOWING_HIGHLIGHT = enums.ImGuiCol_NavWindowingHighlight * COLOR_NAV_WINDOWING_DIM_BACKGROUND = enums.ImGuiCol_NavWindowingDimBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_NavHighlight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_NAV_HIGHLIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":456 * COLOR_DRAG_DROP_TARGET = enums.ImGuiCol_DragDropTarget * COLOR_NAV_HIGHLIGHT = enums.ImGuiCol_NavHighlight * COLOR_NAV_WINDOWING_HIGHLIGHT = enums.ImGuiCol_NavWindowingHighlight # <<<<<<<<<<<<<< * COLOR_NAV_WINDOWING_DIM_BACKGROUND = enums.ImGuiCol_NavWindowingDimBg * COLOR_MODAL_WINDOW_DIM_BACKGROUND = enums.ImGuiCol_ModalWindowDimBg */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_NavWindowingHighlight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_NAV_WINDOWING_HIGHLIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":457 * COLOR_NAV_HIGHLIGHT = enums.ImGuiCol_NavHighlight * COLOR_NAV_WINDOWING_HIGHLIGHT = enums.ImGuiCol_NavWindowingHighlight * COLOR_NAV_WINDOWING_DIM_BACKGROUND = enums.ImGuiCol_NavWindowingDimBg # <<<<<<<<<<<<<< * COLOR_MODAL_WINDOW_DIM_BACKGROUND = enums.ImGuiCol_ModalWindowDimBg * COLOR_COUNT = enums.ImGuiCol_COUNT */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_NavWindowingDimBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_NAV_WINDOWING_DIM_BACKGROU, __pyx_t_7) < 0) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":458 * COLOR_NAV_WINDOWING_HIGHLIGHT = enums.ImGuiCol_NavWindowingHighlight * COLOR_NAV_WINDOWING_DIM_BACKGROUND = enums.ImGuiCol_NavWindowingDimBg * COLOR_MODAL_WINDOW_DIM_BACKGROUND = enums.ImGuiCol_ModalWindowDimBg # <<<<<<<<<<<<<< * COLOR_COUNT = enums.ImGuiCol_COUNT * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ModalWindowDimBg); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_MODAL_WINDOW_DIM_BACKGROUN, __pyx_t_7) < 0) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":459 * COLOR_NAV_WINDOWING_DIM_BACKGROUND = enums.ImGuiCol_NavWindowingDimBg * COLOR_MODAL_WINDOW_DIM_BACKGROUND = enums.ImGuiCol_ModalWindowDimBg * COLOR_COUNT = enums.ImGuiCol_COUNT # <<<<<<<<<<<<<< * * # ==== Data Type ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_COUNT); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLOR_COUNT, __pyx_t_7) < 0) __PYX_ERR(0, 459, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":462 * * # ==== Data Type ==== * DATA_TYPE_S8 = enums.ImGuiDataType_S8 # <<<<<<<<<<<<<< * DATA_TYPE_U8 = enums.ImGuiDataType_U8 * DATA_TYPE_S16 = enums.ImGuiDataType_S16 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_S8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_S8, __pyx_t_7) < 0) __PYX_ERR(0, 462, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":463 * # ==== Data Type ==== * DATA_TYPE_S8 = enums.ImGuiDataType_S8 * DATA_TYPE_U8 = enums.ImGuiDataType_U8 # <<<<<<<<<<<<<< * DATA_TYPE_S16 = enums.ImGuiDataType_S16 * DATA_TYPE_U16 = enums.ImGuiDataType_U16 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_U8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_U8, __pyx_t_7) < 0) __PYX_ERR(0, 463, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":464 * DATA_TYPE_S8 = enums.ImGuiDataType_S8 * DATA_TYPE_U8 = enums.ImGuiDataType_U8 * DATA_TYPE_S16 = enums.ImGuiDataType_S16 # <<<<<<<<<<<<<< * DATA_TYPE_U16 = enums.ImGuiDataType_U16 * DATA_TYPE_S32 = enums.ImGuiDataType_S32 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_S16); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_S16, __pyx_t_7) < 0) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":465 * DATA_TYPE_U8 = enums.ImGuiDataType_U8 * DATA_TYPE_S16 = enums.ImGuiDataType_S16 * DATA_TYPE_U16 = enums.ImGuiDataType_U16 # <<<<<<<<<<<<<< * DATA_TYPE_S32 = enums.ImGuiDataType_S32 * DATA_TYPE_U32 = enums.ImGuiDataType_U32 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_U16); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_U16, __pyx_t_7) < 0) __PYX_ERR(0, 465, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":466 * DATA_TYPE_S16 = enums.ImGuiDataType_S16 * DATA_TYPE_U16 = enums.ImGuiDataType_U16 * DATA_TYPE_S32 = enums.ImGuiDataType_S32 # <<<<<<<<<<<<<< * DATA_TYPE_U32 = enums.ImGuiDataType_U32 * DATA_TYPE_S64 = enums.ImGuiDataType_S64 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_S32); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_S32, __pyx_t_7) < 0) __PYX_ERR(0, 466, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":467 * DATA_TYPE_U16 = enums.ImGuiDataType_U16 * DATA_TYPE_S32 = enums.ImGuiDataType_S32 * DATA_TYPE_U32 = enums.ImGuiDataType_U32 # <<<<<<<<<<<<<< * DATA_TYPE_S64 = enums.ImGuiDataType_S64 * DATA_TYPE_U64 = enums.ImGuiDataType_U64 */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_U32); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_U32, __pyx_t_7) < 0) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":468 * DATA_TYPE_S32 = enums.ImGuiDataType_S32 * DATA_TYPE_U32 = enums.ImGuiDataType_U32 * DATA_TYPE_S64 = enums.ImGuiDataType_S64 # <<<<<<<<<<<<<< * DATA_TYPE_U64 = enums.ImGuiDataType_U64 * DATA_TYPE_FLOAT = enums.ImGuiDataType_Float */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_S64); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_S64, __pyx_t_7) < 0) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":469 * DATA_TYPE_U32 = enums.ImGuiDataType_U32 * DATA_TYPE_S64 = enums.ImGuiDataType_S64 * DATA_TYPE_U64 = enums.ImGuiDataType_U64 # <<<<<<<<<<<<<< * DATA_TYPE_FLOAT = enums.ImGuiDataType_Float * DATA_TYPE_DOUBLE = enums.ImGuiDataType_Double */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_U64); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_U64, __pyx_t_7) < 0) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":470 * DATA_TYPE_S64 = enums.ImGuiDataType_S64 * DATA_TYPE_U64 = enums.ImGuiDataType_U64 * DATA_TYPE_FLOAT = enums.ImGuiDataType_Float # <<<<<<<<<<<<<< * DATA_TYPE_DOUBLE = enums.ImGuiDataType_Double * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_Float); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_FLOAT, __pyx_t_7) < 0) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":471 * DATA_TYPE_U64 = enums.ImGuiDataType_U64 * DATA_TYPE_FLOAT = enums.ImGuiDataType_Float * DATA_TYPE_DOUBLE = enums.ImGuiDataType_Double # <<<<<<<<<<<<<< * * # ==== Text input flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_Double); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_TYPE_DOUBLE, __pyx_t_7) < 0) __PYX_ERR(0, 471, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":474 * * # ==== Text input flags ==== * INPUT_TEXT_NONE = enums.ImGuiInputTextFlags_None # <<<<<<<<<<<<<< * INPUT_TEXT_CHARS_DECIMAL = enums.ImGuiInputTextFlags_CharsDecimal * INPUT_TEXT_CHARS_HEXADECIMAL = enums.ImGuiInputTextFlags_CharsHexadecimal */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 474, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":475 * # ==== Text input flags ==== * INPUT_TEXT_NONE = enums.ImGuiInputTextFlags_None * INPUT_TEXT_CHARS_DECIMAL = enums.ImGuiInputTextFlags_CharsDecimal # <<<<<<<<<<<<<< * INPUT_TEXT_CHARS_HEXADECIMAL = enums.ImGuiInputTextFlags_CharsHexadecimal * INPUT_TEXT_CHARS_UPPERCASE = enums.ImGuiInputTextFlags_CharsUppercase */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CharsDecimal); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CHARS_DECIMAL, __pyx_t_7) < 0) __PYX_ERR(0, 475, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":476 * INPUT_TEXT_NONE = enums.ImGuiInputTextFlags_None * INPUT_TEXT_CHARS_DECIMAL = enums.ImGuiInputTextFlags_CharsDecimal * INPUT_TEXT_CHARS_HEXADECIMAL = enums.ImGuiInputTextFlags_CharsHexadecimal # <<<<<<<<<<<<<< * INPUT_TEXT_CHARS_UPPERCASE = enums.ImGuiInputTextFlags_CharsUppercase * INPUT_TEXT_CHARS_NO_BLANK = enums.ImGuiInputTextFlags_CharsNoBlank */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CharsHexadecimal); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CHARS_HEXADECIMAL, __pyx_t_7) < 0) __PYX_ERR(0, 476, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":477 * INPUT_TEXT_CHARS_DECIMAL = enums.ImGuiInputTextFlags_CharsDecimal * INPUT_TEXT_CHARS_HEXADECIMAL = enums.ImGuiInputTextFlags_CharsHexadecimal * INPUT_TEXT_CHARS_UPPERCASE = enums.ImGuiInputTextFlags_CharsUppercase # <<<<<<<<<<<<<< * INPUT_TEXT_CHARS_NO_BLANK = enums.ImGuiInputTextFlags_CharsNoBlank * INPUT_TEXT_AUTO_SELECT_ALL = enums.ImGuiInputTextFlags_AutoSelectAll */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CharsUppercase); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CHARS_UPPERCASE, __pyx_t_7) < 0) __PYX_ERR(0, 477, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":478 * INPUT_TEXT_CHARS_HEXADECIMAL = enums.ImGuiInputTextFlags_CharsHexadecimal * INPUT_TEXT_CHARS_UPPERCASE = enums.ImGuiInputTextFlags_CharsUppercase * INPUT_TEXT_CHARS_NO_BLANK = enums.ImGuiInputTextFlags_CharsNoBlank # <<<<<<<<<<<<<< * INPUT_TEXT_AUTO_SELECT_ALL = enums.ImGuiInputTextFlags_AutoSelectAll * INPUT_TEXT_ENTER_RETURNS_TRUE = enums.ImGuiInputTextFlags_EnterReturnsTrue */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CharsNoBlank); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CHARS_NO_BLANK, __pyx_t_7) < 0) __PYX_ERR(0, 478, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":479 * INPUT_TEXT_CHARS_UPPERCASE = enums.ImGuiInputTextFlags_CharsUppercase * INPUT_TEXT_CHARS_NO_BLANK = enums.ImGuiInputTextFlags_CharsNoBlank * INPUT_TEXT_AUTO_SELECT_ALL = enums.ImGuiInputTextFlags_AutoSelectAll # <<<<<<<<<<<<<< * INPUT_TEXT_ENTER_RETURNS_TRUE = enums.ImGuiInputTextFlags_EnterReturnsTrue * INPUT_TEXT_CALLBACK_COMPLETION = enums.ImGuiInputTextFlags_CallbackCompletion */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_AutoSelectAll); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_AUTO_SELECT_ALL, __pyx_t_7) < 0) __PYX_ERR(0, 479, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":480 * INPUT_TEXT_CHARS_NO_BLANK = enums.ImGuiInputTextFlags_CharsNoBlank * INPUT_TEXT_AUTO_SELECT_ALL = enums.ImGuiInputTextFlags_AutoSelectAll * INPUT_TEXT_ENTER_RETURNS_TRUE = enums.ImGuiInputTextFlags_EnterReturnsTrue # <<<<<<<<<<<<<< * INPUT_TEXT_CALLBACK_COMPLETION = enums.ImGuiInputTextFlags_CallbackCompletion * INPUT_TEXT_CALLBACK_HISTORY = enums.ImGuiInputTextFlags_CallbackHistory */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_EnterReturnsTrue); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_ENTER_RETURNS_TRUE, __pyx_t_7) < 0) __PYX_ERR(0, 480, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":481 * INPUT_TEXT_AUTO_SELECT_ALL = enums.ImGuiInputTextFlags_AutoSelectAll * INPUT_TEXT_ENTER_RETURNS_TRUE = enums.ImGuiInputTextFlags_EnterReturnsTrue * INPUT_TEXT_CALLBACK_COMPLETION = enums.ImGuiInputTextFlags_CallbackCompletion # <<<<<<<<<<<<<< * INPUT_TEXT_CALLBACK_HISTORY = enums.ImGuiInputTextFlags_CallbackHistory * INPUT_TEXT_CALLBACK_ALWAYS = enums.ImGuiInputTextFlags_CallbackAlways */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CallbackCompletion); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CALLBACK_COMPLETION, __pyx_t_7) < 0) __PYX_ERR(0, 481, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":482 * INPUT_TEXT_ENTER_RETURNS_TRUE = enums.ImGuiInputTextFlags_EnterReturnsTrue * INPUT_TEXT_CALLBACK_COMPLETION = enums.ImGuiInputTextFlags_CallbackCompletion * INPUT_TEXT_CALLBACK_HISTORY = enums.ImGuiInputTextFlags_CallbackHistory # <<<<<<<<<<<<<< * INPUT_TEXT_CALLBACK_ALWAYS = enums.ImGuiInputTextFlags_CallbackAlways * INPUT_TEXT_CALLBACK_CHAR_FILTER = enums.ImGuiInputTextFlags_CallbackCharFilter */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CallbackHistory); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CALLBACK_HISTORY, __pyx_t_7) < 0) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":483 * INPUT_TEXT_CALLBACK_COMPLETION = enums.ImGuiInputTextFlags_CallbackCompletion * INPUT_TEXT_CALLBACK_HISTORY = enums.ImGuiInputTextFlags_CallbackHistory * INPUT_TEXT_CALLBACK_ALWAYS = enums.ImGuiInputTextFlags_CallbackAlways # <<<<<<<<<<<<<< * INPUT_TEXT_CALLBACK_CHAR_FILTER = enums.ImGuiInputTextFlags_CallbackCharFilter * INPUT_TEXT_ALLOW_TAB_INPUT = enums.ImGuiInputTextFlags_AllowTabInput */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CallbackAlways); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CALLBACK_ALWAYS, __pyx_t_7) < 0) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":484 * INPUT_TEXT_CALLBACK_HISTORY = enums.ImGuiInputTextFlags_CallbackHistory * INPUT_TEXT_CALLBACK_ALWAYS = enums.ImGuiInputTextFlags_CallbackAlways * INPUT_TEXT_CALLBACK_CHAR_FILTER = enums.ImGuiInputTextFlags_CallbackCharFilter # <<<<<<<<<<<<<< * INPUT_TEXT_ALLOW_TAB_INPUT = enums.ImGuiInputTextFlags_AllowTabInput * INPUT_TEXT_CTRL_ENTER_FOR_NEW_LINE = enums.ImGuiInputTextFlags_CtrlEnterForNewLine */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CallbackCharFilter); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CALLBACK_CHAR_FILTER, __pyx_t_7) < 0) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":485 * INPUT_TEXT_CALLBACK_ALWAYS = enums.ImGuiInputTextFlags_CallbackAlways * INPUT_TEXT_CALLBACK_CHAR_FILTER = enums.ImGuiInputTextFlags_CallbackCharFilter * INPUT_TEXT_ALLOW_TAB_INPUT = enums.ImGuiInputTextFlags_AllowTabInput # <<<<<<<<<<<<<< * INPUT_TEXT_CTRL_ENTER_FOR_NEW_LINE = enums.ImGuiInputTextFlags_CtrlEnterForNewLine * INPUT_TEXT_NO_HORIZONTAL_SCROLL = enums.ImGuiInputTextFlags_NoHorizontalScroll */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_AllowTabInput); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_ALLOW_TAB_INPUT, __pyx_t_7) < 0) __PYX_ERR(0, 485, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":486 * INPUT_TEXT_CALLBACK_CHAR_FILTER = enums.ImGuiInputTextFlags_CallbackCharFilter * INPUT_TEXT_ALLOW_TAB_INPUT = enums.ImGuiInputTextFlags_AllowTabInput * INPUT_TEXT_CTRL_ENTER_FOR_NEW_LINE = enums.ImGuiInputTextFlags_CtrlEnterForNewLine # <<<<<<<<<<<<<< * INPUT_TEXT_NO_HORIZONTAL_SCROLL = enums.ImGuiInputTextFlags_NoHorizontalScroll * INPUT_TEXT_ALWAYS_OVERWRITE = enums.ImGuiInputTextFlags_AlwaysOverwrite */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CtrlEnterForNewLine); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CTRL_ENTER_FOR_NEW_LI, __pyx_t_7) < 0) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":487 * INPUT_TEXT_ALLOW_TAB_INPUT = enums.ImGuiInputTextFlags_AllowTabInput * INPUT_TEXT_CTRL_ENTER_FOR_NEW_LINE = enums.ImGuiInputTextFlags_CtrlEnterForNewLine * INPUT_TEXT_NO_HORIZONTAL_SCROLL = enums.ImGuiInputTextFlags_NoHorizontalScroll # <<<<<<<<<<<<<< * INPUT_TEXT_ALWAYS_OVERWRITE = enums.ImGuiInputTextFlags_AlwaysOverwrite * INPUT_TEXT_ALWAYS_INSERT_MODE = enums.ImGuiInputTextFlags_AlwaysInsertMode # OBSOLETED in 1.82 (from Mars 2021) */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_NoHorizontalScroll); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_NO_HORIZONTAL_SCROLL, __pyx_t_7) < 0) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":488 * INPUT_TEXT_CTRL_ENTER_FOR_NEW_LINE = enums.ImGuiInputTextFlags_CtrlEnterForNewLine * INPUT_TEXT_NO_HORIZONTAL_SCROLL = enums.ImGuiInputTextFlags_NoHorizontalScroll * INPUT_TEXT_ALWAYS_OVERWRITE = enums.ImGuiInputTextFlags_AlwaysOverwrite # <<<<<<<<<<<<<< * INPUT_TEXT_ALWAYS_INSERT_MODE = enums.ImGuiInputTextFlags_AlwaysInsertMode # OBSOLETED in 1.82 (from Mars 2021) * INPUT_TEXT_READ_ONLY = enums.ImGuiInputTextFlags_ReadOnly */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_AlwaysOverwrite); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 488, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_ALWAYS_OVERWRITE, __pyx_t_7) < 0) __PYX_ERR(0, 488, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":489 * INPUT_TEXT_NO_HORIZONTAL_SCROLL = enums.ImGuiInputTextFlags_NoHorizontalScroll * INPUT_TEXT_ALWAYS_OVERWRITE = enums.ImGuiInputTextFlags_AlwaysOverwrite * INPUT_TEXT_ALWAYS_INSERT_MODE = enums.ImGuiInputTextFlags_AlwaysInsertMode # OBSOLETED in 1.82 (from Mars 2021) # <<<<<<<<<<<<<< * INPUT_TEXT_READ_ONLY = enums.ImGuiInputTextFlags_ReadOnly * INPUT_TEXT_PASSWORD = enums.ImGuiInputTextFlags_Password */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_AlwaysInsertMode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_ALWAYS_INSERT_MODE, __pyx_t_7) < 0) __PYX_ERR(0, 489, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":490 * INPUT_TEXT_ALWAYS_OVERWRITE = enums.ImGuiInputTextFlags_AlwaysOverwrite * INPUT_TEXT_ALWAYS_INSERT_MODE = enums.ImGuiInputTextFlags_AlwaysInsertMode # OBSOLETED in 1.82 (from Mars 2021) * INPUT_TEXT_READ_ONLY = enums.ImGuiInputTextFlags_ReadOnly # <<<<<<<<<<<<<< * INPUT_TEXT_PASSWORD = enums.ImGuiInputTextFlags_Password * INPUT_TEXT_NO_UNDO_REDO = enums.ImGuiInputTextFlags_NoUndoRedo */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_ReadOnly); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_READ_ONLY, __pyx_t_7) < 0) __PYX_ERR(0, 490, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":491 * INPUT_TEXT_ALWAYS_INSERT_MODE = enums.ImGuiInputTextFlags_AlwaysInsertMode # OBSOLETED in 1.82 (from Mars 2021) * INPUT_TEXT_READ_ONLY = enums.ImGuiInputTextFlags_ReadOnly * INPUT_TEXT_PASSWORD = enums.ImGuiInputTextFlags_Password # <<<<<<<<<<<<<< * INPUT_TEXT_NO_UNDO_REDO = enums.ImGuiInputTextFlags_NoUndoRedo * INPUT_TEXT_CHARS_SCIENTIFIC = enums.ImGuiInputTextFlags_CharsScientific */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_Password); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_PASSWORD, __pyx_t_7) < 0) __PYX_ERR(0, 491, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":492 * INPUT_TEXT_READ_ONLY = enums.ImGuiInputTextFlags_ReadOnly * INPUT_TEXT_PASSWORD = enums.ImGuiInputTextFlags_Password * INPUT_TEXT_NO_UNDO_REDO = enums.ImGuiInputTextFlags_NoUndoRedo # <<<<<<<<<<<<<< * INPUT_TEXT_CHARS_SCIENTIFIC = enums.ImGuiInputTextFlags_CharsScientific * INPUT_TEXT_CALLBACK_RESIZE = enums.ImGuiInputTextFlags_CallbackResize */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_NoUndoRedo); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_NO_UNDO_REDO, __pyx_t_7) < 0) __PYX_ERR(0, 492, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":493 * INPUT_TEXT_PASSWORD = enums.ImGuiInputTextFlags_Password * INPUT_TEXT_NO_UNDO_REDO = enums.ImGuiInputTextFlags_NoUndoRedo * INPUT_TEXT_CHARS_SCIENTIFIC = enums.ImGuiInputTextFlags_CharsScientific # <<<<<<<<<<<<<< * INPUT_TEXT_CALLBACK_RESIZE = enums.ImGuiInputTextFlags_CallbackResize * INPUT_TEXT_CALLBACK_EDIT = enums.ImGuiInputTextFlags_CallbackEdit */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CharsScientific); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CHARS_SCIENTIFIC, __pyx_t_7) < 0) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":494 * INPUT_TEXT_NO_UNDO_REDO = enums.ImGuiInputTextFlags_NoUndoRedo * INPUT_TEXT_CHARS_SCIENTIFIC = enums.ImGuiInputTextFlags_CharsScientific * INPUT_TEXT_CALLBACK_RESIZE = enums.ImGuiInputTextFlags_CallbackResize # <<<<<<<<<<<<<< * INPUT_TEXT_CALLBACK_EDIT = enums.ImGuiInputTextFlags_CallbackEdit * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CallbackResize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CALLBACK_RESIZE, __pyx_t_7) < 0) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":495 * INPUT_TEXT_CHARS_SCIENTIFIC = enums.ImGuiInputTextFlags_CharsScientific * INPUT_TEXT_CALLBACK_RESIZE = enums.ImGuiInputTextFlags_CallbackResize * INPUT_TEXT_CALLBACK_EDIT = enums.ImGuiInputTextFlags_CallbackEdit # <<<<<<<<<<<<<< * * # ==== Draw Corner Flags === */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_CallbackEdit); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_TEXT_CALLBACK_EDIT, __pyx_t_7) < 0) __PYX_ERR(0, 495, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":499 * # ==== Draw Corner Flags === * # OBSOLETED in 1.82 (from Mars 2021), use ImDrawFlags_xxx * DRAW_CORNER_NONE = enums.ImDrawCornerFlags_None # <<<<<<<<<<<<<< * DRAW_CORNER_TOP_LEFT = enums.ImDrawCornerFlags_TopLeft * DRAW_CORNER_TOP_RIGHT = enums.ImDrawCornerFlags_TopRight */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 499, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":500 * # OBSOLETED in 1.82 (from Mars 2021), use ImDrawFlags_xxx * DRAW_CORNER_NONE = enums.ImDrawCornerFlags_None * DRAW_CORNER_TOP_LEFT = enums.ImDrawCornerFlags_TopLeft # <<<<<<<<<<<<<< * DRAW_CORNER_TOP_RIGHT = enums.ImDrawCornerFlags_TopRight * DRAW_CORNER_BOTTOM_LEFT = enums.ImDrawCornerFlags_BotLeft */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_TopLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_TOP_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 500, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":501 * DRAW_CORNER_NONE = enums.ImDrawCornerFlags_None * DRAW_CORNER_TOP_LEFT = enums.ImDrawCornerFlags_TopLeft * DRAW_CORNER_TOP_RIGHT = enums.ImDrawCornerFlags_TopRight # <<<<<<<<<<<<<< * DRAW_CORNER_BOTTOM_LEFT = enums.ImDrawCornerFlags_BotLeft * DRAW_CORNER_BOTTOM_RIGHT = enums.ImDrawCornerFlags_BotRight */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_TopRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_TOP_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 501, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":502 * DRAW_CORNER_TOP_LEFT = enums.ImDrawCornerFlags_TopLeft * DRAW_CORNER_TOP_RIGHT = enums.ImDrawCornerFlags_TopRight * DRAW_CORNER_BOTTOM_LEFT = enums.ImDrawCornerFlags_BotLeft # <<<<<<<<<<<<<< * DRAW_CORNER_BOTTOM_RIGHT = enums.ImDrawCornerFlags_BotRight * DRAW_CORNER_TOP = enums.ImDrawCornerFlags_Top */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_BotLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_BOTTOM_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":503 * DRAW_CORNER_TOP_RIGHT = enums.ImDrawCornerFlags_TopRight * DRAW_CORNER_BOTTOM_LEFT = enums.ImDrawCornerFlags_BotLeft * DRAW_CORNER_BOTTOM_RIGHT = enums.ImDrawCornerFlags_BotRight # <<<<<<<<<<<<<< * DRAW_CORNER_TOP = enums.ImDrawCornerFlags_Top * DRAW_CORNER_BOTTOM = enums.ImDrawCornerFlags_Bot */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_BotRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_BOTTOM_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":504 * DRAW_CORNER_BOTTOM_LEFT = enums.ImDrawCornerFlags_BotLeft * DRAW_CORNER_BOTTOM_RIGHT = enums.ImDrawCornerFlags_BotRight * DRAW_CORNER_TOP = enums.ImDrawCornerFlags_Top # <<<<<<<<<<<<<< * DRAW_CORNER_BOTTOM = enums.ImDrawCornerFlags_Bot * DRAW_CORNER_LEFT = enums.ImDrawCornerFlags_Left */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_Top); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_TOP, __pyx_t_7) < 0) __PYX_ERR(0, 504, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":505 * DRAW_CORNER_BOTTOM_RIGHT = enums.ImDrawCornerFlags_BotRight * DRAW_CORNER_TOP = enums.ImDrawCornerFlags_Top * DRAW_CORNER_BOTTOM = enums.ImDrawCornerFlags_Bot # <<<<<<<<<<<<<< * DRAW_CORNER_LEFT = enums.ImDrawCornerFlags_Left * DRAW_CORNER_RIGHT = enums.ImDrawCornerFlags_Right */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_Bot); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_BOTTOM, __pyx_t_7) < 0) __PYX_ERR(0, 505, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":506 * DRAW_CORNER_TOP = enums.ImDrawCornerFlags_Top * DRAW_CORNER_BOTTOM = enums.ImDrawCornerFlags_Bot * DRAW_CORNER_LEFT = enums.ImDrawCornerFlags_Left # <<<<<<<<<<<<<< * DRAW_CORNER_RIGHT = enums.ImDrawCornerFlags_Right * DRAW_CORNER_ALL = enums.ImDrawCornerFlags_All */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_Left); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":507 * DRAW_CORNER_BOTTOM = enums.ImDrawCornerFlags_Bot * DRAW_CORNER_LEFT = enums.ImDrawCornerFlags_Left * DRAW_CORNER_RIGHT = enums.ImDrawCornerFlags_Right # <<<<<<<<<<<<<< * DRAW_CORNER_ALL = enums.ImDrawCornerFlags_All * */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_Right); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 507, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":508 * DRAW_CORNER_LEFT = enums.ImDrawCornerFlags_Left * DRAW_CORNER_RIGHT = enums.ImDrawCornerFlags_Right * DRAW_CORNER_ALL = enums.ImDrawCornerFlags_All # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_All); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CORNER_ALL, __pyx_t_7) < 0) __PYX_ERR(0, 508, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":512 * * # ==== Draw Flags ==== * DRAW_NONE = enums.ImDrawFlags_None # <<<<<<<<<<<<<< * DRAW_CLOSED = enums.ImDrawFlags_Closed * DRAW_ROUND_CORNERS_TOP_LEFT = enums.ImDrawFlags_RoundCornersTopLeft */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 512, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":513 * # ==== Draw Flags ==== * DRAW_NONE = enums.ImDrawFlags_None * DRAW_CLOSED = enums.ImDrawFlags_Closed # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_TOP_LEFT = enums.ImDrawFlags_RoundCornersTopLeft * DRAW_ROUND_CORNERS_TOP_RIGHT = enums.ImDrawFlags_RoundCornersTopRight */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_Closed); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_CLOSED, __pyx_t_7) < 0) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":514 * DRAW_NONE = enums.ImDrawFlags_None * DRAW_CLOSED = enums.ImDrawFlags_Closed * DRAW_ROUND_CORNERS_TOP_LEFT = enums.ImDrawFlags_RoundCornersTopLeft # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_TOP_RIGHT = enums.ImDrawFlags_RoundCornersTopRight * DRAW_ROUND_CORNERS_BOTTOM_LEFT = enums.ImDrawFlags_RoundCornersBottomLeft */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersTopLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_TOP_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":515 * DRAW_CLOSED = enums.ImDrawFlags_Closed * DRAW_ROUND_CORNERS_TOP_LEFT = enums.ImDrawFlags_RoundCornersTopLeft * DRAW_ROUND_CORNERS_TOP_RIGHT = enums.ImDrawFlags_RoundCornersTopRight # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_BOTTOM_LEFT = enums.ImDrawFlags_RoundCornersBottomLeft * DRAW_ROUND_CORNERS_BOTTOM_RIGHT = enums.ImDrawFlags_RoundCornersBottomRight */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersTopRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_TOP_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 515, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":516 * DRAW_ROUND_CORNERS_TOP_LEFT = enums.ImDrawFlags_RoundCornersTopLeft * DRAW_ROUND_CORNERS_TOP_RIGHT = enums.ImDrawFlags_RoundCornersTopRight * DRAW_ROUND_CORNERS_BOTTOM_LEFT = enums.ImDrawFlags_RoundCornersBottomLeft # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_BOTTOM_RIGHT = enums.ImDrawFlags_RoundCornersBottomRight * DRAW_ROUND_CORNERS_NONE = enums.ImDrawFlags_RoundCornersNone */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersBottomLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":517 * DRAW_ROUND_CORNERS_TOP_RIGHT = enums.ImDrawFlags_RoundCornersTopRight * DRAW_ROUND_CORNERS_BOTTOM_LEFT = enums.ImDrawFlags_RoundCornersBottomLeft * DRAW_ROUND_CORNERS_BOTTOM_RIGHT = enums.ImDrawFlags_RoundCornersBottomRight # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_NONE = enums.ImDrawFlags_RoundCornersNone * DRAW_ROUND_CORNERS_TOP = enums.ImDrawFlags_RoundCornersTop */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersBottomRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":518 * DRAW_ROUND_CORNERS_BOTTOM_LEFT = enums.ImDrawFlags_RoundCornersBottomLeft * DRAW_ROUND_CORNERS_BOTTOM_RIGHT = enums.ImDrawFlags_RoundCornersBottomRight * DRAW_ROUND_CORNERS_NONE = enums.ImDrawFlags_RoundCornersNone # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_TOP = enums.ImDrawFlags_RoundCornersTop * DRAW_ROUND_CORNERS_BOTTOM = enums.ImDrawFlags_RoundCornersBottom */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersNone); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 518, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":519 * DRAW_ROUND_CORNERS_BOTTOM_RIGHT = enums.ImDrawFlags_RoundCornersBottomRight * DRAW_ROUND_CORNERS_NONE = enums.ImDrawFlags_RoundCornersNone * DRAW_ROUND_CORNERS_TOP = enums.ImDrawFlags_RoundCornersTop # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_BOTTOM = enums.ImDrawFlags_RoundCornersBottom * DRAW_ROUND_CORNERS_LEFT = enums.ImDrawFlags_RoundCornersLeft */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersTop); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_TOP, __pyx_t_7) < 0) __PYX_ERR(0, 519, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":520 * DRAW_ROUND_CORNERS_NONE = enums.ImDrawFlags_RoundCornersNone * DRAW_ROUND_CORNERS_TOP = enums.ImDrawFlags_RoundCornersTop * DRAW_ROUND_CORNERS_BOTTOM = enums.ImDrawFlags_RoundCornersBottom # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_LEFT = enums.ImDrawFlags_RoundCornersLeft * DRAW_ROUND_CORNERS_RIGHT = enums.ImDrawFlags_RoundCornersRight */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersBottom); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_BOTTOM, __pyx_t_7) < 0) __PYX_ERR(0, 520, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":521 * DRAW_ROUND_CORNERS_TOP = enums.ImDrawFlags_RoundCornersTop * DRAW_ROUND_CORNERS_BOTTOM = enums.ImDrawFlags_RoundCornersBottom * DRAW_ROUND_CORNERS_LEFT = enums.ImDrawFlags_RoundCornersLeft # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_RIGHT = enums.ImDrawFlags_RoundCornersRight * DRAW_ROUND_CORNERS_ALL = enums.ImDrawFlags_RoundCornersAll */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersLeft); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 521, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":522 * DRAW_ROUND_CORNERS_BOTTOM = enums.ImDrawFlags_RoundCornersBottom * DRAW_ROUND_CORNERS_LEFT = enums.ImDrawFlags_RoundCornersLeft * DRAW_ROUND_CORNERS_RIGHT = enums.ImDrawFlags_RoundCornersRight # <<<<<<<<<<<<<< * DRAW_ROUND_CORNERS_ALL = enums.ImDrawFlags_RoundCornersAll * */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersRight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":523 * DRAW_ROUND_CORNERS_LEFT = enums.ImDrawFlags_RoundCornersLeft * DRAW_ROUND_CORNERS_RIGHT = enums.ImDrawFlags_RoundCornersRight * DRAW_ROUND_CORNERS_ALL = enums.ImDrawFlags_RoundCornersAll # <<<<<<<<<<<<<< * * # ==== Draw List Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_RoundCornersAll); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_ROUND_CORNERS_ALL, __pyx_t_7) < 0) __PYX_ERR(0, 523, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":526 * * # ==== Draw List Flags ==== * DRAW_LIST_NONE = enums.ImDrawListFlags_None # <<<<<<<<<<<<<< * DRAW_LIST_ANTI_ALIASED_LINES = enums.ImDrawListFlags_AntiAliasedLines * DRAW_LIST_ANTI_ALIASED_LINES_USE_TEX = enums.ImDrawListFlags_AntiAliasedLinesUseTex */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawListFlags_(ImDrawListFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_LIST_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 526, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":527 * # ==== Draw List Flags ==== * DRAW_LIST_NONE = enums.ImDrawListFlags_None * DRAW_LIST_ANTI_ALIASED_LINES = enums.ImDrawListFlags_AntiAliasedLines # <<<<<<<<<<<<<< * DRAW_LIST_ANTI_ALIASED_LINES_USE_TEX = enums.ImDrawListFlags_AntiAliasedLinesUseTex * DRAW_LIST_ANTI_ALIASED_FILL = enums.ImDrawListFlags_AntiAliasedFill */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawListFlags_(ImDrawListFlags_AntiAliasedLines); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_LIST_ANTI_ALIASED_LINES, __pyx_t_7) < 0) __PYX_ERR(0, 527, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":528 * DRAW_LIST_NONE = enums.ImDrawListFlags_None * DRAW_LIST_ANTI_ALIASED_LINES = enums.ImDrawListFlags_AntiAliasedLines * DRAW_LIST_ANTI_ALIASED_LINES_USE_TEX = enums.ImDrawListFlags_AntiAliasedLinesUseTex # <<<<<<<<<<<<<< * DRAW_LIST_ANTI_ALIASED_FILL = enums.ImDrawListFlags_AntiAliasedFill * DRAW_LIST_ALLOW_VTX_OFFSET = enums.ImDrawListFlags_AllowVtxOffset */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawListFlags_(ImDrawListFlags_AntiAliasedLinesUseTex); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_LIST_ANTI_ALIASED_LINES_USE, __pyx_t_7) < 0) __PYX_ERR(0, 528, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":529 * DRAW_LIST_ANTI_ALIASED_LINES = enums.ImDrawListFlags_AntiAliasedLines * DRAW_LIST_ANTI_ALIASED_LINES_USE_TEX = enums.ImDrawListFlags_AntiAliasedLinesUseTex * DRAW_LIST_ANTI_ALIASED_FILL = enums.ImDrawListFlags_AntiAliasedFill # <<<<<<<<<<<<<< * DRAW_LIST_ALLOW_VTX_OFFSET = enums.ImDrawListFlags_AllowVtxOffset * */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawListFlags_(ImDrawListFlags_AntiAliasedFill); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_LIST_ANTI_ALIASED_FILL, __pyx_t_7) < 0) __PYX_ERR(0, 529, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":530 * DRAW_LIST_ANTI_ALIASED_LINES_USE_TEX = enums.ImDrawListFlags_AntiAliasedLinesUseTex * DRAW_LIST_ANTI_ALIASED_FILL = enums.ImDrawListFlags_AntiAliasedFill * DRAW_LIST_ALLOW_VTX_OFFSET = enums.ImDrawListFlags_AllowVtxOffset # <<<<<<<<<<<<<< * * # ==== Font Atlas Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImDrawListFlags_(ImDrawListFlags_AllowVtxOffset); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_DRAW_LIST_ALLOW_VTX_OFFSET, __pyx_t_7) < 0) __PYX_ERR(0, 530, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":533 * * # ==== Font Atlas Flags ==== * FONT_ATLAS_NONE = enums.ImFontAtlasFlags_None # <<<<<<<<<<<<<< * FONT_ATLAS_NO_POWER_OF_TWO_HEIGHT = enums.ImFontAtlasFlags_NoPowerOfTwoHeight * FONT_ATLAS_NO_MOUSE_CURSOR = enums.ImFontAtlasFlags_NoMouseCursors */ __pyx_t_7 = __Pyx_PyInt_From_ImFontAtlasFlags_(ImFontAtlasFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FONT_ATLAS_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":534 * # ==== Font Atlas Flags ==== * FONT_ATLAS_NONE = enums.ImFontAtlasFlags_None * FONT_ATLAS_NO_POWER_OF_TWO_HEIGHT = enums.ImFontAtlasFlags_NoPowerOfTwoHeight # <<<<<<<<<<<<<< * FONT_ATLAS_NO_MOUSE_CURSOR = enums.ImFontAtlasFlags_NoMouseCursors * FONT_ATLAS_NO_BAKED_LINES = enums.ImFontAtlasFlags_NoBakedLines */ __pyx_t_7 = __Pyx_PyInt_From_ImFontAtlasFlags_(ImFontAtlasFlags_NoPowerOfTwoHeight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FONT_ATLAS_NO_POWER_OF_TWO_HEIGH, __pyx_t_7) < 0) __PYX_ERR(0, 534, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":535 * FONT_ATLAS_NONE = enums.ImFontAtlasFlags_None * FONT_ATLAS_NO_POWER_OF_TWO_HEIGHT = enums.ImFontAtlasFlags_NoPowerOfTwoHeight * FONT_ATLAS_NO_MOUSE_CURSOR = enums.ImFontAtlasFlags_NoMouseCursors # <<<<<<<<<<<<<< * FONT_ATLAS_NO_BAKED_LINES = enums.ImFontAtlasFlags_NoBakedLines * */ __pyx_t_7 = __Pyx_PyInt_From_ImFontAtlasFlags_(ImFontAtlasFlags_NoMouseCursors); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FONT_ATLAS_NO_MOUSE_CURSOR, __pyx_t_7) < 0) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":536 * FONT_ATLAS_NO_POWER_OF_TWO_HEIGHT = enums.ImFontAtlasFlags_NoPowerOfTwoHeight * FONT_ATLAS_NO_MOUSE_CURSOR = enums.ImFontAtlasFlags_NoMouseCursors * FONT_ATLAS_NO_BAKED_LINES = enums.ImFontAtlasFlags_NoBakedLines # <<<<<<<<<<<<<< * * # ==== Config Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImFontAtlasFlags_(ImFontAtlasFlags_NoBakedLines); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_FONT_ATLAS_NO_BAKED_LINES, __pyx_t_7) < 0) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":539 * * # ==== Config Flags ==== * CONFIG_NONE = enums.ImGuiConfigFlags_None # <<<<<<<<<<<<<< * CONFIG_NAV_ENABLE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableKeyboard * CONFIG_NAV_ENABLE_GAMEPAD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableGamepad */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":540 * # ==== Config Flags ==== * CONFIG_NONE = enums.ImGuiConfigFlags_None * CONFIG_NAV_ENABLE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableKeyboard # <<<<<<<<<<<<<< * CONFIG_NAV_ENABLE_GAMEPAD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableGamepad * CONFIG_NAV_ENABLE_SET_MOUSE_POS = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableSetMousePos */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_NavEnableKeyboard); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_NAV_ENABLE_KEYBOARD, __pyx_t_7) < 0) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":541 * CONFIG_NONE = enums.ImGuiConfigFlags_None * CONFIG_NAV_ENABLE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableKeyboard * CONFIG_NAV_ENABLE_GAMEPAD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableGamepad # <<<<<<<<<<<<<< * CONFIG_NAV_ENABLE_SET_MOUSE_POS = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableSetMousePos * CONFIG_NAV_NO_CAPTURE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavNoCaptureKeyboard */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_NavEnableGamepad); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_NAV_ENABLE_GAMEPAD, __pyx_t_7) < 0) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":542 * CONFIG_NAV_ENABLE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableKeyboard * CONFIG_NAV_ENABLE_GAMEPAD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableGamepad * CONFIG_NAV_ENABLE_SET_MOUSE_POS = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableSetMousePos # <<<<<<<<<<<<<< * CONFIG_NAV_NO_CAPTURE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavNoCaptureKeyboard * CONFIG_NO_MOUSE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouse */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_NavEnableSetMousePos); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_NAV_ENABLE_SET_MOUSE_POS, __pyx_t_7) < 0) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":543 * CONFIG_NAV_ENABLE_GAMEPAD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableGamepad * CONFIG_NAV_ENABLE_SET_MOUSE_POS = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableSetMousePos * CONFIG_NAV_NO_CAPTURE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavNoCaptureKeyboard # <<<<<<<<<<<<<< * CONFIG_NO_MOUSE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouse * CONFIG_NO_MOUSE_CURSOR_CHANGE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouseCursorChange */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_NavNoCaptureKeyboard); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_NAV_NO_CAPTURE_KEYBOARD, __pyx_t_7) < 0) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":544 * CONFIG_NAV_ENABLE_SET_MOUSE_POS = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavEnableSetMousePos * CONFIG_NAV_NO_CAPTURE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavNoCaptureKeyboard * CONFIG_NO_MOUSE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouse # <<<<<<<<<<<<<< * CONFIG_NO_MOUSE_CURSOR_CHANGE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouseCursorChange * CONFIG_IS_RGB = enums.ImGuiConfigFlags_.ImGuiConfigFlags_IsSRGB */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_NoMouse); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_NO_MOUSE, __pyx_t_7) < 0) __PYX_ERR(0, 544, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":545 * CONFIG_NAV_NO_CAPTURE_KEYBOARD = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NavNoCaptureKeyboard * CONFIG_NO_MOUSE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouse * CONFIG_NO_MOUSE_CURSOR_CHANGE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouseCursorChange # <<<<<<<<<<<<<< * CONFIG_IS_RGB = enums.ImGuiConfigFlags_.ImGuiConfigFlags_IsSRGB * CONFIG_IS_TOUCH_SCREEN = enums.ImGuiConfigFlags_.ImGuiConfigFlags_IsTouchScreen */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_NoMouseCursorChange); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_NO_MOUSE_CURSOR_CHANGE, __pyx_t_7) < 0) __PYX_ERR(0, 545, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":546 * CONFIG_NO_MOUSE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouse * CONFIG_NO_MOUSE_CURSOR_CHANGE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouseCursorChange * CONFIG_IS_RGB = enums.ImGuiConfigFlags_.ImGuiConfigFlags_IsSRGB # <<<<<<<<<<<<<< * CONFIG_IS_TOUCH_SCREEN = enums.ImGuiConfigFlags_.ImGuiConfigFlags_IsTouchScreen * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_IsSRGB); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_IS_RGB, __pyx_t_7) < 0) __PYX_ERR(0, 546, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":547 * CONFIG_NO_MOUSE_CURSOR_CHANGE = enums.ImGuiConfigFlags_.ImGuiConfigFlags_NoMouseCursorChange * CONFIG_IS_RGB = enums.ImGuiConfigFlags_.ImGuiConfigFlags_IsSRGB * CONFIG_IS_TOUCH_SCREEN = enums.ImGuiConfigFlags_.ImGuiConfigFlags_IsTouchScreen # <<<<<<<<<<<<<< * * # ==== Backend Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_IsTouchScreen); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONFIG_IS_TOUCH_SCREEN, __pyx_t_7) < 0) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":550 * * # ==== Backend Flags ==== * BACKEND_NONE = enums.ImGuiBackendFlags_None # <<<<<<<<<<<<<< * BACKEND_HAS_GAMEPAD = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasGamepad * BACKEND_HAS_MOUSE_CURSORS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasMouseCursors */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiBackendFlags_(ImGuiBackendFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BACKEND_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":551 * # ==== Backend Flags ==== * BACKEND_NONE = enums.ImGuiBackendFlags_None * BACKEND_HAS_GAMEPAD = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasGamepad # <<<<<<<<<<<<<< * BACKEND_HAS_MOUSE_CURSORS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasMouseCursors * BACKEND_HAS_SET_MOUSE_POS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasSetMousePos */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiBackendFlags_(ImGuiBackendFlags_HasGamepad); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BACKEND_HAS_GAMEPAD, __pyx_t_7) < 0) __PYX_ERR(0, 551, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":552 * BACKEND_NONE = enums.ImGuiBackendFlags_None * BACKEND_HAS_GAMEPAD = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasGamepad * BACKEND_HAS_MOUSE_CURSORS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasMouseCursors # <<<<<<<<<<<<<< * BACKEND_HAS_SET_MOUSE_POS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasSetMousePos * BACKEND_RENDERER_HAS_VTX_OFFSET = enums.ImGuiBackendFlags_RendererHasVtxOffset */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiBackendFlags_(ImGuiBackendFlags_HasMouseCursors); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BACKEND_HAS_MOUSE_CURSORS, __pyx_t_7) < 0) __PYX_ERR(0, 552, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":553 * BACKEND_HAS_GAMEPAD = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasGamepad * BACKEND_HAS_MOUSE_CURSORS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasMouseCursors * BACKEND_HAS_SET_MOUSE_POS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasSetMousePos # <<<<<<<<<<<<<< * BACKEND_RENDERER_HAS_VTX_OFFSET = enums.ImGuiBackendFlags_RendererHasVtxOffset * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiBackendFlags_(ImGuiBackendFlags_HasSetMousePos); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BACKEND_HAS_SET_MOUSE_POS, __pyx_t_7) < 0) __PYX_ERR(0, 553, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":554 * BACKEND_HAS_MOUSE_CURSORS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasMouseCursors * BACKEND_HAS_SET_MOUSE_POS = enums.ImGuiBackendFlags_.ImGuiBackendFlags_HasSetMousePos * BACKEND_RENDERER_HAS_VTX_OFFSET = enums.ImGuiBackendFlags_RendererHasVtxOffset # <<<<<<<<<<<<<< * * # ==== Slider Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiBackendFlags_(ImGuiBackendFlags_RendererHasVtxOffset); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_BACKEND_RENDERER_HAS_VTX_OFFSET, __pyx_t_7) < 0) __PYX_ERR(0, 554, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":557 * * # ==== Slider Flags ==== * SLIDER_FLAGS_NONE = enums.ImGuiSliderFlags_None # <<<<<<<<<<<<<< * SLIDER_FLAGS_ALWAYS_CLAMP = enums.ImGuiSliderFlags_AlwaysClamp * SLIDER_FLAGS_LOGARITHMIC = enums.ImGuiSliderFlags_Logarithmic */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSliderFlags_(ImGuiSliderFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SLIDER_FLAGS_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":558 * # ==== Slider Flags ==== * SLIDER_FLAGS_NONE = enums.ImGuiSliderFlags_None * SLIDER_FLAGS_ALWAYS_CLAMP = enums.ImGuiSliderFlags_AlwaysClamp # <<<<<<<<<<<<<< * SLIDER_FLAGS_LOGARITHMIC = enums.ImGuiSliderFlags_Logarithmic * SLIDER_FLAGS_NO_ROUND_TO_FORMAT = enums.ImGuiSliderFlags_NoRoundToFormat */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSliderFlags_(ImGuiSliderFlags_AlwaysClamp); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SLIDER_FLAGS_ALWAYS_CLAMP, __pyx_t_7) < 0) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":559 * SLIDER_FLAGS_NONE = enums.ImGuiSliderFlags_None * SLIDER_FLAGS_ALWAYS_CLAMP = enums.ImGuiSliderFlags_AlwaysClamp * SLIDER_FLAGS_LOGARITHMIC = enums.ImGuiSliderFlags_Logarithmic # <<<<<<<<<<<<<< * SLIDER_FLAGS_NO_ROUND_TO_FORMAT = enums.ImGuiSliderFlags_NoRoundToFormat * SLIDER_FLAGS_NO_INPUT = enums.ImGuiSliderFlags_NoInput */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSliderFlags_(ImGuiSliderFlags_Logarithmic); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SLIDER_FLAGS_LOGARITHMIC, __pyx_t_7) < 0) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":560 * SLIDER_FLAGS_ALWAYS_CLAMP = enums.ImGuiSliderFlags_AlwaysClamp * SLIDER_FLAGS_LOGARITHMIC = enums.ImGuiSliderFlags_Logarithmic * SLIDER_FLAGS_NO_ROUND_TO_FORMAT = enums.ImGuiSliderFlags_NoRoundToFormat # <<<<<<<<<<<<<< * SLIDER_FLAGS_NO_INPUT = enums.ImGuiSliderFlags_NoInput * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSliderFlags_(ImGuiSliderFlags_NoRoundToFormat); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SLIDER_FLAGS_NO_ROUND_TO_FORMAT, __pyx_t_7) < 0) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":561 * SLIDER_FLAGS_LOGARITHMIC = enums.ImGuiSliderFlags_Logarithmic * SLIDER_FLAGS_NO_ROUND_TO_FORMAT = enums.ImGuiSliderFlags_NoRoundToFormat * SLIDER_FLAGS_NO_INPUT = enums.ImGuiSliderFlags_NoInput # <<<<<<<<<<<<<< * * # ==== Mouse Button ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiSliderFlags_(ImGuiSliderFlags_NoInput); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_SLIDER_FLAGS_NO_INPUT, __pyx_t_7) < 0) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":564 * * # ==== Mouse Button ==== * MOUSE_BUTTON_LEFT = enums.ImGuiMouseButton_Left # <<<<<<<<<<<<<< * MOUSE_BUTTON_RIGHT = enums.ImGuiMouseButton_Right * MOUSE_BUTTON_MIDDLE = enums.ImGuiMouseButton_Middle */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseButton_(ImGuiMouseButton_Left); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_LEFT, __pyx_t_7) < 0) __PYX_ERR(0, 564, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":565 * # ==== Mouse Button ==== * MOUSE_BUTTON_LEFT = enums.ImGuiMouseButton_Left * MOUSE_BUTTON_RIGHT = enums.ImGuiMouseButton_Right # <<<<<<<<<<<<<< * MOUSE_BUTTON_MIDDLE = enums.ImGuiMouseButton_Middle * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseButton_(ImGuiMouseButton_Right); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_RIGHT, __pyx_t_7) < 0) __PYX_ERR(0, 565, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":566 * MOUSE_BUTTON_LEFT = enums.ImGuiMouseButton_Left * MOUSE_BUTTON_RIGHT = enums.ImGuiMouseButton_Right * MOUSE_BUTTON_MIDDLE = enums.ImGuiMouseButton_Middle # <<<<<<<<<<<<<< * * # ==== Viewport Flags ==== */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiMouseButton_(ImGuiMouseButton_Middle); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_MIDDLE, __pyx_t_7) < 0) __PYX_ERR(0, 566, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":569 * * # ==== Viewport Flags ==== * VIEWPORT_FLAGS_NONE = enums.ImGuiViewportFlags_None # # <<<<<<<<<<<<<< * VIEWPORT_FLAGS_IS_PLATFORM_WINDOW = enums.ImGuiViewportFlags_IsPlatformWindow # Represent a Platform Window * VIEWPORT_FLAGS_IS_PLATFORM_MONITOR = enums.ImGuiViewportFlags_IsPlatformMonitor # Represent a Platform Monitor (unused yet) */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiViewportFlags_(ImGuiViewportFlags_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_VIEWPORT_FLAGS_NONE, __pyx_t_7) < 0) __PYX_ERR(0, 569, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":570 * # ==== Viewport Flags ==== * VIEWPORT_FLAGS_NONE = enums.ImGuiViewportFlags_None # * VIEWPORT_FLAGS_IS_PLATFORM_WINDOW = enums.ImGuiViewportFlags_IsPlatformWindow # Represent a Platform Window # <<<<<<<<<<<<<< * VIEWPORT_FLAGS_IS_PLATFORM_MONITOR = enums.ImGuiViewportFlags_IsPlatformMonitor # Represent a Platform Monitor (unused yet) * VIEWPORT_FLAGS_OWNED_BY_APP = enums.ImGuiViewportFlags_OwnedByApp # Platform Window: is created/managed by the application (rather than a dear imgui backend) */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiViewportFlags_(ImGuiViewportFlags_IsPlatformWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_VIEWPORT_FLAGS_IS_PLATFORM_WINDO, __pyx_t_7) < 0) __PYX_ERR(0, 570, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":571 * VIEWPORT_FLAGS_NONE = enums.ImGuiViewportFlags_None # * VIEWPORT_FLAGS_IS_PLATFORM_WINDOW = enums.ImGuiViewportFlags_IsPlatformWindow # Represent a Platform Window * VIEWPORT_FLAGS_IS_PLATFORM_MONITOR = enums.ImGuiViewportFlags_IsPlatformMonitor # Represent a Platform Monitor (unused yet) # <<<<<<<<<<<<<< * VIEWPORT_FLAGS_OWNED_BY_APP = enums.ImGuiViewportFlags_OwnedByApp # Platform Window: is created/managed by the application (rather than a dear imgui backend) * */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiViewportFlags_(ImGuiViewportFlags_IsPlatformMonitor); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_VIEWPORT_FLAGS_IS_PLATFORM_MONIT, __pyx_t_7) < 0) __PYX_ERR(0, 571, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/core.pyx":572 * VIEWPORT_FLAGS_IS_PLATFORM_WINDOW = enums.ImGuiViewportFlags_IsPlatformWindow # Represent a Platform Window * VIEWPORT_FLAGS_IS_PLATFORM_MONITOR = enums.ImGuiViewportFlags_IsPlatformMonitor # Represent a Platform Monitor (unused yet) * VIEWPORT_FLAGS_OWNED_BY_APP = enums.ImGuiViewportFlags_OwnedByApp # Platform Window: is created/managed by the application (rather than a dear imgui backend) # <<<<<<<<<<<<<< * * include "imgui/common.pyx" */ __pyx_t_7 = __Pyx_PyInt_From_ImGuiViewportFlags_(ImGuiViewportFlags_OwnedByApp); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_VIEWPORT_FLAGS_OWNED_BY_APP, __pyx_t_7) < 0) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/common.pyx":7 * # cython: linetrace=True * * from collections import namedtuple # <<<<<<<<<<<<<< * * Vec2 = namedtuple("Vec2", ['x', 'y']) */ __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_n_s_namedtuple); __Pyx_GIVEREF(__pyx_n_s_namedtuple); PyList_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_namedtuple); __pyx_t_1 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_7, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_namedtuple); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_namedtuple, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/common.pyx":9 * from collections import namedtuple * * Vec2 = namedtuple("Vec2", ['x', 'y']) # <<<<<<<<<<<<<< * Vec4 = namedtuple("Vec4", ['x', 'y', 'z', 'w']) * */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_namedtuple); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyList_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_n_s_x); __Pyx_GIVEREF(__pyx_n_s_x); PyList_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_x); __Pyx_INCREF(__pyx_n_s_y); __Pyx_GIVEREF(__pyx_n_s_y); PyList_SET_ITEM(__pyx_t_7, 1, __pyx_n_s_y); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_Vec2); __Pyx_GIVEREF(__pyx_n_s_Vec2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Vec2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_Vec2, __pyx_t_7) < 0) __PYX_ERR(1, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "imgui/common.pyx":10 * * Vec2 = namedtuple("Vec2", ['x', 'y']) * Vec4 = namedtuple("Vec4", ['x', 'y', 'z', 'w']) # <<<<<<<<<<<<<< * * */ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_namedtuple); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = PyList_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_x); __Pyx_GIVEREF(__pyx_n_s_x); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_x); __Pyx_INCREF(__pyx_n_s_y); __Pyx_GIVEREF(__pyx_n_s_y); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_y); __Pyx_INCREF(__pyx_n_s_z); __Pyx_GIVEREF(__pyx_n_s_z); PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_s_z); __Pyx_INCREF(__pyx_n_s_w); __Pyx_GIVEREF(__pyx_n_s_w); PyList_SET_ITEM(__pyx_t_2, 3, __pyx_n_s_w); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_Vec4); __Pyx_GIVEREF(__pyx_n_s_Vec4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Vec4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_Vec4, __pyx_t_2) < 0) __PYX_ERR(1, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/common.pyx":72 * * cdef public _ImGuiError "ImGuiError" = PyErr_NewException( * "imgui.core.ImGuiError", Exception, {} # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "imgui/common.pyx":71 * from cpython.exc cimport PyErr_NewException * * cdef public _ImGuiError "ImGuiError" = PyErr_NewException( # <<<<<<<<<<<<<< * "imgui.core.ImGuiError", Exception, {} * ) */ __pyx_t_1 = PyErr_NewException(((char *)"imgui.core.ImGuiError"), ((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XGOTREF(ImGuiError); __Pyx_DECREF_SET(ImGuiError, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/common.pyx":75 * ) * * ImGuiError = _ImGuiError # make visible to Python # <<<<<<<<<<<<<< */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_ImGuiError, ImGuiError) < 0) __PYX_ERR(1, 75, __pyx_L1_error) /* "imgui/core.pyx":576 * include "imgui/common.pyx" * * _contexts = {} # <<<<<<<<<<<<<< * cdef class _ImGuiContext(object): * cdef cimgui.ImGuiContext* _ptr */ __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_contexts, __pyx_t_1) < 0) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "imgui/core.pyx":582 * # For objects that cimgui stores as void* (such as texture_id) but need to be kept alive for rendering. * # The cache is cleared on new_frame(). * _keepalive_cache = [] # <<<<<<<<<<<<<< * * @staticmethod */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem((PyObject *)__pyx_ptype_5imgui_4core__ImGuiContext->tp_dict, __pyx_n_s_keepalive_cache, __pyx_t_1) < 0) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_5imgui_4core__ImGuiContext); /* "imgui/core.pyx":2133 * * @staticmethod * def create(): # <<<<<<<<<<<<<< * return GuiStyle._create() * */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_8GuiStyle_7create, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem((PyObject *)__pyx_ptype_5imgui_4core_GuiStyle->tp_dict, __pyx_n_s_create, __pyx_t_1) < 0) __PYX_ERR(0, 2133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_5imgui_4core_GuiStyle); /* "imgui/core.pyx":2132 * return other._ptr == self._ptr * * @staticmethod # <<<<<<<<<<<<<< * def create(): * return GuiStyle._create() */ __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_5imgui_4core_GuiStyle, __pyx_n_s_create); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem((PyObject *)__pyx_ptype_5imgui_4core_GuiStyle->tp_dict, __pyx_n_s_create, __pyx_t_2) < 0) __PYX_ERR(0, 2133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_5imgui_4core_GuiStyle); /* "imgui/core.pyx":3660 * self.free_memory() * * cdef _InputTextSharedBuffer _input_text_shared_buffer = _InputTextSharedBuffer() # <<<<<<<<<<<<<< * * cdef int _ImGuiInputTextCallback(cimgui.ImGuiInputTextCallbackData* data): */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__InputTextSharedBuffer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_XGOTREF(((PyObject *)__pyx_v_5imgui_4core__input_text_shared_buffer)); __Pyx_DECREF_SET(__pyx_v_5imgui_4core__input_text_shared_buffer, ((struct __pyx_obj_5imgui_4core__InputTextSharedBuffer *)__pyx_t_2)); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3883 * self._ptr.DesiredSize = _cast_args_ImVec2(size[0], size[1]) * * _io_clipboard = {} # <<<<<<<<<<<<<< * def get_io(): * return _IO() */ __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_io_clipboard, __pyx_t_2) < 0) __PYX_ERR(0, 3883, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3884 * * _io_clipboard = {} * def get_io(): # <<<<<<<<<<<<<< * return _IO() * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_1get_io, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_io, __pyx_t_2) < 0) __PYX_ERR(0, 3884, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3887 * return _IO() * * def get_style(): # <<<<<<<<<<<<<< * return GuiStyle.from_ref(cimgui.GetStyle()) * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_3get_style, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_style, __pyx_t_2) < 0) __PYX_ERR(0, 3887, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3891 * * * def new_frame(): # <<<<<<<<<<<<<< * """Start a new frame. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_5new_frame, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_new_frame, __pyx_t_2) < 0) __PYX_ERR(0, 3891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3904 * * * def end_frame(): # <<<<<<<<<<<<<< * """End a frame. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_7end_frame, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_frame, __pyx_t_2) < 0) __PYX_ERR(0, 3904, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3919 * * * def render(): # <<<<<<<<<<<<<< * """Finalize frame, set rendering data, and run render callback (if set). * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_9render, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_render, __pyx_t_2) < 0) __PYX_ERR(0, 3919, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3928 * * * def show_user_guide(): # <<<<<<<<<<<<<< * """Show ImGui user guide editor. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_11show_user_guide, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_show_user_guide, __pyx_t_2) < 0) __PYX_ERR(0, 3928, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3947 * * * def get_version(): # <<<<<<<<<<<<<< * """Get the version of Dear ImGui. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_13get_version, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_version, __pyx_t_2) < 0) __PYX_ERR(0, 3947, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3958 * * * def style_colors_dark(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Dark. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_15style_colors_dark, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_style_colors_dark, __pyx_t_2) < 0) __PYX_ERR(0, 3958, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3972 * * * def style_colors_classic(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Classic. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_17style_colors_classic, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_style_colors_classic, __pyx_t_2) < 0) __PYX_ERR(0, 3972, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":3987 * * * def style_colors_light(GuiStyle dst = None): # <<<<<<<<<<<<<< * """Set the style to Light. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_19style_colors_light, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_style_colors_light, __pyx_t_2) < 0) __PYX_ERR(0, 3987, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4001 * * * def show_style_editor(GuiStyle style=None): # <<<<<<<<<<<<<< * """Show ImGui style editor. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_21show_style_editor, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_show_style_editor, __pyx_t_2) < 0) __PYX_ERR(0, 4001, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4025 * * * def show_demo_window(closable=False): # <<<<<<<<<<<<<< * """Show ImGui demo window. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_23show_demo_window, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_show_demo_window, __pyx_t_2) < 0) __PYX_ERR(0, 4025, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4053 * return opened * * def show_about_window(closable=False): # <<<<<<<<<<<<<< * """ Create About window. * Display Dear ImGui version, credits and build/system information. */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_25show_about_window, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_show_about_window, __pyx_t_2) < 0) __PYX_ERR(0, 4053, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4076 * * * def show_test_window(): # <<<<<<<<<<<<<< * """Show ImGui demo window. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_27show_test_window, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_show_test_window, __pyx_t_2) < 0) __PYX_ERR(0, 4076, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4093 * * * def show_metrics_window(closable=False): # <<<<<<<<<<<<<< * """Show ImGui metrics window. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_29show_metrics_window, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_show_metrics_window, __pyx_t_2) < 0) __PYX_ERR(0, 4093, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4122 * * * def show_style_selector(str label): # <<<<<<<<<<<<<< * return cimgui.ShowStyleSelector(_bytes(label)) * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_31show_style_selector, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_show_style_selector, __pyx_t_2) < 0) __PYX_ERR(0, 4122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4126 * * * def show_font_selector(str label): # <<<<<<<<<<<<<< * cimgui.ShowFontSelector(_bytes(label)) * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_33show_font_selector, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_show_font_selector, __pyx_t_2) < 0) __PYX_ERR(0, 4126, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4176 * * * def begin(str label, closable=False, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Begin a window. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_35begin, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin, __pyx_t_2) < 0) __PYX_ERR(0, 4176, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4218 * * * def get_draw_data(): # <<<<<<<<<<<<<< * """Get draw data. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_37get_draw_data, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_draw_data, __pyx_t_2) < 0) __PYX_ERR(0, 4218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4233 * * * def end(): # <<<<<<<<<<<<<< * """End a window. * */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_39end, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end, __pyx_t_2) < 0) __PYX_ERR(0, 4233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "imgui/core.pyx":4290 * * def begin_child( * child_id label, float width = 0, float height = 0, bool border = False, # <<<<<<<<<<<<<< * cimgui.ImGuiWindowFlags flags = 0 * ): */ __pyx_t_2 = __Pyx_PyInt_From_long(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_long(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); /* "imgui/core.pyx":4291 * def begin_child( * child_id label, float width = 0, float height = 0, bool border = False, * cimgui.ImGuiWindowFlags flags = 0 # <<<<<<<<<<<<<< * ): * """Begin a scrolling region. */ __pyx_t_9 = __Pyx_PyInt_From_long(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); /* "imgui/core.pyx":4289 * * * def begin_child( # <<<<<<<<<<<<<< * child_id label, float width = 0, float height = 0, bool border = False, * cimgui.ImGuiWindowFlags flags = 0 */ __pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_t_7 = 0; __pyx_t_9 = 0; /* "imgui/core.pyx":4290 * * def begin_child( * child_id label, float width = 0, float height = 0, bool border = False, # <<<<<<<<<<<<<< * cimgui.ImGuiWindowFlags flags = 0 * ): */ __pyx_t_9 = __Pyx_PyInt_From_long(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_k__57 = __pyx_t_9; __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyInt_From_long(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_k__58 = __pyx_t_9; __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_k__59 = __pyx_t_9; __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":4289 * * * def begin_child( # <<<<<<<<<<<<<< * child_id label, float width = 0, float height = 0, bool border = False, * cimgui.ImGuiWindowFlags flags = 0 */ __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __pyx_FusedFunction_New(&__pyx_fuse_0__pyx_mdef_5imgui_4core_634begin_child, 0, __pyx_n_s_begin_child, NULL, __pyx_n_s_imgui_core, __pyx_d, ((PyObject *)__pyx_codeobj__171)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (!__Pyx_CyFunction_InitDefaults(__pyx_t_7, sizeof(__pyx_defaults2), 0)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_t_7)->__pyx_arg_width = 0; __Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_t_7)->__pyx_arg_height = 0; __Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_t_7)->__pyx_arg_border = 0; __Pyx_CyFunction_Defaults(__pyx_defaults2, __pyx_t_7)->__pyx_arg_flags = 0; __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_t_8); __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_7, __pyx_pf_5imgui_4core_647__defaults__); if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_str, __pyx_t_7) < 0) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __pyx_FusedFunction_New(&__pyx_fuse_1__pyx_mdef_5imgui_4core_636begin_child, 0, __pyx_n_s_begin_child, NULL, __pyx_n_s_imgui_core, __pyx_d, ((PyObject *)__pyx_codeobj__171)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (!__Pyx_CyFunction_InitDefaults(__pyx_t_7, sizeof(__pyx_defaults3), 0)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_t_7)->__pyx_arg_width = 0; __Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_t_7)->__pyx_arg_height = 0; __Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_t_7)->__pyx_arg_border = 0; __Pyx_CyFunction_Defaults(__pyx_defaults3, __pyx_t_7)->__pyx_arg_flags = 0; __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_t_8); __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_7, __pyx_pf_5imgui_4core_649__defaults__); if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_ImGuiID, __pyx_t_7) < 0) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __pyx_FusedFunction_New(&__pyx_mdef_5imgui_4core_41begin_child, 0, __pyx_n_s_begin_child, NULL, __pyx_n_s_imgui_core, __pyx_d, ((PyObject *)__pyx_codeobj__171)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_t_8); ((__pyx_FusedFunctionObject *) __pyx_t_7)->__signatures__ = __pyx_t_9; __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_child, __pyx_t_7) < 0) __PYX_ERR(0, 4289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4355 * ) * ) * def end_child(): # <<<<<<<<<<<<<< * """End scrolling region. * Only call if ``begin_child().visible`` is True. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_43end_child, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_child, __pyx_t_8) < 0) __PYX_ERR(0, 4355, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4365 * * * def get_content_region_max(): # <<<<<<<<<<<<<< * """Get current content boundaries in window coordinates. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_45get_content_region_max, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_content_region_max, __pyx_t_8) < 0) __PYX_ERR(0, 4365, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4380 * * * def get_content_region_available(): # <<<<<<<<<<<<<< * """Get available content region. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_47get_content_region_available, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_content_region_available, __pyx_t_8) < 0) __PYX_ERR(0, 4380, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4398 * * # OBSOLETED in 1.70 (from May 2019) * def get_content_region_available_width(): # <<<<<<<<<<<<<< * """Get available content region width. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_49get_content_region_available_width, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_content_region_available_wid, __pyx_t_8) < 0) __PYX_ERR(0, 4398, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4410 * * * def get_window_content_region_min(): # <<<<<<<<<<<<<< * """Get minimal current window content boundaries in window coordinates. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_51get_window_content_region_min, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_window_content_region_min, __pyx_t_8) < 0) __PYX_ERR(0, 4410, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4424 * * * def get_window_content_region_max(): # <<<<<<<<<<<<<< * """Get maximal current window content boundaries in window coordinates. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_53get_window_content_region_max, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_window_content_region_max, __pyx_t_8) < 0) __PYX_ERR(0, 4424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4438 * * * def get_window_content_region_width(): # <<<<<<<<<<<<<< * """Get available current window content region width. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_55get_window_content_region_width, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_window_content_region_width, __pyx_t_8) < 0) __PYX_ERR(0, 4438, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4450 * * * def set_window_focus(): # <<<<<<<<<<<<<< * """Set window to be focused * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_57set_window_focus, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_focus, __pyx_t_8) < 0) __PYX_ERR(0, 4450, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4471 * cimgui.SetWindowFocus() * * def set_window_focus_labeled(str label): # <<<<<<<<<<<<<< * """Set focus to the window named label * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_59set_window_focus_labeled, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_focus_labeled, __pyx_t_8) < 0) __PYX_ERR(0, 4471, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4503 * * def set_window_size( * float width, float height, cimgui.ImGuiCond condition=ONCE): # <<<<<<<<<<<<<< * """Set window size * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ONCE); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4503, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__64 = __pyx_t_11; /* "imgui/core.pyx":4502 * cimgui.SetWindowFocus(_bytes(label)) * * def set_window_size( # <<<<<<<<<<<<<< * float width, float height, cimgui.ImGuiCond condition=ONCE): * """Set window size */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_61set_window_size, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_size, __pyx_t_8) < 0) __PYX_ERR(0, 4502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4534 * cimgui.SetWindowSize(_cast_args_ImVec2(width, height), condition) * * def set_window_size_named(str label, float width, float height, cimgui.ImGuiCond condition = ONCE): # <<<<<<<<<<<<<< * """Set the window with label to some size * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ONCE); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4534, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__65 = __pyx_t_11; __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_63set_window_size_named, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_size_named, __pyx_t_8) < 0) __PYX_ERR(0, 4534, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4571 * ) * * def get_scroll_x(): # <<<<<<<<<<<<<< * """get scrolling amount [0..GetScrollMaxX()] * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_65get_scroll_x, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_scroll_x, __pyx_t_8) < 0) __PYX_ERR(0, 4571, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4583 * * * def get_scroll_y(): # <<<<<<<<<<<<<< * """get scrolling amount [0..GetScrollMaxY()] * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_67get_scroll_y, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_scroll_y, __pyx_t_8) < 0) __PYX_ERR(0, 4583, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4595 * * * def get_scroll_max_x(): # <<<<<<<<<<<<<< * """get maximum scrolling amount ~~ ContentSize.X - WindowSize.X * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_69get_scroll_max_x, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_scroll_max_x, __pyx_t_8) < 0) __PYX_ERR(0, 4595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4607 * * * def get_scroll_max_y(): # <<<<<<<<<<<<<< * """get maximum scrolling amount ~~ ContentSize.X - WindowSize.X * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_71get_scroll_max_y, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_scroll_max_y, __pyx_t_8) < 0) __PYX_ERR(0, 4607, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4619 * * * def set_scroll_x(float scroll_x): # <<<<<<<<<<<<<< * """set scrolling amount [0..SetScrollMaxX()] * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_73set_scroll_x, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_scroll_x, __pyx_t_8) < 0) __PYX_ERR(0, 4619, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4628 * * * def set_scroll_y(float scroll_y): # <<<<<<<<<<<<<< * """set scrolling amount [0..SetScrollMaxY()] * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_75set_scroll_y, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4628, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_scroll_y, __pyx_t_8) < 0) __PYX_ERR(0, 4628, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4637 * * * def set_window_font_scale(float scale): # <<<<<<<<<<<<<< * """Adjust per-window font scale for current window. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_77set_window_font_scale, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_font_scale, __pyx_t_8) < 0) __PYX_ERR(0, 4637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4664 * * def set_next_window_collapsed( * cimgui.bool collapsed, cimgui.ImGuiCond condition=ALWAYS # <<<<<<<<<<<<<< * ): * """Set next window collapsed state. */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ALWAYS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4664, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__66 = __pyx_t_11; /* "imgui/core.pyx":4663 * * * def set_next_window_collapsed( # <<<<<<<<<<<<<< * cimgui.bool collapsed, cimgui.ImGuiCond condition=ALWAYS * ): */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_79set_next_window_collapsed, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_next_window_collapsed, __pyx_t_8) < 0) __PYX_ERR(0, 4663, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4693 * * * def set_next_window_focus(): # <<<<<<<<<<<<<< * """Set next window to be focused (most front). * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_81set_next_window_focus, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_next_window_focus, __pyx_t_8) < 0) __PYX_ERR(0, 4693, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4702 * * * def set_next_window_bg_alpha(float alpha): # <<<<<<<<<<<<<< * """set next window background color alpha. helper to easily modify ImGuiCol_WindowBg/ChildBg/PopupBg. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_83set_next_window_bg_alpha, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_next_window_bg_alpha, __pyx_t_8) < 0) __PYX_ERR(0, 4702, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4711 * * * def get_window_draw_list(): # <<<<<<<<<<<<<< * """Get the draw list associated with the window, to append your own drawing primitives * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_85get_window_draw_list, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_window_draw_list, __pyx_t_8) < 0) __PYX_ERR(0, 4711, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4750 * * # OBSOLETED in 1.69 (from Mar 2019) * def get_overlay_draw_list(): # <<<<<<<<<<<<<< * """Get a special draw list that will be drawn last (over all windows). * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_87get_overlay_draw_list, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_overlay_draw_list, __pyx_t_8) < 0) __PYX_ERR(0, 4750, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4764 * * * def get_window_position(): # <<<<<<<<<<<<<< * """Get current window position. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_89get_window_position, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_window_position, __pyx_t_8) < 0) __PYX_ERR(0, 4764, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4779 * * * def get_window_size(): # <<<<<<<<<<<<<< * """Get current window size. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_91get_window_size, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_window_size, __pyx_t_8) < 0) __PYX_ERR(0, 4779, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4791 * * * def get_window_width(): # <<<<<<<<<<<<<< * """Get current window width. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_93get_window_width, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_window_width, __pyx_t_8) < 0) __PYX_ERR(0, 4791, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4803 * * * def get_window_height(): # <<<<<<<<<<<<<< * """Get current window height. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_95get_window_height, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_window_height, __pyx_t_8) < 0) __PYX_ERR(0, 4803, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4816 * * def set_next_window_position( * float x, float y, cimgui.ImGuiCond condition=ALWAYS, float pivot_x=0, float pivot_y=0 # <<<<<<<<<<<<<< * ): * """Set next window position. */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ALWAYS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4816, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__67 = __pyx_t_11; /* "imgui/core.pyx":4815 * * * def set_next_window_position( # <<<<<<<<<<<<<< * float x, float y, cimgui.ImGuiCond condition=ALWAYS, float pivot_x=0, float pivot_y=0 * ): */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_97set_next_window_position, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_next_window_position, __pyx_t_8) < 0) __PYX_ERR(0, 4815, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4853 * * def set_next_window_size( * float width, float height, cimgui.ImGuiCond condition=ALWAYS # <<<<<<<<<<<<<< * ): * """Set next window size. */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ALWAYS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4853, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__68 = __pyx_t_11; /* "imgui/core.pyx":4852 * * * def set_next_window_size( # <<<<<<<<<<<<<< * float width, float height, cimgui.ImGuiCond condition=ALWAYS * ): */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_99set_next_window_size, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_next_window_size, __pyx_t_8) < 0) __PYX_ERR(0, 4852, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4884 * * # Useful for non trivial constraints * cdef _callback_user_info _global_next_window_size_constraints_callback_user_info = _callback_user_info() # <<<<<<<<<<<<<< * def set_next_window_size_constraints( * tuple size_min, */ __pyx_t_8 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5imgui_4core__callback_user_info)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_XGOTREF(((PyObject *)__pyx_v_5imgui_4core__global_next_window_size_constraints_callback_user_info)); __Pyx_DECREF_SET(__pyx_v_5imgui_4core__global_next_window_size_constraints_callback_user_info, ((struct __pyx_obj_5imgui_4core__callback_user_info *)__pyx_t_8)); __Pyx_GIVEREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4885 * # Useful for non trivial constraints * cdef _callback_user_info _global_next_window_size_constraints_callback_user_info = _callback_user_info() * def set_next_window_size_constraints( # <<<<<<<<<<<<<< * tuple size_min, * tuple size_max, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_101set_next_window_size_constraints, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_next_window_size_constraints, __pyx_t_8) < 0) __PYX_ERR(0, 4885, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4933 * _callback, _user_data) * * def set_next_window_content_size(float width, float height): # <<<<<<<<<<<<<< * """Set content size of the next window. Show scrollbars * if content doesn't fit in the window */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_103set_next_window_content_size, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_next_window_content_size, __pyx_t_8) < 0) __PYX_ERR(0, 4933, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4961 * cimgui.SetNextWindowContentSize(_cast_args_ImVec2(width, height)) * * def set_window_position(float x, float y, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the size of the current window * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ALWAYS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4961, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__69 = __pyx_t_11; __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_105set_window_position, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_position, __pyx_t_8) < 0) __PYX_ERR(0, 4961, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":4992 * cimgui.SetWindowPos(_cast_args_ImVec2(x,y), condition) * * def set_window_position_labeled(str label, float x, float y, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the size of the window with label * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ALWAYS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 4992, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__70 = __pyx_t_11; __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_107set_window_position_labeled, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_position_labeled, __pyx_t_8) < 0) __PYX_ERR(0, 4992, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5029 * ) * * def set_window_collapsed(bool collapsed, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set the current window to be collapsed * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ALWAYS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5029, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__71 = __pyx_t_11; __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_109set_window_collapsed, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_collapsed, __pyx_t_8) < 0) __PYX_ERR(0, 5029, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5055 * cimgui.SetWindowCollapsed(collapsed, condition) * * def set_window_collapsed_labeled(str label, bool collapsed, cimgui.ImGuiCond condition = ALWAYS): # <<<<<<<<<<<<<< * """Set window with label to collapse * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ALWAYS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_11 = __Pyx_PyInt_As_ImGuiCond(__pyx_t_8); if (unlikely((__pyx_t_11 == ((ImGuiCond)-1)) && PyErr_Occurred())) __PYX_ERR(0, 5055, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__72 = __pyx_t_11; __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_111set_window_collapsed_labeled, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_window_collapsed_labeled, __pyx_t_8) < 0) __PYX_ERR(0, 5055, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5082 * * * def is_window_collapsed(): # <<<<<<<<<<<<<< * """Check if current window is collapsed. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_113is_window_collapsed, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_window_collapsed, __pyx_t_8) < 0) __PYX_ERR(0, 5082, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5091 * * * def is_window_appearing(): # <<<<<<<<<<<<<< * """Check if current window is appearing. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_115is_window_appearing, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_window_appearing, __pyx_t_8) < 0) __PYX_ERR(0, 5091, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5101 * * * def tree_node(str text, cimgui.ImGuiTreeNodeFlags flags=0): # <<<<<<<<<<<<<< * """Draw a tree node. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_117tree_node, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_tree_node, __pyx_t_8) < 0) __PYX_ERR(0, 5101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5133 * * * def tree_pop(): # <<<<<<<<<<<<<< * """Called to clear the tree nodes stack and return back the identation. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_119tree_pop, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_tree_pop, __pyx_t_8) < 0) __PYX_ERR(0, 5133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5144 * cimgui.TreePop() * * def get_tree_node_to_label_spacing(): # <<<<<<<<<<<<<< * """Horizontal distance preceding label when using ``tree_node*()`` * or ``bullet() == (g.FontSize + style.FramePadding.x*2)`` for a */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_121get_tree_node_to_label_spacing, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_tree_node_to_label_spacing, __pyx_t_8) < 0) __PYX_ERR(0, 5144, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5169 * return cimgui.GetTreeNodeToLabelSpacing() * * def collapsing_header( # <<<<<<<<<<<<<< * str text, * visible=None, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_123collapsing_header, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_collapsing_header, __pyx_t_8) < 0) __PYX_ERR(0, 5169, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5224 * return clicked, None if visible is None else inout_opened * * def set_next_item_open(bool is_open, cimgui.ImGuiCond condition = 0): # <<<<<<<<<<<<<< * """Set next TreeNode/CollapsingHeader open state. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_125set_next_item_open, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_next_item_open, __pyx_t_8) < 0) __PYX_ERR(0, 5224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5237 * cimgui.SetNextItemOpen(is_open, condition) * * def selectable( # <<<<<<<<<<<<<< * str label, * selected=False, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_127selectable, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_selectable, __pyx_t_8) < 0) __PYX_ERR(0, 5237, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5301 * * * def listbox( # <<<<<<<<<<<<<< * str label, * int current, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_129listbox, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_listbox, __pyx_t_8) < 0) __PYX_ERR(0, 5301, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5407 * * * def begin_list_box( # <<<<<<<<<<<<<< * str label, * width = 0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_131begin_list_box, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_list_box, __pyx_t_8) < 0) __PYX_ERR(0, 5407, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5467 * ) * * def listbox_header( # OBSOLETED in 1.81 (from February 2021) # <<<<<<<<<<<<<< * str label, * width=0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_133listbox_header, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_listbox_header, __pyx_t_8) < 0) __PYX_ERR(0, 5467, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5493 * return begin_list_box(label, width, height) * * def end_list_box(): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_135end_list_box, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_list_box, __pyx_t_8) < 0) __PYX_ERR(0, 5493, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5506 * cimgui.EndListBox() * * def listbox_footer(): # OBSOLETED in 1.81 (from February 2021) # <<<<<<<<<<<<<< * """*Obsoleted in imgui v1.81 from February 2021, refer to :func:`end_list_box()`* * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_137listbox_footer, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_listbox_footer, __pyx_t_8) < 0) __PYX_ERR(0, 5506, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5519 * * * def set_tooltip(str text): # <<<<<<<<<<<<<< * """Set tooltip under mouse-cursor. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_139set_tooltip, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_tooltip, __pyx_t_8) < 0) __PYX_ERR(0, 5519, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5567 * * * def begin_tooltip(): # <<<<<<<<<<<<<< * """Use to create full-featured tooltip windows that aren't just text. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_141begin_tooltip, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_tooltip, __pyx_t_8) < 0) __PYX_ERR(0, 5567, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5597 * * * def end_tooltip(): # <<<<<<<<<<<<<< * """End tooltip window. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_143end_tooltip, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_tooltip, __pyx_t_8) < 0) __PYX_ERR(0, 5597, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5648 * * * def begin_main_menu_bar(): # <<<<<<<<<<<<<< * """Create new full-screen menu bar. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_145begin_main_menu_bar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_main_menu_bar, __pyx_t_8) < 0) __PYX_ERR(0, 5648, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5704 * * * def end_main_menu_bar(): # <<<<<<<<<<<<<< * """Close main menu bar context. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_147end_main_menu_bar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_main_menu_bar, __pyx_t_8) < 0) __PYX_ERR(0, 5704, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5758 * * * def begin_menu_bar(): # <<<<<<<<<<<<<< * """Append new menu menu bar to current window. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_149begin_menu_bar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_menu_bar, __pyx_t_8) < 0) __PYX_ERR(0, 5758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5812 * * * def end_menu_bar(): # <<<<<<<<<<<<<< * """Close menu bar context. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_151end_menu_bar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_menu_bar, __pyx_t_8) < 0) __PYX_ERR(0, 5812, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5866 * * * def begin_menu(str label, enabled=True): # <<<<<<<<<<<<<< * """Create new expandable menu in current menu bar. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_153begin_menu, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_menu, __pyx_t_8) < 0) __PYX_ERR(0, 5866, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5896 * * * def end_menu(): # <<<<<<<<<<<<<< * """Close menu context. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_155end_menu, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_menu, __pyx_t_8) < 0) __PYX_ERR(0, 5896, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5910 * * * def menu_item( # <<<<<<<<<<<<<< * str label, str shortcut=None, cimgui.bool selected=False, enabled=True * ): */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_157menu_item, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_menu_item, __pyx_t_8) < 0) __PYX_ERR(0, 5910, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":5963 * * * def open_popup(str label, cimgui.ImGuiPopupFlags flags=0): # <<<<<<<<<<<<<< * """Open a popup window. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_159open_popup, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_open_popup, __pyx_t_8) < 0) __PYX_ERR(0, 5963, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6000 * cimgui.OpenPopup(_bytes(label), flags) * * def open_popup_on_item_click(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): # <<<<<<<<<<<<<< * """Helper to open popup when clicked on last item. * (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_161open_popup_on_item_click, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_open_popup_on_item_click, __pyx_t_8) < 0) __PYX_ERR(0, 6000, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6057 * * * def begin_popup(str label, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Open a popup window. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_163begin_popup, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_popup, __pyx_t_8) < 0) __PYX_ERR(0, 6057, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6172 * * * def begin_popup_modal(str title, visible=None, cimgui.ImGuiWindowFlags flags=0): # <<<<<<<<<<<<<< * """Begin pouring popup contents. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_165begin_popup_modal, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_popup_modal, __pyx_t_8) < 0) __PYX_ERR(0, 6172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6255 * * * def begin_popup_context_item(str label = None, cimgui.ImGuiPopupFlags mouse_button = 1): # <<<<<<<<<<<<<< * """This is a helper function to handle the most simple case of associating * one named popup to one given widget. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_167begin_popup_context_item, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_popup_context_item, __pyx_t_8) < 0) __PYX_ERR(0, 6255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6302 * * * def begin_popup_context_window( # <<<<<<<<<<<<<< * str label = None, * cimgui.ImGuiPopupFlags popup_flags = 1, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_169begin_popup_context_window, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_popup_context_window, __pyx_t_8) < 0) __PYX_ERR(0, 6302, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6365 * ) * * def begin_popup_context_void(str label = None, cimgui.ImGuiPopupFlags popup_flags = 1): # <<<<<<<<<<<<<< * """Open+begin popup when clicked in void (where there are no windows). * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_171begin_popup_context_void, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_popup_context_void, __pyx_t_8) < 0) __PYX_ERR(0, 6365, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6392 * ) * * def is_popup_open( str label, cimgui.ImGuiPopupFlags flags = 0): # <<<<<<<<<<<<<< * """Popups: test function * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_173is_popup_open, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_popup_open, __pyx_t_8) < 0) __PYX_ERR(0, 6392, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6406 * return cimgui.IsPopupOpen(_bytes(label), flags) * * def end_popup(): # <<<<<<<<<<<<<< * """End a popup window. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_175end_popup, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_popup, __pyx_t_8) < 0) __PYX_ERR(0, 6406, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6421 * * * def close_current_popup(): # <<<<<<<<<<<<<< * """Close the current popup window begin-ed directly above this call. * Clicking on a :func:`menu_item()` or :func:`selectable()` automatically */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_177close_current_popup, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_close_current_popup, __pyx_t_8) < 0) __PYX_ERR(0, 6421, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6475 * * * def begin_table( # <<<<<<<<<<<<<< * str label, * int column, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_179begin_table, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_table, __pyx_t_8) < 0) __PYX_ERR(0, 6475, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6510 * ) * * def end_table(): # <<<<<<<<<<<<<< * """ * End a previously opened table. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_181end_table, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_table, __pyx_t_8) < 0) __PYX_ERR(0, 6510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6520 * cimgui.EndTable() * * def table_next_row( # <<<<<<<<<<<<<< * cimgui.ImGuiTableRowFlags row_flags = 0, * float min_row_height = 0.0 */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_183table_next_row, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_next_row, __pyx_t_8) < 0) __PYX_ERR(0, 6520, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6534 * cimgui.TableNextRow(row_flags, min_row_height) * * def table_next_column(): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_185table_next_column, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_next_column, __pyx_t_8) < 0) __PYX_ERR(0, 6534, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6542 * return cimgui.TableNextColumn() * * def table_set_column_index(int column_n): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_187table_set_column_index, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_set_column_index, __pyx_t_8) < 0) __PYX_ERR(0, 6542, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6550 * return cimgui.TableSetColumnIndex(column_n) * * def table_setup_column( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiTableColumnFlags flags = 0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_189table_setup_column, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_setup_column, __pyx_t_8) < 0) __PYX_ERR(0, 6550, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6572 * user_id) * * def table_setup_scroll_freeze(int cols, int rows): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_191table_setup_scroll_freeze, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_setup_scroll_freeze, __pyx_t_8) < 0) __PYX_ERR(0, 6572, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6580 * cimgui.TableSetupScrollFreeze(cols, rows) * * def table_headers_row(): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_193table_headers_row, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_headers_row, __pyx_t_8) < 0) __PYX_ERR(0, 6580, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6588 * cimgui.TableHeadersRow() * * def table_header(str label): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_195table_header, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_header, __pyx_t_8) < 0) __PYX_ERR(0, 6588, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6596 * cimgui.TableHeader(_bytes(label)) * * def table_get_sort_specs(): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_197table_get_sort_specs, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_get_sort_specs, __pyx_t_8) < 0) __PYX_ERR(0, 6596, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6608 * return _ImGuiTableSortSpecs.from_ptr(imgui_sort_spec) * * def table_get_column_count(): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_199table_get_column_count, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_get_column_count, __pyx_t_8) < 0) __PYX_ERR(0, 6608, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6616 * return cimgui.TableGetColumnCount() * * def table_get_column_index(): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_201table_get_column_index, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_get_column_index, __pyx_t_8) < 0) __PYX_ERR(0, 6616, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6624 * return cimgui.TableGetColumnIndex() * * def table_get_row_index(): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_203table_get_row_index, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_get_row_index, __pyx_t_8) < 0) __PYX_ERR(0, 6624, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6632 * return cimgui.TableGetRowIndex() * * def table_get_column_name(int column_n = -1): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_205table_get_column_name, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_get_column_name, __pyx_t_8) < 0) __PYX_ERR(0, 6632, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6642 * return _from_bytes(cimgui.TableGetColumnName(column_n)) * * def table_get_column_flags(int column_n = -1): # <<<<<<<<<<<<<< * """ * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_207table_get_column_flags, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_get_column_flags, __pyx_t_8) < 0) __PYX_ERR(0, 6642, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6652 * return cimgui.TableGetColumnFlags(column_n) * * def table_set_background_color( # <<<<<<<<<<<<<< * cimgui.ImGuiTableBgTarget target, * cimgui.ImU32 color, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_209table_set_background_color, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_table_set_background_color, __pyx_t_8) < 0) __PYX_ERR(0, 6652, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6668 * cimgui.TableSetBgColor(target, color, column_n) * * def text(str text): # <<<<<<<<<<<<<< * """Add text to current widget stack. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_211text, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_text, __pyx_t_8) < 0) __PYX_ERR(0, 6668, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6690 * * * def text_colored(str text, float r, float g, float b, float a=1.): # <<<<<<<<<<<<<< * """Add colored text to current widget stack. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_213text_colored, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_colored, __pyx_t_8) < 0) __PYX_ERR(0, 6690, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6725 * * * def text_disabled(str text): # <<<<<<<<<<<<<< * """Add disabled(grayed out) text to current widget stack. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_215text_disabled, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_disabled, __pyx_t_8) < 0) __PYX_ERR(0, 6725, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6746 * cimgui.TextDisabled("%s", _bytes(text)) * * def text_wrapped(str text): # <<<<<<<<<<<<<< * """Add wrappable text to current widget stack. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_217text_wrapped, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_wrapped, __pyx_t_8) < 0) __PYX_ERR(0, 6746, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6770 * * * def label_text(str label, str text): # <<<<<<<<<<<<<< * """Display text+label aligned the same way as value+label widgets. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_219label_text, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_label_text, __pyx_t_8) < 0) __PYX_ERR(0, 6770, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6793 * * * def text_unformatted(str text): # <<<<<<<<<<<<<< * """Big area text display - the size is defined by it's container. * Recommended for long chunks of text. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_221text_unformatted, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_unformatted, __pyx_t_8) < 0) __PYX_ERR(0, 6793, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6816 * * * def bullet(): # <<<<<<<<<<<<<< * """Display a small circle and keep the cursor on the same line. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_223bullet, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_bullet, __pyx_t_8) < 0) __PYX_ERR(0, 6816, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6839 * * * def bullet_text(str text): # <<<<<<<<<<<<<< * """Display bullet and text. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_225bullet_text, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_bullet_text, __pyx_t_8) < 0) __PYX_ERR(0, 6839, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6869 * * * def button(str label, width=0, height=0): # <<<<<<<<<<<<<< * """Display button. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_227button, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_button, __pyx_t_8) < 0) __PYX_ERR(0, 6869, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6895 * * * def small_button(str label): # <<<<<<<<<<<<<< * """Display small button (with 0 frame padding). * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_229small_button, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_small_button, __pyx_t_8) < 0) __PYX_ERR(0, 6895, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6918 * return cimgui.SmallButton(_bytes(label)) * * def arrow_button(str label, cimgui.ImGuiDir direction = DIRECTION_NONE): # <<<<<<<<<<<<<< * """Display an arrow button * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_DIRECTION_NONE); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_12 = __Pyx_PyInt_As_ImGuiDir(__pyx_t_8); if (unlikely((__pyx_t_12 == ((ImGuiDir)-1)) && PyErr_Occurred())) __PYX_ERR(0, 6918, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__88 = __pyx_t_12; __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_231arrow_button, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_arrow_button, __pyx_t_8) < 0) __PYX_ERR(0, 6918, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6943 * return cimgui.ArrowButton(_bytes(label), direction) * * def invisible_button(str identifier, float width, float height, cimgui.ImGuiButtonFlags flags = 0): # <<<<<<<<<<<<<< * """Create invisible button. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_233invisible_button, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_invisible_button, __pyx_t_8) < 0) __PYX_ERR(0, 6943, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":6978 * * * def color_button( # <<<<<<<<<<<<<< * str desc_id, * float r, float g, float b, a=1., */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_235color_button, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_color_button, __pyx_t_8) < 0) __PYX_ERR(0, 6978, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7022 * * * def image_button( # <<<<<<<<<<<<<< * texture_id, * float width, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_237image_button, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_image_button, __pyx_t_8) < 0) __PYX_ERR(0, 7022, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7076 * * * def image( # <<<<<<<<<<<<<< * texture_id, * float width, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_239image, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_image, __pyx_t_8) < 0) __PYX_ERR(0, 7076, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7130 * * * def checkbox(str label, cimgui.bool state): # <<<<<<<<<<<<<< * """Display checkbox widget. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_241checkbox, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_checkbox, __pyx_t_8) < 0) __PYX_ERR(0, 7130, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7175 * * * def checkbox_flags(str label, unsigned int flags, unsigned int flags_value): # <<<<<<<<<<<<<< * """Display checkbox widget that handle integer flags (bit fields). * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_243checkbox_flags, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_checkbox_flags, __pyx_t_8) < 0) __PYX_ERR(0, 7175, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7232 * * * def radio_button(str label, cimgui.bool active): # <<<<<<<<<<<<<< * """Display radio button widget * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_245radio_button, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_radio_button, __pyx_t_8) < 0) __PYX_ERR(0, 7232, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7303 * * * def begin_combo(str label, str preview_value, cimgui.ImGuiComboFlags flags = 0): # <<<<<<<<<<<<<< * """Begin a combo box with control over how items are displayed. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_247begin_combo, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_combo, __pyx_t_8) < 0) __PYX_ERR(0, 7303, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7373 * ) * ) * def end_combo(): # <<<<<<<<<<<<<< * """End combo box. * Only call if ``begin_combo().opened`` is True. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_249end_combo, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_combo, __pyx_t_8) < 0) __PYX_ERR(0, 7373, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7383 * * * def combo(str label, int current, list items, int height_in_items=-1): # <<<<<<<<<<<<<< * """Display combo widget. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_251combo, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_combo, __pyx_t_8) < 0) __PYX_ERR(0, 7383, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7427 * * * def color_edit3(str label, float r, float g, float b, cimgui.ImGuiColorEditFlags flags = 0): # <<<<<<<<<<<<<< * """Display color edit widget for color without alpha value. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_253color_edit3, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_color_edit3, __pyx_t_8) < 0) __PYX_ERR(0, 7427, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7471 * * * def color_edit4(str label, float r, float g, float b, float a, cimgui.ImGuiColorEditFlags flags = 0): # <<<<<<<<<<<<<< * """Display color edit widget for color with alpha value. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_255color_edit4, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_color_edit4, __pyx_t_8) < 0) __PYX_ERR(0, 7471, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7516 * * * def drag_float( # <<<<<<<<<<<<<< * str label, float value, * float change_speed = 1.0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_257drag_float, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_float, __pyx_t_8) < 0) __PYX_ERR(0, 7516, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7586 * * * def drag_float2( # <<<<<<<<<<<<<< * str label, float value0, float value1, * float change_speed = 1.0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_259drag_float2, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_float2, __pyx_t_8) < 0) __PYX_ERR(0, 7586, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7649 * * * def drag_float3( # <<<<<<<<<<<<<< * str label, float value0, float value1, float value2, * float change_speed = 1.0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_261drag_float3, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_float3, __pyx_t_8) < 0) __PYX_ERR(0, 7649, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7712 * * * def drag_float4( # <<<<<<<<<<<<<< * str label, float value0, float value1, float value2, float value3, * float change_speed = 1.0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_263drag_float4, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7712, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_float4, __pyx_t_8) < 0) __PYX_ERR(0, 7712, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7774 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_float_range2( # <<<<<<<<<<<<<< * str label, * float current_min, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_265drag_float_range2, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7774, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_float_range2, __pyx_t_8) < 0) __PYX_ERR(0, 7774, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7856 * * * def drag_int( # <<<<<<<<<<<<<< * str label, int value, * float change_speed = 1.0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_267drag_int, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_int, __pyx_t_8) < 0) __PYX_ERR(0, 7856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7918 * * * def drag_int2( # <<<<<<<<<<<<<< * str label, int value0, int value1, * float change_speed = 1.0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_269drag_int2, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_int2, __pyx_t_8) < 0) __PYX_ERR(0, 7918, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":7975 * * * def drag_int3( # <<<<<<<<<<<<<< * str label, int value0, int value1, int value2, * float change_speed = 1.0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_271drag_int3, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_int3, __pyx_t_8) < 0) __PYX_ERR(0, 7975, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8032 * * * def drag_int4( # <<<<<<<<<<<<<< * str label, int value0, int value1, int value2, int value3, * float change_speed = 1.0, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_273drag_int4, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_int4, __pyx_t_8) < 0) __PYX_ERR(0, 8032, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8088 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def drag_int_range2( # <<<<<<<<<<<<<< * str label, * int current_min, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_275drag_int_range2, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_int_range2, __pyx_t_8) < 0) __PYX_ERR(0, 8088, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8169 * * * def drag_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_277drag_scalar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_scalar, __pyx_t_8) < 0) __PYX_ERR(0, 8169, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8238 * return changed, data * * def drag_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_279drag_scalar_N, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_drag_scalar_N, __pyx_t_8) < 0) __PYX_ERR(0, 8238, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8311 * return changed, data * * def input_text( # <<<<<<<<<<<<<< * str label, * str value, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_281input_text, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_text, __pyx_t_8) < 0) __PYX_ERR(0, 8311, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8392 * * * def input_text_multiline( # <<<<<<<<<<<<<< * str label, * str value, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_283input_text_multiline, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_text_multiline, __pyx_t_8) < 0) __PYX_ERR(0, 8392, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8485 * * * def input_text_with_hint( # <<<<<<<<<<<<<< * str label, * str hint, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_285input_text_with_hint, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_text_with_hint, __pyx_t_8) < 0) __PYX_ERR(0, 8485, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8567 * return changed, output * * def input_float( # <<<<<<<<<<<<<< * str label, * float value, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_287input_float, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_float, __pyx_t_8) < 0) __PYX_ERR(0, 8567, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8618 * ), inout_value * * def input_float2( # <<<<<<<<<<<<<< * str label, * float value0, float value1, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_289input_float2, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_float2, __pyx_t_8) < 0) __PYX_ERR(0, 8618, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8663 * ), (inout_values[0], inout_values[1]) * * def input_float3( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_291input_float3, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_float3, __pyx_t_8) < 0) __PYX_ERR(0, 8663, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8708 * ), (inout_values[0], inout_values[1], inout_values[2]) * * def input_float4( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, float value3, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_293input_float4, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_float4, __pyx_t_8) < 0) __PYX_ERR(0, 8708, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8754 * * * def input_int( # <<<<<<<<<<<<<< * str label, * int value, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_295input_int, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_int, __pyx_t_8) < 0) __PYX_ERR(0, 8754, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8802 * * * def input_int2( # <<<<<<<<<<<<<< * str label, * int value0, int value1, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_297input_int2, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_int2, __pyx_t_8) < 0) __PYX_ERR(0, 8802, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8844 * * * def input_int3( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_299input_int3, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_int3, __pyx_t_8) < 0) __PYX_ERR(0, 8844, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8886 * * * def input_int4( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, int value3, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_301input_int4, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_int4, __pyx_t_8) < 0) __PYX_ERR(0, 8886, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8928 * * * def input_double( # <<<<<<<<<<<<<< * str label, * double value, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_303input_double, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_double, __pyx_t_8) < 0) __PYX_ERR(0, 8928, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":8978 * ), inout_value * * def input_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_305input_scalar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_scalar, __pyx_t_8) < 0) __PYX_ERR(0, 8978, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9042 * return changed, data * * def input_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_307input_scalar_N, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9042, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_input_scalar_N, __pyx_t_8) < 0) __PYX_ERR(0, 9042, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9110 * return changed, data * * def slider_float( # <<<<<<<<<<<<<< * str label, * float value, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_309slider_float, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_float, __pyx_t_8) < 0) __PYX_ERR(0, 9110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9172 * * * def slider_float2( # <<<<<<<<<<<<<< * str label, * float value0, float value1, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_311slider_float2, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_float2, __pyx_t_8) < 0) __PYX_ERR(0, 9172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9235 * * * def slider_float3( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_313slider_float3, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_float3, __pyx_t_8) < 0) __PYX_ERR(0, 9235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9297 * * * def slider_float4( # <<<<<<<<<<<<<< * str label, * float value0, float value1, float value2, float value3, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_315slider_float4, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_float4, __pyx_t_8) < 0) __PYX_ERR(0, 9297, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9358 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_angle( # <<<<<<<<<<<<<< * str label, * float rad_value, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_317slider_angle, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_angle, __pyx_t_8) < 0) __PYX_ERR(0, 9358, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9414 * ), inout_r_value * * def slider_int( # <<<<<<<<<<<<<< * str label, * int value, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_319slider_int, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_int, __pyx_t_8) < 0) __PYX_ERR(0, 9414, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9472 * * * def slider_int2( # <<<<<<<<<<<<<< * str label, * int value0, int value1, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_321slider_int2, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_int2, __pyx_t_8) < 0) __PYX_ERR(0, 9472, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9530 * * * def slider_int3( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_323slider_int3, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_int3, __pyx_t_8) < 0) __PYX_ERR(0, 9530, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9588 * * * def slider_int4( # <<<<<<<<<<<<<< * str label, * int value0, int value1, int value2, int value3, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_325slider_int4, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_int4, __pyx_t_8) < 0) __PYX_ERR(0, 9588, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9644 * ), (inout_values[0], inout_values[1], inout_values[2], inout_values[3]) * * def slider_scalar( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_327slider_scalar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_scalar, __pyx_t_8) < 0) __PYX_ERR(0, 9644, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9706 * return changed, data * * def slider_scalar_N( # <<<<<<<<<<<<<< * str label, * cimgui.ImGuiDataType data_type, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_329slider_scalar_N, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_slider_scalar_N, __pyx_t_8) < 0) __PYX_ERR(0, 9706, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9772 * return changed, data * * def v_slider_float( # <<<<<<<<<<<<<< * str label, * float width, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_331v_slider_float, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_v_slider_float, __pyx_t_8) < 0) __PYX_ERR(0, 9772, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9838 * * * def v_slider_int( # <<<<<<<<<<<<<< * str label, * float width, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_333v_slider_int, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_v_slider_int, __pyx_t_8) < 0) __PYX_ERR(0, 9838, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9903 * * * def v_slider_scalar( # <<<<<<<<<<<<<< * str label, * float width, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_335v_slider_scalar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9903, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_v_slider_scalar, __pyx_t_8) < 0) __PYX_ERR(0, 9903, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":9977 * int values_offset = 0, * str overlay_text = None, * float scale_min = FLOAT_MAX, # <<<<<<<<<<<<<< * float scale_max = FLOAT_MAX, * graph_size = (0, 0), */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_FLOAT_MAX); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9977, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_13 = __pyx_PyFloat_AsFloat(__pyx_t_8); if (unlikely((__pyx_t_13 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9977, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__95 = __pyx_t_13; /* "imgui/core.pyx":9978 * str overlay_text = None, * float scale_min = FLOAT_MAX, * float scale_max = FLOAT_MAX, # <<<<<<<<<<<<<< * graph_size = (0, 0), * int stride = sizeof(float), */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_FLOAT_MAX); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_13 = __pyx_PyFloat_AsFloat(__pyx_t_8); if (unlikely((__pyx_t_13 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 9978, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_k__96 = __pyx_t_13; /* "imgui/core.pyx":9980 * float scale_max = FLOAT_MAX, * graph_size = (0, 0), * int stride = sizeof(float), # <<<<<<<<<<<<<< * ): * */ __pyx_k__97 = (sizeof(float)); /* "imgui/core.pyx":9971 * return changed, data * * def plot_lines( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_337plot_lines, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_plot_lines, __pyx_t_8) < 0) __PYX_ERR(0, 9971, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10069 * int values_offset = 0, * str overlay_text = None, * float scale_min = FLT_MAX, # <<<<<<<<<<<<<< * float scale_max = FLT_MAX, * graph_size = (0, 0), */ __pyx_k__98 = FLT_MAX; /* "imgui/core.pyx":10070 * str overlay_text = None, * float scale_min = FLT_MAX, * float scale_max = FLT_MAX, # <<<<<<<<<<<<<< * graph_size = (0, 0), * int stride = sizeof(float), */ __pyx_k__99 = FLT_MAX; /* "imgui/core.pyx":10072 * float scale_max = FLT_MAX, * graph_size = (0, 0), * int stride = sizeof(float), # <<<<<<<<<<<<<< * ): * """ */ __pyx_k__100 = (sizeof(float)); /* "imgui/core.pyx":10063 * * * def plot_histogram( # <<<<<<<<<<<<<< * str label not None, * const float[:] values not None, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_339plot_histogram, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_plot_histogram, __pyx_t_8) < 0) __PYX_ERR(0, 10063, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10155 * ) * * def progress_bar(float fraction, size = (-FLOAT_MIN,0), str overlay = ""): # <<<<<<<<<<<<<< * """ Show a progress bar * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_FLOAT_MIN); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_7 = PyNumber_Negative(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_int_0); __pyx_t_7 = 0; __pyx_k__101 = __pyx_t_8; __Pyx_GIVEREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_341progress_bar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_progress_bar, __pyx_t_8) < 0) __PYX_ERR(0, 10155, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10184 * cimgui.ProgressBar(fraction, _cast_tuple_ImVec2(size), _bytes(overlay)) * * def set_item_default_focus(): # <<<<<<<<<<<<<< * """Make last item the default focused item of a window. * Please use instead of "if (is_window_appearing()) set_scroll_here()" to signify "default item". */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_343set_item_default_focus, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_item_default_focus, __pyx_t_8) < 0) __PYX_ERR(0, 10184, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10194 * * * def set_keyboard_focus_here(int offset = 0): # <<<<<<<<<<<<<< * """Focus keyboard on the next widget. * Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_345set_keyboard_focus_here, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_keyboard_focus_here, __pyx_t_8) < 0) __PYX_ERR(0, 10194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10204 * * * def is_item_hovered( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_347is_item_hovered, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_hovered, __pyx_t_8) < 0) __PYX_ERR(0, 10204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10218 * * * def is_item_focused(): # <<<<<<<<<<<<<< * """Check if the last item is focused * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_349is_item_focused, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_focused, __pyx_t_8) < 0) __PYX_ERR(0, 10218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10230 * * * def is_item_active(): # <<<<<<<<<<<<<< * """Was the last item active? For ex. button being held or text field * being edited. Items that don't interact will always return false. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_351is_item_active, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_active, __pyx_t_8) < 0) __PYX_ERR(0, 10230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10243 * * * def is_item_clicked(cimgui.ImGuiMouseButton mouse_button = 0): # <<<<<<<<<<<<<< * """ Was the last item hovered and mouse clicked on? * Button or node that was just being clicked on. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_353is_item_clicked, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_clicked, __pyx_t_8) < 0) __PYX_ERR(0, 10243, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10259 * * * def is_item_visible(): # <<<<<<<<<<<<<< * """Was the last item visible? Aka not out of sight due to * clipping/scrolling. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_355is_item_visible, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_visible, __pyx_t_8) < 0) __PYX_ERR(0, 10259, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10271 * return cimgui.IsItemVisible() * * def is_item_edited(): # <<<<<<<<<<<<<< * """Did the last item modify its underlying value this frame? or was pressed? * This is generally the same as the "bool" return value of many widgets. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_357is_item_edited, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_edited, __pyx_t_8) < 0) __PYX_ERR(0, 10271, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10283 * return cimgui.IsItemEdited() * * def is_item_activated(): # <<<<<<<<<<<<<< * """Was the last item just made active (item was previously inactive)? * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_359is_item_activated, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_activated, __pyx_t_8) < 0) __PYX_ERR(0, 10283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10294 * return cimgui.IsItemActivated() * * def is_item_deactivated(): # <<<<<<<<<<<<<< * """Was the last item just made inactive (item was previously active)? * Useful for Undo/Redo patterns with widgets that requires continuous editing. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_361is_item_deactivated, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_deactivated, __pyx_t_8) < 0) __PYX_ERR(0, 10294, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10306 * return cimgui.IsItemDeactivated() * * def is_item_deactivated_after_edit(): # <<<<<<<<<<<<<< * """Was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). * Useful for Undo/Redo patterns with widgets that requires continuous editing. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_363is_item_deactivated_after_edit, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_deactivated_after_edit, __pyx_t_8) < 0) __PYX_ERR(0, 10306, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10319 * return cimgui.IsItemDeactivatedAfterEdit() * * def is_item_toggled_open(): # <<<<<<<<<<<<<< * """Was the last item open state toggled? set by TreeNode(). * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_365is_item_toggled_open, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_item_toggled_open, __pyx_t_8) < 0) __PYX_ERR(0, 10319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10327 * return cimgui.IsItemToggledOpen() * * def is_any_item_hovered(): # <<<<<<<<<<<<<< * """Was any of the items hovered. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_367is_any_item_hovered, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_any_item_hovered, __pyx_t_8) < 0) __PYX_ERR(0, 10327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10339 * * * def is_any_item_active(): # <<<<<<<<<<<<<< * """Was any of the items active. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_369is_any_item_active, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_any_item_active, __pyx_t_8) < 0) __PYX_ERR(0, 10339, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10351 * * * def is_any_item_focused(): # <<<<<<<<<<<<<< * """Is any of the items focused. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_371is_any_item_focused, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_any_item_focused, __pyx_t_8) < 0) __PYX_ERR(0, 10351, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10363 * * * def get_item_rect_min(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_373get_item_rect_min, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_item_rect_min, __pyx_t_8) < 0) __PYX_ERR(0, 10363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10375 * * * def get_item_rect_max(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_375get_item_rect_max, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_item_rect_max, __pyx_t_8) < 0) __PYX_ERR(0, 10375, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10387 * * * def get_item_rect_size(): # <<<<<<<<<<<<<< * """Get bounding rect of the last item in screen space. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_377get_item_rect_size, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_item_rect_size, __pyx_t_8) < 0) __PYX_ERR(0, 10387, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10399 * * * def set_item_allow_overlap(): # <<<<<<<<<<<<<< * """Allow last item to be overlapped by a subsequent item. * Sometimes useful with invisible buttons, selectables, etc. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_379set_item_allow_overlap, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_item_allow_overlap, __pyx_t_8) < 0) __PYX_ERR(0, 10399, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10409 * cimgui.SetItemAllowOverlap() * * def get_main_viewport(): # <<<<<<<<<<<<<< * """Currently represents the Platform Window created by the application which is hosting * our Dear ImGui windows. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_381get_main_viewport, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_main_viewport, __pyx_t_8) < 0) __PYX_ERR(0, 10409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10424 * return _ImGuiViewport.from_ptr(cimgui.GetMainViewport()) * * def is_window_hovered( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_383is_window_hovered, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_window_hovered, __pyx_t_8) < 0) __PYX_ERR(0, 10424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10439 * * * def is_window_focused( # <<<<<<<<<<<<<< * cimgui.ImGuiHoveredFlags flags=0 * ): */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_385is_window_focused, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_window_focused, __pyx_t_8) < 0) __PYX_ERR(0, 10439, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10453 * * * def is_rect_visible(float size_width, float size_height): # <<<<<<<<<<<<<< * """Test if a rectangle of the given size, starting from the cursor * position is visible (not clipped). */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_387is_rect_visible, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_rect_visible, __pyx_t_8) < 0) __PYX_ERR(0, 10453, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10470 * * * def get_style_color_name(int index): # <<<<<<<<<<<<<< * """Get the style color name for a given ImGuiCol index. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_389get_style_color_name, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_style_color_name, __pyx_t_8) < 0) __PYX_ERR(0, 10470, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10481 * * * def get_time(): # <<<<<<<<<<<<<< * """Seconds since program start. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_391get_time, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_time, __pyx_t_8) < 0) __PYX_ERR(0, 10481, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10493 * * * def get_background_draw_list(): # <<<<<<<<<<<<<< * """This draw list will be the first rendering one. * Useful to quickly draw shapes/text behind dear imgui contents. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_393get_background_draw_list, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_background_draw_list, __pyx_t_8) < 0) __PYX_ERR(0, 10493, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10505 * return _DrawList.from_ptr(cimgui.GetBackgroundDrawList()) * * def get_foreground_draw_list(): # <<<<<<<<<<<<<< * """This draw list will be the last rendered one. * Useful to quickly draw shapes/text over dear imgui contents. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_395get_foreground_draw_list, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_foreground_draw_list, __pyx_t_8) < 0) __PYX_ERR(0, 10505, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10518 * * * def get_key_index(int key): # <<<<<<<<<<<<<< * """Map ImGuiKey_* values into user's key index. == io.KeyMap[key] * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_397get_key_index, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_key_index, __pyx_t_8) < 0) __PYX_ERR(0, 10518, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10530 * * * def is_key_pressed(int key_index, bool repeat = False): # <<<<<<<<<<<<<< * """Was key pressed (went from !Down to Down). * If repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_399is_key_pressed, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_key_pressed, __pyx_t_8) < 0) __PYX_ERR(0, 10530, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10543 * * * def is_key_down(int key_index): # <<<<<<<<<<<<<< * """Returns if key is being held -- io.KeysDown[user_key_index]. * Note that imgui doesn't know the semantic of each entry of */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_401is_key_down, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_key_down, __pyx_t_8) < 0) __PYX_ERR(0, 10543, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10558 * * * def is_mouse_hovering_rect( # <<<<<<<<<<<<<< * float r_min_x, float r_min_y, * float r_max_x, float r_max_y, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_403is_mouse_hovering_rect, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_mouse_hovering_rect, __pyx_t_8) < 0) __PYX_ERR(0, 10558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10586 * * * def is_mouse_double_clicked(int button = 0): # <<<<<<<<<<<<<< * """Return True if mouse was double-clicked. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_405is_mouse_double_clicked, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_mouse_double_clicked, __pyx_t_8) < 0) __PYX_ERR(0, 10586, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10603 * * * def is_mouse_clicked(int button = 0, bool repeat = False): # <<<<<<<<<<<<<< * """Returns if the mouse was clicked this frame. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_407is_mouse_clicked, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_mouse_clicked, __pyx_t_8) < 0) __PYX_ERR(0, 10603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10619 * * * def is_mouse_released(int button = 0): # <<<<<<<<<<<<<< * """Returns if the mouse was released this frame. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_409is_mouse_released, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_mouse_released, __pyx_t_8) < 0) __PYX_ERR(0, 10619, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10634 * * * def is_mouse_down(int button = 0): # <<<<<<<<<<<<<< * """Returns if the mouse is down. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_411is_mouse_down, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_mouse_down, __pyx_t_8) < 0) __PYX_ERR(0, 10634, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10649 * * * def is_mouse_dragging(int button, float lock_threshold = -1.0): # <<<<<<<<<<<<<< * """Returns if mouse is dragging. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_413is_mouse_dragging, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_mouse_dragging, __pyx_t_8) < 0) __PYX_ERR(0, 10649, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10666 * * * def get_mouse_drag_delta(int button=0, float lock_threshold = -1.0): # <<<<<<<<<<<<<< * """Dragging amount since clicking. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_415get_mouse_drag_delta, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_mouse_drag_delta, __pyx_t_8) < 0) __PYX_ERR(0, 10666, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10685 * * * def get_mouse_pos(): # <<<<<<<<<<<<<< * """Current mouse position. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_417get_mouse_pos, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_mouse_pos, __pyx_t_8) < 0) __PYX_ERR(0, 10685, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10698 * ) * * get_mouse_position = get_mouse_pos # <<<<<<<<<<<<<< * * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_get_mouse_pos); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_mouse_position, __pyx_t_8) < 0) __PYX_ERR(0, 10698, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10701 * * * def reset_mouse_drag_delta(int button = 0): # <<<<<<<<<<<<<< * """Reset the mouse dragging delta. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_419reset_mouse_drag_delta, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reset_mouse_drag_delta, __pyx_t_8) < 0) __PYX_ERR(0, 10701, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10713 * * * def get_mouse_cursor(): # <<<<<<<<<<<<<< * """Return the mouse cursor id. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_421get_mouse_cursor, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_mouse_cursor, __pyx_t_8) < 0) __PYX_ERR(0, 10713, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10722 * * * def set_mouse_cursor(cimgui.ImGuiMouseCursor mouse_cursor_type): # <<<<<<<<<<<<<< * """Set the mouse cursor id. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_423set_mouse_cursor, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_mouse_cursor, __pyx_t_8) < 0) __PYX_ERR(0, 10722, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10733 * return cimgui.SetMouseCursor(mouse_cursor_type) * * def capture_mouse_from_app(bool want_capture_mouse_value = True): # <<<<<<<<<<<<<< * """Attention: misleading name! * Manually override io.WantCaptureMouse flag next frame */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_425capture_mouse_from_app, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_capture_mouse_from_app, __pyx_t_8) < 0) __PYX_ERR(0, 10733, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10746 * cimgui.CaptureMouseFromApp(want_capture_mouse_value) * * def get_clipboard_text(): # <<<<<<<<<<<<<< * """Also see the ``log_to_clipboard()`` function to capture GUI into clipboard, * or easily output text data to the clipboard. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_427get_clipboard_text, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_clipboard_text, __pyx_t_8) < 0) __PYX_ERR(0, 10746, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10758 * return _from_bytes(cimgui.GetClipboardText()) * * def load_ini_settings_from_disk(str ini_file_name): # <<<<<<<<<<<<<< * """Call after ``create_context()`` and before the first call to ``new_frame()``. * ``new_frame()`` automatically calls ``load_ini_settings_from_disk(io.ini_file_name)``. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_429load_ini_settings_from_disk, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_load_ini_settings_from_disk, __pyx_t_8) < 0) __PYX_ERR(0, 10758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10770 * cimgui.LoadIniSettingsFromDisk(_bytes(ini_file_name)) * * def load_ini_settings_from_memory(str ini_data): # <<<<<<<<<<<<<< * """Call after ``create_context()`` and before the first call to ``new_frame()`` * to provide .ini data from your own data source. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_431load_ini_settings_from_memory, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_load_ini_settings_from_memory, __pyx_t_8) < 0) __PYX_ERR(0, 10770, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10780 * cimgui.LoadIniSettingsFromMemory(_bytes(ini_data), 0) * * def save_ini_settings_to_disk(str ini_file_name): # <<<<<<<<<<<<<< * """This is automatically called (if ``io.ini_file_name`` is not empty) * a few seconds after any modification that should be reflected in the .ini file */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_433save_ini_settings_to_disk, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10780, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_save_ini_settings_to_disk, __pyx_t_8) < 0) __PYX_ERR(0, 10780, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10793 * cimgui.SaveIniSettingsToDisk(_bytes(ini_file_name)) * * def save_ini_settings_to_memory(): # <<<<<<<<<<<<<< * """Return a string with the .ini data which you can save by your own mean. * Call when ``io.want_save_ini_settings`` is set, then save data by your own mean */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_435save_ini_settings_to_memory, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_save_ini_settings_to_memory, __pyx_t_8) < 0) __PYX_ERR(0, 10793, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10806 * return _from_bytes(cimgui.SaveIniSettingsToMemory(NULL)) * * def set_clipboard_text(str text): # <<<<<<<<<<<<<< * """Set the clipboard content * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_437set_clipboard_text, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_clipboard_text, __pyx_t_8) < 0) __PYX_ERR(0, 10806, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10832 * # return cimgui.SetScrollHere(center_y_ratio) * * def set_scroll_here_x(float center_x_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll here X. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_439set_scroll_here_x, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_scroll_here_x, __pyx_t_8) < 0) __PYX_ERR(0, 10832, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10851 * return cimgui.SetScrollHereX(center_x_ratio) * * def set_scroll_here_y(float center_y_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll here Y. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_441set_scroll_here_y, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_scroll_here_y, __pyx_t_8) < 0) __PYX_ERR(0, 10851, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10871 * * * def set_scroll_from_pos_x(float local_x, float center_x_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll from position X * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_443set_scroll_from_pos_x, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_scroll_from_pos_x, __pyx_t_8) < 0) __PYX_ERR(0, 10871, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10887 * * * def set_scroll_from_pos_y(float local_y, float center_y_ratio = 0.5): # <<<<<<<<<<<<<< * """Set scroll from position Y * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_445set_scroll_from_pos_y, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_scroll_from_pos_y, __pyx_t_8) < 0) __PYX_ERR(0, 10887, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10903 * * * def push_font(_Font font): # <<<<<<<<<<<<<< * """Push font on a stack. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_447push_font, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10903, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_push_font, __pyx_t_8) < 0) __PYX_ERR(0, 10903, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10942 * cimgui.PushFont(font._ptr) * * def pop_font(): # <<<<<<<<<<<<<< * """Pop font on a stack. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_449pop_font, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pop_font, __pyx_t_8) < 0) __PYX_ERR(0, 10942, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":10955 * cimgui.PopFont() * * cpdef calc_text_size(str text, bool hide_text_after_double_hash = False, float wrap_width = -1.0): # <<<<<<<<<<<<<< * """Calculate text size. * Text can be multi-line. */ __pyx_k__102 = (-1.0); __pyx_k__102 = (-1.0); /* "imgui/core.pyx":10992 * ) * * def color_convert_u32_to_float4(cimgui.ImU32 in_): # <<<<<<<<<<<<<< * """Convert an unsigned int 32 to 4 component r, g, b, a * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_453color_convert_u32_to_float4, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_color_convert_u32_to_float4, __pyx_t_8) < 0) __PYX_ERR(0, 10992, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11006 * return _cast_ImVec4_tuple(cimgui.ColorConvertU32ToFloat4(in_)) * * def color_convert_float4_to_u32(float r, float g, float b, float a): # <<<<<<<<<<<<<< * """Convert a set of r, g, b, a floats to unsigned int 32 color * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_455color_convert_float4_to_u32, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_color_convert_float4_to_u32, __pyx_t_8) < 0) __PYX_ERR(0, 11006, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11021 * return cimgui.ColorConvertFloat4ToU32(color) * * def color_convert_rgb_to_hsv(float r, float g, float b): # <<<<<<<<<<<<<< * """Convert color from RGB space to HSV space * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_457color_convert_rgb_to_hsv, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_color_convert_rgb_to_hsv, __pyx_t_8) < 0) __PYX_ERR(0, 11021, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11038 * return out_h, out_s, out_v * * def color_convert_hsv_to_rgb(float h, float s, float v): # <<<<<<<<<<<<<< * """Convert color from HSV space to RGB space * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_459color_convert_hsv_to_rgb, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_color_convert_hsv_to_rgb, __pyx_t_8) < 0) __PYX_ERR(0, 11038, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11334 * cimgui.PushTextWrapPos(wrap_pos_x) * * push_text_wrap_position = push_text_wrap_pos # <<<<<<<<<<<<<< * * cpdef pop_text_wrap_pos(): */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_push_text_wrap_pos); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_push_text_wrap_position, __pyx_t_8) < 0) __PYX_ERR(0, 11334, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11349 * cimgui.PopTextWrapPos() * * pop_text_wrap_position = pop_text_wrap_pos # <<<<<<<<<<<<<< * * cpdef push_allow_keyboard_focus(bool allow_focus): */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_pop_text_wrap_pos); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pop_text_wrap_position, __pyx_t_8) < 0) __PYX_ERR(0, 11349, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11380 * * * def separator(): # <<<<<<<<<<<<<< * """Add vertical line as a separator beween elements. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_501separator, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_separator, __pyx_t_8) < 0) __PYX_ERR(0, 11380, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11407 * * * def same_line(float position=0.0, float spacing=-1.0): # <<<<<<<<<<<<<< * """Call between widgets or groups to layout them horizontally. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_503same_line, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_same_line, __pyx_t_8) < 0) __PYX_ERR(0, 11407, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11440 * * * def new_line(): # <<<<<<<<<<<<<< * """Undo :any:`same_line()` call. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_505new_line, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_new_line, __pyx_t_8) < 0) __PYX_ERR(0, 11440, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11449 * * * def spacing(): # <<<<<<<<<<<<<< * """Add vertical spacing beween elements. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_507spacing, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_spacing, __pyx_t_8) < 0) __PYX_ERR(0, 11449, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11476 * * * def dummy(width, height): # <<<<<<<<<<<<<< * """Add dummy element of given size. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_509dummy, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_dummy, __pyx_t_8) < 0) __PYX_ERR(0, 11476, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11500 * * * def indent(float width=0.0): # <<<<<<<<<<<<<< * """Move content to right by indent width. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_511indent, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_indent, __pyx_t_8) < 0) __PYX_ERR(0, 11500, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11531 * * * def unindent(float width=0.0): # <<<<<<<<<<<<<< * """Move content to left by indent width. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_513unindent, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_unindent, __pyx_t_8) < 0) __PYX_ERR(0, 11531, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11562 * * * def columns(int count=1, str identifier=None, bool border=True): # <<<<<<<<<<<<<< * """Setup number of columns. Use an identifier to distinguish multiple * column sets. close with ``columns(1)``. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_515columns, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_columns, __pyx_t_8) < 0) __PYX_ERR(0, 11562, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11624 * * * def next_column(): # <<<<<<<<<<<<<< * """Move to the next column drawing. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_517next_column, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_next_column, __pyx_t_8) < 0) __PYX_ERR(0, 11624, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11637 * * * def get_column_index(): # <<<<<<<<<<<<<< * """Returns the current column index. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_519get_column_index, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_column_index, __pyx_t_8) < 0) __PYX_ERR(0, 11637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11653 * * * def get_column_offset(int column_index=-1): # <<<<<<<<<<<<<< * """Returns position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column, otherwise 0 to */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_521get_column_offset, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_column_offset, __pyx_t_8) < 0) __PYX_ERR(0, 11653, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11675 * * * def set_column_offset(int column_index, float offset_x): # <<<<<<<<<<<<<< * """Set the position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_523set_column_offset, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_column_offset, __pyx_t_8) < 0) __PYX_ERR(0, 11675, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11693 * * * def get_column_width(int column_index=-1): # <<<<<<<<<<<<<< * """Return the column width. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_525get_column_width, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_column_width, __pyx_t_8) < 0) __PYX_ERR(0, 11693, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11709 * * * def set_column_width(int column_index, float width): # <<<<<<<<<<<<<< * """Set the position of column line (in pixels, from the left side of the * contents region). Pass -1 to use current column. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_527set_column_width, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_column_width, __pyx_t_8) < 0) __PYX_ERR(0, 11709, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11727 * * * def get_columns_count(): # <<<<<<<<<<<<<< * """Get count of the columns in the current table. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_529get_columns_count, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_columns_count, __pyx_t_8) < 0) __PYX_ERR(0, 11727, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11782 * * * def begin_tab_bar(str identifier, cimgui.ImGuiTabBarFlags flags = 0): # <<<<<<<<<<<<<< * """Create and append into a TabBar * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_531begin_tab_bar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_tab_bar, __pyx_t_8) < 0) __PYX_ERR(0, 11782, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11804 * ) * * def end_tab_bar(): # <<<<<<<<<<<<<< * """End a previously opened tab bar. * Only call this function if ``begin_tab_bar().opened`` is True. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_533end_tab_bar, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_tab_bar, __pyx_t_8) < 0) __PYX_ERR(0, 11804, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11860 * * * def begin_tab_item(str label, opened = None, cimgui.ImGuiTabItemFlags flags = 0): # <<<<<<<<<<<<<< * """Create a Tab. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_535begin_tab_item, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_tab_item, __pyx_t_8) < 0) __PYX_ERR(0, 11860, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11943 * ) * * def end_tab_item(): # <<<<<<<<<<<<<< * """End a previously opened tab item. * Only call this function if ``begin_tab_item().selected`` is True. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_537end_tab_item, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_tab_item, __pyx_t_8) < 0) __PYX_ERR(0, 11943, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11952 * cimgui.EndTabItem() * * def tab_item_button(str label, cimgui.ImGuiTabItemFlags flags = 0): # <<<<<<<<<<<<<< * """Create a Tab behaving like a button. * Cannot be selected in the tab bar. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_539tab_item_button, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_tab_item_button, __pyx_t_8) < 0) __PYX_ERR(0, 11952, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":11986 * return cimgui.TabItemButton(_bytes(label), flags) * * def set_tab_item_closed(str tab_or_docked_window_label): # <<<<<<<<<<<<<< * """Notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). * For tab-bar: call after BeginTabBar() and before Tab submissions. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_541set_tab_item_closed, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_tab_item_closed, __pyx_t_8) < 0) __PYX_ERR(0, 11986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12060 * * * def begin_drag_drop_source(cimgui.ImGuiDragDropFlags flags=0): # <<<<<<<<<<<<<< * """Set the current item as a drag and drop source. If ``dragging`` is True, you * can call :func:`set_drag_drop_payload` and :func:`end_drag_drop_source`. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_543begin_drag_drop_source, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_drag_drop_source, __pyx_t_8) < 0) __PYX_ERR(0, 12060, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12122 * * * def set_drag_drop_payload(str type, bytes data, cimgui.ImGuiCond condition=0): # <<<<<<<<<<<<<< * """Set the payload for a drag and drop source. Only call after * :func:`begin_drag_drop_source` returns True. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_545set_drag_drop_payload, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_drag_drop_payload, __pyx_t_8) < 0) __PYX_ERR(0, 12122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12142 * * * def end_drag_drop_source(): # <<<<<<<<<<<<<< * """End the drag and drop source. * Only call if ``begin_drag_drop_source().dragging`` is True. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_547end_drag_drop_source, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_drag_drop_source, __pyx_t_8) < 0) __PYX_ERR(0, 12142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12196 * * * def begin_drag_drop_target(): # <<<<<<<<<<<<<< * """Set the current item as a drag and drop target. If ``hovered`` is True, you * can call :func:`accept_drag_drop_payload` and :func:`end_drag_drop_target`. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_549begin_drag_drop_target, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_drag_drop_target, __pyx_t_8) < 0) __PYX_ERR(0, 12196, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12219 * * * def accept_drag_drop_payload(str type, cimgui.ImGuiDragDropFlags flags=0): # <<<<<<<<<<<<<< * """Get the drag and drop payload. Only call after :func:`begin_drag_drop_target` * returns True. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_551accept_drag_drop_payload, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_accept_drag_drop_payload, __pyx_t_8) < 0) __PYX_ERR(0, 12219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12244 * * * def end_drag_drop_target(): # <<<<<<<<<<<<<< * """End the drag and drop source. * Only call this function if ``begin_drag_drop_target().hovered`` is True. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_553end_drag_drop_target, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_drag_drop_target, __pyx_t_8) < 0) __PYX_ERR(0, 12244, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12258 * * * def get_drag_drop_payload(): # <<<<<<<<<<<<<< * """Peek directly into the current payload from anywhere. * May return NULL. */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_555get_drag_drop_payload, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_drag_drop_payload, __pyx_t_8) < 0) __PYX_ERR(0, 12258, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12273 * return data[:payload.DataSize] * * def push_clip_rect( # <<<<<<<<<<<<<< * float clip_rect_min_x, * float clip_rect_min_y, */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_557push_clip_rect, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_push_clip_rect, __pyx_t_8) < 0) __PYX_ERR(0, 12273, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12324 * ) * * def pop_clip_rect(): # <<<<<<<<<<<<<< * """Pop the last clip region from the stack. See: :func:`push_clip_rect()`. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_559pop_clip_rect, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pop_clip_rect, __pyx_t_8) < 0) __PYX_ERR(0, 12324, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12358 * * * def begin_group(): # <<<<<<<<<<<<<< * """Start item group and lock its horizontal starting position. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_561begin_group, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_begin_group, __pyx_t_8) < 0) __PYX_ERR(0, 12358, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12413 * * * def end_group(): # <<<<<<<<<<<<<< * """End group (see: :any:`begin_group`). * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_563end_group, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_end_group, __pyx_t_8) < 0) __PYX_ERR(0, 12413, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12422 * * * def get_cursor_pos(): # <<<<<<<<<<<<<< * """Get the cursor position. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_565get_cursor_pos, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_cursor_pos, __pyx_t_8) < 0) __PYX_ERR(0, 12422, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12431 * * * def get_cursor_pos_x(): # <<<<<<<<<<<<<< * return cimgui.GetCursorPosX() * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_567get_cursor_pos_x, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_cursor_pos_x, __pyx_t_8) < 0) __PYX_ERR(0, 12431, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12435 * * * def get_cursor_pos_y(): # <<<<<<<<<<<<<< * return cimgui.GetCursorPosY() * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_569get_cursor_pos_y, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_cursor_pos_y, __pyx_t_8) < 0) __PYX_ERR(0, 12435, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12439 * * * def set_cursor_pos(local_pos): # <<<<<<<<<<<<<< * """Set the cursor position in local coordinates [0..] (useful to work with ImDrawList API) * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_571set_cursor_pos, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_cursor_pos, __pyx_t_8) < 0) __PYX_ERR(0, 12439, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12448 * * * def set_cursor_pos_x(float x): # <<<<<<<<<<<<<< * cimgui.SetCursorPosX(x) * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_573set_cursor_pos_x, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_cursor_pos_x, __pyx_t_8) < 0) __PYX_ERR(0, 12448, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12452 * * * def set_cursor_pos_y(float y): # <<<<<<<<<<<<<< * cimgui.SetCursorPosY(y) * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_575set_cursor_pos_y, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_cursor_pos_y, __pyx_t_8) < 0) __PYX_ERR(0, 12452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12456 * * * def get_cursor_start_pos(): # <<<<<<<<<<<<<< * """Get the initial cursor position. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_577get_cursor_start_pos, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_cursor_start_pos, __pyx_t_8) < 0) __PYX_ERR(0, 12456, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12465 * * * def get_cursor_screen_pos(): # <<<<<<<<<<<<<< * """Get the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_579get_cursor_screen_pos, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_cursor_screen_pos, __pyx_t_8) < 0) __PYX_ERR(0, 12465, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12474 * * * def set_cursor_screen_pos(screen_pos): # <<<<<<<<<<<<<< * """Set the cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_581set_cursor_screen_pos, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_cursor_screen_pos, __pyx_t_8) < 0) __PYX_ERR(0, 12474, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12483 * * * get_cursor_position = get_cursor_pos # <<<<<<<<<<<<<< * set_cursor_position = set_cursor_pos * get_cursor_start_position = get_cursor_start_pos */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_get_cursor_pos); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_cursor_position, __pyx_t_8) < 0) __PYX_ERR(0, 12483, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12484 * * get_cursor_position = get_cursor_pos * set_cursor_position = set_cursor_pos # <<<<<<<<<<<<<< * get_cursor_start_position = get_cursor_start_pos * get_cursor_screen_position = get_cursor_screen_pos */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_set_cursor_pos); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_cursor_position, __pyx_t_8) < 0) __PYX_ERR(0, 12484, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12485 * get_cursor_position = get_cursor_pos * set_cursor_position = set_cursor_pos * get_cursor_start_position = get_cursor_start_pos # <<<<<<<<<<<<<< * get_cursor_screen_position = get_cursor_screen_pos * set_cursor_screen_position = set_cursor_screen_pos */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_get_cursor_start_pos); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_cursor_start_position, __pyx_t_8) < 0) __PYX_ERR(0, 12485, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12486 * set_cursor_position = set_cursor_pos * get_cursor_start_position = get_cursor_start_pos * get_cursor_screen_position = get_cursor_screen_pos # <<<<<<<<<<<<<< * set_cursor_screen_position = set_cursor_screen_pos * */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_get_cursor_screen_pos); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_cursor_screen_position, __pyx_t_8) < 0) __PYX_ERR(0, 12486, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12487 * get_cursor_start_position = get_cursor_start_pos * get_cursor_screen_position = get_cursor_screen_pos * set_cursor_screen_position = set_cursor_screen_pos # <<<<<<<<<<<<<< * * def align_text_to_frame_padding(): */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_set_cursor_screen_pos); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_cursor_screen_position, __pyx_t_8) < 0) __PYX_ERR(0, 12487, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12489 * set_cursor_screen_position = set_cursor_screen_pos * * def align_text_to_frame_padding(): # <<<<<<<<<<<<<< * cimgui.AlignTextToFramePadding() * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_583align_text_to_frame_padding, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_align_text_to_frame_padding, __pyx_t_8) < 0) __PYX_ERR(0, 12489, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12492 * cimgui.AlignTextToFramePadding() * * def get_text_line_height(): # <<<<<<<<<<<<<< * """Get text line height. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_585get_text_line_height, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_text_line_height, __pyx_t_8) < 0) __PYX_ERR(0, 12492, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12504 * * * def get_text_line_height_with_spacing(): # <<<<<<<<<<<<<< * """Get text line height, with spacing. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_587get_text_line_height_with_spacing, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_text_line_height_with_spacin, __pyx_t_8) < 0) __PYX_ERR(0, 12504, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12516 * * * def get_frame_height(): # <<<<<<<<<<<<<< * """~ FontSize + style.FramePadding.y * 2 * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_589get_frame_height, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_frame_height, __pyx_t_8) < 0) __PYX_ERR(0, 12516, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12526 * * * def get_frame_height_with_spacing(): # <<<<<<<<<<<<<< * """~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_591get_frame_height_with_spacing, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_frame_height_with_spacing, __pyx_t_8) < 0) __PYX_ERR(0, 12526, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12535 * * * def create_context(_FontAtlas shared_font_atlas = None): # <<<<<<<<<<<<<< * """CreateContext * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_593create_context, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_create_context, __pyx_t_8) < 0) __PYX_ERR(0, 12535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12561 * * * def destroy_context(_ImGuiContext ctx = None): # <<<<<<<<<<<<<< * """DestroyContext * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_595destroy_context, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_destroy_context, __pyx_t_8) < 0) __PYX_ERR(0, 12561, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12582 * * * def get_current_context(): # <<<<<<<<<<<<<< * """GetCurrentContext * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_597get_current_context, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_current_context, __pyx_t_8) < 0) __PYX_ERR(0, 12582, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12594 * * * def set_current_context(_ImGuiContext ctx): # <<<<<<<<<<<<<< * """SetCurrentContext * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_599set_current_context, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_current_context, __pyx_t_8) < 0) __PYX_ERR(0, 12594, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12607 * * * def push_id(str str_id): # <<<<<<<<<<<<<< * """Push an ID into the ID stack * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_601push_id, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_push_id, __pyx_t_8) < 0) __PYX_ERR(0, 12607, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12619 * * * def pop_id(): # <<<<<<<<<<<<<< * """Pop from the ID stack * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_603pop_id, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pop_id, __pyx_t_8) < 0) __PYX_ERR(0, 12619, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12627 * cimgui.PopID() * * def _ansifeed_text_ansi(str text): # <<<<<<<<<<<<<< * """Add ANSI-escape-formatted text to current widget stack. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_605_ansifeed_text_ansi, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ansifeed_text_ansi, __pyx_t_8) < 0) __PYX_ERR(0, 12627, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12652 * * * def _ansifeed_text_ansi_colored(str text, float r, float g, float b, float a=1.): # <<<<<<<<<<<<<< * """Add pre-colored ANSI-escape-formatted text to current widget stack. * */ __pyx_t_8 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_607_ansifeed_text_ansi_colored, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ansifeed_text_ansi_colored, __pyx_t_8) < 0) __PYX_ERR(0, 12652, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12692 * # === Extra utilities ==== * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_font(_Font font): */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_contextmanager); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); /* "imgui/core.pyx":12694 * @contextmanager * @cython.binding(True) * def _py_font(_Font font): # <<<<<<<<<<<<<< * """Use specified font in given context. * */ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_5imgui_4core_609_py_font, 0, __pyx_n_s_py_font, NULL, __pyx_n_s_imgui_core, __pyx_d, ((PyObject *)__pyx_codeobj__113)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); /* "imgui/core.pyx":12692 * # === Extra utilities ==== * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_font(_Font font): */ __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_font, __pyx_t_9) < 0) __PYX_ERR(0, 12694, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":12725 * * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_styled(cimgui.ImGuiStyleVar variable, value): */ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_contextmanager); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); /* "imgui/core.pyx":12727 * @contextmanager * @cython.binding(True) * def _py_styled(cimgui.ImGuiStyleVar variable, value): # <<<<<<<<<<<<<< * # note: we treat bool value as integer to guess if we are required to pop * # anything because IMGUI may simply skip pushing */ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_5imgui_4core_612_py_styled, 0, __pyx_n_s_py_styled, NULL, __pyx_n_s_imgui_core, __pyx_d, ((PyObject *)__pyx_codeobj__114)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); /* "imgui/core.pyx":12725 * * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_styled(cimgui.ImGuiStyleVar variable, value): */ __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_styled, __pyx_t_8) < 0) __PYX_ERR(0, 12727, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12735 * * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_colored( */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_contextmanager); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); /* "imgui/core.pyx":12742 * float g, * float b, * float a = 1. # <<<<<<<<<<<<<< * ): * # note: we treat bool value as integer to guess if we are required to pop */ __pyx_t_7 = PyFloat_FromDouble(((double)1.)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); /* "imgui/core.pyx":12737 * @contextmanager * @cython.binding(True) * def _py_colored( # <<<<<<<<<<<<<< * cimgui.ImGuiCol variable, * float r, */ __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_5imgui_4core_615_py_colored, 0, __pyx_n_s_py_colored, NULL, __pyx_n_s_imgui_core, __pyx_d, ((PyObject *)__pyx_codeobj__115)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_t_9); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":12735 * * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_colored( */ __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_colored, __pyx_t_9) < 0) __PYX_ERR(0, 12737, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":12751 * * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_istyled(*variables_and_values): */ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_contextmanager); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); /* "imgui/core.pyx":12753 * @contextmanager * @cython.binding(True) * def _py_istyled(*variables_and_values): # <<<<<<<<<<<<<< * # todo: rename to nstyled? * count = 0 */ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_5imgui_4core_618_py_istyled, 0, __pyx_n_s_py_istyled, NULL, __pyx_n_s_imgui_core, __pyx_d, ((PyObject *)__pyx_codeobj__116)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); /* "imgui/core.pyx":12751 * * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_istyled(*variables_and_values): */ __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_istyled, __pyx_t_8) < 0) __PYX_ERR(0, 12753, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "imgui/core.pyx":12780 * * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_scoped(str str_id): */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_contextmanager); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12780, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); /* "imgui/core.pyx":12782 * @contextmanager * @cython.binding(True) * def _py_scoped(str str_id): # <<<<<<<<<<<<<< * """Use scoped ID within a block of code. * */ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_5imgui_4core_621_py_scoped, 0, __pyx_n_s_py_scoped, NULL, __pyx_n_s_imgui_core, __pyx_d, ((PyObject *)__pyx_codeobj__117)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); /* "imgui/core.pyx":12780 * * * @contextmanager # <<<<<<<<<<<<<< * @cython.binding(True) * def _py_scoped(str str_id): */ __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12780, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_scoped, __pyx_t_9) < 0) __PYX_ERR(0, 12782, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":12799 * * * def _py_vertex_buffer_vertex_pos_offset(): # <<<<<<<<<<<<<< * return &(NULL).pos * */ __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_624_py_vertex_buffer_vertex_pos_offset, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_vertex_buffer_vertex_pos_off, __pyx_t_9) < 0) __PYX_ERR(0, 12799, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":12802 * return &(NULL).pos * * def _py_vertex_buffer_vertex_uv_offset(): # <<<<<<<<<<<<<< * return &(NULL).uv * */ __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_626_py_vertex_buffer_vertex_uv_offset, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_vertex_buffer_vertex_uv_offs, __pyx_t_9) < 0) __PYX_ERR(0, 12802, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":12805 * return &(NULL).uv * * def _py_vertex_buffer_vertex_col_offset(): # <<<<<<<<<<<<<< * return &(NULL).col * */ __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_628_py_vertex_buffer_vertex_col_offset, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_vertex_buffer_vertex_col_off, __pyx_t_9) < 0) __PYX_ERR(0, 12805, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":12808 * return &(NULL).col * * def _py_vertex_buffer_vertex_size(): # <<<<<<<<<<<<<< * return sizeof(cimgui.ImDrawVert) * */ __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_630_py_vertex_buffer_vertex_size, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_vertex_buffer_vertex_size, __pyx_t_9) < 0) __PYX_ERR(0, 12808, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":12811 * return sizeof(cimgui.ImDrawVert) * * def _py_index_buffer_index_size(): # <<<<<<<<<<<<<< * return sizeof(cimgui.ImDrawIdx) */ __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_632_py_index_buffer_index_size, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_py_index_buffer_index_size, __pyx_t_9) < 0) __PYX_ERR(0, 12811, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "(tree fragment)":1 * def __pyx_unpickle__BeginEndTooltip(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_640__pyx_unpickle__BeginEndTooltip, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle__BeginEndTooltip, __pyx_t_9) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "(tree fragment)":11 * __pyx_unpickle__BeginEndTooltip__set_state(<_BeginEndTooltip> __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle__BeginEndTooltip__set_state(_BeginEndTooltip __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[0]) */ __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_5imgui_4core_642__pyx_unpickle__BeginEndGroup, NULL, __pyx_n_s_imgui_core); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle__BeginEndGroup, __pyx_t_9) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "imgui/core.pyx":1 * # distutils: language = c++ # <<<<<<<<<<<<<< * # distutils: sources = imgui-cpp/imgui.cpp imgui-cpp/imgui_draw.cpp imgui-cpp/imgui_demo.cpp imgui-cpp/imgui_widgets.cpp imgui-cpp/imgui_tables.cpp config-cpp/py_imconfig.cpp * # distutils: include_dirs = imgui-cpp ansifeed-cpp */ __pyx_t_9 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_9) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "View.MemoryView":210 * info.obj = self * * __pyx_getbuffer = capsule( &__pyx_array_getbuffer, "getbuffer(obj, view, flags)") # <<<<<<<<<<<<<< * * def __dealloc__(array self): */ __pyx_t_9 = __pyx_capsule_create(((void *)(&__pyx_array_getbuffer)), ((char *)"getbuffer(obj, view, flags)")); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem((PyObject *)__pyx_array_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_9) < 0) __PYX_ERR(2, 210, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; PyType_Modified(__pyx_array_type); /* "View.MemoryView":287 * return self.name * * cdef generic = Enum("") # <<<<<<<<<<<<<< * cdef strided = Enum("") # default * cdef indirect = Enum("") */ __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__618, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XGOTREF(generic); __Pyx_DECREF_SET(generic, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; /* "View.MemoryView":288 * * cdef generic = Enum("") * cdef strided = Enum("") # default # <<<<<<<<<<<<<< * cdef indirect = Enum("") * */ __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__619, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XGOTREF(strided); __Pyx_DECREF_SET(strided, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; /* "View.MemoryView":289 * cdef generic = Enum("") * cdef strided = Enum("") # default * cdef indirect = Enum("") # <<<<<<<<<<<<<< * * */ __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__620, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XGOTREF(indirect); __Pyx_DECREF_SET(indirect, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; /* "View.MemoryView":292 * * * cdef contiguous = Enum("") # <<<<<<<<<<<<<< * cdef indirect_contiguous = Enum("") * */ __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__621, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XGOTREF(contiguous); __Pyx_DECREF_SET(contiguous, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; /* "View.MemoryView":293 * * cdef contiguous = Enum("") * cdef indirect_contiguous = Enum("") # <<<<<<<<<<<<<< * * */ __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__622, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XGOTREF(indirect_contiguous); __Pyx_DECREF_SET(indirect_contiguous, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __pyx_t_9 = 0; /* "View.MemoryView":317 * * DEF THREAD_LOCKS_PREALLOCATED = 8 * cdef int __pyx_memoryview_thread_locks_used = 0 # <<<<<<<<<<<<<< * cdef PyThread_type_lock[THREAD_LOCKS_PREALLOCATED] __pyx_memoryview_thread_locks = [ * PyThread_allocate_lock(), */ __pyx_memoryview_thread_locks_used = 0; /* "View.MemoryView":318 * DEF THREAD_LOCKS_PREALLOCATED = 8 * cdef int __pyx_memoryview_thread_locks_used = 0 * cdef PyThread_type_lock[THREAD_LOCKS_PREALLOCATED] __pyx_memoryview_thread_locks = [ # <<<<<<<<<<<<<< * PyThread_allocate_lock(), * PyThread_allocate_lock(), */ __pyx_t_14[0] = PyThread_allocate_lock(); __pyx_t_14[1] = PyThread_allocate_lock(); __pyx_t_14[2] = PyThread_allocate_lock(); __pyx_t_14[3] = PyThread_allocate_lock(); __pyx_t_14[4] = PyThread_allocate_lock(); __pyx_t_14[5] = PyThread_allocate_lock(); __pyx_t_14[6] = PyThread_allocate_lock(); __pyx_t_14[7] = PyThread_allocate_lock(); memcpy(&(__pyx_memoryview_thread_locks[0]), __pyx_t_14, sizeof(__pyx_memoryview_thread_locks[0]) * (8)); /* "View.MemoryView":551 * info.obj = self * * __pyx_getbuffer = capsule( &__pyx_memoryview_getbuffer, "getbuffer(obj, view, flags)") # <<<<<<<<<<<<<< * * */ __pyx_t_9 = __pyx_capsule_create(((void *)(&__pyx_memoryview_getbuffer)), ((char *)"getbuffer(obj, view, flags)")); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem((PyObject *)__pyx_memoryview_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_9) < 0) __PYX_ERR(2, 551, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; PyType_Modified(__pyx_memoryview_type); /* "View.MemoryView":997 * return self.from_object * * __pyx_getbuffer = capsule( &__pyx_memoryview_getbuffer, "getbuffer(obj, view, flags)") # <<<<<<<<<<<<<< * * */ __pyx_t_9 = __pyx_capsule_create(((void *)(&__pyx_memoryview_getbuffer)), ((char *)"getbuffer(obj, view, flags)")); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem((PyObject *)__pyx_memoryviewslice_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_9) < 0) __PYX_ERR(2, 997, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; PyType_Modified(__pyx_memoryviewslice_type); /* "(tree fragment)":1 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum, NULL, __pyx_n_s_View_MemoryView); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Enum, __pyx_t_9) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "(tree fragment)":11 * __pyx_unpickle_Enum__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.name = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init imgui.core", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_CLEAR(__pyx_m); } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init imgui.core"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if CYTHON_PEP489_MULTI_PHASE_INIT return (__pyx_m != NULL) ? 0 : -1; #elif PY_MAJOR_VERSION >= 3 return __pyx_m; #else return; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule(modname); if (!m) goto end; p = PyObject_GetAttrString(m, "RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* PyObjectGetAttrStr */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = Py_TYPE(func)->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* UnpackUnboundCMethod */ static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) { PyObject *method; method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name); if (unlikely(!method)) return -1; target->method = method; #if CYTHON_COMPILING_IN_CPYTHON #if PY_MAJOR_VERSION >= 3 if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type))) #endif { PyMethodDescrObject *descr = (PyMethodDescrObject*) method; target->func = descr->d_method->ml_meth; target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS); } #endif return 0; } /* CallUnboundCMethod1 */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) { if (likely(cfunc->func)) { int flag = cfunc->flag; if (flag == METH_O) { return (*(cfunc->func))(self, arg); } else if (PY_VERSION_HEX >= 0x030600B1 && flag == METH_FASTCALL) { #if PY_VERSION_HEX >= 0x030700A0 return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, &arg, 1); #else return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL); #endif } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) { return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL); } } return __Pyx__CallUnboundCMethod1(cfunc, self, arg); } #endif static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){ PyObject *args, *result = NULL; if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL; #if CYTHON_COMPILING_IN_CPYTHON if (cfunc->func && (cfunc->flag & METH_VARARGS)) { args = PyTuple_New(1); if (unlikely(!args)) goto bad; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); if (cfunc->flag & METH_KEYWORDS) result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL); else result = (*cfunc->func)(self, args); } else { args = PyTuple_New(2); if (unlikely(!args)) goto bad; Py_INCREF(self); PyTuple_SET_ITEM(args, 0, self); Py_INCREF(arg); PyTuple_SET_ITEM(args, 1, arg); result = __Pyx_PyObject_Call(cfunc->method, args, NULL); } #else args = PyTuple_Pack(2, self, arg); if (unlikely(!args)) goto bad; result = __Pyx_PyObject_Call(cfunc->method, args, NULL); #endif bad: Py_XDECREF(args); return result; } /* PyDictVersioning */ #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) { PyObject *dict = Py_TYPE(obj)->tp_dict; return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; } static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) { PyObject **dictptr = NULL; Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset; if (offset) { #if CYTHON_COMPILING_IN_CPYTHON dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj); #else dictptr = _PyObject_GetDictPtr(obj); #endif } return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; } static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) { PyObject *dict = Py_TYPE(obj)->tp_dict; if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) return 0; return obj_dict_version == __Pyx_get_object_dict_version(obj); } #endif /* GetModuleGlobalName */ #if CYTHON_USE_DICT_VERSIONS static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value) #else static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name) #endif { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } else if (unlikely(PyErr_Occurred())) { return NULL; } #else result = PyDict_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } #endif #else result = PyObject_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } PyErr_Clear(); #endif return __Pyx_GetBuiltinName(name); } /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = __Pyx_PyFrame_GetLocalsplus(f); for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, (int)nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, (int)nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif #endif /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); int flags = PyCFunction_GET_FLAGS(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) { return (*((__Pyx_PyCFunctionFastWithKeywords)(void*)meth)) (self, args, nargs, NULL); } else { return (*((__Pyx_PyCFunctionFast)(void*)meth)) (self, args, nargs); } } #endif /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* RaiseException */ #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, CYTHON_UNUSED PyObject *cause) { __Pyx_PyThreadState_declare Py_XINCREF(type); if (!value || value == Py_None) value = NULL; else Py_INCREF(value); if (!tb || tb == Py_None) tb = NULL; else { Py_INCREF(tb); if (!PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } } if (PyType_Check(type)) { #if CYTHON_COMPILING_IN_PYPY if (!value) { Py_INCREF(Py_None); value = Py_None; } #endif PyErr_NormalizeException(&type, &value, &tb); } else { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } value = type; type = (PyObject*) Py_TYPE(type); Py_INCREF(type); if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto raise_error; } } __Pyx_PyThreadState_assign __Pyx_ErrRestore(type, value, tb); return; raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return; } #else static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { PyObject* owned_instance = NULL; if (tb == Py_None) { tb = 0; } else if (tb && !PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto bad; } if (value == Py_None) value = 0; if (PyExceptionInstance_Check(type)) { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto bad; } value = type; type = (PyObject*) Py_TYPE(value); } else if (PyExceptionClass_Check(type)) { PyObject *instance_class = NULL; if (value && PyExceptionInstance_Check(value)) { instance_class = (PyObject*) Py_TYPE(value); if (instance_class != type) { int is_subclass = PyObject_IsSubclass(instance_class, type); if (!is_subclass) { instance_class = NULL; } else if (unlikely(is_subclass == -1)) { goto bad; } else { type = instance_class; } } } if (!instance_class) { PyObject *args; if (!value) args = PyTuple_New(0); else if (PyTuple_Check(value)) { Py_INCREF(value); args = value; } else args = PyTuple_Pack(1, value); if (!args) goto bad; owned_instance = PyObject_Call(type, args, NULL); Py_DECREF(args); if (!owned_instance) goto bad; value = owned_instance; if (!PyExceptionInstance_Check(value)) { PyErr_Format(PyExc_TypeError, "calling %R should have returned an instance of " "BaseException, not %R", type, Py_TYPE(value)); goto bad; } } } else { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto bad; } if (cause) { PyObject *fixed_cause; if (cause == Py_None) { fixed_cause = NULL; } else if (PyExceptionClass_Check(cause)) { fixed_cause = PyObject_CallObject(cause, NULL); if (fixed_cause == NULL) goto bad; } else if (PyExceptionInstance_Check(cause)) { fixed_cause = cause; Py_INCREF(fixed_cause); } else { PyErr_SetString(PyExc_TypeError, "exception causes must derive from " "BaseException"); goto bad; } PyException_SetCause(value, fixed_cause); } PyErr_SetObject(type, value); if (tb) { #if CYTHON_FAST_THREAD_STATE PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { Py_INCREF(tb); tstate->curexc_traceback = tb; Py_XDECREF(tmp_tb); } #else PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); Py_INCREF(tb); PyErr_Restore(tmp_type, tmp_value, tb); Py_XDECREF(tmp_tb); #endif } bad: Py_XDECREF(owned_instance); return; } #endif /* RaiseTooManyValuesToUnpack */ static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) { PyErr_Format(PyExc_ValueError, "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected); } /* RaiseNeedMoreValuesToUnpack */ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { PyErr_Format(PyExc_ValueError, "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack", index, (index == 1) ? "" : "s"); } /* IterFinish */ static CYTHON_INLINE int __Pyx_IterFinish(void) { #if CYTHON_FAST_THREAD_STATE PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* exc_type = tstate->curexc_type; if (unlikely(exc_type)) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) { PyObject *exc_value, *exc_tb; exc_value = tstate->curexc_value; exc_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; Py_DECREF(exc_type); Py_XDECREF(exc_value); Py_XDECREF(exc_tb); return 0; } else { return -1; } } return 0; #else if (unlikely(PyErr_Occurred())) { if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) { PyErr_Clear(); return 0; } else { return -1; } } return 0; #endif } /* UnpackItemEndCheck */ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { if (unlikely(retval)) { Py_DECREF(retval); __Pyx_RaiseTooManyValuesError(expected); return -1; } return __Pyx_IterFinish(); } /* WriteUnraisableException */ static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno, CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename, int full_traceback, CYTHON_UNUSED int nogil) { PyObject *old_exc, *old_val, *old_tb; PyObject *ctx; __Pyx_PyThreadState_declare #ifdef WITH_THREAD PyGILState_STATE state; if (nogil) state = PyGILState_Ensure(); else state = (PyGILState_STATE)0; #endif __Pyx_PyThreadState_assign __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); if (full_traceback) { Py_XINCREF(old_exc); Py_XINCREF(old_val); Py_XINCREF(old_tb); __Pyx_ErrRestore(old_exc, old_val, old_tb); PyErr_PrintEx(1); } #if PY_MAJOR_VERSION < 3 ctx = PyString_FromString(name); #else ctx = PyUnicode_FromString(name); #endif __Pyx_ErrRestore(old_exc, old_val, old_tb); if (!ctx) { PyErr_WriteUnraisable(Py_None); } else { PyErr_WriteUnraisable(ctx); Py_DECREF(ctx); } #ifdef WITH_THREAD if (nogil) PyGILState_Release(state); #endif } /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #if defined(__Pyx_CyFunction_USED) && defined(NDEBUG) if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func))) #else if (likely(PyCFunction_Check(func))) #endif { if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* SetItemInt */ static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) { int r; if (!j) return -1; r = PyObject_SetItem(o, j, v); Py_DECREF(j); return r; } static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o)); if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))) { PyObject* old = PyList_GET_ITEM(o, n); Py_INCREF(v); PyList_SET_ITEM(o, n, v); Py_DECREF(old); return 1; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_ass_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return -1; PyErr_Clear(); } } return m->sq_ass_item(o, i, v); } } #else #if CYTHON_COMPILING_IN_PYPY if (is_list || (PySequence_Check(o) && !PyDict_Check(o))) #else if (is_list || PySequence_Check(o)) #endif { return PySequence_SetItem(o, i, v); } #endif return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v); } /* GetItemInt */ static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyList_GET_SIZE(o); } if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyTuple_GET_SIZE(o); } if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return NULL; PyErr_Clear(); } } return m->sq_item(o, i); } } #else if (is_list || PySequence_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* ArgTypeTest */ static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact) { if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } else if (exact) { #if PY_MAJOR_VERSION == 2 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1; #endif } else { if (likely(__Pyx_TypeCheck(obj, type))) return 1; } PyErr_Format(PyExc_TypeError, "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)", name, type->tp_name, Py_TYPE(obj)->tp_name); return 0; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* PyObjectCall2Args */ static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) { PyObject *args, *result = NULL; #if CYTHON_FAST_PYCALL if (PyFunction_Check(function)) { PyObject *args[2] = {arg1, arg2}; return __Pyx_PyFunction_FastCall(function, args, 2); } #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(function)) { PyObject *args[2] = {arg1, arg2}; return __Pyx_PyCFunction_FastCall(function, args, 2); } #endif args = PyTuple_New(2); if (unlikely(!args)) goto done; Py_INCREF(arg1); PyTuple_SET_ITEM(args, 0, arg1); Py_INCREF(arg2); PyTuple_SET_ITEM(args, 1, arg2); Py_INCREF(function); result = __Pyx_PyObject_Call(function, args, NULL); Py_DECREF(args); Py_DECREF(function); done: return result; } /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif if (likely(PyCFunction_Check(func))) { if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (__Pyx_PyFastCFunction_Check(func)) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectGetMethod */ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) { PyObject *attr; #if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP PyTypeObject *tp = Py_TYPE(obj); PyObject *descr; descrgetfunc f = NULL; PyObject **dictptr, *dict; int meth_found = 0; assert (*method == NULL); if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) { attr = __Pyx_PyObject_GetAttrStr(obj, name); goto try_unpack; } if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) { return 0; } descr = _PyType_Lookup(tp, name); if (likely(descr != NULL)) { Py_INCREF(descr); #if PY_MAJOR_VERSION >= 3 #ifdef __Pyx_CyFunction_USED if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr))) #else if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type))) #endif #else #ifdef __Pyx_CyFunction_USED if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr))) #else if (likely(PyFunction_Check(descr))) #endif #endif { meth_found = 1; } else { f = Py_TYPE(descr)->tp_descr_get; if (f != NULL && PyDescr_IsData(descr)) { attr = f(descr, obj, (PyObject *)Py_TYPE(obj)); Py_DECREF(descr); goto try_unpack; } } } dictptr = _PyObject_GetDictPtr(obj); if (dictptr != NULL && (dict = *dictptr) != NULL) { Py_INCREF(dict); attr = __Pyx_PyDict_GetItemStr(dict, name); if (attr != NULL) { Py_INCREF(attr); Py_DECREF(dict); Py_XDECREF(descr); goto try_unpack; } Py_DECREF(dict); } if (meth_found) { *method = descr; return 1; } if (f != NULL) { attr = f(descr, obj, (PyObject *)Py_TYPE(obj)); Py_DECREF(descr); goto try_unpack; } if (descr != NULL) { *method = descr; return 0; } PyErr_Format(PyExc_AttributeError, #if PY_MAJOR_VERSION >= 3 "'%.50s' object has no attribute '%U'", tp->tp_name, name); #else "'%.50s' object has no attribute '%.400s'", tp->tp_name, PyString_AS_STRING(name)); #endif return 0; #else attr = __Pyx_PyObject_GetAttrStr(obj, name); goto try_unpack; #endif try_unpack: #if CYTHON_UNPACK_METHODS if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) { PyObject *function = PyMethod_GET_FUNCTION(attr); Py_INCREF(function); Py_DECREF(attr); *method = function; return 1; } #endif *method = attr; return 0; } /* PyObjectCallMethod1 */ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) { PyObject *result = __Pyx_PyObject_CallOneArg(method, arg); Py_DECREF(method); return result; } static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) { PyObject *method = NULL, *result; int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method); if (likely(is_method)) { result = __Pyx_PyObject_Call2Args(method, obj, arg); Py_DECREF(method); return result; } if (unlikely(!method)) return NULL; return __Pyx__PyObject_CallMethod1(method, arg); } /* append */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) { if (likely(PyList_CheckExact(L))) { if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1; } else { PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_n_s_append, x); if (unlikely(!retval)) return -1; Py_DECREF(retval); } return 0; } /* ObjectGetItem */ #if CYTHON_USE_TYPE_SLOTS static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) { PyObject *runerr = NULL; Py_ssize_t key_value; PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence; if (unlikely(!(m && m->sq_item))) { PyErr_Format(PyExc_TypeError, "'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name); return NULL; } key_value = __Pyx_PyIndex_AsSsize_t(index); if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) { return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1); } if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) { PyErr_Clear(); PyErr_Format(PyExc_IndexError, "cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name); } return NULL; } static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) { PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping; if (likely(m && m->mp_subscript)) { return m->mp_subscript(obj, key); } return __Pyx_PyObject_GetIndex(obj, key); } #endif /* KeywordStringCheck */ static int __Pyx_CheckKeywordStrings( PyObject *kwdict, const char* function_name, int kw_allowed) { PyObject* key = 0; Py_ssize_t pos = 0; #if CYTHON_COMPILING_IN_PYPY if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0)) goto invalid_keyword; return 1; #else while (PyDict_Next(kwdict, &pos, &key, 0)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyString_Check(key))) #endif if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type; } if ((!kw_allowed) && unlikely(key)) goto invalid_keyword; return 1; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); return 0; #endif invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif return 0; } /* ExtTypeTest */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } if (likely(__Pyx_TypeCheck(obj, type))) return 1; PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s", Py_TYPE(obj)->tp_name, type->tp_name); return 0; } /* ModInt[Py_ssize_t] */ static CYTHON_INLINE Py_ssize_t __Pyx_mod_Py_ssize_t(Py_ssize_t a, Py_ssize_t b) { Py_ssize_t r = a % b; r += ((r != 0) & ((r ^ b) < 0)) * b; return r; } /* PyIntCompare */ static CYTHON_INLINE PyObject* __Pyx_PyInt_NeObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED long inplace) { if (op1 == op2) { Py_RETURN_FALSE; } #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long a = PyInt_AS_LONG(op1); if (a != b) Py_RETURN_TRUE; else Py_RETURN_FALSE; } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { int unequal; unsigned long uintval; Py_ssize_t size = Py_SIZE(op1); const digit* digits = ((PyLongObject*)op1)->ob_digit; if (intval == 0) { if (size != 0) Py_RETURN_TRUE; else Py_RETURN_FALSE; } else if (intval < 0) { if (size >= 0) Py_RETURN_TRUE; intval = -intval; size = -size; } else { if (size <= 0) Py_RETURN_TRUE; } uintval = (unsigned long) intval; #if PyLong_SHIFT * 4 < SIZEOF_LONG*8 if (uintval >> (PyLong_SHIFT * 4)) { unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK)) | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)); } else #endif #if PyLong_SHIFT * 3 < SIZEOF_LONG*8 if (uintval >> (PyLong_SHIFT * 3)) { unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK)) | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)); } else #endif #if PyLong_SHIFT * 2 < SIZEOF_LONG*8 if (uintval >> (PyLong_SHIFT * 2)) { unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK)) | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)); } else #endif #if PyLong_SHIFT * 1 < SIZEOF_LONG*8 if (uintval >> (PyLong_SHIFT * 1)) { unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK)) | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)); } else #endif unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK)); if (unequal != 0) Py_RETURN_TRUE; else Py_RETURN_FALSE; } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); if ((double)a != (double)b) Py_RETURN_TRUE; else Py_RETURN_FALSE; } return ( PyObject_RichCompare(op1, op2, Py_NE)); } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, int inplace, int zerodivision_check) { (void)inplace; (void)zerodivision_check; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a + b); if (likely((x^a) >= 0 || (x^b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_add(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } x = a + b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla + llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("add", return NULL) result = ((double)a) + (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); } #endif /* DictGetItem */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { PyObject *value; value = PyDict_GetItemWithError(d, key); if (unlikely(!value)) { if (!PyErr_Occurred()) { if (unlikely(PyTuple_Check(key))) { PyObject* args = PyTuple_Pack(1, key); if (likely(args)) { PyErr_SetObject(PyExc_KeyError, args); Py_DECREF(args); } } else { PyErr_SetObject(PyExc_KeyError, key); } } return NULL; } Py_INCREF(value); return value; } #endif /* PyObjectSetAttrStr */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #endif /* UnicodeAsUCS4 */ static CYTHON_INLINE Py_UCS4 __Pyx_PyUnicode_AsPy_UCS4(PyObject* x) { Py_ssize_t length; #if CYTHON_PEP393_ENABLED length = PyUnicode_GET_LENGTH(x); if (likely(length == 1)) { return PyUnicode_READ_CHAR(x, 0); } #else length = PyUnicode_GET_SIZE(x); if (likely(length == 1)) { return PyUnicode_AS_UNICODE(x)[0]; } #if Py_UNICODE_SIZE == 2 else if (PyUnicode_GET_SIZE(x) == 2) { Py_UCS4 high_val = PyUnicode_AS_UNICODE(x)[0]; if (high_val >= 0xD800 && high_val <= 0xDBFF) { Py_UCS4 low_val = PyUnicode_AS_UNICODE(x)[1]; if (low_val >= 0xDC00 && low_val <= 0xDFFF) { return 0x10000 + (((high_val & ((1<<10)-1)) << 10) | (low_val & ((1<<10)-1))); } } } #endif #endif PyErr_Format(PyExc_ValueError, "only single character unicode strings can be converted to Py_UCS4, " "got length %" CYTHON_FORMAT_SSIZE_T "d", length); return (Py_UCS4)-1; } /* object_ord */ static long __Pyx__PyObject_Ord(PyObject* c) { Py_ssize_t size; if (PyBytes_Check(c)) { size = PyBytes_GET_SIZE(c); if (likely(size == 1)) { return (unsigned char) PyBytes_AS_STRING(c)[0]; } #if PY_MAJOR_VERSION < 3 } else if (PyUnicode_Check(c)) { return (long)__Pyx_PyUnicode_AsPy_UCS4(c); #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) } else if (PyByteArray_Check(c)) { size = PyByteArray_GET_SIZE(c); if (likely(size == 1)) { return (unsigned char) PyByteArray_AS_STRING(c)[0]; } #endif } else { PyErr_Format(PyExc_TypeError, "ord() expected string of length 1, but %.200s found", Py_TYPE(c)->tp_name); return (long)(Py_UCS4)-1; } PyErr_Format(PyExc_TypeError, "ord() expected a character, but string of length %zd found", size); return (long)(Py_UCS4)-1; } /* decode_c_string */ static CYTHON_INLINE PyObject* __Pyx_decode_c_string( const char* cstring, Py_ssize_t start, Py_ssize_t stop, const char* encoding, const char* errors, PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) { Py_ssize_t length; if (unlikely((start < 0) | (stop < 0))) { size_t slen = strlen(cstring); if (unlikely(slen > (size_t) PY_SSIZE_T_MAX)) { PyErr_SetString(PyExc_OverflowError, "c-string too long to convert to Python"); return NULL; } length = (Py_ssize_t) slen; if (start < 0) { start += length; if (start < 0) start = 0; } if (stop < 0) stop += length; } if (unlikely(stop <= start)) return __Pyx_NewRef(__pyx_empty_unicode); length = stop - start; cstring += start; if (decode_func) { return decode_func(cstring, length, errors); } else { return PyUnicode_Decode(cstring, length, encoding, errors); } } /* PyObjectCallMethod0 */ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) { PyObject *method = NULL, *result = NULL; int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method); if (likely(is_method)) { result = __Pyx_PyObject_CallOneArg(method, obj); Py_DECREF(method); return result; } if (unlikely(!method)) goto bad; result = __Pyx_PyObject_CallNoArg(method); Py_DECREF(method); bad: return result; } /* RaiseNoneIterError */ static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); } /* UnpackTupleError */ static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) { if (t == Py_None) { __Pyx_RaiseNoneNotIterableError(); } else if (PyTuple_GET_SIZE(t) < index) { __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t)); } else { __Pyx_RaiseTooManyValuesError(index); } } /* UnpackTuple2 */ static CYTHON_INLINE int __Pyx_unpack_tuple2_exact( PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) { PyObject *value1 = NULL, *value2 = NULL; #if CYTHON_COMPILING_IN_PYPY value1 = PySequence_ITEM(tuple, 0); if (unlikely(!value1)) goto bad; value2 = PySequence_ITEM(tuple, 1); if (unlikely(!value2)) goto bad; #else value1 = PyTuple_GET_ITEM(tuple, 0); Py_INCREF(value1); value2 = PyTuple_GET_ITEM(tuple, 1); Py_INCREF(value2); #endif if (decref_tuple) { Py_DECREF(tuple); } *pvalue1 = value1; *pvalue2 = value2; return 0; #if CYTHON_COMPILING_IN_PYPY bad: Py_XDECREF(value1); Py_XDECREF(value2); if (decref_tuple) { Py_XDECREF(tuple); } return -1; #endif } static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int has_known_size, int decref_tuple) { Py_ssize_t index; PyObject *value1 = NULL, *value2 = NULL, *iter = NULL; iternextfunc iternext; iter = PyObject_GetIter(tuple); if (unlikely(!iter)) goto bad; if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; } iternext = Py_TYPE(iter)->tp_iternext; value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; } value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; } if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad; Py_DECREF(iter); *pvalue1 = value1; *pvalue2 = value2; return 0; unpacking_failed: if (!has_known_size && __Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); bad: Py_XDECREF(iter); Py_XDECREF(value1); Py_XDECREF(value2); if (decref_tuple) { Py_XDECREF(tuple); } return -1; } /* dict_iter */ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name, Py_ssize_t* p_orig_length, int* p_source_is_dict) { is_dict = is_dict || likely(PyDict_CheckExact(iterable)); *p_source_is_dict = is_dict; if (is_dict) { #if !CYTHON_COMPILING_IN_PYPY *p_orig_length = PyDict_Size(iterable); Py_INCREF(iterable); return iterable; #elif PY_MAJOR_VERSION >= 3 static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL; PyObject **pp = NULL; if (method_name) { const char *name = PyUnicode_AsUTF8(method_name); if (strcmp(name, "iteritems") == 0) pp = &py_items; else if (strcmp(name, "iterkeys") == 0) pp = &py_keys; else if (strcmp(name, "itervalues") == 0) pp = &py_values; if (pp) { if (!*pp) { *pp = PyUnicode_FromString(name + 4); if (!*pp) return NULL; } method_name = *pp; } } #endif } *p_orig_length = 0; if (method_name) { PyObject* iter; iterable = __Pyx_PyObject_CallMethod0(iterable, method_name); if (!iterable) return NULL; #if !CYTHON_COMPILING_IN_PYPY if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable)) return iterable; #endif iter = PyObject_GetIter(iterable); Py_DECREF(iterable); return iter; } return PyObject_GetIter(iterable); } static CYTHON_INLINE int __Pyx_dict_iter_next( PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos, PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) { PyObject* next_item; #if !CYTHON_COMPILING_IN_PYPY if (source_is_dict) { PyObject *key, *value; if (unlikely(orig_length != PyDict_Size(iter_obj))) { PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration"); return -1; } if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) { return 0; } if (pitem) { PyObject* tuple = PyTuple_New(2); if (unlikely(!tuple)) { return -1; } Py_INCREF(key); Py_INCREF(value); PyTuple_SET_ITEM(tuple, 0, key); PyTuple_SET_ITEM(tuple, 1, value); *pitem = tuple; } else { if (pkey) { Py_INCREF(key); *pkey = key; } if (pvalue) { Py_INCREF(value); *pvalue = value; } } return 1; } else if (PyTuple_CheckExact(iter_obj)) { Py_ssize_t pos = *ppos; if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0; *ppos = pos + 1; next_item = PyTuple_GET_ITEM(iter_obj, pos); Py_INCREF(next_item); } else if (PyList_CheckExact(iter_obj)) { Py_ssize_t pos = *ppos; if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0; *ppos = pos + 1; next_item = PyList_GET_ITEM(iter_obj, pos); Py_INCREF(next_item); } else #endif { next_item = PyIter_Next(iter_obj); if (unlikely(!next_item)) { return __Pyx_IterFinish(); } } if (pitem) { *pitem = next_item; } else if (pkey && pvalue) { if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1)) return -1; } else if (pkey) { *pkey = next_item; } else { *pvalue = next_item; } return 1; } /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(tuple); #if PY_MAJOR_VERSION >= 3 for (i=0; icurexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; if (unlikely(PyTuple_Check(err))) return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); } #endif /* GetAttr */ static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) { #if CYTHON_USE_TYPE_SLOTS #if PY_MAJOR_VERSION >= 3 if (likely(PyUnicode_Check(n))) #else if (likely(PyString_Check(n))) #endif return __Pyx_PyObject_GetAttrStr(o, n); #endif return PyObject_GetAttr(o, n); } /* GetAttr3 */ static PyObject *__Pyx_GetAttr3Default(PyObject *d) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; __Pyx_PyErr_Clear(); Py_INCREF(d); return d; } static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) { PyObject *r = __Pyx_GetAttr(o, n); return (likely(r)) ? r : __Pyx_GetAttr3Default(d); } /* StringJoin */ #if !CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values) { return PyObject_CallMethodObjArgs(sep, __pyx_n_s_join, values, NULL); } #endif /* BufferIndexError */ static void __Pyx_RaiseBufferIndexError(int axis) { PyErr_Format(PyExc_IndexError, "Out of bounds on buffer access (axis %d)", axis); } /* MemviewSliceInit */ static int __Pyx_init_memviewslice(struct __pyx_memoryview_obj *memview, int ndim, __Pyx_memviewslice *memviewslice, int memview_is_new_reference) { __Pyx_RefNannyDeclarations int i, retval=-1; Py_buffer *buf = &memview->view; __Pyx_RefNannySetupContext("init_memviewslice", 0); if (unlikely(memviewslice->memview || memviewslice->data)) { PyErr_SetString(PyExc_ValueError, "memviewslice is already initialized!"); goto fail; } if (buf->strides) { for (i = 0; i < ndim; i++) { memviewslice->strides[i] = buf->strides[i]; } } else { Py_ssize_t stride = buf->itemsize; for (i = ndim - 1; i >= 0; i--) { memviewslice->strides[i] = stride; stride *= buf->shape[i]; } } for (i = 0; i < ndim; i++) { memviewslice->shape[i] = buf->shape[i]; if (buf->suboffsets) { memviewslice->suboffsets[i] = buf->suboffsets[i]; } else { memviewslice->suboffsets[i] = -1; } } memviewslice->memview = memview; memviewslice->data = (char *)buf->buf; if (__pyx_add_acquisition_count(memview) == 0 && !memview_is_new_reference) { Py_INCREF(memview); } retval = 0; goto no_fail; fail: memviewslice->memview = 0; memviewslice->data = 0; retval = -1; no_fail: __Pyx_RefNannyFinishContext(); return retval; } #ifndef Py_NO_RETURN #define Py_NO_RETURN #endif static void __pyx_fatalerror(const char *fmt, ...) Py_NO_RETURN { va_list vargs; char msg[200]; #if PY_VERSION_HEX >= 0x030A0000 || defined(HAVE_STDARG_PROTOTYPES) va_start(vargs, fmt); #else va_start(vargs); #endif vsnprintf(msg, 200, fmt, vargs); va_end(vargs); Py_FatalError(msg); } static CYTHON_INLINE int __pyx_add_acquisition_count_locked(__pyx_atomic_int *acquisition_count, PyThread_type_lock lock) { int result; PyThread_acquire_lock(lock, 1); result = (*acquisition_count)++; PyThread_release_lock(lock); return result; } static CYTHON_INLINE int __pyx_sub_acquisition_count_locked(__pyx_atomic_int *acquisition_count, PyThread_type_lock lock) { int result; PyThread_acquire_lock(lock, 1); result = (*acquisition_count)--; PyThread_release_lock(lock); return result; } static CYTHON_INLINE void __Pyx_INC_MEMVIEW(__Pyx_memviewslice *memslice, int have_gil, int lineno) { int first_time; struct __pyx_memoryview_obj *memview = memslice->memview; if (unlikely(!memview || (PyObject *) memview == Py_None)) return; if (unlikely(__pyx_get_slice_count(memview) < 0)) __pyx_fatalerror("Acquisition count is %d (line %d)", __pyx_get_slice_count(memview), lineno); first_time = __pyx_add_acquisition_count(memview) == 0; if (unlikely(first_time)) { if (have_gil) { Py_INCREF((PyObject *) memview); } else { PyGILState_STATE _gilstate = PyGILState_Ensure(); Py_INCREF((PyObject *) memview); PyGILState_Release(_gilstate); } } } static CYTHON_INLINE void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *memslice, int have_gil, int lineno) { int last_time; struct __pyx_memoryview_obj *memview = memslice->memview; if (unlikely(!memview || (PyObject *) memview == Py_None)) { memslice->memview = NULL; return; } if (unlikely(__pyx_get_slice_count(memview) <= 0)) __pyx_fatalerror("Acquisition count is %d (line %d)", __pyx_get_slice_count(memview), lineno); last_time = __pyx_sub_acquisition_count(memview) == 1; memslice->data = NULL; if (unlikely(last_time)) { if (have_gil) { Py_CLEAR(memslice->memview); } else { PyGILState_STATE _gilstate = PyGILState_Ensure(); Py_CLEAR(memslice->memview); PyGILState_Release(_gilstate); } } else { memslice->memview = NULL; } } /* pyobject_as_double */ static double __Pyx__PyObject_AsDouble(PyObject* obj) { PyObject* float_value; #if !CYTHON_USE_TYPE_SLOTS float_value = PyNumber_Float(obj); if ((0)) goto bad; #else PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number; if (likely(nb) && likely(nb->nb_float)) { float_value = nb->nb_float(obj); if (likely(float_value) && unlikely(!PyFloat_Check(float_value))) { PyErr_Format(PyExc_TypeError, "__float__ returned non-float (type %.200s)", Py_TYPE(float_value)->tp_name); Py_DECREF(float_value); goto bad; } } else if (PyUnicode_CheckExact(obj) || PyBytes_CheckExact(obj)) { #if PY_MAJOR_VERSION >= 3 float_value = PyFloat_FromString(obj); #else float_value = PyFloat_FromString(obj, 0); #endif } else { PyObject* args = PyTuple_New(1); if (unlikely(!args)) goto bad; PyTuple_SET_ITEM(args, 0, obj); float_value = PyObject_Call((PyObject*)&PyFloat_Type, args, 0); PyTuple_SET_ITEM(args, 0, 0); Py_DECREF(args); } #endif if (likely(float_value)) { double value = PyFloat_AS_DOUBLE(float_value); Py_DECREF(float_value); return value; } bad: return (double)-1; } /* GetTopmostException */ #if CYTHON_USE_EXC_INFO_STACK static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate) { _PyErr_StackItem *exc_info = tstate->exc_info; while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) && exc_info->previous_item != NULL) { exc_info = exc_info->previous_item; } return exc_info; } #endif /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate); *type = exc_info->exc_type; *value = exc_info->exc_value; *tb = exc_info->exc_traceback; #else *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; #endif Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = type; exc_info->exc_value = value; exc_info->exc_traceback = tb; #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } #endif /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) #endif { PyObject *local_type, *local_value, *local_tb; #if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif Py_XINCREF(local_tb); Py_XINCREF(local_type); Py_XINCREF(local_value); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE #if CYTHON_USE_EXC_INFO_STACK { _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = local_type; exc_info->exc_value = local_value; exc_info->exc_traceback = local_tb; } #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* DelItemInt */ static int __Pyx_DelItem_Generic(PyObject *o, PyObject *j) { int r; if (!j) return -1; r = PyObject_DelItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE int __Pyx_DelItemInt_Fast(PyObject *o, Py_ssize_t i, CYTHON_UNUSED int is_list, CYTHON_NCP_UNUSED int wraparound) { #if !CYTHON_USE_TYPE_SLOTS if (is_list || PySequence_Check(o)) { return PySequence_DelItem(o, i); } #else PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_ass_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return -1; PyErr_Clear(); } } return m->sq_ass_item(o, i, (PyObject *)NULL); } #endif return __Pyx_DelItem_Generic(o, PyInt_FromSsize_t(i)); } /* SwapException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = *type; exc_info->exc_value = *value; exc_info->exc_traceback = *tb; #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; #endif *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); PyErr_SetExcInfo(*type, *value, *tb); *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_MAJOR_VERSION < 3 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) { module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_MAJOR_VERSION < 3 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, (PyObject *)NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* HasAttr */ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) { PyObject *r; if (unlikely(!__Pyx_PyBaseString_Check(n))) { PyErr_SetString(PyExc_TypeError, "hasattr(): attribute name must be string"); return -1; } r = __Pyx_GetAttr(o, n); if (unlikely(!r)) { PyErr_Clear(); return 0; } else { Py_DECREF(r); return 1; } } /* BytesEquals */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else if (s1 == s2) { return (equals == Py_EQ); } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) { const char *ps1, *ps2; Py_ssize_t length = PyBytes_GET_SIZE(s1); if (length != PyBytes_GET_SIZE(s2)) return (equals == Py_NE); ps1 = PyBytes_AS_STRING(s1); ps2 = PyBytes_AS_STRING(s2); if (ps1[0] != ps2[0]) { return (equals == Py_NE); } else if (length == 1) { return (equals == Py_EQ); } else { int result; #if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000) Py_hash_t hash1, hash2; hash1 = ((PyBytesObject*)s1)->ob_shash; hash2 = ((PyBytesObject*)s2)->ob_shash; if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { return (equals == Py_NE); } #endif result = memcmp(ps1, ps2, (size_t)length); return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { return (equals == Py_NE); } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) { return (equals == Py_NE); } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } #endif } /* UnicodeEquals */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else #if PY_MAJOR_VERSION < 3 PyObject* owned_ref = NULL; #endif int s1_is_unicode, s2_is_unicode; if (s1 == s2) { goto return_eq; } s1_is_unicode = PyUnicode_CheckExact(s1); s2_is_unicode = PyUnicode_CheckExact(s2); #if PY_MAJOR_VERSION < 3 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) { owned_ref = PyUnicode_FromObject(s2); if (unlikely(!owned_ref)) return -1; s2 = owned_ref; s2_is_unicode = 1; } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) { owned_ref = PyUnicode_FromObject(s1); if (unlikely(!owned_ref)) return -1; s1 = owned_ref; s1_is_unicode = 1; } else if (((!s2_is_unicode) & (!s1_is_unicode))) { return __Pyx_PyBytes_Equals(s1, s2, equals); } #endif if (s1_is_unicode & s2_is_unicode) { Py_ssize_t length; int kind; void *data1, *data2; if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) return -1; length = __Pyx_PyUnicode_GET_LENGTH(s1); if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { goto return_ne; } #if CYTHON_USE_UNICODE_INTERNALS { Py_hash_t hash1, hash2; #if CYTHON_PEP393_ENABLED hash1 = ((PyASCIIObject*)s1)->hash; hash2 = ((PyASCIIObject*)s2)->hash; #else hash1 = ((PyUnicodeObject*)s1)->hash; hash2 = ((PyUnicodeObject*)s2)->hash; #endif if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { goto return_ne; } } #endif kind = __Pyx_PyUnicode_KIND(s1); if (kind != __Pyx_PyUnicode_KIND(s2)) { goto return_ne; } data1 = __Pyx_PyUnicode_DATA(s1); data2 = __Pyx_PyUnicode_DATA(s2); if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) { goto return_ne; } else if (length == 1) { goto return_eq; } else { int result = memcmp(data1, data2, (size_t)(length * kind)); #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & s2_is_unicode) { goto return_ne; } else if ((s2 == Py_None) & s1_is_unicode) { goto return_ne; } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } return_eq: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ); return_ne: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_NE); #endif } /* DivInt[Py_ssize_t] */ static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t a, Py_ssize_t b) { Py_ssize_t q = a / b; Py_ssize_t r = a - q*b; q -= ((r != 0) & ((r ^ b) < 0)); return q; } /* FastTypeChecks */ #if CYTHON_COMPILING_IN_CPYTHON static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { while (a) { a = a->tp_base; if (a == b) return 1; } return b == &PyBaseObject_Type; } static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { PyObject *mro; if (a == b) return 1; mro = a->tp_mro; if (likely(mro)) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(mro); for (i = 0; i < n; i++) { if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) return 1; } return 0; } return __Pyx_InBases(a, b); } #if PY_MAJOR_VERSION == 2 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { PyObject *exception, *value, *tb; int res; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ErrFetch(&exception, &value, &tb); res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } if (!res) { res = PyObject_IsSubclass(err, exc_type2); if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } } __Pyx_ErrRestore(exception, value, tb); return res; } #else static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; if (!res) { res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); } return res; } #endif static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { Py_ssize_t i, n; assert(PyExceptionClass_Check(exc_type)); n = PyTuple_GET_SIZE(tuple); #if PY_MAJOR_VERSION >= 3 for (i=0; i= 3 "'%.50s' object has no attribute '%U'", tp->tp_name, attr_name); #else "'%.50s' object has no attribute '%.400s'", tp->tp_name, PyString_AS_STRING(attr_name)); #endif return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) { PyObject *descr; PyTypeObject *tp = Py_TYPE(obj); if (unlikely(!PyString_Check(attr_name))) { return PyObject_GenericGetAttr(obj, attr_name); } assert(!tp->tp_dictoffset); descr = _PyType_Lookup(tp, attr_name); if (unlikely(!descr)) { return __Pyx_RaiseGenericGetAttributeError(tp, attr_name); } Py_INCREF(descr); #if PY_MAJOR_VERSION < 3 if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS))) #endif { descrgetfunc f = Py_TYPE(descr)->tp_descr_get; if (unlikely(f)) { PyObject *res = f(descr, obj, (PyObject *)tp); Py_DECREF(descr); return res; } } return descr; } #endif /* PyObject_GenericGetAttr */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) { if (unlikely(Py_TYPE(obj)->tp_dictoffset)) { return PyObject_GenericGetAttr(obj, attr_name); } return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name); } #endif /* SetVTable */ static int __Pyx_SetVtable(PyObject *dict, void *vtable) { #if PY_VERSION_HEX >= 0x02070000 PyObject *ob = PyCapsule_New(vtable, 0, 0); #else PyObject *ob = PyCObject_FromVoidPtr(vtable, 0); #endif if (!ob) goto bad; if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0) goto bad; Py_DECREF(ob); return 0; bad: Py_XDECREF(ob); return -1; } /* PyObjectGetAttrStrNoError */ static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))) __Pyx_PyErr_Clear(); } static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) { PyObject *result; #if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1 PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) { return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1); } #endif result = __Pyx_PyObject_GetAttrStr(obj, attr_name); if (unlikely(!result)) { __Pyx_PyObject_GetAttrStr_ClearAttributeError(); } return result; } /* SetupReduce */ static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) { int ret; PyObject *name_attr; name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name); if (likely(name_attr)) { ret = PyObject_RichCompareBool(name_attr, name, Py_EQ); } else { ret = -1; } if (unlikely(ret < 0)) { PyErr_Clear(); ret = 0; } Py_XDECREF(name_attr); return ret; } static int __Pyx_setup_reduce(PyObject* type_obj) { int ret = 0; PyObject *object_reduce = NULL; PyObject *object_getstate = NULL; PyObject *object_reduce_ex = NULL; PyObject *reduce = NULL; PyObject *reduce_ex = NULL; PyObject *reduce_cython = NULL; PyObject *setstate = NULL; PyObject *setstate_cython = NULL; PyObject *getstate = NULL; #if CYTHON_USE_PYTYPE_LOOKUP getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate); #else getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_getstate); if (!getstate && PyErr_Occurred()) { goto __PYX_BAD; } #endif if (getstate) { #if CYTHON_USE_PYTYPE_LOOKUP object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_getstate); #else object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_n_s_getstate); if (!object_getstate && PyErr_Occurred()) { goto __PYX_BAD; } #endif if (object_getstate != getstate) { goto __PYX_GOOD; } } #if CYTHON_USE_PYTYPE_LOOKUP object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD; #else object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD; #endif reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD; if (reduce_ex == object_reduce_ex) { #if CYTHON_USE_PYTYPE_LOOKUP object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD; #else object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD; #endif reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto __PYX_BAD; if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) { reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython); if (likely(reduce_cython)) { ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD; } else if (reduce == object_reduce || PyErr_Occurred()) { goto __PYX_BAD; } setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate); if (!setstate) PyErr_Clear(); if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) { setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython); if (likely(setstate_cython)) { ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD; } else if (!setstate || PyErr_Occurred()) { goto __PYX_BAD; } } PyType_Modified((PyTypeObject*)type_obj); } } goto __PYX_GOOD; __PYX_BAD: if (!PyErr_Occurred()) PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name); ret = -1; __PYX_GOOD: #if !CYTHON_USE_PYTYPE_LOOKUP Py_XDECREF(object_reduce); Py_XDECREF(object_reduce_ex); Py_XDECREF(object_getstate); Py_XDECREF(getstate); #endif Py_XDECREF(reduce); Py_XDECREF(reduce_ex); Py_XDECREF(reduce_cython); Py_XDECREF(setstate); Py_XDECREF(setstate_cython); return ret; } /* TypeImport */ #ifndef __PYX_HAVE_RT_ImportType_0_29_37 #define __PYX_HAVE_RT_ImportType_0_29_37 static PyTypeObject *__Pyx_ImportType_0_29_37(PyObject *module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_0_29_37 check_size) { PyObject *result = 0; char warning[200]; Py_ssize_t basicsize; Py_ssize_t itemsize; #ifdef Py_LIMITED_API PyObject *py_basicsize; PyObject *py_itemsize; #endif result = PyObject_GetAttrString(module, class_name); if (!result) goto bad; if (!PyType_Check(result)) { PyErr_Format(PyExc_TypeError, "%.200s.%.200s is not a type object", module_name, class_name); goto bad; } #ifndef Py_LIMITED_API basicsize = ((PyTypeObject *)result)->tp_basicsize; itemsize = ((PyTypeObject *)result)->tp_itemsize; #else py_basicsize = PyObject_GetAttrString(result, "__basicsize__"); if (!py_basicsize) goto bad; basicsize = PyLong_AsSsize_t(py_basicsize); Py_DECREF(py_basicsize); py_basicsize = 0; if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred()) goto bad; py_itemsize = PyObject_GetAttrString(result, "__itemsize__"); if (!py_itemsize) goto bad; itemsize = PyLong_AsSsize_t(py_itemsize); Py_DECREF(py_itemsize); py_itemsize = 0; if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred()) goto bad; #endif if (itemsize) { if (size % alignment) { alignment = size % alignment; } if (itemsize < (Py_ssize_t)alignment) itemsize = (Py_ssize_t)alignment; } if ((size_t)(basicsize + itemsize) < size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); goto bad; } if (check_size == __Pyx_ImportType_CheckSize_Error_0_29_37 && (size_t)basicsize != size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); goto bad; } else if (check_size == __Pyx_ImportType_CheckSize_Warn_0_29_37 && (size_t)basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad; } return (PyTypeObject *)result; bad: Py_XDECREF(result); return NULL; } #endif /* GetNameInClass */ static PyObject *__Pyx_GetGlobalNameAfterAttributeLookup(PyObject *name) { PyObject *result; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; __Pyx_PyErr_Clear(); __Pyx_GetModuleGlobalNameUncached(result, name); return result; } static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) { PyObject *result; result = __Pyx_PyObject_GetAttrStr(nmspace, name); if (!result) { result = __Pyx_GetGlobalNameAfterAttributeLookup(name); } return result; } /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunctionShared */ #include static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 Py_INCREF(m->func_qualname); return m->func_qualname; #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { if (unlikely(op == NULL)) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults_size = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m) { if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); __Pyx__CyFunction_dealloc(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { #if PY_MAJOR_VERSION < 3 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; #endif return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("", op->func_qualname, (void *)op); #else return PyString_FromFormat("", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)(void*)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS arg0 = PyTuple_GET_ITEM(arg, 0); #else arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; #endif result = (*meth)(self, arg0); #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_DECREF(arg0); #endif return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); #if PY_MAJOR_VERSION > 2 PyErr_Format(PyExc_TypeError, "unbound method %.200S() needs an argument", cyfunc->func_qualname); #else PyErr_SetString(PyExc_TypeError, "unbound method needs an argument"); #endif return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, #endif #if PY_VERSION_HEX >= 0x030C0000 0, #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (unlikely(__pyx_CyFunctionType == NULL)) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (unlikely(!m->defaults)) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; m->defaults_size = size; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* FusedFunction */ static PyObject * __pyx_FusedFunction_New(PyMethodDef *ml, int flags, PyObject *qualname, PyObject *closure, PyObject *module, PyObject *globals, PyObject *code) { PyObject *op = __Pyx_CyFunction_Init( PyObject_GC_New(__pyx_CyFunctionObject, __pyx_FusedFunctionType), ml, flags, qualname, closure, module, globals, code ); if (likely(op)) { __pyx_FusedFunctionObject *fusedfunc = (__pyx_FusedFunctionObject *) op; fusedfunc->__signatures__ = NULL; fusedfunc->type = NULL; fusedfunc->self = NULL; PyObject_GC_Track(op); } return op; } static void __pyx_FusedFunction_dealloc(__pyx_FusedFunctionObject *self) { PyObject_GC_UnTrack(self); Py_CLEAR(self->self); Py_CLEAR(self->type); Py_CLEAR(self->__signatures__); __Pyx__CyFunction_dealloc((__pyx_CyFunctionObject *) self); } static int __pyx_FusedFunction_traverse(__pyx_FusedFunctionObject *self, visitproc visit, void *arg) { Py_VISIT(self->self); Py_VISIT(self->type); Py_VISIT(self->__signatures__); return __Pyx_CyFunction_traverse((__pyx_CyFunctionObject *) self, visit, arg); } static int __pyx_FusedFunction_clear(__pyx_FusedFunctionObject *self) { Py_CLEAR(self->self); Py_CLEAR(self->type); Py_CLEAR(self->__signatures__); return __Pyx_CyFunction_clear((__pyx_CyFunctionObject *) self); } static PyObject * __pyx_FusedFunction_descr_get(PyObject *self, PyObject *obj, PyObject *type) { __pyx_FusedFunctionObject *func, *meth; func = (__pyx_FusedFunctionObject *) self; if (func->self || func->func.flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(self); return self; } if (obj == Py_None) obj = NULL; meth = (__pyx_FusedFunctionObject *) __pyx_FusedFunction_New( ((PyCFunctionObject *) func)->m_ml, ((__pyx_CyFunctionObject *) func)->flags, ((__pyx_CyFunctionObject *) func)->func_qualname, ((__pyx_CyFunctionObject *) func)->func_closure, ((PyCFunctionObject *) func)->m_module, ((__pyx_CyFunctionObject *) func)->func_globals, ((__pyx_CyFunctionObject *) func)->func_code); if (!meth) return NULL; if (func->func.defaults) { PyObject **pydefaults; int i; if (!__Pyx_CyFunction_InitDefaults((PyObject*)meth, func->func.defaults_size, func->func.defaults_pyobjects)) { Py_XDECREF((PyObject*)meth); return NULL; } memcpy(meth->func.defaults, func->func.defaults, func->func.defaults_size); pydefaults = __Pyx_CyFunction_Defaults(PyObject *, meth); for (i = 0; i < meth->func.defaults_pyobjects; i++) Py_XINCREF(pydefaults[i]); } Py_XINCREF(func->func.func_classobj); meth->func.func_classobj = func->func.func_classobj; Py_XINCREF(func->__signatures__); meth->__signatures__ = func->__signatures__; Py_XINCREF(type); meth->type = type; Py_XINCREF(func->func.defaults_tuple); meth->func.defaults_tuple = func->func.defaults_tuple; if (func->func.flags & __Pyx_CYFUNCTION_CLASSMETHOD) obj = type; Py_XINCREF(obj); meth->self = obj; return (PyObject *) meth; } static PyObject * _obj_to_str(PyObject *obj) { if (PyType_Check(obj)) return PyObject_GetAttr(obj, __pyx_n_s_name); else return PyObject_Str(obj); } static PyObject * __pyx_FusedFunction_getitem(__pyx_FusedFunctionObject *self, PyObject *idx) { PyObject *signature = NULL; PyObject *unbound_result_func; PyObject *result_func = NULL; if (self->__signatures__ == NULL) { PyErr_SetString(PyExc_TypeError, "Function is not fused"); return NULL; } if (PyTuple_Check(idx)) { PyObject *list = PyList_New(0); Py_ssize_t n = PyTuple_GET_SIZE(idx); PyObject *sep = NULL; int i; if (unlikely(!list)) return NULL; for (i = 0; i < n; i++) { int ret; PyObject *string; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS PyObject *item = PyTuple_GET_ITEM(idx, i); #else PyObject *item = PySequence_ITEM(idx, i); if (unlikely(!item)) goto __pyx_err; #endif string = _obj_to_str(item); #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_DECREF(item); #endif if (unlikely(!string)) goto __pyx_err; ret = PyList_Append(list, string); Py_DECREF(string); if (unlikely(ret < 0)) goto __pyx_err; } sep = PyUnicode_FromString("|"); if (likely(sep)) signature = PyUnicode_Join(sep, list); __pyx_err: ; Py_DECREF(list); Py_XDECREF(sep); } else { signature = _obj_to_str(idx); } if (!signature) return NULL; unbound_result_func = PyObject_GetItem(self->__signatures__, signature); if (unbound_result_func) { if (self->self || self->type) { __pyx_FusedFunctionObject *unbound = (__pyx_FusedFunctionObject *) unbound_result_func; Py_CLEAR(unbound->func.func_classobj); Py_XINCREF(self->func.func_classobj); unbound->func.func_classobj = self->func.func_classobj; result_func = __pyx_FusedFunction_descr_get(unbound_result_func, self->self, self->type); } else { result_func = unbound_result_func; Py_INCREF(result_func); } } Py_DECREF(signature); Py_XDECREF(unbound_result_func); return result_func; } static PyObject * __pyx_FusedFunction_callfunction(PyObject *func, PyObject *args, PyObject *kw) { __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; int static_specialized = (cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD && !((__pyx_FusedFunctionObject *) func)->__signatures__); if (cyfunc->flags & __Pyx_CYFUNCTION_CCLASS && !static_specialized) { return __Pyx_CyFunction_CallAsMethod(func, args, kw); } else { return __Pyx_CyFunction_Call(func, args, kw); } } static PyObject * __pyx_FusedFunction_call(PyObject *func, PyObject *args, PyObject *kw) { __pyx_FusedFunctionObject *binding_func = (__pyx_FusedFunctionObject *) func; Py_ssize_t argc = PyTuple_GET_SIZE(args); PyObject *new_args = NULL; __pyx_FusedFunctionObject *new_func = NULL; PyObject *result = NULL; PyObject *self = NULL; int is_staticmethod = binding_func->func.flags & __Pyx_CYFUNCTION_STATICMETHOD; int is_classmethod = binding_func->func.flags & __Pyx_CYFUNCTION_CLASSMETHOD; if (binding_func->self) { Py_ssize_t i; new_args = PyTuple_New(argc + 1); if (!new_args) return NULL; self = binding_func->self; #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_INCREF(self); #endif Py_INCREF(self); PyTuple_SET_ITEM(new_args, 0, self); for (i = 0; i < argc; i++) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS PyObject *item = PyTuple_GET_ITEM(args, i); Py_INCREF(item); #else PyObject *item = PySequence_ITEM(args, i); if (unlikely(!item)) goto bad; #endif PyTuple_SET_ITEM(new_args, i + 1, item); } args = new_args; } else if (binding_func->type) { if (argc < 1) { PyErr_SetString(PyExc_TypeError, "Need at least one argument, 0 given."); return NULL; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS self = PyTuple_GET_ITEM(args, 0); #else self = PySequence_ITEM(args, 0); if (unlikely(!self)) return NULL; #endif } if (self && !is_classmethod && !is_staticmethod) { int is_instance = PyObject_IsInstance(self, binding_func->type); if (unlikely(!is_instance)) { PyErr_Format(PyExc_TypeError, "First argument should be of type %.200s, got %.200s.", ((PyTypeObject *) binding_func->type)->tp_name, Py_TYPE(self)->tp_name); goto bad; } else if (unlikely(is_instance == -1)) { goto bad; } } #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_XDECREF(self); self = NULL; #endif if (binding_func->__signatures__) { PyObject *tup; if (is_staticmethod && binding_func->func.flags & __Pyx_CYFUNCTION_CCLASS) { tup = PyTuple_Pack(3, args, kw == NULL ? Py_None : kw, binding_func->func.defaults_tuple); if (unlikely(!tup)) goto bad; new_func = (__pyx_FusedFunctionObject *) __Pyx_CyFunction_CallMethod( func, binding_func->__signatures__, tup, NULL); } else { tup = PyTuple_Pack(4, binding_func->__signatures__, args, kw == NULL ? Py_None : kw, binding_func->func.defaults_tuple); if (unlikely(!tup)) goto bad; new_func = (__pyx_FusedFunctionObject *) __pyx_FusedFunction_callfunction(func, tup, NULL); } Py_DECREF(tup); if (unlikely(!new_func)) goto bad; Py_XINCREF(binding_func->func.func_classobj); Py_CLEAR(new_func->func.func_classobj); new_func->func.func_classobj = binding_func->func.func_classobj; func = (PyObject *) new_func; } result = __pyx_FusedFunction_callfunction(func, args, kw); bad: #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_XDECREF(self); #endif Py_XDECREF(new_args); Py_XDECREF((PyObject *) new_func); return result; } static PyMemberDef __pyx_FusedFunction_members[] = { {(char *) "__signatures__", T_OBJECT, offsetof(__pyx_FusedFunctionObject, __signatures__), READONLY, 0}, {0, 0, 0, 0, 0}, }; static PyMappingMethods __pyx_FusedFunction_mapping_methods = { 0, (binaryfunc) __pyx_FusedFunction_getitem, 0, }; static PyTypeObject __pyx_FusedFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "fused_cython_function", sizeof(__pyx_FusedFunctionObject), 0, (destructor) __pyx_FusedFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif 0, 0, 0, &__pyx_FusedFunction_mapping_methods, 0, (ternaryfunc) __pyx_FusedFunction_call, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, 0, (traverseproc) __pyx_FusedFunction_traverse, (inquiry) __pyx_FusedFunction_clear, 0, 0, 0, 0, 0, __pyx_FusedFunction_members, __pyx_CyFunction_getsets, &__pyx_CyFunctionType_type, 0, __pyx_FusedFunction_descr_get, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, #endif #if PY_VERSION_HEX >= 0x030C0000 0, #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, #endif }; static int __pyx_FusedFunction_init(void) { __pyx_FusedFunctionType_type.tp_base = __pyx_CyFunctionType; __pyx_FusedFunctionType = __Pyx_FetchCommonType(&__pyx_FusedFunctionType_type); if (__pyx_FusedFunctionType == NULL) { return -1; } return 0; } /* CythonFunction */ static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { PyObject *op = __Pyx_CyFunction_Init( PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType), ml, flags, qualname, closure, module, globals, code ); if (likely(op)) { PyObject_GC_Track(op); } return op; } /* CLineInTraceback */ #ifndef CYTHON_CLINE_IN_TRACEBACK static int __Pyx_CLineForTraceback(CYTHON_UNUSED PyThreadState *tstate, int c_line) { PyObject *use_cline; PyObject *ptype, *pvalue, *ptraceback; #if CYTHON_COMPILING_IN_CPYTHON PyObject **cython_runtime_dict; #endif if (unlikely(!__pyx_cython_runtime)) { return c_line; } __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); #if CYTHON_COMPILING_IN_CPYTHON cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime); if (likely(cython_runtime_dict)) { __PYX_PY_DICT_LOOKUP_IF_MODIFIED( use_cline, *cython_runtime_dict, __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback)) } else #endif { PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback); if (use_cline_obj) { use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True; Py_DECREF(use_cline_obj); } else { PyErr_Clear(); use_cline = NULL; } } if (!use_cline) { c_line = 0; (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); } else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) { c_line = 0; } __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); return c_line; } #endif /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" #if PY_VERSION_HEX >= 0x030b00a6 #ifndef Py_BUILD_CORE #define Py_BUILD_CORE 1 #endif #include "internal/pycore_frame.h" #endif static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = NULL; PyObject *py_funcname = NULL; #if PY_MAJOR_VERSION < 3 PyObject *py_srcfile = NULL; py_srcfile = PyString_FromString(filename); if (!py_srcfile) goto bad; #endif if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); if (!py_funcname) goto bad; #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); if (!py_funcname) goto bad; funcname = PyUnicode_AsUTF8(py_funcname); if (!funcname) goto bad; #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); if (!py_funcname) goto bad; #endif } #if PY_MAJOR_VERSION < 3 py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); #else py_code = PyCode_NewEmpty(filename, funcname, py_line); #endif Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline return py_code; bad: Py_XDECREF(py_funcname); #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_srcfile); #endif return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject *ptype, *pvalue, *ptraceback; if (c_line) { c_line = __Pyx_CLineForTraceback(tstate, c_line); } py_code = __pyx_find_code_object(c_line ? -c_line : py_line); if (!py_code) { __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) { /* If the code object creation fails, then we should clear the fetched exception references and propagate the new exception */ Py_XDECREF(ptype); Py_XDECREF(pvalue); Py_XDECREF(ptraceback); goto bad; } __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); __pyx_insert_code_object(c_line ? -c_line : py_line, py_code); } py_frame = PyFrame_New( tstate, /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } #if PY_MAJOR_VERSION < 3 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) { if (PyObject_CheckBuffer(obj)) return PyObject_GetBuffer(obj, view, flags); if (__Pyx_TypeCheck(obj, __pyx_array_type)) return __pyx_array_getbuffer(obj, view, flags); if (__Pyx_TypeCheck(obj, __pyx_memoryview_type)) return __pyx_memoryview_getbuffer(obj, view, flags); PyErr_Format(PyExc_TypeError, "'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name); return -1; } static void __Pyx_ReleaseBuffer(Py_buffer *view) { PyObject *obj = view->obj; if (!obj) return; if (PyObject_CheckBuffer(obj)) { PyBuffer_Release(view); return; } if ((0)) {} view->obj = NULL; Py_DECREF(obj); } #endif /* MemviewSliceIsContig */ static int __pyx_memviewslice_is_contig(const __Pyx_memviewslice mvs, char order, int ndim) { int i, index, step, start; Py_ssize_t itemsize = mvs.memview->view.itemsize; if (order == 'F') { step = 1; start = 0; } else { step = -1; start = ndim - 1; } for (i = 0; i < ndim; i++) { index = start + step * i; if (mvs.suboffsets[index] >= 0 || mvs.strides[index] != itemsize) return 0; itemsize *= mvs.shape[index]; } return 1; } /* OverlappingSlices */ static void __pyx_get_array_memory_extents(__Pyx_memviewslice *slice, void **out_start, void **out_end, int ndim, size_t itemsize) { char *start, *end; int i; start = end = slice->data; for (i = 0; i < ndim; i++) { Py_ssize_t stride = slice->strides[i]; Py_ssize_t extent = slice->shape[i]; if (extent == 0) { *out_start = *out_end = start; return; } else { if (stride > 0) end += stride * (extent - 1); else start += stride * (extent - 1); } } *out_start = start; *out_end = end + itemsize; } static int __pyx_slices_overlap(__Pyx_memviewslice *slice1, __Pyx_memviewslice *slice2, int ndim, size_t itemsize) { void *start1, *end1, *start2, *end2; __pyx_get_array_memory_extents(slice1, &start1, &end1, ndim, itemsize); __pyx_get_array_memory_extents(slice2, &start2, &end2, ndim, itemsize); return (start1 < end2) && (start2 < end1); } /* Capsule */ static CYTHON_INLINE PyObject * __pyx_capsule_create(void *p, CYTHON_UNUSED const char *sig) { PyObject *cobj; #if PY_VERSION_HEX >= 0x02070000 cobj = PyCapsule_New(p, sig, NULL); #else cobj = PyCObject_FromVoidPtr(p, NULL); #endif return cobj; } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* IsLittleEndian */ static CYTHON_INLINE int __Pyx_Is_Little_Endian(void) { union { uint32_t u32; uint8_t u8[4]; } S; S.u32 = 0x01020304; return S.u8[0] == 4; } /* BufferFormatCheck */ static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, __Pyx_BufFmt_StackElem* stack, __Pyx_TypeInfo* type) { stack[0].field = &ctx->root; stack[0].parent_offset = 0; ctx->root.type = type; ctx->root.name = "buffer dtype"; ctx->root.offset = 0; ctx->head = stack; ctx->head->field = &ctx->root; ctx->fmt_offset = 0; ctx->head->parent_offset = 0; ctx->new_packmode = '@'; ctx->enc_packmode = '@'; ctx->new_count = 1; ctx->enc_count = 0; ctx->enc_type = 0; ctx->is_complex = 0; ctx->is_valid_array = 0; ctx->struct_alignment = 0; while (type->typegroup == 'S') { ++ctx->head; ctx->head->field = type->fields; ctx->head->parent_offset = 0; type = type->fields->type; } } static int __Pyx_BufFmt_ParseNumber(const char** ts) { int count; const char* t = *ts; if (*t < '0' || *t > '9') { return -1; } else { count = *t++ - '0'; while (*t >= '0' && *t <= '9') { count *= 10; count += *t++ - '0'; } } *ts = t; return count; } static int __Pyx_BufFmt_ExpectNumber(const char **ts) { int number = __Pyx_BufFmt_ParseNumber(ts); if (number == -1) PyErr_Format(PyExc_ValueError,\ "Does not understand character buffer dtype format string ('%c')", **ts); return number; } static void __Pyx_BufFmt_RaiseUnexpectedChar(char ch) { PyErr_Format(PyExc_ValueError, "Unexpected format string character: '%c'", ch); } static const char* __Pyx_BufFmt_DescribeTypeChar(char ch, int is_complex) { switch (ch) { case '?': return "'bool'"; case 'c': return "'char'"; case 'b': return "'signed char'"; case 'B': return "'unsigned char'"; case 'h': return "'short'"; case 'H': return "'unsigned short'"; case 'i': return "'int'"; case 'I': return "'unsigned int'"; case 'l': return "'long'"; case 'L': return "'unsigned long'"; case 'q': return "'long long'"; case 'Q': return "'unsigned long long'"; case 'f': return (is_complex ? "'complex float'" : "'float'"); case 'd': return (is_complex ? "'complex double'" : "'double'"); case 'g': return (is_complex ? "'complex long double'" : "'long double'"); case 'T': return "a struct"; case 'O': return "Python object"; case 'P': return "a pointer"; case 's': case 'p': return "a string"; case 0: return "end"; default: return "unparseable format string"; } } static size_t __Pyx_BufFmt_TypeCharToStandardSize(char ch, int is_complex) { switch (ch) { case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1; case 'h': case 'H': return 2; case 'i': case 'I': case 'l': case 'L': return 4; case 'q': case 'Q': return 8; case 'f': return (is_complex ? 8 : 4); case 'd': return (is_complex ? 16 : 8); case 'g': { PyErr_SetString(PyExc_ValueError, "Python does not define a standard format string size for long double ('g').."); return 0; } case 'O': case 'P': return sizeof(void*); default: __Pyx_BufFmt_RaiseUnexpectedChar(ch); return 0; } } static size_t __Pyx_BufFmt_TypeCharToNativeSize(char ch, int is_complex) { switch (ch) { case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1; case 'h': case 'H': return sizeof(short); case 'i': case 'I': return sizeof(int); case 'l': case 'L': return sizeof(long); #ifdef HAVE_LONG_LONG case 'q': case 'Q': return sizeof(PY_LONG_LONG); #endif case 'f': return sizeof(float) * (is_complex ? 2 : 1); case 'd': return sizeof(double) * (is_complex ? 2 : 1); case 'g': return sizeof(long double) * (is_complex ? 2 : 1); case 'O': case 'P': return sizeof(void*); default: { __Pyx_BufFmt_RaiseUnexpectedChar(ch); return 0; } } } typedef struct { char c; short x; } __Pyx_st_short; typedef struct { char c; int x; } __Pyx_st_int; typedef struct { char c; long x; } __Pyx_st_long; typedef struct { char c; float x; } __Pyx_st_float; typedef struct { char c; double x; } __Pyx_st_double; typedef struct { char c; long double x; } __Pyx_st_longdouble; typedef struct { char c; void *x; } __Pyx_st_void_p; #ifdef HAVE_LONG_LONG typedef struct { char c; PY_LONG_LONG x; } __Pyx_st_longlong; #endif static size_t __Pyx_BufFmt_TypeCharToAlignment(char ch, CYTHON_UNUSED int is_complex) { switch (ch) { case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1; case 'h': case 'H': return sizeof(__Pyx_st_short) - sizeof(short); case 'i': case 'I': return sizeof(__Pyx_st_int) - sizeof(int); case 'l': case 'L': return sizeof(__Pyx_st_long) - sizeof(long); #ifdef HAVE_LONG_LONG case 'q': case 'Q': return sizeof(__Pyx_st_longlong) - sizeof(PY_LONG_LONG); #endif case 'f': return sizeof(__Pyx_st_float) - sizeof(float); case 'd': return sizeof(__Pyx_st_double) - sizeof(double); case 'g': return sizeof(__Pyx_st_longdouble) - sizeof(long double); case 'P': case 'O': return sizeof(__Pyx_st_void_p) - sizeof(void*); default: __Pyx_BufFmt_RaiseUnexpectedChar(ch); return 0; } } /* These are for computing the padding at the end of the struct to align on the first member of the struct. This will probably the same as above, but we don't have any guarantees. */ typedef struct { short x; char c; } __Pyx_pad_short; typedef struct { int x; char c; } __Pyx_pad_int; typedef struct { long x; char c; } __Pyx_pad_long; typedef struct { float x; char c; } __Pyx_pad_float; typedef struct { double x; char c; } __Pyx_pad_double; typedef struct { long double x; char c; } __Pyx_pad_longdouble; typedef struct { void *x; char c; } __Pyx_pad_void_p; #ifdef HAVE_LONG_LONG typedef struct { PY_LONG_LONG x; char c; } __Pyx_pad_longlong; #endif static size_t __Pyx_BufFmt_TypeCharToPadding(char ch, CYTHON_UNUSED int is_complex) { switch (ch) { case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1; case 'h': case 'H': return sizeof(__Pyx_pad_short) - sizeof(short); case 'i': case 'I': return sizeof(__Pyx_pad_int) - sizeof(int); case 'l': case 'L': return sizeof(__Pyx_pad_long) - sizeof(long); #ifdef HAVE_LONG_LONG case 'q': case 'Q': return sizeof(__Pyx_pad_longlong) - sizeof(PY_LONG_LONG); #endif case 'f': return sizeof(__Pyx_pad_float) - sizeof(float); case 'd': return sizeof(__Pyx_pad_double) - sizeof(double); case 'g': return sizeof(__Pyx_pad_longdouble) - sizeof(long double); case 'P': case 'O': return sizeof(__Pyx_pad_void_p) - sizeof(void*); default: __Pyx_BufFmt_RaiseUnexpectedChar(ch); return 0; } } static char __Pyx_BufFmt_TypeCharToGroup(char ch, int is_complex) { switch (ch) { case 'c': return 'H'; case 'b': case 'h': case 'i': case 'l': case 'q': case 's': case 'p': return 'I'; case '?': case 'B': case 'H': case 'I': case 'L': case 'Q': return 'U'; case 'f': case 'd': case 'g': return (is_complex ? 'C' : 'R'); case 'O': return 'O'; case 'P': return 'P'; default: { __Pyx_BufFmt_RaiseUnexpectedChar(ch); return 0; } } } static void __Pyx_BufFmt_RaiseExpected(__Pyx_BufFmt_Context* ctx) { if (ctx->head == NULL || ctx->head->field == &ctx->root) { const char* expected; const char* quote; if (ctx->head == NULL) { expected = "end"; quote = ""; } else { expected = ctx->head->field->type->name; quote = "'"; } PyErr_Format(PyExc_ValueError, "Buffer dtype mismatch, expected %s%s%s but got %s", quote, expected, quote, __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex)); } else { __Pyx_StructField* field = ctx->head->field; __Pyx_StructField* parent = (ctx->head - 1)->field; PyErr_Format(PyExc_ValueError, "Buffer dtype mismatch, expected '%s' but got %s in '%s.%s'", field->type->name, __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex), parent->type->name, field->name); } } static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) { char group; size_t size, offset, arraysize = 1; if (ctx->enc_type == 0) return 0; if (ctx->head->field->type->arraysize[0]) { int i, ndim = 0; if (ctx->enc_type == 's' || ctx->enc_type == 'p') { ctx->is_valid_array = ctx->head->field->type->ndim == 1; ndim = 1; if (ctx->enc_count != ctx->head->field->type->arraysize[0]) { PyErr_Format(PyExc_ValueError, "Expected a dimension of size %zu, got %zu", ctx->head->field->type->arraysize[0], ctx->enc_count); return -1; } } if (!ctx->is_valid_array) { PyErr_Format(PyExc_ValueError, "Expected %d dimensions, got %d", ctx->head->field->type->ndim, ndim); return -1; } for (i = 0; i < ctx->head->field->type->ndim; i++) { arraysize *= ctx->head->field->type->arraysize[i]; } ctx->is_valid_array = 0; ctx->enc_count = 1; } group = __Pyx_BufFmt_TypeCharToGroup(ctx->enc_type, ctx->is_complex); do { __Pyx_StructField* field = ctx->head->field; __Pyx_TypeInfo* type = field->type; if (ctx->enc_packmode == '@' || ctx->enc_packmode == '^') { size = __Pyx_BufFmt_TypeCharToNativeSize(ctx->enc_type, ctx->is_complex); } else { size = __Pyx_BufFmt_TypeCharToStandardSize(ctx->enc_type, ctx->is_complex); } if (ctx->enc_packmode == '@') { size_t align_at = __Pyx_BufFmt_TypeCharToAlignment(ctx->enc_type, ctx->is_complex); size_t align_mod_offset; if (align_at == 0) return -1; align_mod_offset = ctx->fmt_offset % align_at; if (align_mod_offset > 0) ctx->fmt_offset += align_at - align_mod_offset; if (ctx->struct_alignment == 0) ctx->struct_alignment = __Pyx_BufFmt_TypeCharToPadding(ctx->enc_type, ctx->is_complex); } if (type->size != size || type->typegroup != group) { if (type->typegroup == 'C' && type->fields != NULL) { size_t parent_offset = ctx->head->parent_offset + field->offset; ++ctx->head; ctx->head->field = type->fields; ctx->head->parent_offset = parent_offset; continue; } if ((type->typegroup == 'H' || group == 'H') && type->size == size) { } else { __Pyx_BufFmt_RaiseExpected(ctx); return -1; } } offset = ctx->head->parent_offset + field->offset; if (ctx->fmt_offset != offset) { PyErr_Format(PyExc_ValueError, "Buffer dtype mismatch; next field is at offset %" CYTHON_FORMAT_SSIZE_T "d but %" CYTHON_FORMAT_SSIZE_T "d expected", (Py_ssize_t)ctx->fmt_offset, (Py_ssize_t)offset); return -1; } ctx->fmt_offset += size; if (arraysize) ctx->fmt_offset += (arraysize - 1) * size; --ctx->enc_count; while (1) { if (field == &ctx->root) { ctx->head = NULL; if (ctx->enc_count != 0) { __Pyx_BufFmt_RaiseExpected(ctx); return -1; } break; } ctx->head->field = ++field; if (field->type == NULL) { --ctx->head; field = ctx->head->field; continue; } else if (field->type->typegroup == 'S') { size_t parent_offset = ctx->head->parent_offset + field->offset; if (field->type->fields->type == NULL) continue; field = field->type->fields; ++ctx->head; ctx->head->field = field; ctx->head->parent_offset = parent_offset; break; } else { break; } } } while (ctx->enc_count); ctx->enc_type = 0; ctx->is_complex = 0; return 0; } static PyObject * __pyx_buffmt_parse_array(__Pyx_BufFmt_Context* ctx, const char** tsp) { const char *ts = *tsp; int i = 0, number, ndim; ++ts; if (ctx->new_count != 1) { PyErr_SetString(PyExc_ValueError, "Cannot handle repeated arrays in format string"); return NULL; } if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL; ndim = ctx->head->field->type->ndim; while (*ts && *ts != ')') { switch (*ts) { case ' ': case '\f': case '\r': case '\n': case '\t': case '\v': continue; default: break; } number = __Pyx_BufFmt_ExpectNumber(&ts); if (number == -1) return NULL; if (i < ndim && (size_t) number != ctx->head->field->type->arraysize[i]) return PyErr_Format(PyExc_ValueError, "Expected a dimension of size %zu, got %d", ctx->head->field->type->arraysize[i], number); if (*ts != ',' && *ts != ')') return PyErr_Format(PyExc_ValueError, "Expected a comma in format string, got '%c'", *ts); if (*ts == ',') ts++; i++; } if (i != ndim) return PyErr_Format(PyExc_ValueError, "Expected %d dimension(s), got %d", ctx->head->field->type->ndim, i); if (!*ts) { PyErr_SetString(PyExc_ValueError, "Unexpected end of format string, expected ')'"); return NULL; } ctx->is_valid_array = 1; ctx->new_count = 1; *tsp = ++ts; return Py_None; } static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts) { int got_Z = 0; while (1) { switch(*ts) { case 0: if (ctx->enc_type != 0 && ctx->head == NULL) { __Pyx_BufFmt_RaiseExpected(ctx); return NULL; } if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL; if (ctx->head != NULL) { __Pyx_BufFmt_RaiseExpected(ctx); return NULL; } return ts; case ' ': case '\r': case '\n': ++ts; break; case '<': if (!__Pyx_Is_Little_Endian()) { PyErr_SetString(PyExc_ValueError, "Little-endian buffer not supported on big-endian compiler"); return NULL; } ctx->new_packmode = '='; ++ts; break; case '>': case '!': if (__Pyx_Is_Little_Endian()) { PyErr_SetString(PyExc_ValueError, "Big-endian buffer not supported on little-endian compiler"); return NULL; } ctx->new_packmode = '='; ++ts; break; case '=': case '@': case '^': ctx->new_packmode = *ts++; break; case 'T': { const char* ts_after_sub; size_t i, struct_count = ctx->new_count; size_t struct_alignment = ctx->struct_alignment; ctx->new_count = 1; ++ts; if (*ts != '{') { PyErr_SetString(PyExc_ValueError, "Buffer acquisition: Expected '{' after 'T'"); return NULL; } if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL; ctx->enc_type = 0; ctx->enc_count = 0; ctx->struct_alignment = 0; ++ts; ts_after_sub = ts; for (i = 0; i != struct_count; ++i) { ts_after_sub = __Pyx_BufFmt_CheckString(ctx, ts); if (!ts_after_sub) return NULL; } ts = ts_after_sub; if (struct_alignment) ctx->struct_alignment = struct_alignment; } break; case '}': { size_t alignment = ctx->struct_alignment; ++ts; if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL; ctx->enc_type = 0; if (alignment && ctx->fmt_offset % alignment) { ctx->fmt_offset += alignment - (ctx->fmt_offset % alignment); } } return ts; case 'x': if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL; ctx->fmt_offset += ctx->new_count; ctx->new_count = 1; ctx->enc_count = 0; ctx->enc_type = 0; ctx->enc_packmode = ctx->new_packmode; ++ts; break; case 'Z': got_Z = 1; ++ts; if (*ts != 'f' && *ts != 'd' && *ts != 'g') { __Pyx_BufFmt_RaiseUnexpectedChar('Z'); return NULL; } CYTHON_FALLTHROUGH; case '?': case 'c': case 'b': case 'B': case 'h': case 'H': case 'i': case 'I': case 'l': case 'L': case 'q': case 'Q': case 'f': case 'd': case 'g': case 'O': case 'p': if ((ctx->enc_type == *ts) && (got_Z == ctx->is_complex) && (ctx->enc_packmode == ctx->new_packmode) && (!ctx->is_valid_array)) { ctx->enc_count += ctx->new_count; ctx->new_count = 1; got_Z = 0; ++ts; break; } CYTHON_FALLTHROUGH; case 's': if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL; ctx->enc_count = ctx->new_count; ctx->enc_packmode = ctx->new_packmode; ctx->enc_type = *ts; ctx->is_complex = got_Z; ++ts; ctx->new_count = 1; got_Z = 0; break; case ':': ++ts; while(*ts != ':') ++ts; ++ts; break; case '(': if (!__pyx_buffmt_parse_array(ctx, &ts)) return NULL; break; default: { int number = __Pyx_BufFmt_ExpectNumber(&ts); if (number == -1) return NULL; ctx->new_count = (size_t)number; } } } } /* TypeInfoCompare */ static int __pyx_typeinfo_cmp(__Pyx_TypeInfo *a, __Pyx_TypeInfo *b) { int i; if (!a || !b) return 0; if (a == b) return 1; if (a->size != b->size || a->typegroup != b->typegroup || a->is_unsigned != b->is_unsigned || a->ndim != b->ndim) { if (a->typegroup == 'H' || b->typegroup == 'H') { return a->size == b->size; } else { return 0; } } if (a->ndim) { for (i = 0; i < a->ndim; i++) if (a->arraysize[i] != b->arraysize[i]) return 0; } if (a->typegroup == 'S') { if (a->flags != b->flags) return 0; if (a->fields || b->fields) { if (!(a->fields && b->fields)) return 0; for (i = 0; a->fields[i].type && b->fields[i].type; i++) { __Pyx_StructField *field_a = a->fields + i; __Pyx_StructField *field_b = b->fields + i; if (field_a->offset != field_b->offset || !__pyx_typeinfo_cmp(field_a->type, field_b->type)) return 0; } return !a->fields[i].type && !b->fields[i].type; } } return 1; } /* MemviewSliceValidateAndInit */ static int __pyx_check_strides(Py_buffer *buf, int dim, int ndim, int spec) { if (buf->shape[dim] <= 1) return 1; if (buf->strides) { if (spec & __Pyx_MEMVIEW_CONTIG) { if (spec & (__Pyx_MEMVIEW_PTR|__Pyx_MEMVIEW_FULL)) { if (unlikely(buf->strides[dim] != sizeof(void *))) { PyErr_Format(PyExc_ValueError, "Buffer is not indirectly contiguous " "in dimension %d.", dim); goto fail; } } else if (unlikely(buf->strides[dim] != buf->itemsize)) { PyErr_SetString(PyExc_ValueError, "Buffer and memoryview are not contiguous " "in the same dimension."); goto fail; } } if (spec & __Pyx_MEMVIEW_FOLLOW) { Py_ssize_t stride = buf->strides[dim]; if (stride < 0) stride = -stride; if (unlikely(stride < buf->itemsize)) { PyErr_SetString(PyExc_ValueError, "Buffer and memoryview are not contiguous " "in the same dimension."); goto fail; } } } else { if (unlikely(spec & __Pyx_MEMVIEW_CONTIG && dim != ndim - 1)) { PyErr_Format(PyExc_ValueError, "C-contiguous buffer is not contiguous in " "dimension %d", dim); goto fail; } else if (unlikely(spec & (__Pyx_MEMVIEW_PTR))) { PyErr_Format(PyExc_ValueError, "C-contiguous buffer is not indirect in " "dimension %d", dim); goto fail; } else if (unlikely(buf->suboffsets)) { PyErr_SetString(PyExc_ValueError, "Buffer exposes suboffsets but no strides"); goto fail; } } return 1; fail: return 0; } static int __pyx_check_suboffsets(Py_buffer *buf, int dim, CYTHON_UNUSED int ndim, int spec) { if (spec & __Pyx_MEMVIEW_DIRECT) { if (unlikely(buf->suboffsets && buf->suboffsets[dim] >= 0)) { PyErr_Format(PyExc_ValueError, "Buffer not compatible with direct access " "in dimension %d.", dim); goto fail; } } if (spec & __Pyx_MEMVIEW_PTR) { if (unlikely(!buf->suboffsets || (buf->suboffsets[dim] < 0))) { PyErr_Format(PyExc_ValueError, "Buffer is not indirectly accessible " "in dimension %d.", dim); goto fail; } } return 1; fail: return 0; } static int __pyx_verify_contig(Py_buffer *buf, int ndim, int c_or_f_flag) { int i; if (c_or_f_flag & __Pyx_IS_F_CONTIG) { Py_ssize_t stride = 1; for (i = 0; i < ndim; i++) { if (unlikely(stride * buf->itemsize != buf->strides[i] && buf->shape[i] > 1)) { PyErr_SetString(PyExc_ValueError, "Buffer not fortran contiguous."); goto fail; } stride = stride * buf->shape[i]; } } else if (c_or_f_flag & __Pyx_IS_C_CONTIG) { Py_ssize_t stride = 1; for (i = ndim - 1; i >- 1; i--) { if (unlikely(stride * buf->itemsize != buf->strides[i] && buf->shape[i] > 1)) { PyErr_SetString(PyExc_ValueError, "Buffer not C contiguous."); goto fail; } stride = stride * buf->shape[i]; } } return 1; fail: return 0; } static int __Pyx_ValidateAndInit_memviewslice( int *axes_specs, int c_or_f_flag, int buf_flags, int ndim, __Pyx_TypeInfo *dtype, __Pyx_BufFmt_StackElem stack[], __Pyx_memviewslice *memviewslice, PyObject *original_obj) { struct __pyx_memoryview_obj *memview, *new_memview; __Pyx_RefNannyDeclarations Py_buffer *buf; int i, spec = 0, retval = -1; __Pyx_BufFmt_Context ctx; int from_memoryview = __pyx_memoryview_check(original_obj); __Pyx_RefNannySetupContext("ValidateAndInit_memviewslice", 0); if (from_memoryview && __pyx_typeinfo_cmp(dtype, ((struct __pyx_memoryview_obj *) original_obj)->typeinfo)) { memview = (struct __pyx_memoryview_obj *) original_obj; new_memview = NULL; } else { memview = (struct __pyx_memoryview_obj *) __pyx_memoryview_new( original_obj, buf_flags, 0, dtype); new_memview = memview; if (unlikely(!memview)) goto fail; } buf = &memview->view; if (unlikely(buf->ndim != ndim)) { PyErr_Format(PyExc_ValueError, "Buffer has wrong number of dimensions (expected %d, got %d)", ndim, buf->ndim); goto fail; } if (new_memview) { __Pyx_BufFmt_Init(&ctx, stack, dtype); if (unlikely(!__Pyx_BufFmt_CheckString(&ctx, buf->format))) goto fail; } if (unlikely((unsigned) buf->itemsize != dtype->size)) { PyErr_Format(PyExc_ValueError, "Item size of buffer (%" CYTHON_FORMAT_SSIZE_T "u byte%s) " "does not match size of '%s' (%" CYTHON_FORMAT_SSIZE_T "u byte%s)", buf->itemsize, (buf->itemsize > 1) ? "s" : "", dtype->name, dtype->size, (dtype->size > 1) ? "s" : ""); goto fail; } if (buf->len > 0) { for (i = 0; i < ndim; i++) { spec = axes_specs[i]; if (unlikely(!__pyx_check_strides(buf, i, ndim, spec))) goto fail; if (unlikely(!__pyx_check_suboffsets(buf, i, ndim, spec))) goto fail; } if (unlikely(buf->strides && !__pyx_verify_contig(buf, ndim, c_or_f_flag))) goto fail; } if (unlikely(__Pyx_init_memviewslice(memview, ndim, memviewslice, new_memview != NULL) == -1)) { goto fail; } retval = 0; goto no_fail; fail: Py_XDECREF(new_memview); retval = -1; no_fail: __Pyx_RefNannyFinishContext(); return retval; } /* ObjectToMemviewSlice */ static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_float__const__(PyObject *obj, int writable_flag) { __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } }; __Pyx_BufFmt_StackElem stack[1]; int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) }; int retcode; if (obj == Py_None) { result.memview = (struct __pyx_memoryview_obj *) Py_None; return result; } retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0, PyBUF_RECORDS_RO | writable_flag, 1, &__Pyx_TypeInfo_float__const__, stack, &result, obj); if (unlikely(retcode == -1)) goto __pyx_fail; return result; __pyx_fail: result.memview = NULL; result.data = NULL; return result; } /* MemviewSliceCopyTemplate */ static __Pyx_memviewslice __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs, const char *mode, int ndim, size_t sizeof_dtype, int contig_flag, int dtype_is_object) { __Pyx_RefNannyDeclarations int i; __Pyx_memviewslice new_mvs = { 0, 0, { 0 }, { 0 }, { 0 } }; struct __pyx_memoryview_obj *from_memview = from_mvs->memview; Py_buffer *buf = &from_memview->view; PyObject *shape_tuple = NULL; PyObject *temp_int = NULL; struct __pyx_array_obj *array_obj = NULL; struct __pyx_memoryview_obj *memview_obj = NULL; __Pyx_RefNannySetupContext("__pyx_memoryview_copy_new_contig", 0); for (i = 0; i < ndim; i++) { if (unlikely(from_mvs->suboffsets[i] >= 0)) { PyErr_Format(PyExc_ValueError, "Cannot copy memoryview slice with " "indirect dimensions (axis %d)", i); goto fail; } } shape_tuple = PyTuple_New(ndim); if (unlikely(!shape_tuple)) { goto fail; } __Pyx_GOTREF(shape_tuple); for(i = 0; i < ndim; i++) { temp_int = PyInt_FromSsize_t(from_mvs->shape[i]); if(unlikely(!temp_int)) { goto fail; } else { PyTuple_SET_ITEM(shape_tuple, i, temp_int); temp_int = NULL; } } array_obj = __pyx_array_new(shape_tuple, sizeof_dtype, buf->format, (char *) mode, NULL); if (unlikely(!array_obj)) { goto fail; } __Pyx_GOTREF(array_obj); memview_obj = (struct __pyx_memoryview_obj *) __pyx_memoryview_new( (PyObject *) array_obj, contig_flag, dtype_is_object, from_mvs->memview->typeinfo); if (unlikely(!memview_obj)) goto fail; if (unlikely(__Pyx_init_memviewslice(memview_obj, ndim, &new_mvs, 1) < 0)) goto fail; if (unlikely(__pyx_memoryview_copy_contents(*from_mvs, new_mvs, ndim, ndim, dtype_is_object) < 0)) goto fail; goto no_fail; fail: __Pyx_XDECREF(new_mvs.memview); new_mvs.memview = NULL; new_mvs.data = NULL; no_fail: __Pyx_XDECREF(shape_tuple); __Pyx_XDECREF(temp_int); __Pyx_XDECREF(array_obj); __Pyx_RefNannyFinishContext(); return new_mvs; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiCond_(ImGuiCond_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiCond_ neg_one = (ImGuiCond_) -1, const_zero = (ImGuiCond_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiCond_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiCond_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCond_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiCond_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCond_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiCond_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiStyleVar_(ImGuiStyleVar_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiStyleVar_ neg_one = (ImGuiStyleVar_) -1, const_zero = (ImGuiStyleVar_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiStyleVar_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiStyleVar_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiStyleVar_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiStyleVar_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiStyleVar_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiStyleVar_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiButtonFlags_(ImGuiButtonFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiButtonFlags_ neg_one = (ImGuiButtonFlags_) -1, const_zero = (ImGuiButtonFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiButtonFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiButtonFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiButtonFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiButtonFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiButtonFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiButtonFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiKey_(ImGuiKey_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiKey_ neg_one = (ImGuiKey_) -1, const_zero = (ImGuiKey_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiKey_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiKey_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiKey_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiKey_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiKey_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiKey_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiKeyModFlags_(ImGuiKeyModFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiKeyModFlags_ neg_one = (ImGuiKeyModFlags_) -1, const_zero = (ImGuiKeyModFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiKeyModFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiKeyModFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiKeyModFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiKeyModFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiKeyModFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiKeyModFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiNavInput_(ImGuiNavInput_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiNavInput_ neg_one = (ImGuiNavInput_) -1, const_zero = (ImGuiNavInput_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiNavInput_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiNavInput_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiNavInput_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiNavInput_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiNavInput_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiNavInput_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiWindowFlags_(ImGuiWindowFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiWindowFlags_ neg_one = (ImGuiWindowFlags_) -1, const_zero = (ImGuiWindowFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiWindowFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiWindowFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiWindowFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiWindowFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiWindowFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiWindowFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiColorEditFlags_(ImGuiColorEditFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiColorEditFlags_ neg_one = (ImGuiColorEditFlags_) -1, const_zero = (ImGuiColorEditFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiColorEditFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiColorEditFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiColorEditFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiColorEditFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiColorEditFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiColorEditFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTreeNodeFlags_ neg_one = (ImGuiTreeNodeFlags_) -1, const_zero = (ImGuiTreeNodeFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiTreeNodeFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiTreeNodeFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTreeNodeFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiTreeNodeFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTreeNodeFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiTreeNodeFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiPopupFlags_(ImGuiPopupFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiPopupFlags_ neg_one = (ImGuiPopupFlags_) -1, const_zero = (ImGuiPopupFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiPopupFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiPopupFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiPopupFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiPopupFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiPopupFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiPopupFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiSelectableFlags_(ImGuiSelectableFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiSelectableFlags_ neg_one = (ImGuiSelectableFlags_) -1, const_zero = (ImGuiSelectableFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiSelectableFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiSelectableFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSelectableFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiSelectableFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSelectableFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiSelectableFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiComboFlags_(ImGuiComboFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiComboFlags_ neg_one = (ImGuiComboFlags_) -1, const_zero = (ImGuiComboFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiComboFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiComboFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiComboFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiComboFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiComboFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiComboFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTabBarFlags_(ImGuiTabBarFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTabBarFlags_ neg_one = (ImGuiTabBarFlags_) -1, const_zero = (ImGuiTabBarFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiTabBarFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiTabBarFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTabBarFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiTabBarFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTabBarFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiTabBarFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTabItemFlags_(ImGuiTabItemFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTabItemFlags_ neg_one = (ImGuiTabItemFlags_) -1, const_zero = (ImGuiTabItemFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiTabItemFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiTabItemFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTabItemFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiTabItemFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTabItemFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiTabItemFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableFlags_(ImGuiTableFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableFlags_ neg_one = (ImGuiTableFlags_) -1, const_zero = (ImGuiTableFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiTableFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiTableFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiTableFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiTableFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableColumnFlags_(ImGuiTableColumnFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableColumnFlags_ neg_one = (ImGuiTableColumnFlags_) -1, const_zero = (ImGuiTableColumnFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiTableColumnFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiTableColumnFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableColumnFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiTableColumnFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableColumnFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiTableColumnFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableRowFlags_(ImGuiTableRowFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableRowFlags_ neg_one = (ImGuiTableRowFlags_) -1, const_zero = (ImGuiTableRowFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiTableRowFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiTableRowFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableRowFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiTableRowFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableRowFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiTableRowFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableBgTarget_(ImGuiTableBgTarget_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableBgTarget_ neg_one = (ImGuiTableBgTarget_) -1, const_zero = (ImGuiTableBgTarget_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiTableBgTarget_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiTableBgTarget_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableBgTarget_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiTableBgTarget_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableBgTarget_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiTableBgTarget_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiFocusedFlags_(ImGuiFocusedFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiFocusedFlags_ neg_one = (ImGuiFocusedFlags_) -1, const_zero = (ImGuiFocusedFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiFocusedFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiFocusedFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiFocusedFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiFocusedFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiFocusedFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiFocusedFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiHoveredFlags_(ImGuiHoveredFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiHoveredFlags_ neg_one = (ImGuiHoveredFlags_) -1, const_zero = (ImGuiHoveredFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiHoveredFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiHoveredFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiHoveredFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiHoveredFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiHoveredFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiHoveredFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiDragDropFlags_(ImGuiDragDropFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiDragDropFlags_ neg_one = (ImGuiDragDropFlags_) -1, const_zero = (ImGuiDragDropFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiDragDropFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiDragDropFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDragDropFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiDragDropFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDragDropFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiDragDropFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiDir_(ImGuiDir_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiDir_ neg_one = (ImGuiDir_) -1, const_zero = (ImGuiDir_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiDir_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiDir_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDir_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiDir_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDir_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiDir_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiSortDirection_(ImGuiSortDirection_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiSortDirection_ neg_one = (ImGuiSortDirection_) -1, const_zero = (ImGuiSortDirection_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiSortDirection_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiSortDirection_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSortDirection_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiSortDirection_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSortDirection_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiSortDirection_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiMouseCursor_(ImGuiMouseCursor_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiMouseCursor_ neg_one = (ImGuiMouseCursor_) -1, const_zero = (ImGuiMouseCursor_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiMouseCursor_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiMouseCursor_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseCursor_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiMouseCursor_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseCursor_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiMouseCursor_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiCol_(ImGuiCol_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiCol_ neg_one = (ImGuiCol_) -1, const_zero = (ImGuiCol_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiCol_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiCol_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCol_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiCol_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCol_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiCol_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiDataType_(ImGuiDataType_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiDataType_ neg_one = (ImGuiDataType_) -1, const_zero = (ImGuiDataType_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiDataType_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiDataType_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDataType_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiDataType_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDataType_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiDataType_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiInputTextFlags_(ImGuiInputTextFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiInputTextFlags_ neg_one = (ImGuiInputTextFlags_) -1, const_zero = (ImGuiInputTextFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiInputTextFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiInputTextFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiInputTextFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiInputTextFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiInputTextFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiInputTextFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImDrawCornerFlags_(ImDrawCornerFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImDrawCornerFlags_ neg_one = (ImDrawCornerFlags_) -1, const_zero = (ImDrawCornerFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImDrawCornerFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImDrawCornerFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawCornerFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImDrawCornerFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawCornerFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImDrawCornerFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImDrawFlags_(ImDrawFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImDrawFlags_ neg_one = (ImDrawFlags_) -1, const_zero = (ImDrawFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImDrawFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImDrawFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImDrawFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImDrawFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImDrawListFlags_(ImDrawListFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImDrawListFlags_ neg_one = (ImDrawListFlags_) -1, const_zero = (ImDrawListFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImDrawListFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImDrawListFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawListFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImDrawListFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawListFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImDrawListFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImFontAtlasFlags_(ImFontAtlasFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImFontAtlasFlags_ neg_one = (ImFontAtlasFlags_) -1, const_zero = (ImFontAtlasFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImFontAtlasFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImFontAtlasFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImFontAtlasFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImFontAtlasFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImFontAtlasFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImFontAtlasFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiConfigFlags_(ImGuiConfigFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiConfigFlags_ neg_one = (ImGuiConfigFlags_) -1, const_zero = (ImGuiConfigFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiConfigFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiConfigFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiConfigFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiConfigFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiConfigFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiConfigFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiBackendFlags_(ImGuiBackendFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiBackendFlags_ neg_one = (ImGuiBackendFlags_) -1, const_zero = (ImGuiBackendFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiBackendFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiBackendFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiBackendFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiBackendFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiBackendFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiBackendFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiSliderFlags_(ImGuiSliderFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiSliderFlags_ neg_one = (ImGuiSliderFlags_) -1, const_zero = (ImGuiSliderFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiSliderFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiSliderFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSliderFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiSliderFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSliderFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiSliderFlags_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiMouseButton_(ImGuiMouseButton_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiMouseButton_ neg_one = (ImGuiMouseButton_) -1, const_zero = (ImGuiMouseButton_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiMouseButton_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiMouseButton_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseButton_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiMouseButton_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseButton_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiMouseButton_), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiViewportFlags_(ImGuiViewportFlags_ value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiViewportFlags_ neg_one = (ImGuiViewportFlags_) -1, const_zero = (ImGuiViewportFlags_) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiViewportFlags_) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiViewportFlags_) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiViewportFlags_) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiViewportFlags_) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiViewportFlags_) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiViewportFlags_), little, !is_unsigned); } } /* CIntFromPy */ static CYTHON_INLINE ImDrawListFlags __Pyx_PyInt_As_ImDrawListFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImDrawListFlags neg_one = (ImDrawListFlags) -1, const_zero = (ImDrawListFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImDrawListFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImDrawListFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImDrawListFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImDrawListFlags, digit, digits[0]) case 2: if (8 * sizeof(ImDrawListFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) >= 2 * PyLong_SHIFT) { return (ImDrawListFlags) (((((ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImDrawListFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) >= 3 * PyLong_SHIFT) { return (ImDrawListFlags) (((((((ImDrawListFlags)digits[2]) << PyLong_SHIFT) | (ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImDrawListFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) >= 4 * PyLong_SHIFT) { return (ImDrawListFlags) (((((((((ImDrawListFlags)digits[3]) << PyLong_SHIFT) | (ImDrawListFlags)digits[2]) << PyLong_SHIFT) | (ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImDrawListFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImDrawListFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawListFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawListFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawListFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImDrawListFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImDrawListFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImDrawListFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImDrawListFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) - 1 > 2 * PyLong_SHIFT) { return (ImDrawListFlags) (((ImDrawListFlags)-1)*(((((ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImDrawListFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) - 1 > 2 * PyLong_SHIFT) { return (ImDrawListFlags) ((((((ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImDrawListFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) - 1 > 3 * PyLong_SHIFT) { return (ImDrawListFlags) (((ImDrawListFlags)-1)*(((((((ImDrawListFlags)digits[2]) << PyLong_SHIFT) | (ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImDrawListFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) - 1 > 3 * PyLong_SHIFT) { return (ImDrawListFlags) ((((((((ImDrawListFlags)digits[2]) << PyLong_SHIFT) | (ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImDrawListFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) - 1 > 4 * PyLong_SHIFT) { return (ImDrawListFlags) (((ImDrawListFlags)-1)*(((((((((ImDrawListFlags)digits[3]) << PyLong_SHIFT) | (ImDrawListFlags)digits[2]) << PyLong_SHIFT) | (ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImDrawListFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawListFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawListFlags) - 1 > 4 * PyLong_SHIFT) { return (ImDrawListFlags) ((((((((((ImDrawListFlags)digits[3]) << PyLong_SHIFT) | (ImDrawListFlags)digits[2]) << PyLong_SHIFT) | (ImDrawListFlags)digits[1]) << PyLong_SHIFT) | (ImDrawListFlags)digits[0]))); } } break; } #endif if (sizeof(ImDrawListFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawListFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawListFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawListFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImDrawListFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImDrawListFlags) -1; } } else { ImDrawListFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImDrawListFlags) -1; val = __Pyx_PyInt_As_ImDrawListFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImDrawListFlags"); return (ImDrawListFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImDrawListFlags"); return (ImDrawListFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImU32 __Pyx_PyInt_As_ImU32(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImU32 neg_one = (ImU32) -1, const_zero = (ImU32) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImU32) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImU32, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImU32) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImU32) 0; case 1: __PYX_VERIFY_RETURN_INT(ImU32, digit, digits[0]) case 2: if (8 * sizeof(ImU32) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) >= 2 * PyLong_SHIFT) { return (ImU32) (((((ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0])); } } break; case 3: if (8 * sizeof(ImU32) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) >= 3 * PyLong_SHIFT) { return (ImU32) (((((((ImU32)digits[2]) << PyLong_SHIFT) | (ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0])); } } break; case 4: if (8 * sizeof(ImU32) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) >= 4 * PyLong_SHIFT) { return (ImU32) (((((((((ImU32)digits[3]) << PyLong_SHIFT) | (ImU32)digits[2]) << PyLong_SHIFT) | (ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImU32) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImU32) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImU32, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImU32) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImU32, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImU32) 0; case -1: __PYX_VERIFY_RETURN_INT(ImU32, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImU32, digit, +digits[0]) case -2: if (8 * sizeof(ImU32) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) - 1 > 2 * PyLong_SHIFT) { return (ImU32) (((ImU32)-1)*(((((ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0]))); } } break; case 2: if (8 * sizeof(ImU32) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) - 1 > 2 * PyLong_SHIFT) { return (ImU32) ((((((ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0]))); } } break; case -3: if (8 * sizeof(ImU32) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) - 1 > 3 * PyLong_SHIFT) { return (ImU32) (((ImU32)-1)*(((((((ImU32)digits[2]) << PyLong_SHIFT) | (ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0]))); } } break; case 3: if (8 * sizeof(ImU32) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) - 1 > 3 * PyLong_SHIFT) { return (ImU32) ((((((((ImU32)digits[2]) << PyLong_SHIFT) | (ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0]))); } } break; case -4: if (8 * sizeof(ImU32) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) - 1 > 4 * PyLong_SHIFT) { return (ImU32) (((ImU32)-1)*(((((((((ImU32)digits[3]) << PyLong_SHIFT) | (ImU32)digits[2]) << PyLong_SHIFT) | (ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0]))); } } break; case 4: if (8 * sizeof(ImU32) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImU32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImU32) - 1 > 4 * PyLong_SHIFT) { return (ImU32) ((((((((((ImU32)digits[3]) << PyLong_SHIFT) | (ImU32)digits[2]) << PyLong_SHIFT) | (ImU32)digits[1]) << PyLong_SHIFT) | (ImU32)digits[0]))); } } break; } #endif if (sizeof(ImU32) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImU32, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImU32) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImU32, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImU32 val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImU32) -1; } } else { ImU32 val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImU32) -1; val = __Pyx_PyInt_As_ImU32(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImU32"); return (ImU32) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImU32"); return (ImU32) -1; } /* CIntFromPy */ static CYTHON_INLINE ImDrawFlags __Pyx_PyInt_As_ImDrawFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImDrawFlags neg_one = (ImDrawFlags) -1, const_zero = (ImDrawFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImDrawFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImDrawFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImDrawFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImDrawFlags, digit, digits[0]) case 2: if (8 * sizeof(ImDrawFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) >= 2 * PyLong_SHIFT) { return (ImDrawFlags) (((((ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImDrawFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) >= 3 * PyLong_SHIFT) { return (ImDrawFlags) (((((((ImDrawFlags)digits[2]) << PyLong_SHIFT) | (ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImDrawFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) >= 4 * PyLong_SHIFT) { return (ImDrawFlags) (((((((((ImDrawFlags)digits[3]) << PyLong_SHIFT) | (ImDrawFlags)digits[2]) << PyLong_SHIFT) | (ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImDrawFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImDrawFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImDrawFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImDrawFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImDrawFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImDrawFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) - 1 > 2 * PyLong_SHIFT) { return (ImDrawFlags) (((ImDrawFlags)-1)*(((((ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImDrawFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) - 1 > 2 * PyLong_SHIFT) { return (ImDrawFlags) ((((((ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImDrawFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) - 1 > 3 * PyLong_SHIFT) { return (ImDrawFlags) (((ImDrawFlags)-1)*(((((((ImDrawFlags)digits[2]) << PyLong_SHIFT) | (ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImDrawFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) - 1 > 3 * PyLong_SHIFT) { return (ImDrawFlags) ((((((((ImDrawFlags)digits[2]) << PyLong_SHIFT) | (ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImDrawFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) - 1 > 4 * PyLong_SHIFT) { return (ImDrawFlags) (((ImDrawFlags)-1)*(((((((((ImDrawFlags)digits[3]) << PyLong_SHIFT) | (ImDrawFlags)digits[2]) << PyLong_SHIFT) | (ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImDrawFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawFlags) - 1 > 4 * PyLong_SHIFT) { return (ImDrawFlags) ((((((((((ImDrawFlags)digits[3]) << PyLong_SHIFT) | (ImDrawFlags)digits[2]) << PyLong_SHIFT) | (ImDrawFlags)digits[1]) << PyLong_SHIFT) | (ImDrawFlags)digits[0]))); } } break; } #endif if (sizeof(ImDrawFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImDrawFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImDrawFlags) -1; } } else { ImDrawFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImDrawFlags) -1; val = __Pyx_PyInt_As_ImDrawFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImDrawFlags"); return (ImDrawFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImDrawFlags"); return (ImDrawFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const int neg_one = (int) -1, const_zero = (int) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CIntFromPy */ static CYTHON_INLINE ImDrawIdx __Pyx_PyInt_As_ImDrawIdx(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImDrawIdx neg_one = (ImDrawIdx) -1, const_zero = (ImDrawIdx) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImDrawIdx) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImDrawIdx) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImDrawIdx) 0; case 1: __PYX_VERIFY_RETURN_INT(ImDrawIdx, digit, digits[0]) case 2: if (8 * sizeof(ImDrawIdx) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) >= 2 * PyLong_SHIFT) { return (ImDrawIdx) (((((ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0])); } } break; case 3: if (8 * sizeof(ImDrawIdx) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) >= 3 * PyLong_SHIFT) { return (ImDrawIdx) (((((((ImDrawIdx)digits[2]) << PyLong_SHIFT) | (ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0])); } } break; case 4: if (8 * sizeof(ImDrawIdx) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) >= 4 * PyLong_SHIFT) { return (ImDrawIdx) (((((((((ImDrawIdx)digits[3]) << PyLong_SHIFT) | (ImDrawIdx)digits[2]) << PyLong_SHIFT) | (ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImDrawIdx) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImDrawIdx) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawIdx, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawIdx) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawIdx, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImDrawIdx) 0; case -1: __PYX_VERIFY_RETURN_INT(ImDrawIdx, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImDrawIdx, digit, +digits[0]) case -2: if (8 * sizeof(ImDrawIdx) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) - 1 > 2 * PyLong_SHIFT) { return (ImDrawIdx) (((ImDrawIdx)-1)*(((((ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0]))); } } break; case 2: if (8 * sizeof(ImDrawIdx) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) - 1 > 2 * PyLong_SHIFT) { return (ImDrawIdx) ((((((ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0]))); } } break; case -3: if (8 * sizeof(ImDrawIdx) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) - 1 > 3 * PyLong_SHIFT) { return (ImDrawIdx) (((ImDrawIdx)-1)*(((((((ImDrawIdx)digits[2]) << PyLong_SHIFT) | (ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0]))); } } break; case 3: if (8 * sizeof(ImDrawIdx) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) - 1 > 3 * PyLong_SHIFT) { return (ImDrawIdx) ((((((((ImDrawIdx)digits[2]) << PyLong_SHIFT) | (ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0]))); } } break; case -4: if (8 * sizeof(ImDrawIdx) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) - 1 > 4 * PyLong_SHIFT) { return (ImDrawIdx) (((ImDrawIdx)-1)*(((((((((ImDrawIdx)digits[3]) << PyLong_SHIFT) | (ImDrawIdx)digits[2]) << PyLong_SHIFT) | (ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0]))); } } break; case 4: if (8 * sizeof(ImDrawIdx) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImDrawIdx, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImDrawIdx) - 1 > 4 * PyLong_SHIFT) { return (ImDrawIdx) ((((((((((ImDrawIdx)digits[3]) << PyLong_SHIFT) | (ImDrawIdx)digits[2]) << PyLong_SHIFT) | (ImDrawIdx)digits[1]) << PyLong_SHIFT) | (ImDrawIdx)digits[0]))); } } break; } #endif if (sizeof(ImDrawIdx) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawIdx, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawIdx) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImDrawIdx, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImDrawIdx val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImDrawIdx) -1; } } else { ImDrawIdx val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImDrawIdx) -1; val = __Pyx_PyInt_As_ImDrawIdx(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImDrawIdx"); return (ImDrawIdx) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImDrawIdx"); return (ImDrawIdx) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiCol __Pyx_PyInt_As_ImGuiCol(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiCol neg_one = (ImGuiCol) -1, const_zero = (ImGuiCol) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiCol) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiCol, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiCol) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiCol) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiCol, digit, digits[0]) case 2: if (8 * sizeof(ImGuiCol) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) >= 2 * PyLong_SHIFT) { return (ImGuiCol) (((((ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiCol) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) >= 3 * PyLong_SHIFT) { return (ImGuiCol) (((((((ImGuiCol)digits[2]) << PyLong_SHIFT) | (ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiCol) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) >= 4 * PyLong_SHIFT) { return (ImGuiCol) (((((((((ImGuiCol)digits[3]) << PyLong_SHIFT) | (ImGuiCol)digits[2]) << PyLong_SHIFT) | (ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiCol) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiCol) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiCol, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCol) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiCol, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiCol) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiCol, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiCol, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiCol) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) - 1 > 2 * PyLong_SHIFT) { return (ImGuiCol) (((ImGuiCol)-1)*(((((ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiCol) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) - 1 > 2 * PyLong_SHIFT) { return (ImGuiCol) ((((((ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiCol) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) - 1 > 3 * PyLong_SHIFT) { return (ImGuiCol) (((ImGuiCol)-1)*(((((((ImGuiCol)digits[2]) << PyLong_SHIFT) | (ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiCol) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) - 1 > 3 * PyLong_SHIFT) { return (ImGuiCol) ((((((((ImGuiCol)digits[2]) << PyLong_SHIFT) | (ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiCol) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) - 1 > 4 * PyLong_SHIFT) { return (ImGuiCol) (((ImGuiCol)-1)*(((((((((ImGuiCol)digits[3]) << PyLong_SHIFT) | (ImGuiCol)digits[2]) << PyLong_SHIFT) | (ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiCol) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCol, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCol) - 1 > 4 * PyLong_SHIFT) { return (ImGuiCol) ((((((((((ImGuiCol)digits[3]) << PyLong_SHIFT) | (ImGuiCol)digits[2]) << PyLong_SHIFT) | (ImGuiCol)digits[1]) << PyLong_SHIFT) | (ImGuiCol)digits[0]))); } } break; } #endif if (sizeof(ImGuiCol) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiCol, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCol) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiCol, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiCol val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiCol) -1; } } else { ImGuiCol val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiCol) -1; val = __Pyx_PyInt_As_ImGuiCol(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiCol"); return (ImGuiCol) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiCol"); return (ImGuiCol) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiDir __Pyx_PyInt_As_ImGuiDir(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiDir neg_one = (ImGuiDir) -1, const_zero = (ImGuiDir) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiDir) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiDir, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiDir) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiDir) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiDir, digit, digits[0]) case 2: if (8 * sizeof(ImGuiDir) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) >= 2 * PyLong_SHIFT) { return (ImGuiDir) (((((ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiDir) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) >= 3 * PyLong_SHIFT) { return (ImGuiDir) (((((((ImGuiDir)digits[2]) << PyLong_SHIFT) | (ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiDir) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) >= 4 * PyLong_SHIFT) { return (ImGuiDir) (((((((((ImGuiDir)digits[3]) << PyLong_SHIFT) | (ImGuiDir)digits[2]) << PyLong_SHIFT) | (ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiDir) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiDir) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDir, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDir) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDir, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiDir) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiDir, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiDir, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiDir) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) - 1 > 2 * PyLong_SHIFT) { return (ImGuiDir) (((ImGuiDir)-1)*(((((ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiDir) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) - 1 > 2 * PyLong_SHIFT) { return (ImGuiDir) ((((((ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiDir) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) - 1 > 3 * PyLong_SHIFT) { return (ImGuiDir) (((ImGuiDir)-1)*(((((((ImGuiDir)digits[2]) << PyLong_SHIFT) | (ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiDir) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) - 1 > 3 * PyLong_SHIFT) { return (ImGuiDir) ((((((((ImGuiDir)digits[2]) << PyLong_SHIFT) | (ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiDir) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) - 1 > 4 * PyLong_SHIFT) { return (ImGuiDir) (((ImGuiDir)-1)*(((((((((ImGuiDir)digits[3]) << PyLong_SHIFT) | (ImGuiDir)digits[2]) << PyLong_SHIFT) | (ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiDir) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDir, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDir) - 1 > 4 * PyLong_SHIFT) { return (ImGuiDir) ((((((((((ImGuiDir)digits[3]) << PyLong_SHIFT) | (ImGuiDir)digits[2]) << PyLong_SHIFT) | (ImGuiDir)digits[1]) << PyLong_SHIFT) | (ImGuiDir)digits[0]))); } } break; } #endif if (sizeof(ImGuiDir) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDir, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDir) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDir, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiDir val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiDir) -1; } } else { ImGuiDir val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiDir) -1; val = __Pyx_PyInt_As_ImGuiDir(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiDir"); return (ImGuiDir) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiDir"); return (ImGuiDir) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiID __Pyx_PyInt_As_ImGuiID(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiID neg_one = (ImGuiID) -1, const_zero = (ImGuiID) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiID) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiID, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiID) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiID) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiID, digit, digits[0]) case 2: if (8 * sizeof(ImGuiID) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) >= 2 * PyLong_SHIFT) { return (ImGuiID) (((((ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiID) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) >= 3 * PyLong_SHIFT) { return (ImGuiID) (((((((ImGuiID)digits[2]) << PyLong_SHIFT) | (ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiID) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) >= 4 * PyLong_SHIFT) { return (ImGuiID) (((((((((ImGuiID)digits[3]) << PyLong_SHIFT) | (ImGuiID)digits[2]) << PyLong_SHIFT) | (ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiID) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiID) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiID, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiID) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiID, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiID) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiID, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiID, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiID) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) - 1 > 2 * PyLong_SHIFT) { return (ImGuiID) (((ImGuiID)-1)*(((((ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiID) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) - 1 > 2 * PyLong_SHIFT) { return (ImGuiID) ((((((ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiID) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) - 1 > 3 * PyLong_SHIFT) { return (ImGuiID) (((ImGuiID)-1)*(((((((ImGuiID)digits[2]) << PyLong_SHIFT) | (ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiID) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) - 1 > 3 * PyLong_SHIFT) { return (ImGuiID) ((((((((ImGuiID)digits[2]) << PyLong_SHIFT) | (ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiID) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) - 1 > 4 * PyLong_SHIFT) { return (ImGuiID) (((ImGuiID)-1)*(((((((((ImGuiID)digits[3]) << PyLong_SHIFT) | (ImGuiID)digits[2]) << PyLong_SHIFT) | (ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiID) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiID, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiID) - 1 > 4 * PyLong_SHIFT) { return (ImGuiID) ((((((((((ImGuiID)digits[3]) << PyLong_SHIFT) | (ImGuiID)digits[2]) << PyLong_SHIFT) | (ImGuiID)digits[1]) << PyLong_SHIFT) | (ImGuiID)digits[0]))); } } break; } #endif if (sizeof(ImGuiID) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiID, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiID) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiID, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiID val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiID) -1; } } else { ImGuiID val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiID) -1; val = __Pyx_PyInt_As_ImGuiID(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiID"); return (ImGuiID) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiID"); return (ImGuiID) -1; } /* CIntFromPy */ static CYTHON_INLINE ImS16 __Pyx_PyInt_As_ImS16(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImS16 neg_one = (ImS16) -1, const_zero = (ImS16) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImS16) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImS16, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImS16) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImS16) 0; case 1: __PYX_VERIFY_RETURN_INT(ImS16, digit, digits[0]) case 2: if (8 * sizeof(ImS16) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) >= 2 * PyLong_SHIFT) { return (ImS16) (((((ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0])); } } break; case 3: if (8 * sizeof(ImS16) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) >= 3 * PyLong_SHIFT) { return (ImS16) (((((((ImS16)digits[2]) << PyLong_SHIFT) | (ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0])); } } break; case 4: if (8 * sizeof(ImS16) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) >= 4 * PyLong_SHIFT) { return (ImS16) (((((((((ImS16)digits[3]) << PyLong_SHIFT) | (ImS16)digits[2]) << PyLong_SHIFT) | (ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImS16) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImS16) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImS16, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImS16) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImS16, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImS16) 0; case -1: __PYX_VERIFY_RETURN_INT(ImS16, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImS16, digit, +digits[0]) case -2: if (8 * sizeof(ImS16) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) - 1 > 2 * PyLong_SHIFT) { return (ImS16) (((ImS16)-1)*(((((ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0]))); } } break; case 2: if (8 * sizeof(ImS16) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) - 1 > 2 * PyLong_SHIFT) { return (ImS16) ((((((ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0]))); } } break; case -3: if (8 * sizeof(ImS16) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) - 1 > 3 * PyLong_SHIFT) { return (ImS16) (((ImS16)-1)*(((((((ImS16)digits[2]) << PyLong_SHIFT) | (ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0]))); } } break; case 3: if (8 * sizeof(ImS16) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) - 1 > 3 * PyLong_SHIFT) { return (ImS16) ((((((((ImS16)digits[2]) << PyLong_SHIFT) | (ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0]))); } } break; case -4: if (8 * sizeof(ImS16) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) - 1 > 4 * PyLong_SHIFT) { return (ImS16) (((ImS16)-1)*(((((((((ImS16)digits[3]) << PyLong_SHIFT) | (ImS16)digits[2]) << PyLong_SHIFT) | (ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0]))); } } break; case 4: if (8 * sizeof(ImS16) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImS16, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImS16) - 1 > 4 * PyLong_SHIFT) { return (ImS16) ((((((((((ImS16)digits[3]) << PyLong_SHIFT) | (ImS16)digits[2]) << PyLong_SHIFT) | (ImS16)digits[1]) << PyLong_SHIFT) | (ImS16)digits[0]))); } } break; } #endif if (sizeof(ImS16) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImS16, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImS16) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImS16, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImS16 val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImS16) -1; } } else { ImS16 val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImS16) -1; val = __Pyx_PyInt_As_ImS16(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImS16"); return (ImS16) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImS16"); return (ImS16) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiSortDirection __Pyx_PyInt_As_ImGuiSortDirection(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiSortDirection neg_one = (ImGuiSortDirection) -1, const_zero = (ImGuiSortDirection) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiSortDirection) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiSortDirection) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiSortDirection) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, digit, digits[0]) case 2: if (8 * sizeof(ImGuiSortDirection) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) >= 2 * PyLong_SHIFT) { return (ImGuiSortDirection) (((((ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiSortDirection) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) >= 3 * PyLong_SHIFT) { return (ImGuiSortDirection) (((((((ImGuiSortDirection)digits[2]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiSortDirection) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) >= 4 * PyLong_SHIFT) { return (ImGuiSortDirection) (((((((((ImGuiSortDirection)digits[3]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[2]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiSortDirection) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiSortDirection) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiSortDirection, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSortDirection) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiSortDirection, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiSortDirection) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiSortDirection) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) - 1 > 2 * PyLong_SHIFT) { return (ImGuiSortDirection) (((ImGuiSortDirection)-1)*(((((ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiSortDirection) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) - 1 > 2 * PyLong_SHIFT) { return (ImGuiSortDirection) ((((((ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiSortDirection) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) - 1 > 3 * PyLong_SHIFT) { return (ImGuiSortDirection) (((ImGuiSortDirection)-1)*(((((((ImGuiSortDirection)digits[2]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiSortDirection) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) - 1 > 3 * PyLong_SHIFT) { return (ImGuiSortDirection) ((((((((ImGuiSortDirection)digits[2]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiSortDirection) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) - 1 > 4 * PyLong_SHIFT) { return (ImGuiSortDirection) (((ImGuiSortDirection)-1)*(((((((((ImGuiSortDirection)digits[3]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[2]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiSortDirection) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSortDirection, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSortDirection) - 1 > 4 * PyLong_SHIFT) { return (ImGuiSortDirection) ((((((((((ImGuiSortDirection)digits[3]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[2]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[1]) << PyLong_SHIFT) | (ImGuiSortDirection)digits[0]))); } } break; } #endif if (sizeof(ImGuiSortDirection) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiSortDirection, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSortDirection) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiSortDirection, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiSortDirection val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiSortDirection) -1; } } else { ImGuiSortDirection val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiSortDirection) -1; val = __Pyx_PyInt_As_ImGuiSortDirection(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiSortDirection"); return (ImGuiSortDirection) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiSortDirection"); return (ImGuiSortDirection) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiConfigFlags __Pyx_PyInt_As_ImGuiConfigFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiConfigFlags neg_one = (ImGuiConfigFlags) -1, const_zero = (ImGuiConfigFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiConfigFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiConfigFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiConfigFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiConfigFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) >= 2 * PyLong_SHIFT) { return (ImGuiConfigFlags) (((((ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiConfigFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) >= 3 * PyLong_SHIFT) { return (ImGuiConfigFlags) (((((((ImGuiConfigFlags)digits[2]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiConfigFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) >= 4 * PyLong_SHIFT) { return (ImGuiConfigFlags) (((((((((ImGuiConfigFlags)digits[3]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[2]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiConfigFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiConfigFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiConfigFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiConfigFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiConfigFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiConfigFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiConfigFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiConfigFlags) (((ImGuiConfigFlags)-1)*(((((ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiConfigFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiConfigFlags) ((((((ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiConfigFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiConfigFlags) (((ImGuiConfigFlags)-1)*(((((((ImGuiConfigFlags)digits[2]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiConfigFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiConfigFlags) ((((((((ImGuiConfigFlags)digits[2]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiConfigFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiConfigFlags) (((ImGuiConfigFlags)-1)*(((((((((ImGuiConfigFlags)digits[3]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[2]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiConfigFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiConfigFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiConfigFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiConfigFlags) ((((((((((ImGuiConfigFlags)digits[3]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[2]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[1]) << PyLong_SHIFT) | (ImGuiConfigFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiConfigFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiConfigFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiConfigFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiConfigFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiConfigFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiConfigFlags) -1; } } else { ImGuiConfigFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiConfigFlags) -1; val = __Pyx_PyInt_As_ImGuiConfigFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiConfigFlags"); return (ImGuiConfigFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiConfigFlags"); return (ImGuiConfigFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiBackendFlags __Pyx_PyInt_As_ImGuiBackendFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiBackendFlags neg_one = (ImGuiBackendFlags) -1, const_zero = (ImGuiBackendFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiBackendFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiBackendFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiBackendFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiBackendFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) >= 2 * PyLong_SHIFT) { return (ImGuiBackendFlags) (((((ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiBackendFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) >= 3 * PyLong_SHIFT) { return (ImGuiBackendFlags) (((((((ImGuiBackendFlags)digits[2]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiBackendFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) >= 4 * PyLong_SHIFT) { return (ImGuiBackendFlags) (((((((((ImGuiBackendFlags)digits[3]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[2]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiBackendFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiBackendFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiBackendFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiBackendFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiBackendFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiBackendFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiBackendFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiBackendFlags) (((ImGuiBackendFlags)-1)*(((((ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiBackendFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiBackendFlags) ((((((ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiBackendFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiBackendFlags) (((ImGuiBackendFlags)-1)*(((((((ImGuiBackendFlags)digits[2]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiBackendFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiBackendFlags) ((((((((ImGuiBackendFlags)digits[2]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiBackendFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiBackendFlags) (((ImGuiBackendFlags)-1)*(((((((((ImGuiBackendFlags)digits[3]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[2]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiBackendFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiBackendFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiBackendFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiBackendFlags) ((((((((((ImGuiBackendFlags)digits[3]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[2]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[1]) << PyLong_SHIFT) | (ImGuiBackendFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiBackendFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiBackendFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiBackendFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiBackendFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiBackendFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiBackendFlags) -1; } } else { ImGuiBackendFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiBackendFlags) -1; val = __Pyx_PyInt_As_ImGuiBackendFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiBackendFlags"); return (ImGuiBackendFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiBackendFlags"); return (ImGuiBackendFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(unsigned int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(unsigned int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (unsigned int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (unsigned int) 0; case 1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, digits[0]) case 2: if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT) { return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); } } break; case 3: if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT) { return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); } } break; case 4: if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) >= 4 * PyLong_SHIFT) { return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (unsigned int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(unsigned int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (unsigned int) 0; case -1: __PYX_VERIFY_RETURN_INT(unsigned int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, +digits[0]) case -2: if (8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); } } break; case 2: if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); } } break; case -3: if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); } } break; case 3: if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); } } break; case -4: if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT) { return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); } } break; case 4: if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT) { return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); } } break; } #endif if (sizeof(unsigned int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else unsigned int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (unsigned int) -1; } } else { unsigned int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (unsigned int) -1; val = __Pyx_PyInt_As_unsigned_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to unsigned int"); return (unsigned int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to unsigned int"); return (unsigned int) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiWindowFlags __Pyx_PyInt_As_ImGuiWindowFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiWindowFlags neg_one = (ImGuiWindowFlags) -1, const_zero = (ImGuiWindowFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiWindowFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiWindowFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiWindowFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiWindowFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) >= 2 * PyLong_SHIFT) { return (ImGuiWindowFlags) (((((ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiWindowFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) >= 3 * PyLong_SHIFT) { return (ImGuiWindowFlags) (((((((ImGuiWindowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiWindowFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) >= 4 * PyLong_SHIFT) { return (ImGuiWindowFlags) (((((((((ImGuiWindowFlags)digits[3]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiWindowFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiWindowFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiWindowFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiWindowFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiWindowFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiWindowFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiWindowFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiWindowFlags) (((ImGuiWindowFlags)-1)*(((((ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiWindowFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiWindowFlags) ((((((ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiWindowFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiWindowFlags) (((ImGuiWindowFlags)-1)*(((((((ImGuiWindowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiWindowFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiWindowFlags) ((((((((ImGuiWindowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiWindowFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiWindowFlags) (((ImGuiWindowFlags)-1)*(((((((((ImGuiWindowFlags)digits[3]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiWindowFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiWindowFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiWindowFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiWindowFlags) ((((((((((ImGuiWindowFlags)digits[3]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiWindowFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiWindowFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiWindowFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiWindowFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiWindowFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiWindowFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiWindowFlags) -1; } } else { ImGuiWindowFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiWindowFlags) -1; val = __Pyx_PyInt_As_ImGuiWindowFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiWindowFlags"); return (ImGuiWindowFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiWindowFlags"); return (ImGuiWindowFlags) -1; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const long neg_one = (long) -1, const_zero = (long) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiWindowFlags(ImGuiWindowFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiWindowFlags neg_one = (ImGuiWindowFlags) -1, const_zero = (ImGuiWindowFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiWindowFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiWindowFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiWindowFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiWindowFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiWindowFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiWindowFlags), little, !is_unsigned); } } /* CIntFromPy */ static CYTHON_INLINE ImGuiCond __Pyx_PyInt_As_ImGuiCond(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiCond neg_one = (ImGuiCond) -1, const_zero = (ImGuiCond) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiCond) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiCond, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiCond) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiCond) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiCond, digit, digits[0]) case 2: if (8 * sizeof(ImGuiCond) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) >= 2 * PyLong_SHIFT) { return (ImGuiCond) (((((ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiCond) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) >= 3 * PyLong_SHIFT) { return (ImGuiCond) (((((((ImGuiCond)digits[2]) << PyLong_SHIFT) | (ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiCond) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) >= 4 * PyLong_SHIFT) { return (ImGuiCond) (((((((((ImGuiCond)digits[3]) << PyLong_SHIFT) | (ImGuiCond)digits[2]) << PyLong_SHIFT) | (ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiCond) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiCond) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiCond, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCond) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiCond, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiCond) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiCond, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiCond, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiCond) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) - 1 > 2 * PyLong_SHIFT) { return (ImGuiCond) (((ImGuiCond)-1)*(((((ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiCond) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) - 1 > 2 * PyLong_SHIFT) { return (ImGuiCond) ((((((ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiCond) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) - 1 > 3 * PyLong_SHIFT) { return (ImGuiCond) (((ImGuiCond)-1)*(((((((ImGuiCond)digits[2]) << PyLong_SHIFT) | (ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiCond) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) - 1 > 3 * PyLong_SHIFT) { return (ImGuiCond) ((((((((ImGuiCond)digits[2]) << PyLong_SHIFT) | (ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiCond) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) - 1 > 4 * PyLong_SHIFT) { return (ImGuiCond) (((ImGuiCond)-1)*(((((((((ImGuiCond)digits[3]) << PyLong_SHIFT) | (ImGuiCond)digits[2]) << PyLong_SHIFT) | (ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiCond) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiCond, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiCond) - 1 > 4 * PyLong_SHIFT) { return (ImGuiCond) ((((((((((ImGuiCond)digits[3]) << PyLong_SHIFT) | (ImGuiCond)digits[2]) << PyLong_SHIFT) | (ImGuiCond)digits[1]) << PyLong_SHIFT) | (ImGuiCond)digits[0]))); } } break; } #endif if (sizeof(ImGuiCond) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiCond, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCond) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiCond, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiCond val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiCond) -1; } } else { ImGuiCond val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiCond) -1; val = __Pyx_PyInt_As_ImGuiCond(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiCond"); return (ImGuiCond) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiCond"); return (ImGuiCond) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiTreeNodeFlags __Pyx_PyInt_As_ImGuiTreeNodeFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTreeNodeFlags neg_one = (ImGuiTreeNodeFlags) -1, const_zero = (ImGuiTreeNodeFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiTreeNodeFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiTreeNodeFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTreeNodeFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiTreeNodeFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) >= 2 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) (((((ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiTreeNodeFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) >= 3 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) (((((((ImGuiTreeNodeFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiTreeNodeFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) >= 4 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) (((((((((ImGuiTreeNodeFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiTreeNodeFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiTreeNodeFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTreeNodeFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTreeNodeFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTreeNodeFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTreeNodeFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) (((ImGuiTreeNodeFlags)-1)*(((((ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiTreeNodeFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) ((((((ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) (((ImGuiTreeNodeFlags)-1)*(((((((ImGuiTreeNodeFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiTreeNodeFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) ((((((((ImGuiTreeNodeFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) (((ImGuiTreeNodeFlags)-1)*(((((((((ImGuiTreeNodeFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiTreeNodeFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTreeNodeFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTreeNodeFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTreeNodeFlags) ((((((((((ImGuiTreeNodeFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTreeNodeFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiTreeNodeFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTreeNodeFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTreeNodeFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTreeNodeFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiTreeNodeFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiTreeNodeFlags) -1; } } else { ImGuiTreeNodeFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiTreeNodeFlags) -1; val = __Pyx_PyInt_As_ImGuiTreeNodeFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiTreeNodeFlags"); return (ImGuiTreeNodeFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiTreeNodeFlags"); return (ImGuiTreeNodeFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiPopupFlags __Pyx_PyInt_As_ImGuiPopupFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiPopupFlags neg_one = (ImGuiPopupFlags) -1, const_zero = (ImGuiPopupFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiPopupFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiPopupFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiPopupFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiPopupFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) >= 2 * PyLong_SHIFT) { return (ImGuiPopupFlags) (((((ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiPopupFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) >= 3 * PyLong_SHIFT) { return (ImGuiPopupFlags) (((((((ImGuiPopupFlags)digits[2]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiPopupFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) >= 4 * PyLong_SHIFT) { return (ImGuiPopupFlags) (((((((((ImGuiPopupFlags)digits[3]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[2]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiPopupFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiPopupFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiPopupFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiPopupFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiPopupFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiPopupFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiPopupFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiPopupFlags) (((ImGuiPopupFlags)-1)*(((((ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiPopupFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiPopupFlags) ((((((ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiPopupFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiPopupFlags) (((ImGuiPopupFlags)-1)*(((((((ImGuiPopupFlags)digits[2]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiPopupFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiPopupFlags) ((((((((ImGuiPopupFlags)digits[2]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiPopupFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiPopupFlags) (((ImGuiPopupFlags)-1)*(((((((((ImGuiPopupFlags)digits[3]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[2]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiPopupFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiPopupFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiPopupFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiPopupFlags) ((((((((((ImGuiPopupFlags)digits[3]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[2]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[1]) << PyLong_SHIFT) | (ImGuiPopupFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiPopupFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiPopupFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiPopupFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiPopupFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiPopupFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiPopupFlags) -1; } } else { ImGuiPopupFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiPopupFlags) -1; val = __Pyx_PyInt_As_ImGuiPopupFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiPopupFlags"); return (ImGuiPopupFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiPopupFlags"); return (ImGuiPopupFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiTableFlags __Pyx_PyInt_As_ImGuiTableFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableFlags neg_one = (ImGuiTableFlags) -1, const_zero = (ImGuiTableFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiTableFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiTableFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTableFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiTableFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) >= 2 * PyLong_SHIFT) { return (ImGuiTableFlags) (((((ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiTableFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) >= 3 * PyLong_SHIFT) { return (ImGuiTableFlags) (((((((ImGuiTableFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiTableFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) >= 4 * PyLong_SHIFT) { return (ImGuiTableFlags) (((((((((ImGuiTableFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiTableFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiTableFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTableFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiTableFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTableFlags) (((ImGuiTableFlags)-1)*(((((ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiTableFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTableFlags) ((((((ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiTableFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTableFlags) (((ImGuiTableFlags)-1)*(((((((ImGuiTableFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiTableFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTableFlags) ((((((((ImGuiTableFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiTableFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTableFlags) (((ImGuiTableFlags)-1)*(((((((((ImGuiTableFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiTableFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTableFlags) ((((((((((ImGuiTableFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiTableFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiTableFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiTableFlags) -1; } } else { ImGuiTableFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiTableFlags) -1; val = __Pyx_PyInt_As_ImGuiTableFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiTableFlags"); return (ImGuiTableFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiTableFlags"); return (ImGuiTableFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiTableRowFlags __Pyx_PyInt_As_ImGuiTableRowFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableRowFlags neg_one = (ImGuiTableRowFlags) -1, const_zero = (ImGuiTableRowFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiTableRowFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiTableRowFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTableRowFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiTableRowFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) >= 2 * PyLong_SHIFT) { return (ImGuiTableRowFlags) (((((ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiTableRowFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) >= 3 * PyLong_SHIFT) { return (ImGuiTableRowFlags) (((((((ImGuiTableRowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiTableRowFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) >= 4 * PyLong_SHIFT) { return (ImGuiTableRowFlags) (((((((((ImGuiTableRowFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiTableRowFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiTableRowFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableRowFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableRowFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableRowFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTableRowFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiTableRowFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTableRowFlags) (((ImGuiTableRowFlags)-1)*(((((ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiTableRowFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTableRowFlags) ((((((ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiTableRowFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTableRowFlags) (((ImGuiTableRowFlags)-1)*(((((((ImGuiTableRowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiTableRowFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTableRowFlags) ((((((((ImGuiTableRowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiTableRowFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTableRowFlags) (((ImGuiTableRowFlags)-1)*(((((((((ImGuiTableRowFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiTableRowFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableRowFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableRowFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTableRowFlags) ((((((((((ImGuiTableRowFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableRowFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiTableRowFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableRowFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableRowFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableRowFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiTableRowFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiTableRowFlags) -1; } } else { ImGuiTableRowFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiTableRowFlags) -1; val = __Pyx_PyInt_As_ImGuiTableRowFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiTableRowFlags"); return (ImGuiTableRowFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiTableRowFlags"); return (ImGuiTableRowFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiTableColumnFlags __Pyx_PyInt_As_ImGuiTableColumnFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableColumnFlags neg_one = (ImGuiTableColumnFlags) -1, const_zero = (ImGuiTableColumnFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiTableColumnFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiTableColumnFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTableColumnFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiTableColumnFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) >= 2 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) (((((ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiTableColumnFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) >= 3 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) (((((((ImGuiTableColumnFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiTableColumnFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) >= 4 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) (((((((((ImGuiTableColumnFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiTableColumnFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiTableColumnFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableColumnFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableColumnFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableColumnFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTableColumnFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) (((ImGuiTableColumnFlags)-1)*(((((ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiTableColumnFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) ((((((ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) (((ImGuiTableColumnFlags)-1)*(((((((ImGuiTableColumnFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiTableColumnFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) ((((((((ImGuiTableColumnFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) (((ImGuiTableColumnFlags)-1)*(((((((((ImGuiTableColumnFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiTableColumnFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableColumnFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableColumnFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTableColumnFlags) ((((((((((ImGuiTableColumnFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTableColumnFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiTableColumnFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableColumnFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableColumnFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableColumnFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiTableColumnFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiTableColumnFlags) -1; } } else { ImGuiTableColumnFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiTableColumnFlags) -1; val = __Pyx_PyInt_As_ImGuiTableColumnFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiTableColumnFlags"); return (ImGuiTableColumnFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiTableColumnFlags"); return (ImGuiTableColumnFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiTableBgTarget __Pyx_PyInt_As_ImGuiTableBgTarget(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableBgTarget neg_one = (ImGuiTableBgTarget) -1, const_zero = (ImGuiTableBgTarget) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiTableBgTarget) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiTableBgTarget) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTableBgTarget) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, digit, digits[0]) case 2: if (8 * sizeof(ImGuiTableBgTarget) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) >= 2 * PyLong_SHIFT) { return (ImGuiTableBgTarget) (((((ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiTableBgTarget) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) >= 3 * PyLong_SHIFT) { return (ImGuiTableBgTarget) (((((((ImGuiTableBgTarget)digits[2]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiTableBgTarget) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) >= 4 * PyLong_SHIFT) { return (ImGuiTableBgTarget) (((((((((ImGuiTableBgTarget)digits[3]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[2]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiTableBgTarget) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiTableBgTarget) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableBgTarget, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableBgTarget) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableBgTarget, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTableBgTarget) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiTableBgTarget) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTableBgTarget) (((ImGuiTableBgTarget)-1)*(((((ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiTableBgTarget) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTableBgTarget) ((((((ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiTableBgTarget) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTableBgTarget) (((ImGuiTableBgTarget)-1)*(((((((ImGuiTableBgTarget)digits[2]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiTableBgTarget) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTableBgTarget) ((((((((ImGuiTableBgTarget)digits[2]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiTableBgTarget) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTableBgTarget) (((ImGuiTableBgTarget)-1)*(((((((((ImGuiTableBgTarget)digits[3]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[2]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiTableBgTarget) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTableBgTarget, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTableBgTarget) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTableBgTarget) ((((((((((ImGuiTableBgTarget)digits[3]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[2]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[1]) << PyLong_SHIFT) | (ImGuiTableBgTarget)digits[0]))); } } break; } #endif if (sizeof(ImGuiTableBgTarget) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableBgTarget, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableBgTarget) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTableBgTarget, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiTableBgTarget val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiTableBgTarget) -1; } } else { ImGuiTableBgTarget val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiTableBgTarget) -1; val = __Pyx_PyInt_As_ImGuiTableBgTarget(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiTableBgTarget"); return (ImGuiTableBgTarget) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiTableBgTarget"); return (ImGuiTableBgTarget) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiButtonFlags __Pyx_PyInt_As_ImGuiButtonFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiButtonFlags neg_one = (ImGuiButtonFlags) -1, const_zero = (ImGuiButtonFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiButtonFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiButtonFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiButtonFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiButtonFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) >= 2 * PyLong_SHIFT) { return (ImGuiButtonFlags) (((((ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiButtonFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) >= 3 * PyLong_SHIFT) { return (ImGuiButtonFlags) (((((((ImGuiButtonFlags)digits[2]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiButtonFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) >= 4 * PyLong_SHIFT) { return (ImGuiButtonFlags) (((((((((ImGuiButtonFlags)digits[3]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[2]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiButtonFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiButtonFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiButtonFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiButtonFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiButtonFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiButtonFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiButtonFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiButtonFlags) (((ImGuiButtonFlags)-1)*(((((ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiButtonFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiButtonFlags) ((((((ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiButtonFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiButtonFlags) (((ImGuiButtonFlags)-1)*(((((((ImGuiButtonFlags)digits[2]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiButtonFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiButtonFlags) ((((((((ImGuiButtonFlags)digits[2]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiButtonFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiButtonFlags) (((ImGuiButtonFlags)-1)*(((((((((ImGuiButtonFlags)digits[3]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[2]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiButtonFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiButtonFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiButtonFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiButtonFlags) ((((((((((ImGuiButtonFlags)digits[3]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[2]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[1]) << PyLong_SHIFT) | (ImGuiButtonFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiButtonFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiButtonFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiButtonFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiButtonFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiButtonFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiButtonFlags) -1; } } else { ImGuiButtonFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiButtonFlags) -1; val = __Pyx_PyInt_As_ImGuiButtonFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiButtonFlags"); return (ImGuiButtonFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiButtonFlags"); return (ImGuiButtonFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiComboFlags __Pyx_PyInt_As_ImGuiComboFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiComboFlags neg_one = (ImGuiComboFlags) -1, const_zero = (ImGuiComboFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiComboFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiComboFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiComboFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiComboFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) >= 2 * PyLong_SHIFT) { return (ImGuiComboFlags) (((((ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiComboFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) >= 3 * PyLong_SHIFT) { return (ImGuiComboFlags) (((((((ImGuiComboFlags)digits[2]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiComboFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) >= 4 * PyLong_SHIFT) { return (ImGuiComboFlags) (((((((((ImGuiComboFlags)digits[3]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[2]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiComboFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiComboFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiComboFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiComboFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiComboFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiComboFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiComboFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiComboFlags) (((ImGuiComboFlags)-1)*(((((ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiComboFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiComboFlags) ((((((ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiComboFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiComboFlags) (((ImGuiComboFlags)-1)*(((((((ImGuiComboFlags)digits[2]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiComboFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiComboFlags) ((((((((ImGuiComboFlags)digits[2]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiComboFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiComboFlags) (((ImGuiComboFlags)-1)*(((((((((ImGuiComboFlags)digits[3]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[2]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiComboFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiComboFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiComboFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiComboFlags) ((((((((((ImGuiComboFlags)digits[3]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[2]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[1]) << PyLong_SHIFT) | (ImGuiComboFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiComboFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiComboFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiComboFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiComboFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiComboFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiComboFlags) -1; } } else { ImGuiComboFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiComboFlags) -1; val = __Pyx_PyInt_As_ImGuiComboFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiComboFlags"); return (ImGuiComboFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiComboFlags"); return (ImGuiComboFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiColorEditFlags __Pyx_PyInt_As_ImGuiColorEditFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiColorEditFlags neg_one = (ImGuiColorEditFlags) -1, const_zero = (ImGuiColorEditFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiColorEditFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiColorEditFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiColorEditFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiColorEditFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) >= 2 * PyLong_SHIFT) { return (ImGuiColorEditFlags) (((((ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiColorEditFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) >= 3 * PyLong_SHIFT) { return (ImGuiColorEditFlags) (((((((ImGuiColorEditFlags)digits[2]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiColorEditFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) >= 4 * PyLong_SHIFT) { return (ImGuiColorEditFlags) (((((((((ImGuiColorEditFlags)digits[3]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[2]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiColorEditFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiColorEditFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiColorEditFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiColorEditFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiColorEditFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiColorEditFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiColorEditFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiColorEditFlags) (((ImGuiColorEditFlags)-1)*(((((ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiColorEditFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiColorEditFlags) ((((((ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiColorEditFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiColorEditFlags) (((ImGuiColorEditFlags)-1)*(((((((ImGuiColorEditFlags)digits[2]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiColorEditFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiColorEditFlags) ((((((((ImGuiColorEditFlags)digits[2]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiColorEditFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiColorEditFlags) (((ImGuiColorEditFlags)-1)*(((((((((ImGuiColorEditFlags)digits[3]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[2]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiColorEditFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiColorEditFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiColorEditFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiColorEditFlags) ((((((((((ImGuiColorEditFlags)digits[3]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[2]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[1]) << PyLong_SHIFT) | (ImGuiColorEditFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiColorEditFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiColorEditFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiColorEditFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiColorEditFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiColorEditFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiColorEditFlags) -1; } } else { ImGuiColorEditFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiColorEditFlags) -1; val = __Pyx_PyInt_As_ImGuiColorEditFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiColorEditFlags"); return (ImGuiColorEditFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiColorEditFlags"); return (ImGuiColorEditFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiSliderFlags __Pyx_PyInt_As_ImGuiSliderFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiSliderFlags neg_one = (ImGuiSliderFlags) -1, const_zero = (ImGuiSliderFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiSliderFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiSliderFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiSliderFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiSliderFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) >= 2 * PyLong_SHIFT) { return (ImGuiSliderFlags) (((((ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiSliderFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) >= 3 * PyLong_SHIFT) { return (ImGuiSliderFlags) (((((((ImGuiSliderFlags)digits[2]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiSliderFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) >= 4 * PyLong_SHIFT) { return (ImGuiSliderFlags) (((((((((ImGuiSliderFlags)digits[3]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[2]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiSliderFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiSliderFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiSliderFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSliderFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiSliderFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiSliderFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiSliderFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiSliderFlags) (((ImGuiSliderFlags)-1)*(((((ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiSliderFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiSliderFlags) ((((((ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiSliderFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiSliderFlags) (((ImGuiSliderFlags)-1)*(((((((ImGuiSliderFlags)digits[2]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiSliderFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiSliderFlags) ((((((((ImGuiSliderFlags)digits[2]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiSliderFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiSliderFlags) (((ImGuiSliderFlags)-1)*(((((((((ImGuiSliderFlags)digits[3]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[2]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiSliderFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiSliderFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiSliderFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiSliderFlags) ((((((((((ImGuiSliderFlags)digits[3]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[2]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[1]) << PyLong_SHIFT) | (ImGuiSliderFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiSliderFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiSliderFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSliderFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiSliderFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiSliderFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiSliderFlags) -1; } } else { ImGuiSliderFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiSliderFlags) -1; val = __Pyx_PyInt_As_ImGuiSliderFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiSliderFlags"); return (ImGuiSliderFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiSliderFlags"); return (ImGuiSliderFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiDataType __Pyx_PyInt_As_ImGuiDataType(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiDataType neg_one = (ImGuiDataType) -1, const_zero = (ImGuiDataType) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiDataType) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiDataType) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiDataType) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiDataType, digit, digits[0]) case 2: if (8 * sizeof(ImGuiDataType) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) >= 2 * PyLong_SHIFT) { return (ImGuiDataType) (((((ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiDataType) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) >= 3 * PyLong_SHIFT) { return (ImGuiDataType) (((((((ImGuiDataType)digits[2]) << PyLong_SHIFT) | (ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiDataType) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) >= 4 * PyLong_SHIFT) { return (ImGuiDataType) (((((((((ImGuiDataType)digits[3]) << PyLong_SHIFT) | (ImGuiDataType)digits[2]) << PyLong_SHIFT) | (ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiDataType) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiDataType) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDataType, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDataType) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDataType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiDataType) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiDataType, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiDataType, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiDataType) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) - 1 > 2 * PyLong_SHIFT) { return (ImGuiDataType) (((ImGuiDataType)-1)*(((((ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiDataType) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) - 1 > 2 * PyLong_SHIFT) { return (ImGuiDataType) ((((((ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiDataType) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) - 1 > 3 * PyLong_SHIFT) { return (ImGuiDataType) (((ImGuiDataType)-1)*(((((((ImGuiDataType)digits[2]) << PyLong_SHIFT) | (ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiDataType) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) - 1 > 3 * PyLong_SHIFT) { return (ImGuiDataType) ((((((((ImGuiDataType)digits[2]) << PyLong_SHIFT) | (ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiDataType) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) - 1 > 4 * PyLong_SHIFT) { return (ImGuiDataType) (((ImGuiDataType)-1)*(((((((((ImGuiDataType)digits[3]) << PyLong_SHIFT) | (ImGuiDataType)digits[2]) << PyLong_SHIFT) | (ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiDataType) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDataType, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDataType) - 1 > 4 * PyLong_SHIFT) { return (ImGuiDataType) ((((((((((ImGuiDataType)digits[3]) << PyLong_SHIFT) | (ImGuiDataType)digits[2]) << PyLong_SHIFT) | (ImGuiDataType)digits[1]) << PyLong_SHIFT) | (ImGuiDataType)digits[0]))); } } break; } #endif if (sizeof(ImGuiDataType) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDataType, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDataType) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDataType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiDataType val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiDataType) -1; } } else { ImGuiDataType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiDataType) -1; val = __Pyx_PyInt_As_ImGuiDataType(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiDataType"); return (ImGuiDataType) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiDataType"); return (ImGuiDataType) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiInputTextFlags __Pyx_PyInt_As_ImGuiInputTextFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiInputTextFlags neg_one = (ImGuiInputTextFlags) -1, const_zero = (ImGuiInputTextFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiInputTextFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiInputTextFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiInputTextFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiInputTextFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) >= 2 * PyLong_SHIFT) { return (ImGuiInputTextFlags) (((((ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiInputTextFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) >= 3 * PyLong_SHIFT) { return (ImGuiInputTextFlags) (((((((ImGuiInputTextFlags)digits[2]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiInputTextFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) >= 4 * PyLong_SHIFT) { return (ImGuiInputTextFlags) (((((((((ImGuiInputTextFlags)digits[3]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[2]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiInputTextFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiInputTextFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiInputTextFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiInputTextFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiInputTextFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiInputTextFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiInputTextFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiInputTextFlags) (((ImGuiInputTextFlags)-1)*(((((ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiInputTextFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiInputTextFlags) ((((((ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiInputTextFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiInputTextFlags) (((ImGuiInputTextFlags)-1)*(((((((ImGuiInputTextFlags)digits[2]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiInputTextFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiInputTextFlags) ((((((((ImGuiInputTextFlags)digits[2]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiInputTextFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiInputTextFlags) (((ImGuiInputTextFlags)-1)*(((((((((ImGuiInputTextFlags)digits[3]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[2]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiInputTextFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiInputTextFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiInputTextFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiInputTextFlags) ((((((((((ImGuiInputTextFlags)digits[3]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[2]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[1]) << PyLong_SHIFT) | (ImGuiInputTextFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiInputTextFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiInputTextFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiInputTextFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiInputTextFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiInputTextFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiInputTextFlags) -1; } } else { ImGuiInputTextFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiInputTextFlags) -1; val = __Pyx_PyInt_As_ImGuiInputTextFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiInputTextFlags"); return (ImGuiInputTextFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiInputTextFlags"); return (ImGuiInputTextFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiHoveredFlags __Pyx_PyInt_As_ImGuiHoveredFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiHoveredFlags neg_one = (ImGuiHoveredFlags) -1, const_zero = (ImGuiHoveredFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiHoveredFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiHoveredFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiHoveredFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiHoveredFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) >= 2 * PyLong_SHIFT) { return (ImGuiHoveredFlags) (((((ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiHoveredFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) >= 3 * PyLong_SHIFT) { return (ImGuiHoveredFlags) (((((((ImGuiHoveredFlags)digits[2]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiHoveredFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) >= 4 * PyLong_SHIFT) { return (ImGuiHoveredFlags) (((((((((ImGuiHoveredFlags)digits[3]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[2]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiHoveredFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiHoveredFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiHoveredFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiHoveredFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiHoveredFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiHoveredFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiHoveredFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiHoveredFlags) (((ImGuiHoveredFlags)-1)*(((((ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiHoveredFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiHoveredFlags) ((((((ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiHoveredFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiHoveredFlags) (((ImGuiHoveredFlags)-1)*(((((((ImGuiHoveredFlags)digits[2]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiHoveredFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiHoveredFlags) ((((((((ImGuiHoveredFlags)digits[2]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiHoveredFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiHoveredFlags) (((ImGuiHoveredFlags)-1)*(((((((((ImGuiHoveredFlags)digits[3]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[2]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiHoveredFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiHoveredFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiHoveredFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiHoveredFlags) ((((((((((ImGuiHoveredFlags)digits[3]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[2]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[1]) << PyLong_SHIFT) | (ImGuiHoveredFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiHoveredFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiHoveredFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiHoveredFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiHoveredFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiHoveredFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiHoveredFlags) -1; } } else { ImGuiHoveredFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiHoveredFlags) -1; val = __Pyx_PyInt_As_ImGuiHoveredFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiHoveredFlags"); return (ImGuiHoveredFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiHoveredFlags"); return (ImGuiHoveredFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiMouseButton __Pyx_PyInt_As_ImGuiMouseButton(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiMouseButton neg_one = (ImGuiMouseButton) -1, const_zero = (ImGuiMouseButton) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiMouseButton) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiMouseButton) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiMouseButton) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, digit, digits[0]) case 2: if (8 * sizeof(ImGuiMouseButton) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) >= 2 * PyLong_SHIFT) { return (ImGuiMouseButton) (((((ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiMouseButton) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) >= 3 * PyLong_SHIFT) { return (ImGuiMouseButton) (((((((ImGuiMouseButton)digits[2]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiMouseButton) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) >= 4 * PyLong_SHIFT) { return (ImGuiMouseButton) (((((((((ImGuiMouseButton)digits[3]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[2]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiMouseButton) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiMouseButton) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiMouseButton, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseButton) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiMouseButton, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiMouseButton) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiMouseButton) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) - 1 > 2 * PyLong_SHIFT) { return (ImGuiMouseButton) (((ImGuiMouseButton)-1)*(((((ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiMouseButton) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) - 1 > 2 * PyLong_SHIFT) { return (ImGuiMouseButton) ((((((ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiMouseButton) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) - 1 > 3 * PyLong_SHIFT) { return (ImGuiMouseButton) (((ImGuiMouseButton)-1)*(((((((ImGuiMouseButton)digits[2]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiMouseButton) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) - 1 > 3 * PyLong_SHIFT) { return (ImGuiMouseButton) ((((((((ImGuiMouseButton)digits[2]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiMouseButton) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) - 1 > 4 * PyLong_SHIFT) { return (ImGuiMouseButton) (((ImGuiMouseButton)-1)*(((((((((ImGuiMouseButton)digits[3]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[2]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiMouseButton) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseButton, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseButton) - 1 > 4 * PyLong_SHIFT) { return (ImGuiMouseButton) ((((((((((ImGuiMouseButton)digits[3]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[2]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[1]) << PyLong_SHIFT) | (ImGuiMouseButton)digits[0]))); } } break; } #endif if (sizeof(ImGuiMouseButton) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiMouseButton, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseButton) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiMouseButton, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiMouseButton val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiMouseButton) -1; } } else { ImGuiMouseButton val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiMouseButton) -1; val = __Pyx_PyInt_As_ImGuiMouseButton(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiMouseButton"); return (ImGuiMouseButton) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiMouseButton"); return (ImGuiMouseButton) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiMouseCursor __Pyx_PyInt_As_ImGuiMouseCursor(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiMouseCursor neg_one = (ImGuiMouseCursor) -1, const_zero = (ImGuiMouseCursor) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiMouseCursor) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiMouseCursor) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiMouseCursor) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, digit, digits[0]) case 2: if (8 * sizeof(ImGuiMouseCursor) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) >= 2 * PyLong_SHIFT) { return (ImGuiMouseCursor) (((((ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiMouseCursor) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) >= 3 * PyLong_SHIFT) { return (ImGuiMouseCursor) (((((((ImGuiMouseCursor)digits[2]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiMouseCursor) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) >= 4 * PyLong_SHIFT) { return (ImGuiMouseCursor) (((((((((ImGuiMouseCursor)digits[3]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[2]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiMouseCursor) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiMouseCursor) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiMouseCursor, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseCursor) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiMouseCursor, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiMouseCursor) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiMouseCursor) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) - 1 > 2 * PyLong_SHIFT) { return (ImGuiMouseCursor) (((ImGuiMouseCursor)-1)*(((((ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiMouseCursor) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) - 1 > 2 * PyLong_SHIFT) { return (ImGuiMouseCursor) ((((((ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiMouseCursor) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) - 1 > 3 * PyLong_SHIFT) { return (ImGuiMouseCursor) (((ImGuiMouseCursor)-1)*(((((((ImGuiMouseCursor)digits[2]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiMouseCursor) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) - 1 > 3 * PyLong_SHIFT) { return (ImGuiMouseCursor) ((((((((ImGuiMouseCursor)digits[2]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiMouseCursor) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) - 1 > 4 * PyLong_SHIFT) { return (ImGuiMouseCursor) (((ImGuiMouseCursor)-1)*(((((((((ImGuiMouseCursor)digits[3]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[2]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiMouseCursor) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiMouseCursor, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiMouseCursor) - 1 > 4 * PyLong_SHIFT) { return (ImGuiMouseCursor) ((((((((((ImGuiMouseCursor)digits[3]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[2]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[1]) << PyLong_SHIFT) | (ImGuiMouseCursor)digits[0]))); } } break; } #endif if (sizeof(ImGuiMouseCursor) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiMouseCursor, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseCursor) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiMouseCursor, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiMouseCursor val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiMouseCursor) -1; } } else { ImGuiMouseCursor val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiMouseCursor) -1; val = __Pyx_PyInt_As_ImGuiMouseCursor(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiMouseCursor"); return (ImGuiMouseCursor) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiMouseCursor"); return (ImGuiMouseCursor) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiStyleVar __Pyx_PyInt_As_ImGuiStyleVar(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiStyleVar neg_one = (ImGuiStyleVar) -1, const_zero = (ImGuiStyleVar) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiStyleVar) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiStyleVar) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiStyleVar) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, digit, digits[0]) case 2: if (8 * sizeof(ImGuiStyleVar) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) >= 2 * PyLong_SHIFT) { return (ImGuiStyleVar) (((((ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiStyleVar) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) >= 3 * PyLong_SHIFT) { return (ImGuiStyleVar) (((((((ImGuiStyleVar)digits[2]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiStyleVar) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) >= 4 * PyLong_SHIFT) { return (ImGuiStyleVar) (((((((((ImGuiStyleVar)digits[3]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[2]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiStyleVar) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiStyleVar) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiStyleVar, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiStyleVar) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiStyleVar, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiStyleVar) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiStyleVar) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) - 1 > 2 * PyLong_SHIFT) { return (ImGuiStyleVar) (((ImGuiStyleVar)-1)*(((((ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiStyleVar) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) - 1 > 2 * PyLong_SHIFT) { return (ImGuiStyleVar) ((((((ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiStyleVar) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) - 1 > 3 * PyLong_SHIFT) { return (ImGuiStyleVar) (((ImGuiStyleVar)-1)*(((((((ImGuiStyleVar)digits[2]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiStyleVar) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) - 1 > 3 * PyLong_SHIFT) { return (ImGuiStyleVar) ((((((((ImGuiStyleVar)digits[2]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiStyleVar) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) - 1 > 4 * PyLong_SHIFT) { return (ImGuiStyleVar) (((ImGuiStyleVar)-1)*(((((((((ImGuiStyleVar)digits[3]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[2]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiStyleVar) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiStyleVar, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiStyleVar) - 1 > 4 * PyLong_SHIFT) { return (ImGuiStyleVar) ((((((((((ImGuiStyleVar)digits[3]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[2]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[1]) << PyLong_SHIFT) | (ImGuiStyleVar)digits[0]))); } } break; } #endif if (sizeof(ImGuiStyleVar) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiStyleVar, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiStyleVar) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiStyleVar, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiStyleVar val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiStyleVar) -1; } } else { ImGuiStyleVar val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiStyleVar) -1; val = __Pyx_PyInt_As_ImGuiStyleVar(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiStyleVar"); return (ImGuiStyleVar) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiStyleVar"); return (ImGuiStyleVar) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiTabBarFlags __Pyx_PyInt_As_ImGuiTabBarFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTabBarFlags neg_one = (ImGuiTabBarFlags) -1, const_zero = (ImGuiTabBarFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiTabBarFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiTabBarFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTabBarFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiTabBarFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) >= 2 * PyLong_SHIFT) { return (ImGuiTabBarFlags) (((((ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiTabBarFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) >= 3 * PyLong_SHIFT) { return (ImGuiTabBarFlags) (((((((ImGuiTabBarFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiTabBarFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) >= 4 * PyLong_SHIFT) { return (ImGuiTabBarFlags) (((((((((ImGuiTabBarFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiTabBarFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiTabBarFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTabBarFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTabBarFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTabBarFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTabBarFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiTabBarFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTabBarFlags) (((ImGuiTabBarFlags)-1)*(((((ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiTabBarFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTabBarFlags) ((((((ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiTabBarFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTabBarFlags) (((ImGuiTabBarFlags)-1)*(((((((ImGuiTabBarFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiTabBarFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTabBarFlags) ((((((((ImGuiTabBarFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiTabBarFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTabBarFlags) (((ImGuiTabBarFlags)-1)*(((((((((ImGuiTabBarFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiTabBarFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabBarFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabBarFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTabBarFlags) ((((((((((ImGuiTabBarFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabBarFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiTabBarFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTabBarFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTabBarFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTabBarFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiTabBarFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiTabBarFlags) -1; } } else { ImGuiTabBarFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiTabBarFlags) -1; val = __Pyx_PyInt_As_ImGuiTabBarFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiTabBarFlags"); return (ImGuiTabBarFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiTabBarFlags"); return (ImGuiTabBarFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiTabItemFlags __Pyx_PyInt_As_ImGuiTabItemFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTabItemFlags neg_one = (ImGuiTabItemFlags) -1, const_zero = (ImGuiTabItemFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiTabItemFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiTabItemFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTabItemFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiTabItemFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) >= 2 * PyLong_SHIFT) { return (ImGuiTabItemFlags) (((((ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiTabItemFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) >= 3 * PyLong_SHIFT) { return (ImGuiTabItemFlags) (((((((ImGuiTabItemFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiTabItemFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) >= 4 * PyLong_SHIFT) { return (ImGuiTabItemFlags) (((((((((ImGuiTabItemFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiTabItemFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiTabItemFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTabItemFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTabItemFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTabItemFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiTabItemFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiTabItemFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTabItemFlags) (((ImGuiTabItemFlags)-1)*(((((ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiTabItemFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiTabItemFlags) ((((((ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiTabItemFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTabItemFlags) (((ImGuiTabItemFlags)-1)*(((((((ImGuiTabItemFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiTabItemFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiTabItemFlags) ((((((((ImGuiTabItemFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiTabItemFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTabItemFlags) (((ImGuiTabItemFlags)-1)*(((((((((ImGuiTabItemFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiTabItemFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiTabItemFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiTabItemFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiTabItemFlags) ((((((((((ImGuiTabItemFlags)digits[3]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[2]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[1]) << PyLong_SHIFT) | (ImGuiTabItemFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiTabItemFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTabItemFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTabItemFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiTabItemFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiTabItemFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiTabItemFlags) -1; } } else { ImGuiTabItemFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiTabItemFlags) -1; val = __Pyx_PyInt_As_ImGuiTabItemFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiTabItemFlags"); return (ImGuiTabItemFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiTabItemFlags"); return (ImGuiTabItemFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE ImGuiDragDropFlags __Pyx_PyInt_As_ImGuiDragDropFlags(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiDragDropFlags neg_one = (ImGuiDragDropFlags) -1, const_zero = (ImGuiDragDropFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImGuiDragDropFlags) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImGuiDragDropFlags) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiDragDropFlags) 0; case 1: __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, digit, digits[0]) case 2: if (8 * sizeof(ImGuiDragDropFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) >= 2 * PyLong_SHIFT) { return (ImGuiDragDropFlags) (((((ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0])); } } break; case 3: if (8 * sizeof(ImGuiDragDropFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) >= 3 * PyLong_SHIFT) { return (ImGuiDragDropFlags) (((((((ImGuiDragDropFlags)digits[2]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0])); } } break; case 4: if (8 * sizeof(ImGuiDragDropFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) >= 4 * PyLong_SHIFT) { return (ImGuiDragDropFlags) (((((((((ImGuiDragDropFlags)digits[3]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[2]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImGuiDragDropFlags) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImGuiDragDropFlags) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDragDropFlags, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDragDropFlags) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDragDropFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImGuiDragDropFlags) 0; case -1: __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, digit, +digits[0]) case -2: if (8 * sizeof(ImGuiDragDropFlags) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiDragDropFlags) (((ImGuiDragDropFlags)-1)*(((((ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0]))); } } break; case 2: if (8 * sizeof(ImGuiDragDropFlags) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) - 1 > 2 * PyLong_SHIFT) { return (ImGuiDragDropFlags) ((((((ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0]))); } } break; case -3: if (8 * sizeof(ImGuiDragDropFlags) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiDragDropFlags) (((ImGuiDragDropFlags)-1)*(((((((ImGuiDragDropFlags)digits[2]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0]))); } } break; case 3: if (8 * sizeof(ImGuiDragDropFlags) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) - 1 > 3 * PyLong_SHIFT) { return (ImGuiDragDropFlags) ((((((((ImGuiDragDropFlags)digits[2]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0]))); } } break; case -4: if (8 * sizeof(ImGuiDragDropFlags) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiDragDropFlags) (((ImGuiDragDropFlags)-1)*(((((((((ImGuiDragDropFlags)digits[3]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[2]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0]))); } } break; case 4: if (8 * sizeof(ImGuiDragDropFlags) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImGuiDragDropFlags, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImGuiDragDropFlags) - 1 > 4 * PyLong_SHIFT) { return (ImGuiDragDropFlags) ((((((((((ImGuiDragDropFlags)digits[3]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[2]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[1]) << PyLong_SHIFT) | (ImGuiDragDropFlags)digits[0]))); } } break; } #endif if (sizeof(ImGuiDragDropFlags) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDragDropFlags, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDragDropFlags) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImGuiDragDropFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImGuiDragDropFlags val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImGuiDragDropFlags) -1; } } else { ImGuiDragDropFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImGuiDragDropFlags) -1; val = __Pyx_PyInt_As_ImGuiDragDropFlags(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImGuiDragDropFlags"); return (ImGuiDragDropFlags) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImGuiDragDropFlags"); return (ImGuiDragDropFlags) -1; } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const long neg_one = (long) -1, const_zero = (long) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(unsigned int) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(unsigned int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(unsigned int) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(unsigned int), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const int neg_one = (int) -1, const_zero = (int) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(int) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(int) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(int), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImDrawListFlags(ImDrawListFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImDrawListFlags neg_one = (ImDrawListFlags) -1, const_zero = (ImDrawListFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImDrawListFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImDrawListFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawListFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImDrawListFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImDrawListFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImDrawListFlags), little, !is_unsigned); } } /* CIntFromPy */ static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const size_t neg_one = (size_t) -1, const_zero = (size_t) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(size_t) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(size_t, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (size_t) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (size_t) 0; case 1: __PYX_VERIFY_RETURN_INT(size_t, digit, digits[0]) case 2: if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) >= 2 * PyLong_SHIFT) { return (size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } } break; case 3: if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) >= 3 * PyLong_SHIFT) { return (size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } } break; case 4: if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) >= 4 * PyLong_SHIFT) { return (size_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (size_t) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(size_t) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (size_t) 0; case -1: __PYX_VERIFY_RETURN_INT(size_t, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(size_t, digit, +digits[0]) case -2: if (8 * sizeof(size_t) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) { return (size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]))); } } break; case 2: if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) { return (size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]))); } } break; case -3: if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) { return (size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]))); } } break; case 3: if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) { return (size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]))); } } break; case -4: if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT) { return (size_t) (((size_t)-1)*(((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]))); } } break; case 4: if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT) { return (size_t) ((((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]))); } } break; } #endif if (sizeof(size_t) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(size_t) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else size_t val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (size_t) -1; } } else { size_t val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (size_t) -1; val = __Pyx_PyInt_As_size_t(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to size_t"); return (size_t) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to size_t"); return (size_t) -1; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiCol(ImGuiCol value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiCol neg_one = (ImGuiCol) -1, const_zero = (ImGuiCol) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiCol) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiCol) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCol) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiCol) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiCol) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiCol), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiDir(ImGuiDir value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiDir neg_one = (ImGuiDir) -1, const_zero = (ImGuiDir) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiDir) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiDir) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDir) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiDir) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiDir) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiDir), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiID(ImGuiID value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiID neg_one = (ImGuiID) -1, const_zero = (ImGuiID) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiID) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiID) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiID) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiID) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiID) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiID), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImS16(ImS16 value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImS16 neg_one = (ImS16) -1, const_zero = (ImS16) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImS16) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImS16) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImS16) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImS16) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImS16) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImS16), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiSortDirection(ImGuiSortDirection value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiSortDirection neg_one = (ImGuiSortDirection) -1, const_zero = (ImGuiSortDirection) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiSortDirection) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiSortDirection) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSortDirection) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiSortDirection) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiSortDirection) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiSortDirection), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiViewportFlags(ImGuiViewportFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiViewportFlags neg_one = (ImGuiViewportFlags) -1, const_zero = (ImGuiViewportFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiViewportFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiViewportFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiViewportFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiViewportFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiViewportFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiViewportFlags), little, !is_unsigned); } } /* CIntFromPy */ static CYTHON_INLINE ImWchar32 __Pyx_PyInt_As_ImWchar32(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImWchar32 neg_one = (ImWchar32) -1, const_zero = (ImWchar32) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImWchar32) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImWchar32, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImWchar32) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImWchar32) 0; case 1: __PYX_VERIFY_RETURN_INT(ImWchar32, digit, digits[0]) case 2: if (8 * sizeof(ImWchar32) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) >= 2 * PyLong_SHIFT) { return (ImWchar32) (((((ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0])); } } break; case 3: if (8 * sizeof(ImWchar32) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) >= 3 * PyLong_SHIFT) { return (ImWchar32) (((((((ImWchar32)digits[2]) << PyLong_SHIFT) | (ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0])); } } break; case 4: if (8 * sizeof(ImWchar32) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) >= 4 * PyLong_SHIFT) { return (ImWchar32) (((((((((ImWchar32)digits[3]) << PyLong_SHIFT) | (ImWchar32)digits[2]) << PyLong_SHIFT) | (ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImWchar32) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImWchar32) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImWchar32, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImWchar32) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImWchar32, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImWchar32) 0; case -1: __PYX_VERIFY_RETURN_INT(ImWchar32, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImWchar32, digit, +digits[0]) case -2: if (8 * sizeof(ImWchar32) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) - 1 > 2 * PyLong_SHIFT) { return (ImWchar32) (((ImWchar32)-1)*(((((ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0]))); } } break; case 2: if (8 * sizeof(ImWchar32) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) - 1 > 2 * PyLong_SHIFT) { return (ImWchar32) ((((((ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0]))); } } break; case -3: if (8 * sizeof(ImWchar32) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) - 1 > 3 * PyLong_SHIFT) { return (ImWchar32) (((ImWchar32)-1)*(((((((ImWchar32)digits[2]) << PyLong_SHIFT) | (ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0]))); } } break; case 3: if (8 * sizeof(ImWchar32) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) - 1 > 3 * PyLong_SHIFT) { return (ImWchar32) ((((((((ImWchar32)digits[2]) << PyLong_SHIFT) | (ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0]))); } } break; case -4: if (8 * sizeof(ImWchar32) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) - 1 > 4 * PyLong_SHIFT) { return (ImWchar32) (((ImWchar32)-1)*(((((((((ImWchar32)digits[3]) << PyLong_SHIFT) | (ImWchar32)digits[2]) << PyLong_SHIFT) | (ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0]))); } } break; case 4: if (8 * sizeof(ImWchar32) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar32) - 1 > 4 * PyLong_SHIFT) { return (ImWchar32) ((((((((((ImWchar32)digits[3]) << PyLong_SHIFT) | (ImWchar32)digits[2]) << PyLong_SHIFT) | (ImWchar32)digits[1]) << PyLong_SHIFT) | (ImWchar32)digits[0]))); } } break; } #endif if (sizeof(ImWchar32) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImWchar32, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImWchar32) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImWchar32, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImWchar32 val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImWchar32) -1; } } else { ImWchar32 val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImWchar32) -1; val = __Pyx_PyInt_As_ImWchar32(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImWchar32"); return (ImWchar32) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImWchar32"); return (ImWchar32) -1; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiConfigFlags(ImGuiConfigFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiConfigFlags neg_one = (ImGuiConfigFlags) -1, const_zero = (ImGuiConfigFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiConfigFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiConfigFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiConfigFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiConfigFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiConfigFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiConfigFlags), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiBackendFlags(ImGuiBackendFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiBackendFlags neg_one = (ImGuiBackendFlags) -1, const_zero = (ImGuiBackendFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiBackendFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiBackendFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiBackendFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiBackendFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiBackendFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiBackendFlags), little, !is_unsigned); } } /* CIntFromPy */ static CYTHON_INLINE ImWchar16 __Pyx_PyInt_As_ImWchar16(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImWchar16 neg_one = (ImWchar16) -1, const_zero = (ImWchar16) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(ImWchar16) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(ImWchar16, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (ImWchar16) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImWchar16) 0; case 1: __PYX_VERIFY_RETURN_INT(ImWchar16, digit, digits[0]) case 2: if (8 * sizeof(ImWchar16) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) >= 2 * PyLong_SHIFT) { return (ImWchar16) (((((ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0])); } } break; case 3: if (8 * sizeof(ImWchar16) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) >= 3 * PyLong_SHIFT) { return (ImWchar16) (((((((ImWchar16)digits[2]) << PyLong_SHIFT) | (ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0])); } } break; case 4: if (8 * sizeof(ImWchar16) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) >= 4 * PyLong_SHIFT) { return (ImWchar16) (((((((((ImWchar16)digits[3]) << PyLong_SHIFT) | (ImWchar16)digits[2]) << PyLong_SHIFT) | (ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (ImWchar16) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(ImWchar16) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(ImWchar16, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImWchar16) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImWchar16, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (ImWchar16) 0; case -1: __PYX_VERIFY_RETURN_INT(ImWchar16, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(ImWchar16, digit, +digits[0]) case -2: if (8 * sizeof(ImWchar16) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) - 1 > 2 * PyLong_SHIFT) { return (ImWchar16) (((ImWchar16)-1)*(((((ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0]))); } } break; case 2: if (8 * sizeof(ImWchar16) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) - 1 > 2 * PyLong_SHIFT) { return (ImWchar16) ((((((ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0]))); } } break; case -3: if (8 * sizeof(ImWchar16) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) - 1 > 3 * PyLong_SHIFT) { return (ImWchar16) (((ImWchar16)-1)*(((((((ImWchar16)digits[2]) << PyLong_SHIFT) | (ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0]))); } } break; case 3: if (8 * sizeof(ImWchar16) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) - 1 > 3 * PyLong_SHIFT) { return (ImWchar16) ((((((((ImWchar16)digits[2]) << PyLong_SHIFT) | (ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0]))); } } break; case -4: if (8 * sizeof(ImWchar16) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) - 1 > 4 * PyLong_SHIFT) { return (ImWchar16) (((ImWchar16)-1)*(((((((((ImWchar16)digits[3]) << PyLong_SHIFT) | (ImWchar16)digits[2]) << PyLong_SHIFT) | (ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0]))); } } break; case 4: if (8 * sizeof(ImWchar16) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(ImWchar16, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(ImWchar16) - 1 > 4 * PyLong_SHIFT) { return (ImWchar16) ((((((((((ImWchar16)digits[3]) << PyLong_SHIFT) | (ImWchar16)digits[2]) << PyLong_SHIFT) | (ImWchar16)digits[1]) << PyLong_SHIFT) | (ImWchar16)digits[0]))); } } break; } #endif if (sizeof(ImWchar16) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(ImWchar16, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(ImWchar16) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(ImWchar16, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else ImWchar16 val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (ImWchar16) -1; } } else { ImWchar16 val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (ImWchar16) -1; val = __Pyx_PyInt_As_ImWchar16(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to ImWchar16"); return (ImWchar16) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to ImWchar16"); return (ImWchar16) -1; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiInputTextFlags(ImGuiInputTextFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiInputTextFlags neg_one = (ImGuiInputTextFlags) -1, const_zero = (ImGuiInputTextFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiInputTextFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiInputTextFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiInputTextFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiInputTextFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiInputTextFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiInputTextFlags), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImWchar32(ImWchar32 value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImWchar32 neg_one = (ImWchar32) -1, const_zero = (ImWchar32) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImWchar32) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImWchar32) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImWchar32) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImWchar32) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImWchar32) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImWchar32), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiKey(ImGuiKey value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiKey neg_one = (ImGuiKey) -1, const_zero = (ImGuiKey) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiKey) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiKey) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiKey) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiKey) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiKey) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiKey), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiPopupFlags(ImGuiPopupFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiPopupFlags neg_one = (ImGuiPopupFlags) -1, const_zero = (ImGuiPopupFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiPopupFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiPopupFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiPopupFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiPopupFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiPopupFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiPopupFlags), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiTableColumnFlags(ImGuiTableColumnFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiTableColumnFlags neg_one = (ImGuiTableColumnFlags) -1, const_zero = (ImGuiTableColumnFlags) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiTableColumnFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiTableColumnFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableColumnFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiTableColumnFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiTableColumnFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiTableColumnFlags), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiMouseCursor(ImGuiMouseCursor value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiMouseCursor neg_one = (ImGuiMouseCursor) -1, const_zero = (ImGuiMouseCursor) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiMouseCursor) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiMouseCursor) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseCursor) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiMouseCursor) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiMouseCursor) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiMouseCursor), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImU32(ImU32 value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImU32 neg_one = (ImU32) -1, const_zero = (ImU32) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImU32) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImU32) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImU32) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImU32) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImU32) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImU32), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_ImGuiStyleVar(ImGuiStyleVar value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const ImGuiStyleVar neg_one = (ImGuiStyleVar) -1, const_zero = (ImGuiStyleVar) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(ImGuiStyleVar) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(ImGuiStyleVar) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiStyleVar) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(ImGuiStyleVar) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(ImGuiStyleVar) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(ImGuiStyleVar), little, !is_unsigned); } } /* ImportNumPyArray */ static PyObject* __Pyx__ImportNumPyArray(void) { PyObject *numpy_module, *ndarray_object = NULL; numpy_module = __Pyx_Import(__pyx_n_s_numpy, NULL, 0); if (likely(numpy_module)) { ndarray_object = PyObject_GetAttrString(numpy_module, "ndarray"); Py_DECREF(numpy_module); } if (unlikely(!ndarray_object)) { PyErr_Clear(); } if (unlikely(!ndarray_object || !PyObject_TypeCheck(ndarray_object, &PyType_Type))) { Py_XDECREF(ndarray_object); Py_INCREF(Py_None); ndarray_object = Py_None; } return ndarray_object; } static CYTHON_INLINE PyObject* __Pyx_ImportNumPyArrayTypeIfAvailable(void) { if (unlikely(!__pyx_numpy_ndarray)) { __pyx_numpy_ndarray = __Pyx__ImportNumPyArray(); } Py_INCREF(__pyx_numpy_ndarray); return __pyx_numpy_ndarray; } /* CIntFromPy */ static CYTHON_INLINE char __Pyx_PyInt_As_char(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const char neg_one = (char) -1, const_zero = (char) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(char) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(char, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (char) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (char) 0; case 1: __PYX_VERIFY_RETURN_INT(char, digit, digits[0]) case 2: if (8 * sizeof(char) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) >= 2 * PyLong_SHIFT) { return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])); } } break; case 3: if (8 * sizeof(char) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) >= 3 * PyLong_SHIFT) { return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])); } } break; case 4: if (8 * sizeof(char) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) >= 4 * PyLong_SHIFT) { return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (char) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(char) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(char) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (char) 0; case -1: __PYX_VERIFY_RETURN_INT(char, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(char, digit, +digits[0]) case -2: if (8 * sizeof(char) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) - 1 > 2 * PyLong_SHIFT) { return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]))); } } break; case 2: if (8 * sizeof(char) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) - 1 > 2 * PyLong_SHIFT) { return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]))); } } break; case -3: if (8 * sizeof(char) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) - 1 > 3 * PyLong_SHIFT) { return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]))); } } break; case 3: if (8 * sizeof(char) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) - 1 > 3 * PyLong_SHIFT) { return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]))); } } break; case -4: if (8 * sizeof(char) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) - 1 > 4 * PyLong_SHIFT) { return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]))); } } break; case 4: if (8 * sizeof(char) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(char) - 1 > 4 * PyLong_SHIFT) { return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]))); } } break; } #endif if (sizeof(char) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(char) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else char val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (char) -1; } } else { char val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (char) -1; val = __Pyx_PyInt_As_char(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to char"); return (char) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to char"); return (char) -1; } /* CoroutineBase */ #include #include #if PY_VERSION_HEX >= 0x030b00a6 #ifndef Py_BUILD_CORE #define Py_BUILD_CORE 1 #endif #include "internal/pycore_frame.h" #endif #define __Pyx_Coroutine_Undelegate(gen) Py_CLEAR((gen)->yieldfrom) static int __Pyx_PyGen__FetchStopIterationValue(CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject **pvalue) { PyObject *et, *ev, *tb; PyObject *value = NULL; __Pyx_ErrFetch(&et, &ev, &tb); if (!et) { Py_XDECREF(tb); Py_XDECREF(ev); Py_INCREF(Py_None); *pvalue = Py_None; return 0; } if (likely(et == PyExc_StopIteration)) { if (!ev) { Py_INCREF(Py_None); value = Py_None; } #if PY_VERSION_HEX >= 0x030300A0 else if (Py_TYPE(ev) == (PyTypeObject*)PyExc_StopIteration) { value = ((PyStopIterationObject *)ev)->value; Py_INCREF(value); Py_DECREF(ev); } #endif else if (unlikely(PyTuple_Check(ev))) { if (PyTuple_GET_SIZE(ev) >= 1) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS value = PyTuple_GET_ITEM(ev, 0); Py_INCREF(value); #else value = PySequence_ITEM(ev, 0); #endif } else { Py_INCREF(Py_None); value = Py_None; } Py_DECREF(ev); } else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) { value = ev; } if (likely(value)) { Py_XDECREF(tb); Py_DECREF(et); *pvalue = value; return 0; } } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) { __Pyx_ErrRestore(et, ev, tb); return -1; } PyErr_NormalizeException(&et, &ev, &tb); if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) { __Pyx_ErrRestore(et, ev, tb); return -1; } Py_XDECREF(tb); Py_DECREF(et); #if PY_VERSION_HEX >= 0x030300A0 value = ((PyStopIterationObject *)ev)->value; Py_INCREF(value); Py_DECREF(ev); #else { PyObject* args = __Pyx_PyObject_GetAttrStr(ev, __pyx_n_s_args); Py_DECREF(ev); if (likely(args)) { value = PySequence_GetItem(args, 0); Py_DECREF(args); } if (unlikely(!value)) { __Pyx_ErrRestore(NULL, NULL, NULL); Py_INCREF(Py_None); value = Py_None; } } #endif *pvalue = value; return 0; } static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) { PyObject *t, *v, *tb; t = exc_state->exc_type; v = exc_state->exc_value; tb = exc_state->exc_traceback; exc_state->exc_type = NULL; exc_state->exc_value = NULL; exc_state->exc_traceback = NULL; Py_XDECREF(t); Py_XDECREF(v); Py_XDECREF(tb); } #define __Pyx_Coroutine_AlreadyRunningError(gen) (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL) static void __Pyx__Coroutine_AlreadyRunningError(CYTHON_UNUSED __pyx_CoroutineObject *gen) { const char *msg; if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check((PyObject*)gen)) { msg = "coroutine already executing"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) { msg = "async generator already executing"; #endif } else { msg = "generator already executing"; } PyErr_SetString(PyExc_ValueError, msg); } #define __Pyx_Coroutine_NotStartedError(gen) (__Pyx__Coroutine_NotStartedError(gen), (PyObject*)NULL) static void __Pyx__Coroutine_NotStartedError(CYTHON_UNUSED PyObject *gen) { const char *msg; if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check(gen)) { msg = "can't send non-None value to a just-started coroutine"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact(gen)) { msg = "can't send non-None value to a just-started async generator"; #endif } else { msg = "can't send non-None value to a just-started generator"; } PyErr_SetString(PyExc_TypeError, msg); } #define __Pyx_Coroutine_AlreadyTerminatedError(gen, value, closing) (__Pyx__Coroutine_AlreadyTerminatedError(gen, value, closing), (PyObject*)NULL) static void __Pyx__Coroutine_AlreadyTerminatedError(CYTHON_UNUSED PyObject *gen, PyObject *value, CYTHON_UNUSED int closing) { #ifdef __Pyx_Coroutine_USED if (!closing && __Pyx_Coroutine_Check(gen)) { PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine"); } else #endif if (value) { #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(gen)) PyErr_SetNone(__Pyx_PyExc_StopAsyncIteration); else #endif PyErr_SetNone(PyExc_StopIteration); } } static PyObject *__Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, int closing) { __Pyx_PyThreadState_declare PyThreadState *tstate; __Pyx_ExcInfoStruct *exc_state; PyObject *retval; assert(!self->is_running); if (unlikely(self->resume_label == 0)) { if (unlikely(value && value != Py_None)) { return __Pyx_Coroutine_NotStartedError((PyObject*)self); } } if (unlikely(self->resume_label == -1)) { return __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing); } #if CYTHON_FAST_THREAD_STATE __Pyx_PyThreadState_assign tstate = __pyx_tstate; #else tstate = __Pyx_PyThreadState_Current; #endif exc_state = &self->gi_exc_state; if (exc_state->exc_type) { #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON #else if (exc_state->exc_traceback) { PyTracebackObject *tb = (PyTracebackObject *) exc_state->exc_traceback; PyFrameObject *f = tb->tb_frame; assert(f->f_back == NULL); #if PY_VERSION_HEX >= 0x030B00A1 f->f_back = PyThreadState_GetFrame(tstate); #else Py_XINCREF(tstate->frame); f->f_back = tstate->frame; #endif } #endif } #if CYTHON_USE_EXC_INFO_STACK exc_state->previous_item = tstate->exc_info; tstate->exc_info = exc_state; #else if (exc_state->exc_type) { __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback); } else { __Pyx_Coroutine_ExceptionClear(exc_state); __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback); } #endif self->is_running = 1; retval = self->body((PyObject *) self, tstate, value); self->is_running = 0; #if CYTHON_USE_EXC_INFO_STACK exc_state = &self->gi_exc_state; tstate->exc_info = exc_state->previous_item; exc_state->previous_item = NULL; __Pyx_Coroutine_ResetFrameBackpointer(exc_state); #endif return retval; } static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) { PyObject *exc_tb = exc_state->exc_traceback; if (likely(exc_tb)) { #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON #else PyTracebackObject *tb = (PyTracebackObject *) exc_tb; PyFrameObject *f = tb->tb_frame; Py_CLEAR(f->f_back); #endif } } static CYTHON_INLINE PyObject *__Pyx_Coroutine_MethodReturn(CYTHON_UNUSED PyObject* gen, PyObject *retval) { if (unlikely(!retval)) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (!__Pyx_PyErr_Occurred()) { PyObject *exc = PyExc_StopIteration; #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(gen)) exc = __Pyx_PyExc_StopAsyncIteration; #endif __Pyx_PyErr_SetNone(exc); } } return retval; } #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) static CYTHON_INLINE PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) { #if PY_VERSION_HEX <= 0x030A00A1 return _PyGen_Send(gen, arg); #else PyObject *result; if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None, &result) == PYGEN_RETURN) { if (PyAsyncGen_CheckExact(gen)) { assert(result == Py_None); PyErr_SetNone(PyExc_StopAsyncIteration); } else if (result == Py_None) { PyErr_SetNone(PyExc_StopIteration); } else { _PyGen_SetStopIterationValue(result); } Py_CLEAR(result); } return result; #endif } #endif static CYTHON_INLINE PyObject *__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen) { PyObject *ret; PyObject *val = NULL; __Pyx_Coroutine_Undelegate(gen); __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val); ret = __Pyx_Coroutine_SendEx(gen, val, 0); Py_XDECREF(val); return ret; } static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) { PyObject *retval; __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; gen->is_running = 1; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { ret = __Pyx_Coroutine_Send(yf, value); } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { ret = __Pyx_Coroutine_Send(yf, value); } else #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_PyAsyncGenASend_CheckExact(yf)) { ret = __Pyx_async_gen_asend_send(yf, value); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyGen_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyCoro_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value); } else #endif { if (value == Py_None) ret = Py_TYPE(yf)->tp_iternext(yf); else ret = __Pyx_PyObject_CallMethod1(yf, __pyx_n_s_send, value); } gen->is_running = 0; if (likely(ret)) { return ret; } retval = __Pyx_Coroutine_FinishDelegation(gen); } else { retval = __Pyx_Coroutine_SendEx(gen, value, 0); } return __Pyx_Coroutine_MethodReturn(self, retval); } static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) { PyObject *retval = NULL; int err = 0; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { retval = __Pyx_Coroutine_Close(yf); if (!retval) return -1; } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { retval = __Pyx_Coroutine_Close(yf); if (!retval) return -1; } else if (__Pyx_CoroutineAwait_CheckExact(yf)) { retval = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf, NULL); if (!retval) return -1; } else #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_PyAsyncGenASend_CheckExact(yf)) { retval = __Pyx_async_gen_asend_close(yf, NULL); } else if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) { retval = __Pyx_async_gen_athrow_close(yf, NULL); } else #endif { PyObject *meth; gen->is_running = 1; meth = __Pyx_PyObject_GetAttrStr(yf, __pyx_n_s_close); if (unlikely(!meth)) { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_WriteUnraisable(yf); } PyErr_Clear(); } else { retval = PyObject_CallFunction(meth, NULL); Py_DECREF(meth); if (!retval) err = -1; } gen->is_running = 0; } Py_XDECREF(retval); return err; } static PyObject *__Pyx_Generator_Next(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; gen->is_running = 1; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { ret = __Pyx_Generator_Next(yf); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyGen_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL); } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { ret = __Pyx_Coroutine_Send(yf, Py_None); } else #endif ret = Py_TYPE(yf)->tp_iternext(yf); gen->is_running = 0; if (likely(ret)) { return ret; } return __Pyx_Coroutine_FinishDelegation(gen); } return __Pyx_Coroutine_SendEx(gen, Py_None, 0); } static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __Pyx_Coroutine_Close(self); } static PyObject *__Pyx_Coroutine_Close(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject *retval, *raised_exception; PyObject *yf = gen->yieldfrom; int err = 0; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { Py_INCREF(yf); err = __Pyx_Coroutine_CloseIter(gen, yf); __Pyx_Coroutine_Undelegate(gen); Py_DECREF(yf); } if (err == 0) PyErr_SetNone(PyExc_GeneratorExit); retval = __Pyx_Coroutine_SendEx(gen, NULL, 1); if (unlikely(retval)) { const char *msg; Py_DECREF(retval); if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check(self)) { msg = "coroutine ignored GeneratorExit"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact(self)) { #if PY_VERSION_HEX < 0x03060000 msg = "async generator ignored GeneratorExit - might require Python 3.6+ finalisation (PEP 525)"; #else msg = "async generator ignored GeneratorExit"; #endif #endif } else { msg = "generator ignored GeneratorExit"; } PyErr_SetString(PyExc_RuntimeError, msg); return NULL; } raised_exception = PyErr_Occurred(); if (likely(!raised_exception || __Pyx_PyErr_GivenExceptionMatches2(raised_exception, PyExc_GeneratorExit, PyExc_StopIteration))) { if (raised_exception) PyErr_Clear(); Py_INCREF(Py_None); return Py_None; } return NULL; } static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb, PyObject *args, int close_on_genexit) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; Py_INCREF(yf); if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) { int err = __Pyx_Coroutine_CloseIter(gen, yf); Py_DECREF(yf); __Pyx_Coroutine_Undelegate(gen); if (err < 0) return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0)); goto throw_here; } gen->is_running = 1; if (0 #ifdef __Pyx_Generator_USED || __Pyx_Generator_CheckExact(yf) #endif #ifdef __Pyx_Coroutine_USED || __Pyx_Coroutine_Check(yf) #endif ) { ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit); #ifdef __Pyx_Coroutine_USED } else if (__Pyx_CoroutineAwait_CheckExact(yf)) { ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit); #endif } else { PyObject *meth = __Pyx_PyObject_GetAttrStr(yf, __pyx_n_s_throw); if (unlikely(!meth)) { Py_DECREF(yf); if (!PyErr_ExceptionMatches(PyExc_AttributeError)) { gen->is_running = 0; return NULL; } PyErr_Clear(); __Pyx_Coroutine_Undelegate(gen); gen->is_running = 0; goto throw_here; } if (likely(args)) { ret = PyObject_CallObject(meth, args); } else { ret = PyObject_CallFunctionObjArgs(meth, typ, val, tb, NULL); } Py_DECREF(meth); } gen->is_running = 0; Py_DECREF(yf); if (!ret) { ret = __Pyx_Coroutine_FinishDelegation(gen); } return __Pyx_Coroutine_MethodReturn(self, ret); } throw_here: __Pyx_Raise(typ, val, tb, NULL); return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0)); } static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) { PyObject *typ; PyObject *val = NULL; PyObject *tb = NULL; if (!PyArg_UnpackTuple(args, (char *)"throw", 1, 3, &typ, &val, &tb)) return NULL; return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1); } static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) { Py_VISIT(exc_state->exc_type); Py_VISIT(exc_state->exc_value); Py_VISIT(exc_state->exc_traceback); return 0; } static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) { Py_VISIT(gen->closure); Py_VISIT(gen->classobj); Py_VISIT(gen->yieldfrom); return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg); } static int __Pyx_Coroutine_clear(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; Py_CLEAR(gen->closure); Py_CLEAR(gen->classobj); Py_CLEAR(gen->yieldfrom); __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state); #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer); } #endif Py_CLEAR(gen->gi_code); Py_CLEAR(gen->gi_frame); Py_CLEAR(gen->gi_name); Py_CLEAR(gen->gi_qualname); Py_CLEAR(gen->gi_modulename); return 0; } static void __Pyx_Coroutine_dealloc(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject_GC_UnTrack(gen); if (gen->gi_weakreflist != NULL) PyObject_ClearWeakRefs(self); if (gen->resume_label >= 0) { PyObject_GC_Track(self); #if PY_VERSION_HEX >= 0x030400a1 && CYTHON_USE_TP_FINALIZE if (PyObject_CallFinalizerFromDealloc(self)) #else Py_TYPE(gen)->tp_del(self); if (Py_REFCNT(self) > 0) #endif { return; } PyObject_GC_UnTrack(self); } #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { /* We have to handle this case for asynchronous generators right here, because this code has to be between UNTRACK and GC_Del. */ Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer); } #endif __Pyx_Coroutine_clear(self); PyObject_GC_Del(gen); } static void __Pyx_Coroutine_del(PyObject *self) { PyObject *error_type, *error_value, *error_traceback; __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; __Pyx_PyThreadState_declare if (gen->resume_label < 0) { return; } #if !CYTHON_USE_TP_FINALIZE assert(self->ob_refcnt == 0); __Pyx_SET_REFCNT(self, 1); #endif __Pyx_PyThreadState_assign __Pyx_ErrFetch(&error_type, &error_value, &error_traceback); #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self; PyObject *finalizer = agen->ag_finalizer; if (finalizer && !agen->ag_closed) { PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self); if (unlikely(!res)) { PyErr_WriteUnraisable(self); } else { Py_DECREF(res); } __Pyx_ErrRestore(error_type, error_value, error_traceback); return; } } #endif if (unlikely(gen->resume_label == 0 && !error_value)) { #ifdef __Pyx_Coroutine_USED #ifdef __Pyx_Generator_USED if (!__Pyx_Generator_CheckExact(self)) #endif { PyObject_GC_UnTrack(self); #if PY_MAJOR_VERSION >= 3 || defined(PyErr_WarnFormat) if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0)) PyErr_WriteUnraisable(self); #else {PyObject *msg; char *cmsg; #if CYTHON_COMPILING_IN_PYPY msg = NULL; cmsg = (char*) "coroutine was never awaited"; #else char *cname; PyObject *qualname; qualname = gen->gi_qualname; cname = PyString_AS_STRING(qualname); msg = PyString_FromFormat("coroutine '%.50s' was never awaited", cname); if (unlikely(!msg)) { PyErr_Clear(); cmsg = (char*) "coroutine was never awaited"; } else { cmsg = PyString_AS_STRING(msg); } #endif if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, cmsg, 1) < 0)) PyErr_WriteUnraisable(self); Py_XDECREF(msg);} #endif PyObject_GC_Track(self); } #endif } else { PyObject *res = __Pyx_Coroutine_Close(self); if (unlikely(!res)) { if (PyErr_Occurred()) PyErr_WriteUnraisable(self); } else { Py_DECREF(res); } } __Pyx_ErrRestore(error_type, error_value, error_traceback); #if !CYTHON_USE_TP_FINALIZE assert(Py_REFCNT(self) > 0); if (--self->ob_refcnt == 0) { return; } { Py_ssize_t refcnt = Py_REFCNT(self); _Py_NewReference(self); __Pyx_SET_REFCNT(self, refcnt); } #if CYTHON_COMPILING_IN_CPYTHON assert(PyType_IS_GC(Py_TYPE(self)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); _Py_DEC_REFTOTAL; #endif #ifdef COUNT_ALLOCS --Py_TYPE(self)->tp_frees; --Py_TYPE(self)->tp_allocs; #endif #endif } static PyObject * __Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context) { PyObject *name = self->gi_name; if (unlikely(!name)) name = Py_None; Py_INCREF(name); return name; } static int __Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = self->gi_name; Py_INCREF(value); self->gi_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context) { PyObject *name = self->gi_qualname; if (unlikely(!name)) name = Py_None; Py_INCREF(name); return name; } static int __Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = self->gi_qualname; Py_INCREF(value); self->gi_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context) { PyObject *frame = self->gi_frame; if (!frame) { if (unlikely(!self->gi_code)) { Py_RETURN_NONE; } frame = (PyObject *) PyFrame_New( PyThreadState_Get(), /*PyThreadState *tstate,*/ (PyCodeObject*) self->gi_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (unlikely(!frame)) return NULL; self->gi_frame = frame; } Py_INCREF(frame); return frame; } static __pyx_CoroutineObject *__Pyx__Coroutine_New( PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name) { __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type); if (unlikely(!gen)) return NULL; return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name); } static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit( __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name) { gen->body = body; gen->closure = closure; Py_XINCREF(closure); gen->is_running = 0; gen->resume_label = 0; gen->classobj = NULL; gen->yieldfrom = NULL; gen->gi_exc_state.exc_type = NULL; gen->gi_exc_state.exc_value = NULL; gen->gi_exc_state.exc_traceback = NULL; #if CYTHON_USE_EXC_INFO_STACK gen->gi_exc_state.previous_item = NULL; #endif gen->gi_weakreflist = NULL; Py_XINCREF(qualname); gen->gi_qualname = qualname; Py_XINCREF(name); gen->gi_name = name; Py_XINCREF(module_name); gen->gi_modulename = module_name; Py_XINCREF(code); gen->gi_code = code; gen->gi_frame = NULL; PyObject_GC_Track(gen); return gen; } /* PatchModuleWithCoroutine */ static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code) { #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) int result; PyObject *globals, *result_obj; globals = PyDict_New(); if (unlikely(!globals)) goto ignore; result = PyDict_SetItemString(globals, "_cython_coroutine_type", #ifdef __Pyx_Coroutine_USED (PyObject*)__pyx_CoroutineType); #else Py_None); #endif if (unlikely(result < 0)) goto ignore; result = PyDict_SetItemString(globals, "_cython_generator_type", #ifdef __Pyx_Generator_USED (PyObject*)__pyx_GeneratorType); #else Py_None); #endif if (unlikely(result < 0)) goto ignore; if (unlikely(PyDict_SetItemString(globals, "_module", module) < 0)) goto ignore; if (unlikely(PyDict_SetItemString(globals, "__builtins__", __pyx_b) < 0)) goto ignore; result_obj = PyRun_String(py_code, Py_file_input, globals, globals); if (unlikely(!result_obj)) goto ignore; Py_DECREF(result_obj); Py_DECREF(globals); return module; ignore: Py_XDECREF(globals); PyErr_WriteUnraisable(module); if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch module with custom type", 1) < 0)) { Py_DECREF(module); module = NULL; } #else py_code++; #endif return module; } /* PatchGeneratorABC */ #ifndef CYTHON_REGISTER_ABCS #define CYTHON_REGISTER_ABCS 1 #endif #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) static PyObject* __Pyx_patch_abc_module(PyObject *module); static PyObject* __Pyx_patch_abc_module(PyObject *module) { module = __Pyx_Coroutine_patch_module( module, "" "if _cython_generator_type is not None:\n" " try: Generator = _module.Generator\n" " except AttributeError: pass\n" " else: Generator.register(_cython_generator_type)\n" "if _cython_coroutine_type is not None:\n" " try: Coroutine = _module.Coroutine\n" " except AttributeError: pass\n" " else: Coroutine.register(_cython_coroutine_type)\n" ); return module; } #endif static int __Pyx_patch_abc(void) { #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) static int abc_patched = 0; if (CYTHON_REGISTER_ABCS && !abc_patched) { PyObject *module; module = PyImport_ImportModule((PY_MAJOR_VERSION >= 3) ? "collections.abc" : "collections"); if (!module) { PyErr_WriteUnraisable(NULL); if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, ((PY_MAJOR_VERSION >= 3) ? "Cython module failed to register with collections.abc module" : "Cython module failed to register with collections module"), 1) < 0)) { return -1; } } else { module = __Pyx_patch_abc_module(module); abc_patched = 1; if (unlikely(!module)) return -1; Py_DECREF(module); } module = PyImport_ImportModule("backports_abc"); if (module) { module = __Pyx_patch_abc_module(module); Py_XDECREF(module); } if (!module) { PyErr_Clear(); } } #else if ((0)) __Pyx_Coroutine_patch_module(NULL, NULL); #endif return 0; } /* Generator */ static PyMethodDef __pyx_Generator_methods[] = { {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O, (char*) PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")}, {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS, (char*) PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")}, {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS, (char*) PyDoc_STR("close() -> raise GeneratorExit inside generator.")}, {0, 0, 0, 0} }; static PyMemberDef __pyx_Generator_memberlist[] = { {(char *) "gi_running", T_BOOL, offsetof(__pyx_CoroutineObject, is_running), READONLY, NULL}, {(char*) "gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY, (char*) PyDoc_STR("object being iterated by 'yield from', or None")}, {(char*) "gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL}, {0, 0, 0, 0, 0} }; static PyGetSetDef __pyx_Generator_getsets[] = { {(char *) "__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name, (char*) PyDoc_STR("name of the generator"), 0}, {(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname, (char*) PyDoc_STR("qualified name of the generator"), 0}, {(char *) "gi_frame", (getter)__Pyx_Coroutine_get_frame, NULL, (char*) PyDoc_STR("Frame of the generator"), 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_GeneratorType_type = { PyVarObject_HEAD_INIT(0, 0) "generator", sizeof(__pyx_CoroutineObject), 0, (destructor) __Pyx_Coroutine_dealloc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_HAVE_FINALIZE, 0, (traverseproc) __Pyx_Coroutine_traverse, 0, 0, offsetof(__pyx_CoroutineObject, gi_weakreflist), 0, (iternextfunc) __Pyx_Generator_Next, __pyx_Generator_methods, __pyx_Generator_memberlist, __pyx_Generator_getsets, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if CYTHON_USE_TP_FINALIZE 0, #else __Pyx_Coroutine_del, #endif 0, #if CYTHON_USE_TP_FINALIZE __Pyx_Coroutine_del, #elif PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, #endif #if PY_VERSION_HEX >= 0x030C0000 0, #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, #endif }; static int __pyx_Generator_init(void) { __pyx_GeneratorType_type.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; __pyx_GeneratorType_type.tp_iter = PyObject_SelfIter; __pyx_GeneratorType = __Pyx_FetchCommonType(&__pyx_GeneratorType_type); if (unlikely(!__pyx_GeneratorType)) { return -1; } return 0; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[5]; int same=1, i, found_dot; const char* rt_from_call = Py_GetVersion(); PyOS_snprintf(ctversion, 5, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); found_dot = 0; for (i = 0; i < 4; i++) { if (!ctversion[i]) { same = (rt_from_call[i] < '0' || rt_from_call[i] > '9'); break; } if (rt_from_call[i] != ctversion[i]) { same = 0; break; } } if (!same) { char rtversion[5] = {'\0'}; char message[200]; for (i=0; i<4; ++i) { if (rt_from_call[i] == '.') { if (found_dot) break; found_dot = 1; } else if (rt_from_call[i] < '0' || rt_from_call[i] > '9') { break; } rtversion[i] = rt_from_call[i]; } PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* FunctionImport */ #ifndef __PYX_HAVE_RT_ImportFunction_0_29_37 #define __PYX_HAVE_RT_ImportFunction_0_29_37 static int __Pyx_ImportFunction_0_29_37(PyObject *module, const char *funcname, void (**f)(void), const char *sig) { PyObject *d = 0; PyObject *cobj = 0; union { void (*fp)(void); void *p; } tmp; d = PyObject_GetAttrString(module, (char *)"__pyx_capi__"); if (!d) goto bad; cobj = PyDict_GetItemString(d, funcname); if (!cobj) { PyErr_Format(PyExc_ImportError, "%.200s does not export expected C function %.200s", PyModule_GetName(module), funcname); goto bad; } #if PY_VERSION_HEX >= 0x02070000 if (!PyCapsule_IsValid(cobj, sig)) { PyErr_Format(PyExc_TypeError, "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)", PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj)); goto bad; } tmp.p = PyCapsule_GetPointer(cobj, sig); #else {const char *desc, *s1, *s2; desc = (const char *)PyCObject_GetDesc(cobj); if (!desc) goto bad; s1 = desc; s2 = sig; while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; } if (*s1 != *s2) { PyErr_Format(PyExc_TypeError, "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)", PyModule_GetName(module), funcname, sig, desc); goto bad; } tmp.p = PyCObject_AsVoidPtr(cobj);} #endif *f = tmp.fp; if (!(*f)) goto bad; Py_DECREF(d); return 0; bad: Py_XDECREF(d); return -1; } #endif /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; if (PyObject_Hash(*t->p) == -1) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT #if !CYTHON_PEP393_ENABLED static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; } #else static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (likely(PyUnicode_IS_ASCII(o))) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif } #endif #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { return __Pyx_PyUnicode_AsStringAndSize(o, length); } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) { int retval; if (unlikely(!x)) return -1; retval = __Pyx_PyObject_IsTrue(x); Py_DECREF(x); return retval; } static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) { #if PY_MAJOR_VERSION >= 3 if (PyLong_Check(result)) { if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, "__int__ returned non-int (type %.200s). " "The ability to return an instance of a strict subclass of int " "is deprecated, and may be removed in a future version of Python.", Py_TYPE(result)->tp_name)) { Py_DECREF(result); return NULL; } return result; } #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", type_name, type_name, Py_TYPE(result)->tp_name); Py_DECREF(result); return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x) || PyLong_Check(x))) #else if (likely(PyLong_Check(x))) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = m->nb_int(x); } else if (m && m->nb_long) { name = "long"; res = m->nb_long(x); } #else if (likely(m && m->nb_int)) { name = "int"; res = m->nb_int(x); } #endif #else if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { res = PyNumber_Int(x); } #endif if (likely(res)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) { #else if (unlikely(!PyLong_CheckExact(res))) { #endif return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(b); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) { if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) { return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o); #if PY_MAJOR_VERSION < 3 } else if (likely(PyInt_CheckExact(o))) { return PyInt_AS_LONG(o); #endif } else { Py_ssize_t ival; PyObject *x; x = PyNumber_Index(o); if (!x) return -1; ival = PyInt_AsLong(x); Py_DECREF(x); return ival; } } static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */