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,506 @@
1
+ import type { ImVec2Value, ImVec4Like } from '../types';
2
+ /**
3
+ * Display text without format-string processing.
4
+ *
5
+ * @zh 显示文本,不进行格式字符串处理。
6
+ * @ja 書式文字列の処理をせずにテキストを表示します。
7
+ * @ko 서식 문자열 처리 없이 텍스트를 표시합니다.
8
+ *
9
+ * @remarks
10
+ * raw text without formatting.
11
+ *
12
+ * Roughly equivalent to Text("%s", text) but: A) doesn't require null
13
+ * terminated string if 'text_end' is specified, B) it's faster, no memory copy
14
+ * is done, no buffer size limits, recommended for long chunks of text.
15
+ *
16
+ * Implied text_end = null
17
+ * @zh
18
+ * 不带格式化的原始文本。
19
+ *
20
+ * 大致等同于 Text("%s", text),但:A) 指定 'text_end' 时不要求字符串以空字符结尾;B)
21
+ * 更快,不进行内存复制,没有缓冲区大小限制,推荐用于长段文本。
22
+ *
23
+ * 隐含参数:text_end = null。
24
+ * @ja
25
+ * 書式設定なしの生テキストです。
26
+ *
27
+ * ほぼ Text("%s", text) と同等ですが、A) 'text_end' を指定すれば文字列のヌル終端が不要、B)
28
+ * 高速でメモリコピーを行わずバッファーサイズ制限もないため、長いテキストに推奨します。
29
+ *
30
+ * 暗黙の引数:text_end = null。
31
+ * @ko
32
+ * 서식 없는 원시 텍스트입니다.
33
+ *
34
+ * 대략 Text("%s", text)와 같지만 A) 'text_end'를 지정하면 널 종료 문자열이 필요 없고, B) 더 빠르며 메모리
35
+ * 복사가 없고 버퍼 크기 제한도 없어 긴 텍스트에 권장됩니다.
36
+ *
37
+ * 암묵적 인수: text_end = null.
38
+ *
39
+ * @param text - UTF-8 text to read. JS strings are encoded for this call; a
40
+ * nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are
41
+ * copied and NUL-terminated.
42
+ * @zh text - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上
43
+ * NUL。
44
+ * @ja text - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
45
+ * は直接渡し、それ以外はコピーして NUL を付けます。
46
+ * @ko text - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는 직접
47
+ * 전달하며 나머지는 복사 후 NUL을 붙입니다.
48
+ */
49
+ export declare function TextUnformatted(text: string | Uint8Array): void;
50
+ /**
51
+ * Display text without format-string processing.
52
+ *
53
+ * @zh 显示文本,不进行格式字符串处理。
54
+ * @ja 書式文字列の処理をせずにテキストを表示します。
55
+ * @ko 서식 문자열 처리 없이 텍스트를 표시합니다.
56
+ *
57
+ * @remarks
58
+ * raw text without formatting.
59
+ *
60
+ * Roughly equivalent to Text("%s", text) but: A) doesn't require null
61
+ * terminated string if 'text_end' is specified, B) it's faster, no memory copy
62
+ * is done, no buffer size limits, recommended for long chunks of text.
63
+ * @zh
64
+ * 不带格式化的原始文本。
65
+ *
66
+ * 大致等同于 Text("%s", text),但:A) 指定 'text_end' 时不要求字符串以空字符结尾;B)
67
+ * 更快,不进行内存复制,没有缓冲区大小限制,推荐用于长段文本。
68
+ * @ja
69
+ * 書式設定なしの生テキストです。
70
+ *
71
+ * ほぼ Text("%s", text) と同等ですが、A) 'text_end' を指定すれば文字列のヌル終端が不要、B)
72
+ * 高速でメモリコピーを行わずバッファーサイズ制限もないため、長いテキストに推奨します。
73
+ * @ko
74
+ * 서식 없는 원시 텍스트입니다.
75
+ *
76
+ * 대략 Text("%s", text)와 같지만 A) 'text_end'를 지정하면 널 종료 문자열이 필요 없고, B) 더 빠르며 메모리
77
+ * 복사가 없고 버퍼 크기 제한도 없어 긴 텍스트에 권장됩니다.
78
+ *
79
+ * @param text - UTF-8 text. With omitted/null text_end, strings are encoded;
80
+ * NUL-terminated nonempty byte views are used directly, other views are
81
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
82
+ * its bytes are read directly and need no NUL terminator.
83
+ * @zh text - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
84
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
85
+ * @ja text - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
86
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
87
+ * @ko text - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는 직접
88
+ * 사용하며,
89
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
90
+ *
91
+ * @param text_end - Exclusive endpoint view, not a length or another string.
92
+ * Explicit begin/end must share one backing buffer and satisfy
93
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
94
+ * An empty end view is valid; neither view needs NUL termination.
95
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
96
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
97
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
98
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
99
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
100
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
101
+ * を満たす必要があります。
102
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
103
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
104
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
105
+ * 만족해야 합니다.
106
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
107
+ */
108
+ export declare function TextUnformattedEx(text: string | Uint8Array, text_end?: null): void;
109
+ /**
110
+ * Display text without format-string processing.
111
+ *
112
+ * @zh 显示文本,不进行格式字符串处理。
113
+ * @ja 書式文字列の処理をせずにテキストを表示します。
114
+ * @ko 서식 문자열 처리 없이 텍스트를 표시합니다.
115
+ *
116
+ * @remarks
117
+ * raw text without formatting.
118
+ *
119
+ * Roughly equivalent to Text("%s", text) but: A) doesn't require null
120
+ * terminated string if 'text_end' is specified, B) it's faster, no memory copy
121
+ * is done, no buffer size limits, recommended for long chunks of text.
122
+ * @zh
123
+ * 不带格式化的原始文本。
124
+ *
125
+ * 大致等同于 Text("%s", text),但:A) 指定 'text_end' 时不要求字符串以空字符结尾;B)
126
+ * 更快,不进行内存复制,没有缓冲区大小限制,推荐用于长段文本。
127
+ * @ja
128
+ * 書式設定なしの生テキストです。
129
+ *
130
+ * ほぼ Text("%s", text) と同等ですが、A) 'text_end' を指定すれば文字列のヌル終端が不要、B)
131
+ * 高速でメモリコピーを行わずバッファーサイズ制限もないため、長いテキストに推奨します。
132
+ * @ko
133
+ * 서식 없는 원시 텍스트입니다.
134
+ *
135
+ * 대략 Text("%s", text)와 같지만 A) 'text_end'를 지정하면 널 종료 문자열이 필요 없고, B) 더 빠르며 메모리
136
+ * 복사가 없고 버퍼 크기 제한도 없어 긴 텍스트에 권장됩니다.
137
+ *
138
+ * @param text - UTF-8 text. With omitted/null text_end, strings are encoded;
139
+ * NUL-terminated nonempty byte views are used directly, other views are
140
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
141
+ * its bytes are read directly and need no NUL terminator.
142
+ * @zh text - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
143
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
144
+ * @ja text - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
145
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
146
+ * @ko text - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는 직접
147
+ * 사용하며,
148
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
149
+ *
150
+ * @param text_end - Exclusive endpoint view, not a length or another string.
151
+ * Explicit begin/end must share one backing buffer and satisfy
152
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
153
+ * An empty end view is valid; neither view needs NUL termination.
154
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
155
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
156
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
157
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
158
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
159
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
160
+ * を満たす必要があります。
161
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
162
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
163
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
164
+ * 만족해야 합니다.
165
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
166
+ */
167
+ export declare function TextUnformattedEx(text: Uint8Array, text_end: Uint8Array): void;
168
+ /**
169
+ * Display text in the specified color.
170
+ *
171
+ * @zh 以指定颜色显示文本。
172
+ * @ja 指定した色でテキストを表示します。
173
+ * @ko 지정한 색상으로 텍스트를 표시합니다.
174
+ *
175
+ * @remarks
176
+ * Equivalent to PushStyleColorImVec4(ImGuiCol.Text, col);
177
+ * TextUnformatted(text); PopStyleColor().
178
+ * @zh
179
+ * 等同于依次调用 PushStyleColorImVec4(ImGuiCol.Text, col)、
180
+ * TextUnformatted(text) 和 PopStyleColor()。
181
+ * @ja
182
+ * PushStyleColorImVec4(ImGuiCol.Text, col)、TextUnformatted(text)、
183
+ * PopStyleColor() を順に呼ぶのと同等です。
184
+ * @ko
185
+ * PushStyleColorImVec4(ImGuiCol.Text, col), TextUnformatted(text),
186
+ * PopStyleColor()를 순서대로 호출하는 것과 같습니다.
187
+ *
188
+ * @param col - Floating-point RGBA color; alpha controls opacity.
189
+ * @zh col - 浮点 RGBA 颜色;alpha 控制不透明度。
190
+ * @ja col - 浮動小数点 RGBA の色です。アルファ値で不透明度を指定します。
191
+ * @ko col - 부동소수점 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
192
+ *
193
+ * @param text - UTF-8 text to read. JS strings are encoded for this call; a
194
+ * nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are
195
+ * copied and NUL-terminated.
196
+ * @zh text - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上
197
+ * NUL。
198
+ * @ja text - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
199
+ * は直接渡し、それ以外はコピーして NUL を付けます。
200
+ * @ko text - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는 직접
201
+ * 전달하며 나머지는 복사 후 NUL을 붙입니다.
202
+ */
203
+ export declare function TextColoredUnformatted(col: ImVec4Like, text: string | Uint8Array): void;
204
+ /**
205
+ * Display text using the disabled-text color.
206
+ *
207
+ * @zh 使用禁用文本颜色显示文本。
208
+ * @ja 無効状態の文字色でテキストを表示します。
209
+ * @ko 비활성 텍스트 색상으로 텍스트를 표시합니다.
210
+ *
211
+ * @remarks
212
+ * Equivalent to PushStyleColorImVec4(ImGuiCol.Text,
213
+ * GetStyleColorVec4(ImGuiCol.TextDisabled)); TextUnformatted(text);
214
+ * PopStyleColor().
215
+ * @zh
216
+ * 等同于依次调用 PushStyleColorImVec4(ImGuiCol.Text,
217
+ * GetStyleColorVec4(ImGuiCol.TextDisabled))、TextUnformatted(text) 和
218
+ * PopStyleColor()。
219
+ * @ja
220
+ * PushStyleColorImVec4(ImGuiCol.Text,
221
+ * GetStyleColorVec4(ImGuiCol.TextDisabled))、
222
+ * TextUnformatted(text)、PopStyleColor() を順に呼ぶのと同等です。
223
+ * @ko
224
+ * PushStyleColorImVec4(ImGuiCol.Text,
225
+ * GetStyleColorVec4(ImGuiCol.TextDisabled)),
226
+ * TextUnformatted(text), PopStyleColor()를 순서대로 호출하는 것과 같습니다.
227
+ *
228
+ * @param text - UTF-8 text to read. JS strings are encoded for this call; a
229
+ * nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are
230
+ * copied and NUL-terminated.
231
+ * @zh text - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上
232
+ * NUL。
233
+ * @ja text - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
234
+ * は直接渡し、それ以外はコピーして NUL を付けます。
235
+ * @ko text - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는 직접
236
+ * 전달하며 나머지는 복사 후 NUL을 붙입니다.
237
+ */
238
+ export declare function TextDisabledUnformatted(text: string | Uint8Array): void;
239
+ /**
240
+ * Display text with word wrapping.
241
+ *
242
+ * @zh 显示自动换行的文本。
243
+ * @ja 折り返し付きでテキストを表示します。
244
+ * @ko 자동 줄바꿈으로 텍스트를 표시합니다.
245
+ *
246
+ * @remarks
247
+ * Equivalent to PushTextWrapPos(0.0); TextUnformatted(text); PopTextWrapPos().
248
+ *
249
+ * Note that this won't work on an auto-resizing window if there's no other
250
+ * widgets to extend the window width; you may need to set a size using
251
+ * SetNextWindowSize().
252
+ * @zh
253
+ * 等同于依次调用 PushTextWrapPos(0.0)、TextUnformatted(text) 和 PopTextWrapPos()。
254
+ *
255
+ * 注意:在自动调整尺寸的窗口中,如果没有其他控件撑开窗口宽度,此函数无法正常工作,可能需要用 SetNextWindowSize() 设置尺寸。
256
+ * @ja
257
+ * PushTextWrapPos(0.0)、TextUnformatted(text)、PopTextWrapPos() を順に呼ぶのと同等です。
258
+ *
259
+ * 自動サイズ調整のウィンドウで、幅を広げる他のウィジェットがない場合は機能しません。
260
+ *
261
+ * SetNextWindowSize() でサイズを設定する必要があるかもしれません。
262
+ * @ko
263
+ * PushTextWrapPos(0.0), TextUnformatted(text), PopTextWrapPos()를 순서대로 호출하는 것과
264
+ * 같습니다.
265
+ *
266
+ * 자동 크기 조절 창에서 너비를 늘려 주는 다른 위젯이 없다면 작동하지 않습니다.
267
+ *
268
+ * SetNextWindowSize()로 크기를 설정해야 할 수 있습니다.
269
+ *
270
+ * @param text - UTF-8 text to read. JS strings are encoded for this call; a
271
+ * nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are
272
+ * copied and NUL-terminated.
273
+ * @zh text - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上
274
+ * NUL。
275
+ * @ja text - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
276
+ * は直接渡し、それ以外はコピーして NUL を付けます。
277
+ * @ko text - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는 직접
278
+ * 전달하며 나머지는 복사 후 NUL을 붙입니다.
279
+ */
280
+ export declare function TextWrappedUnformatted(text: string | Uint8Array): void;
281
+ /**
282
+ * Display text+label aligned the same way as value+label widgets.
283
+ *
284
+ * @zh 显示文本+标签,对齐方式与数值+标签控件相同。
285
+ * @ja テキスト+ラベルを、値+ラベルのウィジェットと同じ配置で表示します。
286
+ * @ko 텍스트+레이블을 값+레이블 위젯과 같은 방식으로 정렬하여 표시합니다.
287
+ *
288
+ * @param label - Widget label; interactive widgets also use it for ID
289
+ * generation. A ## suffix can distinguish IDs without displaying the suffix.
290
+ * @zh label - 控件标签;交互控件也用它生成 ID。可用 ## 后缀区分 ID 而不显示后缀。
291
+ * @ja label - ウィジェットのラベルです。対話型ウィジェットでは ID の生成にも使います。## 接尾辞で表示せずに ID を区別できます。
292
+ * @ko label - 위젯 레이블입니다. 대화형 위젯의 ID 생성에도 사용하며 ## 접미사로 표시 없이 ID를 구별할 수 있습니다.
293
+ *
294
+ * @param text - UTF-8 text to read. JS strings are encoded for this call; a
295
+ * nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are
296
+ * copied and NUL-terminated.
297
+ * @zh text - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上
298
+ * NUL。
299
+ * @ja text - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
300
+ * は直接渡し、それ以外はコピーして NUL を付けます。
301
+ * @ko text - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는 직접
302
+ * 전달하며 나머지는 복사 후 NUL을 붙입니다.
303
+ */
304
+ export declare function LabelTextUnformatted(label: string | Uint8Array, text: string | Uint8Array): void;
305
+ /**
306
+ * Display text preceded by a bullet.
307
+ *
308
+ * @zh 显示带项目符号的文本。
309
+ * @ja 行頭に箇条書き記号を付けてテキストを表示します。
310
+ * @ko 글머리 기호가 붙은 텍스트를 표시합니다.
311
+ *
312
+ * @remarks
313
+ * shortcut for Bullet()+Text()
314
+ * @zh
315
+ * Bullet()+Text() 的快捷操作。
316
+ * @ja
317
+ * Bullet()+Text() のショートカットです。
318
+ * @ko
319
+ * Bullet()+Text()의 단축 함수입니다.
320
+ *
321
+ * @param text - UTF-8 text to read. JS strings are encoded for this call; a
322
+ * nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are
323
+ * copied and NUL-terminated.
324
+ * @zh text - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上
325
+ * NUL。
326
+ * @ja text - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
327
+ * は直接渡し、それ以外はコピーして NUL を付けます。
328
+ * @ko text - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는 직접
329
+ * 전달하며 나머지는 복사 후 NUL을 붙입니다.
330
+ */
331
+ export declare function BulletTextUnformatted(text: string | Uint8Array): void;
332
+ /**
333
+ * Display a text label within a horizontal separator.
334
+ *
335
+ * @zh 在水平分隔线中显示文本标签。
336
+ * @ja 水平の区切り線の中にラベルを表示します。
337
+ * @ko 가로 구분선 안에 텍스트 레이블을 표시합니다.
338
+ *
339
+ * @remarks
340
+ * currently: formatted text with a horizontal line
341
+ * @zh
342
+ * 当前实现:带水平线的格式化文本。
343
+ * @ja
344
+ * 現在の実装:水平線付きの書式設定テキストです。
345
+ * @ko
346
+ * 현재 구현: 수평선이 있는 서식 지정 텍스트입니다.
347
+ *
348
+ * @param label - Widget label; interactive widgets also use it for ID
349
+ * generation. A ## suffix can distinguish IDs without displaying the suffix.
350
+ * @zh label - 控件标签;交互控件也用它生成 ID。可用 ## 后缀区分 ID 而不显示后缀。
351
+ * @ja label - ウィジェットのラベルです。対話型ウィジェットでは ID の生成にも使います。## 接尾辞で表示せずに ID を区別できます。
352
+ * @ko label - 위젯 레이블입니다. 대화형 위젯의 ID 생성에도 사용하며 ## 접미사로 표시 없이 ID를 구별할 수 있습니다.
353
+ */
354
+ export declare function SeparatorText(label: string | Uint8Array): void;
355
+ /**
356
+ * Calculate the size of text.
357
+ *
358
+ * @zh 计算文本尺寸。
359
+ * @ja テキストのサイズを計算します。
360
+ * @ko 텍스트 크기를 계산합니다.
361
+ *
362
+ * @remarks
363
+ * Implied text_end = null, hide_text_after_double_hash = false, wrap_width =
364
+ * -1.0
365
+ * @zh
366
+ * 文本工具。
367
+ *
368
+ * 隐含参数:text_end = null, hide_text_after_double_hash = false, wrap_width =
369
+ * -1.0。
370
+ * @ja
371
+ * テキストユーティリティ。
372
+ *
373
+ * 暗黙の引数:text_end = null, hide_text_after_double_hash = false, wrap_width =
374
+ * -1.0。
375
+ * @ko
376
+ * 텍스트 유틸리티.
377
+ *
378
+ * 암묵적 인수: text_end = null, hide_text_after_double_hash = false, wrap_width =
379
+ * -1.0.
380
+ *
381
+ * @param text - UTF-8 text to read. JS strings are encoded for this call; a
382
+ * nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are
383
+ * copied and NUL-terminated.
384
+ * @zh text - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上
385
+ * NUL。
386
+ * @ja text - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
387
+ * は直接渡し、それ以外はコピーして NUL を付けます。
388
+ * @ko text - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는 직접
389
+ * 전달하며 나머지는 복사 후 NUL을 붙입니다.
390
+ *
391
+ * @returns Measured text extent: copied pixel dimensions {x: width, y: height}.
392
+ * @zh 测量的文字范围的像素尺寸副本 {x: width, y: height}。
393
+ * @ja 測定した文字領域のピクセル寸法を {x: width, y: height} としてコピーします。
394
+ * @ko 측정한 텍스트 영역의 픽셀 크기 복사본 {x: width, y: height}입니다.
395
+ */
396
+ export declare function CalcTextSize(text: string | Uint8Array): ImVec2Value;
397
+ /**
398
+ * Measure text with the current font, optional wrapping, and optional hidden ID
399
+ * suffixes.
400
+ *
401
+ * @zh 使用当前字体测量文本,可选择换行及隐藏 ID 后缀。
402
+ * @ja 現在のフォントでテキストを測定し、折り返しと ID 接尾辞の非表示を必要に応じて適用します。
403
+ * @ko 현재 글꼴로 텍스트를 측정하며 선택적으로 줄바꿈과 ID 접미사 숨김을 적용합니다.
404
+ *
405
+ * @param text - UTF-8 text. With omitted/null text_end, strings are encoded;
406
+ * NUL-terminated nonempty byte views are used directly, other views are
407
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
408
+ * its bytes are read directly and need no NUL terminator.
409
+ * @zh text - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
410
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
411
+ * @ja text - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
412
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
413
+ * @ko text - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는 직접
414
+ * 사용하며,
415
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
416
+ *
417
+ * @param text_end - Exclusive endpoint view, not a length or another string.
418
+ * Explicit begin/end must share one backing buffer and satisfy
419
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
420
+ * An empty end view is valid; neither view needs NUL termination.
421
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
422
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
423
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
424
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
425
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
426
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
427
+ * を満たす必要があります。
428
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
429
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
430
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
431
+ * 만족해야 합니다.
432
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
433
+ *
434
+ * @param hide_text_after_double_hash - Whether text after ## is excluded from
435
+ * size measurement.
436
+ * @zh hide_text_after_double_hash - 测量尺寸时是否排除 ## 之后的文字。
437
+ * @ja hide_text_after_double_hash - ## 以降をサイズ測定から除外するかどうかです。
438
+ * @ko hide_text_after_double_hash - 크기 측정에서 ## 뒤의 텍스트를 제외할지 여부입니다.
439
+ *
440
+ * @param wrap_width - Maximum text width in pixels before wrapping; nonpositive
441
+ * values disable wrapping.
442
+ * @zh wrap_width - 文字换行前的最大像素宽度;非正值禁用换行。
443
+ * @ja wrap_width - 折り返す前の最大ピクセル幅です。0 以下なら折り返しません。
444
+ * @ko wrap_width - 줄바꿈 전 최대 텍스트 픽셀 너비입니다. 0 이하는 줄바꿈을 비활성화합니다.
445
+ *
446
+ * @returns Measured text extent: copied pixel dimensions {x: width, y: height}.
447
+ * @zh 测量的文字范围的像素尺寸副本 {x: width, y: height}。
448
+ * @ja 測定した文字領域のピクセル寸法を {x: width, y: height} としてコピーします。
449
+ * @ko 측정한 텍스트 영역의 픽셀 크기 복사본 {x: width, y: height}입니다.
450
+ */
451
+ export declare function CalcTextSizeEx(text: string | Uint8Array, text_end?: null, hide_text_after_double_hash?: boolean, wrap_width?: number): ImVec2Value;
452
+ /**
453
+ * Measure text with the current font, optional wrapping, and optional hidden ID
454
+ * suffixes.
455
+ *
456
+ * @zh 使用当前字体测量文本,可选择换行及隐藏 ID 后缀。
457
+ * @ja 現在のフォントでテキストを測定し、折り返しと ID 接尾辞の非表示を必要に応じて適用します。
458
+ * @ko 현재 글꼴로 텍스트를 측정하며 선택적으로 줄바꿈과 ID 접미사 숨김을 적용합니다.
459
+ *
460
+ * @param text - UTF-8 text. With omitted/null text_end, strings are encoded;
461
+ * NUL-terminated nonempty byte views are used directly, other views are
462
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
463
+ * its bytes are read directly and need no NUL terminator.
464
+ * @zh text - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
465
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
466
+ * @ja text - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
467
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
468
+ * @ko text - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는 직접
469
+ * 사용하며,
470
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
471
+ *
472
+ * @param text_end - Exclusive endpoint view, not a length or another string.
473
+ * Explicit begin/end must share one backing buffer and satisfy
474
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
475
+ * An empty end view is valid; neither view needs NUL termination.
476
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
477
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
478
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
479
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
480
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
481
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
482
+ * を満たす必要があります。
483
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
484
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
485
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
486
+ * 만족해야 합니다.
487
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
488
+ *
489
+ * @param hide_text_after_double_hash - Whether text after ## is excluded from
490
+ * size measurement.
491
+ * @zh hide_text_after_double_hash - 测量尺寸时是否排除 ## 之后的文字。
492
+ * @ja hide_text_after_double_hash - ## 以降をサイズ測定から除外するかどうかです。
493
+ * @ko hide_text_after_double_hash - 크기 측정에서 ## 뒤의 텍스트를 제외할지 여부입니다.
494
+ *
495
+ * @param wrap_width - Maximum text width in pixels before wrapping; nonpositive
496
+ * values disable wrapping.
497
+ * @zh wrap_width - 文字换行前的最大像素宽度;非正值禁用换行。
498
+ * @ja wrap_width - 折り返す前の最大ピクセル幅です。0 以下なら折り返しません。
499
+ * @ko wrap_width - 줄바꿈 전 최대 텍스트 픽셀 너비입니다. 0 이하는 줄바꿈을 비활성화합니다.
500
+ *
501
+ * @returns Measured text extent: copied pixel dimensions {x: width, y: height}.
502
+ * @zh 测量的文字范围的像素尺寸副本 {x: width, y: height}。
503
+ * @ja 測定した文字領域のピクセル寸法を {x: width, y: height} としてコピーします。
504
+ * @ko 측정한 텍스트 영역의 픽셀 크기 복사본 {x: width, y: height}입니다.
505
+ */
506
+ export declare function CalcTextSizeEx(text: Uint8Array, text_end: Uint8Array, hide_text_after_double_hash?: boolean, wrap_width?: number): ImVec2Value;