This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
imgui.lua
1454 lines (1120 loc) · 37.1 KB
/
imgui.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---@meta
--- Macroquest ImGui Lua Binding
---@class ImGui
ImGui = {}
---@alias ImU32 number Represents a color
---@alias ImTextureID number Represents a texture
--
-- Main
--
---@return ImGuiIO
function ImGui.GetIO() end
---@return ImGuiStyle
function ImGui.GetStyle() end
--
-- Demo, Debug, Information
--
---@param show boolean
---@return boolean show
function ImGui.ShowDemoWindow(show) end
function ImGui.ShowDemoWindow() end
---@param show boolean
---@return boolean show
function ImGui.ShowMetricsWindow(show) end
function ImGui.ShowMetricsWindow() end
---@param show boolean
---@return boolean show
function ImGui.ShowAboutWindow(show) end
function ImGui.ShowAboutWindow() end
---@param style ImGuiStyle
function ImGui.ShowStyleEditor(style) end
function ImGui.ShowStyleEditor() end
---@param label string
---@return boolean
function ImGui.ShowStyleSelector(label) end
---@param label string
function ImGui.ShowFontSelector(label) end
function ImGui.ShowUserGuide() end
---@return string version
function ImGui.GetVersion() end
--
-- Styles
--
---@return ImGuiStyle
function ImGui.StyleColorsDark() end
---@return ImGuiStyle
function ImGui.StyleColorsLight() end
---@return ImGuiStyle
function ImGui.StyleColorsClassic() end
--
--
--
---@param r number
---@param g number
---@param b number
---@param a number
---@return number col
function IM_COL32(r, g, b, a) end
--- Windows
---@param name string
---@return boolean draw
function ImGui.Begin(name) end
---@param name string
---@param open boolean|nil
---@param flags? ImGuiWindowFlags
---@return boolean open, boolean draw
function ImGui.Begin(name, open, flags) end
function ImGui.End() end
--- ChildWindows
---@param name string
---@param sizeX? number
---@param sizeY? number
---@param border? boolean
---@param flags? ImGuiWindowFlags
function ImGui.BeginChild(name, sizeX, sizeY, border, flags) end
function ImGui.EndChild() end
--- Window Utilities
---@return boolean
function ImGui.IsWindowAppearing() end
---@return boolean
function ImGui.IsWindowCollapsed() end
---@param flags? ImGuiFocusedFlags
---@return boolean
function ImGui.IsWindowFocused(flags) end
---@param flags? ImGuiFocusedFlags
---@return boolean
function ImGui.IsWindowHovered(flags) end
---@return ImDrawList
function ImGui.GetWindowDrawList() end
---@return number
function ImGui.GetWindowDpiScale() end
---@return number posX, number posY
function ImGui.GetWindowPos() end
---@return ImVec2
function ImGui.GetWindowPosVec() end
---@return number width, number height
function ImGui.GetWindowSize() end
---@return ImVec2
function ImGui.GetWindowSizeVec() end
---@return number
function ImGui.GetWindowWidth() end
---@return number
function ImGui.GetWindowHeight() end
---@return ImGuiViewport
function ImGui.GetWindowViewport() end
---@param posX number
---@param posY number
---@param cond? ImGuiCond
---@param pivotX? number
---@param pivotY? number
function ImGui.SetNextWindowPos(posX, posY, cond, pivotX, pivotY) end
---@param pos ImVec2
---@param cond? ImGuiCond
---@param pivot? ImVec2
function ImGui.SetNextWindowPos(pos, cond, pivot) end
---@param sizeX number
---@param sizeY number
---@param cond? ImGuiCond
function ImGui.SetNextWindowSize(sizeX, sizeY, cond) end
---@param size ImVec2
---@param cond? ImGuiCond
function ImGui.SetNextWindowSize(size, cond) end
---@param min ImVec2
---@param max ImVec2
---@param customCallback? fun(pos: ImVec2, currentSize: ImVec2, desiredSize: ImVec2): ImVec2
function ImGui.SetNextWindowSizeConstraints(min, max, customCallback) end
---@param minX number
---@param minY number
---@param maxX number
---@param maxY number
function ImGui.SetNextWindowSizeConstraints(minX, minY, maxX, maxY) end
---@param sizeX number
---@param sizeY number
function ImGui.SetNextWindowContentSize(sizeX, sizeY) end
---@param collapsed boolean
---@param cond? ImGuiCond
function ImGui.SetNextWindowCollapsed(collapsed, cond) end
function ImGui.SetNextWindowFocus() end
---@param alpha number
function ImGui.SetNextWindowBgAlpha(alpha) end
---@param viewportID number
function ImGui.SetNextWindowViewport(viewportID) end
---@param name string
---@param posX number
---@param posY number
---@param cond? ImGuiCond
function ImGui.SetWindowPos(name, posX, posY, cond) end
---@param name string
---@param sizeX number
---@param sizeY number
---@param cond? ImGuiCond
function ImGui.SetWindowSize(name, sizeX, sizeY, cond) end
---@param sizeX number
---@param sizeY number
---@param cond? ImGuiCond
function ImGui.SetWindowSize(sizeX, sizeY, cond) end
---@param name string
---@param size ImVec2
---@param cond? ImGuiCond
function ImGui.SetWindowSize(name, size, cond) end
---@param size ImVec2
---@param cond? ImGuiCond
function ImGui.SetWindowSize(size, cond) end
---@param name string
---@param isCollapsed boolean
---@param cond? ImGuiCond
function ImGui.SetWindowCollapsed(name, isCollapsed, cond) end
---@param scale number
function ImGui.SetWindowFontScale(scale) end
---@param name? string
function ImGui.SetWindowFocus(name) end
--- Content Region
---@return number x, number y
function ImGui.GetContentRegionMax() end
---@return number x, number y
function ImGui.GetContentRegionAvail() end
---@return ImVec2 pos
function ImGui.GetContentRegionAvailVec() end
---@return number x, number y
function ImGui.GetWindowContentRegionMin() end
---@return number x, number y
function ImGui.GetWindowContentRegionMax() end
---@return number width
function ImGui.GetWindowContentRegionWidth() end
--- Windows Scrolling
---@return number x
function ImGui.GetScrollX() end
---@return number y
function ImGui.GetScrollY() end
---@return number x
function ImGui.GetScrollMaxX() end
---@return number y
function ImGui.GetScrollMaxY() end
---@param scrollX number
function ImGui.SetScrollX(scrollX) end
---@param scrollY number
function ImGui.SetScrollY(scrollY) end
---@param scrollX? number
function ImGui.SetScrollHereX(scrollX) end
---@param scrollY? number
function ImGui.SetScrollHereY(scrollY) end
---@param localX number
---@param centerXRatio? number
function ImGui.SetScrollFromPosX(localX, centerXRatio) end
---@param localY number
---@param centerYRatio? number
function ImGui.SetScrollFromPosY(localY, centerYRatio) end
--- Parameters Stacks (Shared)
function ImGui.PushFont(...) end
function ImGui.PopFont() end
---@param idx ImGuiCol
---@param col ImU32
function ImGui.PushStyleColor(idx, col) end
---@param idx ImGuiCol
---@param colR number
---@param colG number
---@param colB number
---@param colA number
function ImGui.PushStyleColor(idx, colR, colG, colB, colA) end
---@param idx ImGuiCol
---@param col ImVec4
function ImGui.PushStyleColor(idx, col) end
---@param count? number
function ImGui.PopStyleColor(count) end
---@param idx ImGuiStyleVar
---@param value number
function ImGui.PushStyleVar(idx, value) end
---@param idx ImGuiStyleVar
---@param value number
function ImGui.PushStyleVar(idx, value) end
---@param idx ImGuiStyleVar
---@param width number
---@param height number
function ImGui.PushStyleVar(idx, width, height) end
---@param idx ImGuiStyleVar
---@param val ImVec2
function ImGui.PushStyleVar(idx, val) end
---@param count? number
function ImGui.PopStyleVar(count) end
---@param idx ImGuiCol
---@return ImVec4 color
function ImGui.GetStyleColor(idx) end
function ImGui.GetFont() end
---@return number
function ImGui.GetFontSize() end
---@return number x, number y
function ImGui.GetFontTexUvWhitePixel() end
---@param idx number ImGuiCol value
---@param alphaMul? number Alpha multiplier
---@return number col ImU32
function ImGui.GetColorU32(idx, alphaMul) end
--- @param r number Red
--- @param g number Green
--- @param b number Blue
--- @param a number Alpha
--- @return number col ImU32
function ImGui.GetColorU32(r, g, b, a) end
--- @param col ImVec4
--- @return number col ImU32
function ImGui.GetColorU32(col) end
---@param idx ImGuiCol
---@return number x, number y,number z, number w
function ImGui.GetStyleColorVec4(idx) end
--- Parameters Stacks (Current Window)
---@param itemWidth number
function ImGui.PushItemWidth(itemWidth) end
function ImGui.PopItemWidth() end
---@param itemWidth number
function ImGui.SetNextItemWidth(itemWidth) end
---@return number
function ImGui.CalcItemWidth() end
---@param wrapLocalPosX number
function ImGui.PushTextWrapPos(wrapLocalPosX) end
function ImGui.PopTextWrapPos() end
---@param allowKeyboardFocus boolean
function ImGui.PushAllowKeyboardFocus(allowKeyboardFocus) end
function ImGui.PopAllowKeyboardFocus() end
---@param repeatButton boolean
function ImGui.PushButtonRepeat(repeatButton) end
function ImGui.PopButtonRepeat() end
--- Cursor/Layout
function ImGui.Separator() end
---@param offsetFromStartX? number
---@param spacing? number
function ImGui.SameLine(offsetFromStartX, spacing) end
function ImGui.NewLine() end
function ImGui.Spacing() end
---@param sizeX number
---@param sizeY number
function ImGui.Dummy(sizeX, sizeY) end
---@param indentW? number
function ImGui.Indent(indentW) end
---@param indentW? number
function ImGui.Unindent(indentW) end
function ImGui.BeginGroup() end
function ImGui.EndGroup() end
---@return number x, number y
function ImGui.GetCursorPos() end
---@return number
function ImGui.GetCursorPosX() end
---@return number
function ImGui.GetCursorPosY() end
---@param localX number
---@param localY number
function ImGui.SetCursorPos(localX, localY) end
---@param localX number
function ImGui.SetCursorPosX(localX) end
---@param localY number
function ImGui.SetCursorPosY(localY) end
---@return number x, number y
function ImGui.GetCursorStartPos() end
---@return number x, number y
function ImGui.GetCursorScreenPos() end
---@return ImVec2 pos
function ImGui.GetCursorScreenPosVec() end
---@param x number
---@param y number
function ImGui.SetCursorScreenPos(x, y) end
function ImGui.AlignTextToFramePadding() end
---@return number
function ImGui.GetTextLineHeight() end
---@return number
function ImGui.GetTextLineHeightWithSpacing() end
---@return number
function ImGui.GetFrameHeight() end
---@return number
function ImGui.GetFrameHeightWithSpacing() end
--- ID Stack/Scopes
---@param id any
function ImGui.PushID(id) end
function ImGui.PopID() end
---@param id any
---@return number
function ImGui.GetID(id) end
--- Widgets: Text
---@param text string
function ImGui.TextUnformatted(text) end
---convenience version of ImGui.Text which wraps string.format
---@param format string
---@vararg any
function ImGui.Text(format, ...) end
---@param text string
function ImGui.Text(text) end
---@param r number
---@param g number
---@param b number
---@param a number
---@param text string
---@varargs any
function ImGui.TextColored(r, g, b, a, text, ...) end
---@param col ImVec4|ImU32
---@param text string
---@varargs any
function ImGui.TextColored(col, text, ...) end
---@param text string
---@varargs any
function ImGui.TextDisabled(text, ...) end
---@param text string
---@varargs any
function ImGui.TextWrapped(text, ...) end
---@param label string
---@param text string
function ImGui.LabelText(label, text) end
---@param text string
function ImGui.BulletText(text) end
--- Widgets: Main
---@param label string
---@param size? ImVec2
---@return boolean clicked
function ImGui.Button(label, size) end
---@param label string
---@param sizeX number
---@param sizeY number
---@return boolean # clicked
function ImGui.Button(label, sizeX, sizeY) end
---@param label string
function ImGui.SmallButton(label) end
---@param label string
---@param sizeX number
---@param sizeY number
---@return boolean clicked
function ImGui.InvisibleButton(label, sizeX, sizeY) end
---@param label string
---@param size ImVec2
---@param flags? ImGuiButtonFlags
---@return boolean # clicked
function ImGui.InvisibleButton(label, size, flags) end
---@param label string
---@param dir ImGuiDir
---@return boolean clicked
function ImGui.ArrowButton(label, dir) end
---@param textureId ImTextureID
---@param size ImVec2
---@param uv0? ImVec2
---@param uv1? ImVec2
---@param tintCol? ImVec4
---@param borderCol? ImVec4
function ImGui.Image(textureId, size, uv0, uv1, tintCol, borderCol) end
---@param textureId ImTextureID
---@param size ImVec2
---@param uv0? ImVec2
---@param uv1? ImVec2
---@param framePadding? number
---@param bgCol? ImVec4
---@param tintCol? ImVec4
function ImGui.Image(textureId, size, uv0, uv1, framePadding, bgCol, tintCol) end
---@param textureId ImTextureID
---@param size ImVec2
---@param uv0? ImVec2
---@param uv1? ImVec2
---@param framePadding? number
---@param tintCol? ImVec4
---@param borderCol? ImVec4
function ImGui.ImageButton(textureId, size, uv0, uv1, framePadding, tintCol, borderCol) end
---@param label string
---@param value boolean
---@return boolean value, boolean pressed
function ImGui.Checkbox(label, value) end
---@param label string
---@param flags number
---@param flagsValue number
---@return number flags, boolean pressed
function ImGui.CheckboxFlags(label, flags, flagsValue) end
---@param label string
---@param active boolean
---@return boolean active
function ImGui.RadioButton(label, active) end
---@param label string
---@param v number
---@param vButton number
---@return number v, boolean active
function ImGui.RadioButton(label, v, vButton) end
---@param fraction number
---@param size? ImVec2
---@param overlay? string
function ImGui.ProgressBar(fraction, size, overlay) end
---@param fraction number
---@param sizeX number
---@param sizeY number
---@param overlay? string
function ImGui.ProgressBar(fraction, sizeX, sizeY, overlay) end
function ImGui.Bullet() end
--- Widgets: Combo Box
---@param label string
---@param previewValue string
---@param flags? ImGuiComboFlags
function ImGui.BeginCombo(label, previewValue, flags) end
function ImGui.EndCombo() end
---@param label string
---@param currentItem number
---@param items string[]
---@param itemsCount number
---@param popupMaxHeightInItems? number
---@return number currentItem, boolean clicked
function ImGui.Combo(label, currentItem, items, itemsCount, popupMaxHeightInItems) end
---@param label string
---@param currentItem number
---@param itemsSeparatedByZeros string
---@param popupMaxHeightInItems? number
---@return number
function ImGui.Combo(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems) end
---@param label string
---@param currentItem number
---@param getter fun(idx: number): string
---@param itemsCount number
---@param popupMaxHeightInItems? number
---@return number currentItem, boolean clicked
function ImGui.Combo(label, currentItem, getter, itemsCount, popupMaxHeightInItems) end
--- Widgets: Drags
---@param label string
---@param value number
---@param valueSpeed? number
---@param valueMin? number
---@param valueMax? number
---@param format? string
---@param power? number
---@return number value, boolean used
function ImGui.DragFloat(label, value, valueSpeed, valueMin, valueMax, format, power) end
---@param label string
---@param value number[] List of 2 values
---@param valueSpeed? number
---@param valueMin? number
---@param valueMax? number
---@param format? string
---@param power? number
---@return number[] value, boolean used
function ImGui.DragFloat2(label, value, valueSpeed, valueMin, valueMax, format, power) end
---@param label string
---@param value number[] List of 3 values
---@param valueSpeed? number
---@param valueMin? number
---@param valueMax? number
---@param format? string
---@param power? number
---@return number[] value, boolean used
function ImGui.DragFloat3(label, value, valueSpeed, valueMin, valueMax, format, power) end
---@param label string
---@param value number[] List of 4 values
---@param valueSpeed? number
---@param valueMin? number
---@param valueMax? number
---@param format? string
---@param power? number
---@return number[] value, boolean used
function ImGui.DragFloat4(label, value, valueSpeed, valueMin, valueMax, format, power) end
---@param label string
---@param value integer
---@param valueSpeed? number
---@param valueMin? integer
---@param valueMax? integer
---@param format? string
---@return integer value, boolean used
function ImGui.DragInt(label, value, valueSpeed, valueMin, valueMax, format) end
---@param label string
---@param value integer
---@param valueSpeed? number
---@param valueMin? integer
---@param valueMax? integer
---@param format? string
---@return integer[] value, boolean used
function ImGui.DragInt2(label, value, valueSpeed, valueMin, valueMax, format) end
---@param label string
---@param value integer
---@param valueSpeed? number
---@param valueMin? integer
---@param valueMax? integer
---@param format? string
---@return integer[] value, boolean used
function ImGui.DragInt3(label, value, valueSpeed, valueMin, valueMax, format) end
---@param label string
---@param value integer
---@param valueSpeed? number
---@param valueMin? integer
---@param valueMax? integer
---@param format? string
---@return integer[] value, boolean used
function ImGui.DragInt4(label, value, valueSpeed, valueMin, valueMax, format) end
--- Widgets: Sliders
---@param label string
---@param value number
---@param valueSpeed? number
---@param valueMin? number
---@param valueMax? number
---@param format? string
---@param power? number
---@return number value, boolean used
function ImGui.SliderFloat(label, value, valueSpeed, valueMin, valueMax, format, power) end
---@param label string
---@param value number
---@param valueSpeed? number
---@param valueMin? number
---@param valueMax? number
---@param format? string
---@param power? number
---@return number[] value, boolean used
function ImGui.SliderFloat2(label, value, valueSpeed, valueMin, valueMax, format, power) end
---@param label string
---@param value number
---@param valueSpeed? number
---@param valueMin? number
---@param valueMax? number
---@param format? string
---@param power? number
---@return number[] value, boolean used
function ImGui.SliderFloat3(label, value, valueSpeed, valueMin, valueMax, format, power) end
---@param label string
---@param value number
---@param valueSpeed? number
---@param valueMin? number
---@param valueMax? number
---@param format? string
---@param power? number
---@return number[] value, boolean used
function ImGui.SliderFloat4(label, value, valueSpeed, valueMin, valueMax, format, power) end
---@param label string
---@param v_rad number
---@param v_degrees_min number
---@param v_degrees_max number
---@param format string
---@return number v_rad, boolean used
function ImGui.SliderAngle(label, v_rad, v_degrees_min, v_degrees_max, format) end
---@param label string
---@param v integer
---@param v_min integer
---@param v_max integer
---@param format? string
---@return integer value, boolean selected
function ImGui.SliderInt(label, v, v_min, v_max, format) end
---@param label string
---@param v table
---@param v_min integer
---@param v_max integer
---@param format? string
---@return integer[] values, boolean selected
function ImGui.SliderInt2(label, v, v_min, v_max, format) end
---@param label string
---@param v table
---@param v_min integer
---@param v_max integer
---@param format? string
---@return integer[] values, boolean selected
function ImGui.SliderInt3(label, v, v_min, v_max, format) end
---@param label string
---@param v table
---@param v_min integer
---@param v_max integer
---@param format? string
---@return integer[] values, boolean selected
function ImGui.SliderInt4(label, v, v_min, v_max, format) end
---@param label string
---@param size_x number
---@param size_y number
---@param value number
---@param valueMin number
---@param valueMax number
---@param format? string
---@param power? number
---@return number value, boolean used
function ImGui.VSliderFloat(label, size_x, size_y, value, valueMin, valueMax, format, power) end
---@param label string
---@param size_x number
---@param size_y number
---@param value integer
---@param valueMin integer
---@param valueMax integer
---@param format? string
---@return integer value, boolean used
function ImGui.VSliderInt(label, size_x, size_y, value, valueMin, valueMax, format) end
--- Widgets: Input with Keyboard
---@param label string
---@param text string
---@param imGuiInputTextFlags? ImGuiInputTextFlags
--- @return string text, boolean selected
function ImGui.InputText(label, text, imGuiInputTextFlags) end
---@param label string
---@param text string
---@param size_x number
---@param size_y number
---@param imGuiInputTextFlags? ImGuiInputTextFlags
--- @return string text, boolean selected
function ImGui.InputTextMultiline(label, text, size_x, size_y, imGuiInputTextFlags) end
--- @param label string
--- @param hint string
--- @param text string
--- @param imGuiInputTextFlags? ImGuiInputTextFlags
--- @return string text, boolean selected
function ImGui.InputTextWithHint(label, hint, text, imGuiInputTextFlags) end
function ImGui.InputFloat(...) end
function ImGui.InputFloat2(...) end
function ImGui.InputFloat3(...) end
function ImGui.InputFloat4(...) end
function ImGui.InputInt(...) end
function ImGui.InputInt2(...) end
function ImGui.InputInt3(...) end
function ImGui.InputInt4(...) end
function ImGui.InputDouble(...) end
--- Widgets: Color Editor / Picker
---@param label string
---@param col number[] Color as list of 3 numbers 0.0 to 1.0
---@param flags? ImGuiColorEditFlags
---@return number[] col, boolean changed
function ImGui.ColorEdit3(label, col, flags) end
---@param label string
---@param col ImVec4
---@param flags? ImGuiColorEditFlags
---@return ImVec4 col, boolean changed
function ImGui.ColorEdit3(label, col, flags) end
---@param label string
---@param col number[] Color as list of 4 numbers 0.0 to 1.0
---@param flags? number
---@return number[] col, boolean changed
function ImGui.ColorEdit4(label, col, flags) end
---@param label string
---@param col ImVec4
---@param flags? number
---@return ImVec4 col, boolean changed
function ImGui.ColorEdit4(label, col, flags) end
function ImGui.ColorPicker3(...) end
function ImGui.ColorPicker4(...) end
function ImGui.ColorButton(...) end
function ImGui.SetColorEditOptions(...) end
--- Widgets: Trees
function ImGui.TreeNode(label) end
function ImGui.TreeNode(strId, label) end
function ImGui.TreeNodeEx(...) end
---@param id? any
function ImGui.TreePush(id) end
function ImGui.TreePop() end
---@return number
function ImGui.GetTreeNodeToLabelSpacing() end
---@param label string
---@param flags? ImGuiTreeNodeFlags
function ImGui.CollapsingHeader(label, flags) end
---@param label string
---@param open boolean|nil
---@param flags? ImGuiTreeNodeFlags
---@return boolean open, boolean show
function ImGui.CollapsingHeader(label, open, flags) end
---@param isOpen boolean
---@param cond? ImGuiCond
function ImGui.SetNextItemOpen(isOpen, cond) end
--- Widgets: Selectables
---@param label string
---@return boolean clicked
function ImGui.Selectable(label) end
---@param label string
---@param selected boolean
---@param flags? ImGuiSelectableFlags
---@param size? ImVec2
---@return boolean selected, boolean clicked
function ImGui.Selectable(label, selected, flags, size) end
---@param label string
---@param selected boolean
---@param flags ImGuiSelectableFlags
---@param sizeX number
---@param sizeY number
---@return boolean selected, boolean clicked
function ImGui.Selectable(label, selected, flags, sizeX, sizeY) end
--- Widgets: List Boxes
---@param label string
---@param size? ImVec2
---@return boolean changed
function ImGui.BeginListBox(label, size) end
function ImGui.EndListBox() end
---@param label string
---@param current_item integer
---@param items table
---@param items_count integer
---@param height_in_items? integer
---@return integer current_item, boolean clicked
function ImGui.ListBox(label, current_item, items, items_count, height_in_items) end
---@param label string
---@param size_x number
---@param size_y number
function ImGui.ListBoxHeader(label, size_x, size_y) end
---@param label string
---@param items_count integer
---@param height_in_items? integer
function ImGui.ListBoxHeader(label, items_count, height_in_items) end
function ImGui.ListBoxFooter() end
--- Widgets: Value() Helpers
---@param text string
---@param value boolean|number
---@param float_format? string # format only available with float
function ImGui.Value(text, value, float_format) end
--- Widgets: Menus
---@return boolean
function ImGui.BeginMenuBar() end
function ImGui.EndMenuBar() end
---@return boolean
function ImGui.BeginMainMenuBar() end
function ImGui.EndMainMenuBar() end
---@param label string
---@param enabled? boolean
---@return boolean
function ImGui.BeginMenu(label, enabled) end
function ImGui.EndMenu() end
---@param label string
---@param shortcut? string|nil
---@param selected? boolean|nil @if the menu item is activated, this value will be toggled and returned back as 2nd param
---@param enabled? boolean
---@return boolean activated, boolean selected
function ImGui.MenuItem(label, shortcut, selected, enabled) end
--- Tooltips
function ImGui.BeginTooltip() end
function ImGui.EndTooltip() end
function ImGui.SetTooltip(...) end
--
-- Popups, Modals
--
--- return true if the popup is open, and you can start outputting to it.
---@param strId string
---@param flags? ImGuiWindowFlags
---@return boolean
function ImGui.BeginPopup(strId, flags) end
--- If no open param is provided, or if it is nil, then only the boolean
--- result from BeginPopupModal is returned.
---@param name string
---@param open? nil
---@param flags? ImGuiWindowFlags
---@return boolean