PyImGui 0.1.1__tar.gz → 0.1.2__tar.gz

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 (51) hide show
  1. {pyimgui-0.1.1 → pyimgui-0.1.2}/.github/workflows/wheels.yml +1 -1
  2. pyimgui-0.1.2/.gitignore +2 -0
  3. {pyimgui-0.1.1 → pyimgui-0.1.2}/CMakeLists.txt +6 -5
  4. {pyimgui-0.1.1 → pyimgui-0.1.2}/PKG-INFO +10 -7
  5. {pyimgui-0.1.1 → pyimgui-0.1.2}/README.md +9 -6
  6. {pyimgui-0.1.1 → pyimgui-0.1.2}/pyproject.toml +1 -1
  7. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/implot_bindings.cpp +13 -2
  8. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/implot.pyi +48 -23
  9. pyimgui-0.1.1/.gitignore +0 -1
  10. {pyimgui-0.1.1 → pyimgui-0.1.2}/LICENSE +0 -0
  11. {pyimgui-0.1.1 → pyimgui-0.1.2}/THIRD_PARTY_LICENSES.txt +0 -0
  12. {pyimgui-0.1.1 → pyimgui-0.1.2}/generate.py +0 -0
  13. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imgui_bindings.cpp +0 -0
  14. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imgui_config.h +0 -0
  15. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imgui_impl_dx12_bindings.cpp +0 -0
  16. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imgui_impl_metal_bindings.mm +0 -0
  17. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imgui_impl_opengl3_bindings.cpp +0 -0
  18. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imgui_impl_sdl3_bindings.cpp +0 -0
  19. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imgui_impl_sdlgpu3_bindings.cpp +0 -0
  20. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imgui_impl_vulkan_bindings.cpp +0 -0
  21. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/imguizmo_bindings.cpp +0 -0
  22. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/module.cpp +0 -0
  23. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/native_casters.h +0 -0
  24. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/opaque_handle.h +0 -0
  25. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/sdl3_casters.h +0 -0
  26. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/bindings/style_colors.h +0 -0
  27. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/__init__.py +0 -0
  28. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/__init__.pyi +0 -0
  29. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/app.py +0 -0
  30. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/app_dx12.py +0 -0
  31. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/app_metal4.py +0 -0
  32. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/app_opengl3.py +0 -0
  33. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/app_vulkan.py +0 -0
  34. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/imguizmo.py +0 -0
  35. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/imguizmo.pyi +0 -0
  36. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_dx12.py +0 -0
  37. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_dx12.pyi +0 -0
  38. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_metal.py +0 -0
  39. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_metal.pyi +0 -0
  40. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_metal4.py +0 -0
  41. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_metal4.pyi +0 -0
  42. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_opengl3.py +0 -0
  43. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_opengl3.pyi +0 -0
  44. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_sdl3.py +0 -0
  45. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_sdl3.pyi +0 -0
  46. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_sdlgpu3.py +0 -0
  47. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_sdlgpu3.pyi +0 -0
  48. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_vulkan.py +0 -0
  49. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/impl_vulkan.pyi +0 -0
  50. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/implot.py +0 -0
  51. {pyimgui-0.1.1 → pyimgui-0.1.2}/src/imgui/py.typed +0 -0
@@ -34,7 +34,7 @@ jobs:
34
34
  steps:
35
35
  - uses: actions/checkout@v7
36
36
  # The options are in pyproject.toml ([tool.cibuildwheel])
37
- - uses: pypa/cibuildwheel@v4.2.1
37
+ - uses: pypa/cibuildwheel@v4.3.5
38
38
  env:
39
39
  # The tests import pysdl3, which downloads SDL3 through GitHub's API
40
40
  SDL_GITHUB_TOKEN: ${{ github.token }}
@@ -0,0 +1,2 @@
1
+ build/
2
+ imgui.ini
@@ -8,15 +8,16 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
8
8
  # reads the tag from this line, so the two cannot drift apart: bump it, rerun
9
9
  # generate.py, rebuild, and update its notices in THIRD_PARTY_LICENSES.txt.
10
10
  set(IMGUI_GIT_TAG v1.93.0-docking)
