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,711 @@
1
+ /**
2
+ * Begin appending to an open popup.
3
+ *
4
+ * @zh 开始向已打开的弹出窗口追加内容。
5
+ * @ja 開いているポップアップへの追加を開始します。
6
+ * @ko 열린 팝업에 내용을 추가하기 시작합니다.
7
+ *
8
+ * @remarks
9
+ * - They block normal mouse hovering detection (and therefore most mouse
10
+ * interactions) behind them.
11
+ *
12
+ * - If not modal: they can be closed by clicking anywhere outside them, or by
13
+ * pressing ESCAPE.
14
+ *
15
+ * - Their visibility state (~bool) is held internally instead of being held by
16
+ * the programmer as we are used to with regular Begin*() calls.
17
+ *
18
+ * - The 3 properties above are related: we need to retain popup visibility
19
+ * state in the library because popups may be closed as any time.
20
+ *
21
+ * - You can bypass the hovering restriction by using
22
+ * ImGuiHoveredFlags.AllowWhenBlockedByPopup when calling IsItemHovered() or
23
+ * IsWindowHovered().
24
+ *
25
+ * - IMPORTANT: Popup identifiers are relative to the current ID stack, so
26
+ * OpenPopup and BeginPopup generally needs to be at the same level of the
27
+ * stack. This is sometimes leading to confusing mistakes. May rework this in
28
+ * the future.
29
+ *
30
+ * - BeginPopup(): query popup state, if open start appending into the window.
31
+ * Call EndPopup() afterwards if returned true. ImGuiWindowFlags are forwarded
32
+ * to the window.
33
+ *
34
+ * - BeginPopupModal(): block every interaction behind the window, cannot be
35
+ * closed by user, add a dimming background, has a title bar.
36
+ *
37
+ * return true if the popup is open, and you can start outputting to it.
38
+ * @zh
39
+ * 弹出窗口与模态窗口:
40
+ *
41
+ * - 会阻止其后方正常的鼠标悬停检测(因而阻止大多数鼠标交互)。
42
+ *
43
+ * - 非模态窗口可通过点击外部任意位置或按 ESCAPE 关闭。
44
+ *
45
+ * - 可见性状态(约等于 bool)保存在内部,而不是像常规 Begin*() 调用那样由程序员保存。
46
+ *
47
+ * - 上述三个特性相关:弹出窗口可能随时关闭,因此库需要保存其可见性状态。
48
+ *
49
+ * - 调用 IsItemHovered() 或 IsWindowHovered() 时使用
50
+ * ImGuiHoveredFlags.AllowWhenBlockedByPopup 可绕过悬停限制。
51
+ *
52
+ * - 重要:弹出窗口标识符相对于当前 ID 栈,因此 OpenPopup 和 BeginPopup
53
+ * 通常必须位于栈的同一层级。这有时会导致令人困惑的错误,未来可能重新设计。
54
+ *
55
+ * - BeginPopup():查询弹出窗口状态;若已打开,则开始向窗口追加内容。返回 true 后必须调用
56
+ * EndPopup()。ImGuiWindowFlags 会传给窗口。
57
+ *
58
+ * - BeginPopupModal():阻止窗口后方的一切交互,用户不能直接关闭它,添加变暗背景并带有标题栏。弹出窗口打开时返回
59
+ * true,此时可开始向其输出内容。
60
+ * @ja
61
+ * ポップアップとモーダル:
62
+ *
63
+ * - 背後の通常のマウスホバー検出(したがって大半のマウス操作)を遮断します。
64
+ *
65
+ * - 非モーダルなら外側の任意の場所のクリックや ESCAPE で閉じられます。
66
+ *
67
+ * - 可視状態(ほぼ bool)は通常の Begin*() のようにプログラマーではなく内部が保持します。
68
+ *
69
+ * - 以上の 3 特性は関連しています。ポップアップはいつでも閉じられるため、ライブラリが可視状態を保持する必要があります。
70
+ *
71
+ * - IsItemHovered() や IsWindowHovered() に
72
+ * ImGuiHoveredFlags.AllowWhenBlockedByPopup を指定するとホバー制限を回避できます。
73
+ *
74
+ * - 重要:ポップアップ識別子は現在の ID スタックに相対的なので、OpenPopup と BeginPopup
75
+ * は通常スタックの同じ階層に置く必要があります。混乱するミスにつながることがあり、将来見直す可能性があります。
76
+ *
77
+ * - BeginPopup():状態を照会し、開いていれば内容の追加を開始します。true を返したら後で EndPopup()
78
+ * を呼びます。ImGuiWindowFlags はウィンドウに転送されます。
79
+ *
80
+ * -
81
+ * BeginPopupModal():背後のすべての操作を遮断し、ユーザーが直接閉じることはできず、暗い背景を追加し、タイトルバーを持ちます。
82
+ * ポップアップが開いていれば true を返し、出力を開始できます。
83
+ * @ko
84
+ * 팝업과 모달:
85
+ *
86
+ * - 뒤쪽의 일반적인 마우스 호버 감지(따라서 대부분의 마우스 상호작용)를 차단합니다.
87
+ *
88
+ * - 모달이 아니면 바깥 아무 곳이나 클릭하거나 ESCAPE를 눌러 닫을 수 있습니다.
89
+ *
90
+ * - 표시 상태(대략 bool)는 일반 Begin*() 호출처럼 프로그래머가 아니라 내부에서 유지합니다.
91
+ *
92
+ * - 위 세 속성은 연관되어 있습니다. 팝업은 언제든 닫힐 수 있으므로 라이브러리가 표시 상태를 유지해야 합니다.
93
+ *
94
+ * - IsItemHovered()나 IsWindowHovered() 호출에
95
+ * ImGuiHoveredFlags.AllowWhenBlockedByPopup을 사용하면 호버 제한을 우회할 수 있습니다.
96
+ *
97
+ * - 중요: 팝업 식별자는 현재 ID 스택에 상대적이므로 OpenPopup과 BeginPopup은 일반적으로 같은 스택 수준에 있어야
98
+ * 합니다. 이 때문에 혼란스러운 실수가 생기기도 하며 향후 재설계할 수 있습니다.
99
+ *
100
+ * - BeginPopup(): 팝업 상태를 조회하고 열려 있으면 창에 내용 추가를 시작합니다. true를 반환했다면 이후
101
+ * EndPopup()을 호출하세요. ImGuiWindowFlags는 창에 전달됩니다.
102
+ *
103
+ * - BeginPopupModal(): 창 뒤의 모든 상호작용을 차단하며 사용자가 직접 닫을 수 없고, 어두운 배경을 추가하며 제목 표시줄이
104
+ * 있습니다. 팝업이 열려 있으면 true를 반환하며 출력을 시작할 수 있습니다.
105
+ *
106
+ * @param str_id - String identifier hashed with the current ID stack to
107
+ * distinguish this item or scope.
108
+ * @zh str_id - 字符串标识符,与当前 ID 栈一起散列以区分此项或作用域。
109
+ * @ja str_id - 現在の ID スタックと組み合わせて項目やスコープを識別する文字列です。
110
+ * @ko str_id - 현재 ID 스택과 함께 해시하여 항목이나 범위를 구별하는 문자열 식별자입니다.
111
+ *
112
+ * @param flags - ImGuiWindowFlags options controlling this operation; combine
113
+ * compatible flag bits with |.
114
+ * @zh flags - 控制此操作的 ImGuiWindowFlags 选项;可用 | 组合兼容的标志位。
115
+ * @ja flags - この操作を制御する ImGuiWindowFlags オプションです。互換性のあるフラグは | で組み合わせます。
116
+ * @ko flags - 이 동작을 제어하는 ImGuiWindowFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
117
+ *
118
+ * @returns True when this scope is open/active and its contents may be
119
+ * submitted. Call EndPopup() only when true; on false, skip both contents and
120
+ * the matching end.
121
+ * @zh 此作用域打开或激活且可提交内容时返回 true。仅为 true 时调用 EndPopup();为 false 时跳过内容和配对结束调用。
122
+ * @ja スコープが開いて内容を描ける場合は true です。true の場合だけ EndPopup() を呼び、false
123
+ * なら内容と終了呼び出しを省略します。
124
+ * @ko 범위가 열리거나 활성화되어 내용을 제출할 수 있으면 true입니다. true일 때만 EndPopup()를 호출하며 false이면
125
+ * 내용과 종료 호출을 생략합니다.
126
+ */
127
+ export declare function BeginPopup(str_id: string | Uint8Array, flags?: number): boolean;
128
+ /**
129
+ * Begin appending to an open modal popup.
130
+ *
131
+ * @zh 开始向已打开的模态弹出窗口追加内容。
132
+ * @ja 開いているモーダルポップアップへの追加を開始します。
133
+ * @ko 열린 모달 팝업에 내용을 추가하기 시작합니다.
134
+ *
135
+ * @remarks
136
+ * return true if the modal is open, and you can start outputting to it.
137
+ * @zh
138
+ * 模态窗口打开时返回 true,此时可开始向其输出内容。
139
+ * @ja
140
+ * モーダルが開いていれば true を返し、出力を開始できます。
141
+ * @ko
142
+ * 모달이 열려 있으면 true를 반환하며 출력을 시작할 수 있습니다.
143
+ *
144
+ * @param name - Window name used as its persistent ID and displayed title; ###
145
+ * can separate the title from the ID.
146
+ * @zh name - 窗口名称,用于持久 ID 和标题显示;可用 ### 将标题与 ID 分离。
147
+ * @ja name - 永続 ID と表示タイトルに使うウィンドウ名です。### でタイトルと ID を分離できます。
148
+ * @ko name - 영구 ID와 표시 제목에 사용하는 창 이름입니다. ###으로 제목과 ID를 분리할 수 있습니다.
149
+ *
150
+ * @param p_open - Optional open state in Uint8Array[0]. Write only 0 (closed)
151
+ * or 1 (open); the close button writes 0. Null omits the close button.
152
+ * The native call accesses this writable backing memory directly.
153
+ * @zh p_open - Uint8Array[0] 中的可选打开状态,只能写入 0(关闭)或 1(打开)。
154
+ * 关闭按钮写入 0;null 不显示关闭按钮。原生调用直接访问此可写内存。
155
+ * @ja p_open - Uint8Array[0] の開閉状態です。0(閉)か 1(開)のみを書き込みます。
156
+ * 閉じるボタンは 0 を書き込み、null ではボタンを省略します。ネイティブ処理はこのメモリを直接使います。
157
+ * @ko p_open - Uint8Array[0]의 선택적 열림 상태입니다. 0(닫힘) 또는 1(열림)만 쓰세요.
158
+ * 닫기 버튼은 0을 쓰며 null이면 버튼을 생략합니다. 네이티브 호출은 이 쓰기 가능한 메모리에 직접 접근합니다.
159
+ *
160
+ * @param flags - ImGuiWindowFlags options controlling this operation; combine
161
+ * compatible flag bits with |.
162
+ * @zh flags - 控制此操作的 ImGuiWindowFlags 选项;可用 | 组合兼容的标志位。
163
+ * @ja flags - この操作を制御する ImGuiWindowFlags オプションです。互換性のあるフラグは | で組み合わせます。
164
+ * @ko flags - 이 동작을 제어하는 ImGuiWindowFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
165
+ *
166
+ * @returns True when this scope is open/active and its contents may be
167
+ * submitted. Call EndPopup() only when true; on false, skip both contents and
168
+ * the matching end.
169
+ * @zh 此作用域打开或激活且可提交内容时返回 true。仅为 true 时调用 EndPopup();为 false 时跳过内容和配对结束调用。
170
+ * @ja スコープが開いて内容を描ける場合は true です。true の場合だけ EndPopup() を呼び、false
171
+ * なら内容と終了呼び出しを省略します。
172
+ * @ko 범위가 열리거나 활성화되어 내용을 제출할 수 있으면 true입니다. true일 때만 EndPopup()를 호출하며 false이면
173
+ * 내용과 종료 호출을 생략합니다.
174
+ */
175
+ export declare function BeginPopupModal(name: string | Uint8Array, p_open?: Uint8Array | null, flags?: number): boolean;
176
+ /**
177
+ * End the current popup.
178
+ *
179
+ * @zh 结束当前弹出窗口。
180
+ * @ja 現在のポップアップを終了します。
181
+ * @ko 현재 팝업을 종료합니다.
182
+ *
183
+ * @remarks
184
+ * only call EndPopup() if BeginPopupXXX() returns true!
185
+ * @zh
186
+ * 仅在 BeginPopupXXX() 返回 true 时调用 EndPopup()!
187
+ * @ja
188
+ * BeginPopupXXX() が true を返した場合のみ EndPopup() を呼んでください!
189
+ * @ko
190
+ * BeginPopupXXX()가 true를 반환한 경우에만 EndPopup()을 호출하세요!
191
+ */
192
+ export declare function EndPopup(): void;
193
+ /**
194
+ * Mark a popup as open.
195
+ *
196
+ * @zh 将弹出窗口标记为打开。
197
+ * @ja ポップアップを開いた状態にします。
198
+ * @ko 팝업을 열린 상태로 표시합니다.
199
+ *
200
+ * @remarks
201
+ * - OpenPopup(): set popup state to open. ImGuiPopupFlags are available for
202
+ * opening options.
203
+ *
204
+ * - If not modal: they can be closed by clicking anywhere outside them, or by
205
+ * pressing ESCAPE.
206
+ *
207
+ * - CloseCurrentPopup(): use inside the BeginPopup()/EndPopup() scope to close
208
+ * manually.
209
+ *
210
+ * - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when
211
+ * activated (FIXME: need some options).
212
+ *
213
+ * - Use ImGuiPopupFlags.NoOpenOverExistingPopup to avoid opening a popup if
214
+ * there's already one at the same level. This is equivalent to e.g. testing
215
+ * for !IsPopupOpen("", ImGuiPopupFlags.AnyPopupId) prior to OpenPopup().
216
+ *
217
+ * - Use IsWindowAppearing() after BeginPopup() to tell if a window just opened.
218
+ *
219
+ * - IMPORTANT: Notice that for OpenPopupOnItemClick() we exceptionally default
220
+ * flags to 1 (== ImGuiPopupFlags.MouseButtonRight) for backward compatibility
221
+ * with older API taking 'int mouse_button = 1' parameter
222
+ *
223
+ * call to mark popup as open (don't call every frame!).
224
+ * @zh
225
+ * 弹出窗口:打开/关闭函数。
226
+ *
227
+ * - OpenPopup() 将状态设为打开;可通过 ImGuiPopupFlags 指定打开选项。
228
+ *
229
+ * - 非模态窗口可通过点击外部任意位置或按 ESCAPE 关闭。
230
+ *
231
+ * - CloseCurrentPopup() 在 BeginPopup()/EndPopup() 作用域内手动关闭窗口。
232
+ *
233
+ * - Selectable()/MenuItem() 激活时默认调用 CloseCurrentPopup()(待修复:需要一些选项)。
234
+ *
235
+ * - 使用 ImGuiPopupFlags.NoOpenOverExistingPopup,可在同层级已有弹出窗口时避免再打开;等同于在
236
+ * OpenPopup() 之前检查 !IsPopupOpen("", ImGuiPopupFlags.AnyPopupId)。
237
+ *
238
+ * - 在 BeginPopup() 之后使用 IsWindowAppearing(),可判断窗口是否刚打开。
239
+ *
240
+ * - 重要:为兼容接受 'int mouse_button = 1' 的旧 API,OpenPopupOnItemClick() 例外地将 flags
241
+ * 默认为 1(== ImGuiPopupFlags.MouseButtonRight)。调用以将弹出窗口标记为打开(不要每帧调用!)。
242
+ * @ja
243
+ * ポップアップ:開閉関数。
244
+ *
245
+ * - OpenPopup() は状態を開くに設定し、ImGuiPopupFlags で開き方を指定できます。
246
+ *
247
+ * - 非モーダルなら外側のクリックや ESCAPE で閉じられます。
248
+ *
249
+ * - CloseCurrentPopup() は BeginPopup()/EndPopup() 内で手動で閉じるために使います。
250
+ *
251
+ * - Selectable()/MenuItem() はアクティブ化時に既定で CloseCurrentPopup()
252
+ * を呼びます(要修正:オプションが必要です)。
253
+ *
254
+ * - ImGuiPopupFlags.NoOpenOverExistingPopup
255
+ * で同じ階層に既存のポップアップがあれば開かないようにできます。OpenPopup() 前に !IsPopupOpen("",
256
+ * ImGuiPopupFlags.AnyPopupId)
257
+ * を確認することなどと同等です。
258
+ *
259
+ * - BeginPopup() 後の IsWindowAppearing() で開いた直後か判断できます。
260
+ *
261
+ * - 重要:'int mouse_button = 1' を受け取る旧 API との互換性のため、OpenPopupOnItemClick() の
262
+ * flags は例外的に 1(==
263
+ * ImGuiPopupFlags.MouseButtonRight)が既定です。ポップアップを開いた状態にするために呼びます(毎フレーム呼ばないでくだ
264
+ * さい!)。
265
+ * @ko
266
+ * 팝업: 열기/닫기 함수.
267
+ *
268
+ * - OpenPopup()은 팝업 상태를 열림으로 설정합니다. ImGuiPopupFlags로 열기 옵션을 지정할 수 있습니다.
269
+ *
270
+ * - 모달이 아니면 바깥 아무 곳이나 클릭하거나 ESCAPE를 눌러 닫을 수 있습니다.
271
+ *
272
+ * - CloseCurrentPopup()은 BeginPopup()/EndPopup() 범위 안에서 수동으로 닫을 때 사용합니다.
273
+ *
274
+ * - Selectable()/MenuItem()은 활성화되면 기본적으로 CloseCurrentPopup()을 호출합니다(수정 필요: 옵션이
275
+ * 필요함).
276
+ *
277
+ * - ImGuiPopupFlags.NoOpenOverExistingPopup을 사용하면 같은 수준에 팝업이 있을 때 추가로 열지 않습니다.
278
+ * OpenPopup() 전에 !IsPopupOpen("", ImGuiPopupFlags.AnyPopupId)를 검사하는 것과 같습니다.
279
+ *
280
+ * - BeginPopup() 이후 IsWindowAppearing()으로 방금 열린 창인지 알 수 있습니다.
281
+ *
282
+ * - 중요: 'int mouse_button = 1' 인수를 받던 이전 API와의 호환성을 위해 OpenPopupOnItemClick()의
283
+ * flags 기본값은 예외적으로 1(== ImGuiPopupFlags.MouseButtonRight)입니다. 팝업을 열린 상태로
284
+ * 표시하려면 호출하세요(매 프레임 호출하지 마세요!).
285
+ *
286
+ * @param str_id - String identifier hashed with the current ID stack to
287
+ * distinguish this item or scope.
288
+ * @zh str_id - 字符串标识符,与当前 ID 栈一起散列以区分此项或作用域。
289
+ * @ja str_id - 現在の ID スタックと組み合わせて項目やスコープを識別する文字列です。
290
+ * @ko str_id - 현재 ID 스택과 함께 해시하여 항목이나 범위를 구별하는 문자열 식별자입니다.
291
+ *
292
+ * @param popup_flags - ImGuiPopupFlags options controlling this operation;
293
+ * combine compatible flag bits with |.
294
+ * @zh popup_flags - 控制此操作的 ImGuiPopupFlags 选项;可用 | 组合兼容的标志位。
295
+ * @ja popup_flags - この操作を制御する ImGuiPopupFlags オプションです。互換性のあるフラグは | で組み合わせます。
296
+ * @ko popup_flags - 이 동작을 제어하는 ImGuiPopupFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
297
+ */
298
+ export declare function OpenPopup(str_id: string | Uint8Array, popup_flags?: number): void;
299
+ /**
300
+ * Mark a popup identified by a numeric ID as open.
301
+ *
302
+ * @zh 将数值 ID 指定的弹出窗口标记为打开。
303
+ * @ja 数値 ID で指定したポップアップを開いた状態にします。
304
+ * @ko 숫자 ID로 지정한 팝업을 열린 상태로 표시합니다.
305
+ *
306
+ * @remarks
307
+ * id overload to facilitate calling from nested stacks
308
+ * @zh
309
+ * ID 重载,便于从嵌套栈中调用。
310
+ * @ja
311
+ * 入れ子のスタックから呼びやすくする ID オーバーロードです。
312
+ * @ko
313
+ * 중첩된 스택에서 쉽게 호출하기 위한 ID 오버로드입니다.
314
+ *
315
+ * @param id - Numeric ID identifying the child window, popup, or selection
316
+ * entry, passed directly without string hashing.
317
+ * @zh id - 标识子窗口、弹窗或选择条目的数值 ID,直接传入而不做字符串散列。
318
+ * @ja id - 子ウィンドウ、ポップアップ、選択項目の数値 ID です。文字列ハッシュを行わず直接使います。
319
+ * @ko id - 자식 창, 팝업 또는 선택 항목의 숫자 ID입니다. 문자열 해시 없이 직접 전달됩니다.
320
+ *
321
+ * @param popup_flags - ImGuiPopupFlags options controlling this operation;
322
+ * combine compatible flag bits with |.
323
+ * @zh popup_flags - 控制此操作的 ImGuiPopupFlags 选项;可用 | 组合兼容的标志位。
324
+ * @ja popup_flags - この操作を制御する ImGuiPopupFlags オプションです。互換性のあるフラグは | で組み合わせます。
325
+ * @ko popup_flags - 이 동작을 제어하는 ImGuiPopupFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
326
+ */
327
+ export declare function OpenPopupID(id: number, popup_flags?: number): void;
328
+ /**
329
+ * Open a popup when the preceding item is clicked.
330
+ *
331
+ * @zh 点击前一个条目时打开弹出窗口。
332
+ * @ja 直前のアイテムがクリックされたときにポップアップを開きます。
333
+ * @ko 이전 항목을 클릭하면 팝업을 엽니다.
334
+ *
335
+ * @remarks
336
+ * helper to open popup when clicked on last item.
337
+ *
338
+ * Default to ImGuiPopupFlags.MouseButtonRight == 1.
339
+ *
340
+ * (note: actually triggers on the mouse _released_ event to be consistent with
341
+ * popup behaviors)
342
+ * @zh
343
+ * 点击最后一个项目时打开弹出窗口的辅助函数。
344
+ *
345
+ * 默认使用 ImGuiPopupFlags.MouseButtonRight == 1。
346
+ *
347
+ * (注意:为与弹出窗口行为一致,实际由鼠标释放事件触发。)
348
+ * @ja
349
+ * 最後の項目のクリックでポップアップを開くヘルパーです。
350
+ *
351
+ * 既定は ImGuiPopupFlags.MouseButtonRight == 1 です。
352
+ *
353
+ * (注:ポップアップの動作と合わせ、実際にはマウスを離したイベントで発火します。)
354
+ * @ko
355
+ * 마지막 항목을 클릭하면 팝업을 여는 헬퍼입니다.
356
+ *
357
+ * 기본값은 ImGuiPopupFlags.MouseButtonRight == 1입니다.(참고: 팝업 동작과 일치하도록 실제로는 마우스를 놓는
358
+ * 이벤트에서 실행됩니다.)
359
+ *
360
+ * @param str_id - Popup ID hashed in the current ID stack; null uses the last
361
+ * item ID for item popups, or the built-in context ID for window/void popups.
362
+ * @zh str_id - 在当前 ID 栈中散列的弹窗 ID;null 对项弹窗使用最后项 ID,对窗口或空白处弹窗使用内置上下文 ID。
363
+ * @ja str_id - 現在の ID スタックでハッシュするポップアップ ID です。null は項目用では直前の ID、ウィンドウ・空白用では既定
364
+ * ID を使います。
365
+ * @ko str_id - 현재 ID 스택에서 해시하는 팝업 ID입니다. null은 항목 팝업에서는 마지막 항목 ID, 창 또는 빈 영역에서는
366
+ * 내장 컨텍스트 ID입니다.
367
+ *
368
+ * @param popup_flags - ImGuiPopupFlags options controlling this operation;
369
+ * combine compatible flag bits with |.
370
+ * @zh popup_flags - 控制此操作的 ImGuiPopupFlags 选项;可用 | 组合兼容的标志位。
371
+ * @ja popup_flags - この操作を制御する ImGuiPopupFlags オプションです。互換性のあるフラグは | で組み合わせます。
372
+ * @ko popup_flags - 이 동작을 제어하는 ImGuiPopupFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
373
+ */
374
+ export declare function OpenPopupOnItemClick(str_id?: string | Uint8Array | null, popup_flags?: number): void;
375
+ /**
376
+ * Close the current popup.
377
+ *
378
+ * @zh 关闭当前弹出窗口。
379
+ * @ja 現在のポップアップを閉じます。
380
+ * @ko 현재 팝업을 닫습니다.
381
+ *
382
+ * @remarks
383
+ * manually close the popup we have begin-ed into.
384
+ * @zh
385
+ * 手动关闭已通过 Begin 进入的当前弹出窗口。
386
+ * @ja
387
+ * Begin で入った現在のポップアップを手動で閉じます。
388
+ * @ko
389
+ * Begin으로 진입한 현재 팝업을 수동으로 닫습니다.
390
+ */
391
+ export declare function CloseCurrentPopup(): void;
392
+ /**
393
+ * Open and begin a context popup for the preceding item.
394
+ *
395
+ * @zh 为前一个条目打开并开始上下文弹出窗口。
396
+ * @ja 直前のアイテムのコンテキストポップアップを開いて開始します。
397
+ * @ko 이전 항목의 컨텍스트 팝업을 열고 시작합니다.
398
+ *
399
+ * @remarks
400
+ * This no-argument helper opens a context menu on right-button release over the
401
+ * preceding item. It fixes `str_id = null` and `popup_flags = 1`, so the
402
+ * preceding item must provide an ID.
403
+ *
404
+ * - After an item without an ID, such as `Text()`, call
405
+ * `BeginPopupContextItemEx(id, flags)` with an explicit ID instead.
406
+ * - Use that `Ex` variant to configure the mouse button or other
407
+ * `ImGuiPopupFlags`. These are popup flags, unlike the window flags accepted
408
+ * by `BeginPopup()`; include the right-button flag when combining options for
409
+ * right-click activation.
410
+ * - Submit popup contents and call `EndPopup()` only when the begin call
411
+ * returns `true`.
412
+ * @zh
413
+ * 此无参数辅助函数在前一个条目上释放鼠标右键时打开上下文菜单。它固定使用 `str_id = null` 和 `popup_flags =
414
+ * 1`,因此前一个条目必须提供 ID。
415
+ *
416
+ * - 对于 `Text()` 等没有 ID 的条目,请改用 `BeginPopupContextItemEx(id, flags)` 并显式指定 ID。
417
+ * - 要配置鼠标按键或其他 `ImGuiPopupFlags`,也须使用该 `Ex` 版本。这里接受弹窗标志,与 `BeginPopup()`
418
+ * 的窗口标志不同;组合右键触发选项时须包含右键标志。
419
+ * - 仅当开始调用返回 `true` 时提交弹窗内容并调用 `EndPopup()`。
420
+ * @ja
421
+ * この引数なしのヘルパーは、直前の項目上で右ボタンを離したときにコンテキストメニューを開きます。`str_id = null` と `popup_flags
422
+ * = 1` を使うため、直前の項目に ID が必要です。
423
+ *
424
+ * - `Text()` など ID のない項目には、ID を明示して `BeginPopupContextItemEx(id, flags)`
425
+ * を呼んでください。
426
+ * - マウスボタンや他の `ImGuiPopupFlags` を設定する場合も `Ex` 版を使います。`BeginPopup()`
427
+ * のウィンドウフラグとは異なるポップアップフラグです。右クリック用の設定を組み合わせる場合は右ボタンのフラグを含めます。
428
+ * - 開始呼び出しが `true` の場合だけ内容を送信し、`EndPopup()` を呼びます。
429
+ * @ko
430
+ * 이 인수 없는 헬퍼는 이전 항목 위에서 오른쪽 마우스 버튼을 놓을 때 컨텍스트 메뉴를 엽니다. `str_id = null`과
431
+ * `popup_flags = 1`을 사용하므로 이전 항목에 ID가 있어야 합니다.
432
+ *
433
+ * - `Text()`처럼 ID가 없는 항목 뒤에서는 명시적 ID로 `BeginPopupContextItemEx(id, flags)`를
434
+ * 호출하세요.
435
+ * - 마우스 버튼이나 다른 `ImGuiPopupFlags`를 설정할 때도 `Ex` 버전을 사용합니다. 이는 `BeginPopup()`의 창
436
+ * 플래그와 다른 팝업 플래그이며, 오른쪽 클릭 옵션을 조합할 때 오른쪽 버튼 플래그를 포함해야 합니다.
437
+ * - 시작 호출이 `true`를 반환할 때만 팝업 내용을 제출하고 `EndPopup()`를 호출하세요.
438
+ *
439
+ * @returns True when this scope is open/active and its contents may be
440
+ * submitted. Call EndPopup() only when true; on false, skip both contents and
441
+ * the matching end.
442
+ * @zh 此作用域打开或激活且可提交内容时返回 true。仅为 true 时调用 EndPopup();为 false 时跳过内容和配对结束调用。
443
+ * @ja スコープが開いて内容を描ける場合は true です。true の場合だけ EndPopup() を呼び、false
444
+ * なら内容と終了呼び出しを省略します。
445
+ * @ko 범위가 열리거나 활성화되어 내용을 제출할 수 있으면 true입니다. true일 때만 EndPopup()를 호출하며 false이면
446
+ * 내용과 종료 호출을 생략합니다.
447
+ */
448
+ export declare function BeginPopupContextItem(): boolean;
449
+ /**
450
+ * Open and begin a context popup for the preceding item.
451
+ *
452
+ * @zh 为前一个条目打开并开始上下文弹出窗口。
453
+ * @ja 直前のアイテムのコンテキストポップアップを開いて開始します。
454
+ * @ko 이전 항목의 컨텍스트 팝업을 열고 시작합니다.
455
+ *
456
+ * @remarks
457
+ * open+begin popup when clicked on last item.
458
+ *
459
+ * Use str_id==null to associate the popup to previous item.
460
+ *
461
+ * If you want to use that on a non-interactive item such as Text() you need to
462
+ * pass in an explicit ID here.
463
+ *
464
+ * read comments in .cpp!
465
+ * @zh
466
+ * 点击最后一个项目时打开并开始弹出窗口。
467
+ *
468
+ * str_id==null 将弹出窗口关联到前一个项目。
469
+ *
470
+ * 若用于 Text() 等非交互项目,必须显式传入 ID。
471
+ *
472
+ * 请阅读 .cpp 中的注释!
473
+ * @ja
474
+ * 最後の項目をクリックしたときにポップアップを開いて開始します。
475
+ *
476
+ * str_id==null で直前の項目に関連付けます。
477
+ *
478
+ * Text() など非対話的な項目に使う場合は明示的な ID が必要です。
479
+ *
480
+ * .cpp のコメントを読んでください!
481
+ * @ko
482
+ * 마지막 항목을 클릭하면 팝업을 열고 시작합니다.
483
+ *
484
+ * str_id==null이면 이전 항목에 연결합니다.
485
+ *
486
+ * Text() 같은 비대화형 항목에 사용하려면 명시적인 ID를 전달해야 합니다.
487
+ *
488
+ * .cpp의 주석을 읽으세요!
489
+ *
490
+ * @param str_id - Popup ID hashed in the current ID stack; null uses the last
491
+ * item ID for item popups, or the built-in context ID for window/void popups.
492
+ * @zh str_id - 在当前 ID 栈中散列的弹窗 ID;null 对项弹窗使用最后项 ID,对窗口或空白处弹窗使用内置上下文 ID。
493
+ * @ja str_id - 現在の ID スタックでハッシュするポップアップ ID です。null は項目用では直前の ID、ウィンドウ・空白用では既定
494
+ * ID を使います。
495
+ * @ko str_id - 현재 ID 스택에서 해시하는 팝업 ID입니다. null은 항목 팝업에서는 마지막 항목 ID, 창 또는 빈 영역에서는
496
+ * 내장 컨텍스트 ID입니다.
497
+ *
498
+ * @param popup_flags - ImGuiPopupFlags options controlling this operation;
499
+ * combine compatible flag bits with |.
500
+ * @zh popup_flags - 控制此操作的 ImGuiPopupFlags 选项;可用 | 组合兼容的标志位。
501
+ * @ja popup_flags - この操作を制御する ImGuiPopupFlags オプションです。互換性のあるフラグは | で組み合わせます。
502
+ * @ko popup_flags - 이 동작을 제어하는 ImGuiPopupFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
503
+ *
504
+ * @returns True when this scope is open/active and its contents may be
505
+ * submitted. Call EndPopup() only when true; on false, skip both contents and
506
+ * the matching end.
507
+ * @zh 此作用域打开或激活且可提交内容时返回 true。仅为 true 时调用 EndPopup();为 false 时跳过内容和配对结束调用。
508
+ * @ja スコープが開いて内容を描ける場合は true です。true の場合だけ EndPopup() を呼び、false
509
+ * なら内容と終了呼び出しを省略します。
510
+ * @ko 범위가 열리거나 활성화되어 내용을 제출할 수 있으면 true입니다. true일 때만 EndPopup()를 호출하며 false이면
511
+ * 내용과 종료 호출을 생략합니다.
512
+ */
513
+ export declare function BeginPopupContextItemEx(str_id?: string | Uint8Array | null, popup_flags?: number): boolean;
514
+ /**
515
+ * Open and begin a context popup on right-click release over the current
516
+ * window.
517
+ *
518
+ * @zh 在当前窗口上释放鼠标右键时打开并开始上下文弹出菜单。
519
+ * @ja 現在のウィンドウ上で右ボタンを離すとコンテキストポップアップを開いて開始します。
520
+ * @ko 현재 창 위에서 마우스 오른쪽 버튼을 놓으면 컨텍스트 팝업을 열고 시작합니다.
521
+ *
522
+ * @remarks
523
+ * Implied str_id = null, popup_flags = 1
524
+ * @zh
525
+ * 隐含参数:str_id = null, popup_flags = 1。
526
+ * @ja
527
+ * 暗黙の引数:str_id = null, popup_flags = 1。
528
+ * @ko
529
+ * 암묵적 인수: str_id = null, popup_flags = 1.
530
+ *
531
+ * @returns True when this scope is open/active and its contents may be
532
+ * submitted. Call EndPopup() only when true; on false, skip both contents and
533
+ * the matching end.
534
+ * @zh 此作用域打开或激活且可提交内容时返回 true。仅为 true 时调用 EndPopup();为 false 时跳过内容和配对结束调用。
535
+ * @ja スコープが開いて内容を描ける場合は true です。true の場合だけ EndPopup() を呼び、false
536
+ * なら内容と終了呼び出しを省略します。
537
+ * @ko 범위가 열리거나 활성화되어 내용을 제출할 수 있으면 true입니다. true일 때만 EndPopup()를 호출하며 false이면
538
+ * 내용과 종료 호출을 생략합니다.
539
+ */
540
+ export declare function BeginPopupContextWindow(): boolean;
541
+ /**
542
+ * Open and begin a context popup for the current window.
543
+ *
544
+ * @zh 为当前窗口打开并开始上下文弹出窗口。
545
+ * @ja 現在のウィンドウのコンテキストポップアップを開いて開始します。
546
+ * @ko 현재 창의 컨텍스트 팝업을 열고 시작합니다.
547
+ *
548
+ * @remarks
549
+ * open+begin popup when clicked on current window.
550
+ * @zh
551
+ * 点击当前窗口时打开并开始弹出窗口。
552
+ * @ja
553
+ * 現在のウィンドウをクリックしたときにポップアップを開いて開始します。
554
+ * @ko
555
+ * 현재 창을 클릭하면 팝업을 열고 시작합니다.
556
+ *
557
+ * @param str_id - Popup ID hashed in the current ID stack; null uses the last
558
+ * item ID for item popups, or the built-in context ID for window/void popups.
559
+ * @zh str_id - 在当前 ID 栈中散列的弹窗 ID;null 对项弹窗使用最后项 ID,对窗口或空白处弹窗使用内置上下文 ID。
560
+ * @ja str_id - 現在の ID スタックでハッシュするポップアップ ID です。null は項目用では直前の ID、ウィンドウ・空白用では既定
561
+ * ID を使います。
562
+ * @ko str_id - 현재 ID 스택에서 해시하는 팝업 ID입니다. null은 항목 팝업에서는 마지막 항목 ID, 창 또는 빈 영역에서는
563
+ * 내장 컨텍스트 ID입니다.
564
+ *
565
+ * @param popup_flags - ImGuiPopupFlags options controlling this operation;
566
+ * combine compatible flag bits with |.
567
+ * @zh popup_flags - 控制此操作的 ImGuiPopupFlags 选项;可用 | 组合兼容的标志位。
568
+ * @ja popup_flags - この操作を制御する ImGuiPopupFlags オプションです。互換性のあるフラグは | で組み合わせます。
569
+ * @ko popup_flags - 이 동작을 제어하는 ImGuiPopupFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
570
+ *
571
+ * @returns True when this scope is open/active and its contents may be
572
+ * submitted. Call EndPopup() only when true; on false, skip both contents and
573
+ * the matching end.
574
+ * @zh 此作用域打开或激活且可提交内容时返回 true。仅为 true 时调用 EndPopup();为 false 时跳过内容和配对结束调用。
575
+ * @ja スコープが開いて内容を描ける場合は true です。true の場合だけ EndPopup() を呼び、false
576
+ * なら内容と終了呼び出しを省略します。
577
+ * @ko 범위가 열리거나 활성화되어 내용을 제출할 수 있으면 true입니다. true일 때만 EndPopup()를 호출하며 false이면
578
+ * 내용과 종료 호출을 생략합니다.
579
+ */
580
+ export declare function BeginPopupContextWindowEx(str_id?: string | Uint8Array | null, popup_flags?: number): boolean;
581
+ /**
582
+ * Open and begin a context popup on right-click release outside all windows.
583
+ *
584
+ * @zh 在所有窗口之外释放鼠标右键时打开并开始上下文弹出菜单。
585
+ * @ja すべてのウィンドウの外で右ボタンを離すとコンテキストポップアップを開いて開始します。
586
+ * @ko 모든 창 밖에서 마우스 오른쪽 버튼을 놓으면 컨텍스트 팝업을 열고 시작합니다.
587
+ *
588
+ * @remarks
589
+ * Implied str_id = null, popup_flags = 1
590
+ * @zh
591
+ * 隐含参数:str_id = null, popup_flags = 1。
592
+ * @ja
593
+ * 暗黙の引数:str_id = null, popup_flags = 1。
594
+ * @ko
595
+ * 암묵적 인수: str_id = null, popup_flags = 1.
596
+ *
597
+ * @returns True when this scope is open/active and its contents may be
598
+ * submitted. Call EndPopup() only when true; on false, skip both contents and
599
+ * the matching end.
600
+ * @zh 此作用域打开或激活且可提交内容时返回 true。仅为 true 时调用 EndPopup();为 false 时跳过内容和配对结束调用。
601
+ * @ja スコープが開いて内容を描ける場合は true です。true の場合だけ EndPopup() を呼び、false
602
+ * なら内容と終了呼び出しを省略します。
603
+ * @ko 범위가 열리거나 활성화되어 내용을 제출할 수 있으면 true입니다. true일 때만 EndPopup()를 호출하며 false이면
604
+ * 내용과 종료 호출을 생략합니다.
605
+ */
606
+ export declare function BeginPopupContextVoid(): boolean;
607
+ /**
608
+ * Open and begin a context popup outside all windows.
609
+ *
610
+ * @zh 在所有窗口之外打开并开始上下文弹出窗口。
611
+ * @ja すべてのウィンドウの外側でコンテキストポップアップを開いて開始します。
612
+ * @ko 모든 창 바깥에서 컨텍스트 팝업을 열고 시작합니다.
613
+ *
614
+ * @remarks
615
+ * open+begin popup when clicked in void (where there are no windows).
616
+ * @zh
617
+ * 点击空白区域(没有窗口的地方)时打开并开始弹出窗口。
618
+ * @ja
619
+ * 空白領域(ウィンドウのない場所)をクリックしたときにポップアップを開いて開始します。
620
+ * @ko
621
+ * 빈 영역(창이 없는 곳)을 클릭하면 팝업을 열고 시작합니다.
622
+ *
623
+ * @param str_id - Popup ID hashed in the current ID stack; null uses the last
624
+ * item ID for item popups, or the built-in context ID for window/void popups.
625
+ * @zh str_id - 在当前 ID 栈中散列的弹窗 ID;null 对项弹窗使用最后项 ID,对窗口或空白处弹窗使用内置上下文 ID。
626
+ * @ja str_id - 現在の ID スタックでハッシュするポップアップ ID です。null は項目用では直前の ID、ウィンドウ・空白用では既定
627
+ * ID を使います。
628
+ * @ko str_id - 현재 ID 스택에서 해시하는 팝업 ID입니다. null은 항목 팝업에서는 마지막 항목 ID, 창 또는 빈 영역에서는
629
+ * 내장 컨텍스트 ID입니다.
630
+ *
631
+ * @param popup_flags - ImGuiPopupFlags options controlling this operation;
632
+ * combine compatible flag bits with |.
633
+ * @zh popup_flags - 控制此操作的 ImGuiPopupFlags 选项;可用 | 组合兼容的标志位。
634
+ * @ja popup_flags - この操作を制御する ImGuiPopupFlags オプションです。互換性のあるフラグは | で組み合わせます。
635
+ * @ko popup_flags - 이 동작을 제어하는 ImGuiPopupFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
636
+ *
637
+ * @returns True when this scope is open/active and its contents may be
638
+ * submitted. Call EndPopup() only when true; on false, skip both contents and
639
+ * the matching end.
640
+ * @zh 此作用域打开或激活且可提交内容时返回 true。仅为 true 时调用 EndPopup();为 false 时跳过内容和配对结束调用。
641
+ * @ja スコープが開いて内容を描ける場合は true です。true の場合だけ EndPopup() を呼び、false
642
+ * なら内容と終了呼び出しを省略します。
643
+ * @ko 범위가 열리거나 활성화되어 내용을 제출할 수 있으면 true입니다. true일 때만 EndPopup()를 호출하며 false이면
644
+ * 내용과 종료 호출을 생략합니다.
645
+ */
646
+ export declare function BeginPopupContextVoidEx(str_id?: string | Uint8Array | null, popup_flags?: number): boolean;
647
+ /**
648
+ * Test whether a popup is open.
649
+ *
650
+ * @zh 判断弹出窗口是否已打开。
651
+ * @ja ポップアップが開いているかを調べます。
652
+ * @ko 팝업이 열려 있는지 확인합니다.
653
+ *
654
+ * @remarks
655
+ * - IsPopupOpen(): return true if the popup is open at the current BeginPopup()
656
+ * level of the popup stack.
657
+ *
658
+ * - IsPopupOpen() with ImGuiPopupFlags.AnyPopupId: return true if any popup is
659
+ * open at the current BeginPopup() level of the popup stack.
660
+ *
661
+ * - IsPopupOpen() with ImGuiPopupFlags.AnyPopupId +
662
+ * ImGuiPopupFlags.AnyPopupLevel: return true if any popup is open.
663
+ *
664
+ * return true if the popup is open.
665
+ * @zh
666
+ * 弹出窗口:查询函数。
667
+ *
668
+ * - IsPopupOpen():指定弹出窗口在弹出栈当前 BeginPopup() 层级打开时返回 true。
669
+ *
670
+ * - 带 ImGuiPopupFlags.AnyPopupId:当前 BeginPopup() 层级有任意弹出窗口打开时返回 true。
671
+ *
672
+ * - 带 ImGuiPopupFlags.AnyPopupId + ImGuiPopupFlags.AnyPopupLevel:有任意弹出窗口打开时返回
673
+ * true。弹出窗口打开时返回 true。
674
+ * @ja
675
+ * ポップアップ:照会関数。
676
+ *
677
+ * - IsPopupOpen() はポップアップスタックの現在の BeginPopup() 階層で対象が開いていれば true を返します。
678
+ *
679
+ * - ImGuiPopupFlags.AnyPopupId を付けると現在の階層に任意のポップアップが開いていれば true。
680
+ *
681
+ * - ImGuiPopupFlags.AnyPopupId + ImGuiPopupFlags.AnyPopupLevel
682
+ * を付けると、どこかにポップアップが開いていれば true です。ポップアップが開いている場合に true を返します。
683
+ * @ko
684
+ * 팝업: 조회 함수.
685
+ *
686
+ * - IsPopupOpen()은 팝업 스택의 현재 BeginPopup() 수준에서 해당 팝업이 열려 있으면 true를 반환합니다.
687
+ *
688
+ * - ImGuiPopupFlags.AnyPopupId를 지정하면 현재 수준에 아무 팝업이나 열려 있으면 true입니다.
689
+ *
690
+ * - ImGuiPopupFlags.AnyPopupId + ImGuiPopupFlags.AnyPopupLevel을 지정하면 어느 수준에서든
691
+ * 팝업이 열려 있으면 true입니다. 팝업이 열려 있으면 true를 반환합니다.
692
+ *
693
+ * @param str_id - String identifier hashed with the current ID stack to
694
+ * distinguish this item or scope.
695
+ * @zh str_id - 字符串标识符,与当前 ID 栈一起散列以区分此项或作用域。
696
+ * @ja str_id - 現在の ID スタックと組み合わせて項目やスコープを識別する文字列です。
697
+ * @ko str_id - 현재 ID 스택과 함께 해시하여 항목이나 범위를 구별하는 문자열 식별자입니다.
698
+ *
699
+ * @param flags - ImGuiPopupFlags options controlling this operation; combine
700
+ * compatible flag bits with |.
701
+ * @zh flags - 控制此操作的 ImGuiPopupFlags 选项;可用 | 组合兼容的标志位。
702
+ * @ja flags - この操作を制御する ImGuiPopupFlags オプションです。互換性のあるフラグは | で組み合わせます。
703
+ * @ko flags - 이 동작을 제어하는 ImGuiPopupFlags 옵션입니다. 호환되는 비트는 |로 결합합니다.
704
+ *
705
+ * @returns True if a popup matching the ID and query flags is open in the
706
+ * current popup scope; false otherwise.
707
+ * @zh 当前弹窗作用域中存在匹配 ID 和查询标志的已打开弹窗时为 true,否则为 false。
708
+ * @ja 現在のポップアップスコープで ID と検索フラグに一致するものが開いている場合は true、それ以外は false です。
709
+ * @ko 현재 팝업 범위에서 ID와 조회 플래그가 일치하는 팝업이 열려 있으면 true이며 아니면 false입니다.
710
+ */
711
+ export declare function IsPopupOpen(str_id: string | Uint8Array, flags?: number): boolean;