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,594 @@
1
+ import { native } from '../internal/native';
2
+ import type { ImVec2Like, ImDrawList, ImFont } from '../types';
3
+
4
+ /**
5
+ * Append text to the draw list using the current font and font size.
6
+ *
7
+ * @zh 使用当前字体和字号向绘制列表添加文本。
8
+ * @ja 現在のフォントとサイズで描画リストにテキストを追加します。
9
+ * @ko 현재 글꼴과 글꼴 크기로 그리기 목록에 텍스트를 추가합니다.
10
+ *
11
+ * @remarks
12
+ * Implied text_end = null
13
+ * @zh
14
+ * 隐含参数:text_end = null。
15
+ * @ja
16
+ * 暗黙の引数:text_end = null。
17
+ * @ko
18
+ * 암묵적 인수: text_end = null.
19
+ *
20
+ * @param self - ImDrawList handle on which this method operates.
21
+ * @zh self - 此方法操作的 ImDrawList 句柄。
22
+ * @ja self - このメソッドの操作対象となる ImDrawList ハンドルです。
23
+ * @ko self - 이 메서드가 조작할 ImDrawList 핸들입니다.
24
+ *
25
+ * @param pos - Position in absolute screen coordinates, in pixels.
26
+ * @zh pos - 绝对屏幕坐标位置,单位为像素。
27
+ * @ja pos - 絶対スクリーン座標での位置です。単位はピクセルです。
28
+ * @ko pos - 절대 화면 좌표의 위치이며 단위는 픽셀입니다.
29
+ *
30
+ * @param col - Packed ImU32 RGBA color; alpha controls opacity.
31
+ * @zh col - 打包 ImU32 RGBA 颜色;alpha 控制不透明度。
32
+ * @ja col - パック済み ImU32 RGBA の色です。アルファ値で不透明度を指定します。
33
+ * @ko col - 패킹된 ImU32 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
34
+ *
35
+ * @param text_begin - UTF-8 text to read. JS strings are encoded for this call;
36
+ * a nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes
37
+ * are copied and NUL-terminated.
38
+ * @zh text_begin - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array
39
+ * 直接传入,否则复制字节并补上 NUL。
40
+ * @ja text_begin - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
41
+ * は直接渡し、それ以外はコピーして NUL を付けます。
42
+ * @ko text_begin - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는
43
+ * 직접 전달하며 나머지는 복사 후 NUL을 붙입니다.
44
+ */
45
+ export function ImDrawList_AddText(
46
+ self: ImDrawList,
47
+ pos: ImVec2Like,
48
+ col: number,
49
+ text_begin: string | Uint8Array,
50
+ ): void {
51
+ native.ImDrawList_AddText(self, pos, col, text_begin);
52
+ }
53
+
54
+ /**
55
+ * Append text to the draw list using the current font and font size.
56
+ *
57
+ * @zh 使用当前字体和字号向绘制列表添加文本。
58
+ * @ja 現在のフォントとサイズで描画リストにテキストを追加します。
59
+ * @ko 현재 글꼴과 글꼴 크기로 그리기 목록에 텍스트를 추가합니다.
60
+ *
61
+ * @param self - ImDrawList handle on which this method operates.
62
+ * @zh self - 此方法操作的 ImDrawList 句柄。
63
+ * @ja self - このメソッドの操作対象となる ImDrawList ハンドルです。
64
+ * @ko self - 이 메서드가 조작할 ImDrawList 핸들입니다.
65
+ *
66
+ * @param pos - Position in absolute screen coordinates, in pixels.
67
+ * @zh pos - 绝对屏幕坐标位置,单位为像素。
68
+ * @ja pos - 絶対スクリーン座標での位置です。単位はピクセルです。
69
+ * @ko pos - 절대 화면 좌표의 위치이며 단위는 픽셀입니다.
70
+ *
71
+ * @param col - Packed ImU32 RGBA color; alpha controls opacity.
72
+ * @zh col - 打包 ImU32 RGBA 颜色;alpha 控制不透明度。
73
+ * @ja col - パック済み ImU32 RGBA の色です。アルファ値で不透明度を指定します。
74
+ * @ko col - 패킹된 ImU32 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
75
+ *
76
+ * @param text_begin - UTF-8 text. With omitted/null text_end, strings are
77
+ * encoded;
78
+ * NUL-terminated nonempty byte views are used directly, other views are
79
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
80
+ * its bytes are read directly and need no NUL terminator.
81
+ * @zh text_begin - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
82
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
83
+ * @ja text_begin - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
84
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
85
+ * @ko text_begin - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는
86
+ * 직접 사용하며,
87
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
88
+ *
89
+ * @param text_end - Exclusive endpoint view, not a length or another string.
90
+ * Explicit begin/end must share one backing buffer and satisfy
91
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
92
+ * An empty end view is valid; neither view needs NUL termination.
93
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
94
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
95
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
96
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
97
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
98
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
99
+ * を満たす必要があります。
100
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
101
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
102
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
103
+ * 만족해야 합니다.
104
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
105
+ */
106
+ export function ImDrawList_AddTextEx(
107
+ self: ImDrawList,
108
+ pos: ImVec2Like,
109
+ col: number,
110
+ text_begin: string | Uint8Array,
111
+ text_end?: null,
112
+ ): void;
113
+
114
+ /**
115
+ * Append text to the draw list using the current font and font size.
116
+ *
117
+ * @zh 使用当前字体和字号向绘制列表添加文本。
118
+ * @ja 現在のフォントとサイズで描画リストにテキストを追加します。
119
+ * @ko 현재 글꼴과 글꼴 크기로 그리기 목록에 텍스트를 추가합니다.
120
+ *
121
+ * @param self - ImDrawList handle on which this method operates.
122
+ * @zh self - 此方法操作的 ImDrawList 句柄。
123
+ * @ja self - このメソッドの操作対象となる ImDrawList ハンドルです。
124
+ * @ko self - 이 메서드가 조작할 ImDrawList 핸들입니다.
125
+ *
126
+ * @param pos - Position in absolute screen coordinates, in pixels.
127
+ * @zh pos - 绝对屏幕坐标位置,单位为像素。
128
+ * @ja pos - 絶対スクリーン座標での位置です。単位はピクセルです。
129
+ * @ko pos - 절대 화면 좌표의 위치이며 단위는 픽셀입니다.
130
+ *
131
+ * @param col - Packed ImU32 RGBA color; alpha controls opacity.
132
+ * @zh col - 打包 ImU32 RGBA 颜色;alpha 控制不透明度。
133
+ * @ja col - パック済み ImU32 RGBA の色です。アルファ値で不透明度を指定します。
134
+ * @ko col - 패킹된 ImU32 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
135
+ *
136
+ * @param text_begin - UTF-8 text. With omitted/null text_end, strings are
137
+ * encoded;
138
+ * NUL-terminated nonempty byte views are used directly, other views are
139
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
140
+ * its bytes are read directly and need no NUL terminator.
141
+ * @zh text_begin - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
142
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
143
+ * @ja text_begin - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
144
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
145
+ * @ko text_begin - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는
146
+ * 직접 사용하며,
147
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
148
+ *
149
+ * @param text_end - Exclusive endpoint view, not a length or another string.
150
+ * Explicit begin/end must share one backing buffer and satisfy
151
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
152
+ * An empty end view is valid; neither view needs NUL termination.
153
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
154
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
155
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
156
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
157
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
158
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
159
+ * を満たす必要があります。
160
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
161
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
162
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
163
+ * 만족해야 합니다.
164
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
165
+ */
166
+ export function ImDrawList_AddTextEx(
167
+ self: ImDrawList,
168
+ pos: ImVec2Like,
169
+ col: number,
170
+ text_begin: Uint8Array,
171
+ text_end: Uint8Array,
172
+ ): void;
173
+ /**
174
+ * Append text to the draw list using the current font and font size.
175
+ *
176
+ * @zh 使用当前字体和字号向绘制列表添加文本。
177
+ * @ja 現在のフォントとサイズで描画リストにテキストを追加します。
178
+ * @ko 현재 글꼴과 글꼴 크기로 그리기 목록에 텍스트를 추가합니다.
179
+ *
180
+ * @param self - ImDrawList handle on which this method operates.
181
+ * @zh self - 此方法操作的 ImDrawList 句柄。
182
+ * @ja self - このメソッドの操作対象となる ImDrawList ハンドルです。
183
+ * @ko self - 이 메서드가 조작할 ImDrawList 핸들입니다.
184
+ *
185
+ * @param pos - Position in absolute screen coordinates, in pixels.
186
+ * @zh pos - 绝对屏幕坐标位置,单位为像素。
187
+ * @ja pos - 絶対スクリーン座標での位置です。単位はピクセルです。
188
+ * @ko pos - 절대 화면 좌표의 위치이며 단위는 픽셀입니다.
189
+ *
190
+ * @param col - Packed ImU32 RGBA color; alpha controls opacity.
191
+ * @zh col - 打包 ImU32 RGBA 颜色;alpha 控制不透明度。
192
+ * @ja col - パック済み ImU32 RGBA の色です。アルファ値で不透明度を指定します。
193
+ * @ko col - 패킹된 ImU32 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
194
+ *
195
+ * @param text_begin - UTF-8 text. With omitted/null text_end, strings are
196
+ * encoded;
197
+ * NUL-terminated nonempty byte views are used directly, other views are
198
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
199
+ * its bytes are read directly and need no NUL terminator.
200
+ * @zh text_begin - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
201
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
202
+ * @ja text_begin - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
203
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
204
+ * @ko text_begin - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는
205
+ * 직접 사용하며,
206
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
207
+ *
208
+ * @param text_end - Exclusive endpoint view, not a length or another string.
209
+ * Explicit begin/end must share one backing buffer and satisfy
210
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
211
+ * An empty end view is valid; neither view needs NUL termination.
212
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
213
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
214
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
215
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
216
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
217
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
218
+ * を満たす必要があります。
219
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
220
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
221
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
222
+ * 만족해야 합니다.
223
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
224
+ */
225
+ export function ImDrawList_AddTextEx(
226
+ self: ImDrawList,
227
+ pos: ImVec2Like,
228
+ col: number,
229
+ text_begin: string | Uint8Array,
230
+ text_end: Uint8Array | null = null,
231
+ ): void {
232
+ native.ImDrawList_AddTextEx(self, pos, col, text_begin, text_end);
233
+ }
234
+
235
+ /**
236
+ * Append text to the draw list with explicit font and size control.
237
+ *
238
+ * @zh 向绘制列表添加文本,显式控制字体和字号。
239
+ * @ja フォントとサイズを明示的に指定して描画リストにテキストを追加します。
240
+ * @ko 글꼴과 크기를 명시적으로 지정하여 그리기 목록에 텍스트를 추가합니다.
241
+ *
242
+ * @remarks
243
+ * Implied text_end = null, wrap_width = 0.0, cpu_fine_clip_rect = null
244
+ * @zh
245
+ * 隐含参数:text_end = null, wrap_width = 0.0, cpu_fine_clip_rect = null。
246
+ * @ja
247
+ * 暗黙の引数:text_end = null, wrap_width = 0.0, cpu_fine_clip_rect = null。
248
+ * @ko
249
+ * 암묵적 인수: text_end = null, wrap_width = 0.0, cpu_fine_clip_rect = null.
250
+ *
251
+ * @param self - ImDrawList handle on which this method operates.
252
+ * @zh self - 此方法操作的 ImDrawList 句柄。
253
+ * @ja self - このメソッドの操作対象となる ImDrawList ハンドルです。
254
+ * @ko self - 이 메서드가 조작할 ImDrawList 핸들입니다.
255
+ *
256
+ * @param font - Font used for drawing; null selects the draw list's shared
257
+ * current font, not necessarily the default font.
258
+ * @zh font - 绘制所用的字体;null 选择绘制列表共享的当前字体,不一定是默认字体。
259
+ * @ja font - 描画するフォントです。null は描画リストで共有する現在のフォントで、既定とは限りません。
260
+ * @ko font - 그리기에 쓸 글꼴입니다. null은 그리기 목록의 공유된 현재 글꼴이며 기본 글꼴과 다를 수 있습니다.
261
+ *
262
+ * @param font_size - Text size in pixels; 0 uses the draw list shared current
263
+ * font size, even when an explicit font is supplied.
264
+ * @zh font_size - 文字像素大小;0 使用绘制列表共享的当前字号,即使显式传入了字体也如此。
265
+ * @ja font_size - 文字のピクセルサイズです。0 はフォントを明示した場合も描画リストで共有する現在のサイズを使います。
266
+ * @ko font_size - 텍스트 픽셀 크기입니다. 0은 글꼴을 명시해도 그리기 목록의 공유된 현재 글꼴 크기를 사용합니다.
267
+ *
268
+ * @param pos - Position in absolute screen coordinates, in pixels.
269
+ * @zh pos - 绝对屏幕坐标位置,单位为像素。
270
+ * @ja pos - 絶対スクリーン座標での位置です。単位はピクセルです。
271
+ * @ko pos - 절대 화면 좌표의 위치이며 단위는 픽셀입니다.
272
+ *
273
+ * @param col - Packed ImU32 RGBA color; alpha controls opacity.
274
+ * @zh col - 打包 ImU32 RGBA 颜色;alpha 控制不透明度。
275
+ * @ja col - パック済み ImU32 RGBA の色です。アルファ値で不透明度を指定します。
276
+ * @ko col - 패킹된 ImU32 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
277
+ *
278
+ * @param text_begin - UTF-8 text to read. JS strings are encoded for this call;
279
+ * a nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes
280
+ * are copied and NUL-terminated.
281
+ * @zh text_begin - 要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array
282
+ * 直接传入,否则复制字节并补上 NUL。
283
+ * @ja text_begin - 読む UTF-8 テキストです。JS 文字列は変換し、空でない NUL 終端の Uint8Array
284
+ * は直接渡し、それ以外はコピーして NUL を付けます。
285
+ * @ko text_begin - 읽을 UTF-8 텍스트입니다. JS 문자열은 인코딩됩니다. 비어 있지 않은 NUL 종료 Uint8Array는
286
+ * 직접 전달하며 나머지는 복사 후 NUL을 붙입니다.
287
+ */
288
+ export function ImDrawList_AddTextImFontPtr(
289
+ self: ImDrawList,
290
+ font: ImFont | null,
291
+ font_size: number,
292
+ pos: ImVec2Like,
293
+ col: number,
294
+ text_begin: string | Uint8Array,
295
+ ): void {
296
+ native.ImDrawList_AddTextImFontPtr(
297
+ self,
298
+ font,
299
+ font_size,
300
+ pos,
301
+ col,
302
+ text_begin,
303
+ );
304
+ }
305
+
306
+ /**
307
+ * Append text to the draw list with explicit font and size control.
308
+ *
309
+ * @zh 向绘制列表添加文本,显式控制字体和字号。
310
+ * @ja フォントとサイズを明示的に指定して描画リストにテキストを追加します。
311
+ * @ko 글꼴과 크기를 명시적으로 지정하여 그리기 목록에 텍스트를 추가합니다.
312
+ *
313
+ * @param self - ImDrawList handle on which this method operates.
314
+ * @zh self - 此方法操作的 ImDrawList 句柄。
315
+ * @ja self - このメソッドの操作対象となる ImDrawList ハンドルです。
316
+ * @ko self - 이 메서드가 조작할 ImDrawList 핸들입니다.
317
+ *
318
+ * @param font - Font used for drawing; null selects the draw list's shared
319
+ * current font, not necessarily the default font.
320
+ * @zh font - 绘制所用的字体;null 选择绘制列表共享的当前字体,不一定是默认字体。
321
+ * @ja font - 描画するフォントです。null は描画リストで共有する現在のフォントで、既定とは限りません。
322
+ * @ko font - 그리기에 쓸 글꼴입니다. null은 그리기 목록의 공유된 현재 글꼴이며 기본 글꼴과 다를 수 있습니다.
323
+ *
324
+ * @param font_size - Text size in pixels; 0 uses the draw list shared current
325
+ * font size, even when an explicit font is supplied.
326
+ * @zh font_size - 文字像素大小;0 使用绘制列表共享的当前字号,即使显式传入了字体也如此。
327
+ * @ja font_size - 文字のピクセルサイズです。0 はフォントを明示した場合も描画リストで共有する現在のサイズを使います。
328
+ * @ko font_size - 텍스트 픽셀 크기입니다. 0은 글꼴을 명시해도 그리기 목록의 공유된 현재 글꼴 크기를 사용합니다.
329
+ *
330
+ * @param pos - Position in absolute screen coordinates, in pixels.
331
+ * @zh pos - 绝对屏幕坐标位置,单位为像素。
332
+ * @ja pos - 絶対スクリーン座標での位置です。単位はピクセルです。
333
+ * @ko pos - 절대 화면 좌표의 위치이며 단위는 픽셀입니다.
334
+ *
335
+ * @param col - Packed ImU32 RGBA color; alpha controls opacity.
336
+ * @zh col - 打包 ImU32 RGBA 颜色;alpha 控制不透明度。
337
+ * @ja col - パック済み ImU32 RGBA の色です。アルファ値で不透明度を指定します。
338
+ * @ko col - 패킹된 ImU32 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
339
+ *
340
+ * @param text_begin - UTF-8 text. With omitted/null text_end, strings are
341
+ * encoded;
342
+ * NUL-terminated nonempty byte views are used directly, other views are
343
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
344
+ * its bytes are read directly and need no NUL terminator.
345
+ * @zh text_begin - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
346
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
347
+ * @ja text_begin - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
348
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
349
+ * @ko text_begin - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는
350
+ * 직접 사용하며,
351
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
352
+ *
353
+ * @param text_end - Exclusive endpoint view, not a length or another string.
354
+ * Explicit begin/end must share one backing buffer and satisfy
355
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
356
+ * An empty end view is valid; neither view needs NUL termination.
357
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
358
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
359
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
360
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
361
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
362
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
363
+ * を満たす必要があります。
364
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
365
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
366
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
367
+ * 만족해야 합니다.
368
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
369
+ *
370
+ * @param wrap_width - Maximum text width in pixels before wrapping; nonpositive
371
+ * values disable wrapping.
372
+ * @zh wrap_width - 文字换行前的最大像素宽度;非正值禁用换行。
373
+ * @ja wrap_width - 折り返す前の最大ピクセル幅です。0 以下なら折り返しません。
374
+ * @ko wrap_width - 줄바꿈 전 최대 텍스트 픽셀 너비입니다. 0 이하는 줄바꿈을 비활성화합니다.
375
+ *
376
+ * @param cpu_fine_clip_rect - Optional Float32Array [minX,minY,maxX,maxY]
377
+ * screen rectangle for per-glyph CPU clipping. Pass Float32Array storage, not a
378
+ * JS scalar; native access uses the supplied backing memory.
379
+ * @zh cpu_fine_clip_rect - 用于逐字形 CPU 裁剪的可选 Float32Array [minX,minY,maxX,maxY]
380
+ * 屏幕矩形。 请传入 Float32Array 存储而非 JS 标量;原生代码直接访问所提供的底层内存。
381
+ * @ja cpu_fine_clip_rect - グリフ単位の CPU クリップに使う任意の Float32Array
382
+ * [minX,minY,maxX,maxY] スクリーン矩形です。 JS スカラーではなく Float32Array
383
+ * を渡します。ネイティブ処理は渡された領域を直接使います。
384
+ * @ko cpu_fine_clip_rect - 글리프별 CPU 클리핑용 선택적 Float32Array [minX,minY,maxX,maxY]
385
+ * 화면 사각형입니다. JS 스칼라가 아닌 Float32Array 저장소를 전달합니다. 네이티브 코드는 제공된 메모리를 직접 사용합니다。
386
+ */
387
+ export function ImDrawList_AddTextImFontPtrEx(
388
+ self: ImDrawList,
389
+ font: ImFont | null,
390
+ font_size: number,
391
+ pos: ImVec2Like,
392
+ col: number,
393
+ text_begin: string | Uint8Array,
394
+ text_end?: null,
395
+ wrap_width?: number,
396
+ cpu_fine_clip_rect?: Float32Array | null,
397
+ ): void;
398
+
399
+ /**
400
+ * Append text to the draw list with explicit font and size control.
401
+ *
402
+ * @zh 向绘制列表添加文本,显式控制字体和字号。
403
+ * @ja フォントとサイズを明示的に指定して描画リストにテキストを追加します。
404
+ * @ko 글꼴과 크기를 명시적으로 지정하여 그리기 목록에 텍스트를 추가합니다.
405
+ *
406
+ * @param self - ImDrawList handle on which this method operates.
407
+ * @zh self - 此方法操作的 ImDrawList 句柄。
408
+ * @ja self - このメソッドの操作対象となる ImDrawList ハンドルです。
409
+ * @ko self - 이 메서드가 조작할 ImDrawList 핸들입니다.
410
+ *
411
+ * @param font - Font used for drawing; null selects the draw list's shared
412
+ * current font, not necessarily the default font.
413
+ * @zh font - 绘制所用的字体;null 选择绘制列表共享的当前字体,不一定是默认字体。
414
+ * @ja font - 描画するフォントです。null は描画リストで共有する現在のフォントで、既定とは限りません。
415
+ * @ko font - 그리기에 쓸 글꼴입니다. null은 그리기 목록의 공유된 현재 글꼴이며 기본 글꼴과 다를 수 있습니다.
416
+ *
417
+ * @param font_size - Text size in pixels; 0 uses the draw list shared current
418
+ * font size, even when an explicit font is supplied.
419
+ * @zh font_size - 文字像素大小;0 使用绘制列表共享的当前字号,即使显式传入了字体也如此。
420
+ * @ja font_size - 文字のピクセルサイズです。0 はフォントを明示した場合も描画リストで共有する現在のサイズを使います。
421
+ * @ko font_size - 텍스트 픽셀 크기입니다. 0은 글꼴을 명시해도 그리기 목록의 공유된 현재 글꼴 크기를 사용합니다.
422
+ *
423
+ * @param pos - Position in absolute screen coordinates, in pixels.
424
+ * @zh pos - 绝对屏幕坐标位置,单位为像素。
425
+ * @ja pos - 絶対スクリーン座標での位置です。単位はピクセルです。
426
+ * @ko pos - 절대 화면 좌표의 위치이며 단위는 픽셀입니다.
427
+ *
428
+ * @param col - Packed ImU32 RGBA color; alpha controls opacity.
429
+ * @zh col - 打包 ImU32 RGBA 颜色;alpha 控制不透明度。
430
+ * @ja col - パック済み ImU32 RGBA の色です。アルファ値で不透明度を指定します。
431
+ * @ko col - 패킹된 ImU32 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
432
+ *
433
+ * @param text_begin - UTF-8 text. With omitted/null text_end, strings are
434
+ * encoded;
435
+ * NUL-terminated nonempty byte views are used directly, other views are
436
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
437
+ * its bytes are read directly and need no NUL terminator.
438
+ * @zh text_begin - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
439
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
440
+ * @ja text_begin - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
441
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
442
+ * @ko text_begin - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는
443
+ * 직접 사용하며,
444
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
445
+ *
446
+ * @param text_end - Exclusive endpoint view, not a length or another string.
447
+ * Explicit begin/end must share one backing buffer and satisfy
448
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
449
+ * An empty end view is valid; neither view needs NUL termination.
450
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
451
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
452
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
453
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
454
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
455
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
456
+ * を満たす必要があります。
457
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
458
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
459
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
460
+ * 만족해야 합니다.
461
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
462
+ *
463
+ * @param wrap_width - Maximum text width in pixels before wrapping; nonpositive
464
+ * values disable wrapping.
465
+ * @zh wrap_width - 文字换行前的最大像素宽度;非正值禁用换行。
466
+ * @ja wrap_width - 折り返す前の最大ピクセル幅です。0 以下なら折り返しません。
467
+ * @ko wrap_width - 줄바꿈 전 최대 텍스트 픽셀 너비입니다. 0 이하는 줄바꿈을 비활성화합니다.
468
+ *
469
+ * @param cpu_fine_clip_rect - Optional Float32Array [minX,minY,maxX,maxY]
470
+ * screen rectangle for per-glyph CPU clipping. Pass Float32Array storage, not a
471
+ * JS scalar; native access uses the supplied backing memory.
472
+ * @zh cpu_fine_clip_rect - 用于逐字形 CPU 裁剪的可选 Float32Array [minX,minY,maxX,maxY]
473
+ * 屏幕矩形。 请传入 Float32Array 存储而非 JS 标量;原生代码直接访问所提供的底层内存。
474
+ * @ja cpu_fine_clip_rect - グリフ単位の CPU クリップに使う任意の Float32Array
475
+ * [minX,minY,maxX,maxY] スクリーン矩形です。 JS スカラーではなく Float32Array
476
+ * を渡します。ネイティブ処理は渡された領域を直接使います。
477
+ * @ko cpu_fine_clip_rect - 글리프별 CPU 클리핑용 선택적 Float32Array [minX,minY,maxX,maxY]
478
+ * 화면 사각형입니다. JS 스칼라가 아닌 Float32Array 저장소를 전달합니다. 네이티브 코드는 제공된 메모리를 직접 사용합니다。
479
+ */
480
+ export function ImDrawList_AddTextImFontPtrEx(
481
+ self: ImDrawList,
482
+ font: ImFont | null,
483
+ font_size: number,
484
+ pos: ImVec2Like,
485
+ col: number,
486
+ text_begin: Uint8Array,
487
+ text_end: Uint8Array,
488
+ wrap_width?: number,
489
+ cpu_fine_clip_rect?: Float32Array | null,
490
+ ): void;
491
+ /**
492
+ * Append text to the draw list with explicit font and size control.
493
+ *
494
+ * @zh 向绘制列表添加文本,显式控制字体和字号。
495
+ * @ja フォントとサイズを明示的に指定して描画リストにテキストを追加します。
496
+ * @ko 글꼴과 크기를 명시적으로 지정하여 그리기 목록에 텍스트를 추가합니다.
497
+ *
498
+ * @param self - ImDrawList handle on which this method operates.
499
+ * @zh self - 此方法操作的 ImDrawList 句柄。
500
+ * @ja self - このメソッドの操作対象となる ImDrawList ハンドルです。
501
+ * @ko self - 이 메서드가 조작할 ImDrawList 핸들입니다.
502
+ *
503
+ * @param font - Font used for drawing; null selects the draw list's shared
504
+ * current font, not necessarily the default font.
505
+ * @zh font - 绘制所用的字体;null 选择绘制列表共享的当前字体,不一定是默认字体。
506
+ * @ja font - 描画するフォントです。null は描画リストで共有する現在のフォントで、既定とは限りません。
507
+ * @ko font - 그리기에 쓸 글꼴입니다. null은 그리기 목록의 공유된 현재 글꼴이며 기본 글꼴과 다를 수 있습니다.
508
+ *
509
+ * @param font_size - Text size in pixels; 0 uses the draw list shared current
510
+ * font size, even when an explicit font is supplied.
511
+ * @zh font_size - 文字像素大小;0 使用绘制列表共享的当前字号,即使显式传入了字体也如此。
512
+ * @ja font_size - 文字のピクセルサイズです。0 はフォントを明示した場合も描画リストで共有する現在のサイズを使います。
513
+ * @ko font_size - 텍스트 픽셀 크기입니다. 0은 글꼴을 명시해도 그리기 목록의 공유된 현재 글꼴 크기를 사용합니다.
514
+ *
515
+ * @param pos - Position in absolute screen coordinates, in pixels.
516
+ * @zh pos - 绝对屏幕坐标位置,单位为像素。
517
+ * @ja pos - 絶対スクリーン座標での位置です。単位はピクセルです。
518
+ * @ko pos - 절대 화면 좌표의 위치이며 단위는 픽셀입니다.
519
+ *
520
+ * @param col - Packed ImU32 RGBA color; alpha controls opacity.
521
+ * @zh col - 打包 ImU32 RGBA 颜色;alpha 控制不透明度。
522
+ * @ja col - パック済み ImU32 RGBA の色です。アルファ値で不透明度を指定します。
523
+ * @ko col - 패킹된 ImU32 RGBA 색상입니다. 알파는 불투명도를 제어합니다.
524
+ *
525
+ * @param text_begin - UTF-8 text. With omitted/null text_end, strings are
526
+ * encoded;
527
+ * NUL-terminated nonempty byte views are used directly, other views are
528
+ * copied and NUL-terminated. With an explicit end, pass a Uint8Array:
529
+ * its bytes are read directly and need no NUL terminator.
530
+ * @zh text_begin - UTF-8 文本。末端省略或为 null 时,字符串会编码,非空 NUL 结尾的字节视图直接使用,
531
+ * 其他视图复制并补 NUL。显式指定末端时须传 Uint8Array,直接读取,无须 NUL 终止符。
532
+ * @ja text_begin - UTF-8 テキストです。終端を省略または null にすると、文字列は変換し、空でない NUL 終端ビューは直接使い、
533
+ * それ以外のビューはコピーして NUL を付けます。終端を指定する場合は Uint8Array を直接読み、NUL は不要です。
534
+ * @ko text_begin - UTF-8 텍스트입니다. 끝을 생략하거나 null이면 문자열은 인코딩하고 비어 있지 않은 NUL 종료 뷰는
535
+ * 직접 사용하며,
536
+ * 나머지 뷰는 복사 후 NUL을 붙입니다. 끝을 명시하면 Uint8Array를 직접 읽으며 NUL 종료는 필요 없습니다.
537
+ *
538
+ * @param text_end - Exclusive endpoint view, not a length or another string.
539
+ * Explicit begin/end must share one backing buffer and satisfy
540
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength.
541
+ * An empty end view is valid; neither view needs NUL termination.
542
+ * Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
543
+ * @zh text_end - 尾后位置视图,不是长度或另一字符串。显式起止视图须共享同一底层缓冲区,且满足
544
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength。
545
+ * 末端可为空视图,两端无须 NUL 终止符。省略或 null 使用普通 NUL 终止 UTF-8 转换。
546
+ * @ja text_end - 終端直後を示すビューです。長さや別の文字列ではありません。両端は同じバッファーを共有し、
547
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength
548
+ * を満たす必要があります。
549
+ * 空の終端ビューも有効で、NUL は不要です。省略または null では通常の NUL 終端 UTF-8 変換を使います。
550
+ * @ko text_end - 끝 다음 위치의 뷰이며 길이나 다른 문자열이 아닙니다. 양쪽은 같은 버퍼를 공유하며
551
+ * begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength를
552
+ * 만족해야 합니다.
553
+ * 빈 끝 뷰도 허용하며 NUL 종료는 필요 없습니다. 생략하거나 null이면 일반 NUL 종료 UTF-8 변환을 사용합니다.
554
+ *
555
+ * @param wrap_width - Maximum text width in pixels before wrapping; nonpositive
556
+ * values disable wrapping.
557
+ * @zh wrap_width - 文字换行前的最大像素宽度;非正值禁用换行。
558
+ * @ja wrap_width - 折り返す前の最大ピクセル幅です。0 以下なら折り返しません。
559
+ * @ko wrap_width - 줄바꿈 전 최대 텍스트 픽셀 너비입니다. 0 이하는 줄바꿈을 비활성화합니다.
560
+ *
561
+ * @param cpu_fine_clip_rect - Optional Float32Array [minX,minY,maxX,maxY]
562
+ * screen rectangle for per-glyph CPU clipping. Pass Float32Array storage, not a
563
+ * JS scalar; native access uses the supplied backing memory.
564
+ * @zh cpu_fine_clip_rect - 用于逐字形 CPU 裁剪的可选 Float32Array [minX,minY,maxX,maxY]
565
+ * 屏幕矩形。 请传入 Float32Array 存储而非 JS 标量;原生代码直接访问所提供的底层内存。
566
+ * @ja cpu_fine_clip_rect - グリフ単位の CPU クリップに使う任意の Float32Array
567
+ * [minX,minY,maxX,maxY] スクリーン矩形です。 JS スカラーではなく Float32Array
568
+ * を渡します。ネイティブ処理は渡された領域を直接使います。
569
+ * @ko cpu_fine_clip_rect - 글리프별 CPU 클리핑용 선택적 Float32Array [minX,minY,maxX,maxY]
570
+ * 화면 사각형입니다. JS 스칼라가 아닌 Float32Array 저장소를 전달합니다. 네이티브 코드는 제공된 메모리를 직접 사용합니다。
571
+ */
572
+ export function ImDrawList_AddTextImFontPtrEx(
573
+ self: ImDrawList,
574
+ font: ImFont | null,
575
+ font_size: number,
576
+ pos: ImVec2Like,
577
+ col: number,
578
+ text_begin: string | Uint8Array,
579
+ text_end: Uint8Array | null = null,
580
+ wrap_width: number = 0.0,
581
+ cpu_fine_clip_rect: Float32Array | null = null,
582
+ ): void {
583
+ native.ImDrawList_AddTextImFontPtrEx(
584
+ self,
585
+ font,
586
+ font_size,
587
+ pos,
588
+ col,
589
+ text_begin,
590
+ text_end,
591
+ wrap_width,
592
+ cpu_fine_clip_rect,
593
+ );
594
+ }