def e(self, e): _ret_c = lib.cw__enum_usage_interface_e(self._cpp_impl, CPyEnum.fromPy(e)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyEnum.toPy(Color, _ret_c) assert _ret.value != -1 return _ret
def get_enum_usage_record_f1(cself): try: _ret = CPyEnum.fromPy(CPyRecord.toPy(None, cself).e) assert _ret != -1 return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __python_next(cself): try: _ret = CPyEnum.fromPy(next(CPyObjectProxy.toPyIter(cself))) assert _ret != -1 return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __python_next(cself): try: _ret= CPyEnum.fromPy(next(CPyObjectProxy.toPyIter(cself))) assert _ret.value != -1 return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_elem(cself, index): try: _ret = CPyEnum.fromPy(CPyObject.toPy(None, cself)[index]) assert _ret != -1 return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_all_datatypes_f15(cself): try: _ret = CPyEnum.fromPy(CPyRecord.toPy(None, cself).enum_data) assert _ret != -1 return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_value(cself, key): pyKey = CPyEnum.toPy(Color, key) assert pyKey is not None try: _ret = CPyEnum.fromPy(CPyObjectProxy.toPyObj(None, cself)[pyKey]) assert _ret != -1 return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def check_enum(c): lib.cw__test_helpers_check_enum(CPyEnum.fromPy(c)) CPyException.toPyCheckAndRaise(ffi.NULL)
def sort(self, order, items): lib.cw__sort_items_sort(self._cpp_impl, CPyEnum.fromPy(order), CPyRecord.fromPy(ItemList.c_data_set, items)) CPyException.toPyCheckAndRaise(ffi.NULL)
def set_enum(self, some_color): lib.cw__foo_enum_interface_set_enum(self._cpp_impl, CPyEnum.fromPy(some_color)) CPyException.toPyCheckAndRaise(ffi.NULL)