This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
header.odin
750 lines (664 loc) · 136 KB
/
header.odin
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
package imgui;
color_hsv :: #force_inline proc(pOut: ^Color, h: f32, s: f32, v: f32, a := f32(1.0)) do ImColor_HSV(pOut, h, s, v, a);
color_set_hsv :: #force_inline proc(self: ^Color, h: f32, s: f32, v: f32, a := f32(1.0)) do ImColor_SetHSV(self, h, s, v, a);
draw_data_clear :: #force_inline proc(self: ^Draw_Data) do ImDrawData_Clear(self);
draw_data_de_index_all_buffers :: #force_inline proc(self: ^Draw_Data) do ImDrawData_DeIndexAllBuffers(self);
draw_data_scale_clip_rects :: #force_inline proc(self: ^Draw_Data, fb_scale: Vec2) do ImDrawData_ScaleClipRects(self, fb_scale);
draw_list_splitter_clear :: #force_inline proc(self: ^Draw_List_Splitter) do ImDrawListSplitter_Clear(self);
draw_list_splitter_clear_free_memory :: #force_inline proc(self: ^Draw_List_Splitter) do ImDrawListSplitter_ClearFreeMemory(self);
draw_list_splitter_merge :: #force_inline proc(self: ^Draw_List_Splitter, draw_list: ^Draw_List) do ImDrawListSplitter_Merge(self, draw_list);
draw_list_splitter_set_current_channel :: #force_inline proc(self: ^Draw_List_Splitter, draw_list: ^Draw_List, channel_idx: i32) do ImDrawListSplitter_SetCurrentChannel(self, draw_list, channel_idx);
draw_list_splitter_split :: #force_inline proc(self: ^Draw_List_Splitter, draw_list: ^Draw_List, count: i32) do ImDrawListSplitter_Split(self, draw_list, count);
draw_list_add_bezier_cubic :: #force_inline proc(self: ^Draw_List, p1: Vec2, p2: Vec2, p3: Vec2, p4: Vec2, col: u32, thickness: f32, num_segments := i32(0)) do ImDrawList_AddBezierCubic(self, p1, p2, p3, p4, col, thickness, num_segments);
draw_list_add_bezier_quadratic :: #force_inline proc(self: ^Draw_List, p1: Vec2, p2: Vec2, p3: Vec2, col: u32, thickness: f32, num_segments := i32(0)) do ImDrawList_AddBezierQuadratic(self, p1, p2, p3, col, thickness, num_segments);
draw_list_add_callback :: #force_inline proc(self: ^Draw_List, callback: Draw_Callback, callback_data: rawptr) do ImDrawList_AddCallback(self, callback, callback_data);
draw_list_add_circle :: #force_inline proc(self: ^Draw_List, center: Vec2, radius: f32, col: u32, num_segments := i32(0), thickness := f32(1.0)) do ImDrawList_AddCircle(self, center, radius, col, num_segments, thickness);
draw_list_add_circle_filled :: #force_inline proc(self: ^Draw_List, center: Vec2, radius: f32, col: u32, num_segments := i32(0)) do ImDrawList_AddCircleFilled(self, center, radius, col, num_segments);
draw_list_add_convex_poly_filled :: #force_inline proc(self: ^Draw_List, points: ^Vec2, num_points: i32, col: u32) do ImDrawList_AddConvexPolyFilled(self, points, num_points, col);
draw_list_add_draw_cmd :: #force_inline proc(self: ^Draw_List) do ImDrawList_AddDrawCmd(self);
draw_list_add_image :: #force_inline proc(self: ^Draw_List, user_texture_id: Texture_ID, p_min: Vec2, p_max: Vec2, uv_min := Vec2(Vec2 {0,0}), uv_max := Vec2(Vec2 {1,1}), col := u32(4294967295)) do ImDrawList_AddImage(self, user_texture_id, p_min, p_max, uv_min, uv_max, col);
draw_list_add_image_quad :: #force_inline proc(self: ^Draw_List, user_texture_id: Texture_ID, p1: Vec2, p2: Vec2, p3: Vec2, p4: Vec2, uv1 := Vec2(Vec2 {0,0}), uv2 := Vec2(Vec2 {1,0}), uv3 := Vec2(Vec2 {1,1}), uv4 := Vec2(Vec2 {0,1}), col := u32(4294967295)) do ImDrawList_AddImageQuad(self, user_texture_id, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col);
draw_list_add_image_rounded :: #force_inline proc(self: ^Draw_List, user_texture_id: Texture_ID, p_min: Vec2, p_max: Vec2, uv_min: Vec2, uv_max: Vec2, col: u32, rounding: f32, flags := Draw_Flags(0)) do ImDrawList_AddImageRounded(self, user_texture_id, p_min, p_max, uv_min, uv_max, col, rounding, flags);
draw_list_add_line :: #force_inline proc(self: ^Draw_List, p1: Vec2, p2: Vec2, col: u32, thickness := f32(1.0)) do ImDrawList_AddLine(self, p1, p2, col, thickness);
draw_list_add_ngon :: #force_inline proc(self: ^Draw_List, center: Vec2, radius: f32, col: u32, num_segments: i32, thickness := f32(1.0)) do ImDrawList_AddNgon(self, center, radius, col, num_segments, thickness);
draw_list_add_ngon_filled :: #force_inline proc(self: ^Draw_List, center: Vec2, radius: f32, col: u32, num_segments: i32) do ImDrawList_AddNgonFilled(self, center, radius, col, num_segments);
draw_list_add_polyline :: #force_inline proc(self: ^Draw_List, points: ^Vec2, num_points: i32, col: u32, flags: Draw_Flags, thickness: f32) do ImDrawList_AddPolyline(self, points, num_points, col, flags, thickness);
draw_list_add_quad :: #force_inline proc(self: ^Draw_List, p1: Vec2, p2: Vec2, p3: Vec2, p4: Vec2, col: u32, thickness := f32(1.0)) do ImDrawList_AddQuad(self, p1, p2, p3, p4, col, thickness);
draw_list_add_quad_filled :: #force_inline proc(self: ^Draw_List, p1: Vec2, p2: Vec2, p3: Vec2, p4: Vec2, col: u32) do ImDrawList_AddQuadFilled(self, p1, p2, p3, p4, col);
draw_list_add_rect :: #force_inline proc(self: ^Draw_List, p_min: Vec2, p_max: Vec2, col: u32, rounding := f32(0.0), flags := Draw_Flags(0), thickness := f32(1.0)) do ImDrawList_AddRect(self, p_min, p_max, col, rounding, flags, thickness);
draw_list_add_rect_filled :: #force_inline proc(self: ^Draw_List, p_min: Vec2, p_max: Vec2, col: u32, rounding := f32(0.0), flags := Draw_Flags(0)) do ImDrawList_AddRectFilled(self, p_min, p_max, col, rounding, flags);
draw_list_add_rect_filled_multi_color :: #force_inline proc(self: ^Draw_List, p_min: Vec2, p_max: Vec2, col_upr_left: u32, col_upr_right: u32, col_bot_right: u32, col_bot_left: u32) do ImDrawList_AddRectFilledMultiColor(self, p_min, p_max, col_upr_left, col_upr_right, col_bot_right, col_bot_left);
add_text :: proc {
draw_list_add_text_vec2,
draw_list_add_text_font_ptr,
};
draw_list_add_text_vec2 :: #force_inline proc(self: ^Draw_List, pos: Vec2, col: u32, text_begin: string, text_end := "") do swr_ImDrawList_AddText_Vec2(self, pos, col, text_begin, text_end);
draw_list_add_text_font_ptr :: #force_inline proc(self: ^Draw_List, font: ^ImFont, font_size: f32, pos: Vec2, col: u32, text_begin: string, text_end := "", wrap_width := f32(0.0), cpu_fine_clip_rect : ^Vec4 = nil) do swr_ImDrawList_AddText_FontPtr(self, font, font_size, pos, col, text_begin, text_end, wrap_width, cpu_fine_clip_rect);
draw_list_add_triangle :: #force_inline proc(self: ^Draw_List, p1: Vec2, p2: Vec2, p3: Vec2, col: u32, thickness := f32(1.0)) do ImDrawList_AddTriangle(self, p1, p2, p3, col, thickness);
draw_list_add_triangle_filled :: #force_inline proc(self: ^Draw_List, p1: Vec2, p2: Vec2, p3: Vec2, col: u32) do ImDrawList_AddTriangleFilled(self, p1, p2, p3, col);
draw_list_channels_merge :: #force_inline proc(self: ^Draw_List) do ImDrawList_ChannelsMerge(self);
draw_list_channels_set_current :: #force_inline proc(self: ^Draw_List, n: i32) do ImDrawList_ChannelsSetCurrent(self, n);
draw_list_channels_split :: #force_inline proc(self: ^Draw_List, count: i32) do ImDrawList_ChannelsSplit(self, count);
draw_list_clone_output :: #force_inline proc(self: ^Draw_List) -> ^Draw_List do return ImDrawList_CloneOutput(self);
draw_list_get_clip_rect_max :: #force_inline proc(pOut: ^Vec2, self: ^Draw_List) do ImDrawList_GetClipRectMax(pOut, self);
draw_list_get_clip_rect_min :: #force_inline proc(pOut: ^Vec2, self: ^Draw_List) do ImDrawList_GetClipRectMin(pOut, self);
draw_list_path_arc_to :: #force_inline proc(self: ^Draw_List, center: Vec2, radius: f32, a_min: f32, a_max: f32, num_segments := i32(0)) do ImDrawList_PathArcTo(self, center, radius, a_min, a_max, num_segments);
draw_list_path_arc_to_fast :: #force_inline proc(self: ^Draw_List, center: Vec2, radius: f32, a_min_of_12: i32, a_max_of_12: i32) do ImDrawList_PathArcToFast(self, center, radius, a_min_of_12, a_max_of_12);
draw_list_path_bezier_cubic_curve_to :: #force_inline proc(self: ^Draw_List, p2: Vec2, p3: Vec2, p4: Vec2, num_segments := i32(0)) do ImDrawList_PathBezierCubicCurveTo(self, p2, p3, p4, num_segments);
draw_list_path_bezier_quadratic_curve_to :: #force_inline proc(self: ^Draw_List, p2: Vec2, p3: Vec2, num_segments := i32(0)) do ImDrawList_PathBezierQuadraticCurveTo(self, p2, p3, num_segments);
draw_list_path_clear :: #force_inline proc(self: ^Draw_List) do ImDrawList_PathClear(self);
draw_list_path_fill_convex :: #force_inline proc(self: ^Draw_List, col: u32) do ImDrawList_PathFillConvex(self, col);
draw_list_path_line_to :: #force_inline proc(self: ^Draw_List, pos: Vec2) do ImDrawList_PathLineTo(self, pos);
draw_list_path_line_to_merge_duplicate :: #force_inline proc(self: ^Draw_List, pos: Vec2) do ImDrawList_PathLineToMergeDuplicate(self, pos);
draw_list_path_rect :: #force_inline proc(self: ^Draw_List, rect_min: Vec2, rect_max: Vec2, rounding := f32(0.0), flags := Draw_Flags(0)) do ImDrawList_PathRect(self, rect_min, rect_max, rounding, flags);
draw_list_path_stroke :: #force_inline proc(self: ^Draw_List, col: u32, flags := Draw_Flags(0), thickness := f32(1.0)) do ImDrawList_PathStroke(self, col, flags, thickness);
draw_list_pop_clip_rect :: #force_inline proc(self: ^Draw_List) do ImDrawList_PopClipRect(self);
draw_list_pop_texture_id :: #force_inline proc(self: ^Draw_List) do ImDrawList_PopTextureID(self);
draw_list_prim_quad_uv :: #force_inline proc(self: ^Draw_List, a: Vec2, b: Vec2, c: Vec2, d: Vec2, uv_a: Vec2, uv_b: Vec2, uv_c: Vec2, uv_d: Vec2, col: u32) do ImDrawList_PrimQuadUV(self, a, b, c, d, uv_a, uv_b, uv_c, uv_d, col);
draw_list_prim_rect :: #force_inline proc(self: ^Draw_List, a: Vec2, b: Vec2, col: u32) do ImDrawList_PrimRect(self, a, b, col);
draw_list_prim_rect_uv :: #force_inline proc(self: ^Draw_List, a: Vec2, b: Vec2, uv_a: Vec2, uv_b: Vec2, col: u32) do ImDrawList_PrimRectUV(self, a, b, uv_a, uv_b, col);
draw_list_prim_reserve :: #force_inline proc(self: ^Draw_List, idx_count: i32, vtx_count: i32) do ImDrawList_PrimReserve(self, idx_count, vtx_count);
draw_list_prim_unreserve :: #force_inline proc(self: ^Draw_List, idx_count: i32, vtx_count: i32) do ImDrawList_PrimUnreserve(self, idx_count, vtx_count);
draw_list_prim_vtx :: #force_inline proc(self: ^Draw_List, pos: Vec2, uv: Vec2, col: u32) do ImDrawList_PrimVtx(self, pos, uv, col);
draw_list_prim_write_idx :: #force_inline proc(self: ^Draw_List, idx: Draw_Idx) do ImDrawList_PrimWriteIdx(self, idx);
draw_list_prim_write_vtx :: #force_inline proc(self: ^Draw_List, pos: Vec2, uv: Vec2, col: u32) do ImDrawList_PrimWriteVtx(self, pos, uv, col);
draw_list_push_clip_rect :: #force_inline proc(self: ^Draw_List, clip_rect_min: Vec2, clip_rect_max: Vec2, intersect_with_current_clip_rect := bool(false)) do ImDrawList_PushClipRect(self, clip_rect_min, clip_rect_max, intersect_with_current_clip_rect);
draw_list_push_clip_rect_full_screen :: #force_inline proc(self: ^Draw_List) do ImDrawList_PushClipRectFullScreen(self);
draw_list_push_texture_id :: #force_inline proc(self: ^Draw_List, texture_id: Texture_ID) do ImDrawList_PushTextureID(self, texture_id);
draw_list_calc_circle_auto_segment_count :: #force_inline proc(self: ^Draw_List, radius: f32) -> i32 do return ImDrawList__CalcCircleAutoSegmentCount(self, radius);
draw_list_clear_free_memory :: #force_inline proc(self: ^Draw_List) do ImDrawList__ClearFreeMemory(self);
draw_list_on_changed_clip_rect :: #force_inline proc(self: ^Draw_List) do ImDrawList__OnChangedClipRect(self);
draw_list_on_changed_texture_id :: #force_inline proc(self: ^Draw_List) do ImDrawList__OnChangedTextureID(self);
draw_list_on_changed_vtx_offset :: #force_inline proc(self: ^Draw_List) do ImDrawList__OnChangedVtxOffset(self);
draw_list_path_arc_to_fast_ex :: #force_inline proc(self: ^Draw_List, center: Vec2, radius: f32, a_min_sample: i32, a_max_sample: i32, a_step: i32) do ImDrawList__PathArcToFastEx(self, center, radius, a_min_sample, a_max_sample, a_step);
draw_list_path_arc_to_n :: #force_inline proc(self: ^Draw_List, center: Vec2, radius: f32, a_min: f32, a_max: f32, num_segments: i32) do ImDrawList__PathArcToN(self, center, radius, a_min, a_max, num_segments);
draw_list_pop_unused_draw_cmd :: #force_inline proc(self: ^Draw_List) do ImDrawList__PopUnusedDrawCmd(self);
draw_list_reset_for_new_frame :: #force_inline proc(self: ^Draw_List) do ImDrawList__ResetForNewFrame(self);
font_atlas_custom_rect_is_packed :: #force_inline proc(self: ^Font_Atlas_Custom_Rect) -> bool do return ImFontAtlasCustomRect_IsPacked(self);
font_atlas_add_custom_rect_font_glyph :: #force_inline proc(self: ^Font_Atlas, font: ^ImFont, id: Wchar, width: i32, height: i32, advance_x: f32, offset := Vec2(Vec2 {0,0})) -> i32 do return ImFontAtlas_AddCustomRectFontGlyph(self, font, id, width, height, advance_x, offset);
font_atlas_add_custom_rect_regular :: #force_inline proc(self: ^Font_Atlas, width: i32, height: i32) -> i32 do return ImFontAtlas_AddCustomRectRegular(self, width, height);
font_atlas_add_font :: #force_inline proc(self: ^Font_Atlas, font_cfg: ^Font_Config) -> ^ImFont do return ImFontAtlas_AddFont(self, font_cfg);
font_atlas_add_font_default :: #force_inline proc(self: ^Font_Atlas, font_cfg : ^Font_Config = nil) -> ^ImFont do return ImFontAtlas_AddFontDefault(self, font_cfg);
font_atlas_add_font_from_file_ttf :: #force_inline proc(self: ^Font_Atlas, filename: string, size_pixels: f32, font_cfg : ^Font_Config = nil, glyph_ranges : ^Wchar = nil) -> ^ImFont do return swr_ImFontAtlas_AddFontFromFileTTF(self, filename, size_pixels, font_cfg, glyph_ranges);
font_atlas_add_font_from_memory_compressed_base85ttf :: #force_inline proc(self: ^Font_Atlas, compressed_font_data_base85: string, size_pixels: f32, font_cfg : ^Font_Config = nil, glyph_ranges : ^Wchar = nil) -> ^ImFont do return swr_ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(self, compressed_font_data_base85, size_pixels, font_cfg, glyph_ranges);
font_atlas_add_font_from_memory_compressed_ttf :: #force_inline proc(self: ^Font_Atlas, compressed_font_data: rawptr, compressed_font_size: i32, size_pixels: f32, font_cfg : ^Font_Config = nil, glyph_ranges : ^Wchar = nil) -> ^ImFont do return ImFontAtlas_AddFontFromMemoryCompressedTTF(self, compressed_font_data, compressed_font_size, size_pixels, font_cfg, glyph_ranges);
font_atlas_add_font_from_memory_ttf :: #force_inline proc(self: ^Font_Atlas, font_data: rawptr, font_size: i32, size_pixels: f32, font_cfg : ^Font_Config = nil, glyph_ranges : ^Wchar = nil) -> ^ImFont do return ImFontAtlas_AddFontFromMemoryTTF(self, font_data, font_size, size_pixels, font_cfg, glyph_ranges);
font_atlas_build :: #force_inline proc(self: ^Font_Atlas) -> bool do return ImFontAtlas_Build(self);
font_atlas_calc_custom_rect_uv :: #force_inline proc(self: ^Font_Atlas, rect: ^Font_Atlas_Custom_Rect, out_uv_min: ^Vec2, out_uv_max: ^Vec2) do ImFontAtlas_CalcCustomRectUV(self, rect, out_uv_min, out_uv_max);
font_atlas_clear :: #force_inline proc(self: ^Font_Atlas) do ImFontAtlas_Clear(self);
font_atlas_clear_fonts :: #force_inline proc(self: ^Font_Atlas) do ImFontAtlas_ClearFonts(self);
font_atlas_clear_input_data :: #force_inline proc(self: ^Font_Atlas) do ImFontAtlas_ClearInputData(self);
font_atlas_clear_tex_data :: #force_inline proc(self: ^Font_Atlas) do ImFontAtlas_ClearTexData(self);
font_atlas_get_custom_rect_by_index :: #force_inline proc(self: ^Font_Atlas, index: i32) -> ^Font_Atlas_Custom_Rect do return ImFontAtlas_GetCustomRectByIndex(self, index);
font_atlas_get_glyph_ranges_chinese_full :: #force_inline proc(self: ^Font_Atlas) -> ^Wchar do return ImFontAtlas_GetGlyphRangesChineseFull(self);
font_atlas_get_glyph_ranges_chinese_simplified_common :: #force_inline proc(self: ^Font_Atlas) -> ^Wchar do return ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(self);
font_atlas_get_glyph_ranges_cyrillic :: #force_inline proc(self: ^Font_Atlas) -> ^Wchar do return ImFontAtlas_GetGlyphRangesCyrillic(self);
font_atlas_get_glyph_ranges_default :: #force_inline proc(self: ^Font_Atlas) -> ^Wchar do return ImFontAtlas_GetGlyphRangesDefault(self);
font_atlas_get_glyph_ranges_japanese :: #force_inline proc(self: ^Font_Atlas) -> ^Wchar do return ImFontAtlas_GetGlyphRangesJapanese(self);
font_atlas_get_glyph_ranges_korean :: #force_inline proc(self: ^Font_Atlas) -> ^Wchar do return ImFontAtlas_GetGlyphRangesKorean(self);
font_atlas_get_glyph_ranges_thai :: #force_inline proc(self: ^Font_Atlas) -> ^Wchar do return ImFontAtlas_GetGlyphRangesThai(self);
font_atlas_get_glyph_ranges_vietnamese :: #force_inline proc(self: ^Font_Atlas) -> ^Wchar do return ImFontAtlas_GetGlyphRangesVietnamese(self);
font_atlas_get_mouse_cursor_tex_data :: #force_inline proc(self: ^Font_Atlas, cursor: Mouse_Cursor, out_offset: ^Vec2, out_size: ^Vec2, out_uv_border: [2]Vec2, out_uv_fill: [2]Vec2) -> bool do return ImFontAtlas_GetMouseCursorTexData(self, cursor, out_offset, out_size, out_uv_border, out_uv_fill);
font_atlas_get_tex_data_as_alpha8 :: #force_inline proc(self: ^Font_Atlas, out_pixels: ^^u8, out_width: ^i32, out_height: ^i32, out_bytes_per_pixel : ^i32 = nil) do ImFontAtlas_GetTexDataAsAlpha8(self, out_pixels, out_width, out_height, out_bytes_per_pixel);
font_atlas_get_tex_data_as_rgba32 :: #force_inline proc(self: ^Font_Atlas, out_pixels: ^^u8, out_width: ^i32, out_height: ^i32, out_bytes_per_pixel : ^i32 = nil) do ImFontAtlas_GetTexDataAsRGBA32(self, out_pixels, out_width, out_height, out_bytes_per_pixel);
font_atlas_is_built :: #force_inline proc(self: ^Font_Atlas) -> bool do return ImFontAtlas_IsBuilt(self);
font_atlas_set_tex_id :: #force_inline proc(self: ^Font_Atlas, id: Texture_ID) do ImFontAtlas_SetTexID(self, id);
font_glyph_ranges_builder_add_char :: #force_inline proc(self: ^Font_Glyph_Ranges_Builder, c: Wchar) do ImFontGlyphRangesBuilder_AddChar(self, c);
font_glyph_ranges_builder_add_ranges :: #force_inline proc(self: ^Font_Glyph_Ranges_Builder, ranges: ^Wchar) do ImFontGlyphRangesBuilder_AddRanges(self, ranges);
font_glyph_ranges_builder_add_text :: #force_inline proc(self: ^Font_Glyph_Ranges_Builder, text: string, text_end := "") do swr_ImFontGlyphRangesBuilder_AddText(self, text, text_end);
font_glyph_ranges_builder_build_ranges :: #force_inline proc(self: ^Font_Glyph_Ranges_Builder, out_ranges: ^Im_Vector(Wchar)) do ImFontGlyphRangesBuilder_BuildRanges(self, out_ranges);
font_glyph_ranges_builder_clear :: #force_inline proc(self: ^Font_Glyph_Ranges_Builder) do ImFontGlyphRangesBuilder_Clear(self);
font_glyph_ranges_builder_get_bit :: #force_inline proc(self: ^Font_Glyph_Ranges_Builder, n: uint) -> bool do return ImFontGlyphRangesBuilder_GetBit(self, n);
font_glyph_ranges_builder_set_bit :: #force_inline proc(self: ^Font_Glyph_Ranges_Builder, n: uint) do ImFontGlyphRangesBuilder_SetBit(self, n);
font_add_glyph :: #force_inline proc(self: ^ImFont, src_cfg: ^Font_Config, c: Wchar, x0: f32, y0: f32, x1: f32, y1: f32, u0: f32, v0: f32, u1: f32, v1: f32, advance_x: f32) do ImFont_AddGlyph(self, src_cfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advance_x);
font_add_remap_char :: #force_inline proc(self: ^ImFont, dst: Wchar, src: Wchar, overwrite_dst := bool(true)) do ImFont_AddRemapChar(self, dst, src, overwrite_dst);
font_build_lookup_table :: #force_inline proc(self: ^ImFont) do ImFont_BuildLookupTable(self);
font_calc_text_size_a :: #force_inline proc(pOut: ^Vec2, self: ^ImFont, size: f32, max_width: f32, wrap_width: f32, text_begin: string, text_end := "", remaining : ^cstring = nil) do swr_ImFont_CalcTextSizeA(pOut, self, size, max_width, wrap_width, text_begin, text_end, remaining);
font_calc_word_wrap_position_a :: #force_inline proc(self: ^ImFont, scale: f32, text: string, text_end: string, wrap_width: f32) -> cstring do return swr_ImFont_CalcWordWrapPositionA(self, scale, text, text_end, wrap_width);
font_clear_output_data :: #force_inline proc(self: ^ImFont) do ImFont_ClearOutputData(self);
font_find_glyph :: #force_inline proc(self: ^ImFont, c: Wchar) -> ^Font_Glyph do return ImFont_FindGlyph(self, c);
font_find_glyph_no_fallback :: #force_inline proc(self: ^ImFont, c: Wchar) -> ^Font_Glyph do return ImFont_FindGlyphNoFallback(self, c);
font_get_char_advance :: #force_inline proc(self: ^ImFont, c: Wchar) -> f32 do return ImFont_GetCharAdvance(self, c);
font_get_debug_name :: #force_inline proc(self: ^ImFont) -> cstring do return ImFont_GetDebugName(self);
font_grow_index :: #force_inline proc(self: ^ImFont, new_size: i32) do ImFont_GrowIndex(self, new_size);
font_is_glyph_range_unused :: #force_inline proc(self: ^ImFont, c_begin: u32, c_last: u32) -> bool do return ImFont_IsGlyphRangeUnused(self, c_begin, c_last);
font_is_loaded :: #force_inline proc(self: ^ImFont) -> bool do return ImFont_IsLoaded(self);
font_render_char :: #force_inline proc(self: ^ImFont, draw_list: ^Draw_List, size: f32, pos: Vec2, col: u32, c: Wchar) do ImFont_RenderChar(self, draw_list, size, pos, col, c);
font_render_text :: #force_inline proc(self: ^ImFont, draw_list: ^Draw_List, size: f32, pos: Vec2, col: u32, clip_rect: Vec4, text_begin: string, text_end: string, wrap_width := f32(0.0), cpu_fine_clip := bool(false)) do swr_ImFont_RenderText(self, draw_list, size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip);
font_set_fallback_char :: #force_inline proc(self: ^ImFont, c: Wchar) do ImFont_SetFallbackChar(self, c);
font_set_glyph_visible :: #force_inline proc(self: ^ImFont, c: Wchar, visible: bool) do ImFont_SetGlyphVisible(self, c, visible);
io_add_input_character :: #force_inline proc(self: ^IO, c: u32) do ImGuiIO_AddInputCharacter(self, c);
io_add_input_character_utf16 :: #force_inline proc(self: ^IO, c: Wchar16) do ImGuiIO_AddInputCharacterUTF16(self, c);
io_add_input_characters_utf8 :: #force_inline proc(self: ^IO, str: string) do swr_ImGuiIO_AddInputCharactersUTF8(self, str);
io_clear_input_characters :: #force_inline proc(self: ^IO) do ImGuiIO_ClearInputCharacters(self);
input_text_callback_data_clear_selection :: #force_inline proc(self: ^Input_Text_Callback_Data) do ImGuiInputTextCallbackData_ClearSelection(self);
input_text_callback_data_delete_chars :: #force_inline proc(self: ^Input_Text_Callback_Data, pos: i32, bytes_count: i32) do ImGuiInputTextCallbackData_DeleteChars(self, pos, bytes_count);
input_text_callback_data_has_selection :: #force_inline proc(self: ^Input_Text_Callback_Data) -> bool do return ImGuiInputTextCallbackData_HasSelection(self);
input_text_callback_data_insert_chars :: #force_inline proc(self: ^Input_Text_Callback_Data, pos: i32, text: string, text_end := "") do swr_ImGuiInputTextCallbackData_InsertChars(self, pos, text, text_end);
input_text_callback_data_select_all :: #force_inline proc(self: ^Input_Text_Callback_Data) do ImGuiInputTextCallbackData_SelectAll(self);
list_clipper_begin :: #force_inline proc(self: ^List_Clipper, items_count: i32, items_height := f32(-1.0)) do ImGuiListClipper_Begin(self, items_count, items_height);
list_clipper_end :: #force_inline proc(self: ^List_Clipper) do ImGuiListClipper_End(self);
list_clipper_step :: #force_inline proc(self: ^List_Clipper) -> bool do return ImGuiListClipper_Step(self);
payload_clear :: #force_inline proc(self: ^Payload) do ImGuiPayload_Clear(self);
payload_is_data_type :: #force_inline proc(self: ^Payload, type: string) -> bool do return swr_ImGuiPayload_IsDataType(self, type);
payload_is_delivery :: #force_inline proc(self: ^Payload) -> bool do return ImGuiPayload_IsDelivery(self);
payload_is_preview :: #force_inline proc(self: ^Payload) -> bool do return ImGuiPayload_IsPreview(self);
storage_build_sort_by_key :: #force_inline proc(self: ^Storage) do ImGuiStorage_BuildSortByKey(self);
storage_clear :: #force_inline proc(self: ^Storage) do ImGuiStorage_Clear(self);
storage_get_bool :: #force_inline proc(self: ^Storage, key: ImID, default_val := bool(false)) -> bool do return ImGuiStorage_GetBool(self, key, default_val);
storage_get_bool_ref :: #force_inline proc(self: ^Storage, key: ImID, default_val := bool(false)) -> ^bool do return ImGuiStorage_GetBoolRef(self, key, default_val);
storage_get_float :: #force_inline proc(self: ^Storage, key: ImID, default_val := f32(0.0)) -> f32 do return ImGuiStorage_GetFloat(self, key, default_val);
storage_get_float_ref :: #force_inline proc(self: ^Storage, key: ImID, default_val := f32(0.0)) -> ^f32 do return ImGuiStorage_GetFloatRef(self, key, default_val);
storage_get_int :: #force_inline proc(self: ^Storage, key: ImID, default_val := i32(0)) -> i32 do return ImGuiStorage_GetInt(self, key, default_val);
storage_get_int_ref :: #force_inline proc(self: ^Storage, key: ImID, default_val := i32(0)) -> ^i32 do return ImGuiStorage_GetIntRef(self, key, default_val);
storage_get_void_ptr :: #force_inline proc(self: ^Storage, key: ImID) -> rawptr do return ImGuiStorage_GetVoidPtr(self, key);
storage_get_void_ptr_ref :: #force_inline proc(self: ^Storage, key: ImID, default_val : rawptr = nil) -> ^rawptr do return ImGuiStorage_GetVoidPtrRef(self, key, default_val);
storage_set_all_int :: #force_inline proc(self: ^Storage, val: i32) do ImGuiStorage_SetAllInt(self, val);
storage_set_bool :: #force_inline proc(self: ^Storage, key: ImID, val: bool) do ImGuiStorage_SetBool(self, key, val);
storage_set_float :: #force_inline proc(self: ^Storage, key: ImID, val: f32) do ImGuiStorage_SetFloat(self, key, val);
storage_set_int :: #force_inline proc(self: ^Storage, key: ImID, val: i32) do ImGuiStorage_SetInt(self, key, val);
storage_set_void_ptr :: #force_inline proc(self: ^Storage, key: ImID, val: rawptr) do ImGuiStorage_SetVoidPtr(self, key, val);
style_scale_all_sizes :: #force_inline proc(self: ^Style, scale_factor: f32) do ImGuiStyle_ScaleAllSizes(self, scale_factor);
text_buffer_append :: #force_inline proc(self: ^Text_Buffer, str: string, str_end := "") do swr_ImGuiTextBuffer_append(self, str, str_end);
text_buffer_appendf :: #force_inline proc(self: ^Text_Buffer, fmt_: string, args: ..any) do swr_ImGuiTextBuffer_appendf(self, fmt_, args);
text_buffer_begin :: #force_inline proc(self: ^Text_Buffer) -> cstring do return ImGuiTextBuffer_begin(self);
text_buffer_c_str :: #force_inline proc(self: ^Text_Buffer) -> cstring do return ImGuiTextBuffer_c_str(self);
text_buffer_clear :: #force_inline proc(self: ^Text_Buffer) do ImGuiTextBuffer_clear(self);
text_buffer_empty :: #force_inline proc(self: ^Text_Buffer) -> bool do return ImGuiTextBuffer_empty(self);
text_buffer_end :: #force_inline proc(self: ^Text_Buffer) -> cstring do return ImGuiTextBuffer_end(self);
text_buffer_reserve :: #force_inline proc(self: ^Text_Buffer, capacity: i32) do ImGuiTextBuffer_reserve(self, capacity);
text_buffer_size :: #force_inline proc(self: ^Text_Buffer) -> i32 do return ImGuiTextBuffer_size(self);
text_filter_build :: #force_inline proc(self: ^Text_Filter) do ImGuiTextFilter_Build(self);
text_filter_clear :: #force_inline proc(self: ^Text_Filter) do ImGuiTextFilter_Clear(self);
text_filter_draw :: #force_inline proc(self: ^Text_Filter, label := "Filter(inc,-exc)", width := f32(0.0)) -> bool do return swr_ImGuiTextFilter_Draw(self, label, width);
text_filter_is_active :: #force_inline proc(self: ^Text_Filter) -> bool do return ImGuiTextFilter_IsActive(self);
text_filter_pass_filter :: #force_inline proc(self: ^Text_Filter, text: string, text_end := "") -> bool do return swr_ImGuiTextFilter_PassFilter(self, text, text_end);
text_range_empty :: #force_inline proc(self: ^Text_Range) -> bool do return ImGuiTextRange_empty(self);
text_range_split :: #force_inline proc(self: ^Text_Range, separator: i8, out: ^Im_Vector(Text_Range)) do ImGuiTextRange_split(self, separator, out);
viewport_get_center :: #force_inline proc(pOut: ^Vec2, self: ^Viewport) do ImGuiViewport_GetCenter(pOut, self);
viewport_get_work_center :: #force_inline proc(pOut: ^Vec2, self: ^Viewport) do ImGuiViewport_GetWorkCenter(pOut, self);
accept_drag_drop_payload :: #force_inline proc(type: string, flags := Drag_Drop_Flags(0)) -> ^Payload do return swr_igAcceptDragDropPayload(type, flags);
align_text_to_frame_padding :: #force_inline proc() do igAlignTextToFramePadding();
arrow_button :: #force_inline proc(str_id: string, dir: Dir) -> bool do return swr_igArrowButton(str_id, dir);
begin :: #force_inline proc(name: string, p_open : ^bool = nil, flags := Window_Flags(0)) -> bool do return swr_igBegin(name, p_open, flags);
begin_child :: proc {
begin_child_str,
begin_child_id,
};
begin_child_str :: #force_inline proc(str_id: string, size := Vec2(Vec2 {0,0}), border := bool(false), flags := Window_Flags(0)) -> bool do return swr_igBeginChild_Str(str_id, size, border, flags);
begin_child_id :: #force_inline proc(id: ImID, size := Vec2(Vec2 {0,0}), border := bool(false), flags := Window_Flags(0)) -> bool do return igBeginChild_ID(id, size, border, flags);
begin_child_frame :: #force_inline proc(id: ImID, size: Vec2, flags := Window_Flags(0)) -> bool do return igBeginChildFrame(id, size, flags);
begin_combo :: #force_inline proc(label: string, preview_value: string, flags := Combo_Flags(0)) -> bool do return swr_igBeginCombo(label, preview_value, flags);
begin_drag_drop_source :: #force_inline proc(flags := Drag_Drop_Flags(0)) -> bool do return igBeginDragDropSource(flags);
begin_drag_drop_target :: #force_inline proc() -> bool do return igBeginDragDropTarget();
begin_group :: #force_inline proc() do igBeginGroup();
begin_list_box :: #force_inline proc(label: string, size := Vec2(Vec2 {0,0})) -> bool do return swr_igBeginListBox(label, size);
begin_main_menu_bar :: #force_inline proc() -> bool do return igBeginMainMenuBar();
begin_menu :: #force_inline proc(label: string, enabled := bool(true)) -> bool do return swr_igBeginMenu(label, enabled);
begin_menu_bar :: #force_inline proc() -> bool do return igBeginMenuBar();
begin_popup :: #force_inline proc(str_id: string, flags := Window_Flags(0)) -> bool do return swr_igBeginPopup(str_id, flags);
begin_popup_context_item :: #force_inline proc(str_id := "", popup_flags := Popup_Flags(1)) -> bool do return swr_igBeginPopupContextItem(str_id, popup_flags);
begin_popup_context_void :: #force_inline proc(str_id := "", popup_flags := Popup_Flags(1)) -> bool do return swr_igBeginPopupContextVoid(str_id, popup_flags);
begin_popup_context_window :: #force_inline proc(str_id := "", popup_flags := Popup_Flags(1)) -> bool do return swr_igBeginPopupContextWindow(str_id, popup_flags);
begin_popup_modal :: #force_inline proc(name: string, p_open : ^bool = nil, flags := Window_Flags(0)) -> bool do return swr_igBeginPopupModal(name, p_open, flags);
begin_tab_bar :: #force_inline proc(str_id: string, flags := Tab_Bar_Flags(0)) -> bool do return swr_igBeginTabBar(str_id, flags);
begin_tab_item :: #force_inline proc(label: string, p_open : ^bool = nil, flags := Tab_Item_Flags(0)) -> bool do return swr_igBeginTabItem(label, p_open, flags);
begin_table :: #force_inline proc(str_id: string, column: i32, flags := Table_Flags(0), outer_size := Vec2(Vec2 {0.0,0.0}), inner_width := f32(0.0)) -> bool do return swr_igBeginTable(str_id, column, flags, outer_size, inner_width);
begin_tooltip :: #force_inline proc() do igBeginTooltip();
bullet :: #force_inline proc() do igBullet();
bullet_text :: #force_inline proc(fmt_: string, args: ..any) do swr_igBulletText(fmt_, args);
button :: #force_inline proc(label: string, size := Vec2(Vec2 {0,0})) -> bool do return swr_igButton(label, size);
calc_item_width :: #force_inline proc() -> f32 do return igCalcItemWidth();
calc_list_clipping :: #force_inline proc(items_count: i32, items_height: f32, out_items_display_start: ^i32, out_items_display_end: ^i32) do igCalcListClipping(items_count, items_height, out_items_display_start, out_items_display_end);
calc_text_size :: #force_inline proc(pOut: ^Vec2, text: string, text_end := "", hide_text_after_double_hash := bool(false), wrap_width := f32(-1.0)) do swr_igCalcTextSize(pOut, text, text_end, hide_text_after_double_hash, wrap_width);
capture_keyboard_from_app :: #force_inline proc(want_capture_keyboard_value := bool(true)) do igCaptureKeyboardFromApp(want_capture_keyboard_value);
capture_mouse_from_app :: #force_inline proc(want_capture_mouse_value := bool(true)) do igCaptureMouseFromApp(want_capture_mouse_value);
checkbox :: #force_inline proc(label: string, v: ^bool) -> bool do return swr_igCheckbox(label, v);
checkbox_flags :: proc {
checkbox_flags_int_ptr,
checkbox_flags_uint_ptr,
};
checkbox_flags_int_ptr :: #force_inline proc(label: string, flags: ^i32, flags_value: i32) -> bool do return swr_igCheckboxFlags_IntPtr(label, flags, flags_value);
checkbox_flags_uint_ptr :: #force_inline proc(label: string, flags: ^u32, flags_value: u32) -> bool do return swr_igCheckboxFlags_UintPtr(label, flags, flags_value);
close_current_popup :: #force_inline proc() do igCloseCurrentPopup();
collapsing_header :: proc {
collapsing_header_tree_node_flags,
collapsing_header_bool_ptr,
};
collapsing_header_tree_node_flags :: #force_inline proc(label: string, flags := Tree_Node_Flags(0)) -> bool do return swr_igCollapsingHeader_TreeNodeFlags(label, flags);
collapsing_header_bool_ptr :: #force_inline proc(label: string, p_visible: ^bool, flags := Tree_Node_Flags(0)) -> bool do return swr_igCollapsingHeader_BoolPtr(label, p_visible, flags);
color_button :: #force_inline proc(desc_id: string, col: Vec4, flags := Color_Edit_Flags(0), size := Vec2(Vec2 {0,0})) -> bool do return swr_igColorButton(desc_id, col, flags, size);
color_convert_float4to_u32 :: #force_inline proc(in_: Vec4) -> u32 do return igColorConvertFloat4ToU32(in_);
color_convert_hs_vto_rgb :: #force_inline proc(h: f32, s: f32, v: f32, out_r: ^f32, out_g: ^f32, out_b: ^f32) do igColorConvertHSVtoRGB(h, s, v, out_r, out_g, out_b);
color_convert_rg_bto_hsv :: #force_inline proc(r: f32, g: f32, b: f32, out_h: ^f32, out_s: ^f32, out_v: ^f32) do igColorConvertRGBtoHSV(r, g, b, out_h, out_s, out_v);
color_convert_u32to_float4 :: #force_inline proc(pOut: ^Vec4, in_: u32) do igColorConvertU32ToFloat4(pOut, in_);
color_edit3 :: #force_inline proc(label: string, col: [3]f32, flags := Color_Edit_Flags(0)) -> bool do return swr_igColorEdit3(label, col, flags);
color_edit4 :: #force_inline proc(label: string, col: [4]f32, flags := Color_Edit_Flags(0)) -> bool do return swr_igColorEdit4(label, col, flags);
color_picker3 :: #force_inline proc(label: string, col: [3]f32, flags := Color_Edit_Flags(0)) -> bool do return swr_igColorPicker3(label, col, flags);
color_picker4 :: #force_inline proc(label: string, col: [4]f32, flags := Color_Edit_Flags(0), ref_col : ^f32 = nil) -> bool do return swr_igColorPicker4(label, col, flags, ref_col);
columns :: #force_inline proc(count := i32(1), id := "", border := bool(true)) do swr_igColumns(count, id, border);
combo :: proc {
combo_str_arr,
combo_str,
combo_fn_bool_ptr,
};
combo_str_arr :: #force_inline proc(label: string, current_item: ^i32, items: []string, popup_max_height_in_items := i32(0)) -> bool do return wrapper_combo_str_arr(label, current_item, items, popup_max_height_in_items);
combo_str :: #force_inline proc(label: string, current_item: ^i32, items_separated_by_zeros: string, popup_max_height_in_items := i32(-1)) -> bool do return swr_igCombo_Str(label, current_item, items_separated_by_zeros, popup_max_height_in_items);
combo_fn_bool_ptr :: #force_inline proc(label: string, current_item: ^i32, items_getter: Items_Getter_Proc, data: rawptr, items_count: i32, popup_max_height_in_items := i32(0)) -> bool do return wrapper_combo_fn_bool_ptr(label, current_item, items_getter, data, items_count, popup_max_height_in_items);
create_context :: #force_inline proc(shared_font_atlas : ^Font_Atlas = nil) -> ^Context do return igCreateContext(shared_font_atlas);
debug_check_version_and_data_layout :: #force_inline proc(version_str: string, sz_io: uint, sz_style: uint, sz_vec2: uint, sz_vec4: uint, sz_drawvert: uint, sz_drawidx: uint) -> bool do return swr_igDebugCheckVersionAndDataLayout(version_str, sz_io, sz_style, sz_vec2, sz_vec4, sz_drawvert, sz_drawidx);
destroy_context :: #force_inline proc(ctx : ^Context = nil) do igDestroyContext(ctx);
drag_float :: #force_inline proc(label: string, v: ^f32, v_speed := f32(1.0), v_min := f32(0.0), v_max := f32(0.0), format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igDragFloat(label, v, v_speed, v_min, v_max, format, flags);
drag_float2 :: #force_inline proc(label: string, v: [2]f32, v_speed := f32(1.0), v_min := f32(0.0), v_max := f32(0.0), format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igDragFloat2(label, v, v_speed, v_min, v_max, format, flags);
drag_float3 :: #force_inline proc(label: string, v: [3]f32, v_speed := f32(1.0), v_min := f32(0.0), v_max := f32(0.0), format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igDragFloat3(label, v, v_speed, v_min, v_max, format, flags);
drag_float4 :: #force_inline proc(label: string, v: [4]f32, v_speed := f32(1.0), v_min := f32(0.0), v_max := f32(0.0), format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igDragFloat4(label, v, v_speed, v_min, v_max, format, flags);
drag_float_range2 :: #force_inline proc(label: string, v_current_min: ^f32, v_current_max: ^f32, v_speed := f32(1.0), v_min := f32(0.0), v_max := f32(0.0), format := "%.3f", format_max := "", flags := Slider_Flags(0)) -> bool do return swr_igDragFloatRange2(label, v_current_min, v_current_max, v_speed, v_min, v_max, format, format_max, flags);
drag_int :: #force_inline proc(label: string, v: ^i32, v_speed := f32(1.0), v_min := i32(0), v_max := i32(0), format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igDragInt(label, v, v_speed, v_min, v_max, format, flags);
drag_int2 :: #force_inline proc(label: string, v: [2]i32, v_speed := f32(1.0), v_min := i32(0), v_max := i32(0), format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igDragInt2(label, v, v_speed, v_min, v_max, format, flags);
drag_int3 :: #force_inline proc(label: string, v: [3]i32, v_speed := f32(1.0), v_min := i32(0), v_max := i32(0), format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igDragInt3(label, v, v_speed, v_min, v_max, format, flags);
drag_int4 :: #force_inline proc(label: string, v: [4]i32, v_speed := f32(1.0), v_min := i32(0), v_max := i32(0), format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igDragInt4(label, v, v_speed, v_min, v_max, format, flags);
drag_int_range2 :: #force_inline proc(label: string, v_current_min: ^i32, v_current_max: ^i32, v_speed := f32(1.0), v_min := i32(0), v_max := i32(0), format := "%d", format_max := "", flags := Slider_Flags(0)) -> bool do return swr_igDragIntRange2(label, v_current_min, v_current_max, v_speed, v_min, v_max, format, format_max, flags);
drag_scalar :: #force_inline proc(label: string, data_type: Data_Type, p_data: rawptr, v_speed := f32(1.0), p_min : rawptr = nil, p_max : rawptr = nil, format := "", flags := Slider_Flags(0)) -> bool do return swr_igDragScalar(label, data_type, p_data, v_speed, p_min, p_max, format, flags);
drag_scalar_n :: #force_inline proc(label: string, data_type: Data_Type, p_data: rawptr, components: i32, v_speed := f32(1.0), p_min : rawptr = nil, p_max : rawptr = nil, format := "", flags := Slider_Flags(0)) -> bool do return swr_igDragScalarN(label, data_type, p_data, components, v_speed, p_min, p_max, format, flags);
dummy :: #force_inline proc(size: Vec2) do igDummy(size);
end :: #force_inline proc() do igEnd();
end_child :: #force_inline proc() do igEndChild();
end_child_frame :: #force_inline proc() do igEndChildFrame();
end_combo :: #force_inline proc() do igEndCombo();
end_drag_drop_source :: #force_inline proc() do igEndDragDropSource();
end_drag_drop_target :: #force_inline proc() do igEndDragDropTarget();
end_frame :: #force_inline proc() do igEndFrame();
end_group :: #force_inline proc() do igEndGroup();
end_list_box :: #force_inline proc() do igEndListBox();
end_main_menu_bar :: #force_inline proc() do igEndMainMenuBar();
end_menu :: #force_inline proc() do igEndMenu();
end_menu_bar :: #force_inline proc() do igEndMenuBar();
end_popup :: #force_inline proc() do igEndPopup();
end_tab_bar :: #force_inline proc() do igEndTabBar();
end_tab_item :: #force_inline proc() do igEndTabItem();
end_table :: #force_inline proc() do igEndTable();
end_tooltip :: #force_inline proc() do igEndTooltip();
get_allocator_functions :: #force_inline proc(p_alloc_func: ^Mem_Alloc_Func, p_free_func: ^Mem_Free_Func, p_user_data: ^rawptr) do igGetAllocatorFunctions(p_alloc_func, p_free_func, p_user_data);
get_background_draw_list :: proc {
get_background_draw_list_nil,
};
get_background_draw_list_nil :: #force_inline proc() -> ^Draw_List do return igGetBackgroundDrawList_Nil();
get_clipboard_text :: #force_inline proc() -> cstring do return igGetClipboardText();
get_color_u32 :: proc {
get_color_u32_col,
get_color_u32_vec4,
get_color_u32_u32,
};
get_color_u32_col :: #force_inline proc(idx: Col, alpha_mul := f32(1.0)) -> u32 do return igGetColorU32_Col(idx, alpha_mul);
get_color_u32_vec4 :: #force_inline proc(col: Vec4) -> u32 do return igGetColorU32_Vec4(col);
get_color_u32_u32 :: #force_inline proc(col: u32) -> u32 do return igGetColorU32_U32(col);
get_column_index :: #force_inline proc() -> i32 do return igGetColumnIndex();
get_column_offset :: #force_inline proc(column_index := i32(-1)) -> f32 do return igGetColumnOffset(column_index);
get_column_width :: #force_inline proc(column_index := i32(-1)) -> f32 do return igGetColumnWidth(column_index);
get_columns_count :: #force_inline proc() -> i32 do return igGetColumnsCount();
get_content_region_avail :: #force_inline proc(pOut: ^Vec2) do igGetContentRegionAvail(pOut);
get_content_region_max :: #force_inline proc(pOut: ^Vec2) do igGetContentRegionMax(pOut);
get_current_context :: #force_inline proc() -> ^Context do return igGetCurrentContext();
get_cursor_pos :: #force_inline proc(pOut: ^Vec2) do igGetCursorPos(pOut);
get_cursor_pos_x :: #force_inline proc() -> f32 do return igGetCursorPosX();
get_cursor_pos_y :: #force_inline proc() -> f32 do return igGetCursorPosY();
get_cursor_screen_pos :: #force_inline proc(pOut: ^Vec2) do igGetCursorScreenPos(pOut);
get_cursor_start_pos :: #force_inline proc(pOut: ^Vec2) do igGetCursorStartPos(pOut);
get_drag_drop_payload :: #force_inline proc() -> ^Payload do return igGetDragDropPayload();
get_draw_data :: #force_inline proc() -> ^Draw_Data do return igGetDrawData();
get_draw_list_shared_data :: #force_inline proc() -> ^Draw_List_Shared_Data do return igGetDrawListSharedData();
get_font :: #force_inline proc() -> ^ImFont do return igGetFont();
get_font_size :: #force_inline proc() -> f32 do return igGetFontSize();
get_font_tex_uv_white_pixel :: #force_inline proc(pOut: ^Vec2) do igGetFontTexUvWhitePixel(pOut);
get_foreground_draw_list :: proc {
get_foreground_draw_list_nil,
};
get_foreground_draw_list_nil :: #force_inline proc() -> ^Draw_List do return igGetForegroundDrawList_Nil();
get_frame_count :: #force_inline proc() -> i32 do return igGetFrameCount();
get_frame_height :: #force_inline proc() -> f32 do return igGetFrameHeight();
get_frame_height_with_spacing :: #force_inline proc() -> f32 do return igGetFrameHeightWithSpacing();
get_id :: proc {
get_id_str,
get_id_str_str,
get_id_ptr,
};
get_id_str :: #force_inline proc(str_id: string) -> ImID do return swr_igGetID_Str(str_id);
get_id_str_str :: #force_inline proc(str_id_begin: string, str_id_end: string) -> ImID do return swr_igGetID_StrStr(str_id_begin, str_id_end);
get_id_ptr :: #force_inline proc(ptr_id: rawptr) -> ImID do return igGetID_Ptr(ptr_id);
get_io :: #force_inline proc() -> ^IO do return igGetIO();
get_item_rect_max :: #force_inline proc(pOut: ^Vec2) do igGetItemRectMax(pOut);
get_item_rect_min :: #force_inline proc(pOut: ^Vec2) do igGetItemRectMin(pOut);
get_item_rect_size :: #force_inline proc(pOut: ^Vec2) do igGetItemRectSize(pOut);
get_key_index :: #force_inline proc(imgui_key: Key) -> i32 do return igGetKeyIndex(imgui_key);
get_key_pressed_amount :: #force_inline proc(key_index: i32, repeat_delay: f32, rate: f32) -> i32 do return igGetKeyPressedAmount(key_index, repeat_delay, rate);
get_main_viewport :: #force_inline proc() -> ^Viewport do return igGetMainViewport();
get_mouse_cursor :: #force_inline proc() -> Mouse_Cursor do return igGetMouseCursor();
get_mouse_drag_delta :: #force_inline proc(pOut: ^Vec2, button := Mouse_Button(0), lock_threshold := f32(-1.0)) do igGetMouseDragDelta(pOut, button, lock_threshold);
get_mouse_pos :: #force_inline proc(pOut: ^Vec2) do igGetMousePos(pOut);
get_mouse_pos_on_opening_current_popup :: #force_inline proc(pOut: ^Vec2) do igGetMousePosOnOpeningCurrentPopup(pOut);
get_scroll_max_x :: #force_inline proc() -> f32 do return igGetScrollMaxX();
get_scroll_max_y :: #force_inline proc() -> f32 do return igGetScrollMaxY();
get_scroll_x :: #force_inline proc() -> f32 do return igGetScrollX();
get_scroll_y :: #force_inline proc() -> f32 do return igGetScrollY();
get_state_storage :: #force_inline proc() -> ^Storage do return igGetStateStorage();
get_style :: #force_inline proc() -> ^Style do return igGetStyle();
get_style_color_name :: #force_inline proc(idx: Col) -> cstring do return igGetStyleColorName(idx);
get_style_color_vec4 :: #force_inline proc(idx: Col) -> ^Vec4 do return igGetStyleColorVec4(idx);
get_text_line_height :: #force_inline proc() -> f32 do return igGetTextLineHeight();
get_text_line_height_with_spacing :: #force_inline proc() -> f32 do return igGetTextLineHeightWithSpacing();
get_time :: #force_inline proc() -> f64 do return igGetTime();
get_tree_node_to_label_spacing :: #force_inline proc() -> f32 do return igGetTreeNodeToLabelSpacing();
get_version :: #force_inline proc() -> cstring do return igGetVersion();
get_window_content_region_max :: #force_inline proc(pOut: ^Vec2) do igGetWindowContentRegionMax(pOut);
get_window_content_region_min :: #force_inline proc(pOut: ^Vec2) do igGetWindowContentRegionMin(pOut);
get_window_content_region_width :: #force_inline proc() -> f32 do return igGetWindowContentRegionWidth();
get_window_draw_list :: #force_inline proc() -> ^Draw_List do return igGetWindowDrawList();
get_window_height :: #force_inline proc() -> f32 do return igGetWindowHeight();
get_window_pos :: #force_inline proc() -> Vec2 do return wrapper_get_window_pos();
get_window_size :: #force_inline proc() -> Vec2 do return wrapper_get_window_size();
get_window_width :: #force_inline proc() -> f32 do return igGetWindowWidth();
image :: #force_inline proc(user_texture_id: Texture_ID, size: Vec2, uv0 := Vec2(Vec2 {0,0}), uv1 := Vec2(Vec2 {1,1}), tint_col := Vec4(Vec4 {1,1,1,1}), border_col := Vec4(Vec4 {0,0,0,0})) do igImage(user_texture_id, size, uv0, uv1, tint_col, border_col);
image_button :: #force_inline proc(user_texture_id: Texture_ID, size: Vec2, uv0 := Vec2(Vec2 {0,0}), uv1 := Vec2(Vec2 {1,1}), frame_padding := i32(-1), bg_col := Vec4(Vec4 {0,0,0,0}), tint_col := Vec4(Vec4 {1,1,1,1})) -> bool do return igImageButton(user_texture_id, size, uv0, uv1, frame_padding, bg_col, tint_col);
indent :: #force_inline proc(indent_w := f32(0.0)) do igIndent(indent_w);
input_double :: #force_inline proc(label: string, v: ^f64, step := f64(0.0), step_fast := f64(0.0), format := "%.6f", flags := Input_Text_Flags(0)) -> bool do return swr_igInputDouble(label, v, step, step_fast, format, flags);
input_float :: #force_inline proc(label: string, v: ^f32, step := f32(0.0), step_fast := f32(0.0), format := "%.3f", flags := Input_Text_Flags(0)) -> bool do return swr_igInputFloat(label, v, step, step_fast, format, flags);
input_float2 :: #force_inline proc(label: string, v: [2]f32, format := "%.3f", flags := Input_Text_Flags(0)) -> bool do return swr_igInputFloat2(label, v, format, flags);
input_float3 :: #force_inline proc(label: string, v: [3]f32, format := "%.3f", flags := Input_Text_Flags(0)) -> bool do return swr_igInputFloat3(label, v, format, flags);
input_float4 :: #force_inline proc(label: string, v: [4]f32, format := "%.3f", flags := Input_Text_Flags(0)) -> bool do return swr_igInputFloat4(label, v, format, flags);
input_int :: #force_inline proc(label: string, v: ^i32, step := i32(1), step_fast := i32(100), flags := Input_Text_Flags(0)) -> bool do return swr_igInputInt(label, v, step, step_fast, flags);
input_int2 :: #force_inline proc(label: string, v: [2]i32, flags := Input_Text_Flags(0)) -> bool do return swr_igInputInt2(label, v, flags);
input_int3 :: #force_inline proc(label: string, v: [3]i32, flags := Input_Text_Flags(0)) -> bool do return swr_igInputInt3(label, v, flags);
input_int4 :: #force_inline proc(label: string, v: [4]i32, flags := Input_Text_Flags(0)) -> bool do return swr_igInputInt4(label, v, flags);
input_scalar :: #force_inline proc(label: string, data_type: Data_Type, p_data: rawptr, p_step : rawptr = nil, p_step_fast : rawptr = nil, format := "", flags := Input_Text_Flags(0)) -> bool do return swr_igInputScalar(label, data_type, p_data, p_step, p_step_fast, format, flags);
input_scalar_n :: #force_inline proc(label: string, data_type: Data_Type, p_data: rawptr, components: i32, p_step : rawptr = nil, p_step_fast : rawptr = nil, format := "", flags := Input_Text_Flags(0)) -> bool do return swr_igInputScalarN(label, data_type, p_data, components, p_step, p_step_fast, format, flags);
input_text :: #force_inline proc(label: string, buf: []u8, flags := Input_Text_Flags(0), callback : Input_Text_Callback = nil, user_data : rawptr = nil) -> bool do return wrapper_input_text(label, buf, flags, callback, user_data);
input_text_multiline :: #force_inline proc(label: string, buf: string, buf_size: uint, size := Vec2(Vec2 {0,0}), flags := Input_Text_Flags(0), callback : Input_Text_Callback = nil, user_data : rawptr = nil) -> bool do return swr_igInputTextMultiline(label, buf, buf_size, size, flags, callback, user_data);
input_text_with_hint :: #force_inline proc(label: string, hint: string, buf: string, buf_size: uint, flags := Input_Text_Flags(0), callback : Input_Text_Callback = nil, user_data : rawptr = nil) -> bool do return swr_igInputTextWithHint(label, hint, buf, buf_size, flags, callback, user_data);
invisible_button :: #force_inline proc(str_id: string, size: Vec2, flags := Button_Flags(0)) -> bool do return swr_igInvisibleButton(str_id, size, flags);
is_any_item_active :: #force_inline proc() -> bool do return igIsAnyItemActive();
is_any_item_focused :: #force_inline proc() -> bool do return igIsAnyItemFocused();
is_any_item_hovered :: #force_inline proc() -> bool do return igIsAnyItemHovered();
is_any_mouse_down :: #force_inline proc() -> bool do return igIsAnyMouseDown();
is_item_activated :: #force_inline proc() -> bool do return igIsItemActivated();
is_item_active :: #force_inline proc() -> bool do return igIsItemActive();
is_item_clicked :: #force_inline proc(mouse_button := Mouse_Button(0)) -> bool do return igIsItemClicked(mouse_button);
is_item_deactivated :: #force_inline proc() -> bool do return igIsItemDeactivated();
is_item_deactivated_after_edit :: #force_inline proc() -> bool do return igIsItemDeactivatedAfterEdit();
is_item_edited :: #force_inline proc() -> bool do return igIsItemEdited();
is_item_focused :: #force_inline proc() -> bool do return igIsItemFocused();
is_item_hovered :: #force_inline proc(flags := Hovered_Flags(0)) -> bool do return igIsItemHovered(flags);
is_item_toggled_open :: #force_inline proc() -> bool do return igIsItemToggledOpen();
is_item_visible :: #force_inline proc() -> bool do return igIsItemVisible();
is_key_down :: #force_inline proc(user_key_index: i32) -> bool do return igIsKeyDown(user_key_index);
is_key_pressed :: #force_inline proc(user_key_index: i32, repeat := bool(true)) -> bool do return igIsKeyPressed(user_key_index, repeat);
is_key_released :: #force_inline proc(user_key_index: i32) -> bool do return igIsKeyReleased(user_key_index);
is_mouse_clicked :: #force_inline proc(button: Mouse_Button, repeat := bool(false)) -> bool do return igIsMouseClicked(button, repeat);
is_mouse_double_clicked :: #force_inline proc(button: Mouse_Button) -> bool do return igIsMouseDoubleClicked(button);
is_mouse_down :: #force_inline proc(button: Mouse_Button) -> bool do return igIsMouseDown(button);
is_mouse_dragging :: #force_inline proc(button: Mouse_Button, lock_threshold := f32(-1.0)) -> bool do return igIsMouseDragging(button, lock_threshold);
is_mouse_hovering_rect :: #force_inline proc(r_min: Vec2, r_max: Vec2, clip := bool(true)) -> bool do return igIsMouseHoveringRect(r_min, r_max, clip);
is_mouse_pos_valid :: #force_inline proc(mouse_pos : ^Vec2 = nil) -> bool do return igIsMousePosValid(mouse_pos);
is_mouse_released :: #force_inline proc(button: Mouse_Button) -> bool do return igIsMouseReleased(button);
is_popup_open :: proc {
is_popup_open_str,
};
is_popup_open_str :: #force_inline proc(str_id: string, flags := Popup_Flags(0)) -> bool do return swr_igIsPopupOpen_Str(str_id, flags);
is_rect_visible :: proc {
is_rect_visible_nil,
is_rect_visible_vec2,
};
is_rect_visible_nil :: #force_inline proc(size: Vec2) -> bool do return igIsRectVisible_Nil(size);
is_rect_visible_vec2 :: #force_inline proc(rect_min: Vec2, rect_max: Vec2) -> bool do return igIsRectVisible_Vec2(rect_min, rect_max);
is_window_appearing :: #force_inline proc() -> bool do return igIsWindowAppearing();
is_window_collapsed :: #force_inline proc() -> bool do return igIsWindowCollapsed();
is_window_focused :: #force_inline proc(flags := Focused_Flags(0)) -> bool do return igIsWindowFocused(flags);
is_window_hovered :: #force_inline proc(flags := Hovered_Flags(0)) -> bool do return igIsWindowHovered(flags);
label_text :: #force_inline proc(label: string, fmt_: string, args: ..any) do swr_igLabelText(label, fmt_, args);
list_box :: proc {
list_box_str_arr,
list_box_fn_bool_ptr,
};
list_box_str_arr :: #force_inline proc(label: string, current_item: ^i32, items: string, items_count: i32, height_in_items := i32(-1)) -> bool do return swr_igListBox_Str_arr(label, current_item, items, items_count, height_in_items);
list_box_fn_bool_ptr :: #force_inline proc(label: string, current_item: ^i32, items_getter: Items_Getter_Proc, data: rawptr, items_count: i32, height_in_items := i32(0)) -> bool do return wrapper_list_box_fn_bool_ptr(label, current_item, items_getter, data, items_count, height_in_items);
load_ini_settings_from_disk :: #force_inline proc(ini_filename: string) do swr_igLoadIniSettingsFromDisk(ini_filename);
load_ini_settings_from_memory :: #force_inline proc(ini_data: string, ini_size := uint(0)) do swr_igLoadIniSettingsFromMemory(ini_data, ini_size);
log_buttons :: #force_inline proc() do igLogButtons();
log_finish :: #force_inline proc() do igLogFinish();
log_text :: #force_inline proc(fmt_: string, args: ..any) do swr_igLogText(fmt_, args);
log_to_clipboard :: #force_inline proc(auto_open_depth := i32(-1)) do igLogToClipboard(auto_open_depth);
log_to_file :: #force_inline proc(auto_open_depth := i32(-1), filename := "") do swr_igLogToFile(auto_open_depth, filename);
log_to_tty :: #force_inline proc(auto_open_depth := i32(-1)) do igLogToTTY(auto_open_depth);
mem_alloc :: #force_inline proc(size: uint) -> rawptr do return igMemAlloc(size);
mem_free :: #force_inline proc(ptr: rawptr) do igMemFree(ptr);
menu_item :: proc {
menu_item_bool,
menu_item_bool_ptr,
};
menu_item_bool :: #force_inline proc(label: string, shortcut := "", selected := bool(false), enabled := bool(true)) -> bool do return swr_igMenuItem_Bool(label, shortcut, selected, enabled);
menu_item_bool_ptr :: #force_inline proc(label: string, shortcut: string, p_selected: ^bool, enabled := bool(true)) -> bool do return swr_igMenuItem_BoolPtr(label, shortcut, p_selected, enabled);
new_frame :: #force_inline proc() do igNewFrame();
new_line :: #force_inline proc() do igNewLine();
next_column :: #force_inline proc() do igNextColumn();
open_popup :: #force_inline proc(str_id: string, popup_flags := Popup_Flags(0)) do swr_igOpenPopup(str_id, popup_flags);
open_popup_on_item_click :: #force_inline proc(str_id := "", popup_flags := Popup_Flags(1)) do swr_igOpenPopupOnItemClick(str_id, popup_flags);
plot_histogram :: proc {
plot_histogram_float_ptr,
plot_histogram_fn_float_ptr,
};
plot_histogram_float_ptr :: #force_inline proc(label: string, values: ^f32, values_count: i32, values_offset := i32(0), overlay_text := "", scale_min := f32(max(f32)), scale_max := f32(max(f32)), graph_size := Vec2(Vec2 {0,0}), stride := i32(size_of(f32))) do swr_igPlotHistogram_FloatPtr(label, values, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size, stride);
plot_histogram_fn_float_ptr :: #force_inline proc(label: string, values_getter: Value_Getter_Proc, data: rawptr, values_count: i32, values_offset: i32, overlay_text: string, scale_min: f32, scale_max: f32, graph_size: Vec2) do wrapper_plot_histogram_fn_float_ptr(label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size);
plot_lines :: proc {
plot_lines_float_ptr,
plot_lines_fn_float_ptr,
};
plot_lines_float_ptr :: #force_inline proc(label: string, values: ^f32, values_count: i32, values_offset := i32(0), overlay_text := "", scale_min := f32(max(f32)), scale_max := f32(max(f32)), graph_size := Vec2(Vec2 {0,0}), stride := i32(size_of(f32))) do swr_igPlotLines_FloatPtr(label, values, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size, stride);
plot_lines_fn_float_ptr :: #force_inline proc(label: string, values_getter: Value_Getter_Proc, data: rawptr, values_count: i32, values_offset: i32, overlay_text: string, scale_min: f32, scale_max: f32, graph_size: Vec2) do wrapper_plot_lines_fn_float_ptr(label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size);
pop_allow_keyboard_focus :: #force_inline proc() do igPopAllowKeyboardFocus();
pop_button_repeat :: #force_inline proc() do igPopButtonRepeat();
pop_clip_rect :: #force_inline proc() do igPopClipRect();
pop_font :: #force_inline proc() do igPopFont();
pop_id :: #force_inline proc() do igPopID();
pop_item_width :: #force_inline proc() do igPopItemWidth();
pop_style_color :: #force_inline proc(count := i32(1)) do igPopStyleColor(count);
pop_style_var :: #force_inline proc(count := i32(1)) do igPopStyleVar(count);
pop_text_wrap_pos :: #force_inline proc() do igPopTextWrapPos();
progress_bar :: #force_inline proc(fraction: f32, size_arg := Vec2(Vec2 {-min(f32),0}), overlay := "") do swr_igProgressBar(fraction, size_arg, overlay);
push_allow_keyboard_focus :: #force_inline proc(allow_keyboard_focus: bool) do igPushAllowKeyboardFocus(allow_keyboard_focus);
push_button_repeat :: #force_inline proc(repeat: bool) do igPushButtonRepeat(repeat);
push_clip_rect :: #force_inline proc(clip_rect_min: Vec2, clip_rect_max: Vec2, intersect_with_current_clip_rect: bool) do igPushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect);
push_font :: #force_inline proc(font: ^ImFont) do igPushFont(font);
push_id :: proc {
push_id_str,
push_id_str_str,
push_id_ptr,
push_id_int,
};
push_id_str :: #force_inline proc(str_id: string) do swr_igPushID_Str(str_id);
push_id_str_str :: #force_inline proc(str_id_begin: string, str_id_end: string) do swr_igPushID_StrStr(str_id_begin, str_id_end);
push_id_ptr :: #force_inline proc(ptr_id: rawptr) do igPushID_Ptr(ptr_id);
push_id_int :: #force_inline proc(int_id: i32) do igPushID_Int(int_id);
push_item_width :: #force_inline proc(item_width: f32) do igPushItemWidth(item_width);
push_style_color :: proc {
push_style_color_u32,
push_style_color_vec4,
};
push_style_color_u32 :: #force_inline proc(idx: Col, col: u32) do igPushStyleColor_U32(idx, col);
push_style_color_vec4 :: #force_inline proc(idx: Col, col: Vec4) do igPushStyleColor_Vec4(idx, col);
push_style_var :: proc {
push_style_var_float,
push_style_var_vec2,
};
push_style_var_float :: #force_inline proc(idx: Style_Var, val: f32) do igPushStyleVar_Float(idx, val);
push_style_var_vec2 :: #force_inline proc(idx: Style_Var, val: Vec2) do igPushStyleVar_Vec2(idx, val);
push_text_wrap_pos :: #force_inline proc(wrap_local_pos_x := f32(0.0)) do igPushTextWrapPos(wrap_local_pos_x);
radio_button :: proc {
radio_button_bool,
radio_button_int_ptr,
};
radio_button_bool :: #force_inline proc(label: string, active: bool) -> bool do return swr_igRadioButton_Bool(label, active);
radio_button_int_ptr :: #force_inline proc(label: string, v: ^i32, v_button: i32) -> bool do return swr_igRadioButton_IntPtr(label, v, v_button);
render :: #force_inline proc() do igRender();
reset_mouse_drag_delta :: #force_inline proc(button := Mouse_Button(0)) do igResetMouseDragDelta(button);
same_line :: #force_inline proc(offset_from_start_x := f32(0.0), spacing := f32(-1.0)) do igSameLine(offset_from_start_x, spacing);
save_ini_settings_to_disk :: #force_inline proc(ini_filename: string) do swr_igSaveIniSettingsToDisk(ini_filename);
save_ini_settings_to_memory :: #force_inline proc(out_ini_size : ^uint = nil) -> cstring do return igSaveIniSettingsToMemory(out_ini_size);
selectable :: proc {
selectable_bool,
selectable_bool_ptr,
};
selectable_bool :: #force_inline proc(label: string, selected := bool(false), flags := Selectable_Flags(0), size := Vec2(Vec2 {0,0})) -> bool do return swr_igSelectable_Bool(label, selected, flags, size);
selectable_bool_ptr :: #force_inline proc(label: string, p_selected: ^bool, flags := Selectable_Flags(0), size := Vec2(Vec2 {0,0})) -> bool do return swr_igSelectable_BoolPtr(label, p_selected, flags, size);
separator :: #force_inline proc() do igSeparator();
set_allocator_functions :: #force_inline proc(alloc_func: Alloc_Func, free_func: Free_Func) do wrapper_set_allocator_functions(alloc_func, free_func);
set_clipboard_text :: #force_inline proc(text: string) do swr_igSetClipboardText(text);
set_color_edit_options :: #force_inline proc(flags: Color_Edit_Flags) do igSetColorEditOptions(flags);
set_column_offset :: #force_inline proc(column_index: i32, offset_x: f32) do igSetColumnOffset(column_index, offset_x);
set_column_width :: #force_inline proc(column_index: i32, width: f32) do igSetColumnWidth(column_index, width);
set_current_context :: #force_inline proc(ctx: ^Context) do igSetCurrentContext(ctx);
set_cursor_pos :: #force_inline proc(local_pos: Vec2) do igSetCursorPos(local_pos);
set_cursor_pos_x :: #force_inline proc(local_x: f32) do igSetCursorPosX(local_x);
set_cursor_pos_y :: #force_inline proc(local_y: f32) do igSetCursorPosY(local_y);
set_cursor_screen_pos :: #force_inline proc(pos: Vec2) do igSetCursorScreenPos(pos);
set_drag_drop_payload :: #force_inline proc(type: string, data: rawptr, sz: uint, cond := Cond(0)) -> bool do return swr_igSetDragDropPayload(type, data, sz, cond);
set_item_allow_overlap :: #force_inline proc() do igSetItemAllowOverlap();
set_item_default_focus :: #force_inline proc() do igSetItemDefaultFocus();
set_keyboard_focus_here :: #force_inline proc(offset := i32(0)) do igSetKeyboardFocusHere(offset);
set_mouse_cursor :: #force_inline proc(cursor_type: Mouse_Cursor) do igSetMouseCursor(cursor_type);
set_next_item_open :: #force_inline proc(is_open: bool, cond := Cond(0)) do igSetNextItemOpen(is_open, cond);
set_next_item_width :: #force_inline proc(item_width: f32) do igSetNextItemWidth(item_width);
set_next_window_bg_alpha :: #force_inline proc(alpha: f32) do igSetNextWindowBgAlpha(alpha);
set_next_window_collapsed :: #force_inline proc(collapsed: bool, cond := Cond(0)) do igSetNextWindowCollapsed(collapsed, cond);
set_next_window_content_size :: #force_inline proc(size: Vec2) do igSetNextWindowContentSize(size);
set_next_window_focus :: #force_inline proc() do igSetNextWindowFocus();
set_next_window_pos :: #force_inline proc(pos: Vec2, cond := Cond(0), pivot := Vec2(Vec2 {0,0})) do igSetNextWindowPos(pos, cond, pivot);
set_next_window_size :: #force_inline proc(size: Vec2, cond := Cond(0)) do igSetNextWindowSize(size, cond);
set_next_window_size_constraints :: #force_inline proc(size_min: Vec2, size_max: Vec2, custom_callback : Size_Callback = nil, custom_callback_data : rawptr = nil) do igSetNextWindowSizeConstraints(size_min, size_max, custom_callback, custom_callback_data);
set_scroll_from_pos_x :: proc {
set_scroll_from_pos_x_float,
};
set_scroll_from_pos_x_float :: #force_inline proc(local_x: f32, center_x_ratio := f32(0.5)) do igSetScrollFromPosX_Float(local_x, center_x_ratio);
set_scroll_from_pos_y :: proc {
set_scroll_from_pos_y_float,
};
set_scroll_from_pos_y_float :: #force_inline proc(local_y: f32, center_y_ratio := f32(0.5)) do igSetScrollFromPosY_Float(local_y, center_y_ratio);
set_scroll_here_x :: #force_inline proc(center_x_ratio := f32(0.5)) do igSetScrollHereX(center_x_ratio);
set_scroll_here_y :: #force_inline proc(center_y_ratio := f32(0.5)) do igSetScrollHereY(center_y_ratio);
set_scroll_x :: proc {
set_scroll_x_float,
};
set_scroll_x_float :: #force_inline proc(scroll_x: f32) do igSetScrollX_Float(scroll_x);
set_scroll_y :: proc {
set_scroll_y_float,
};
set_scroll_y_float :: #force_inline proc(scroll_y: f32) do igSetScrollY_Float(scroll_y);
set_state_storage :: #force_inline proc(storage: ^Storage) do igSetStateStorage(storage);
set_tab_item_closed :: #force_inline proc(tab_or_docked_window_label: string) do swr_igSetTabItemClosed(tab_or_docked_window_label);
set_tooltip :: #force_inline proc(fmt_: string, args: ..any) do swr_igSetTooltip(fmt_, args);
set_window_collapsed :: proc {
set_window_collapsed_bool,
set_window_collapsed_str,
};
set_window_collapsed_bool :: #force_inline proc(collapsed: bool, cond := Cond(0)) do igSetWindowCollapsed_Bool(collapsed, cond);
set_window_collapsed_str :: #force_inline proc(name: string, collapsed: bool, cond := Cond(0)) do swr_igSetWindowCollapsed_Str(name, collapsed, cond);
set_window_focus :: proc {
set_window_focus_nil,
set_window_focus_str,
};
set_window_focus_nil :: #force_inline proc() do igSetWindowFocus_Nil();
set_window_focus_str :: #force_inline proc(name: string) do swr_igSetWindowFocus_Str(name);
set_window_font_scale :: #force_inline proc(scale: f32) do igSetWindowFontScale(scale);
set_window_pos :: proc {
set_window_pos_vec2,
set_window_pos_str,
};
set_window_pos_vec2 :: #force_inline proc(pos: Vec2, cond := Cond(0)) do igSetWindowPos_Vec2(pos, cond);
set_window_pos_str :: #force_inline proc(name: string, pos: Vec2, cond := Cond(0)) do swr_igSetWindowPos_Str(name, pos, cond);
set_window_size :: proc {
set_window_size_vec2,
set_window_size_str,
};
set_window_size_vec2 :: #force_inline proc(size: Vec2, cond := Cond(0)) do igSetWindowSize_Vec2(size, cond);
set_window_size_str :: #force_inline proc(name: string, size: Vec2, cond := Cond(0)) do swr_igSetWindowSize_Str(name, size, cond);
show_about_window :: #force_inline proc(p_open : ^bool = nil) do igShowAboutWindow(p_open);
show_demo_window :: #force_inline proc(p_open : ^bool = nil) do igShowDemoWindow(p_open);
show_font_selector :: #force_inline proc(label: string) do swr_igShowFontSelector(label);
show_metrics_window :: #force_inline proc(p_open : ^bool = nil) do igShowMetricsWindow(p_open);
show_style_editor :: #force_inline proc(ref : ^Style = nil) do igShowStyleEditor(ref);
show_style_selector :: #force_inline proc(label: string) -> bool do return swr_igShowStyleSelector(label);
show_user_guide :: #force_inline proc() do igShowUserGuide();
slider_angle :: #force_inline proc(label: string, v_rad: ^f32, v_degrees_min := f32(-360.0), v_degrees_max := f32(+360.0), format := "%.0f deg", flags := Slider_Flags(0)) -> bool do return swr_igSliderAngle(label, v_rad, v_degrees_min, v_degrees_max, format, flags);
slider_float :: #force_inline proc(label: string, v: ^f32, v_min: f32, v_max: f32, format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igSliderFloat(label, v, v_min, v_max, format, flags);
slider_float2 :: #force_inline proc(label: string, v: [2]f32, v_min: f32, v_max: f32, format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igSliderFloat2(label, v, v_min, v_max, format, flags);
slider_float3 :: #force_inline proc(label: string, v: [3]f32, v_min: f32, v_max: f32, format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igSliderFloat3(label, v, v_min, v_max, format, flags);
slider_float4 :: #force_inline proc(label: string, v: [4]f32, v_min: f32, v_max: f32, format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igSliderFloat4(label, v, v_min, v_max, format, flags);
slider_int :: #force_inline proc(label: string, v: ^i32, v_min: i32, v_max: i32, format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igSliderInt(label, v, v_min, v_max, format, flags);
slider_int2 :: #force_inline proc(label: string, v: [2]i32, v_min: i32, v_max: i32, format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igSliderInt2(label, v, v_min, v_max, format, flags);
slider_int3 :: #force_inline proc(label: string, v: [3]i32, v_min: i32, v_max: i32, format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igSliderInt3(label, v, v_min, v_max, format, flags);
slider_int4 :: #force_inline proc(label: string, v: [4]i32, v_min: i32, v_max: i32, format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igSliderInt4(label, v, v_min, v_max, format, flags);
slider_scalar :: #force_inline proc(label: string, data_type: Data_Type, p_data: rawptr, p_min: rawptr, p_max: rawptr, format := "", flags := Slider_Flags(0)) -> bool do return swr_igSliderScalar(label, data_type, p_data, p_min, p_max, format, flags);
slider_scalar_n :: #force_inline proc(label: string, data_type: Data_Type, p_data: rawptr, components: i32, p_min: rawptr, p_max: rawptr, format := "", flags := Slider_Flags(0)) -> bool do return swr_igSliderScalarN(label, data_type, p_data, components, p_min, p_max, format, flags);
small_button :: #force_inline proc(label: string) -> bool do return swr_igSmallButton(label);
spacing :: #force_inline proc() do igSpacing();
style_colors_classic :: #force_inline proc(dst : ^Style = nil) do igStyleColorsClassic(dst);
style_colors_dark :: #force_inline proc(dst : ^Style = nil) do igStyleColorsDark(dst);
style_colors_light :: #force_inline proc(dst : ^Style = nil) do igStyleColorsLight(dst);
tab_item_button :: #force_inline proc(label: string, flags := Tab_Item_Flags(0)) -> bool do return swr_igTabItemButton(label, flags);
table_get_column_count :: #force_inline proc() -> i32 do return igTableGetColumnCount();
table_get_column_flags :: #force_inline proc(column_n := i32(-1)) -> Table_Column_Flags do return igTableGetColumnFlags(column_n);
table_get_column_index :: #force_inline proc() -> i32 do return igTableGetColumnIndex();
table_get_column_name :: proc {
table_get_column_name_int,
};
table_get_column_name_int :: #force_inline proc(column_n := i32(-1)) -> cstring do return igTableGetColumnName_Int(column_n);
table_get_row_index :: #force_inline proc() -> i32 do return igTableGetRowIndex();
table_get_sort_specs :: #force_inline proc() -> ^Table_Sort_Specs do return igTableGetSortSpecs();
table_header :: #force_inline proc(label: string) do swr_igTableHeader(label);
table_headers_row :: #force_inline proc() do igTableHeadersRow();
table_next_column :: #force_inline proc() -> bool do return igTableNextColumn();
table_next_row :: #force_inline proc(row_flags := Table_Row_Flags(0), min_row_height := f32(0.0)) do igTableNextRow(row_flags, min_row_height);
table_set_bg_color :: #force_inline proc(target: Table_Bg_Target, color: u32, column_n := i32(-1)) do igTableSetBgColor(target, color, column_n);
table_set_column_index :: #force_inline proc(column_n: i32) -> bool do return igTableSetColumnIndex(column_n);
table_setup_column :: #force_inline proc(label: string, flags := Table_Column_Flags(0), init_width_or_weight := f32(0.0), user_id := ImID(0)) do swr_igTableSetupColumn(label, flags, init_width_or_weight, user_id);
table_setup_scroll_freeze :: #force_inline proc(cols: i32, rows: i32) do igTableSetupScrollFreeze(cols, rows);
text :: #force_inline proc(fmt_: string, args: ..any) do wrapper_text(fmt_, ..args);
text_colored :: #force_inline proc(col: Vec4, fmt_: string, args: ..any) do wrapper_text_colored(col, fmt_, ..args);
text_disabled :: #force_inline proc(fmt_: string, args: ..any) do wrapper_text_disabled(fmt_, ..args);
text_unformatted :: #force_inline proc(text: string) do wrapper_unformatted_text(text);
text_wrapped :: #force_inline proc(fmt_: string, args: ..any) do wrapper_text_wrapped(fmt_, ..args);
tree_node :: proc {
tree_node_str,
tree_node_str_str,
tree_node_ptr,
};
tree_node_str :: #force_inline proc(label: string) -> bool do return swr_igTreeNode_Str(label);
tree_node_str_str :: #force_inline proc(str_id: string, fmt_: string, args: ..any) -> bool do return swr_igTreeNode_StrStr(str_id, fmt_, args);
tree_node_ptr :: #force_inline proc(ptr_id: rawptr, fmt_: string, args: ..any) -> bool do return swr_igTreeNode_Ptr(ptr_id, fmt_, args);
tree_node_ex :: proc {
tree_node_ex_str,
tree_node_ex_str_str,
tree_node_ex_ptr,
};
tree_node_ex_str :: #force_inline proc(label: string, flags := Tree_Node_Flags(0)) -> bool do return swr_igTreeNodeEx_Str(label, flags);
tree_node_ex_str_str :: #force_inline proc(str_id: string, flags: Tree_Node_Flags, fmt_: string, args: ..any) -> bool do return swr_igTreeNodeEx_StrStr(str_id, flags, fmt_, args);
tree_node_ex_ptr :: #force_inline proc(ptr_id: rawptr, flags: Tree_Node_Flags, fmt_: string, args: ..any) -> bool do return swr_igTreeNodeEx_Ptr(ptr_id, flags, fmt_, args);
tree_pop :: #force_inline proc() do igTreePop();
tree_push :: proc {
tree_push_str,
tree_push_ptr,
};
tree_push_str :: #force_inline proc(str_id: string) do swr_igTreePush_Str(str_id);
tree_push_ptr :: #force_inline proc(ptr_id : rawptr = nil) do igTreePush_Ptr(ptr_id);
unindent :: #force_inline proc(indent_w := f32(0.0)) do igUnindent(indent_w);
v_slider_float :: #force_inline proc(label: string, size: Vec2, v: ^f32, v_min: f32, v_max: f32, format := "%.3f", flags := Slider_Flags(0)) -> bool do return swr_igVSliderFloat(label, size, v, v_min, v_max, format, flags);
v_slider_int :: #force_inline proc(label: string, size: Vec2, v: ^i32, v_min: i32, v_max: i32, format := "%d", flags := Slider_Flags(0)) -> bool do return swr_igVSliderInt(label, size, v, v_min, v_max, format, flags);
v_slider_scalar :: #force_inline proc(label: string, size: Vec2, data_type: Data_Type, p_data: rawptr, p_min: rawptr, p_max: rawptr, format := "", flags := Slider_Flags(0)) -> bool do return swr_igVSliderScalar(label, size, data_type, p_data, p_min, p_max, format, flags);
value :: proc {
value_bool,
value_int,
value_uint,
value_float,
};
value_bool :: #force_inline proc(prefix: string, b: bool) do swr_igValue_Bool(prefix, b);
value_int :: #force_inline proc(prefix: string, v: i32) do swr_igValue_Int(prefix, v);
value_uint :: #force_inline proc(prefix: string, v: u32) do swr_igValue_Uint(prefix, v);
value_float :: #force_inline proc(prefix: string, v: f32, float_format := "") do swr_igValue_Float(prefix, v, float_format);