meltygui-imgui 2.0.0.post3__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. meltygui_imgui/__init__.py +879 -0
  2. meltygui_imgui/_compat.py +16 -0
  3. meltygui_imgui/ansifeed.pxd +20 -0
  4. meltygui_imgui/cimgui.pxd +2242 -0
  5. meltygui_imgui/common.pyx +75 -0
  6. meltygui_imgui/core.cp313-win_amd64.pyd +0 -0
  7. meltygui_imgui/core.cpp +189914 -0
  8. meltygui_imgui/core.h +51 -0
  9. meltygui_imgui/core.pxd +12 -0
  10. meltygui_imgui/core.pyx +12812 -0
  11. meltygui_imgui/enums.pxd +561 -0
  12. meltygui_imgui/enums_internal.pxd +200 -0
  13. meltygui_imgui/extra.py +36 -0
  14. meltygui_imgui/integrations/__init__.py +13 -0
  15. meltygui_imgui/integrations/base.py +33 -0
  16. meltygui_imgui/integrations/cocos2d.py +27 -0
  17. meltygui_imgui/integrations/glfw.py +133 -0
  18. meltygui_imgui/integrations/glumpy.py +369 -0
  19. meltygui_imgui/integrations/opengl.py +422 -0
  20. meltygui_imgui/integrations/pygame.py +152 -0
  21. meltygui_imgui/integrations/pyglet.py +245 -0
  22. meltygui_imgui/integrations/sdl2.py +136 -0
  23. meltygui_imgui/internal.cp313-win_amd64.pyd +0 -0
  24. meltygui_imgui/internal.cpp +13336 -0
  25. meltygui_imgui/internal.h +51 -0
  26. meltygui_imgui/internal.pxd +686 -0
  27. meltygui_imgui/internal.pyx +207 -0
  28. meltygui_imgui-2.0.0.post3.dist-info/DELVEWHEEL +2 -0
  29. meltygui_imgui-2.0.0.post3.dist-info/METADATA +146 -0
  30. meltygui_imgui-2.0.0.post3.dist-info/RECORD +38 -0
  31. meltygui_imgui-2.0.0.post3.dist-info/WHEEL +5 -0
  32. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSE +28 -0
  33. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSES/imgui-MIT.txt +21 -0
  34. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSES/imstb_rectpack.h.license.txt +37 -0
  35. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSES/imstb_textedit.h.license.txt +37 -0
  36. meltygui_imgui-2.0.0.post3.dist-info/licenses/LICENSES/imstb_truetype.h.license.txt +37 -0
  37. meltygui_imgui-2.0.0.post3.dist-info/top_level.txt +1 -0
  38. meltygui_imgui.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll +0 -0
@@ -0,0 +1,75 @@
1
+ # distutils: language = c++
2
+ # 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
3
+ # distutils: include_dirs = imgui-cpp ansifeed-cpp
4
+ # cython: embedsignature=True
5
+ # cython: linetrace=True
6
+
7
+ from collections import namedtuple
8
+
9
+ Vec2 = namedtuple("Vec2", ['x', 'y'])
10
+ Vec4 = namedtuple("Vec4", ['x', 'y', 'z', 'w'])
11
+
12
+
13
+ cdef bytes _bytes(str text):
14
+ return <bytes>(text if PY_MAJOR_VERSION < 3 else text.encode('utf-8'))
15
+
16
+
17
+ cdef str _from_bytes(bytes text):
18
+ return <str>(text if PY_MAJOR_VERSION < 3 else text.decode('utf-8', errors='ignore'))
19
+
20
+
21
+ cdef _cast_ImVec2_tuple(cimgui.ImVec2 vec): # noqa
22
+ return Vec2(vec.x, vec.y)
23
+
24
+
25
+ cdef cimgui.ImVec2 _cast_tuple_ImVec2(pair) except *: # noqa
26
+ cdef cimgui.ImVec2 vec
27
+
28
+ if len(pair) != 2:
29
+ raise ValueError("pair param must be length of 2")
30
+
31
+ vec.x, vec.y = pair
32
+
33
+ return vec
34
+
35
+
36
+ cdef cimgui.ImVec2 _cast_args_ImVec2(float x, float y) except *: # noqa
37
+ cdef cimgui.ImVec2 vec
38
+
39
+ vec.x, vec.y = x, y
40
+
41
+ return vec
42
+
43
+
44
+ cdef cimgui.ImVec4 _cast_tuple_ImVec4(quadruple): # noqa
45
+ cdef cimgui.ImVec4 vec
46
+
47
+ if len(quadruple) != 4:
48
+ raise ValueError("quadruple param must be length of 4")
49
+
50
+ vec.x, vec.y, vec.z, vec.w = quadruple
51
+
52
+ return vec
53
+
54
+
55
+ cdef cimgui.ImVec4 _cast_args_ImVec4(float x, float y, float z, float w): # noqa
56
+ cdef cimgui.ImVec4 vec
57
+
58
+ vec.x, vec.y, vec.z, vec.w = x, y, z, w
59
+
60
+ return vec
61
+
62
+
63
+ cdef _cast_ImVec4_tuple(cimgui.ImVec4 vec): # noqa
64
+ return Vec4(vec.x, vec.y, vec.z, vec.w)
65
+
66
+
67
+
68
+ # === Python/C++ cross API for error handling ===
69
+ from cpython.exc cimport PyErr_NewException
70
+
71
+ cdef public _ImGuiError "ImGuiError" = PyErr_NewException(
72
+ "meltygui_imgui.core.ImGuiError", Exception, {}
73
+ )
74
+
75
+ ImGuiError = _ImGuiError # make visible to Python
Binary file