-
Notifications
You must be signed in to change notification settings - Fork 0
/
implot.nim
1436 lines (1413 loc) · 137 KB
/
implot.nim
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
# Modified for ImPlot by dinau,2023
# Written by Leonardo Mariscal <[email protected]>, 2019
## ImGUI Bindings
## ====
## WARNING: This is a generated file. Do not edit
## Any edits will be overwritten by the generator.
##
## The aim is to achieve as much compatibility with C as possible.
## Optional helper functions have been created as a submodule
## ``imgui/imgui_helpers`` to better bind this library to Nim.
##
## You can check the original documentation `here <https://github.com/ocornut/imgui/blob/master/imgui.cpp>`_.
##
## Source language of ImGui is C++, since Nim is able to compile both to C
## and C++ you can select which compile target you wish to use. Note that to use
## the C backend you must supply a `cimgui <https://github.com/cimgui/cimgui>`_
## dynamic library file.
##
## HACK: If you are targeting Windows, be sure to compile the cimgui dll with
## visual studio and not with mingw.
import strutils
import imgui
## Tentative workaround [start]
type
Imguidockrequest* = distinct object
ImGuiDockNodeSettings* = distinct object
const_cstringPtr* {.pure, inheritable, bycopy.} = object
Size*: cint
Capacity*: cint
Data*: ptr ptr cschar
tm {.pure, inheritable, bycopy.} = object
tmsec*: cint
tmmin*: cint
tmhour*: cint
tmmday*: cint
tmmon*: cint
tmyear*: cint
tmwday*: cint
tmyday*: cint
tmisdst*: cint
cfloat64* = cdouble # NoReplace
double* = cdouble
Ims32* = cint
const
nullptr* = nil
IMPLOT_AUTO* = -1 # from <implot.h>
#--------------------------------------
# Enum: logical calculation definitions
#--------------------------------------
# Assumed enum size is 32bit.
# or
template `or`*[E:enum](a,b:E):E =
cast[E](a.uint32 or b.uint32)
template `or`*[E:enum,I:SomeInteger](a:E,b:I):E =
cast[E](a.uint32 or b.uint32)
template `or`*[E:enum,I:SomeInteger](a:I,b:E):E =
cast[E](a.uint32 or b.uint32 )
# xor
template `xor`*[E:enum](a,b:E):E =
cast[E](a.uint32 xor b.uint32)
template `xor`*[E:enum,I:SomeInteger](a:E,b:I):E =
cast[E](a.uint32 xor b)
template `xor`*[E:enum,I:SomeInteger](a:I,b:E):E =
cast[E](a.uint32 xor b.uint32 )
# and
template `and`*[E:enum](a,b:E):E =
cast[E](a.uint32 and b.uint32)
template `and`*[E:enum,I:SomeInteger](a:E,b:I):E =
cast[E](a.uint32 and b.uint32 )
template `and`*[E:enum,I:SomeInteger](a:I,b:E):E =
cast[E](cast[uint32](a) and cast[uint32](b) )
#-----------
# templates
#-----------
template ptz*(val:untyped): untyped =
val[0].addr
template pu32*(v: untyped) : untyped = cast[ptr uint32](v.addr)
template pi32*(v: untyped) : untyped = cast[ptr int32](v.addr)
template cstringCast*(v: untyped) : untyped = cast[cstring](v)
## Tentative workaround [end]
proc currentSourceDir(): string {.compileTime.} =
result = currentSourcePath().replace("\\", "/")
result = result[0 ..< result.rfind("/")]
{.passC:"-DImDrawIdx=\"unsigned int\"".}
{.compile: "implot/private/cimplot/cimplot.cpp",
compile: "implot/private/cimplot/implot/implot.cpp",
compile: "implot/private/cimplot/implot/implot_demo.cpp",
compile: "implot/private/cimplot/implot/implot_items.cpp".}
{.passC:"-I" & currentSourceDir() & "/implot/private/cimplot".}
{.passC:"-I" & currentSourceDir() & "/implot/private/cimplot/implot".}
{.pragma: implot_header, header: currentSourceDir() & "/implot/private/ncimplot.h".}
when defined(windows):
{.passC:"-static".}
{.passL:"-static".}
# Enums
type
ImAxis* {.pure, size: int32.sizeof.} = enum
X1 = 0
X2 = 1
X3 = 2
Y1 = 3
Y2 = 4
Y3 = 5
COUNT = 6
ImPlotAxisFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoLabel = 1
NoGridLines = 2
NoTickMarks = 4
NoTickLabels = 8
NoDecorations = 15
NoInitialFit = 16
NoMenus = 32
NoSideSwitch = 64
NoHighlight = 128
Opposite = 256
AuxDefault = 258
Foreground = 512
Invert = 1024
AutoFit = 2048
RangeFit = 4096
PanStretch = 8192
LockMin = 16384
LockMax = 32768
Lock = 49152
ImPlotBarGroupsFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Horizontal = 1024
Stacked = 2048
ImPlotBarsFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Horizontal = 1024
ImPlotBin* {.pure, size: int32.sizeof.} = enum
Scott = -4
Rice = -3
Sturges = -2
Sqrt = -1
ImPlotCol* {.pure, size: int32.sizeof.} = enum
Line = 0
Fill = 1
MarkerOutline = 2
MarkerFill = 3
ErrorBar = 4
FrameBg = 5
PlotBg = 6
PlotBorder = 7
LegendBg = 8
LegendBorder = 9
LegendText = 10
TitleText = 11
InlayText = 12
AxisText = 13
AxisGrid = 14
AxisTick = 15
AxisBg = 16
AxisBgHovered = 17
AxisBgActive = 18
Selection = 19
Crosshairs = 20
COUNT = 21
ImPlotColormapScaleFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoLabel = 1
Opposite = 2
Invert = 4
ImPlotColormap* {.pure, size: int32.sizeof.} = enum
Deep = 0
Dark = 1
Pastel = 2
Paired = 3
Viridis = 4
Plasma = 5
Hot = 6
Cool = 7
Pink = 8
Jet = 9
Twilight = 10
RdBu = 11
BrBG = 12
PiYG = 13
Spectral = 14
Greys = 15
ImPlotCond* {.pure, size: int32.sizeof.} = enum
None = 0
Always = 1
Once = 2
ImPlotDateFmt* {.pure, size: int32.sizeof.} = enum
None = 0
DayMo = 1
DayMoYr = 2
MoYr = 3
Mo = 4
Yr = 5
ImPlotDigitalFlags* {.pure, size: int32.sizeof.} = enum
None = 0
ImPlotDragToolFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoCursors = 1
NoFit = 2
NoInputs = 4
Delayed = 8
ImPlotDummyFlags* {.pure, size: int32.sizeof.} = enum
None = 0
ImPlotErrorBarsFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Horizontal = 1024
ImPlotFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoTitle = 1
NoLegend = 2
NoMouseText = 4
NoInputs = 8
NoMenus = 16
NoBoxSelect = 32
CanvasOnly = 55
NoChild = 64
NoFrame = 128
Equal = 256
Crosshairs = 512
ImPlotHeatmapFlags* {.pure, size: int32.sizeof.} = enum
None = 0
ColMajor = 1024
ImPlotHistogramFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Horizontal = 1024
Cumulative = 2048
Density = 4096
NoOutliers = 8192
ColMajor = 16384
ImPlotImageFlags* {.pure, size: int32.sizeof.} = enum
None = 0
ImPlotInfLinesFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Horizontal = 1024
ImPlotItemFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoLegend = 1
NoFit = 2
ImPlotLegendFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoButtons = 1
NoHighlightItem = 2
NoHighlightAxis = 4
NoMenus = 8
Outside = 16
Horizontal = 32
Sort = 64
ImPlotLineFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Segments = 1024
Loop = 2048
SkipNaN = 4096
NoClip = 8192
Shaded = 16384
ImPlotLocation* {.pure, size: int32.sizeof.} = enum
Center = 0
North = 1
South = 2
West = 4
NorthWest = 5
SouthWest = 6
East = 8
NorthEast = 9
SouthEast = 10
ImPlotMarker* {.pure, size: int32.sizeof.} = enum
None = -1
Circle = 0
Square = 1
Diamond = 2
Up = 3
Down = 4
Left = 5
Right = 6
Cross = 7
Plus = 8
Asterisk = 9
COUNT = 10
ImPlotMouseTextFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoAuxAxes = 1
NoFormat = 2
ShowAlways = 4
ImPlotPieChartFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Normalize = 1024
ImPlotScale* {.pure, size: int32.sizeof.} = enum
Linear = 0
Time = 1
Log10 = 2
SymLog = 3
ImPlotScatterFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoClip = 1024
ImPlotShadedFlags* {.pure, size: int32.sizeof.} = enum
None = 0
ImPlotStairsFlags* {.pure, size: int32.sizeof.} = enum
None = 0
PreStep = 1024
Shaded = 2048
ImPlotStemsFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Horizontal = 1024
ImPlotStyleVar* {.pure, size: int32.sizeof.} = enum
LineWeight = 0
Marker = 1
MarkerSize = 2
MarkerWeight = 3
FillAlpha = 4
ErrorBarSize = 5
ErrorBarWeight = 6
DigitalBitHeight = 7
DigitalBitGap = 8
PlotBorderSize = 9
MinorAlpha = 10
MajorTickLen = 11
MinorTickLen = 12
MajorTickSize = 13
MinorTickSize = 14
MajorGridSize = 15
MinorGridSize = 16
PlotPadding = 17
LabelPadding = 18
LegendPadding = 19
LegendInnerPadding = 20
LegendSpacing = 21
MousePosPadding = 22
AnnotationPadding = 23
FitPadding = 24
PlotDefaultSize = 25
PlotMinSize = 26
COUNT = 27
ImPlotSubplotFlags* {.pure, size: int32.sizeof.} = enum
None = 0
NoTitle = 1
NoLegend = 2
NoMenus = 4
NoResize = 8
NoAlign = 16
ShareItems = 32
LinkRows = 64
LinkCols = 128
LinkAllX = 256
LinkAllY = 512
ColMajor = 1024
ImPlotTextFlags* {.pure, size: int32.sizeof.} = enum
None = 0
Vertical = 1024
ImPlotTimeFmt* {.pure, size: int32.sizeof.} = enum
None = 0
Us = 1
SUs = 2
SMs = 3
S = 4
MinSMs = 5
HrMinSMs = 6
HrMinS = 7
HrMin = 8
Hr = 9
ImPlotTimeUnit* {.pure, size: int32.sizeof.} = enum
Us = 0
Ms = 1
S = 2
Min = 3
Hr = 4
Day = 5
Mo = 6
Yr = 7
COUNT = 8
# TypeDefs
type
ImPlotFormatter* = proc(value: cdouble, buff: cstring, size: int, user_data: pointer): int {.cdecl, varargs.}
ImPlotGetter* = proc(idx: int, user_data: pointer): ImPlotPoint {.cdecl, varargs.}
ImPlotLocator* = proc(ticker: ImPlotTicker, Range: ImPlotRange, pixels: float32, vertical: bool, formatter: ImPlotFormatter, formatter_data: pointer): void {.cdecl, varargs.}
ImPlotTransform* = proc(value: cdouble, user_data: pointer): cdouble {.cdecl, varargs.}
Formatter_Time_Data* {.importc: "Formatter_Time_Data", implot_header.} = object
time* {.importc: "Time".}: ImPlotTime
spec* {.importc: "Spec".}: ImPlotDateTimeSpec
userFormatter* {.importc: "UserFormatter".}: ImPlotFormatter
userFormatterData* {.importc: "UserFormatterData".}: pointer
ImPlotAlignmentData* {.importc: "ImPlotAlignmentData", implot_header.} = object
vertical* {.importc: "Vertical".}: bool
padA* {.importc: "PadA".}: float32
padB* {.importc: "PadB".}: float32
padAMax* {.importc: "PadAMax".}: float32
padBMax* {.importc: "PadBMax".}: float32
ImPlotAnnotation* {.importc: "ImPlotAnnotation", implot_header.} = object
pos* {.importc: "Pos".}: ImVec2
offset* {.importc: "Offset".}: ImVec2
colorBg* {.importc: "ColorBg".}: uint32
colorFg* {.importc: "ColorFg".}: uint32
textOffset* {.importc: "TextOffset".}: int
clamp* {.importc: "Clamp".}: bool
ImPlotAnnotationCollection* {.importc: "ImPlotAnnotationCollection", implot_header.} = object
annotations* {.importc: "Annotations".}: ImVector[ImPlotAnnotation]
textBuffer* {.importc: "TextBuffer".}: ImGuiTextBuffer
size* {.importc: "Size".}: int
ImPlotAxis* {.importc: "ImPlotAxis", implot_header.} = object
id* {.importc: "ID".}: ImGuiID
flags* {.importc: "Flags".}: ImPlotAxisFlags
previousFlags* {.importc: "PreviousFlags".}: ImPlotAxisFlags
Range* {.importc: "Range".}: ImPlotRange
rangeCond* {.importc: "RangeCond".}: ImPlotCond
scale* {.importc: "Scale".}: ImPlotScale
fitExtents* {.importc: "FitExtents".}: ImPlotRange
orthoAxis* {.importc: "OrthoAxis".}: ptr ImPlotAxis
constraintRange* {.importc: "ConstraintRange".}: ImPlotRange
constraintZoom* {.importc: "ConstraintZoom".}: ImPlotRange
ticker* {.importc: "Ticker".}: ImPlotTicker
formatter* {.importc: "Formatter".}: ImPlotFormatter
formatterData* {.importc: "FormatterData".}: pointer
formatSpec* {.importc: "FormatSpec".}: array[16, int8]
locator* {.importc: "Locator".}: ImPlotLocator
linkedMin* {.importc: "LinkedMin".}: ptr cdouble
linkedMax* {.importc: "LinkedMax".}: ptr cdouble
pickerLevel* {.importc: "PickerLevel".}: int
pickerTimeMin* {.importc: "PickerTimeMin".}: ImPlotTime
pickerTimeMax* {.importc: "PickerTimeMax".}: ImPlotTime
transformForward* {.importc: "TransformForward".}: ImPlotTransform
transformInverse* {.importc: "TransformInverse".}: ImPlotTransform
transformData* {.importc: "TransformData".}: pointer
pixelMin* {.importc: "PixelMin".}: float32
pixelMax* {.importc: "PixelMax".}: float32
scaleMin* {.importc: "ScaleMin".}: cdouble
scaleMax* {.importc: "ScaleMax".}: cdouble
scaleToPixel* {.importc: "ScaleToPixel".}: cdouble
datum1* {.importc: "Datum1".}: float32
datum2* {.importc: "Datum2".}: float32
hoverRect* {.importc: "HoverRect".}: ImRect
labelOffset* {.importc: "LabelOffset".}: int
colorMaj* {.importc: "ColorMaj".}: uint32
colorMin* {.importc: "ColorMin".}: uint32
colorTick* {.importc: "ColorTick".}: uint32
colorTxt* {.importc: "ColorTxt".}: uint32
colorBg* {.importc: "ColorBg".}: uint32
colorHov* {.importc: "ColorHov".}: uint32
colorAct* {.importc: "ColorAct".}: uint32
colorHiLi* {.importc: "ColorHiLi".}: uint32
enabled* {.importc: "Enabled".}: bool
vertical* {.importc: "Vertical".}: bool
fitThisFrame* {.importc: "FitThisFrame".}: bool
hasRange* {.importc: "HasRange".}: bool
hasFormatSpec* {.importc: "HasFormatSpec".}: bool
showDefaultTicks* {.importc: "ShowDefaultTicks".}: bool
hovered* {.importc: "Hovered".}: bool
held* {.importc: "Held".}: bool
ImPlotColormapData* {.importc: "ImPlotColormapData", implot_header.} = object
keys* {.importc: "Keys".}: ImVector[uint32]
keyCounts* {.importc: "KeyCounts".}: ImVector[int]
keyOffsets* {.importc: "KeyOffsets".}: ImVector[int]
tables* {.importc: "Tables".}: ImVector[uint32]
tableSizes* {.importc: "TableSizes".}: ImVector[int]
tableOffsets* {.importc: "TableOffsets".}: ImVector[int]
text* {.importc: "Text".}: ImGuiTextBuffer
textOffsets* {.importc: "TextOffsets".}: ImVector[int]
quals* {.importc: "Quals".}: ImVector[bool]
map* {.importc: "Map".}: ImGuiStorage
count* {.importc: "Count".}: int
ImPlotContext* {.importc: "ImPlotContext", implot_header.} = object
plots* {.importc: "Plots".}: ImVector[ImPlotPlot]
subplots* {.importc: "Subplots".}: ImVector[ImPlotSubplot]
currentPlot* {.importc: "CurrentPlot".}: ptr ImPlotPlot
currentSubplot* {.importc: "CurrentSubplot".}: ptr ImPlotSubplot
currentItems* {.importc: "CurrentItems".}: ptr ImPlotItemGroup
currentItem* {.importc: "CurrentItem".}: ptr ImPlotItem
previousItem* {.importc: "PreviousItem".}: ptr ImPlotItem
cTicker* {.importc: "CTicker".}: ImPlotTicker
annotations* {.importc: "Annotations".}: ImPlotAnnotationCollection
tags* {.importc: "Tags".}: ImPlotTagCollection
childWindowMade* {.importc: "ChildWindowMade".}: bool
style* {.importc: "Style".}: ImPlotStyle
colorModifiers* {.importc: "ColorModifiers".}: ImVector[ImGuiColorMod]
styleModifiers* {.importc: "StyleModifiers".}: ImVector[ImGuiStyleMod]
colormapData* {.importc: "ColormapData".}: ImPlotColormapData
colormapModifiers* {.importc: "ColormapModifiers".}: ImVector[ImPlotColormap]
tm* {.importc: "Tm".}: tm
tempDouble1* {.importc: "TempDouble1".}: ImVector[cdouble]
tempDouble2* {.importc: "TempDouble2".}: ImVector[cdouble]
tempInt1* {.importc: "TempInt1".}: ImVector[int]
digitalPlotItemCnt* {.importc: "DigitalPlotItemCnt".}: int
digitalPlotOffset* {.importc: "DigitalPlotOffset".}: int
nextPlotData* {.importc: "NextPlotData".}: ImPlotNextPlotData
nextItemData* {.importc: "NextItemData".}: ImPlotNextItemData
inputMap* {.importc: "InputMap".}: ImPlotInputMap
openContextThisFrame* {.importc: "OpenContextThisFrame".}: bool
mousePosStringBuilder* {.importc: "MousePosStringBuilder".}: ImGuiTextBuffer
sortItems* {.importc: "SortItems".}: ptr ImPlotItemGroup
alignmentData* {.importc: "AlignmentData".}: ImVector[ImPlotAlignmentData]
currentAlignmentH* {.importc: "CurrentAlignmentH".}: ptr ImPlotAlignmentData
currentAlignmentV* {.importc: "CurrentAlignmentV".}: ptr ImPlotAlignmentData
ImPlotDateTimeSpec* {.importc: "ImPlotDateTimeSpec", implot_header.} = object
date* {.importc: "Date".}: ImPlotDateFmt
time* {.importc: "Time".}: ImPlotTimeFmt
useISO8601* {.importc: "UseISO8601".}: bool
use24HourClock* {.importc: "Use24HourClock".}: bool
ImPlotInputMap* {.importc: "ImPlotInputMap", implot_header.} = object
pan* {.importc: "Pan".}: ImGuiMouseButton
panMod* {.importc: "PanMod".}: int
fit* {.importc: "Fit".}: ImGuiMouseButton
select* {.importc: "Select".}: ImGuiMouseButton
selectCancel* {.importc: "SelectCancel".}: ImGuiMouseButton
selectMod* {.importc: "SelectMod".}: int
selectHorzMod* {.importc: "SelectHorzMod".}: int
selectVertMod* {.importc: "SelectVertMod".}: int
menu* {.importc: "Menu".}: ImGuiMouseButton
overrideMod* {.importc: "OverrideMod".}: int
zoomMod* {.importc: "ZoomMod".}: int
zoomRate* {.importc: "ZoomRate".}: float32
ImPlotItem* {.importc: "ImPlotItem", implot_header.} = object
id* {.importc: "ID".}: ImGuiID
color* {.importc: "Color".}: uint32
legendHoverRect* {.importc: "LegendHoverRect".}: ImRect
nameOffset* {.importc: "NameOffset".}: int
show* {.importc: "Show".}: bool
legendHovered* {.importc: "LegendHovered".}: bool
seenThisFrame* {.importc: "SeenThisFrame".}: bool
ImPlotItemGroup* {.importc: "ImPlotItemGroup", implot_header.} = object
id* {.importc: "ID".}: ImGuiID
legend* {.importc: "Legend".}: ImPlotLegend
itemPool* {.importc: "ItemPool".}: ImVector[ImPlotItem]
colormapIdx* {.importc: "ColormapIdx".}: int
ImPlotLegend* {.importc: "ImPlotLegend", implot_header.} = object
flags* {.importc: "Flags".}: ImPlotLegendFlags
previousFlags* {.importc: "PreviousFlags".}: ImPlotLegendFlags
location* {.importc: "Location".}: ImPlotLocation
previousLocation* {.importc: "PreviousLocation".}: ImPlotLocation
indices* {.importc: "Indices".}: ImVector[int]
labels* {.importc: "Labels".}: ImGuiTextBuffer
rect* {.importc: "Rect".}: ImRect
hovered* {.importc: "Hovered".}: bool
held* {.importc: "Held".}: bool
canGoInside* {.importc: "CanGoInside".}: bool
ImPlotNextItemData* {.importc: "ImPlotNextItemData", implot_header.} = object
colors* {.importc: "Colors".}: array[5, ImVec4]
lineWeight* {.importc: "LineWeight".}: float32
marker* {.importc: "Marker".}: ImPlotMarker
markerSize* {.importc: "MarkerSize".}: float32
markerWeight* {.importc: "MarkerWeight".}: float32
fillAlpha* {.importc: "FillAlpha".}: float32
errorBarSize* {.importc: "ErrorBarSize".}: float32
errorBarWeight* {.importc: "ErrorBarWeight".}: float32
digitalBitHeight* {.importc: "DigitalBitHeight".}: float32
digitalBitGap* {.importc: "DigitalBitGap".}: float32
renderLine* {.importc: "RenderLine".}: bool
renderFill* {.importc: "RenderFill".}: bool
renderMarkerLine* {.importc: "RenderMarkerLine".}: bool
renderMarkerFill* {.importc: "RenderMarkerFill".}: bool
hasHidden* {.importc: "HasHidden".}: bool
hidden* {.importc: "Hidden".}: bool
hiddenCond* {.importc: "HiddenCond".}: ImPlotCond
ImPlotNextPlotData* {.importc: "ImPlotNextPlotData", implot_header.} = object
rangeCond* {.importc: "RangeCond".}: array[6, ImPlotCond]
Range* {.importc: "Range".}: array[6, ImPlotRange]
hasRange* {.importc: "HasRange".}: array[6, bool]
fit* {.importc: "Fit".}: array[6, bool]
linkedMin* {.importc: "LinkedMin".}: array[6, ptr cdouble]
linkedMax* {.importc: "LinkedMax".}: array[6, ptr cdouble]
ImPlotPlot* {.importc: "ImPlotPlot", implot_header.} = object
id* {.importc: "ID".}: ImGuiID
flags* {.importc: "Flags".}: ImPlotFlags
previousFlags* {.importc: "PreviousFlags".}: ImPlotFlags
mouseTextLocation* {.importc: "MouseTextLocation".}: ImPlotLocation
mouseTextFlags* {.importc: "MouseTextFlags".}: ImPlotMouseTextFlags
axes* {.importc: "Axes".}: array[6, ImPlotAxis]
textBuffer* {.importc: "TextBuffer".}: ImGuiTextBuffer
items* {.importc: "Items".}: ImPlotItemGroup
currentX* {.importc: "CurrentX".}: ImAxis
currentY* {.importc: "CurrentY".}: ImAxis
frameRect* {.importc: "FrameRect".}: ImRect
canvasRect* {.importc: "CanvasRect".}: ImRect
plotRect* {.importc: "PlotRect".}: ImRect
axesRect* {.importc: "AxesRect".}: ImRect
selectRect* {.importc: "SelectRect".}: ImRect
selectStart* {.importc: "SelectStart".}: ImVec2
titleOffset* {.importc: "TitleOffset".}: int
justCreated* {.importc: "JustCreated".}: bool
initialized* {.importc: "Initialized".}: bool
setupLocked* {.importc: "SetupLocked".}: bool
fitThisFrame* {.importc: "FitThisFrame".}: bool
hovered* {.importc: "Hovered".}: bool
held* {.importc: "Held".}: bool
selecting* {.importc: "Selecting".}: bool
selected* {.importc: "Selected".}: bool
contextLocked* {.importc: "ContextLocked".}: bool
ImPlotPoint* {.importc: "ImPlotPoint", implot_header.} = object
x* {.importc: "x".}: cdouble
y* {.importc: "y".}: cdouble
ImPlotPointError* {.importc: "ImPlotPointError", implot_header.} = object
x* {.importc: "X".}: cdouble
y* {.importc: "Y".}: cdouble
neg* {.importc: "Neg".}: cdouble
pos* {.importc: "Pos".}: cdouble
ImPlotRange* {.importc: "ImPlotRange", implot_header.} = object
min* {.importc: "Min".}: cdouble
max* {.importc: "Max".}: cdouble
ImPlotRect* {.importc: "ImPlotRect", implot_header.} = object
x* {.importc: "X".}: ImPlotRange
y* {.importc: "Y".}: ImPlotRange
ImPlotStyle* {.importc: "ImPlotStyle", implot_header.} = object
lineWeight* {.importc: "LineWeight".}: float32
marker* {.importc: "Marker".}: int
markerSize* {.importc: "MarkerSize".}: float32
markerWeight* {.importc: "MarkerWeight".}: float32
fillAlpha* {.importc: "FillAlpha".}: float32
errorBarSize* {.importc: "ErrorBarSize".}: float32
errorBarWeight* {.importc: "ErrorBarWeight".}: float32
digitalBitHeight* {.importc: "DigitalBitHeight".}: float32
digitalBitGap* {.importc: "DigitalBitGap".}: float32
plotBorderSize* {.importc: "PlotBorderSize".}: float32
minorAlpha* {.importc: "MinorAlpha".}: float32
majorTickLen* {.importc: "MajorTickLen".}: ImVec2
minorTickLen* {.importc: "MinorTickLen".}: ImVec2
majorTickSize* {.importc: "MajorTickSize".}: ImVec2
minorTickSize* {.importc: "MinorTickSize".}: ImVec2
majorGridSize* {.importc: "MajorGridSize".}: ImVec2
minorGridSize* {.importc: "MinorGridSize".}: ImVec2
plotPadding* {.importc: "PlotPadding".}: ImVec2
labelPadding* {.importc: "LabelPadding".}: ImVec2
legendPadding* {.importc: "LegendPadding".}: ImVec2
legendInnerPadding* {.importc: "LegendInnerPadding".}: ImVec2
legendSpacing* {.importc: "LegendSpacing".}: ImVec2
mousePosPadding* {.importc: "MousePosPadding".}: ImVec2
annotationPadding* {.importc: "AnnotationPadding".}: ImVec2
fitPadding* {.importc: "FitPadding".}: ImVec2
plotDefaultSize* {.importc: "PlotDefaultSize".}: ImVec2
plotMinSize* {.importc: "PlotMinSize".}: ImVec2
colors* {.importc: "Colors".}: array[21, ImVec4]
colormap* {.importc: "Colormap".}: ImPlotColormap
useLocalTime* {.importc: "UseLocalTime".}: bool
useISO8601* {.importc: "UseISO8601".}: bool
use24HourClock* {.importc: "Use24HourClock".}: bool
ImPlotSubplot* {.importc: "ImPlotSubplot", implot_header.} = object
id* {.importc: "ID".}: ImGuiID
flags* {.importc: "Flags".}: ImPlotSubplotFlags
previousFlags* {.importc: "PreviousFlags".}: ImPlotSubplotFlags
items* {.importc: "Items".}: ImPlotItemGroup
rows* {.importc: "Rows".}: int
cols* {.importc: "Cols".}: int
currentIdx* {.importc: "CurrentIdx".}: int
frameRect* {.importc: "FrameRect".}: ImRect
gridRect* {.importc: "GridRect".}: ImRect
cellSize* {.importc: "CellSize".}: ImVec2
rowAlignmentData* {.importc: "RowAlignmentData".}: ImVector[ImPlotAlignmentData]
colAlignmentData* {.importc: "ColAlignmentData".}: ImVector[ImPlotAlignmentData]
rowRatios* {.importc: "RowRatios".}: ImVector[float32]
colRatios* {.importc: "ColRatios".}: ImVector[float32]
rowLinkData* {.importc: "RowLinkData".}: ImVector[ImPlotRange]
colLinkData* {.importc: "ColLinkData".}: ImVector[ImPlotRange]
tempSizes* {.importc: "TempSizes".}: array[2, float32]
frameHovered* {.importc: "FrameHovered".}: bool
hasTitle* {.importc: "HasTitle".}: bool
ImPlotTag* {.importc: "ImPlotTag", implot_header.} = object
axis* {.importc: "Axis".}: ImAxis
value* {.importc: "Value".}: cdouble
colorBg* {.importc: "ColorBg".}: uint32
colorFg* {.importc: "ColorFg".}: uint32
textOffset* {.importc: "TextOffset".}: int
ImPlotTagCollection* {.importc: "ImPlotTagCollection", implot_header.} = object
tags* {.importc: "Tags".}: ImVector[ImPlotTag]
textBuffer* {.importc: "TextBuffer".}: ImGuiTextBuffer
size* {.importc: "Size".}: int
ImPlotTick* {.importc: "ImPlotTick", implot_header.} = object
plotPos* {.importc: "PlotPos".}: cdouble
pixelPos* {.importc: "PixelPos".}: float32
labelSize* {.importc: "LabelSize".}: ImVec2
textOffset* {.importc: "TextOffset".}: int
major* {.importc: "Major".}: bool
showLabel* {.importc: "ShowLabel".}: bool
level* {.importc: "Level".}: int
idx* {.importc: "Idx".}: int
ImPlotTicker* {.importc: "ImPlotTicker", implot_header.} = object
ticks* {.importc: "Ticks".}: ImVector[ImPlotTick]
textBuffer* {.importc: "TextBuffer".}: ImGuiTextBuffer
maxSize* {.importc: "MaxSize".}: ImVec2
lateSize* {.importc: "LateSize".}: ImVec2
levels* {.importc: "Levels".}: int
ImPlotTime* {.importc: "ImPlotTime", implot_header.} = object
s* {.importc: "S".}: int32
us* {.importc: "Us".}: int
# Procs
when not defined(cpp) or defined(cimguiDLL):
{.push dynlib: imgui_dll, cdecl, discardable, header: currentSourceDir() & "/implot/private/ncimplot.h".}
else:
{.push nodecl, discardable, header: currentSourceDir() & "/implot/private/ncimplot.h".}
type
ImPlotPointGetter* = proc (data: pointer; idx: cint; point: ptr ImPlotPoint): pointer {.cdecl.}
proc begin*(self: ptr ImPlotAlignmentData): void {.importc: "ImPlotAlignmentData_Begin".}
proc `end`*(self: ptr ImPlotAlignmentData): void {.importc: "ImPlotAlignmentData_End".}
proc newImPlotAlignmentData*(): void {.importc: "ImPlotAlignmentData_ImPlotAlignmentData".}
proc reset*(self: ptr ImPlotAlignmentData): void {.importc: "ImPlotAlignmentData_Reset".}
proc update*(self: ptr ImPlotAlignmentData, pad_a: ptr float32, pad_b: ptr float32, delta_a: ptr float32, delta_b: ptr float32): void {.importc: "ImPlotAlignmentData_Update".}
proc destroy*(self: ptr ImPlotAlignmentData): void {.importc: "ImPlotAlignmentData_destroy".}
proc append*(self: ptr ImPlotAnnotationCollection, pos: ImVec2, off: ImVec2, bg: uint32, fg: uint32, clamp: bool, fmt: cstring): void {.importc: "ImPlotAnnotationCollection_Append", varargs.}
proc appendV*(self: ptr ImPlotAnnotationCollection, pos: ImVec2, off: ImVec2, bg: uint32, fg: uint32, clamp: bool, fmt: cstring): void {.importc: "ImPlotAnnotationCollection_AppendV", varargs.}
proc getText*(self: ptr ImPlotAnnotationCollection, idx: int): cstring {.importc: "ImPlotAnnotationCollection_GetText".}
proc newImPlotAnnotationCollection*(): void {.importc: "ImPlotAnnotationCollection_ImPlotAnnotationCollection".}
proc reset*(self: ptr ImPlotAnnotationCollection): void {.importc: "ImPlotAnnotationCollection_Reset".}
proc destroy*(self: ptr ImPlotAnnotationCollection): void {.importc: "ImPlotAnnotationCollection_destroy".}
proc newImPlotAnnotation*(): void {.importc: "ImPlotAnnotation_ImPlotAnnotation".}
proc destroy*(self: ptr ImPlotAnnotation): void {.importc: "ImPlotAnnotation_destroy".}
proc applyFit*(self: ptr ImPlotAxis, padding: float32): void {.importc: "ImPlotAxis_ApplyFit".}
proc canInitFit*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_CanInitFit".}
proc constrain*(self: ptr ImPlotAxis): void {.importc: "ImPlotAxis_Constrain".}
proc extendFit*(self: ptr ImPlotAxis, v: cdouble): void {.importc: "ImPlotAxis_ExtendFit".}
proc extendFitWith*(self: ptr ImPlotAxis, alt: ptr ImPlotAxis, v: cdouble, v_alt: cdouble): void {.importc: "ImPlotAxis_ExtendFitWith".}
proc getAspect*(self: ptr ImPlotAxis): cdouble {.importc: "ImPlotAxis_GetAspect".}
proc hasGridLines*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_HasGridLines".}
proc hasLabel*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_HasLabel".}
proc hasMenus*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_HasMenus".}
proc hasTickLabels*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_HasTickLabels".}
proc hasTickMarks*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_HasTickMarks".}
proc newImPlotAxis*(): void {.importc: "ImPlotAxis_ImPlotAxis".}
proc isAutoFitting*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsAutoFitting".}
proc isForeground*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsForeground".}
proc isInputLocked*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsInputLocked".}
proc isInputLockedMax*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsInputLockedMax".}
proc isInputLockedMin*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsInputLockedMin".}
proc isInverted*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsInverted".}
proc isLocked*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsLocked".}
proc isLockedMax*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsLockedMax".}
proc isLockedMin*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsLockedMin".}
proc isOpposite*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsOpposite".}
proc isPanLocked*(self: ptr ImPlotAxis, increasing: bool): bool {.importc: "ImPlotAxis_IsPanLocked".}
proc isRangeLocked*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_IsRangeLocked".}
proc pixelSize*(self: ptr ImPlotAxis): float32 {.importc: "ImPlotAxis_PixelSize".}
proc pixelsToPlot*(self: ptr ImPlotAxis, pix: float32): cdouble {.importc: "ImPlotAxis_PixelsToPlot".}
proc plotToPixels*(self: ptr ImPlotAxis, plt: cdouble): float32 {.importc: "ImPlotAxis_PlotToPixels".}
proc pullLinks*(self: ptr ImPlotAxis): void {.importc: "ImPlotAxis_PullLinks".}
proc pushLinks*(self: ptr ImPlotAxis): void {.importc: "ImPlotAxis_PushLinks".}
proc reset*(self: ptr ImPlotAxis): void {.importc: "ImPlotAxis_Reset".}
proc setAspect*(self: ptr ImPlotAxis, unit_per_pix: cdouble): void {.importc: "ImPlotAxis_SetAspect".}
proc setMax*(self: ptr ImPlotAxis, max: cdouble, force: bool = false): bool {.importc: "ImPlotAxis_SetMax".}
proc setMin*(self: ptr ImPlotAxis, min: cdouble, force: bool = false): bool {.importc: "ImPlotAxis_SetMin".}
proc setRange*(self: ptr ImPlotAxis, v1: cdouble, v2: cdouble): void {.importc: "ImPlotAxis_SetRange_double".}
proc setRange*(self: ptr ImPlotAxis, Range: ImPlotRange): void {.importc: "ImPlotAxis_SetRange_PlotRange".}
proc updateTransformCache*(self: ptr ImPlotAxis): void {.importc: "ImPlotAxis_UpdateTransformCache".}
proc willRender*(self: ptr ImPlotAxis): bool {.importc: "ImPlotAxis_WillRender".}
proc destroy*(self: ptr ImPlotAxis): void {.importc: "ImPlotAxis_destroy".}
proc append*(self: ptr ImPlotColormapData, name: cstring, keys: ptr uint32, count: int, qual: bool): int {.importc: "ImPlotColormapData_Append".}
proc getIndex*(self: ptr ImPlotColormapData, name: cstring): ImPlotColormap {.importc: "ImPlotColormapData_GetIndex".}
proc getKeyColor*(self: ptr ImPlotColormapData, cmap: ImPlotColormap, idx: int): uint32 {.importc: "ImPlotColormapData_GetKeyColor".}
proc getKeyCount*(self: ptr ImPlotColormapData, cmap: ImPlotColormap): int {.importc: "ImPlotColormapData_GetKeyCount".}
proc getKeys*(self: ptr ImPlotColormapData, cmap: ImPlotColormap): ptr uint32 {.importc: "ImPlotColormapData_GetKeys".}
proc getName*(self: ptr ImPlotColormapData, cmap: ImPlotColormap): cstring {.importc: "ImPlotColormapData_GetName".}
proc getTable*(self: ptr ImPlotColormapData, cmap: ImPlotColormap): ptr uint32 {.importc: "ImPlotColormapData_GetTable".}
proc getTableColor*(self: ptr ImPlotColormapData, cmap: ImPlotColormap, idx: int): uint32 {.importc: "ImPlotColormapData_GetTableColor".}
proc getTableSize*(self: ptr ImPlotColormapData, cmap: ImPlotColormap): int {.importc: "ImPlotColormapData_GetTableSize".}
proc newImPlotColormapData*(): void {.importc: "ImPlotColormapData_ImPlotColormapData".}
proc isQual*(self: ptr ImPlotColormapData, cmap: ImPlotColormap): bool {.importc: "ImPlotColormapData_IsQual".}
proc lerpTable*(self: ptr ImPlotColormapData, cmap: ImPlotColormap, t: float32): uint32 {.importc: "ImPlotColormapData_LerpTable".}
proc rebuildTables*(self: ptr ImPlotColormapData): void {.importc: "ImPlotColormapData_RebuildTables".}
proc setKeyColor*(self: ptr ImPlotColormapData, cmap: ImPlotColormap, idx: int, value: uint32): void {.importc: "ImPlotColormapData_SetKeyColor".}
proc AppendTable*(self: ptr ImPlotColormapData, cmap: ImPlotColormap): void {.importc: "ImPlotColormapData__AppendTable".}
proc destroy*(self: ptr ImPlotColormapData): void {.importc: "ImPlotColormapData_destroy".}
proc newImPlotDateTimeSpec*(): void {.importc: "ImPlotDateTimeSpec_ImPlotDateTimeSpec_Nil".}
proc newImPlotDateTimeSpec*(date_fmt: ImPlotDateFmt, time_fmt: ImPlotTimeFmt, use_24_hr_clk: bool = false, use_iso_8601: bool = false): void {.importc: "ImPlotDateTimeSpec_ImPlotDateTimeSpec_PlotDateFmt".}
proc destroy*(self: ptr ImPlotDateTimeSpec): void {.importc: "ImPlotDateTimeSpec_destroy".}
proc newImPlotInputMap*(): void {.importc: "ImPlotInputMap_ImPlotInputMap".}
proc destroy*(self: ptr ImPlotInputMap): void {.importc: "ImPlotInputMap_destroy".}
proc getItem*(self: ptr ImPlotItemGroup, id: ImGuiID): ptr ImPlotItem {.importc: "ImPlotItemGroup_GetItem_ID".}
proc getItem*(self: ptr ImPlotItemGroup, label_id: cstring): ptr ImPlotItem {.importc: "ImPlotItemGroup_GetItem_Str".}
proc getItemByIndex*(self: ptr ImPlotItemGroup, i: int): ptr ImPlotItem {.importc: "ImPlotItemGroup_GetItemByIndex".}
proc getItemCount*(self: ptr ImPlotItemGroup): int {.importc: "ImPlotItemGroup_GetItemCount".}
proc getItemID*(self: ptr ImPlotItemGroup, label_id: cstring): ImGuiID {.importc: "ImPlotItemGroup_GetItemID".}
proc getItemIndex*(self: ptr ImPlotItemGroup, item: ptr ImPlotItem): int {.importc: "ImPlotItemGroup_GetItemIndex".}
proc getLegendCount*(self: ptr ImPlotItemGroup): int {.importc: "ImPlotItemGroup_GetLegendCount".}
proc getLegendItem*(self: ptr ImPlotItemGroup, i: int): ptr ImPlotItem {.importc: "ImPlotItemGroup_GetLegendItem".}
proc getLegendLabel*(self: ptr ImPlotItemGroup, i: int): cstring {.importc: "ImPlotItemGroup_GetLegendLabel".}
proc getOrAddItem*(self: ptr ImPlotItemGroup, id: ImGuiID): ptr ImPlotItem {.importc: "ImPlotItemGroup_GetOrAddItem".}
proc newImPlotItemGroup*(): void {.importc: "ImPlotItemGroup_ImPlotItemGroup".}
proc reset*(self: ptr ImPlotItemGroup): void {.importc: "ImPlotItemGroup_Reset".}
proc destroy*(self: ptr ImPlotItemGroup): void {.importc: "ImPlotItemGroup_destroy".}
proc newImPlotItem*(): void {.importc: "ImPlotItem_ImPlotItem".}
proc destroy*(self: ptr ImPlotItem): void {.importc: "ImPlotItem_destroy".}
proc newImPlotLegend*(): void {.importc: "ImPlotLegend_ImPlotLegend".}
proc reset*(self: ptr ImPlotLegend): void {.importc: "ImPlotLegend_Reset".}
proc destroy*(self: ptr ImPlotLegend): void {.importc: "ImPlotLegend_destroy".}
proc newImPlotNextItemData*(): void {.importc: "ImPlotNextItemData_ImPlotNextItemData".}
proc reset*(self: ptr ImPlotNextItemData): void {.importc: "ImPlotNextItemData_Reset".}
proc destroy*(self: ptr ImPlotNextItemData): void {.importc: "ImPlotNextItemData_destroy".}
proc newImPlotNextPlotData*(): void {.importc: "ImPlotNextPlotData_ImPlotNextPlotData".}
proc reset*(self: ptr ImPlotNextPlotData): void {.importc: "ImPlotNextPlotData_Reset".}
proc destroy*(self: ptr ImPlotNextPlotData): void {.importc: "ImPlotNextPlotData_destroy".}
proc clearTextBuffer*(self: ptr ImPlotPlot): void {.importc: "ImPlotPlot_ClearTextBuffer".}
proc enabledAxesX*(self: ptr ImPlotPlot): int {.importc: "ImPlotPlot_EnabledAxesX".}
proc enabledAxesY*(self: ptr ImPlotPlot): int {.importc: "ImPlotPlot_EnabledAxesY".}
proc getAxisLabel*(self: ptr ImPlotPlot, axis: ImPlotAxis): cstring {.importc: "ImPlotPlot_GetAxisLabel".}
proc getTitle*(self: ptr ImPlotPlot): cstring {.importc: "ImPlotPlot_GetTitle".}
proc hasTitle*(self: ptr ImPlotPlot): bool {.importc: "ImPlotPlot_HasTitle".}
proc newImPlotPlot*(): void {.importc: "ImPlotPlot_ImPlotPlot".}
proc isInputLocked*(self: ptr ImPlotPlot): bool {.importc: "ImPlotPlot_IsInputLocked".}
proc setAxisLabel*(self: ptr ImPlotPlot, axis: ptr ImPlotAxis, label: cstring): void {.importc: "ImPlotPlot_SetAxisLabel".}
proc setTitle*(self: ptr ImPlotPlot, title: cstring): void {.importc: "ImPlotPlot_SetTitle".}
proc xAxis*(self: ptr ImPlotPlot, i: int): ptr ImPlotAxis {.importc: "ImPlotPlot_XAxis_Nil".}
proc yAxis*(self: ptr ImPlotPlot, i: int): ptr ImPlotAxis {.importc: "ImPlotPlot_YAxis_Nil".}
proc destroy*(self: ptr ImPlotPlot): void {.importc: "ImPlotPlot_destroy".}
proc newImPlotPointError*(x: cdouble, y: cdouble, neg: cdouble, pos: cdouble): void {.importc: "ImPlotPointError_ImPlotPointError".}
proc destroy*(self: ptr ImPlotPointError): void {.importc: "ImPlotPointError_destroy".}
proc newImPlotPoint*(): void {.importc: "ImPlotPoint_ImPlotPoint_Nil".}
proc newImPlotPoint*(x: cdouble, y: cdouble): void {.importc: "ImPlotPoint_ImPlotPoint_double".}
proc newImPlotPoint*(p: ImVec2): void {.importc: "ImPlotPoint_ImPlotPoint_Vec2".}
proc destroy*(self: ptr ImPlotPoint): void {.importc: "ImPlotPoint_destroy".}
proc clamp*(self: ptr ImPlotRange, value: cdouble): cdouble {.importc: "ImPlotRange_Clamp".}
proc contains*(self: ptr ImPlotRange, value: cdouble): bool {.importc: "ImPlotRange_Contains".}
proc newImPlotRange*(): void {.importc: "ImPlotRange_ImPlotRange_Nil".}
proc newImPlotRange*(min: cdouble, max: cdouble): void {.importc: "ImPlotRange_ImPlotRange_double".}
proc size*(self: ptr ImPlotRange): cdouble {.importc: "ImPlotRange_Size".}
proc destroy*(self: ptr ImPlotRange): void {.importc: "ImPlotRange_destroy".}
proc clampNonUDT*(pOut: ptr ImPlotPoint, self: ptr ImPlotRect, p: ImPlotPoint): void {.importc: "ImPlotRect_Clamp_PlotPoInt".}
proc clampNonUDT2*(pOut: ptr ImPlotPoint, self: ptr ImPlotRect, x: cdouble, y: cdouble): void {.importc: "ImPlotRect_Clamp_double".}
proc contains*(self: ptr ImPlotRect, p: ImPlotPoint): bool {.importc: "ImPlotRect_Contains_PlotPoInt".}
proc contains*(self: ptr ImPlotRect, x: cdouble, y: cdouble): bool {.importc: "ImPlotRect_Contains_double".}
proc newImPlotRect*(): void {.importc: "ImPlotRect_ImPlotRect_Nil".}
proc newImPlotRect*(x_min: cdouble, x_max: cdouble, y_min: cdouble, y_max: cdouble): void {.importc: "ImPlotRect_ImPlotRect_double".}
proc maxNonUDT*(pOut: ptr ImPlotPoint, self: ptr ImPlotRect): void {.importc: "ImPlotRect_Max".}
proc minNonUDT*(pOut: ptr ImPlotPoint, self: ptr ImPlotRect): void {.importc: "ImPlotRect_Min".}
proc sizeNonUDT*(pOut: ptr ImPlotPoint, self: ptr ImPlotRect): void {.importc: "ImPlotRect_Size".}
proc destroy*(self: ptr ImPlotRect): void {.importc: "ImPlotRect_destroy".}
proc newImPlotStyle*(): void {.importc: "ImPlotStyle_ImPlotStyle".}
proc destroy*(self: ptr ImPlotStyle): void {.importc: "ImPlotStyle_destroy".}
proc newImPlotSubplot*(): void {.importc: "ImPlotSubplot_ImPlotSubplot".}
proc destroy*(self: ptr ImPlotSubplot): void {.importc: "ImPlotSubplot_destroy".}
proc append*(self: ptr ImPlotTagCollection, axis: ImAxis, value: cdouble, bg: uint32, fg: uint32, fmt: cstring): void {.importc: "ImPlotTagCollection_Append", varargs.}
proc appendV*(self: ptr ImPlotTagCollection, axis: ImAxis, value: cdouble, bg: uint32, fg: uint32, fmt: cstring): void {.importc: "ImPlotTagCollection_AppendV", varargs.}
proc getText*(self: ptr ImPlotTagCollection, idx: int): cstring {.importc: "ImPlotTagCollection_GetText".}
proc newImPlotTagCollection*(): void {.importc: "ImPlotTagCollection_ImPlotTagCollection".}
proc reset*(self: ptr ImPlotTagCollection): void {.importc: "ImPlotTagCollection_Reset".}
proc destroy*(self: ptr ImPlotTagCollection): void {.importc: "ImPlotTagCollection_destroy".}
proc newImPlotTick*(value: cdouble, major: bool, level: int, show_label: bool): void {.importc: "ImPlotTick_ImPlotTick".}
proc destroy*(self: ptr ImPlotTick): void {.importc: "ImPlotTick_destroy".}
proc addTick*(self: ptr ImPlotTicker, value: cdouble, major: bool, level: int, show_label: bool, label: cstring): ptr ImPlotTick {.importc: "ImPlotTicker_AddTick_doubleStr".}
proc addTick*(self: ptr ImPlotTicker, value: cdouble, major: bool, level: int, show_label: bool, formatter: ImPlotFormatter, data: pointer): ptr ImPlotTick {.importc: "ImPlotTicker_AddTick_doublePlotFormatter".}
proc addTick*(self: ptr ImPlotTicker, tick: ImPlotTick): ptr ImPlotTick {.importc: "ImPlotTicker_AddTick_PlotTick".}
proc getText*(self: ptr ImPlotTicker, idx: int): cstring {.importc: "ImPlotTicker_GetText_Int".}
proc getText*(self: ptr ImPlotTicker, tick: ImPlotTick): cstring {.importc: "ImPlotTicker_GetText_PlotTick".}
proc newImPlotTicker*(): void {.importc: "ImPlotTicker_ImPlotTicker".}
proc overrideSizeLate*(self: ptr ImPlotTicker, size: ImVec2): void {.importc: "ImPlotTicker_OverrideSizeLate".}
proc reset*(self: ptr ImPlotTicker): void {.importc: "ImPlotTicker_Reset".}
proc tickCount*(self: ptr ImPlotTicker): int {.importc: "ImPlotTicker_TickCount".}
proc destroy*(self: ptr ImPlotTicker): void {.importc: "ImPlotTicker_destroy".}
proc fromDoubleNonUDT*(pOut: ptr ImPlotTime, t: cdouble): void {.importc: "ImPlotTime_FromDouble".}
proc newImPlotTime*(): void {.importc: "ImPlotTime_ImPlotTime_Nil".}
proc newImPlotTime*(s: int32, us: int = 0): void {.importc: "ImPlotTime_ImPlotTime_time_t".}
proc rollOver*(self: ptr ImPlotTime): void {.importc: "ImPlotTime_RollOver".}
proc toDouble*(self: ptr ImPlotTime): cdouble {.importc: "ImPlotTime_ToDouble".}
proc destroy*(self: ptr ImPlotTime): void {.importc: "ImPlotTime_destroy".}
proc ipAddColormap*(name: cstring, cols: ptr ImVec4, size: int, qual: bool = true): ImPlotColormap {.importc: "ImPlot_AddColormap_Vec4Ptr".}
proc ipAddColormap*(name: cstring, cols: ptr uint32, size: int, qual: bool = true): ImPlotColormap {.importc: "ImPlot_AddColormap_U32Ptr".}
proc ipAddTextCentered*(drawList: ptr ImDrawList, top_center: ImVec2, col: uint32, text_begin: cstring, text_end: cstring = nullptr): void {.importc: "ImPlot_AddTextCentered".}
proc ipAddTextVertical*(drawList: ptr ImDrawList, pos: ImVec2, col: uint32, text_begin: cstring, text_end: cstring = nullptr): void {.importc: "ImPlot_AddTextVertical".}
proc ipAddTimeNonUDT*(pOut: ptr ImPlotTime, t: ImPlotTime, unit: ImPlotTimeUnit, count: int): void {.importc: "ImPlot_AddTime".}
proc ipAllAxesInputLocked*(axes: ptr ImPlotAxis, count: int): bool {.importc: "ImPlot_AllAxesInputLocked".}
proc ipAnnotation*(x: cdouble, y: cdouble, col: ImVec4, pix_offset: ImVec2, clamp: bool, round: bool = false): void {.importc: "ImPlot_Annotation_Bool".}
proc ipAnnotation*(x: cdouble, y: cdouble, col: ImVec4, pix_offset: ImVec2, clamp: bool, fmt: cstring): void {.importc: "ImPlot_Annotation_Str", varargs.}
proc ipAnnotationV*(x: cdouble, y: cdouble, col: ImVec4, pix_offset: ImVec2, clamp: bool, fmt: cstring): void {.importc: "ImPlot_AnnotationV", varargs.}
proc ipAnyAxesHeld*(axes: ptr ImPlotAxis, count: int): bool {.importc: "ImPlot_AnyAxesHeld".}
proc ipAnyAxesHovered*(axes: ptr ImPlotAxis, count: int): bool {.importc: "ImPlot_AnyAxesHovered".}
proc ipAnyAxesInputLocked*(axes: ptr ImPlotAxis, count: int): bool {.importc: "ImPlot_AnyAxesInputLocked".}
proc ipBeginAlignedPlots*(group_id: cstring, vertical: bool = true): bool {.importc: "ImPlot_BeginAlignedPlots".}
proc ipBeginDragDropSourceAxis*(axis: ImAxis, flags: ImGuiDragDropFlags = 0.ImGuiDragDropFlags): bool {.importc: "ImPlot_BeginDragDropSourceAxis".}
proc ipBeginDragDropSourceItem*(label_id: cstring, flags: ImGuiDragDropFlags = 0.ImGuiDragDropFlags): bool {.importc: "ImPlot_BeginDragDropSourceItem".}
proc ipBeginDragDropSourcePlot*(flags: ImGuiDragDropFlags = 0.ImGuiDragDropFlags): bool {.importc: "ImPlot_BeginDragDropSourcePlot".}
proc ipBeginDragDropTargetAxis*(axis: ImAxis): bool {.importc: "ImPlot_BeginDragDropTargetAxis".}
proc ipBeginDragDropTargetLegend*(): bool {.importc: "ImPlot_BeginDragDropTargetLegend".}
proc ipBeginDragDropTargetPlot*(): bool {.importc: "ImPlot_BeginDragDropTargetPlot".}
proc ipBeginItem*(label_id: cstring, flags: ImPlotItemFlags = 0.ImPlotItemFlags, recolor_from: ImPlotCol = cast[ImPlotcol](-1)): bool {.importc: "ImPlot_BeginItem".}
proc ipBeginLegendPopup*(label_id: cstring, mouse_button: ImGuiMouseButton = 1.ImGuiMouseButton): bool {.importc: "ImPlot_BeginLegendPopup".}
proc ipBeginPlot*(title_id: cstring, size: ImVec2 = ImVec2(x: -1, y: 0), flags: ImPlotFlags = 0.ImPlotFlags): bool {.importc: "ImPlot_BeginPlot".}
proc ipBeginSubplots*(title_id: cstring, rows: int, cols: int, size: ImVec2, flags: ImPlotSubplotFlags = 0.ImPlotSubplotFlags, row_ratios: ptr float32 = nullptr, col_ratios: ptr float32 = nullptr): bool {.importc: "ImPlot_BeginSubplots".}
proc ipBustColorCache*(plot_title_id: cstring = nullptr): void {.importc: "ImPlot_BustColorCache".}
proc ipBustItemCache*(): void {.importc: "ImPlot_BustItemCache".}
proc ipBustPlotCache*(): void {.importc: "ImPlot_BustPlotCache".}
proc ipCalcHoverColor*(col: uint32): uint32 {.importc: "ImPlot_CalcHoverColor".}
proc ipCalcLegendSizeNonUDT*(pOut: ptr ImVec2, items: ptr ImPlotItemGroup, pad: ImVec2, spacing: ImVec2, vertical: bool): void {.importc: "ImPlot_CalcLegendSize".}
proc ipCalcTextColor*(bg: ImVec4): uint32 {.importc: "ImPlot_CalcTextColor_Vec4".}
proc ipCalcTextColor*(bg: uint32): uint32 {.importc: "ImPlot_CalcTextColor_U32".}
proc ipCalcTextSizeVerticalNonUDT*(pOut: ptr ImVec2, text: cstring): void {.importc: "ImPlot_CalcTextSizeVertical".}
proc ipCalculateBins*(values: ptr float32, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_FloatPtr".}
proc ipCalculateBins*(values: ptr cdouble, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_doublePtr".}
proc ipCalculateBins*(values: ptr int8, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_S8Ptr".}
proc ipCalculateBins*(values: ptr uint8, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_U8Ptr".}
proc ipCalculateBins*(values: ptr int16, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_S16Ptr".}
proc ipCalculateBins*(values: ptr uint16, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_U16Ptr".}
proc ipCalculateBins*(values: ptr int32, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_S32Ptr".}
proc ipCalculateBins*(values: ptr uint32, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_U32Ptr".}
proc ipCalculateBins*(values: ptr int64, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_S64Ptr".}
proc ipCalculateBins*(values: ptr uint64, count: int, meth: ImPlotBin, Range: ImPlotRange, bins_out: ptr int, width_out: ptr cdouble): void {.importc: "ImPlot_CalculateBins_U64Ptr".}
proc ipCancelPlotSelection*(): void {.importc: "ImPlot_CancelPlotSelection".}
proc ipCeilTimeNonUDT*(pOut: ptr ImPlotTime, t: ImPlotTime, unit: ImPlotTimeUnit): void {.importc: "ImPlot_CeilTime".}
proc ipClampLabelPosNonUDT*(pOut: ptr ImVec2, pos: ImVec2, size: ImVec2, min: ImVec2, max: ImVec2): void {.importc: "ImPlot_ClampLabelPos".}
proc ipColormapButton*(label: cstring, size: ImVec2 = ImVec2(x: 0, y: 0), cmap: ImPlotColormap = cast[ImPlotcolormap](-1)): bool {.importc: "ImPlot_ColormapButton".}
proc ipColormapIcon*(cmap: ImPlotColormap): void {.importc: "ImPlot_ColormapIcon".}
proc ipColormapScale*(label: cstring, scale_min: cdouble, scale_max: cdouble, size: ImVec2 = ImVec2(x: 0, y: 0), format: cstring = "%g", flags: ImPlotColormapScaleFlags = 0.ImPlotColormapScaleFlags, cmap: ImPlotColormap = cast[ImPlotcolormap](-1)): void {.importc: "ImPlot_ColormapScale".}
proc ipColormapSlider*(label: cstring, t: ptr float32, `out`: ptr ImVec4 = nullptr, format: cstring = "", cmap: ImPlotColormap = cast[ImPlotcolormap](-1)): bool {.importc: "ImPlot_ColormapSlider".}
proc ipCombineDateTimeNonUDT*(pOut: ptr ImPlotTime, date_part: ImPlotTime, time_part: ImPlotTime): void {.importc: "ImPlot_CombineDateTime".}
proc ipCreateContext*(): ptr ImPlotContext {.importc: "ImPlot_CreateContext".}
proc ipDestroyContext*(ctx: ptr ImPlotContext = nullptr): void {.importc: "ImPlot_DestroyContext".}
proc ipDragLineX*(id: int, x: ptr cdouble, col: ImVec4, thickness: float32 = 1, flags: ImPlotDragToolFlags = 0.ImPlotDragToolFlags): bool {.importc: "ImPlot_DragLineX".}
proc ipDragLineY*(id: int, y: ptr cdouble, col: ImVec4, thickness: float32 = 1, flags: ImPlotDragToolFlags = 0.ImPlotDragToolFlags): bool {.importc: "ImPlot_DragLineY".}
proc ipDragPoint*(id: int, x: ptr cdouble, y: ptr cdouble, col: ImVec4, size: float32 = 4, flags: ImPlotDragToolFlags = 0.ImPlotDragToolFlags): bool {.importc: "ImPlot_DragPoint".}
proc ipDragRect*(id: int, x1: ptr cdouble, y1: ptr cdouble, x2: ptr cdouble, y2: ptr cdouble, col: ImVec4, flags: ImPlotDragToolFlags = 0.ImPlotDragToolFlags): bool {.importc: "ImPlot_DragRect".}
proc ipEndAlignedPlots*(): void {.importc: "ImPlot_EndAlignedPlots".}
proc ipEndDragDropSource*(): void {.importc: "ImPlot_EndDragDropSource".}
proc ipEndDragDropTarget*(): void {.importc: "ImPlot_EndDragDropTarget".}
proc ipEndItem*(): void {.importc: "ImPlot_EndItem".}
proc ipEndLegendPopup*(): void {.importc: "ImPlot_EndLegendPopup".}
proc ipEndPlot*(): void {.importc: "ImPlot_EndPlot".}
proc ipEndSubplots*(): void {.importc: "ImPlot_EndSubplots".}
proc ipFillRange*(buffer: ptr ImVector[float32], n: int, vmin: float32, vmax: float32): void {.importc: "ImPlot_FillRange_Vector_Float_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[cdouble], n: int, vmin: cdouble, vmax: cdouble): void {.importc: "ImPlot_FillRange_Vector_double_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[int8], n: int, vmin: int8, vmax: int8): void {.importc: "ImPlot_FillRange_Vector_S8_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[uint8], n: int, vmin: uint8, vmax: uint8): void {.importc: "ImPlot_FillRange_Vector_U8_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[int16], n: int, vmin: int16, vmax: int16): void {.importc: "ImPlot_FillRange_Vector_S16_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[uint16], n: int, vmin: uint16, vmax: uint16): void {.importc: "ImPlot_FillRange_Vector_U16_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[int32], n: int, vmin: int32, vmax: int32): void {.importc: "ImPlot_FillRange_Vector_S32_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[uint32], n: int, vmin: uint32, vmax: uint32): void {.importc: "ImPlot_FillRange_Vector_U32_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[int64], n: int, vmin: int64, vmax: int64): void {.importc: "ImPlot_FillRange_Vector_S64_Ptr".}
proc ipFillRange*(buffer: ptr ImVector[uint64], n: int, vmin: uint64, vmax: uint64): void {.importc: "ImPlot_FillRange_Vector_U64_Ptr".}
proc ipFitPoint*(p: ImPlotPoint): void {.importc: "ImPlot_FitPoint".}
proc ipFitPointX*(x: cdouble): void {.importc: "ImPlot_FitPointX".}
proc ipFitPointY*(y: cdouble): void {.importc: "ImPlot_FitPointY".}
proc ipFitThisFrame*(): bool {.importc: "ImPlot_FitThisFrame".}
proc ipFloorTimeNonUDT*(pOut: ptr ImPlotTime, t: ImPlotTime, unit: ImPlotTimeUnit): void {.importc: "ImPlot_FloorTime".}
proc ipFormatDate*(t: ImPlotTime, buffer: cstring, size: int, fmt: ImPlotDateFmt, use_iso_8601: bool): int {.importc: "ImPlot_FormatDate".}
proc ipFormatDateTime*(t: ImPlotTime, buffer: cstring, size: int, fmt: ImPlotDateTimeSpec): int {.importc: "ImPlot_FormatDateTime".}
proc ipFormatTime*(t: ImPlotTime, buffer: cstring, size: int, fmt: ImPlotTimeFmt, use_24_hr_clk: bool): int {.importc: "ImPlot_FormatTime".}
proc ipFormatter_Default*(value: cdouble, buff: cstring, size: int, data: pointer): int {.importc: "ImPlot_Formatter_Default".}
proc ipFormatter_Logit*(value: cdouble, buff: cstring, size: int, noname1: pointer): int {.importc: "ImPlot_Formatter_Logit".}
proc ipFormatter_Time*(noname1: cdouble, buff: cstring, size: int, data: pointer): int {.importc: "ImPlot_Formatter_Time".}
proc ipGetAutoColorNonUDT*(pOut: ptr ImVec4, idx: ImPlotCol): void {.importc: "ImPlot_GetAutoColor".}
proc ipGetColormapColorNonUDT*(pOut: ptr ImVec4, idx: int, cmap: ImPlotColormap = cast[ImPlotcolormap](-1)): void {.importc: "ImPlot_GetColormapColor".}
proc ipGetColormapColorU32*(idx: int, cmap: ImPlotColormap): uint32 {.importc: "ImPlot_GetColormapColorU32".}
proc ipGetColormapCount*(): int {.importc: "ImPlot_GetColormapCount".}
proc ipGetColormapIndex*(name: cstring): ImPlotColormap {.importc: "ImPlot_GetColormapIndex".}
proc ipGetColormapName*(cmap: ImPlotColormap): cstring {.importc: "ImPlot_GetColormapName".}
proc ipGetColormapSize*(cmap: ImPlotColormap = cast[ImPlotcolormap](-1)): int {.importc: "ImPlot_GetColormapSize".}
proc ipGetCurrentContext*(): ptr ImPlotContext {.importc: "ImPlot_GetCurrentContext".}
proc ipGetCurrentItem*(): ptr ImPlotItem {.importc: "ImPlot_GetCurrentItem".}
proc ipGetCurrentPlot*(): ptr ImPlotPlot {.importc: "ImPlot_GetCurrentPlot".}
proc ipGetDaysInMonth*(year: int, month: int): int {.importc: "ImPlot_GetDaysInMonth".}
proc ipGetGmtTime*(t: ImPlotTime, ptm: ptr tm): ptr tm {.importc: "ImPlot_GetGmtTime".}
proc ipGetInputMap*(): ptr ImPlotInputMap {.importc: "ImPlot_GetInputMap".}
proc ipGetItem*(label_id: cstring): ptr ImPlotItem {.importc: "ImPlot_GetItem".}
proc ipGetItemData*(): ptr ImPlotNextItemData {.importc: "ImPlot_GetItemData".}
proc ipGetLastItemColorNonUDT*(pOut: ptr ImVec4): void {.importc: "ImPlot_GetLastItemColor".}
proc ipGetLocTime*(t: ImPlotTime, ptm: ptr tm): ptr tm {.importc: "ImPlot_GetLocTime".}
proc ipGetLocationPosNonUDT*(pOut: ptr ImVec2, outer_rect: ImRect, inner_size: ImVec2, location: ImPlotLocation, pad: ImVec2 = ImVec2(x: 0, y: 0)): void {.importc: "ImPlot_GetLocationPos".}
proc ipGetMarkerName*(idx: ImPlotMarker): cstring {.importc: "ImPlot_GetMarkerName".}
proc ipGetPlot*(title: cstring): ptr ImPlotPlot {.importc: "ImPlot_GetPlot".}
proc ipGetPlotDrawList*(): ptr ImDrawList {.importc: "ImPlot_GetPlotDrawList".}
proc ipGetPlotLimitsNonUDT*(pOut: ptr ImPlotRect, x_axis: ImAxis = cast[ImAxis](-1), y_axis: ImAxis = cast[ImAxis](-1)): void {.importc: "ImPlot_GetPlotLimits".}
proc ipGetPlotMousePosNonUDT*(pOut: ptr ImPlotPoint, x_axis: ImAxis = cast[ImAxis](-1), y_axis: ImAxis = cast[ImAxis](-1)): void {.importc: "ImPlot_GetPlotMousePos".}
proc ipGetPlotPosNonUDT*(pOut: ptr ImVec2): void {.importc: "ImPlot_GetPlotPos".}
proc ipGetPlotSelectionNonUDT*(pOut: ptr ImPlotRect, x_axis: ImAxis = cast[ImAxis](-1), y_axis: ImAxis = cast[ImAxis](-1)): void {.importc: "ImPlot_GetPlotSelection".}
proc ipGetPlotSizeNonUDT*(pOut: ptr ImVec2): void {.importc: "ImPlot_GetPlotSize".}
proc ipGetStyle*(): ptr ImPlotStyle {.importc: "ImPlot_GetStyle".}
proc ipGetStyleColorName*(idx: ImPlotCol): cstring {.importc: "ImPlot_GetStyleColorName".}
proc ipGetStyleColorU32*(idx: ImPlotCol): uint32 {.importc: "ImPlot_GetStyleColorU32".}
proc ipGetStyleColorVec4NonUDT*(pOut: ptr ImVec4, idx: ImPlotCol): void {.importc: "ImPlot_GetStyleColorVec4".}
proc ipGetYear*(t: ImPlotTime): int {.importc: "ImPlot_GetYear".}
proc ipHideNextItem*(hidden: bool = true, cond: ImPlotCond = ImPlotCond.Once): void {.importc: "ImPlot_HideNextItem".}
proc ipImAlmostEqual*(v1: cdouble, v2: cdouble, ulp: int = 2): bool {.importc: "ImPlot_ImAlmostEqual".}
proc ipImAlphaU32*(col: uint32, alpha: float32): uint32 {.importc: "ImPlot_ImAlphaU32".}
proc ipImAsinh*(x: float32): float32 {.importc: "ImPlot_ImAsinh_Float".}
proc ipImAsinh*(x: cdouble): cdouble {.importc: "ImPlot_ImAsinh_double".}
proc ipImConstrainInf*(val: cdouble): cdouble {.importc: "ImPlot_ImConstrainInf".}
proc ipImConstrainLog*(val: cdouble): cdouble {.importc: "ImPlot_ImConstrainLog".}
proc ipImConstrainNan*(val: cdouble): cdouble {.importc: "ImPlot_ImConstrainNan".}
proc ipImConstrainTime*(val: cdouble): cdouble {.importc: "ImPlot_ImConstrainTime".}
proc ipImLerpU32*(colors: ptr uint32, size: int, t: float32): uint32 {.importc: "ImPlot_ImLerpU32".}
proc ipImLog10*(x: float32): float32 {.importc: "ImPlot_ImLog10_Float".}
proc ipImLog10*(x: cdouble): cdouble {.importc: "ImPlot_ImLog10_double".}
proc ipImMaxArray*(values: ptr float32, count: int): float32 {.importc: "ImPlot_ImMaxArray_FloatPtr".}
proc ipImMaxArray*(values: ptr cdouble, count: int): cdouble {.importc: "ImPlot_ImMaxArray_doublePtr".}
proc ipImMaxArray*(values: ptr int8, count: int): int8 {.importc: "ImPlot_ImMaxArray_S8Ptr".}
proc ipImMaxArray*(values: ptr uint8, count: int): uint8 {.importc: "ImPlot_ImMaxArray_U8Ptr".}
proc ipImMaxArray*(values: ptr int16, count: int): int16 {.importc: "ImPlot_ImMaxArray_S16Ptr".}
proc ipImMaxArray*(values: ptr uint16, count: int): uint16 {.importc: "ImPlot_ImMaxArray_U16Ptr".}
proc ipImMaxArray*(values: ptr int32, count: int): int32 {.importc: "ImPlot_ImMaxArray_S32Ptr".}
proc ipImMaxArray*(values: ptr uint32, count: int): uint32 {.importc: "ImPlot_ImMaxArray_U32Ptr".}
proc ipImMaxArray*(values: ptr int64, count: int): int64 {.importc: "ImPlot_ImMaxArray_S64Ptr".}