im_file_dialog.pyi 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ###############################################################################
  2. # This file is a part of Dear ImGui Bundle, NOT a part of ImFileDialog
  3. # -----------------------------------------------------------------------------
  4. # im_file_dialog.pyi: auto-generated bindings for ImFileDialog.
  5. # based on https://github.com/dfranx/ImFileDialog
  6. # Thanks to dfranx (https://github.com/dfranx)
  7. #
  8. # Most of the code of this file is automatically generated (using https://pthom.github.io/litgen/),
  9. # and is generally very close to the C++ version. Comments, docs are identical.
  10. # Do not manually edit the autogenerated parts (look for "Autogenerated" comments)!
  11. ###############################################################################
  12. # ruff: noqa: F821
  13. from __future__ import annotations
  14. from typing import List
  15. from imgui_bundle.imgui import ImTextureID
  16. class Path:
  17. def __init__(self, path: str) -> None:
  18. pass
  19. def path(self) -> str:
  20. pass
  21. def filename(self) -> str:
  22. pass
  23. def extension(self) -> str:
  24. pass
  25. def parent_path(self) -> str:
  26. pass
  27. # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! AUTOGENERATED CODE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  28. # <litgen_stub> // Autogenerated code below! Do not edit!
  29. #################### <generated_from:ImFileDialog.h> ####################
  30. # u8path is deprecated in C++20; use char8_t path constructor instead
  31. class FileDialog:
  32. @staticmethod
  33. def instance() -> FileDialog:
  34. pass
  35. def __init__(self) -> None:
  36. pass
  37. def save(self, key: str, title: str, filter: str, starting_dir: str = "") -> bool:
  38. pass
  39. def open(
  40. self,
  41. key: str,
  42. title: str,
  43. filter: str,
  44. is_multiselect: bool = False,
  45. starting_dir: str = "",
  46. ) -> bool:
  47. pass
  48. def is_done(self, key: str) -> bool:
  49. pass
  50. def has_result(self) -> bool:
  51. pass
  52. def get_result(self) -> Path:
  53. pass
  54. def get_results(self) -> List[Path]:
  55. pass
  56. def close(self) -> None:
  57. pass
  58. def remove_favorite(self, path: str) -> None:
  59. pass
  60. def add_favorite(self, path: str) -> None:
  61. pass
  62. def get_favorites(self) -> List[str]:
  63. pass
  64. def set_zoom(self, z: float) -> None:
  65. pass
  66. def get_zoom(self) -> float:
  67. pass
  68. class FileTreeNode:
  69. def __init__(self, path: str) -> None:
  70. pass
  71. path: Path
  72. read: bool
  73. children: List[FileDialog.FileTreeNode]
  74. class FileData:
  75. def __init__(self, path: Path) -> None:
  76. pass
  77. path: Path
  78. is_directory: bool
  79. size: int
  80. date_modified: int
  81. has_icon_preview: bool
  82. icon_preview: ImTextureID
  83. icon_preview_data: int
  84. icon_preview_width: int
  85. icon_preview_height: int
  86. #################### </generated_from:ImFileDialog.h> ####################
  87. # </litgen_stub> // Autogenerated code end!