sfml.js-imgui 0.0.0-stage → 1.2.1

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 (270) hide show
  1. package/README.ja.md +113 -0
  2. package/README.ko.md +113 -0
  3. package/README.md +112 -2
  4. package/README.zh-CN.md +113 -0
  5. package/binding.gyp +125 -0
  6. package/dist/callbacks.d.ts +368 -0
  7. package/dist/callbacks.js +310 -0
  8. package/dist/enums/colors.d.ts +779 -0
  9. package/dist/enums/colors.js +766 -0
  10. package/dist/enums/drawing.d.ts +286 -0
  11. package/dist/enums/drawing.js +257 -0
  12. package/dist/enums/input.d.ts +792 -0
  13. package/dist/enums/input.js +731 -0
  14. package/dist/enums/keys.d.ts +1389 -0
  15. package/dist/enums/keys.js +1384 -0
  16. package/dist/enums/selection.d.ts +195 -0
  17. package/dist/enums/selection.js +182 -0
  18. package/dist/enums/style.d.ts +362 -0
  19. package/dist/enums/style.js +349 -0
  20. package/dist/enums/tables.d.ts +681 -0
  21. package/dist/enums/tables.js +644 -0
  22. package/dist/enums/text.d.ts +411 -0
  23. package/dist/enums/text.js +390 -0
  24. package/dist/enums/widgets.d.ts +861 -0
  25. package/dist/enums/widgets.js +800 -0
  26. package/dist/enums/windows.d.ts +487 -0
  27. package/dist/enums/windows.js +458 -0
  28. package/dist/enums.d.ts +10 -0
  29. package/dist/enums.js +26 -0
  30. package/dist/font.d.ts +249 -0
  31. package/dist/font.js +285 -0
  32. package/dist/formatted.d.ts +301 -0
  33. package/dist/formatted.js +342 -0
  34. package/dist/imgui/color.d.ts +493 -0
  35. package/dist/imgui/color.js +532 -0
  36. package/dist/imgui/columns.d.ts +242 -0
  37. package/dist/imgui/columns.js +273 -0
  38. package/dist/imgui/combo.d.ts +322 -0
  39. package/dist/imgui/combo.js +344 -0
  40. package/dist/imgui/context.d.ts +240 -0
  41. package/dist/imgui/context.js +270 -0
  42. package/dist/imgui/debug.d.ts +478 -0
  43. package/dist/imgui/debug.js +526 -0
  44. package/dist/imgui/drag-drop.d.ts +378 -0
  45. package/dist/imgui/drag-drop.js +414 -0
  46. package/dist/imgui/drag.d.ts +1371 -0
  47. package/dist/imgui/drag.js +1447 -0
  48. package/dist/imgui/draw-data.d.ts +139 -0
  49. package/dist/imgui/draw-data.js +154 -0
  50. package/dist/imgui/draw-list-images.d.ts +306 -0
  51. package/dist/imgui/draw-list-images.js +324 -0
  52. package/dist/imgui/draw-list-internals.d.ts +223 -0
  53. package/dist/imgui/draw-list-internals.js +259 -0
  54. package/dist/imgui/draw-list-path.d.ts +451 -0
  55. package/dist/imgui/draw-list-path.js +493 -0
  56. package/dist/imgui/draw-list-primitives.d.ts +297 -0
  57. package/dist/imgui/draw-list-primitives.js +324 -0
  58. package/dist/imgui/draw-list-shapes.d.ts +1258 -0
  59. package/dist/imgui/draw-list-shapes.js +1345 -0
  60. package/dist/imgui/draw-list-state.d.ts +458 -0
  61. package/dist/imgui/draw-list-state.js +515 -0
  62. package/dist/imgui/draw-list-text.d.ts +367 -0
  63. package/dist/imgui/draw-list-text.js +247 -0
  64. package/dist/imgui/drawing.d.ts +151 -0
  65. package/dist/imgui/drawing.js +169 -0
  66. package/dist/imgui/font-atlas.d.ts +726 -0
  67. package/dist/imgui/font-atlas.js +777 -0
  68. package/dist/imgui/font-glyph-ranges.d.ts +260 -0
  69. package/dist/imgui/font-glyph-ranges.js +230 -0
  70. package/dist/imgui/fonts.d.ts +114 -0
  71. package/dist/imgui/fonts.js +132 -0
  72. package/dist/imgui/id-stack.d.ts +363 -0
  73. package/dist/imgui/id-stack.js +309 -0
  74. package/dist/imgui/images.d.ts +310 -0
  75. package/dist/imgui/images.js +331 -0
  76. package/dist/imgui/index.d.ts +57 -0
  77. package/dist/imgui/index.js +73 -0
  78. package/dist/imgui/input-text-callback.d.ts +176 -0
  79. package/dist/imgui/input-text-callback.js +144 -0
  80. package/dist/imgui/inputs.d.ts +1086 -0
  81. package/dist/imgui/inputs.js +1159 -0
  82. package/dist/imgui/io.d.ts +546 -0
  83. package/dist/imgui/io.js +600 -0
  84. package/dist/imgui/item-state.d.ts +766 -0
  85. package/dist/imgui/item-state.js +850 -0
  86. package/dist/imgui/keyboard.d.ts +547 -0
  87. package/dist/imgui/keyboard.js +584 -0
  88. package/dist/imgui/layout.d.ts +927 -0
  89. package/dist/imgui/layout.js +1029 -0
  90. package/dist/imgui/legacy.d.ts +413 -0
  91. package/dist/imgui/legacy.js +461 -0
  92. package/dist/imgui/list-clipper.d.ts +282 -0
  93. package/dist/imgui/list-clipper.js +309 -0
  94. package/dist/imgui/logging.d.ts +113 -0
  95. package/dist/imgui/logging.js +135 -0
  96. package/dist/imgui/memory.d.ts +35 -0
  97. package/dist/imgui/memory.js +45 -0
  98. package/dist/imgui/menus.d.ts +373 -0
  99. package/dist/imgui/menus.js +407 -0
  100. package/dist/imgui/mouse.d.ts +740 -0
  101. package/dist/imgui/mouse.js +803 -0
  102. package/dist/imgui/plots.d.ts +252 -0
  103. package/dist/imgui/plots.js +267 -0
  104. package/dist/imgui/popups.d.ts +711 -0
  105. package/dist/imgui/popups.js +757 -0
  106. package/dist/imgui/scrolling.d.ts +341 -0
  107. package/dist/imgui/scrolling.js +375 -0
  108. package/dist/imgui/selection.d.ts +785 -0
  109. package/dist/imgui/selection.js +845 -0
  110. package/dist/imgui/settings.d.ts +194 -0
  111. package/dist/imgui/settings.js +216 -0
  112. package/dist/imgui/sliders.d.ts +1664 -0
  113. package/dist/imgui/sliders.js +1751 -0
  114. package/dist/imgui/storage.d.ts +344 -0
  115. package/dist/imgui/storage.js +386 -0
  116. package/dist/imgui/style.d.ts +680 -0
  117. package/dist/imgui/style.js +770 -0
  118. package/dist/imgui/tables.d.ts +762 -0
  119. package/dist/imgui/tables.js +831 -0
  120. package/dist/imgui/tabs.d.ts +228 -0
  121. package/dist/imgui/tabs.js +250 -0
  122. package/dist/imgui/text-buffer.d.ts +251 -0
  123. package/dist/imgui/text-buffer.js +239 -0
  124. package/dist/imgui/text-filter.d.ts +181 -0
  125. package/dist/imgui/text-filter.js +151 -0
  126. package/dist/imgui/text.d.ts +506 -0
  127. package/dist/imgui/text.js +425 -0
  128. package/dist/imgui/tooltips.d.ts +202 -0
  129. package/dist/imgui/tooltips.js +221 -0
  130. package/dist/imgui/trees.d.ts +516 -0
  131. package/dist/imgui/trees.js +562 -0
  132. package/dist/imgui/viewport.d.ts +93 -0
  133. package/dist/imgui/viewport.js +105 -0
  134. package/dist/imgui/widgets.d.ts +524 -0
  135. package/dist/imgui/widgets.js +572 -0
  136. package/dist/imgui/windows.d.ts +1210 -0
  137. package/dist/imgui/windows.js +1309 -0
  138. package/dist/index.d.ts +4 -0
  139. package/dist/index.js +19 -0
  140. package/dist/internal/imgui-binding.d.ts +40 -0
  141. package/dist/internal/imgui-binding.js +2 -0
  142. package/dist/internal/native.d.ts +67 -0
  143. package/dist/internal/native.js +7 -0
  144. package/dist/internal/sfml-interop.d.ts +45 -0
  145. package/dist/internal/sfml-interop.js +102 -0
  146. package/dist/references.d.ts +393 -0
  147. package/dist/references.js +372 -0
  148. package/dist/sfml.d.ts +223 -0
  149. package/dist/sfml.js +320 -0
  150. package/dist/struct-views.d.ts +3056 -0
  151. package/dist/struct-views.js +418 -0
  152. package/dist/types.d.ts +508 -0
  153. package/dist/types.js +2 -0
  154. package/native/addon.cc +68 -0
  155. package/native/cimgui.h +12 -0
  156. package/native/imgui-args.h +492 -0
  157. package/native/imgui-bindings.h +35 -0
  158. package/native/imgui-callbacks.cc +376 -0
  159. package/native/imgui-context.cc +117 -0
  160. package/native/imgui-debug.cc +171 -0
  161. package/native/imgui-drag-drop.cc +120 -0
  162. package/native/imgui-drag-widgets.cc +473 -0
  163. package/native/imgui-draw-callbacks.cc +210 -0
  164. package/native/imgui-draw-callbacks.h +25 -0
  165. package/native/imgui-draw-paths.cc +413 -0
  166. package/native/imgui-draw-primitives.cc +317 -0
  167. package/native/imgui-drawing.cc +963 -0
  168. package/native/imgui-font-ranges.cc +73 -0
  169. package/native/imgui-font.cc +488 -0
  170. package/native/imgui-formatted.cc +388 -0
  171. package/native/imgui-frame.cc +56 -0
  172. package/native/imgui-glyph-fields.cc +87 -0
  173. package/native/imgui-glyph-fields.h +12 -0
  174. package/native/imgui-input-widgets.cc +447 -0
  175. package/native/imgui-input.cc +277 -0
  176. package/native/imgui-integration.cc +442 -0
  177. package/native/imgui-io.cc +255 -0
  178. package/native/imgui-items.cc +290 -0
  179. package/native/imgui-layout.cc +349 -0
  180. package/native/imgui-popups.cc +331 -0
  181. package/native/imgui-references.cc +230 -0
  182. package/native/imgui-selection.cc +394 -0
  183. package/native/imgui-slider-widgets.cc +550 -0
  184. package/native/imgui-storage.cc +177 -0
  185. package/native/imgui-struct-views.cc +626 -0
  186. package/native/imgui-style.cc +283 -0
  187. package/native/imgui-tables.cc +267 -0
  188. package/native/imgui-text.cc +291 -0
  189. package/native/imgui-utilities.cc +127 -0
  190. package/native/imgui-values.cc +66 -0
  191. package/native/imgui-widgets.cc +570 -0
  192. package/native/imgui-windows.cc +436 -0
  193. package/native/interop.h +19 -0
  194. package/package.json +72 -3
  195. package/src/callbacks.ts +447 -0
  196. package/src/enums/colors.ts +782 -0
  197. package/src/enums/drawing.ts +293 -0
  198. package/src/enums/input.ts +807 -0
  199. package/src/enums/keys.ts +1390 -0
  200. package/src/enums/selection.ts +198 -0
  201. package/src/enums/style.ts +365 -0
  202. package/src/enums/tables.ts +690 -0
  203. package/src/enums/text.ts +416 -0
  204. package/src/enums/widgets.ts +876 -0
  205. package/src/enums/windows.ts +494 -0
  206. package/src/enums.ts +10 -0
  207. package/src/font.ts +287 -0
  208. package/src/formatted.ts +386 -0
  209. package/src/imgui/color.ts +575 -0
  210. package/src/imgui/columns.ts +274 -0
  211. package/src/imgui/combo.ts +376 -0
  212. package/src/imgui/context.ts +268 -0
  213. package/src/imgui/debug.ts +542 -0
  214. package/src/imgui/drag-drop.ts +423 -0
  215. package/src/imgui/drag.ts +1615 -0
  216. package/src/imgui/draw-data.ts +158 -0
  217. package/src/imgui/draw-list-images.ts +394 -0
  218. package/src/imgui/draw-list-internals.ts +291 -0
  219. package/src/imgui/draw-list-path.ts +568 -0
  220. package/src/imgui/draw-list-primitives.ts +363 -0
  221. package/src/imgui/draw-list-shapes.ts +1593 -0
  222. package/src/imgui/draw-list-state.ts +551 -0
  223. package/src/imgui/draw-list-text.ts +594 -0
  224. package/src/imgui/drawing.ts +170 -0
  225. package/src/imgui/font-atlas.ts +862 -0
  226. package/src/imgui/font-glyph-ranges.ts +357 -0
  227. package/src/imgui/fonts.ts +133 -0
  228. package/src/imgui/id-stack.ts +496 -0
  229. package/src/imgui/images.ts +364 -0
  230. package/src/imgui/index.ts +57 -0
  231. package/src/imgui/input-text-callback.ts +268 -0
  232. package/src/imgui/inputs.ts +1292 -0
  233. package/src/imgui/io.ts +638 -0
  234. package/src/imgui/item-state.ts +856 -0
  235. package/src/imgui/keyboard.ts +590 -0
  236. package/src/imgui/layout.ts +1030 -0
  237. package/src/imgui/legacy.ts +477 -0
  238. package/src/imgui/list-clipper.ts +329 -0
  239. package/src/imgui/logging.ts +135 -0
  240. package/src/imgui/memory.ts +42 -0
  241. package/src/imgui/menus.ts +417 -0
  242. package/src/imgui/mouse.ts +824 -0
  243. package/src/imgui/plots.ts +313 -0
  244. package/src/imgui/popups.ts +779 -0
  245. package/src/imgui/scrolling.ts +378 -0
  246. package/src/imgui/selection.ts +904 -0
  247. package/src/imgui/settings.ts +220 -0
  248. package/src/imgui/sliders.ts +1969 -0
  249. package/src/imgui/storage.ts +415 -0
  250. package/src/imgui/style.ts +781 -0
  251. package/src/imgui/tables.ts +854 -0
  252. package/src/imgui/tabs.ts +259 -0
  253. package/src/imgui/text-buffer.ts +337 -0
  254. package/src/imgui/text-filter.ts +262 -0
  255. package/src/imgui/text.ts +688 -0
  256. package/src/imgui/tooltips.ts +218 -0
  257. package/src/imgui/trees.ts +583 -0
  258. package/src/imgui/viewport.ts +103 -0
  259. package/src/imgui/widgets.ts +599 -0
  260. package/src/imgui/windows.ts +1350 -0
  261. package/src/index.ts +21 -0
  262. package/src/internal/imgui-binding.ts +142 -0
  263. package/src/internal/native.ts +163 -0
  264. package/src/internal/sfml-interop.ts +171 -0
  265. package/src/references.ts +464 -0
  266. package/src/sfml.ts +412 -0
  267. package/src/struct-views.ts +3194 -0
  268. package/src/types.ts +539 -0
  269. package/tools/deps_downloader.cjs +213 -0
  270. package/tsconfig.json +15 -0
@@ -0,0 +1,461 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PopAllowKeyboardFocus = exports.PushAllowKeyboardFocus = exports.SetItemAllowOverlap = exports.ShowStackToolWindow = exports.EndChildFrame = exports.BeginChildFrameEx = exports.BeginChildFrame = exports.GetWindowContentRegionMax = exports.GetWindowContentRegionMin = exports.GetContentRegionMax = exports.PopTabStop = exports.PushTabStop = exports.PopButtonRepeat = exports.PushButtonRepeat = exports.ImageImVec4 = void 0;
4
+ const native_1 = require("../internal/native");
5
+ /**
6
+ * Display an image with the legacy tint and border colors.
7
+ *
8
+ * @zh 使用旧式着色和边框颜色显示图像。
9
+ * @ja 従来の色調と枠線色を使って画像を表示します。
10
+ * @ko 기존 틴트 및 테두리 색상으로 이미지를 표시합니다.
11
+ *
12
+ * @remarks
13
+ * Obsoleted in Dear ImGui 1.91.9 (February 2025). This legacy JS overload
14
+ * still accepts border_col. Modern image functions use ImGuiCol.Border for
15
+ * the border color and ImGuiStyleVar.ImageBorderSize for its thickness.
16
+ * @zh
17
+ * 自 Dear ImGui 1.91.9(2025 年 2 月)起废弃。此旧版 JS 重载仍接受 border_col。
18
+ * 新版图像函数使用 ImGuiCol.Border 设置边框颜色,使用 ImGuiStyleVar.ImageBorderSize 设置边框厚度。
19
+ * @ja
20
+ * Dear ImGui 1.91.9(2025 年 2 月)で廃止されました。この旧式 JS オーバーロードは今も border_col を受け取ります。
21
+ * 新しい画像関数では、枠線の色に ImGuiCol.Border、太さに ImGuiStyleVar.ImageBorderSize を使います。
22
+ * @ko
23
+ * Dear ImGui 1.91.9(2025년 2월)에서 폐기되었습니다. 이 레거시 JS 오버로드는 여전히 border_col을 받습니다.
24
+ * 새 이미지 함수는 테두리 색상에 ImGuiCol.Border, 두께에 ImGuiStyleVar.ImageBorderSize를 사용합니다.
25
+ *
26
+ * @param user_texture_id - Renderer texture identifier (ImTextureID bigint),
27
+ * not an SFML texture object.
28
+ * @zh user_texture_id - 渲染器纹理标识符(ImTextureID bigint),不是 SFML 纹理对象。
29
+ * @ja user_texture_id - レンダラーのテクスチャ識別子(ImTextureID の bigint)です。SFML
30
+ * テクスチャオブジェクトではありません。
31
+ * @ko user_texture_id - 렌더러 텍스처 식별자(ImTextureID bigint)이며 SFML 텍스처 객체가 아닙니다.
32
+ *
33
+ * @param image_size - Displayed image width and height in screen pixels,
34
+ * independent of texture dimensions.
35
+ * @zh image_size - 图像显示的屏幕像素宽高,与纹理尺寸无关。
36
+ * @ja image_size - テクスチャ寸法とは独立した、画面ピクセル単位の画像表示幅と高さです。
37
+ * @ko image_size - 텍스처 크기와 독립적인 화면 픽셀 단위의 이미지 표시 너비와 높이입니다.
38
+ *
39
+ * @param uv0 - Texture coordinates at the upper-left corner; (0,0) is the usual
40
+ * full-image start.
41
+ * @zh uv0 - 左上角纹理坐标;完整图像通常从 (0,0) 开始。
42
+ * @ja uv0 - 左上のテクスチャ座標です。画像全体では通常 (0,0) を使います。
43
+ * @ko uv0 - 왼쪽 위 텍스처 좌표입니다. 전체 이미지는 보통 (0,0)에서 시작합니다.
44
+ *
45
+ * @param uv1 - Texture coordinates at the lower-right corner; (1,1) is the
46
+ * usual full-image end.
47
+ * @zh uv1 - 右下角纹理坐标;完整图像通常以 (1,1) 结束。
48
+ * @ja uv1 - 右下のテクスチャ座標です。画像全体では通常 (1,1) を使います。
49
+ * @ko uv1 - 오른쪽 아래 텍스처 좌표입니다. 전체 이미지는 보통 (1,1)에서 끝납니다.
50
+ *
51
+ * @param tint_col - RGBA color multiplied into the image; white preserves its
52
+ * colors.
53
+ * @zh tint_col - 与图像相乘的 RGBA 颜色;白色保持原色。
54
+ * @ja tint_col - 画像に乗算する RGBA 色です。白は元の色を維持します。
55
+ * @ko tint_col - 이미지에 곱하는 RGBA 색상입니다. 흰색은 원래 색을 유지합니다.
56
+ *
57
+ * @param border_col - RGBA image border color; zero alpha suppresses the
58
+ * border.
59
+ * @zh border_col - 图像边框的 RGBA 颜色;alpha 为零时不显示边框。
60
+ * @ja border_col - 画像枠の RGBA 色です。アルファがゼロなら枠を描きません。
61
+ * @ko border_col - 이미지 테두리 RGBA 색상입니다. 알파가 0이면 테두리를 표시하지 않습니다.
62
+ */
63
+ function ImageImVec4(user_texture_id, image_size, uv0, uv1, tint_col, border_col) {
64
+ native_1.native.ImageImVec4(user_texture_id, image_size, uv0, uv1, tint_col, border_col);
65
+ }
66
+ exports.ImageImVec4 = ImageImVec4;
67
+ /**
68
+ * Push the button-repeat setting.
69
+ *
70
+ * @zh 压入按钮重复触发设置。
71
+ * @ja ボタンのリピート設定をスタックに積みます。
72
+ * @ko 버튼 반복 설정을 스택에 넣습니다.
73
+ *
74
+ * @remarks
75
+ * OBSOLETED in 1.91.0 (from July 2024)
76
+ * @zh
77
+ * 于 1.91.0(2024 年 7 月起)废弃。
78
+ * @ja
79
+ * 1.91.0(2024 年 7 月から)で廃止。
80
+ * @ko
81
+ * 1.91.0(2024년 7월부터)에서 폐기.
82
+ *
83
+ * @param repeat - Whether holding the key or button generates repeated
84
+ * activations using ImGui repeat timing.
85
+ * @zh repeat - 是否按照 ImGui 重复时序,在按住按键或按钮时产生重复激活。
86
+ * @ja repeat - キーやボタンを押し続けたとき ImGui のリピート設定で繰り返し反応するかどうかです。
87
+ * @ko repeat - 키나 버튼을 누르고 있을 때 ImGui 반복 시간 설정으로 반복 활성화할지 여부입니다.
88
+ */
89
+ function PushButtonRepeat(repeat) {
90
+ native_1.native.PushButtonRepeat(repeat);
91
+ }
92
+ exports.PushButtonRepeat = PushButtonRepeat;
93
+ /**
94
+ * Restore the item flags saved by the matching legacy PushButtonRepeat.
95
+ *
96
+ * @zh 恢复配对的旧版 PushButtonRepeat 保存的控件标志。
97
+ * @ja 対応する旧 API の PushButtonRepeat が保存した項目フラグを復元します。
98
+ * @ko 대응하는 기존 PushButtonRepeat가 저장한 항목 플래그를 복원합니다.
99
+ */
100
+ function PopButtonRepeat() {
101
+ native_1.native.PopButtonRepeat();
102
+ }
103
+ exports.PopButtonRepeat = PopButtonRepeat;
104
+ /**
105
+ * Temporarily control whether subsequent items can receive focus through Tab
106
+ * navigation.
107
+ *
108
+ * @zh 临时控制后续控件能否通过 Tab 导航获得焦点。
109
+ * @ja 後続の項目が Tab キーの移動でフォーカスを受け取れるかを一時的に設定します。
110
+ * @ko 이후 항목이 Tab 탐색으로 포커스를 받을 수 있는지 임시로 설정합니다.
111
+ *
112
+ * @param tab_stop - Whether following items participate in keyboard Tab
113
+ * navigation.
114
+ * @zh tab_stop - 后续项是否参与键盘 Tab 导航。
115
+ * @ja tab_stop - 以降の項目を Tab キーの移動対象にするかどうかです。
116
+ * @ko tab_stop - 이후 항목을 키보드 Tab 탐색에 포함할지 여부입니다.
117
+ */
118
+ function PushTabStop(tab_stop) {
119
+ native_1.native.PushTabStop(tab_stop);
120
+ }
121
+ exports.PushTabStop = PushTabStop;
122
+ /**
123
+ * Restore the item flags saved by the matching legacy PushTabStop.
124
+ *
125
+ * @zh 恢复配对的旧版 PushTabStop 保存的控件标志。
126
+ * @ja 対応する旧 API の PushTabStop が保存した項目フラグを復元します。
127
+ * @ko 대응하는 기존 PushTabStop이 저장한 항목 플래그를 복원합니다.
128
+ */
129
+ function PopTabStop() {
130
+ native_1.native.PopTabStop();
131
+ }
132
+ exports.PopTabStop = PopTabStop;
133
+ /**
134
+ * Get the maximum content boundary in window-local coordinates.
135
+ *
136
+ * @zh 获取内容区域最大边界的窗口局部坐标。
137
+ * @ja コンテンツ領域の最大境界をウィンドウ内座標で取得します。
138
+ * @ko 콘텐츠 영역의 최대 경계를 창 내부 좌표로 가져옵니다.
139
+ *
140
+ * @remarks
141
+ * Content boundaries max (e.g. window boundaries including scrolling, or
142
+ * current column boundaries).
143
+ *
144
+ * You should never need this.
145
+ *
146
+ * Always use GetCursorScreenPos() and GetContentRegionAvail()!
147
+ * @zh
148
+ * 内容区域的最大边界(例如包含滚动的窗口边界,或当前列边界)。
149
+ *
150
+ * 你不应需要此函数,请始终使用 GetCursorScreenPos() 和 GetContentRegionAvail()!
151
+ * @ja
152
+ * 内容領域の最大境界です(スクロールを含むウィンドウ境界や現在の列境界など)。
153
+ *
154
+ * これは必要ないはずです。
155
+ *
156
+ * 常に GetCursorScreenPos() と GetContentRegionAvail() を使ってください!
157
+ * @ko
158
+ * 콘텐츠 영역의 최대 경계입니다(예: 스크롤을 포함한 창 경계 또는 현재 열 경계).
159
+ *
160
+ * 이 함수는 필요하지 않아야 합니다.
161
+ *
162
+ * 항상 GetCursorScreenPos()와 GetContentRegionAvail()을 사용하세요!
163
+ *
164
+ * @returns Content boundary for the current window or column: copied {x,y} in
165
+ * window-local pixels, accounting for scrolling.
166
+ * @zh 当前窗口或列的内容边界的窗口局部像素坐标副本 {x,y},包含滚动影响。
167
+ * @ja 現在のウィンドウまたは列の内容境界をスクロールを考慮したウィンドウローカルの {x,y} ピクセル値としてコピーします。
168
+ * @ko 현재 창 또는 열의 콘텐츠 경계의 스크롤을 반영한 창 로컬 픽셀 좌표 복사본 {x,y}입니다.
169
+ */
170
+ function GetContentRegionMax() {
171
+ return native_1.native.GetContentRegionMax();
172
+ }
173
+ exports.GetContentRegionMax = GetContentRegionMax;
174
+ /**
175
+ * Get the minimum window content boundary in window-local coordinates.
176
+ *
177
+ * @zh 获取窗口内容区域最小边界的窗口局部坐标。
178
+ * @ja ウィンドウのコンテンツ領域の最小境界をウィンドウ内座標で取得します。
179
+ * @ko 창 콘텐츠 영역의 최소 경계를 창 내부 좌표로 가져옵니다.
180
+ *
181
+ * @remarks
182
+ * Content boundaries min for the window (roughly (0,0)-Scroll), in window-local
183
+ * coordinates.
184
+ *
185
+ * You should never need this.
186
+ *
187
+ * Always use GetCursorScreenPos() and GetContentRegionAvail()!
188
+ * @zh
189
+ * 窗口内容区域的最小边界(约为 (0,0)-Scroll),使用窗口局部坐标。
190
+ *
191
+ * 你不应需要此函数,请始终使用 GetCursorScreenPos() 和 GetContentRegionAvail()!
192
+ * @ja
193
+ * ウィンドウの内容領域の最小境界(おおよそ (0,0)-Scroll)をウィンドウローカル座標で表します。
194
+ *
195
+ * これは必要ないはずです。
196
+ *
197
+ * 常に GetCursorScreenPos() と GetContentRegionAvail() を使ってください!
198
+ * @ko
199
+ * 창 콘텐츠 영역의 최소 경계(대략 (0,0)-Scroll)를 창 로컬 좌표로 나타냅니다.
200
+ *
201
+ * 이 함수는 필요하지 않아야 합니다.
202
+ *
203
+ * 항상 GetCursorScreenPos()와 GetContentRegionAvail()을 사용하세요!
204
+ *
205
+ * @returns Window content top-left: copied {x,y} in window-local pixels,
206
+ * accounting for scrolling.
207
+ * @zh 窗口内容左上角的窗口局部像素坐标副本 {x,y},包含滚动影响。
208
+ * @ja ウィンドウ内容の左上をスクロールを考慮したウィンドウローカルの {x,y} ピクセル値としてコピーします。
209
+ * @ko 창 콘텐츠의 왼쪽 위의 스크롤을 반영한 창 로컬 픽셀 좌표 복사본 {x,y}입니다.
210
+ */
211
+ function GetWindowContentRegionMin() {
212
+ return native_1.native.GetWindowContentRegionMin();
213
+ }
214
+ exports.GetWindowContentRegionMin = GetWindowContentRegionMin;
215
+ /**
216
+ * Get the maximum window content boundary in window-local coordinates.
217
+ *
218
+ * @zh 获取窗口内容区域最大边界的窗口局部坐标。
219
+ * @ja ウィンドウのコンテンツ領域の最大境界をウィンドウ内座標で取得します。
220
+ * @ko 창 콘텐츠 영역의 최대 경계를 창 내부 좌표로 가져옵니다.
221
+ *
222
+ * @remarks
223
+ * Content boundaries max for the window (roughly (0,0)+Size-Scroll), in
224
+ * window-local coordinates.
225
+ *
226
+ * You should never need this.
227
+ *
228
+ * Always use GetCursorScreenPos() and GetContentRegionAvail()!
229
+ * @zh
230
+ * 窗口内容区域的最大边界(约为 (0,0)+Size-Scroll),使用窗口局部坐标。
231
+ *
232
+ * 你不应需要此函数,请始终使用 GetCursorScreenPos() 和 GetContentRegionAvail()!
233
+ * @ja
234
+ * ウィンドウの内容領域の最大境界(おおよそ (0,0)+Size-Scroll)をウィンドウローカル座標で表します。
235
+ *
236
+ * これは必要ないはずです。
237
+ *
238
+ * 常に GetCursorScreenPos() と GetContentRegionAvail() を使ってください!
239
+ * @ko
240
+ * 창 콘텐츠 영역의 최대 경계(대략 (0,0)+Size-Scroll)를 창 로컬 좌표로 나타냅니다.
241
+ *
242
+ * 이 함수는 필요하지 않아야 합니다.
243
+ *
244
+ * 항상 GetCursorScreenPos()와 GetContentRegionAvail()을 사용하세요!
245
+ *
246
+ * @returns Window content bottom-right: copied {x,y} in window-local pixels,
247
+ * accounting for scrolling.
248
+ * @zh 窗口内容右下角的窗口局部像素坐标副本 {x,y},包含滚动影响。
249
+ * @ja ウィンドウ内容の右下をスクロールを考慮したウィンドウローカルの {x,y} ピクセル値としてコピーします。
250
+ * @ko 창 콘텐츠의 오른쪽 아래의 스크롤을 반영한 창 로컬 픽셀 좌표 복사본 {x,y}입니다.
251
+ */
252
+ function GetWindowContentRegionMax() {
253
+ return native_1.native.GetWindowContentRegionMax();
254
+ }
255
+ exports.GetWindowContentRegionMax = GetWindowContentRegionMax;
256
+ /**
257
+ * Begin a child window with frame styling.
258
+ *
259
+ * @zh 开始带框架样式的子窗口。
260
+ * @ja フレームスタイルの子ウィンドウを開始します。
261
+ * @ko 프레임 스타일이 적용된 자식 창을 시작합니다.
262
+ *
263
+ * @remarks
264
+ * Obsolete since 1.90.0 (September 2023). Use `BeginChild()` with
265
+ * `ImGuiChildFlags.FrameStyle` instead.
266
+ *
267
+ * This helper uses `window_flags = 0`. Always call `EndChildFrame()` after it,
268
+ * even when it returns `false`; it delegates to the child-window lifecycle.
269
+ * @zh
270
+ * 自 1.90.0(2023 年 9 月)起废弃。请改用带 `ImGuiChildFlags.FrameStyle` 的 `BeginChild()`。
271
+ *
272
+ * 此辅助函数使用 `window_flags = 0`。调用后始终需要调用 `EndChildFrame()`,即使返回 `false`
273
+ * 也不例外;它遵循子窗口生命周期。
274
+ * @ja
275
+ * 1.90.0(2023 年 9 月)以降は廃止されています。`ImGuiChildFlags.FrameStyle` を指定した
276
+ * `BeginChild()` を使ってください。
277
+ *
278
+ * このヘルパーは `window_flags = 0` を使います。子ウィンドウのライフサイクルに従うため、`false` を返しても必ず
279
+ * `EndChildFrame()` を呼んでください。
280
+ * @ko
281
+ * 1.90.0(2023년 9월)부터 폐기되었습니다. `ImGuiChildFlags.FrameStyle`을 지정한 `BeginChild()`를
282
+ * 사용하세요.
283
+ *
284
+ * 이 헬퍼는 `window_flags = 0`을 사용합니다. 자식 창 수명 주기를 따르므로 `false`를 반환해도 항상
285
+ * `EndChildFrame()`을 호출해야 합니다.
286
+ *
287
+ * @param id - Numeric ID identifying the child window, popup, or selection
288
+ * entry, passed directly without string hashing.
289
+ * @zh id - 标识子窗口、弹窗或选择条目的数值 ID,直接传入而不做字符串散列。
290
+ * @ja id - 子ウィンドウ、ポップアップ、選択項目の数値 ID です。文字列ハッシュを行わず直接使います。
291
+ * @ko id - 자식 창, 팝업 또는 선택 항목의 숫자 ID입니다. 문자열 해시 없이 직접 전달됩니다.
292
+ *
293
+ * @param size - Child-window width and height in pixels: 0 uses the remaining
294
+ * region, positive fixes an axis, negative uses remaining space minus that
295
+ * amount.
296
+ * @zh size - 子窗口像素宽高:0 使用剩余区域,正值固定尺寸,负值从剩余空间中减去其绝对值。
297
+ * @ja size - 子ウィンドウのピクセル幅・高さです。0 は残り全体、正は固定、負は残りから絶対値分を引きます。
298
+ * @ko size - 자식 창의 픽셀 너비와 높이입니다. 0은 남은 영역, 양수는 고정값, 음수는 남은 공간에서 절댓값을 뺍니다.
299
+ *
300
+ * @returns True when child contents should be submitted; false when fully
301
+ * clipped or collapsed. Call EndChild() even when false (EndChildFrame() for
302
+ * the legacy frame helper).
303
+ * @zh 应提交子窗口内容时返回 true,完全裁剪或折叠时为 false。即使为 false 也须调用 EndChild(),旧式 frame 辅助函数用
304
+ * EndChildFrame()。
305
+ * @ja 子の内容を描く場合は true、完全クリップや折りたたみ時は false です。false でも EndChild()、旧 frame 版なら
306
+ * EndChildFrame() を呼びます。
307
+ * @ko 자식 내용을 제출해야 하면 true, 완전히 잘리거나 접히면 false입니다. false여도 EndChild()를 호출하며 레거시
308
+ * frame은 EndChildFrame()을 사용합니다.
309
+ */
310
+ function BeginChildFrame(id, size) {
311
+ return native_1.native.BeginChildFrame(id, size);
312
+ }
313
+ exports.BeginChildFrame = BeginChildFrame;
314
+ /**
315
+ * Begin a child window styled like a framed widget using the legacy helper.
316
+ *
317
+ * @zh 使用旧版辅助函数开始一个带框控件样式的子窗口。
318
+ * @ja 旧ヘルパーを使い、枠付きウィジェットのスタイルで子ウィンドウを開始します。
319
+ * @ko 기존 헬퍼로 테두리 있는 위젯 스타일의 자식 창을 시작합니다.
320
+ *
321
+ * @param id - Numeric ID identifying the child window, popup, or selection
322
+ * entry, passed directly without string hashing.
323
+ * @zh id - 标识子窗口、弹窗或选择条目的数值 ID,直接传入而不做字符串散列。
324
+ * @ja id - 子ウィンドウ、ポップアップ、選択項目の数値 ID です。文字列ハッシュを行わず直接使います。
325
+ * @ko id - 자식 창, 팝업 또는 선택 항목의 숫자 ID입니다. 문자열 해시 없이 직접 전달됩니다.
326
+ *
327
+ * @param size - Child-window width and height in pixels: 0 uses the remaining
328
+ * region, positive fixes an axis, negative uses remaining space minus that
329
+ * amount.
330
+ * @zh size - 子窗口像素宽高:0 使用剩余区域,正值固定尺寸,负值从剩余空间中减去其绝对值。
331
+ * @ja size - 子ウィンドウのピクセル幅・高さです。0 は残り全体、正は固定、負は残りから絶対値分を引きます。
332
+ * @ko size - 자식 창의 픽셀 너비와 높이입니다. 0은 남은 영역, 양수는 고정값, 음수는 남은 공간에서 절댓값을 뺍니다.
333
+ *
334
+ * @param window_flags - ImGuiWindowFlags options controlling this operation;
335
+ * combine compatible flag bits with |.
336
+ * @zh window_flags - 控制此操作的 ImGuiWindowFlags 选项;可用 | 组合兼容的标志位。
337
+ * @ja window_flags - この操作を制御する ImGuiWindowFlags オプションです。互換性のあるフラグは | で組み合わせます。
338
+ * @ko window_flags - 이 동작을 제어하는 ImGuiWindowFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
339
+ *
340
+ * @returns True when child contents should be submitted; false when fully
341
+ * clipped or collapsed. Call EndChild() even when false (EndChildFrame() for
342
+ * the legacy frame helper).
343
+ * @zh 应提交子窗口内容时返回 true,完全裁剪或折叠时为 false。即使为 false 也须调用 EndChild(),旧式 frame 辅助函数用
344
+ * EndChildFrame()。
345
+ * @ja 子の内容を描く場合は true、完全クリップや折りたたみ時は false です。false でも EndChild()、旧 frame 版なら
346
+ * EndChildFrame() を呼びます。
347
+ * @ko 자식 내용을 제출해야 하면 true, 완전히 잘리거나 접히면 false입니다. false여도 EndChild()를 호출하며 레거시
348
+ * frame은 EndChildFrame()을 사용합니다.
349
+ */
350
+ function BeginChildFrameEx(id, size, window_flags = 0) {
351
+ return native_1.native.BeginChildFrameEx(id, size, window_flags);
352
+ }
353
+ exports.BeginChildFrameEx = BeginChildFrameEx;
354
+ /**
355
+ * End the framed child window opened by the legacy BeginChildFrame helper.
356
+ *
357
+ * @zh 结束旧版 BeginChildFrame 辅助函数打开的带框子窗口。
358
+ * @ja 旧ヘルパーの BeginChildFrame で開始した枠付き子ウィンドウを終了します。
359
+ * @ko 기존 BeginChildFrame 헬퍼로 시작한 테두리 있는 자식 창을 끝냅니다.
360
+ */
361
+ function EndChildFrame() {
362
+ native_1.native.EndChildFrame();
363
+ }
364
+ exports.EndChildFrame = EndChildFrame;
365
+ /**
366
+ * Show the ID stack debugging window.
367
+ *
368
+ * @zh 显示 ID 栈调试窗口。
369
+ * @ja ID スタックのデバッグウィンドウを表示します。
370
+ * @ko ID 스택 디버그 창을 표시합니다.
371
+ *
372
+ * @remarks
373
+ * Legacy name for `ShowIDStackToolWindow()`. Hover items in the tool to inspect
374
+ * the origin of their unique IDs.
375
+ * @zh
376
+ * `ShowIDStackToolWindow()` 的旧名称。在工具中悬停条目可检查其唯一 ID 的来源。
377
+ * @ja
378
+ * `ShowIDStackToolWindow()` の旧名称です。ツール内でアイテムにマウスを重ねると一意の ID の由来を確認できます。
379
+ * @ko
380
+ * `ShowIDStackToolWindow()`의 이전 이름입니다. 도구에서 항목 위에 마우스를 놓으면 고유 ID의 출처를 확인할 수
381
+ * 있습니다.
382
+ *
383
+ * @param p_open - Optional open state in Uint8Array[0]. Write only 0 (closed)
384
+ * or 1 (open); the close button writes 0. Null omits the close button.
385
+ * The native call accesses this writable backing memory directly.
386
+ * @zh p_open - Uint8Array[0] 中的可选打开状态,只能写入 0(关闭)或 1(打开)。
387
+ * 关闭按钮写入 0;null 不显示关闭按钮。原生调用直接访问此可写内存。
388
+ * @ja p_open - Uint8Array[0] の開閉状態です。0(閉)か 1(開)のみを書き込みます。
389
+ * 閉じるボタンは 0 を書き込み、null ではボタンを省略します。ネイティブ処理はこのメモリを直接使います。
390
+ * @ko p_open - Uint8Array[0]의 선택적 열림 상태입니다. 0(닫힘) 또는 1(열림)만 쓰세요.
391
+ * 닫기 버튼은 0을 쓰며 null이면 버튼을 생략합니다. 네이티브 호출은 이 쓰기 가능한 메모리에 직접 접근합니다.
392
+ */
393
+ function ShowStackToolWindow(p_open = null) {
394
+ native_1.native.ShowStackToolWindow(p_open);
395
+ }
396
+ exports.ShowStackToolWindow = ShowStackToolWindow;
397
+ /**
398
+ * Allow later items to overlap the last item.
399
+ *
400
+ * @zh 允许后续条目覆盖最后一个条目。
401
+ * @ja 最後のアイテムに後続のアイテムが重なることを許可します。
402
+ * @ko 이후 항목이 마지막 항목과 겹치도록 허용합니다.
403
+ *
404
+ * @remarks
405
+ * OBSOLETED in 1.89.7 (from June 2023)
406
+ *
407
+ * Use SetNextItemAllowOverlap() before item.
408
+ * @zh
409
+ * 于 1.89.7(2023 年 6 月起)废弃。
410
+ *
411
+ * 在项目之前使用 SetNextItemAllowOverlap()。
412
+ * @ja
413
+ * 1.89.7(2023 年 6 月から)で廃止。
414
+ *
415
+ * 項目の前に SetNextItemAllowOverlap() を使ってください。
416
+ * @ko
417
+ * 1.89.7(2023년 6월부터)에서 폐기.
418
+ *
419
+ * 항목 전에 SetNextItemAllowOverlap()을 사용하세요.
420
+ */
421
+ function SetItemAllowOverlap() {
422
+ native_1.native.SetItemAllowOverlap();
423
+ }
424
+ exports.SetItemAllowOverlap = SetItemAllowOverlap;
425
+ /**
426
+ * Push whether subsequent items accept keyboard focus.
427
+ *
428
+ * @zh 压入后续条目是否接受键盘焦点的设置。
429
+ * @ja 後続のアイテムがキーボードフォーカスを受け取るかをスタックに積みます。
430
+ * @ko 이후 항목의 키보드 포커스 허용 여부를 스택에 넣습니다.
431
+ *
432
+ * @remarks
433
+ * OBSOLETED in 1.89.4 (from March 2023)
434
+ * @zh
435
+ * 于 1.89.4(2023 年 3 月起)废弃。
436
+ * @ja
437
+ * 1.89.4(2023 年 3 月から)で廃止。
438
+ * @ko
439
+ * 1.89.4(2023년 3월부터)에서 폐기.
440
+ *
441
+ * @param tab_stop - Whether following items participate in keyboard Tab
442
+ * navigation.
443
+ * @zh tab_stop - 后续项是否参与键盘 Tab 导航。
444
+ * @ja tab_stop - 以降の項目を Tab キーの移動対象にするかどうかです。
445
+ * @ko tab_stop - 이후 항목을 키보드 Tab 탐색에 포함할지 여부입니다.
446
+ */
447
+ function PushAllowKeyboardFocus(tab_stop) {
448
+ native_1.native.PushAllowKeyboardFocus(tab_stop);
449
+ }
450
+ exports.PushAllowKeyboardFocus = PushAllowKeyboardFocus;
451
+ /**
452
+ * Restore the item flags saved by the matching legacy PushAllowKeyboardFocus.
453
+ *
454
+ * @zh 恢复配对的旧版 PushAllowKeyboardFocus 保存的控件标志。
455
+ * @ja 対応する旧 API の PushAllowKeyboardFocus が保存した項目フラグを復元します。
456
+ * @ko 대응하는 기존 PushAllowKeyboardFocus가 저장한 항목 플래그를 복원합니다.
457
+ */
458
+ function PopAllowKeyboardFocus() {
459
+ native_1.native.PopAllowKeyboardFocus();
460
+ }
461
+ exports.PopAllowKeyboardFocus = PopAllowKeyboardFocus;