-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathcimplot.h
More file actions
1775 lines (1738 loc) · 109 KB
/
cimplot.h
File metadata and controls
1775 lines (1738 loc) · 109 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
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimplot
//based on implot.h file version 1.0 from implot https://github.com/epezent/implot
//with implot_internal.h api
#ifndef CIMGUIPLOT_INCLUDED
#define CIMGUIPLOT_INCLUDED
#include "cimgui.h"
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
#include <time.h>
typedef struct tm tm;
typedef struct ImPlotContext ImPlotContext;
typedef struct ImPlotTick_c ImPlotTick_c;
typedef struct ImPlotAxis_c ImPlotAxis_c;
typedef struct ImPlotAxisColor ImPlotAxisColor;
typedef struct ImPlotItem ImPlotItem;
typedef struct ImPlotLegend ImPlotLegend;
typedef struct ImPlotPlot ImPlotPlot;
typedef struct ImPlotNextPlotData ImPlotNextPlotData;
typedef struct ImPlotTicker ImPlotTicker;
typedef struct ImVector_ImS16 {int Size;int Capacity;ImS16* Data;} ImVector_ImS16;
typedef struct ImVector_ImS32 {int Size;int Capacity;ImS32* Data;} ImVector_ImS32;
typedef struct ImVector_ImS64 {int Size;int Capacity;ImS64* Data;} ImVector_ImS64;
typedef struct ImVector_ImS8 {int Size;int Capacity;ImS8* Data;} ImVector_ImS8;
typedef struct ImVector_ImU64 {int Size;int Capacity;ImU64* Data;} ImVector_ImU64;
static const int IMPLOT_AUTO = -1;
struct ImPlotContext;
typedef int ImAxis;
typedef int ImPlotProp;
typedef int ImPlotFlags;
typedef int ImPlotAxisFlags;
typedef int ImPlotSubplotFlags;
typedef int ImPlotLegendFlags;
typedef int ImPlotMouseTextFlags;
typedef int ImPlotDragToolFlags;
typedef int ImPlotColormapScaleFlags;
typedef int ImPlotItemFlags;
typedef int ImPlotLineFlags;
typedef int ImPlotScatterFlags;
typedef int ImPlotBubblesFlags;
typedef int ImPlotPolygonFlags;
typedef int ImPlotStairsFlags;
typedef int ImPlotShadedFlags;
typedef int ImPlotBarsFlags;
typedef int ImPlotBarGroupsFlags;
typedef int ImPlotErrorBarsFlags;
typedef int ImPlotStemsFlags;
typedef int ImPlotInfLinesFlags;
typedef int ImPlotPieChartFlags;
typedef int ImPlotHeatmapFlags;
typedef int ImPlotHistogramFlags;
typedef int ImPlotDigitalFlags;
typedef int ImPlotImageFlags;
typedef int ImPlotTextFlags;
typedef int ImPlotDummyFlags;
typedef int ImPlotCond;
typedef int ImPlotCol;
typedef int ImPlotStyleVar;
typedef int ImPlotScale;
typedef int ImPlotMarker;
typedef int ImPlotColormap;
typedef int ImPlotLocation;
typedef int ImPlotBin;
typedef enum {
ImAxis_X1 = 0,
ImAxis_X2,
ImAxis_X3,
ImAxis_Y1,
ImAxis_Y2,
ImAxis_Y3,
ImAxis_COUNT
}ImAxis_;
typedef enum {
ImPlotProp_LineColor,
ImPlotProp_LineColors,
ImPlotProp_LineWeight,
ImPlotProp_FillColor,
ImPlotProp_FillColors,
ImPlotProp_FillAlpha,
ImPlotProp_Marker,
ImPlotProp_MarkerSize,
ImPlotProp_MarkerSizes,
ImPlotProp_MarkerLineColor,
ImPlotProp_MarkerLineColors,
ImPlotProp_MarkerFillColor,
ImPlotProp_MarkerFillColors,
ImPlotProp_Size,
ImPlotProp_Offset,
ImPlotProp_Stride,
ImPlotProp_Flags
}ImPlotProp_;
typedef enum {
ImPlotFlags_None = 0,
ImPlotFlags_NoTitle = 1 << 0,
ImPlotFlags_NoLegend = 1 << 1,
ImPlotFlags_NoMouseText = 1 << 2,
ImPlotFlags_NoInputs = 1 << 3,
ImPlotFlags_NoMenus = 1 << 4,
ImPlotFlags_NoBoxSelect = 1 << 5,
ImPlotFlags_NoFrame = 1 << 6,
ImPlotFlags_Equal = 1 << 7,
ImPlotFlags_Crosshairs = 1 << 8,
ImPlotFlags_CanvasOnly = ImPlotFlags_NoTitle | ImPlotFlags_NoLegend | ImPlotFlags_NoMenus | ImPlotFlags_NoBoxSelect | ImPlotFlags_NoMouseText
}ImPlotFlags_;
typedef enum {
ImPlotAxisFlags_None = 0,
ImPlotAxisFlags_NoLabel = 1 << 0,
ImPlotAxisFlags_NoGridLines = 1 << 1,
ImPlotAxisFlags_NoTickMarks = 1 << 2,
ImPlotAxisFlags_NoTickLabels = 1 << 3,
ImPlotAxisFlags_NoInitialFit = 1 << 4,
ImPlotAxisFlags_NoMenus = 1 << 5,
ImPlotAxisFlags_NoSideSwitch = 1 << 6,
ImPlotAxisFlags_NoHighlight = 1 << 7,
ImPlotAxisFlags_Opposite = 1 << 8,
ImPlotAxisFlags_Foreground = 1 << 9,
ImPlotAxisFlags_Invert = 1 << 10,
ImPlotAxisFlags_AutoFit = 1 << 11,
ImPlotAxisFlags_RangeFit = 1 << 12,
ImPlotAxisFlags_PanStretch = 1 << 13,
ImPlotAxisFlags_LockMin = 1 << 14,
ImPlotAxisFlags_LockMax = 1 << 15,
ImPlotAxisFlags_Lock = ImPlotAxisFlags_LockMin | ImPlotAxisFlags_LockMax,
ImPlotAxisFlags_NoDecorations = ImPlotAxisFlags_NoLabel | ImPlotAxisFlags_NoGridLines | ImPlotAxisFlags_NoTickMarks | ImPlotAxisFlags_NoTickLabels,
ImPlotAxisFlags_AuxDefault = ImPlotAxisFlags_NoGridLines | ImPlotAxisFlags_Opposite
}ImPlotAxisFlags_;
typedef enum {
ImPlotSubplotFlags_None = 0,
ImPlotSubplotFlags_NoTitle = 1 << 0,
ImPlotSubplotFlags_NoLegend = 1 << 1,
ImPlotSubplotFlags_NoMenus = 1 << 2,
ImPlotSubplotFlags_NoResize = 1 << 3,
ImPlotSubplotFlags_NoAlign = 1 << 4,
ImPlotSubplotFlags_ShareItems = 1 << 5,
ImPlotSubplotFlags_LinkRows = 1 << 6,
ImPlotSubplotFlags_LinkCols = 1 << 7,
ImPlotSubplotFlags_LinkAllX = 1 << 8,
ImPlotSubplotFlags_LinkAllY = 1 << 9,
ImPlotSubplotFlags_ColMajor = 1 << 10
}ImPlotSubplotFlags_;
typedef enum {
ImPlotLegendFlags_None = 0,
ImPlotLegendFlags_NoButtons = 1 << 0,
ImPlotLegendFlags_NoHighlightItem = 1 << 1,
ImPlotLegendFlags_NoHighlightAxis = 1 << 2,
ImPlotLegendFlags_NoMenus = 1 << 3,
ImPlotLegendFlags_Outside = 1 << 4,
ImPlotLegendFlags_Horizontal = 1 << 5,
ImPlotLegendFlags_Sort = 1 << 6,
ImPlotLegendFlags_Reverse = 1 << 7,
}ImPlotLegendFlags_;
typedef enum {
ImPlotMouseTextFlags_None = 0,
ImPlotMouseTextFlags_NoAuxAxes = 1 << 0,
ImPlotMouseTextFlags_NoFormat = 1 << 1,
ImPlotMouseTextFlags_ShowAlways = 1 << 2,
}ImPlotMouseTextFlags_;
typedef enum {
ImPlotDragToolFlags_None = 0,
ImPlotDragToolFlags_NoCursors = 1 << 0,
ImPlotDragToolFlags_NoFit = 1 << 1,
ImPlotDragToolFlags_NoInputs = 1 << 2,
ImPlotDragToolFlags_Delayed = 1 << 3,
}ImPlotDragToolFlags_;
typedef enum {
ImPlotColormapScaleFlags_None = 0,
ImPlotColormapScaleFlags_NoLabel = 1 << 0,
ImPlotColormapScaleFlags_Opposite = 1 << 1,
ImPlotColormapScaleFlags_Invert = 1 << 2,
}ImPlotColormapScaleFlags_;
typedef enum {
ImPlotItemFlags_None = 0,
ImPlotItemFlags_NoLegend = 1 << 0,
ImPlotItemFlags_NoFit = 1 << 1,
}ImPlotItemFlags_;
typedef enum {
ImPlotLineFlags_None = 0,
ImPlotLineFlags_Segments = 1 << 10,
ImPlotLineFlags_Loop = 1 << 11,
ImPlotLineFlags_SkipNaN = 1 << 12,
ImPlotLineFlags_NoClip = 1 << 13,
ImPlotLineFlags_Shaded = 1 << 14,
}ImPlotLineFlags_;
typedef enum {
ImPlotScatterFlags_None = 0,
ImPlotScatterFlags_NoClip = 1 << 10,
}ImPlotScatterFlags_;
typedef enum {
ImPlotBubblesFlags_None = 0,
}ImPlotBubblesFlags_;
typedef enum {
ImPlotPolygonFlags_None = 0,
ImPlotPolygonFlags_Concave = 1 << 10,
}ImPlotPolygonFlags_;
typedef enum {
ImPlotStairsFlags_None = 0,
ImPlotStairsFlags_PreStep = 1 << 10,
ImPlotStairsFlags_Shaded = 1 << 11
}ImPlotStairsFlags_;
typedef enum {
ImPlotShadedFlags_None = 0
}ImPlotShadedFlags_;
typedef enum {
ImPlotBarsFlags_None = 0,
ImPlotBarsFlags_Horizontal = 1 << 10,
}ImPlotBarsFlags_;
typedef enum {
ImPlotBarGroupsFlags_None = 0,
ImPlotBarGroupsFlags_Horizontal = 1 << 10,
ImPlotBarGroupsFlags_Stacked = 1 << 11,
}ImPlotBarGroupsFlags_;
typedef enum {
ImPlotErrorBarsFlags_None = 0,
ImPlotErrorBarsFlags_Horizontal = 1 << 10,
}ImPlotErrorBarsFlags_;
typedef enum {
ImPlotStemsFlags_None = 0,
ImPlotStemsFlags_Horizontal = 1 << 10,
}ImPlotStemsFlags_;
typedef enum {
ImPlotInfLinesFlags_None = 0,
ImPlotInfLinesFlags_Horizontal = 1 << 10
}ImPlotInfLinesFlags_;
typedef enum {
ImPlotPieChartFlags_None = 0,
ImPlotPieChartFlags_Normalize = 1 << 10,
ImPlotPieChartFlags_IgnoreHidden = 1 << 11,
ImPlotPieChartFlags_Exploding = 1 << 12,
ImPlotPieChartFlags_NoSliceBorder = 1 << 13
}ImPlotPieChartFlags_;
typedef enum {
ImPlotHeatmapFlags_None = 0,
ImPlotHeatmapFlags_ColMajor = 1 << 10,
}ImPlotHeatmapFlags_;
typedef enum {
ImPlotHistogramFlags_None = 0,
ImPlotHistogramFlags_Horizontal = 1 << 10,
ImPlotHistogramFlags_Cumulative = 1 << 11,
ImPlotHistogramFlags_Density = 1 << 12,
ImPlotHistogramFlags_NoOutliers = 1 << 13,
ImPlotHistogramFlags_ColMajor = 1 << 14
}ImPlotHistogramFlags_;
typedef enum {
ImPlotDigitalFlags_None = 0
}ImPlotDigitalFlags_;
typedef enum {
ImPlotImageFlags_None = 0
}ImPlotImageFlags_;
typedef enum {
ImPlotTextFlags_None = 0,
ImPlotTextFlags_Vertical = 1 << 10
}ImPlotTextFlags_;
typedef enum {
ImPlotDummyFlags_None = 0
}ImPlotDummyFlags_;
typedef enum {
ImPlotCond_None = ImGuiCond_None,
ImPlotCond_Always = ImGuiCond_Always,
ImPlotCond_Once = ImGuiCond_Once,
}ImPlotCond_;
typedef enum {
ImPlotCol_FrameBg,
ImPlotCol_PlotBg,
ImPlotCol_PlotBorder,
ImPlotCol_LegendBg,
ImPlotCol_LegendBorder,
ImPlotCol_LegendText,
ImPlotCol_TitleText,
ImPlotCol_InlayText,
ImPlotCol_AxisText,
ImPlotCol_AxisGrid,
ImPlotCol_AxisTick,
ImPlotCol_AxisBg,
ImPlotCol_AxisBgHovered,
ImPlotCol_AxisBgActive,
ImPlotCol_Selection,
ImPlotCol_Crosshairs,
ImPlotCol_COUNT
}ImPlotCol_;
typedef enum {
ImPlotStyleVar_PlotDefaultSize,
ImPlotStyleVar_PlotMinSize,
ImPlotStyleVar_PlotBorderSize,
ImPlotStyleVar_MinorAlpha,
ImPlotStyleVar_MajorTickLen,
ImPlotStyleVar_MinorTickLen,
ImPlotStyleVar_MajorTickSize,
ImPlotStyleVar_MinorTickSize,
ImPlotStyleVar_MajorGridSize,
ImPlotStyleVar_MinorGridSize,
ImPlotStyleVar_PlotPadding,
ImPlotStyleVar_LabelPadding,
ImPlotStyleVar_LegendPadding,
ImPlotStyleVar_LegendInnerPadding,
ImPlotStyleVar_LegendSpacing,
ImPlotStyleVar_MousePosPadding,
ImPlotStyleVar_AnnotationPadding,
ImPlotStyleVar_FitPadding,
ImPlotStyleVar_DigitalPadding,
ImPlotStyleVar_DigitalSpacing,
ImPlotStyleVar_COUNT
}ImPlotStyleVar_;
typedef enum {
ImPlotScale_Linear = 0,
ImPlotScale_Time,
ImPlotScale_Log10,
ImPlotScale_SymLog,
}ImPlotScale_;
typedef enum {
ImPlotMarker_None = -2,
ImPlotMarker_Auto = -1,
ImPlotMarker_Circle,
ImPlotMarker_Square,
ImPlotMarker_Diamond,
ImPlotMarker_Up,
ImPlotMarker_Down,
ImPlotMarker_Left,
ImPlotMarker_Right,
ImPlotMarker_Cross,
ImPlotMarker_Plus,
ImPlotMarker_Asterisk,
ImPlotMarker_COUNT
}ImPlotMarker_;
typedef enum {
ImPlotColormap_Deep = 0,
ImPlotColormap_Dark = 1,
ImPlotColormap_Pastel = 2,
ImPlotColormap_Paired = 3,
ImPlotColormap_Viridis = 4,
ImPlotColormap_Plasma = 5,
ImPlotColormap_Hot = 6,
ImPlotColormap_Cool = 7,
ImPlotColormap_Pink = 8,
ImPlotColormap_Jet = 9,
ImPlotColormap_Twilight = 10,
ImPlotColormap_RdBu = 11,
ImPlotColormap_BrBG = 12,
ImPlotColormap_PiYG = 13,
ImPlotColormap_Spectral = 14,
ImPlotColormap_Greys = 15,
}ImPlotColormap_;
typedef enum {
ImPlotLocation_Center = 0,
ImPlotLocation_North = 1 << 0,
ImPlotLocation_South = 1 << 1,
ImPlotLocation_West = 1 << 2,
ImPlotLocation_East = 1 << 3,
ImPlotLocation_NorthWest = ImPlotLocation_North | ImPlotLocation_West,
ImPlotLocation_NorthEast = ImPlotLocation_North | ImPlotLocation_East,
ImPlotLocation_SouthWest = ImPlotLocation_South | ImPlotLocation_West,
ImPlotLocation_SouthEast = ImPlotLocation_South | ImPlotLocation_East
}ImPlotLocation_;
typedef enum {
ImPlotBin_Sqrt = -1,
ImPlotBin_Sturges = -2,
ImPlotBin_Rice = -3,
ImPlotBin_Scott = -4,
}ImPlotBin_;
typedef struct ImPlotSpec_c ImPlotSpec_c;
struct ImPlotSpec_c
{
ImVec4_c LineColor;
ImU32* LineColors;
float LineWeight;
ImVec4_c FillColor;
ImU32* FillColors;
float FillAlpha;
ImPlotMarker Marker;
float MarkerSize;
float* MarkerSizes;
ImVec4_c MarkerLineColor;
ImU32* MarkerLineColors;
ImVec4_c MarkerFillColor;
ImU32* MarkerFillColors;
float Size;
int Offset;
int Stride;
ImPlotItemFlags Flags;
};
typedef struct ImPlotPoint_c ImPlotPoint_c;
struct ImPlotPoint_c
{
double x, y;
};
typedef struct ImPlotRange_c ImPlotRange_c;
struct ImPlotRange_c
{
double Min, Max;
};
typedef struct ImPlotRect_c ImPlotRect_c;
struct ImPlotRect_c
{
ImPlotRange_c X, Y;
};
typedef struct ImPlotStyle ImPlotStyle;
struct ImPlotStyle
{
ImVec2_c PlotDefaultSize;
ImVec2_c PlotMinSize;
float PlotBorderSize;
float MinorAlpha;
ImVec2_c MajorTickLen;
ImVec2_c MinorTickLen;
ImVec2_c MajorTickSize;
ImVec2_c MinorTickSize;
ImVec2_c MajorGridSize;
ImVec2_c MinorGridSize;
ImVec2_c PlotPadding;
ImVec2_c LabelPadding;
ImVec2_c LegendPadding;
ImVec2_c LegendInnerPadding;
ImVec2_c LegendSpacing;
ImVec2_c MousePosPadding;
ImVec2_c AnnotationPadding;
ImVec2_c FitPadding;
float DigitalPadding;
float DigitalSpacing;
ImVec4_c Colors[ImPlotCol_COUNT];
ImPlotColormap Colormap;
bool UseLocalTime;
bool UseISO8601;
bool Use24HourClock;
};
typedef struct ImPlotInputMap ImPlotInputMap;
struct ImPlotInputMap
{
ImGuiMouseButton Pan;
int PanMod;
ImGuiMouseButton Fit;
ImGuiMouseButton Select;
ImGuiMouseButton SelectCancel;
int SelectMod;
int SelectHorzMod;
int SelectVertMod;
ImGuiMouseButton Menu;
int OverrideMod;
int ZoomMod;
float ZoomRate;
};
typedef int (*ImPlotFormatter)(double value, char* buff, int size, void* user_data);
typedef ImPlotPoint_c (*ImPlotGetter)(int idx, void* user_data);
typedef double (*ImPlotTransform)(double value, void* user_data);
static const double IMPLOT_MIN_TIME = 0;
static const double IMPLOT_MAX_TIME = 32503680000;
static const int IMPLOT_LABEL_MAX_SIZE = 32;
struct ImPlotTick_c;
struct ImPlotAxis_c;
struct ImPlotAxisColor;
struct ImPlotItem;
struct ImPlotLegend;
struct ImPlotPlot;
struct ImPlotNextPlotData;
struct ImPlotTicker;
typedef int ImPlotTimeUnit;
typedef int ImPlotDateFmt;
typedef int ImPlotTimeFmt;
typedef int ImPlotMarkerInternal;
typedef enum {
ImPlotTimeUnit_Us,
ImPlotTimeUnit_Ms,
ImPlotTimeUnit_S,
ImPlotTimeUnit_Min,
ImPlotTimeUnit_Hr,
ImPlotTimeUnit_Day,
ImPlotTimeUnit_Mo,
ImPlotTimeUnit_Yr,
ImPlotTimeUnit_COUNT
}ImPlotTimeUnit_;
typedef enum {
ImPlotDateFmt_None = 0,
ImPlotDateFmt_DayMo,
ImPlotDateFmt_DayMoYr,
ImPlotDateFmt_MoYr,
ImPlotDateFmt_Mo,
ImPlotDateFmt_Yr
}ImPlotDateFmt_;
typedef enum {
ImPlotTimeFmt_None = 0,
ImPlotTimeFmt_Us,
ImPlotTimeFmt_SUs,
ImPlotTimeFmt_SMs,
ImPlotTimeFmt_S,
ImPlotTimeFmt_MinSMs,
ImPlotTimeFmt_HrMinSMs,
ImPlotTimeFmt_HrMinS,
ImPlotTimeFmt_HrMin,
ImPlotTimeFmt_Hr
}ImPlotTimeFmt_;
typedef enum {
ImPlotMarker_Invalid = -3
}ImPlotMarkerInternal_;
typedef void (*ImPlotLocator)(ImPlotTicker* ticker, const ImPlotRange_c range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data);
typedef struct ImPlotDateTimeSpec_c ImPlotDateTimeSpec_c;
struct ImPlotDateTimeSpec_c
{
ImPlotDateFmt Date;
ImPlotTimeFmt Time;
bool UseISO8601;
bool Use24HourClock;
};
typedef struct ImPlotTime_c ImPlotTime_c;
struct ImPlotTime_c
{
time_t S;
int Us;
};
typedef struct ImPlotColormapData ImPlotColormapData;
typedef struct ImVector_bool {int Size;int Capacity;bool* Data;} ImVector_bool;
struct ImPlotColormapData
{
ImVector_ImU32 Keys;
ImVector_int KeyCounts;
ImVector_int KeyOffsets;
ImVector_ImU32 Tables;
ImVector_int TableSizes;
ImVector_int TableOffsets;
ImGuiTextBuffer Text;
ImVector_int TextOffsets;
ImVector_bool Quals;
ImGuiStorage Map;
int Count;
};
typedef struct ImPlotPointError ImPlotPointError;
struct ImPlotPointError
{
double X, Y, Neg, Pos;
};
typedef struct ImPlotAnnotation ImPlotAnnotation;
struct ImPlotAnnotation
{
ImVec2_c Pos;
ImVec2_c Offset;
ImU32 ColorBg;
ImU32 ColorFg;
int TextOffset;
bool Clamp;
};
typedef struct ImPlotAnnotationCollection ImPlotAnnotationCollection;
typedef struct ImVector_ImPlotAnnotation {int Size;int Capacity;ImPlotAnnotation* Data;} ImVector_ImPlotAnnotation;
struct ImPlotAnnotationCollection
{
ImVector_ImPlotAnnotation Annotations;
ImGuiTextBuffer TextBuffer;
int Size;
};
typedef struct ImPlotTag ImPlotTag;
struct ImPlotTag
{
ImAxis Axis;
double Value;
ImU32 ColorBg;
ImU32 ColorFg;
int TextOffset;
};
typedef struct ImPlotTagCollection ImPlotTagCollection;
typedef struct ImVector_ImPlotTag {int Size;int Capacity;ImPlotTag* Data;} ImVector_ImPlotTag;
struct ImPlotTagCollection
{
ImVector_ImPlotTag Tags;
ImGuiTextBuffer TextBuffer;
int Size;
};
struct ImPlotTick_c
{
double PlotPos;
float PixelPos;
ImVec2_c LabelSize;
int TextOffset;
bool Major;
bool ShowLabel;
int Level;
int Idx;
};
typedef struct ImVector_ImPlotTick {int Size;int Capacity;ImPlotTick_c* Data;} ImVector_ImPlotTick;
struct ImPlotTicker
{
ImVector_ImPlotTick Ticks;
ImGuiTextBuffer TextBuffer;
ImVec2_c MaxSize;
ImVec2_c LateSize;
int Levels;
};
struct ImPlotAxis_c
{
ImGuiID ID;
ImPlotAxisFlags Flags;
ImPlotAxisFlags PreviousFlags;
ImPlotRange_c Range;
ImPlotCond RangeCond;
ImPlotScale Scale;
ImPlotRange_c FitExtents;
ImPlotAxis_c* OrthoAxis;
ImPlotRange_c ConstraintRange;
ImPlotRange_c ConstraintZoom;
ImPlotTicker Ticker;
ImPlotFormatter Formatter;
void* FormatterData;
char FormatSpec[16];
ImPlotLocator Locator;
double* LinkedMin;
double* LinkedMax;
int PickerLevel;
ImPlotTime_c PickerTimeMin, PickerTimeMax;
ImPlotTransform TransformForward;
ImPlotTransform TransformInverse;
void* TransformData;
float PixelMin, PixelMax;
double ScaleMin, ScaleMax;
double ScaleToPixel;
float Datum1, Datum2;
ImRect_c HoverRect;
int LabelOffset;
ImU32 ColorMaj, ColorMin, ColorTick, ColorTxt, ColorBg, ColorHov, ColorAct, ColorHiLi;
bool Enabled;
bool Vertical;
bool FitThisFrame;
bool HasRange;
bool HasFormatSpec;
bool ShowDefaultTicks;
bool Hovered;
bool Held;
};
typedef struct ImPlotAlignmentData ImPlotAlignmentData;
struct ImPlotAlignmentData
{
bool Vertical;
float PadA;
float PadB;
float PadAMax;
float PadBMax;
};
struct ImPlotItem
{
ImGuiID ID;
ImU32 Color;
ImPlotMarker Marker;
ImRect_c LegendHoverRect;
int NameOffset;
bool Show;
bool LegendHovered;
bool SeenThisFrame;
};
struct ImPlotLegend
{
ImPlotLegendFlags Flags;
ImPlotLegendFlags PreviousFlags;
ImPlotLocation Location;
ImPlotLocation PreviousLocation;
ImVec2_c Scroll;
ImVector_int Indices;
ImGuiTextBuffer Labels;
ImRect_c Rect;
ImRect_c RectClamped;
bool Hovered;
bool Held;
bool CanGoInside;
};
typedef struct ImPlotItemGroup ImPlotItemGroup;
typedef struct ImVector_ImPlotItem {int Size;int Capacity;ImPlotItem* Data;} ImVector_ImPlotItem;
typedef struct ImPool_ImPlotItem {ImVector_ImPlotItem Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImPlotItem;
struct ImPlotItemGroup
{
ImGuiID ID;
ImPlotLegend Legend;
ImPool_ImPlotItem ItemPool;
int ColormapIdx;
ImPlotMarker MarkerIdx;
};
struct ImPlotPlot
{
ImGuiID ID;
ImPlotFlags Flags;
ImPlotFlags PreviousFlags;
ImPlotLocation MouseTextLocation;
ImPlotMouseTextFlags MouseTextFlags;
ImPlotAxis_c Axes[ImAxis_COUNT];
ImGuiTextBuffer TextBuffer;
ImPlotItemGroup Items;
ImAxis CurrentX;
ImAxis CurrentY;
ImRect_c FrameRect;
ImRect_c CanvasRect;
ImRect_c PlotRect;
ImRect_c AxesRect;
ImRect_c SelectRect;
ImVec2_c SelectStart;
int TitleOffset;
bool JustCreated;
bool Initialized;
bool SetupLocked;
bool FitThisFrame;
bool Hovered;
bool Held;
bool Selecting;
bool Selected;
bool ContextLocked;
};
typedef struct ImPlotSubplot ImPlotSubplot;
typedef struct ImVector_ImPlotAlignmentData {int Size;int Capacity;ImPlotAlignmentData* Data;} ImVector_ImPlotAlignmentData;
typedef struct ImVector_ImPlotRange {int Size;int Capacity;ImPlotRange_c* Data;} ImVector_ImPlotRange;
struct ImPlotSubplot
{
ImGuiID ID;
ImPlotSubplotFlags Flags;
ImPlotSubplotFlags PreviousFlags;
ImPlotItemGroup Items;
int Rows;
int Cols;
int CurrentIdx;
ImRect_c FrameRect;
ImRect_c GridRect;
ImVec2_c CellSize;
ImVector_ImPlotAlignmentData RowAlignmentData;
ImVector_ImPlotAlignmentData ColAlignmentData;
ImVector_float RowRatios;
ImVector_float ColRatios;
ImVector_ImPlotRange RowLinkData;
ImVector_ImPlotRange ColLinkData;
float TempSizes[2];
bool FrameHovered;
bool HasTitle;
};
struct ImPlotNextPlotData
{
ImPlotCond RangeCond[ImAxis_COUNT];
ImPlotRange_c Range[ImAxis_COUNT];
bool HasRange[ImAxis_COUNT];
bool Fit[ImAxis_COUNT];
double* LinkedMin[ImAxis_COUNT];
double* LinkedMax[ImAxis_COUNT];
};
typedef struct ImPlotNextItemData ImPlotNextItemData;
struct ImPlotNextItemData
{
ImPlotSpec_c Spec;
bool RenderLine;
bool RenderFill;
bool RenderMarkerLine;
bool RenderMarkerFill;
bool RenderMarkers;
bool HasHidden;
bool Hidden;
ImPlotCond HiddenCond;
};
typedef struct ImVector_ImPlotPlot {int Size;int Capacity;ImPlotPlot* Data;} ImVector_ImPlotPlot;
typedef struct ImPool_ImPlotPlot {ImVector_ImPlotPlot Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImPlotPlot;
typedef struct ImVector_ImPlotSubplot {int Size;int Capacity;ImPlotSubplot* Data;} ImVector_ImPlotSubplot;
typedef struct ImPool_ImPlotSubplot {ImVector_ImPlotSubplot Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImPlotSubplot;
typedef struct ImVector_ImPlotColormap {int Size;int Capacity;ImPlotColormap* Data;} ImVector_ImPlotColormap;
typedef struct ImVector_double {int Size;int Capacity;double* Data;} ImVector_double;
typedef struct ImPool_ImPlotAlignmentData {ImVector_ImPlotAlignmentData Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImPlotAlignmentData;
struct ImPlotContext
{
ImPool_ImPlotPlot Plots;
ImPool_ImPlotSubplot Subplots;
ImPlotPlot* CurrentPlot;
ImPlotSubplot* CurrentSubplot;
ImPlotItemGroup* CurrentItems;
ImPlotItem* CurrentItem;
ImPlotItem* PreviousItem;
ImPlotTicker CTicker;
ImPlotAnnotationCollection Annotations;
ImPlotTagCollection Tags;
ImPlotStyle Style;
ImVector_ImGuiColorMod ColorModifiers;
ImVector_ImGuiStyleMod StyleModifiers;
ImPlotColormapData ColormapData;
ImVector_ImPlotColormap ColormapModifiers;
tm Tm;
ImVector_double TempDouble1, TempDouble2;
ImVector_int TempInt1;
int DigitalPlotItemCnt;
int DigitalPlotOffset;
ImPlotNextPlotData NextPlotData;
ImPlotNextItemData NextItemData;
ImPlotInputMap InputMap;
bool OpenContextThisFrame;
ImGuiTextBuffer MousePosStringBuilder;
ImPlotItemGroup* SortItems;
ImPool_ImPlotAlignmentData AlignmentData;
ImPlotAlignmentData* CurrentAlignmentH;
ImPlotAlignmentData* CurrentAlignmentV;
};
typedef struct Formatter_Time_Data Formatter_Time_Data;
struct Formatter_Time_Data
{
ImPlotTime_c Time;
ImPlotDateTimeSpec_c Spec;
ImPlotFormatter UserFormatter;
void* UserFormatterData;
};
#else
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef struct ImPlotDateTimeSpec_c ImPlotDateTimeSpec;
typedef struct ImPlotPoint_c ImPlotPoint;
typedef struct ImPlotRange_c ImPlotRange;
typedef struct ImPlotTime_c ImPlotTime;
typedef struct ImPlotRect_c ImPlotRect;
typedef struct ImPlotSpec_c ImPlotSpec;
typedef struct ImPlotTick_c ImPlotTick;
typedef struct ImPlotAxis_c ImPlotAxis;
#endif
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef struct ImPlotDateTimeSpec_c ImPlotDateTimeSpec_c;
struct ImPlotDateTimeSpec_c {
ImPlotDateFmt Date;
ImPlotTimeFmt Time;
bool UseISO8601;
bool Use24HourClock;
};
typedef struct ImPlotPoint_c ImPlotPoint_c;
struct ImPlotPoint_c {
double x;
double y;
};
typedef struct ImPlotRange_c ImPlotRange_c;
struct ImPlotRange_c {
double Min;
double Max;
};
typedef struct ImPlotTime_c ImPlotTime_c;
struct ImPlotTime_c {
time_t S;
int Us;
};
typedef struct ImPlotRect_c ImPlotRect_c;
struct ImPlotRect_c {
ImPlotRange_c X;
ImPlotRange_c Y;
};
typedef struct ImPlotSpec_c ImPlotSpec_c;
struct ImPlotSpec_c {
ImVec4_c LineColor;
ImU32* LineColors;
float LineWeight;
ImVec4_c FillColor;
ImU32* FillColors;
float FillAlpha;
ImPlotMarker Marker;
float MarkerSize;
float* MarkerSizes;
ImVec4_c MarkerLineColor;
ImU32* MarkerLineColors;
ImVec4_c MarkerFillColor;
ImU32* MarkerFillColors;
float Size;
int Offset;
int Stride;
ImPlotItemFlags Flags;
};
typedef struct ImPlotTick_c ImPlotTick_c;
struct ImPlotTick_c {
double PlotPos;
float PixelPos;
ImVec2_c LabelSize;
int TextOffset;
bool Major;
bool ShowLabel;
int Level;
int Idx;
};
typedef struct ImPlotAxis_c ImPlotAxis_c;
struct ImPlotAxis_c {
ImGuiID ID;
ImPlotAxisFlags Flags;
ImPlotAxisFlags PreviousFlags;
ImPlotRange_c Range;
ImPlotCond RangeCond;
ImPlotScale Scale;
ImPlotRange_c FitExtents;
ImPlotAxis_c* OrthoAxis;
ImPlotRange_c ConstraintRange;
ImPlotRange_c ConstraintZoom;
ImPlotTicker Ticker;
ImPlotFormatter Formatter;
void* FormatterData;
char FormatSpec[16];
ImPlotLocator Locator;
double* LinkedMin;
double* LinkedMax;
int PickerLevel;
ImPlotTime_c PickerTimeMin;
ImPlotTime_c PickerTimeMax;
ImPlotTransform TransformForward;
ImPlotTransform TransformInverse;
void* TransformData;
float PixelMin;
float PixelMax;
double ScaleMin;
double ScaleMax;
double ScaleToPixel;
float Datum1;
float Datum2;
ImRect_c HoverRect;
int LabelOffset;
ImU32 ColorMaj;
ImU32 ColorMin;
ImU32 ColorTick;
ImU32 ColorTxt;
ImU32 ColorBg;
ImU32 ColorHov;
ImU32 ColorAct;
ImU32 ColorHiLi;
bool Enabled;
bool Vertical;
bool FitThisFrame;
bool HasRange;
bool HasFormatSpec;
bool ShowDefaultTicks;
bool Hovered;
bool Held;
};
#endif
//ImPlotPoint getters manually wrapped use this
typedef void *(*ImPlotPoint_getter)(void* data, int idx, ImPlotPoint_c *point);
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef ImPlot::Formatter_Time_Data Formatter_Time_Data;
typedef ImPool<ImPlotAlignmentData> ImPool_ImPlotAlignmentData;
typedef ImPool<ImPlotItem> ImPool_ImPlotItem;
typedef ImPool<ImPlotPlot> ImPool_ImPlotPlot;
typedef ImPool<ImPlotSubplot> ImPool_ImPlotSubplot;
typedef ImVector<ImGuiColorMod> ImVector_ImGuiColorMod;
typedef ImVector<ImGuiStyleMod> ImVector_ImGuiStyleMod;
typedef ImVector<ImPlotAlignmentData> ImVector_ImPlotAlignmentData;
typedef ImVector<ImPlotAnnotation> ImVector_ImPlotAnnotation;
typedef ImVector<ImPlotColormap> ImVector_ImPlotColormap;
typedef ImVector<ImPlotRange> ImVector_ImPlotRange;
typedef ImVector<ImPlotTag> ImVector_ImPlotTag;
typedef ImVector<ImPlotTick> ImVector_ImPlotTick;
typedef ImVector<ImS16> ImVector_ImS16;
typedef ImVector<ImS32> ImVector_ImS32;
typedef ImVector<ImS64> ImVector_ImS64;
typedef ImVector<ImS8> ImVector_ImS8;
typedef ImVector<ImU16> ImVector_ImU16;
typedef ImVector<ImU32> ImVector_ImU32;
typedef ImVector<ImU64> ImVector_ImU64;
typedef ImVector<ImU8> ImVector_ImU8;
typedef ImVector<bool> ImVector_bool;
typedef ImVector<double> ImVector_double;
typedef ImVector<float> ImVector_float;
typedef ImVector<int> ImVector_int;
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
CIMGUI_API ImPlotSpec* ImPlotSpec_ImPlotSpec(void);
CIMGUI_API void ImPlotSpec_destroy(ImPlotSpec* self);
CIMGUI_API void ImPlotSpec_SetProp_Float(ImPlotSpec* self,ImPlotProp prop,float v);
CIMGUI_API void ImPlotSpec_SetProp_double(ImPlotSpec* self,ImPlotProp prop,double v);
CIMGUI_API void ImPlotSpec_SetProp_S8(ImPlotSpec* self,ImPlotProp prop,ImS8 v);
CIMGUI_API void ImPlotSpec_SetProp_U8(ImPlotSpec* self,ImPlotProp prop,ImU8 v);
CIMGUI_API void ImPlotSpec_SetProp_S16(ImPlotSpec* self,ImPlotProp prop,ImS16 v);
CIMGUI_API void ImPlotSpec_SetProp_U16(ImPlotSpec* self,ImPlotProp prop,ImU16 v);
CIMGUI_API void ImPlotSpec_SetProp_S32(ImPlotSpec* self,ImPlotProp prop,ImS32 v);
CIMGUI_API void ImPlotSpec_SetProp_U32(ImPlotSpec* self,ImPlotProp prop,ImU32 v);
CIMGUI_API void ImPlotSpec_SetProp_S64(ImPlotSpec* self,ImPlotProp prop,ImS64 v);
CIMGUI_API void ImPlotSpec_SetProp_U64(ImPlotSpec* self,ImPlotProp prop,ImU64 v);
CIMGUI_API void ImPlotSpec_SetProp_U32Ptr(ImPlotSpec* self,ImPlotProp prop,ImU32* v);
CIMGUI_API void ImPlotSpec_SetProp_FloatPtr(ImPlotSpec* self,ImPlotProp prop,float* v);
CIMGUI_API void ImPlotSpec_SetProp_Vec4(ImPlotSpec* self,ImPlotProp prop,const ImVec4_c v);
CIMGUI_API ImPlotPoint* ImPlotPoint_ImPlotPoint_Nil(void);
CIMGUI_API void ImPlotPoint_destroy(ImPlotPoint* self);
CIMGUI_API ImPlotPoint* ImPlotPoint_ImPlotPoint_double(double _x,double _y);
CIMGUI_API ImPlotPoint* ImPlotPoint_ImPlotPoint_Vec2(const ImVec2_c p);
CIMGUI_API ImPlotRange* ImPlotRange_ImPlotRange_Nil(void);
CIMGUI_API void ImPlotRange_destroy(ImPlotRange* self);
CIMGUI_API ImPlotRange* ImPlotRange_ImPlotRange_double(double _min,double _max);
CIMGUI_API bool ImPlotRange_Contains(ImPlotRange* self,double value);
CIMGUI_API double ImPlotRange_Size(ImPlotRange* self);
CIMGUI_API double ImPlotRange_Clamp(ImPlotRange* self,double value);
CIMGUI_API ImPlotRect* ImPlotRect_ImPlotRect_Nil(void);
CIMGUI_API void ImPlotRect_destroy(ImPlotRect* self);
CIMGUI_API ImPlotRect* ImPlotRect_ImPlotRect_double(double x_min,double x_max,double y_min,double y_max);
CIMGUI_API bool ImPlotRect_Contains_PlotPoint(ImPlotRect* self,const ImPlotPoint_c p);
CIMGUI_API bool ImPlotRect_Contains_double(ImPlotRect* self,double x,double y);