-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcimgui_te.cpp
More file actions
1302 lines (940 loc) · 54.3 KB
/
cimgui_te.cpp
File metadata and controls
1302 lines (940 loc) · 54.3 KB
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
#include "imgui_te_context.h"
#include "imgui_te_engine.h"
#include "imgui_te_coroutine.h"
#include "imgui_te_internal.h"
#include "imgui_te_perftool.h"
#include "imgui_capture_tool.h"
#include "imgui_te_exporters.h"
#include "imgui_te_ui.h"
#include "imgui_te_utils.h"
#include "cimgui_te.h"
// imgui_te_internal.h
CIMGUI_TE_API ImGuiTestItemInfo* cImGuiTestEngine_FindItemInfo(ImGuiTestEngine* engine, unsigned int id,
const char* debug_id) {
return ImGuiTestEngine_FindItemInfo(engine, id, debug_id);
}
CIMGUI_TE_API void cImGuiTestEngine_Yield(ImGuiTestEngine* engine) { ImGuiTestEngine_Yield(engine); }
CIMGUI_TE_API void cImGuiTestEngine_SetDeltaTime(ImGuiTestEngine* engine, float delta_time) {
ImGuiTestEngine_SetDeltaTime(engine, delta_time);
}
CIMGUI_TE_API int cImGuiTestEngine_GetFrameCount(ImGuiTestEngine* engine) {
return ImGuiTestEngine_GetFrameCount(engine);
}
CIMGUI_TE_API bool cImGuiTestEngine_PassFilter(ImGuiTest* test, const char* filter) {
return ImGuiTestEngine_PassFilter(test, filter);
}
CIMGUI_TE_API void cImGuiTestEngine_RunTest(ImGuiTestEngine* engine, ImGuiTestContext* ctx, ImGuiTest* test,
int run_flags) {
ImGuiTestEngine_RunTest(engine, ctx, test, run_flags);
}
CIMGUI_TE_API void cImGuiTestEngine_BindImGuiContext(ImGuiTestEngine* engine, ImGuiContext* ui_ctx) {
ImGuiTestEngine_BindImGuiContext(engine, ui_ctx);
}
CIMGUI_TE_API void cImGuiTestEngine_UnbindImGuiContext(ImGuiTestEngine* engine, ImGuiContext* ui_ctx) {
ImGuiTestEngine_UnbindImGuiContext(engine, ui_ctx);
}
CIMGUI_TE_API void cImGuiTestEngine_RebootUiContext(ImGuiTestEngine* engine) {
ImGuiTestEngine_RebootUiContext(engine);
}
CIMGUI_TE_API ImGuiPerfTool* cImGuiTestEngine_GetPerfTool(ImGuiTestEngine* engine) {
return ImGuiTestEngine_GetPerfTool(engine);
}
CIMGUI_TE_API void cImGuiTestEngine_UpdateTestsSourceLines(ImGuiTestEngine* engine) {
ImGuiTestEngine_UpdateTestsSourceLines(engine);
}
CIMGUI_TE_API bool cImGuiTestEngine_CaptureScreenshot(ImGuiTestEngine* engine, ImGuiCaptureArgs* args) {
return ImGuiTestEngine_CaptureScreenshot(engine, args);
}
CIMGUI_TE_API bool cImGuiTestEngine_CaptureBeginVideo(ImGuiTestEngine* engine, ImGuiCaptureArgs* args) {
return ImGuiTestEngine_CaptureBeginVideo(engine, args);
}
CIMGUI_TE_API bool cImGuiTestEngine_CaptureEndVideo(ImGuiTestEngine* engine, ImGuiCaptureArgs* args) {
return ImGuiTestEngine_CaptureEndVideo(engine, args);
}
CIMGUI_TE_API const char* cImGuiTestEngine_GetStatusName(ImGuiTestStatus v) { return ImGuiTestEngine_GetStatusName(v); }
CIMGUI_TE_API const char* cImGuiTestEngine_GetRunSpeedName(ImGuiTestRunSpeed v) {
return ImGuiTestEngine_GetRunSpeedName(v);
}
CIMGUI_TE_API const char* cImGuiTestEngine_GetVerboseLevelName(ImGuiTestVerboseLevel v) {
return ImGuiTestEngine_GetVerboseLevelName(v);
}
// imgui_te_utils.h
CIMGUI_TE_API ImGuiID cImHashDecoratedPath(const char* str, const char* str_end, unsigned int seed) {
return ImHashDecoratedPath(str, str_end, seed);
}
CIMGUI_TE_API const char* cImFindNextDecoratedPartInPath(const char* str, const char* str_end) {
return ImFindNextDecoratedPartInPath(str, str_end);
}
CIMGUI_TE_API bool cImFileExist(const char* filename) { return ImFileExist(filename); }
CIMGUI_TE_API bool cImFileDelete(const char* filename) { return ImFileDelete(filename); }
CIMGUI_TE_API bool cImFileCreateDirectoryChain(const char* path, const char* path_end) {
return ImFileCreateDirectoryChain(path, path_end);
}
CIMGUI_TE_API bool cImFileFindInParents(const char* sub_path, int max_parent_count, Str* output) {
return ImFileFindInParents(sub_path, max_parent_count, output);
}
CIMGUI_TE_API bool cImFileLoadSourceBlurb(const char* filename, int line_no_start, int line_no_end,
ImGuiTextBuffer* out_buf) {
return ImFileLoadSourceBlurb(filename, line_no_start, line_no_end, out_buf);
}
CIMGUI_TE_API const char* cImPathFindFilename(const char* path, const char* path_end) {
return ImPathFindFilename(path, path_end);
}
CIMGUI_TE_API const char* cImPathFindExtension(const char* path, const char* path_end) {
return ImPathFindExtension(path, path_end);
}
CIMGUI_TE_API void cImPathFixSeparatorsForCurrentOS(char* buf) { ImPathFixSeparatorsForCurrentOS(buf); }
CIMGUI_TE_API void cImStrReplace(Str* s, const char* find, const char* repl) { ImStrReplace(s, find, repl); }
CIMGUI_TE_API const char* cImStrchrRangeWithEscaping(const char* str, const char* str_end, char find_c) {
return ImStrchrRangeWithEscaping(str, str_end, find_c);
}
CIMGUI_TE_API void cImStrXmlEscape(Str* s) { ImStrXmlEscape(s); }
CIMGUI_TE_API int cImStrBase64Encode(const unsigned char* src, char* dst, int length) {
return ImStrBase64Encode(src, dst, length);
}
CIMGUI_TE_API void cImStrTrimTrailingZeroesFromFloat(char* buf, char* buf_end) {
ImStrTrimTrailingZeroesFromFloat(buf, buf_end);
}
CIMGUI_TE_API void cImParseExtractArgcArgvFromCommandLine(int* out_argc, const char*** out_argv, const char* cmd_line) {
ImParseExtractArgcArgvFromCommandLine(out_argc, out_argv, cmd_line);
}
CIMGUI_TE_API bool cImParseFindIniSection(const char* ini_config, const char* header, ImVector_char* result) {
return ImParseFindIniSection(ini_config, header, result);
}
CIMGUI_TE_API uint64_t cImTimeGetInMicroseconds() { return ImTimeGetInMicroseconds(); }
CIMGUI_TE_API void cImTimestampToISO8601(unsigned long long timestamp, Str* out_date) {
ImTimestampToISO8601(timestamp, out_date);
}
CIMGUI_TE_API void cImThreadSleepInMilliseconds(int ms) { ImThreadSleepInMilliseconds(ms); }
CIMGUI_TE_API void cImThreadSetCurrentThreadDescription(const char* description) {
ImThreadSetCurrentThreadDescription(description);
}
CIMGUI_TE_API const ImBuildInfo* cImBuildGetCompilationInfo() { return ImBuildGetCompilationInfo(); }
CIMGUI_TE_API bool cImBuildFindGitBranchName(const char* git_repo_path, Str* branch_name) {
return ImBuildFindGitBranchName(git_repo_path, branch_name);
}
CIMGUI_TE_API bool cImOsCreateProcess(const char* cmd_line) { return ImOsCreateProcess(cmd_line); }
CIMGUI_TE_API FILE* cImOsPOpen(const char* cmd_line, const char* mode) { return ImOsPOpen(cmd_line, mode); }
CIMGUI_TE_API void cImOsPClose(FILE* fp) { ImOsPClose(fp); }
CIMGUI_TE_API void cImOsOpenInShell(const char* path) { ImOsOpenInShell(path); }
CIMGUI_TE_API bool cImOsIsDebuggerPresent() { return ImOsIsDebuggerPresent(); }
CIMGUI_TE_API void cImOsOutputDebugString(const char* message) { ImOsOutputDebugString(message); }
CIMGUI_TE_API void cImOsConsoleSetTextColor(ImOsConsoleStream stream, ImOsConsoleTextColor color) {
ImOsConsoleSetTextColor(stream, color);
}
CIMGUI_TE_API ImGuiID cTableGetHeaderID_Str(ImGuiTable* table, const char* column, int instance_no) {
return TableGetHeaderID(table, column, instance_no);
}
CIMGUI_TE_API ImGuiID cTableGetHeaderID_int(ImGuiTable* table, int column_n, int instance_no) {
return TableGetHeaderID(table, column_n, instance_no);
}
CIMGUI_TE_API void cTableDiscardInstanceAndSettings(unsigned int table_id) {
TableDiscardInstanceAndSettings(table_id);
}
CIMGUI_TE_API void cDrawDataVerifyMatchingBufferCount(ImDrawData* draw_data) {
DrawDataVerifyMatchingBufferCount(draw_data);
}
// imgui_te_exporters.h
CIMGUI_TE_API void cImGuiTestEngine_PrintResultSummary(ImGuiTestEngine* engine) {
ImGuiTestEngine_PrintResultSummary(engine);
}
CIMGUI_TE_API void cImGuiTestEngine_Export(ImGuiTestEngine* engine) { ImGuiTestEngine_Export(engine); }
CIMGUI_TE_API void cImGuiTestEngine_ExportEx(ImGuiTestEngine* engine, ImGuiTestEngineExportFormat format,
const char* filename) {
ImGuiTestEngine_ExportEx(engine, format, filename);
}
// imgui_te_ui.h
CIMGUI_TE_API void cImGuiTestEngine_ShowTestEngineWindows(ImGuiTestEngine* engine, bool* p_open) {
ImGuiTestEngine_ShowTestEngineWindows(engine, p_open);
}
CIMGUI_TE_API void cImGuiTestEngine_OpenSourceFile(ImGuiTestEngine* engine, const char* source_filename,
int source_line_no) {
ImGuiTestEngine_OpenSourceFile(engine, source_filename, source_line_no);
}
// imgui_te_engine.h
CIMGUI_TE_API void cImGuiTestEngineHook_ItemAdd(ImGuiContext* ui_ctx, unsigned int id, const ImRect* bb,
const ImGuiLastItemData* item_data) {
ImGuiTestEngineHook_ItemAdd(ui_ctx, id, *bb, item_data);
}
CIMGUI_TE_API void cImGuiTestEngineHook_ItemInfo(ImGuiContext* ui_ctx, unsigned int id, const char* label, int flags) {
ImGuiTestEngineHook_ItemInfo(ui_ctx, id, label, flags);
}
CIMGUI_TE_API void cImGuiTestEngineHook_Log(ImGuiContext* ui_ctx, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
ImGuiTestEngineHook_Log(ui_ctx, fmt, args);
va_end(args);
}
CIMGUI_TE_API const char* cImGuiTestEngine_FindItemDebugLabel(ImGuiContext* ui_ctx, unsigned int id) {
return ImGuiTestEngine_FindItemDebugLabel(ui_ctx, id);
}
CIMGUI_TE_API bool cImGuiTestEngine_Check(const char* file, const char* func, int line, int flags, bool result,
const char* expr) {
return ImGuiTestEngine_Check(file, func, line, flags, result, expr);
}
CIMGUI_TE_API bool cImGuiTestEngine_CheckOpStr(const char* file, const char* func, int line, int flags, const char* op,
const char* lhs_desc, const char* lhs_value, const char* rhs_desc,
const char* rhs_value, bool* out_result) {
return ImGuiTestEngine_CheckOpStr(file, func, line, flags, op, lhs_desc, lhs_value, rhs_desc, rhs_value,
out_result);
}
CIMGUI_TE_API bool cImGuiTestEngine_Error(const char* file, const char* func, int line, int flags, const char* fmt,
...) {
va_list args;
va_start(args, fmt);
bool ret = ImGuiTestEngine_Error(file, func, line, flags, fmt, args);
va_end(args);
return ret;
}
CIMGUI_TE_API void cImGuiTestEngine_AssertLog(const char* expr, const char* file, const char* function, int line) {
ImGuiTestEngine_AssertLog(expr, file, function, line);
}
CIMGUI_TE_API ImGuiTextBuffer* cImGuiTestEngine_GetTempStringBuilder() {
return ImGuiTestEngine_GetTempStringBuilder();
}
CIMGUI_TE_API ImGuiTestEngine* cImGuiTestEngine_CreateContext() { return ImGuiTestEngine_CreateContext(); }
CIMGUI_TE_API void cImGuiTestEngine_DestroyContext(ImGuiTestEngine* engine) { ImGuiTestEngine_DestroyContext(engine); }
CIMGUI_TE_API void cImGuiTestEngine_Start(ImGuiTestEngine* engine, ImGuiContext* ui_ctx) {
ImGuiTestEngine_Start(engine, ui_ctx);
}
CIMGUI_TE_API void cImGuiTestEngine_Stop(ImGuiTestEngine* engine) { ImGuiTestEngine_Stop(engine); }
CIMGUI_TE_API void cImGuiTestEngine_PostSwap(ImGuiTestEngine* engine) { ImGuiTestEngine_PostSwap(engine); }
CIMGUI_TE_API ImGuiTestEngineIO* cImGuiTestEngine_GetIO(ImGuiTestEngine* engine) {
return &(ImGuiTestEngine_GetIO(engine));
}
CIMGUI_TE_API ImGuiTest* cImGuiTestEngine_RegisterTest(ImGuiTestEngine* engine, const char* category, const char* name,
const char* src_file, int src_line) {
return ImGuiTestEngine_RegisterTest(engine, category, name, src_file, src_line);
}
CIMGUI_TE_API void cImGuiTestEngine_UnregisterTest(ImGuiTestEngine* engine, ImGuiTest* test) {
ImGuiTestEngine_UnregisterTest(engine, test);
}
CIMGUI_TE_API void cImGuiTestEngine_UnregisterAllTests(ImGuiTestEngine* engine) {
ImGuiTestEngine_UnregisterAllTests(engine);
}
CIMGUI_TE_API void cImGuiTestEngine_QueueTest(ImGuiTestEngine* engine, ImGuiTest* test, int run_flags) {
ImGuiTestEngine_QueueTest(engine, test, run_flags);
}
CIMGUI_TE_API void cImGuiTestEngine_QueueTests(ImGuiTestEngine* engine, ImGuiTestGroup group, const char* filter,
int run_flags) {
ImGuiTestEngine_QueueTests(engine, group, filter, run_flags);
}
CIMGUI_TE_API bool cImGuiTestEngine_TryAbortEngine(ImGuiTestEngine* engine) {
return ImGuiTestEngine_TryAbortEngine(engine);
}
CIMGUI_TE_API void cImGuiTestEngine_AbortCurrentTest(ImGuiTestEngine* engine) {
ImGuiTestEngine_AbortCurrentTest(engine);
}
CIMGUI_TE_API ImGuiTest* cImGuiTestEngine_FindTestByName(ImGuiTestEngine* engine, const char* category,
const char* name) {
return ImGuiTestEngine_FindTestByName(engine, category, name);
}
CIMGUI_TE_API bool cImGuiTestEngine_IsTestQueueEmpty(ImGuiTestEngine* engine) {
return ImGuiTestEngine_IsTestQueueEmpty(engine);
}
CIMGUI_TE_API bool cImGuiTestEngine_IsUsingSimulatedInputs(ImGuiTestEngine* engine) {
return ImGuiTestEngine_IsUsingSimulatedInputs(engine);
}
CIMGUI_TE_API void cImGuiTestEngine_GetResultSummary(ImGuiTestEngine* engine,
ImGuiTestEngineResultSummary* out_results) {
ImGuiTestEngine_GetResultSummary(engine, out_results);
}
CIMGUI_TE_API void cImGuiTestEngine_GetTestList(ImGuiTestEngine* engine, ImVector_ImGuiTest_Ptr* out_tests) {
ImGuiTestEngine_GetTestList(engine, out_tests);
}
CIMGUI_TE_API void cImGuiTestEngine_GetTestQueue(ImGuiTestEngine* engine, ImVector_ImGuiTestRunTask* out_tests) {
ImGuiTestEngine_GetTestQueue(engine, out_tests);
}
CIMGUI_TE_API void cImGuiTestEngine_InstallDefaultCrashHandler() { ImGuiTestEngine_InstallDefaultCrashHandler(); }
CIMGUI_TE_API void cImGuiTestEngine_CrashHandler() { ImGuiTestEngine_CrashHandler(); }
// imgui_te_perftool.h
CIMGUI_TE_API void cImGuiTestEngine_PerfToolAppendToCSV(ImGuiPerfTool* perf_log, ImGuiPerfToolEntry* entry,
const char* filename) {
ImGuiTestEngine_PerfToolAppendToCSV(perf_log, entry, filename);
}
// imgui_te_coroutine.h
#ifdef IMGUI_TEST_ENGINE_ENABLE_COROUTINE_STDTHREAD_IMPL
CIMGUI_TE_API ImGuiTestCoroutineInterface* cCoroutine_ImplStdThread_GetInterface() {
return Coroutine_ImplStdThread_GetInterface();
}
#endif // IMGUI_TEST_ENGINE_ENABLE_COROUTINE_STDTHREAD_IMPL
CIMGUI_TE_API ImGuiCaptureImageBuf* ImGuiCaptureImageBuf_ImGuiCaptureImageBuf() {
return IM_NEW(ImGuiCaptureImageBuf)();
}
CIMGUI_TE_API void ImGuiCaptureImageBuf_destroy(ImGuiCaptureImageBuf* self) { IM_DELETE(self); }
CIMGUI_TE_API void ImGuiCaptureImageBuf_Clear(ImGuiCaptureImageBuf* self) { self->Clear(); }
CIMGUI_TE_API void ImGuiCaptureImageBuf_CreateEmpty(ImGuiCaptureImageBuf* self, int w, int h) {
self->CreateEmpty(w, h);
}
CIMGUI_TE_API bool ImGuiCaptureImageBuf_SaveFile(ImGuiCaptureImageBuf* self, const char* filename) {
return self->SaveFile(filename);
}
CIMGUI_TE_API void ImGuiCaptureImageBuf_RemoveAlpha(ImGuiCaptureImageBuf* self) { self->RemoveAlpha(); }
CIMGUI_TE_API ImGuiCaptureContext* ImGuiCaptureContext_ImGuiCaptureContext(ImGuiScreenCaptureFunc* capture_func) {
return IM_NEW(ImGuiCaptureContext)(capture_func);
}
CIMGUI_TE_API void ImGuiCaptureContext_PreNewFrame(ImGuiCaptureContext* self) { self->PreNewFrame(); }
CIMGUI_TE_API void ImGuiCaptureContext_PreRender(ImGuiCaptureContext* self) { self->PreRender(); }
CIMGUI_TE_API void ImGuiCaptureContext_PostRender(ImGuiCaptureContext* self) { self->PostRender(); }
CIMGUI_TE_API ImGuiCaptureStatus ImGuiCaptureContext_CaptureUpdate(ImGuiCaptureContext* self, ImGuiCaptureArgs* args) {
return self->CaptureUpdate(args);
}
CIMGUI_TE_API void ImGuiCaptureContext_RestoreBackedUpData(ImGuiCaptureContext* self) { self->RestoreBackedUpData(); }
CIMGUI_TE_API void ImGuiCaptureContext_ClearState(ImGuiCaptureContext* self) { self->ClearState(); }
CIMGUI_TE_API void ImGuiCaptureContext_BeginVideoCapture(ImGuiCaptureContext* self, ImGuiCaptureArgs* args) {
self->BeginVideoCapture(args);
}
CIMGUI_TE_API void ImGuiCaptureContext_EndVideoCapture(ImGuiCaptureContext* self) { self->EndVideoCapture(); }
CIMGUI_TE_API bool ImGuiCaptureContext_IsCapturingVideo(ImGuiCaptureContext* self) { return self->IsCapturingVideo(); }
CIMGUI_TE_API bool ImGuiCaptureContext_IsCapturing(ImGuiCaptureContext* self) { return self->IsCapturing(); }
CIMGUI_TE_API void ImGuiCaptureContext_destroy(ImGuiCaptureContext* self) { IM_DELETE(self); }
CIMGUI_TE_API ImGuiCaptureToolUI* ImGuiCaptureToolUI_ImGuiCaptureToolUI() { return IM_NEW(ImGuiCaptureToolUI)(); }
CIMGUI_TE_API void ImGuiCaptureToolUI_ShowCaptureToolWindow(ImGuiCaptureToolUI* self, ImGuiCaptureContext* context,
bool* p_open) {
self->ShowCaptureToolWindow(context, p_open);
}
CIMGUI_TE_API void ImGuiCaptureToolUI__CaptureWindowPicker(ImGuiCaptureToolUI* self, ImGuiCaptureArgs* args) {
self->_CaptureWindowPicker(args);
}
CIMGUI_TE_API void ImGuiCaptureToolUI__CaptureWindowsSelector(ImGuiCaptureToolUI* self, ImGuiCaptureContext* context,
ImGuiCaptureArgs* args) {
self->_CaptureWindowsSelector(context, args);
}
CIMGUI_TE_API void ImGuiCaptureToolUI__SnapWindowsToGrid(ImGuiCaptureToolUI* self, float cell_size) {
self->_SnapWindowsToGrid(cell_size);
}
CIMGUI_TE_API bool ImGuiCaptureToolUI__InitializeOutputFile(ImGuiCaptureToolUI* self) {
return self->_InitializeOutputFile();
}
CIMGUI_TE_API bool ImGuiCaptureToolUI__ShowEncoderConfigFields(ImGuiCaptureToolUI* self, ImGuiCaptureContext* context) {
return self->_ShowEncoderConfigFields(context);
}
CIMGUI_TE_API void ImGuiCaptureToolUI_destroy(ImGuiCaptureToolUI* self) { IM_DELETE(self); }
CIMGUI_TE_API ImGuiTestItemInfo* ImGuiTestItemInfo_ImGuiTestItemInfo() { return IM_NEW(ImGuiTestItemInfo)(); }
CIMGUI_TE_API void ImGuiTestItemInfo_destroy(ImGuiTestItemInfo* self) { IM_DELETE(self); }
CIMGUI_TE_API void ImGuiTestItemList_Clear(ImGuiTestItemList* self) { self->Clear(); }
CIMGUI_TE_API void ImGuiTestItemList_Reserve(ImGuiTestItemList* self, int capacity) { self->Reserve(capacity); }
CIMGUI_TE_API int ImGuiTestItemList_GetSize(ImGuiTestItemList* self) { return self->GetSize(); }
CIMGUI_TE_API const ImGuiTestItemInfo* ImGuiTestItemList_GetByIndex(ImGuiTestItemList* self, int n) {
return self->GetByIndex(n);
}
CIMGUI_TE_API const ImGuiTestItemInfo* ImGuiTestItemList_GetByID(ImGuiTestItemList* self, unsigned int id) {
return self->GetByID(id);
}
CIMGUI_TE_API size_t ImGuiTestItemList_size(ImGuiTestItemList* self) { return self->size(); }
CIMGUI_TE_API const ImGuiTestItemInfo* ImGuiTestItemList_begin(ImGuiTestItemList* self) { return self->begin(); }
CIMGUI_TE_API const ImGuiTestItemInfo* ImGuiTestItemList_end(ImGuiTestItemList* self) { return self->end(); }
CIMGUI_TE_API ImGuiTestLog* ImGuiTestLog_ImGuiTestLog() { return IM_NEW(ImGuiTestLog)(); }
CIMGUI_TE_API bool ImGuiTestLog_IsEmpty(ImGuiTestLog* self) { return self->IsEmpty(); }
CIMGUI_TE_API const char* ImGuiTestLog_GetText(ImGuiTestLog* self) { return self->GetText(); }
CIMGUI_TE_API int ImGuiTestLog_GetTextLen(ImGuiTestLog* self) { return self->GetTextLen(); }
CIMGUI_TE_API void ImGuiTestLog_Clear(ImGuiTestLog* self) { self->Clear(); }
CIMGUI_TE_API int ImGuiTestLog_ExtractLinesForVerboseLevels(ImGuiTestLog* self, ImGuiTestVerboseLevel level_min,
ImGuiTestVerboseLevel level_max,
ImGuiTextBuffer* out_buffer) {
return self->ExtractLinesForVerboseLevels(level_min, level_max, out_buffer);
}
CIMGUI_TE_API void ImGuiTestLog_UpdateLineOffsets(ImGuiTestLog* self, ImGuiTestEngineIO* engine_io,
ImGuiTestVerboseLevel level, const char* start) {
self->UpdateLineOffsets(engine_io, level, start);
}
CIMGUI_TE_API void ImGuiTestLog_destroy(ImGuiTestLog* self) { IM_DELETE(self); }
CIMGUI_TE_API ImGuiTest* ImGuiTest_ImGuiTest() { return IM_NEW(ImGuiTest)(); }
CIMGUI_TE_API void ImGuiTest_destroy(ImGuiTest* self) { IM_DELETE(self); }
CIMGUI_TE_API void ImGuiTest_SetOwnedName(ImGuiTest* self, const char* name) { self->SetOwnedName(name); }
CIMGUI_TE_API void ImGuiTestRef_ImGuiTestRef_TestRefPtr(ImGuiTestRef* pOut) { *pOut = ImGuiTestRef(); }
CIMGUI_TE_API void ImGuiTestRef_ImGuiTestRef_TestRefPtrUint(ImGuiTestRef* pOut, unsigned int id) {
*pOut = ImGuiTestRef(id);
}
CIMGUI_TE_API void ImGuiTestRef_ImGuiTestRef_TestRefPtrStr(ImGuiTestRef* pOut, const char* path) {
*pOut = ImGuiTestRef(path);
}
CIMGUI_TE_API bool ImGuiTestRef_IsEmpty(ImGuiTestRef* self) { return self->IsEmpty(); }
CIMGUI_TE_API void ImGuiTestRef_destroy(ImGuiTestRef* self) { IM_DELETE(self); }
CIMGUI_TE_API const char* ImGuiTestRefDesc_c_str(ImGuiTestRefDesc* self) { return self->c_str(); }
CIMGUI_TE_API void ImGuiTestRefDesc_ImGuiTestRefDesc_constTestRefPtr(ImGuiTestRefDesc* pOut, const ImGuiTestRef* ref) {
*pOut = ImGuiTestRefDesc(*ref);
}
CIMGUI_TE_API void
ImGuiTestRefDesc_ImGuiTestRefDesc_constTestRefPtrconstTestItemInfoPtr(ImGuiTestRefDesc* pOut, const ImGuiTestRef* ref,
const ImGuiTestItemInfo* item) {
*pOut = ImGuiTestRefDesc(*ref, *item);
}
CIMGUI_TE_API void ImGuiTestRefDesc_destroy(ImGuiTestRefDesc* self) { IM_DELETE(self); }
CIMGUI_TE_API ImGuiTestActionFilter* ImGuiTestActionFilter_ImGuiTestActionFilter() {
return IM_NEW(ImGuiTestActionFilter)();
}
CIMGUI_TE_API void ImGuiTestActionFilter_destroy(ImGuiTestActionFilter* self) { IM_DELETE(self); }
CIMGUI_TE_API ImGuiTestGenericItemStatus* ImGuiTestGenericItemStatus_ImGuiTestGenericItemStatus() {
return IM_NEW(ImGuiTestGenericItemStatus)();
}
CIMGUI_TE_API void ImGuiTestGenericItemStatus_Clear(ImGuiTestGenericItemStatus* self) { self->Clear(); }
CIMGUI_TE_API void ImGuiTestGenericItemStatus_QuerySet(ImGuiTestGenericItemStatus* self, bool ret_val) {
self->QuerySet(ret_val);
}
CIMGUI_TE_API void ImGuiTestGenericItemStatus_QueryInc(ImGuiTestGenericItemStatus* self, bool ret_val) {
self->QueryInc(ret_val);
}
CIMGUI_TE_API void ImGuiTestGenericItemStatus_Draw(ImGuiTestGenericItemStatus* self) { self->Draw(); }
CIMGUI_TE_API void ImGuiTestGenericItemStatus_destroy(ImGuiTestGenericItemStatus* self) { IM_DELETE(self); }
CIMGUI_TE_API ImGuiTestGenericVars* ImGuiTestGenericVars_ImGuiTestGenericVars() {
return IM_NEW(ImGuiTestGenericVars)();
}
CIMGUI_TE_API void ImGuiTestGenericVars_Clear(ImGuiTestGenericVars* self) { self->Clear(); }
CIMGUI_TE_API void ImGuiTestGenericVars_destroy(ImGuiTestGenericVars* self) { IM_DELETE(self); }
CIMGUI_TE_API void ImGuiTestContext_Finish(ImGuiTestContext* self, ImGuiTestStatus status) { self->Finish(status); }
CIMGUI_TE_API ImGuiTestStatus ImGuiTestContext_RunChildTest(ImGuiTestContext* self, const char* test_name, int flags) {
return self->RunChildTest(test_name, flags);
}
CIMGUI_TE_API bool ImGuiTestContext_IsError(ImGuiTestContext* self) { return self->IsError(); }
CIMGUI_TE_API bool ImGuiTestContext_IsWarmUpGuiFrame(ImGuiTestContext* self) { return self->IsWarmUpGuiFrame(); }
CIMGUI_TE_API bool ImGuiTestContext_IsFirstGuiFrame(ImGuiTestContext* self) { return self->IsFirstGuiFrame(); }
CIMGUI_TE_API bool ImGuiTestContext_IsFirstTestFrame(ImGuiTestContext* self) { return self->IsFirstTestFrame(); }
CIMGUI_TE_API bool ImGuiTestContext_IsGuiFuncOnly(ImGuiTestContext* self) { return self->IsGuiFuncOnly(); }
CIMGUI_TE_API bool ImGuiTestContext_SuspendTestFunc(ImGuiTestContext* self, const char* file, int line) {
return self->SuspendTestFunc(file, line);
}
CIMGUI_TE_API void ImGuiTestContext_LogEx(ImGuiTestContext* self, ImGuiTestVerboseLevel level, int flags,
const char* fmt, ...) {
va_list args;
va_start(args, fmt);
self->LogEx(level, flags, fmt, args);
va_end(args);
}
CIMGUI_TE_API void ImGuiTestContext_LogExV(ImGuiTestContext* self, ImGuiTestVerboseLevel level, int flags,
const char* fmt, va_list args) {
self->LogExV(level, flags, fmt, args);
}
CIMGUI_TE_API void ImGuiTestContext_LogToTTY(ImGuiTestContext* self, ImGuiTestVerboseLevel level, const char* message,
const char* message_end) {
self->LogToTTY(level, message, message_end);
}
CIMGUI_TE_API void ImGuiTestContext_LogToDebugger(ImGuiTestContext* self, ImGuiTestVerboseLevel level,
const char* message) {
self->LogToDebugger(level, message);
}
CIMGUI_TE_API void ImGuiTestContext_LogDebug(ImGuiTestContext* self, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
self->LogDebug(fmt, args);
va_end(args);
}
CIMGUI_TE_API void ImGuiTestContext_LogInfo(ImGuiTestContext* self, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
self->LogInfo(fmt, args);
va_end(args);
}
CIMGUI_TE_API void ImGuiTestContext_LogWarning(ImGuiTestContext* self, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
self->LogWarning(fmt, args);
va_end(args);
}
CIMGUI_TE_API void ImGuiTestContext_LogError(ImGuiTestContext* self, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
self->LogError(fmt, args);
va_end(args);
}
CIMGUI_TE_API void ImGuiTestContext_LogBasicUiState(ImGuiTestContext* self) { self->LogBasicUiState(); }
CIMGUI_TE_API void ImGuiTestContext_LogItemList(ImGuiTestContext* self, ImGuiTestItemList* list) {
self->LogItemList(list);
}
CIMGUI_TE_API void ImGuiTestContext_Yield(ImGuiTestContext* self, int count) { self->Yield(count); }
CIMGUI_TE_API void ImGuiTestContext_Sleep(ImGuiTestContext* self, float time_in_second) { self->Sleep(time_in_second); }
CIMGUI_TE_API void ImGuiTestContext_SleepShort(ImGuiTestContext* self) { self->SleepShort(); }
CIMGUI_TE_API void ImGuiTestContext_SleepStandard(ImGuiTestContext* self) { self->SleepStandard(); }
CIMGUI_TE_API void ImGuiTestContext_SleepNoSkip(ImGuiTestContext* self, float time_in_second,
float framestep_in_second) {
self->SleepNoSkip(time_in_second, framestep_in_second);
}
CIMGUI_TE_API void ImGuiTestContext_SetRef_TestRef(ImGuiTestContext* self, ImGuiTestRef ref) { self->SetRef(ref); }
CIMGUI_TE_API void ImGuiTestContext_SetRef_WindowPtr(ImGuiTestContext* self, ImGuiWindow* window) {
self->SetRef(window);
}
CIMGUI_TE_API void ImGuiTestContext_GetRef(ImGuiTestRef* pOut, ImGuiTestContext* self) { *pOut = self->GetRef(); }
CIMGUI_TE_API void ImGuiTestContext_WindowInfo(ImGuiTestItemInfo* pOut, ImGuiTestContext* self, ImGuiTestRef window_ref,
int flags) {
*pOut = self->WindowInfo(window_ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_WindowClose(ImGuiTestContext* self, ImGuiTestRef window_ref) {
self->WindowClose(window_ref);
}
CIMGUI_TE_API void ImGuiTestContext_WindowCollapse(ImGuiTestContext* self, ImGuiTestRef window_ref, bool collapsed) {
self->WindowCollapse(window_ref, collapsed);
}
CIMGUI_TE_API void ImGuiTestContext_WindowFocus(ImGuiTestContext* self, ImGuiTestRef window_ref, int flags) {
self->WindowFocus(window_ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_WindowBringToFront(ImGuiTestContext* self, ImGuiTestRef window_ref, int flags) {
self->WindowBringToFront(window_ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_WindowMove(ImGuiTestContext* self, ImGuiTestRef window_ref, ImVec2 pos,
ImVec2 pivot, int flags) {
self->WindowMove(window_ref, pos, pivot, flags);
}
CIMGUI_TE_API void ImGuiTestContext_WindowResize(ImGuiTestContext* self, ImGuiTestRef window_ref, ImVec2 sz) {
self->WindowResize(window_ref, sz);
}
CIMGUI_TE_API bool ImGuiTestContext_WindowTeleportToMakePosVisible(ImGuiTestContext* self, ImGuiTestRef window_ref,
ImVec2 pos_in_window) {
return self->WindowTeleportToMakePosVisible(window_ref, pos_in_window);
}
CIMGUI_TE_API ImGuiWindow* ImGuiTestContext_GetWindowByRef(ImGuiTestContext* self, ImGuiTestRef window_ref) {
return self->GetWindowByRef(window_ref);
}
CIMGUI_TE_API void ImGuiTestContext_PopupCloseOne(ImGuiTestContext* self) { self->PopupCloseOne(); }
CIMGUI_TE_API void ImGuiTestContext_PopupCloseAll(ImGuiTestContext* self) { self->PopupCloseAll(); }
CIMGUI_TE_API ImGuiID ImGuiTestContext_PopupGetWindowID(ImGuiTestContext* self, ImGuiTestRef ref) {
return self->PopupGetWindowID(ref);
}
CIMGUI_TE_API ImGuiID ImGuiTestContext_GetID_TestRef(ImGuiTestContext* self, ImGuiTestRef ref) {
return self->GetID(ref);
}
CIMGUI_TE_API ImGuiID ImGuiTestContext_GetID_TestRefTestRef(ImGuiTestContext* self, ImGuiTestRef ref,
ImGuiTestRef seed_ref) {
return self->GetID(ref, seed_ref);
}
CIMGUI_TE_API void ImGuiTestContext_GetPosOnVoid(ImVec2* pOut, ImGuiTestContext* self, ImGuiViewport* viewport) {
*pOut = self->GetPosOnVoid(viewport);
}
CIMGUI_TE_API void ImGuiTestContext_GetWindowTitlebarPoint(ImVec2* pOut, ImGuiTestContext* self,
ImGuiTestRef window_ref) {
*pOut = self->GetWindowTitlebarPoint(window_ref);
}
CIMGUI_TE_API void ImGuiTestContext_GetMainMonitorWorkPos(ImVec2* pOut, ImGuiTestContext* self) {
*pOut = self->GetMainMonitorWorkPos();
}
CIMGUI_TE_API void ImGuiTestContext_GetMainMonitorWorkSize(ImVec2* pOut, ImGuiTestContext* self) {
*pOut = self->GetMainMonitorWorkSize();
}
CIMGUI_TE_API void ImGuiTestContext_CaptureReset(ImGuiTestContext* self) { self->CaptureReset(); }
CIMGUI_TE_API void ImGuiTestContext_CaptureSetExtension(ImGuiTestContext* self, const char* ext) {
self->CaptureSetExtension(ext);
}
CIMGUI_TE_API bool ImGuiTestContext_CaptureAddWindow(ImGuiTestContext* self, ImGuiTestRef ref) {
return self->CaptureAddWindow(ref);
}
CIMGUI_TE_API void ImGuiTestContext_CaptureScreenshotWindow(ImGuiTestContext* self, ImGuiTestRef ref,
int capture_flags) {
self->CaptureScreenshotWindow(ref, capture_flags);
}
CIMGUI_TE_API bool ImGuiTestContext_CaptureScreenshot(ImGuiTestContext* self, int capture_flags) {
return self->CaptureScreenshot(capture_flags);
}
CIMGUI_TE_API bool ImGuiTestContext_CaptureBeginVideo(ImGuiTestContext* self) { return self->CaptureBeginVideo(); }
CIMGUI_TE_API bool ImGuiTestContext_CaptureEndVideo(ImGuiTestContext* self) { return self->CaptureEndVideo(); }
CIMGUI_TE_API void ImGuiTestContext_MouseMove(ImGuiTestContext* self, ImGuiTestRef ref, int flags) {
self->MouseMove(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_MouseMoveToPos(ImGuiTestContext* self, ImVec2 pos) { self->MouseMoveToPos(pos); }
CIMGUI_TE_API void ImGuiTestContext_MouseTeleportToPos(ImGuiTestContext* self, ImVec2 pos, int flags) {
self->MouseTeleportToPos(pos, flags);
}
CIMGUI_TE_API void ImGuiTestContext_MouseClick(ImGuiTestContext* self, int button) { self->MouseClick(button); }
CIMGUI_TE_API void ImGuiTestContext_MouseClickMulti(ImGuiTestContext* self, int button, int count) {
self->MouseClickMulti(button, count);
}
CIMGUI_TE_API void ImGuiTestContext_MouseDoubleClick(ImGuiTestContext* self, int button) {
self->MouseDoubleClick(button);
}
CIMGUI_TE_API void ImGuiTestContext_MouseDown(ImGuiTestContext* self, int button) { self->MouseDown(button); }
CIMGUI_TE_API void ImGuiTestContext_MouseUp(ImGuiTestContext* self, int button) { self->MouseUp(button); }
CIMGUI_TE_API void ImGuiTestContext_MouseLiftDragThreshold(ImGuiTestContext* self, int button) {
self->MouseLiftDragThreshold(button);
}
CIMGUI_TE_API void ImGuiTestContext_MouseDragWithDelta(ImGuiTestContext* self, ImVec2 delta, int button) {
self->MouseDragWithDelta(delta, button);
}
CIMGUI_TE_API void ImGuiTestContext_MouseWheel(ImGuiTestContext* self, ImVec2 delta) { self->MouseWheel(delta); }
CIMGUI_TE_API void ImGuiTestContext_MouseWheelX(ImGuiTestContext* self, float dx) { self->MouseWheelX(dx); }
CIMGUI_TE_API void ImGuiTestContext_MouseWheelY(ImGuiTestContext* self, float dy) { self->MouseWheelY(dy); }
CIMGUI_TE_API void ImGuiTestContext_MouseMoveToVoid(ImGuiTestContext* self, ImGuiViewport* viewport) {
self->MouseMoveToVoid(viewport);
}
CIMGUI_TE_API void ImGuiTestContext_MouseClickOnVoid(ImGuiTestContext* self, int button, ImGuiViewport* viewport) {
self->MouseClickOnVoid(button, viewport);
}
CIMGUI_TE_API ImGuiWindow* ImGuiTestContext_FindHoveredWindowAtPos(ImGuiTestContext* self, const ImVec2* pos) {
return self->FindHoveredWindowAtPos(*pos);
}
CIMGUI_TE_API bool ImGuiTestContext_FindExistingVoidPosOnViewport(ImGuiTestContext* self, ImGuiViewport* viewport,
ImVec2* out) {
return self->FindExistingVoidPosOnViewport(viewport, out);
}
CIMGUI_TE_API void ImGuiTestContext_MouseSetViewport(ImGuiTestContext* self, ImGuiWindow* window) {
self->MouseSetViewport(window);
}
CIMGUI_TE_API void ImGuiTestContext_MouseSetViewportID(ImGuiTestContext* self, unsigned int viewport_id) {
self->MouseSetViewportID(viewport_id);
}
CIMGUI_TE_API void ImGuiTestContext_KeyDown(ImGuiTestContext* self, int key_chord) { self->KeyDown(key_chord); }
CIMGUI_TE_API void ImGuiTestContext_KeyUp(ImGuiTestContext* self, int key_chord) { self->KeyUp(key_chord); }
CIMGUI_TE_API void ImGuiTestContext_KeyPress(ImGuiTestContext* self, int key_chord, int count) {
self->KeyPress(key_chord, count);
}
CIMGUI_TE_API void ImGuiTestContext_KeyHold(ImGuiTestContext* self, int key_chord, float time) {
self->KeyHold(key_chord, time);
}
CIMGUI_TE_API void ImGuiTestContext_KeySetEx(ImGuiTestContext* self, int key_chord, bool is_down, float time) {
self->KeySetEx(key_chord, is_down, time);
}
CIMGUI_TE_API void ImGuiTestContext_KeyChars(ImGuiTestContext* self, const char* chars) { self->KeyChars(chars); }
CIMGUI_TE_API void ImGuiTestContext_KeyCharsAppend(ImGuiTestContext* self, const char* chars) {
self->KeyCharsAppend(chars);
}
CIMGUI_TE_API void ImGuiTestContext_KeyCharsAppendEnter(ImGuiTestContext* self, const char* chars) {
self->KeyCharsAppendEnter(chars);
}
CIMGUI_TE_API void ImGuiTestContext_KeyCharsReplace(ImGuiTestContext* self, const char* chars) {
self->KeyCharsReplace(chars);
}
CIMGUI_TE_API void ImGuiTestContext_KeyCharsReplaceEnter(ImGuiTestContext* self, const char* chars) {
self->KeyCharsReplaceEnter(chars);
}
CIMGUI_TE_API void ImGuiTestContext_SetInputMode(ImGuiTestContext* self, ImGuiInputSource input_mode) {
self->SetInputMode(input_mode);
}
CIMGUI_TE_API void ImGuiTestContext_NavMoveTo(ImGuiTestContext* self, ImGuiTestRef ref) { self->NavMoveTo(ref); }
CIMGUI_TE_API void ImGuiTestContext_NavActivate(ImGuiTestContext* self) { self->NavActivate(); }
CIMGUI_TE_API void ImGuiTestContext_NavInput(ImGuiTestContext* self) { self->NavInput(); }
CIMGUI_TE_API void ImGuiTestContext_ScrollTo(ImGuiTestContext* self, ImGuiTestRef ref, ImGuiAxis axis, float scroll_v,
int flags) {
self->ScrollTo(ref, axis, scroll_v, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToX(ImGuiTestContext* self, ImGuiTestRef ref, float scroll_x) {
self->ScrollToX(ref, scroll_x);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToY(ImGuiTestContext* self, ImGuiTestRef ref, float scroll_y) {
self->ScrollToY(ref, scroll_y);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToTop(ImGuiTestContext* self, ImGuiTestRef ref) { self->ScrollToTop(ref); }
CIMGUI_TE_API void ImGuiTestContext_ScrollToBottom(ImGuiTestContext* self, ImGuiTestRef ref) {
self->ScrollToBottom(ref);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToPos(ImGuiTestContext* self, ImGuiTestRef window_ref, float pos_v,
ImGuiAxis axis, int flags) {
self->ScrollToPos(window_ref, pos_v, axis, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToPosX(ImGuiTestContext* self, ImGuiTestRef window_ref, float pos_x) {
self->ScrollToPosX(window_ref, pos_x);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToPosY(ImGuiTestContext* self, ImGuiTestRef window_ref, float pos_y) {
self->ScrollToPosY(window_ref, pos_y);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToItem(ImGuiTestContext* self, ImGuiTestRef ref, ImGuiAxis axis, int flags) {
self->ScrollToItem(ref, axis, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToItemX(ImGuiTestContext* self, ImGuiTestRef ref) {
self->ScrollToItemX(ref);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToItemY(ImGuiTestContext* self, ImGuiTestRef ref) {
self->ScrollToItemY(ref);
}
CIMGUI_TE_API void ImGuiTestContext_ScrollToTabItem(ImGuiTestContext* self, ImGuiTabBar* tab_bar, unsigned int tab_id) {
self->ScrollToTabItem(tab_bar, tab_id);
}
CIMGUI_TE_API void ImGuiTestContext_ItemInfo(ImGuiTestItemInfo* pOut, ImGuiTestContext* self, ImGuiTestRef ref,
int flags) {
*pOut = self->ItemInfo(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemInfoOpenFullPath(ImGuiTestItemInfo* pOut, ImGuiTestContext* self,
ImGuiTestRef ref, int flags) {
*pOut = self->ItemInfoOpenFullPath(ref, flags);
}
CIMGUI_TE_API ImGuiID ImGuiTestContext_ItemInfoHandleWildcardSearch(ImGuiTestContext* self,
const char* wildcard_prefix_start,
const char* wildcard_prefix_end,
const char* wildcard_suffix_start) {
return self->ItemInfoHandleWildcardSearch(wildcard_prefix_start, wildcard_prefix_end, wildcard_suffix_start);
}
CIMGUI_TE_API void ImGuiTestContext_ItemInfoNull(ImGuiTestItemInfo* pOut, ImGuiTestContext* self) {
*pOut = self->ItemInfoNull();
}
CIMGUI_TE_API void ImGuiTestContext_GatherItems(ImGuiTestContext* self, ImGuiTestItemList* out_list,
ImGuiTestRef parent, int depth) {
self->GatherItems(out_list, parent, depth);
}
CIMGUI_TE_API void ImGuiTestContext_ItemAction(ImGuiTestContext* self, ImGuiTestAction action, ImGuiTestRef ref,
int flags, void* action_arg) {
self->ItemAction(action, ref, flags, action_arg);
}
CIMGUI_TE_API void ImGuiTestContext_ItemClick(ImGuiTestContext* self, ImGuiTestRef ref, int button, int flags) {
self->ItemClick(ref, button, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemDoubleClick(ImGuiTestContext* self, ImGuiTestRef ref, int flags) {
self->ItemDoubleClick(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemCheck(ImGuiTestContext* self, ImGuiTestRef ref, int flags) {
self->ItemCheck(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemUncheck(ImGuiTestContext* self, ImGuiTestRef ref, int flags) {
self->ItemUncheck(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemOpen(ImGuiTestContext* self, ImGuiTestRef ref, int flags) {
self->ItemOpen(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemClose(ImGuiTestContext* self, ImGuiTestRef ref, int flags) {
self->ItemClose(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemInput(ImGuiTestContext* self, ImGuiTestRef ref, int flags) {
self->ItemInput(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemNavActivate(ImGuiTestContext* self, ImGuiTestRef ref, int flags) {
self->ItemNavActivate(ref, flags);
}
CIMGUI_TE_API void ImGuiTestContext_ItemActionAll(ImGuiTestContext* self, ImGuiTestAction action,
ImGuiTestRef ref_parent, const ImGuiTestActionFilter* filter) {
self->ItemActionAll(action, ref_parent, filter);
}
CIMGUI_TE_API void ImGuiTestContext_ItemOpenAll(ImGuiTestContext* self, ImGuiTestRef ref_parent, int depth,
int passes) {
self->ItemOpenAll(ref_parent, depth, passes);
}
CIMGUI_TE_API void ImGuiTestContext_ItemCloseAll(ImGuiTestContext* self, ImGuiTestRef ref_parent, int depth,
int passes) {
self->ItemCloseAll(ref_parent, depth, passes);
}
CIMGUI_TE_API void ImGuiTestContext_ItemInputValue_int(ImGuiTestContext* self, ImGuiTestRef ref, int v) {
self->ItemInputValue(ref, v);
}
CIMGUI_TE_API void ImGuiTestContext_ItemInputValue_float(ImGuiTestContext* self, ImGuiTestRef ref, float f) {
self->ItemInputValue(ref, f);
}
CIMGUI_TE_API void ImGuiTestContext_ItemInputValue_Str(ImGuiTestContext* self, ImGuiTestRef ref, const char* str) {
self->ItemInputValue(ref, str);
}
CIMGUI_TE_API int ImGuiTestContext_ItemReadAsInt(ImGuiTestContext* self, ImGuiTestRef ref) {
return self->ItemReadAsInt(ref);
}
CIMGUI_TE_API float ImGuiTestContext_ItemReadAsFloat(ImGuiTestContext* self, ImGuiTestRef ref) {
return self->ItemReadAsFloat(ref);
}
CIMGUI_TE_API bool ImGuiTestContext_ItemReadAsScalar(ImGuiTestContext* self, ImGuiTestRef ref, int data_type,
void* out_data, int flags) {
return self->ItemReadAsScalar(ref, data_type, out_data, flags);
}
CIMGUI_TE_API const char* ImGuiTestContext_ItemReadAsString_TestRef(ImGuiTestContext* self, ImGuiTestRef ref) {
return self->ItemReadAsString(ref);
}
CIMGUI_TE_API size_t ImGuiTestContext_ItemReadAsString_TestRefStr(ImGuiTestContext* self, ImGuiTestRef ref,
char* out_buf, unsigned long out_buf_size) {