11
- # The same for ImPlot and ImGuizmo, as commits: their last releases predate their
11
+ # The same for ImPlot, and for ImGuizmo as a commit: its last release predates its
12
12
  # fixes for the ImDrawList changes of Dear ImGui 1.92.8
13
- set(IMPLOT_GIT_TAG 851cdbdd60d1dfb64c23e987969694de0f547a6b)
13
+ set(IMPLOT_GIT_TAG v1.1)
14
14
  set(IMGUIZMO_GIT_TAG 105e4fde45e4e74aae8973d98750820ef7aca7e2)
15
15
 
16
16
  # The SDL3 release whose headers the backends are compiled against. SDL3 itself is
17
- # not linked (see _imgui below), so the SDL3 loaded at runtime has to be this
18
- # release or a newer one.
19
- set(SDL3_VERSION 3.4.16)
17
+ # not linked (see _imgui below), so the SDL3 loaded at runtime has to have the
18
+ # functions that these headers declare: any release of the same minor version or a
19
+ # newer one, as SDL's patch releases add no functions.
20
+ set(SDL3_VERSION 3.4.20)
20
21
 
21
22
  # The Vulkan headers that the Vulkan backend is compiled against. Vulkan itself is
22
23
  # not linked either: the backend looks its functions up at runtime (see below).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyImGui
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python bindings for Dear ImGui, its SDL3, SDL_GPU, OpenGL 3, Vulkan, Direct3D 12 and Metal backends, ImPlot and ImGuizmo
5
5
  Keywords: imgui,implot,imguizmo,sdl3,sdl_gpu,opengl,vulkan,direct3d12,metal,gui,plot,gizmo,bindings
6
6
  Author-Email: Lukas Lipp <lukas.lipp@cg.tuwien.ac.at>
@@ -205,7 +205,8 @@ The module follows these conventions:
205
205
  - The colors of a style are indexed by its `Col_` enum: `style.colors[imgui.Col_.text] = (1, 1, 1, 1)`.
206
206
  The same goes for `implot.Style` and `imguizmo.Style`.
207
207
  - The backends are the submodules `imgui.impl_sdl3`, `imgui.impl_sdlgpu3`, `imgui.impl_opengl3`,
208
- `imgui.impl_vulkan` and, on Windows, `imgui.impl_dx12`:
208
+ `imgui.impl_vulkan`, on Windows `imgui.impl_dx12`, and on macOS `imgui.impl_metal` and
209
+ `imgui.impl_metal4`:
209
210
  `ImGui_ImplSDL3_ProcessEvent()` is `imgui.impl_sdl3.process_event()`. ImPlot and ImGuizmo are
210
211
  `imgui.implot` and `imgui.imguizmo` (see below).
211
212
 
@@ -223,8 +224,10 @@ missing `end()`. To recover from those errors in the running app instead, set
223
224
  The extension does not link SDL3 (except on Windows). Its SDL functions are looked up when
224
225
  `import imgui` loads it, in the SDL3 library that pysdl3 ships, which `import imgui` imports and
225
226
  exposes first. The backends and pysdl3 thus share one SDL3, so the windows and events that pysdl3
226
- creates are the backends' own. That library has to be SDL 3.4.16 or newer, the release whose headers
227
- the extension is compiled against (`SDL3_VERSION` in [CMakeLists.txt](CMakeLists.txt)).
227
+ creates are the backends' own. That library has to be an SDL 3.4 release or newer. The extension is
228
+ compiled against the headers of 3.4.20 (`SDL3_VERSION` in [CMakeLists.txt](CMakeLists.txt)), but
229
+ SDL's patch releases add no functions, so an older 3.4 release works too, such as the 3.4.16 of
230
+ pysdl3 0.9.12b1.
228
231
 
229
232
  Not bound: C callbacks (`InputText` and size-constraint callbacks, `ImDrawList.add_callback`,
230
233
  ImPlot's getters, formatters and transforms), drag-and-drop payloads, the memory allocators, the
@@ -280,9 +283,9 @@ app.run(gui, window_size=(1280, 720))
280
283
 
281
284
  ## Layout and regenerating the bindings
282
285
 
283
- - `CMakeLists.txt` pins the Dear ImGui release (`IMGUI_GIT_TAG`), the ImPlot and ImGuizmo commits
284
- (`IMPLOT_GIT_TAG`, `IMGUIZMO_GIT_TAG`) and the Vulkan headers (`VULKAN_HEADERS_GIT_TAG`), and
285
- builds the single extension `imgui._imgui`, which holds them, the backends and all the bindings. They have to live in one extension because Dear
286
+ - `CMakeLists.txt` pins the Dear ImGui and ImPlot releases (`IMGUI_GIT_TAG`, `IMPLOT_GIT_TAG`), the
287
+ ImGuizmo commit (`IMGUIZMO_GIT_TAG`) and the SDL3 and Vulkan headers that the backends are
288
+ compiled against (`SDL3_VERSION`, `VULKAN_HEADERS_GIT_TAG`). It builds the single extension `imgui._imgui`, which holds them, the backends and all the bindings. They have to live in one extension because Dear
286
289
  ImGui keeps its state in globals.
287
290
  - `.github/workflows/wheels.yml` builds the wheels with cibuildwheel (options in `pyproject.toml`),
288
291
  and uploads them to PyPI when a version tag is pushed. Bump `version` in `pyproject.toml`
@@ -185,7 +185,8 @@ The module follows these conventions:
185
185
  - The colors of a style are indexed by its `Col_` enum: `style.colors[imgui.Col_.text] = (1, 1, 1, 1)`.
186
186
  The same goes for `implot.Style` and `imguizmo.Style`.
187
187
  - The backends are the submodules `imgui.impl_sdl3`, `imgui.impl_sdlgpu3`, `imgui.impl_opengl3`,
188
- `imgui.impl_vulkan` and, on Windows, `imgui.impl_dx12`:
188
+ `imgui.impl_vulkan`, on Windows `imgui.impl_dx12`, and on macOS `imgui.impl_metal` and
189
+ `imgui.impl_metal4`:
189
190
  `ImGui_ImplSDL3_ProcessEvent()` is `imgui.impl_sdl3.process_event()`. ImPlot and ImGuizmo are
190
191
  `imgui.implot` and `imgui.imguizmo` (see below).
191
192
 
@@ -203,8 +204,10 @@ missing `end()`. To recover from those errors in the running app instead, set
203
204
  The extension does not link SDL3 (except on Windows). Its SDL functions are looked up when
204
205
  `import imgui` loads it, in the SDL3 library that pysdl3 ships, which `import imgui` imports and
205
206
  exposes first. The backends and pysdl3 thus share one SDL3, so the windows and events that pysdl3
206
- creates are the backends' own. That library has to be SDL 3.4.16 or newer, the release whose headers
207
- the extension is compiled against (`SDL3_VERSION` in [CMakeLists.txt](CMakeLists.txt)).
207
+ creates are the backends' own. That library has to be an SDL 3.4 release or newer. The extension is
208
+ compiled against the headers of 3.4.20 (`SDL3_VERSION` in [CMakeLists.txt](CMakeLists.txt)), but
209
+ SDL's patch releases add no functions, so an older 3.4 release works too, such as the 3.4.16 of
210
+ pysdl3 0.9.12b1.
208
211
 
209
212
  Not bound: C callbacks (`InputText` and size-constraint callbacks, `ImDrawList.add_callback`,
210
213
  ImPlot's getters, formatters and transforms), drag-and-drop payloads, the memory allocators, the
@@ -260,9 +263,9 @@ app.run(gui, window_size=(1280, 720))
260
263
 
261
264
  ## Layout and regenerating the bindings
262
265
 
263
- - `CMakeLists.txt` pins the Dear ImGui release (`IMGUI_GIT_TAG`), the ImPlot and ImGuizmo commits
264
- (`IMPLOT_GIT_TAG`, `IMGUIZMO_GIT_TAG`) and the Vulkan headers (`VULKAN_HEADERS_GIT_TAG`), and
265
- builds the single extension `imgui._imgui`, which holds them, the backends and all the bindings. They have to live in one extension because Dear
266
+ - `CMakeLists.txt` pins the Dear ImGui and ImPlot releases (`IMGUI_GIT_TAG`, `IMPLOT_GIT_TAG`), the
267
+ ImGuizmo commit (`IMGUIZMO_GIT_TAG`) and the SDL3 and Vulkan headers that the backends are
268
+ compiled against (`SDL3_VERSION`, `VULKAN_HEADERS_GIT_TAG`). It builds the single extension `imgui._imgui`, which holds them, the backends and all the bindings. They have to live in one extension because Dear
266
269
  ImGui keeps its state in globals.
267
270
  - `.github/workflows/wheels.yml` builds the wheels with cibuildwheel (options in `pyproject.toml`),
268
271
  and uploads them to PyPI when a version tag is pushed. Bump `version` in `pyproject.toml`
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
4
4
 
5
5
  [project]
6
6
  name = "PyImGui"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Python bindings for Dear ImGui, its SDL3, SDL_GPU, OpenGL 3, Vulkan, Direct3D 12 and Metal backends, ImPlot and ImGuizmo"
9
9
  readme = "README.md"
10
10
  # The bindings are MIT. The wheels also contain Dear ImGui, ImPlot, ImGuizmo (MIT)
@@ -175,6 +175,7 @@ void py_init_module_implot(nb::module_& m)
175
175
  .value("pan_stretch", ImPlotAxisFlags_PanStretch, "panning in a locked or constrained state will cause the axis to stretch if possible")
176
176
  .value("lock_min", ImPlotAxisFlags_LockMin, "the axis minimum value will be locked when panning/zooming")
177
177
  .value("lock_max", ImPlotAxisFlags_LockMax, "the axis maximum value will be locked when panning/zooming")
178
+ .value("tick_labels_inside", ImPlotAxisFlags_TickLabelsInside, "axis tick labels will be drawn inside the plot area (applies only to the innermost axes)")
178
179
  .value("lock", ImPlotAxisFlags_Lock, "")
179
180
  .value("no_decorations", ImPlotAxisFlags_NoDecorations, "")
180
181
  .value("aux_default", ImPlotAxisFlags_AuxDefault, "");
@@ -223,7 +224,9 @@ void py_init_module_implot(nb::module_& m)
223
224
  .value("no_cursors", ImPlotDragToolFlags_NoCursors, "drag tools won't change cursor icons when hovered or held")
224
225
  .value("no_fit", ImPlotDragToolFlags_NoFit, "the drag tool won't be considered for plot fits")
225
226
  .value("no_inputs", ImPlotDragToolFlags_NoInputs, "lock the tool from user inputs")
226
- .value("delayed", ImPlotDragToolFlags_Delayed, "tool rendering will be delayed one frame; useful when applying position-constraints");
227
+ .value("delayed", ImPlotDragToolFlags_Delayed, "tool rendering will be delayed one frame; useful when applying position-constraints")
228
+ .value("no_move", ImPlotDragToolFlags_NoMove, "the tool can't be moved; it still catches and reports clicks and hovers, but shows no move cursor")
229
+ .value("no_resize", ImPlotDragToolFlags_NoResize, "DragRect's corners and edges can't resize it; they still catch and report clicks and hovers, but show no resize cursor");
227
230
 
228
231
 
229
232
  auto pyEnumColormapScaleFlags_ =
@@ -480,7 +483,7 @@ void py_init_module_implot(nb::module_& m)
480
483
 
481
484
  auto pyClassImPlotSpec =
482
485
  nb::class_<ImPlotSpec>
483
- (m, "Spec", " Plot item styling specification. Provide these to PlotX functions to override styling, specify\n offsetting or stride, or set optional flags. This struct can be used in the following ways:\n\n 1. By declaring and defining a struct instance:\n\n ImPlotSpec spec;\n spec.LineColor = ImVec4(1,0,0,1);\n spec.LineWeight = 2.0;\n spec.Marker = ImPlotMarker_Circle;\n spec.Flags = ImPlotItemFlags_NoLegend | ImPlotLineFlags_Segments;\n ImPlot::PlotLine(\"MyLine\", xs, ys, 100, spec);\n\n 2. Inline using (ImPlotProp,value) pairs (order does NOT matter):\n\n ImPlot::PlotLine(\"MyLine\", xs, ys, 100, {\n ImPlotProp_LineColor, ImVec4(1,0,0,1),\n ImPlotProp_LineWeight, 2.0,\n ImPlotProp_Marker, ImPlotMarker_Circle,\n ImPlotProp_Flags, ImPlotItemFlags_NoLegend | ImPlotLineFlags_Segments\n });")
486
+ (m, "Spec", " Plot item styling specification. Provide these to PlotX functions to override styling, specify\n offsetting or stride, or set optional flags. This struct can be used in the following ways:\n\n 1. By declaring and defining a struct instance:\n\n ImPlotSpec spec;\n spec.LineColor = ImVec4(1,0,0,1);\n spec.LineWeight = 2.0;\n spec.Marker = ImPlotMarker_Circle;\n spec.Flags = (ImPlotItemFlags)ImPlotItemFlags_NoLegend | ImPlotLineFlags_Segments;\n ImPlot::PlotLine(\"MyLine\", xs, ys, 100, spec);\n\n 2. Inline using (ImPlotProp,value) pairs (order does NOT matter):\n\n ImPlot::PlotLine(\"MyLine\", xs, ys, 100, {\n ImPlotProp_LineColor, ImVec4(1,0,0,1),\n ImPlotProp_LineWeight, 2.0,\n ImPlotProp_Marker, ImPlotMarker_Circle,\n ImPlotProp_Flags, (ImPlotItemFlags)ImPlotItemFlags_NoLegend | ImPlotLineFlags_Segments\n });")
484
487
  .def("__init__", [](ImPlotSpec * self, const std::optional<const ImVec4> & LineColor = std::nullopt, float LineWeight = 1.0f, const std::optional<const ImVec4> & FillColor = std::nullopt, float FillAlpha = 1.0f, const std::optional<const ImPlotMarker> & Marker = std::nullopt, float MarkerSize = 4, const std::optional<const ImVec4> & MarkerLineColor = std::nullopt, const std::optional<const ImVec4> & MarkerFillColor = std::nullopt, float Size = 4, int Offset = 0, int Stride = IMPLOT_AUTO, const std::optional<const ImPlotItemFlags> & Flags = std::nullopt)
485
488
  {
486
489
  new (self) ImPlotSpec(); // placement new
@@ -3426,6 +3429,11 @@ void py_init_module_implot(nb::module_& m)
3426
3429
  nb::arg("hidden") = true, nb::arg("cond").none() = nb::none(),
3427
3430
  " Hides or shows the next plot item (i.e. as if it were toggled from the legend).\n Use ImPlotCond_Always if you need to forcefully set this every frame.\n\n\nPython bindings defaults:\n If cond is None, then its default value will be: Cond_Once");
3428
3431
 
3432
+ m.def("is_item_hidden",
3433
+ ImPlot::IsItemHidden,
3434
+ nb::arg("label_id"),
3435
+ " Returns True if the plot item #label_id in the current plot is hidden (i.e. toggled off from the legend or by HideNextItem).\n Can be called before the item is submitted (e.g. to skip expensive work for a hidden item), in which case it reports\n the state from the previous frame. Returns False for items that have never been submitted. See also IsLastItemHidden.");
3436
+
3429
3437
  m.def("begin_aligned_plots",
3430
3438
  ImPlot::BeginAlignedPlots,
3431
3439
  nb::arg("group_id"), nb::arg("vertical") = true,
@@ -3538,6 +3546,9 @@ void py_init_module_implot(nb::module_& m)
3538
3546
  m.def("get_last_item_color",
3539
3547
  ImPlot::GetLastItemColor, "Gets the last item primary color (i.e. its legend icon color)");
3540
3548
 
3549
+ m.def("is_last_item_hidden",
3550
+ ImPlot::IsLastItemHidden, "Returns True if the last plot item is hidden (i.e. toggled off from the legend or by HideNextItem).");
3551
+
3541
3552
  m.def("get_style_color_name",
3542
3553
  ImPlot::GetStyleColorName,
3543
3554
  nb::arg("idx"),
@@ -79,7 +79,7 @@ DummyFlags = int
79
79
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
80
80
  # SOFTWARE.
81
81
 
82
- # ImPlot v1.1 WIP
82
+ # ImPlot v1.1
83
83
 
84
84
  # Table of Contents:
85
85
  #
@@ -233,59 +233,63 @@ class Flags_(enum.IntFlag):
233
233
  class AxisFlags_(enum.IntFlag):
234
234
  """Options for plot axes (see SetupAxis)."""
235
235
 
236
- # ImPlotAxisFlags_None = 0, /* original C++ signature */
236
+ # ImPlotAxisFlags_None = 0, /* original C++ signature */
237
237
  none = enum.auto() # (= 0) # default
238
- # ImPlotAxisFlags_NoLabel = 1 << 0, /* original C++ signature */
238
+ # ImPlotAxisFlags_NoLabel = 1 << 0, /* original C++ signature */
239
239
  no_label = (
240
240
  enum.auto()
241
241
  ) # (= 1 << 0) # the axis label will not be displayed (axis labels are also hidden if the supplied string name is None)
242
- # ImPlotAxisFlags_NoGridLines = 1 << 1, /* original C++ signature */
242
+ # ImPlotAxisFlags_NoGridLines = 1 << 1, /* original C++ signature */
243
243
  no_grid_lines = enum.auto() # (= 1 << 1) # no grid lines will be displayed
244
- # ImPlotAxisFlags_NoTickMarks = 1 << 2, /* original C++ signature */
244
+ # ImPlotAxisFlags_NoTickMarks = 1 << 2, /* original C++ signature */
245
245
  no_tick_marks = enum.auto() # (= 1 << 2) # no tick marks will be displayed
246
- # ImPlotAxisFlags_NoTickLabels = 1 << 3, /* original C++ signature */
246
+ # ImPlotAxisFlags_NoTickLabels = 1 << 3, /* original C++ signature */
247
247
  no_tick_labels = enum.auto() # (= 1 << 3) # no text labels will be displayed
248
- # ImPlotAxisFlags_NoInitialFit = 1 << 4, /* original C++ signature */
248
+ # ImPlotAxisFlags_NoInitialFit = 1 << 4, /* original C++ signature */
249
249
  no_initial_fit = (
250
250
  enum.auto()
251
251
  ) # (= 1 << 4) # axis will not be initially fit to data extents on the first rendered frame
252
- # ImPlotAxisFlags_NoMenus = 1 << 5, /* original C++ signature */
252
+ # ImPlotAxisFlags_NoMenus = 1 << 5, /* original C++ signature */
253
253
  no_menus = enum.auto() # (= 1 << 5) # the user will not be able to open context menus with right-click
254
- # ImPlotAxisFlags_NoSideSwitch = 1 << 6, /* original C++ signature */
254
+ # ImPlotAxisFlags_NoSideSwitch = 1 << 6, /* original C++ signature */
255
255
  no_side_switch = enum.auto() # (= 1 << 6) # the user will not be able to switch the axis side by dragging it
256
- # ImPlotAxisFlags_NoHighlight = 1 << 7, /* original C++ signature */
256
+ # ImPlotAxisFlags_NoHighlight = 1 << 7, /* original C++ signature */
257
257
  no_highlight = enum.auto() # (= 1 << 7) # the axis will not have its background highlighted when hovered or held
258
- # ImPlotAxisFlags_Opposite = 1 << 8, /* original C++ signature */
258
+ # ImPlotAxisFlags_Opposite = 1 << 8, /* original C++ signature */
259
259
  opposite = (
260
260
  enum.auto()
261
261
  ) # (= 1 << 8) # axis ticks and labels will be rendered on the conventionally opposite side (i.e, right or top)
262
- # ImPlotAxisFlags_Foreground = 1 << 9, /* original C++ signature */
262
+ # ImPlotAxisFlags_Foreground = 1 << 9, /* original C++ signature */
263
263
  foreground = (
264
264
  enum.auto()
265
265
  ) # (= 1 << 9) # grid lines will be displayed in the foreground (i.e. on top of data) instead of the background
266
- # ImPlotAxisFlags_Invert = 1 << 10, /* original C++ signature */
266
+ # ImPlotAxisFlags_Invert = 1 << 10, /* original C++ signature */
267
267
  invert = enum.auto() # (= 1 << 10) # the axis will be inverted
268
- # ImPlotAxisFlags_AutoFit = 1 << 11, /* original C++ signature */
268
+ # ImPlotAxisFlags_AutoFit = 1 << 11, /* original C++ signature */
269
269
  auto_fit = enum.auto() # (= 1 << 11) # axis will be auto-fitting to data extents
270
- # ImPlotAxisFlags_RangeFit = 1 << 12, /* original C++ signature */
270
+ # ImPlotAxisFlags_RangeFit = 1 << 12, /* original C++ signature */
271
271
  range_fit = (
272
272
  enum.auto()
273
273
  ) # (= 1 << 12) # axis will only fit points if the point is in the visible range of the **orthogonal** axis
274
- # ImPlotAxisFlags_PanStretch = 1 << 13, /* original C++ signature */
274
+ # ImPlotAxisFlags_PanStretch = 1 << 13, /* original C++ signature */
275
275
  pan_stretch = (
276
276
  enum.auto()
277
277
  ) # (= 1 << 13) # panning in a locked or constrained state will cause the axis to stretch if possible
278
- # ImPlotAxisFlags_LockMin = 1 << 14, /* original C++ signature */
278
+ # ImPlotAxisFlags_LockMin = 1 << 14, /* original C++ signature */
279
279
  lock_min = enum.auto() # (= 1 << 14) # the axis minimum value will be locked when panning/zooming
280
- # ImPlotAxisFlags_LockMax = 1 << 15, /* original C++ signature */
280
+ # ImPlotAxisFlags_LockMax = 1 << 15, /* original C++ signature */
281
281
  lock_max = enum.auto() # (= 1 << 15) # the axis maximum value will be locked when panning/zooming
282
- # ImPlotAxisFlags_Lock = ImPlotAxisFlags_.lock_min | ImPlotAxisFlags_LockMax, /* original C++ signature */
282
+ # ImPlotAxisFlags_TickLabelsInside = 1 << 16, /* original C++ signature */
283
+ tick_labels_inside = (
284
+ enum.auto()
285
+ ) # (= 1 << 16) # axis tick labels will be drawn inside the plot area (applies only to the innermost axes)
286
+ # ImPlotAxisFlags_Lock = ImPlotAxisFlags_.lock_min | ImPlotAxisFlags_LockMax, /* original C++ signature */
283
287
  lock = enum.auto() # (= AxisFlags_.lock_min | AxisFlags_LockMax)
284
- # ImPlotAxisFlags_NoDecorations = ImPlotAxisFlags_.no_label | ImPlotAxisFlags_NoGridLines | ImPlotAxisFlags_NoTickMarks | ImPlotAxisFlags_NoTickLabels, /* original C++ signature */
288
+ # ImPlotAxisFlags_NoDecorations = ImPlotAxisFlags_.no_label | ImPlotAxisFlags_NoGridLines | ImPlotAxisFlags_NoTickMarks | ImPlotAxisFlags_NoTickLabels, /* original C++ signature */
285
289
  no_decorations = (
286
290
  enum.auto()
287
291
  ) # (= AxisFlags_.no_label | AxisFlags_NoGridLines | AxisFlags_NoTickMarks | AxisFlags_NoTickLabels)
288
- # ImPlotAxisFlags_AuxDefault = ImPlotAxisFlags_.no_grid_lines | ImPlotAxisFlags_Opposite /* original C++ signature */
292
+ # ImPlotAxisFlags_AuxDefault = ImPlotAxisFlags_.no_grid_lines | ImPlotAxisFlags_Opposite /* original C++ signature */
289
293
  # }
290
294
  aux_default = enum.auto() # (= AxisFlags_.no_grid_lines | AxisFlags_Opposite)
291
295
 
@@ -386,6 +390,14 @@ class DragToolFlags_(enum.IntFlag):
386
390
  delayed = (
387
391
  enum.auto()
388
392
  ) # (= 1 << 3) # tool rendering will be delayed one frame; useful when applying position-constraints
393
+ # ImPlotDragToolFlags_NoMove = 1 << 4, /* original C++ signature */
394
+ no_move = (
395
+ enum.auto()
396
+ ) # (= 1 << 4) # the tool can't be moved; it still catches and reports clicks and hovers, but shows no move cursor
397
+ # ImPlotDragToolFlags_NoResize = 1 << 5, /* original C++ signature */
398
+ no_resize = (
399
+ enum.auto()
400
+ ) # (= 1 << 5) # DragRect's corners and edges can't resize it; they still catch and report clicks and hovers, but show no resize cursor
389
401
 
390
402
  class ColormapScaleFlags_(enum.IntFlag):
391
403
  """Flags for ColormapScale"""
@@ -816,7 +828,7 @@ class Spec:
816
828
  spec.LineColor = ImVec4(1,0,0,1);
817
829
  spec.LineWeight = 2.0;
818
830
  spec.Marker = ImPlotMarker_.circle;
819
- spec.Flags = ImPlotItemFlags_.no_legend | ImPlotLineFlags_Segments;
831
+ spec.Flags = (ImPlotItemFlags)ImPlotItemFlags_NoLegend | ImPlotLineFlags_Segments;
820
832
  ImPlot::PlotLine("MyLine", xs, ys, 100, spec);
821
833
 
822
834
  2. Inline using (ImPlotProp,value) pairs (order does NOT matter):
@@ -825,7 +837,7 @@ class Spec:
825
837
  ImPlotProp_LineColor, ImVec4(1,0,0,1),
826
838
  ImPlotProp_LineWeight, 2.0,
827
839
  ImPlotProp_Marker, ImPlotMarker_Circle,
828
- ImPlotProp_Flags, ImPlotItemFlags_NoLegend | ImPlotLineFlags_Segments
840
+ ImPlotProp_Flags, (ImPlotItemFlags)ImPlotItemFlags_NoLegend | ImPlotLineFlags_Segments
829
841
  });
830
842
  """
831
843
 
@@ -2008,6 +2020,14 @@ def hide_next_item(hidden: bool = True, cond: Optional[Cond] = None) -> None:
2008
2020
  """
2009
2021
  pass
2010
2022
 
2023
+ # IMPLOT_API bool IsItemHidden(const char* label_id); /* original C++ signature */
2024
+ def is_item_hidden(label_id: str) -> bool:
2025
+ """Returns True if the plot item #label_id in the current plot is hidden (i.e. toggled off from the legend or by HideNextItem).
2026
+ Can be called before the item is submitted (e.g. to skip expensive work for a hidden item), in which case it reports
2027
+ the state from the previous frame. Returns False for items that have never been submitted. See also IsLastItemHidden.
2028
+ """
2029
+ pass
2030
+
2011
2031
  # Use the following around calls to Begin/EndPlot to align l/r/t/b padding.
2012
2032
  # Consider using Begin/EndSubplots first. They are more feature rich and
2013
2033
  # accomplish the same behaviour by default. The functions below offer lower
@@ -2180,6 +2200,11 @@ def get_last_item_color() -> ImVec4:
2180
2200
  """Gets the last item primary color (i.e. its legend icon color)"""
2181
2201
  pass
2182
2202
 
2203
+ # IMPLOT_API bool IsLastItemHidden(); /* original C++ signature */
2204
+ def is_last_item_hidden() -> bool:
2205
+ """Returns True if the last plot item is hidden (i.e. toggled off from the legend or by HideNextItem)."""
2206
+ pass
2207
+
2183
2208
  # IMPLOT_API const char* GetStyleColorName(ImPlotCol idx); /* original C++ signature */
2184
2209
  def get_style_color_name(idx: Col) -> str:
2185
2210
  """Returns the null terminated string name for an ImPlotCol."""
pyimgui-0.1.1/.gitignore DELETED
@@ -1 +0,0 @@
1
- build/
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes