This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
nuklear.nim
2458 lines (2293 loc) · 93.5 KB
/
nuklear.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
{.deadCodeElim: on.}
{.compile: "src/bind.c".}
{.experimental: "codeReordering".}
const
nk_false* = 0
nk_true* = 1
type
nk_char* = int8
nk_uchar* = uint8
nk_byte* = uint8
nk_short* = int16
nk_ushort* = uint16
nk_int* = int32
nk_uint* = uint32
nk_size* = uint
nk_ptr* = uint
nk_hash* = nk_uint
nk_flags* = nk_uint
nk_rune* = nk_uint
nk_color* {.bycopy.} = object
r*: nk_byte
g*: nk_byte
b*: nk_byte
a*: nk_byte
nk_colorf* {.bycopy.} = object
r*: cfloat
g*: cfloat
b*: cfloat
a*: cfloat
nk_vec2* {.bycopy.} = object
x*: cfloat
y*: cfloat
nk_vec2i* {.bycopy.} = object
x*: cshort
y*: cshort
nk_rect* {.bycopy.} = object
x*: cfloat
y*: cfloat
w*: cfloat
h*: cfloat
nk_recti* {.bycopy.} = object
x*: cshort
y*: cshort
w*: cshort
h*: cshort
nk_glyph* = array[4, char]
nk_handle* {.bycopy, union.} = object
`ptr`*: pointer
id*: int
nk_image* {.bycopy.} = object
handle*: nk_handle
w*: cushort
h*: cushort
region*: array[4, cushort]
nk_cursor* {.bycopy.} = object
img*: nk_image
size*: nk_vec2
offset*: nk_vec2
nk_scroll* {.bycopy.} = object
x*: nk_uint
y*: nk_uint
nk_heading* {.size: sizeof(cint).} = enum
NK_UP, NK_RIGHT, NK_DOWN, NK_LEFT
nk_button_behavior* {.size: sizeof(cint).} = enum
NK_BUTTON_DEFAULT, NK_BUTTON_REPEATER
nk_modify* {.size: sizeof(cint).} = enum
NK_FIXED = nk_false, NK_MODIFIABLE = nk_true
nk_orientation* {.size: sizeof(cint).} = enum
NK_VERTICAL, NK_HORIZONTAL
nk_collapse_states* {.size: sizeof(cint).} = enum
NK_MINIMIZED = nk_false, NK_MAXIMIZED = nk_true
nk_show_states* {.size: sizeof(cint).} = enum
NK_HIDDEN = nk_false, NK_SHOWN = nk_true
nk_chart_type* {.size: sizeof(cint).} = enum
NK_CHART_LINES, NK_CHART_COLUMN, NK_CHART_MAX
nk_chart_event* {.size: sizeof(cint).} = enum
NK_CHART_HOVERING = 0x01, NK_CHART_CLICKED = 0x02
nk_color_format* {.size: sizeof(cint).} = enum
NK_RGB, NK_RGBA
nk_popup_type* {.size: sizeof(cint).} = enum
NK_POPUP_STATIC, NK_POPUP_DYNAMIC
nk_layout_format* {.size: sizeof(cint).} = enum
NK_DYNAMIC, NK_STATIC
nk_tree_type* {.size: sizeof(cint).} = enum
NK_TREE_NODE, NK_TREE_TAB
nk_plugin_alloc* = proc (a1: nk_handle; old: pointer; a3: nk_size): pointer {.cdecl.}
nk_plugin_free* = proc (a1: nk_handle; old: pointer) {.cdecl.}
nk_plugin_filter* = proc (a1: ptr nk_text_edit; unicode: nk_rune): cint {.cdecl.}
nk_plugin_paste* = proc (a1: nk_handle; a2: ptr nk_text_edit) {.cdecl.}
nk_plugin_copy* = proc (a1: nk_handle; a2: cstring; len: cint) {.cdecl.}
nk_allocator* {.bycopy.} = object
userdata*: nk_handle
alloc*: nk_plugin_alloc
free*: nk_plugin_free
nk_symbol_type* {.size: sizeof(cint).} = enum
NK_SYMBOL_NONE, NK_SYMBOL_X, NK_SYMBOL_UNDERSCORE, NK_SYMBOL_CIRCLE_SOLID,
NK_SYMBOL_CIRCLE_OUTLINE, NK_SYMBOL_RECT_SOLID, NK_SYMBOL_RECT_OUTLINE,
NK_SYMBOL_TRIANGLE_UP, NK_SYMBOL_TRIANGLE_DOWN, NK_SYMBOL_TRIANGLE_LEFT,
NK_SYMBOL_TRIANGLE_RIGHT, NK_SYMBOL_PLUS, NK_SYMBOL_MINUS, NK_SYMBOL_MAX
nk_keys* {.size: sizeof(cint).} = enum
NK_KEY_NONE, NK_KEY_SHIFT, NK_KEY_CTRL, NK_KEY_DEL, NK_KEY_ENTER, NK_KEY_TAB,
NK_KEY_BACKSPACE, NK_KEY_COPY, NK_KEY_CUT, NK_KEY_PASTE, NK_KEY_UP, NK_KEY_DOWN,
NK_KEY_LEFT, NK_KEY_RIGHT, NK_KEY_TEXT_INSERT_MODE, NK_KEY_TEXT_REPLACE_MODE,
NK_KEY_TEXT_RESET_MODE, NK_KEY_TEXT_LINE_START, NK_KEY_TEXT_LINE_END,
NK_KEY_TEXT_START, NK_KEY_TEXT_END, NK_KEY_TEXT_UNDO, NK_KEY_TEXT_REDO,
NK_KEY_TEXT_SELECT_ALL, NK_KEY_TEXT_WORD_LEFT, NK_KEY_TEXT_WORD_RIGHT,
NK_KEY_SCROLL_START, NK_KEY_SCROLL_END, NK_KEY_SCROLL_DOWN, NK_KEY_SCROLL_UP,
NK_KEY_MAX
nk_buttons* {.size: sizeof(cint).} = enum
NK_BUTTON_LEFT, NK_BUTTON_MIDDLE, NK_BUTTON_RIGHT, NK_BUTTON_DOUBLE,
NK_BUTTON_MAX
nk_anti_aliasing* {.size: sizeof(cint).} = enum
NK_ANTI_ALIASING_OFF, NK_ANTI_ALIASING_ON
nk_convert_result* {.size: sizeof(cint).} = enum
NK_CONVERT_SUCCESS = 0, NK_CONVERT_INVALID_PARAM = 1,
NK_CONVERT_COMMAND_BUFFER_FULL = (1 shl (1)),
NK_CONVERT_VERTEX_BUFFER_FULL = (1 shl (2)),
NK_CONVERT_ELEMENT_BUFFER_FULL = (1 shl (3))
nk_draw_null_texture* {.bycopy.} = object
texture*: nk_handle
uv*: nk_vec2
nk_convert_config* {.bycopy.} = object
global_alpha*: cfloat
line_AA*: nk_anti_aliasing
shape_AA*: nk_anti_aliasing
circle_segment_count*: cuint
arc_segment_count*: cuint
curve_segment_count*: cuint
null*: nk_draw_null_texture
vertex_layout*: ptr nk_draw_vertex_layout_element
vertex_size*: nk_size
vertex_alignment*: nk_size
nk_panel_flags* {.size: sizeof(cint).} = enum
NK_WINDOW_BORDER = (1 shl (0)), NK_WINDOW_MOVABLE = (1 shl (1)),
NK_WINDOW_SCALABLE = (1 shl (2)), NK_WINDOW_CLOSABLE = (1 shl (3)),
NK_WINDOW_MINIMIZABLE = (1 shl (4)), NK_WINDOW_NO_SCROLLBAR = (1 shl (5)),
NK_WINDOW_TITLE = (1 shl (6)), NK_WINDOW_SCROLL_AUTO_HIDE = (1 shl (7)),
NK_WINDOW_BACKGROUND = (1 shl (8)), NK_WINDOW_SCALE_LEFT = (1 shl (9)),
NK_WINDOW_NO_INPUT = (1 shl (10))
nk_widget_layout_states* {.size: sizeof(cint).} = enum
NK_WIDGET_INVALID, NK_WIDGET_VALID, NK_WIDGET_ROM
nk_widget_states* {.size: sizeof(cint).} = enum
NK_WIDGET_STATE_MODIFIED = (1 shl (1)), NK_WIDGET_STATE_INACTIVE = (1 shl (2)),
NK_WIDGET_STATE_ENTERED = (1 shl (3)), NK_WIDGET_STATE_HOVER = (1 shl (4)),
NK_WIDGET_STATE_ACTIVED = (1 shl (5)), NK_WIDGET_STATE_LEFT = (1 shl (6)),
nk_list_view* {.bycopy.} = object
begin*: cint
`end`*: cint
count*: cint
total_height*: cint
ctx*: ptr nk_context
scroll_pointer*: pointer
scroll_value*: nk_uint
nk_text_align* {.size: sizeof(cint).} = enum
NK_TEXT_ALIGN_LEFT = 0x00000001, NK_TEXT_ALIGN_CENTERED = 0x00000002,
NK_TEXT_ALIGN_RIGHT = 0x00000004, NK_TEXT_ALIGN_TOP = 0x00000008,
NK_TEXT_ALIGN_MIDDLE = 0x00000010, NK_TEXT_ALIGN_BOTTOM = 0x00000020
nk_text_alignment* {.size: sizeof(cint).} = enum
NK_TEXT_LEFT = NK_TEXT_ALIGN_MIDDLE.cint or NK_TEXT_ALIGN_LEFT.cint,
NK_TEXT_CENTERED = NK_TEXT_ALIGN_MIDDLE.cint or NK_TEXT_ALIGN_CENTERED.cint,
NK_TEXT_RIGHT = NK_TEXT_ALIGN_MIDDLE.cint or NK_TEXT_ALIGN_RIGHT.cint
nk_edit_flags* {.size: sizeof(cint).} = enum
NK_EDIT_DEFAULT = 0, NK_EDIT_READ_ONLY = (1 shl (0)),
NK_EDIT_AUTO_SELECT = (1 shl (1)), NK_EDIT_SIG_ENTER = (1 shl (2)),
NK_EDIT_ALLOW_TAB = (1 shl (3)), NK_EDIT_NO_CURSOR = (1 shl (4)),
NK_EDIT_SELECTABLE = (1 shl (5)), NK_EDIT_CLIPBOARD = (1 shl (6)),
NK_EDIT_CTRL_ENTER_NEWLINE = (1 shl (7)),
NK_EDIT_NO_HORIZONTAL_SCROLL = (1 shl (8)),
NK_EDIT_ALWAYS_INSERT_MODE = (1 shl (9)), NK_EDIT_MULTILINE = (1 shl (10)),
NK_EDIT_GOTO_END_ON_ACTIVATE = (1 shl (11))
nk_edit_types* {.size: sizeof(cint).} = enum
NK_EDIT_SIMPLE = NK_EDIT_ALWAYS_INSERT_MODE,
NK_EDIT_FIELD = NK_EDIT_SIMPLE.cint or NK_EDIT_SELECTABLE.cint or NK_EDIT_CLIPBOARD.cint,
NK_EDIT_EDITOR = NK_EDIT_SELECTABLE.cint or NK_EDIT_MULTILINE.cint or NK_EDIT_ALLOW_TAB.cint or NK_EDIT_CLIPBOARD.cint,
NK_EDIT_BOX = NK_EDIT_ALWAYS_INSERT_MODE.cint or NK_EDIT_SELECTABLE.cint or NK_EDIT_MULTILINE.cint or NK_EDIT_ALLOW_TAB.cint or NK_EDIT_CLIPBOARD.cint
nk_edit_events* {.size: sizeof(cint).} = enum
NK_EDIT_ACTIVE = (1 shl (0)), NK_EDIT_INACTIVE = (1 shl (1)),
NK_EDIT_ACTIVATED = (1 shl (2)), NK_EDIT_DEACTIVATED = (1 shl (3)),
NK_EDIT_COMMITED = (1 shl (4))
nk_style_colors* {.size: sizeof(cint).} = enum
NK_COLOR_TEXT, NK_COLOR_WINDOW, NK_COLOR_HEADER, NK_COLOR_BORDER,
NK_COLOR_BUTTON, NK_COLOR_BUTTON_HOVER, NK_COLOR_BUTTON_ACTIVE,
NK_COLOR_TOGGLE, NK_COLOR_TOGGLE_HOVER, NK_COLOR_TOGGLE_CURSOR,
NK_COLOR_SELECT, NK_COLOR_SELECT_ACTIVE, NK_COLOR_SLIDER,
NK_COLOR_SLIDER_CURSOR, NK_COLOR_SLIDER_CURSOR_HOVER,
NK_COLOR_SLIDER_CURSOR_ACTIVE, NK_COLOR_PROPERTY, NK_COLOR_EDIT,
NK_COLOR_EDIT_CURSOR, NK_COLOR_COMBO, NK_COLOR_CHART, NK_COLOR_CHART_COLOR,
NK_COLOR_CHART_COLOR_HIGHLIGHT, NK_COLOR_SCROLLBAR, NK_COLOR_SCROLLBAR_CURSOR,
NK_COLOR_SCROLLBAR_CURSOR_HOVER, NK_COLOR_SCROLLBAR_CURSOR_ACTIVE,
NK_COLOR_TAB_HEADER, NK_COLOR_COUNT
nk_style_cursor* {.size: sizeof(cint).} = enum
NK_CURSOR_ARROW, NK_CURSOR_TEXT, NK_CURSOR_MOVE, NK_CURSOR_RESIZE_VERTICAL,
NK_CURSOR_RESIZE_HORIZONTAL, NK_CURSOR_RESIZE_TOP_LEFT_DOWN_RIGHT,
NK_CURSOR_RESIZE_TOP_RIGHT_DOWN_LEFT, NK_CURSOR_COUNT
nk_text_width_f* = proc (a1: nk_handle; h: cfloat; a3: cstring; len: cint): cfloat {.cdecl.}
nk_query_font_glyph_f* = proc (handle: nk_handle; font_height: cfloat;
glyph: ptr nk_user_font_glyph; codepoint: nk_rune;
next_codepoint: nk_rune) {.cdecl.}
nk_user_font_glyph* {.bycopy.} = object
uv*: array[2, nk_vec2]
offset*: nk_vec2
width*: cfloat
height*: cfloat
xadvance*: cfloat
nk_user_font* {.bycopy.} = object
userdata*: nk_handle
height*: cfloat
width*: nk_text_width_f
query*: nk_query_font_glyph_f
texture*: nk_handle
nk_font_coord_type* {.size: sizeof(cint).} = enum
NK_COORD_UV, NK_COORD_PIXEL
nk_baked_font* {.bycopy.} = object
height*: cfloat
ascent*: cfloat
descent*: cfloat
glyph_offset*: nk_rune
glyph_count*: nk_rune
ranges*: pointer
nk_font_config* {.bycopy.} = object
next*: ptr nk_font_config
ttf_blob*: pointer
ttf_size*: nk_size
ttf_data_owned_by_atlas*: cuchar
merge_mode*: cuchar
pixel_snap*: cuchar
oversample_v*: cuchar
oversample_h*: cuchar
padding*: array[3, cuchar]
size*: cfloat
coord_type*: nk_font_coord_type
spacing*: nk_vec2
`range`*: pointer
font*: ptr nk_baked_font
fallback_glyph*: nk_rune
n*: ptr nk_font_config
p*: ptr nk_font_config
nk_font_glyph* {.bycopy.} = object
codepoint*: nk_rune
xadvance*: cfloat
x0*: cfloat
y0*: cfloat
x1*: cfloat
y1*: cfloat
w*: cfloat
h*: cfloat
u0*: cfloat
v0*: cfloat
u1*: cfloat
v1*: cfloat
nk_font* {.bycopy.} = object
next*: ptr nk_font
handle*: nk_user_font
info*: nk_baked_font
scale*: cfloat
glyphs*: ptr nk_font_glyph
fallback*: ptr nk_font_glyph
fallback_codepoint*: nk_rune
texture*: nk_handle
config*: ptr nk_font_config
nk_font_atlas_format* {.size: sizeof(cint).} = enum
NK_FONT_ATLAS_ALPHA8, NK_FONT_ATLAS_RGBA32
nk_font_atlas* {.bycopy.} = object
pixel*: pointer
tex_width*: cint
tex_height*: cint
permanent*: nk_allocator
temporary*: nk_allocator
custom*: nk_recti
cursors*: array[NK_CURSOR_COUNT, nk_cursor]
glyph_count*: cint
glyphs*: ptr nk_font_glyph
default_font*: ptr nk_font
fonts*: ptr nk_font
config*: ptr nk_font_config
font_num*: cint
nk_memory_status* {.bycopy.} = object
memory*: pointer
`type`*: cuint
size*: nk_size
allocated*: nk_size
needed*: nk_size
calls*: nk_size
nk_allocation_type* {.size: sizeof(cint).} = enum
NK_BUFFER_FIXED, NK_BUFFER_DYNAMIC
nk_buffer_allocation_type* {.size: sizeof(cint).} = enum
NK_BUFFER_FRONT, NK_BUFFER_BACK, NK_BUFFER_MAX
nk_buffer_marker* {.bycopy.} = object
active*: cint
offset*: nk_size
nk_memory* {.bycopy.} = object
`ptr`*: pointer
size*: nk_size
nk_buffer* {.bycopy.} = object
marker*: array[NK_BUFFER_MAX, nk_buffer_marker]
pool*: nk_allocator
`type`*: nk_allocation_type
memory*: nk_memory
grow_factor*: cfloat
allocated*: nk_size
needed*: nk_size
calls*: nk_size
size*: nk_size
nk_str* {.bycopy.} = object
buffer*: nk_buffer
len*: cint
nk_clipboard* {.bycopy.} = object
userdata*: nk_handle
paste*: nk_plugin_paste
copy*: nk_plugin_copy
nk_text_undo_record* {.bycopy.} = object
where*: cint
insert_length*: cshort
delete_length*: cshort
char_storage*: cshort
nk_text_undo_state* {.bycopy.} = object
undo_rec*: array[99, nk_text_undo_record]
undo_char*: array[999, nk_rune]
undo_point*: cshort
redo_point*: cshort
undo_char_point*: cshort
redo_char_point*: cshort
nk_text_edit_type* {.size: sizeof(cint).} = enum
NK_TEXT_EDIT_SINGLE_LINE, NK_TEXT_EDIT_MULTI_LINE
nk_text_edit_mode* {.size: sizeof(cint).} = enum
NK_TEXT_EDIT_MODE_VIEW, NK_TEXT_EDIT_MODE_INSERT, NK_TEXT_EDIT_MODE_REPLACE
nk_text_edit* {.bycopy.} = object
clip*: nk_clipboard
`string`*: nk_str
filter*: nk_plugin_filter
scrollbar*: nk_vec2
cursor*: cint
select_start*: cint
select_end*: cint
mode*: cuchar
cursor_at_end_of_line*: cuchar
initialized*: cuchar
has_preferred_x*: cuchar
single_line*: cuchar
active*: cuchar
padding1*: cuchar
preferred_x*: cfloat
undo*: nk_text_undo_state
nk_command_type* {.size: sizeof(cint).} = enum
NK_COMMAND_NOP, NK_COMMAND_SCISSOR, NK_COMMAND_LINE, NK_COMMAND_CURVE,
NK_COMMAND_RECT, NK_COMMAND_RECT_FILLED, NK_COMMAND_RECT_MULTI_COLOR,
NK_COMMAND_CIRCLE, NK_COMMAND_CIRCLE_FILLED, NK_COMMAND_ARC,
NK_COMMAND_ARC_FILLED, NK_COMMAND_TRIANGLE, NK_COMMAND_TRIANGLE_FILLED,
NK_COMMAND_POLYGON, NK_COMMAND_POLYGON_FILLED, NK_COMMAND_POLYLINE,
NK_COMMAND_TEXT, NK_COMMAND_IMAGE, NK_COMMAND_CUSTOM
nk_command* {.bycopy.} = object
`type`*: nk_command_type
next*: nk_size
userdata*: nk_handle
nk_command_scissor* {.bycopy.} = object
header*: nk_command
x*: cshort
y*: cshort
w*: cushort
h*: cushort
nk_command_line* {.bycopy.} = object
header*: nk_command
line_thickness*: cushort
begin*: nk_vec2i
`end`*: nk_vec2i
color*: nk_color
nk_command_curve* {.bycopy.} = object
header*: nk_command
line_thickness*: cushort
begin*: nk_vec2i
`end`*: nk_vec2i
ctrl*: array[2, nk_vec2i]
color*: nk_color
nk_command_rect* {.bycopy.} = object
header*: nk_command
rounding*: cushort
line_thickness*: cushort
x*: cshort
y*: cshort
w*: cushort
h*: cushort
color*: nk_color
nk_command_rect_filled* {.bycopy.} = object
header*: nk_command
rounding*: cushort
x*: cshort
y*: cshort
w*: cushort
h*: cushort
color*: nk_color
nk_command_rect_multi_color* {.bycopy.} = object
header*: nk_command
x*: cshort
y*: cshort
w*: cushort
h*: cushort
left*: nk_color
top*: nk_color
bottom*: nk_color
right*: nk_color
nk_command_triangle* {.bycopy.} = object
header*: nk_command
line_thickness*: cushort
a*: nk_vec2i
b*: nk_vec2i
c*: nk_vec2i
color*: nk_color
nk_command_triangle_filled* {.bycopy.} = object
header*: nk_command
a*: nk_vec2i
b*: nk_vec2i
c*: nk_vec2i
color*: nk_color
nk_command_circle* {.bycopy.} = object
header*: nk_command
x*: cshort
y*: cshort
line_thickness*: cushort
w*: cushort
h*: cushort
color*: nk_color
nk_command_circle_filled* {.bycopy.} = object
header*: nk_command
x*: cshort
y*: cshort
w*: cushort
h*: cushort
color*: nk_color
nk_command_arc* {.bycopy.} = object
header*: nk_command
cx*: cshort
cy*: cshort
r*: cushort
line_thickness*: cushort
a*: array[2, cfloat]
color*: nk_color
nk_command_arc_filled* {.bycopy.} = object
header*: nk_command
cx*: cshort
cy*: cshort
r*: cushort
a*: array[2, cfloat]
color*: nk_color
nk_command_polygon* {.bycopy.} = object
header*: nk_command
color*: nk_color
line_thickness*: cushort
point_count*: cushort
points*: array[1, nk_vec2i]
nk_command_polygon_filled* {.bycopy.} = object
header*: nk_command
color*: nk_color
point_count*: cushort
points*: array[1, nk_vec2i]
nk_command_polyline* {.bycopy.} = object
header*: nk_command
color*: nk_color
line_thickness*: cushort
point_count*: cushort
points*: array[1, nk_vec2i]
nk_command_image* {.bycopy.} = object
header*: nk_command
x*: cshort
y*: cshort
w*: cushort
h*: cushort
img*: nk_image
col*: nk_color
nk_command_custom_callback* = proc (canvas: pointer; x: cshort; y: cshort; w: cushort;
h: cushort; callback_data: nk_handle) {.cdecl.}
nk_command_custom* {.bycopy.} = object
header*: nk_command
x*: cshort
y*: cshort
w*: cushort
h*: cushort
callback_data*: nk_handle
callback*: nk_command_custom_callback
nk_command_text* {.bycopy.} = object
header*: nk_command
font*: ptr nk_user_font
background*: nk_color
foreground*: nk_color
x*: cshort
y*: cshort
w*: cushort
h*: cushort
height*: cfloat
length*: cint
`string`*: array[1, cchar]
nk_command_clipping* {.size: sizeof(cint).} = enum
NK_CLIPPING_OFF = nk_false, NK_CLIPPING_ON = nk_true
nk_command_buffer* {.bycopy.} = object
base*: ptr nk_buffer
clip*: nk_rect
use_clipping*: cint
userdata*: nk_handle
begin*: nk_size
`end`*: nk_size
last*: nk_size
const NK_WIDGET_STATE_HOVERED = nk_widget_states(NK_WIDGET_STATE_HOVER.cint or NK_WIDGET_STATE_MODIFIED.cint)
const NK_WIDGET_STATE_ACTIVE = nk_widget_states(NK_WIDGET_STATE_ACTIVED.cint or NK_WIDGET_STATE_MODIFIED.cint)
proc nk_init_default*(a1: ptr nk_context; a2: ptr nk_user_font): cint {.cdecl,
importc.}
proc nk_init_fixed*(a1: ptr nk_context; memory: pointer; size: nk_size;
a4: ptr nk_user_font): cint {.cdecl,
importc.}
proc nk_init*(a1: ptr nk_context; a2: ptr nk_allocator; a3: ptr nk_user_font): cint {.
cdecl, importc.}
proc nk_init_custom*(a1: ptr nk_context; cmds: ptr nk_buffer; pool: ptr nk_buffer;
a4: ptr nk_user_font): cint {.cdecl,
importc.}
proc nk_clear*(a1: ptr nk_context) {.cdecl, importc.}
proc nk_free*(a1: ptr nk_context) {.cdecl, importc.}
proc nk_input_begin*(a1: ptr nk_context) {.cdecl, importc.}
proc nk_input_motion*(a1: ptr nk_context; x: cint; y: cint) {.cdecl,
importc.}
proc nk_input_key*(a1: ptr nk_context; a2: nk_keys; down: cint) {.cdecl,
importc.}
proc nk_input_button*(a1: ptr nk_context; a2: nk_buttons; x: cint; y: cint; down: cint) {.
cdecl, importc.}
proc nk_input_scroll*(a1: ptr nk_context; val: nk_vec2) {.cdecl,
importc.}
proc nk_input_char*(a1: ptr nk_context; a2: char) {.cdecl,
importc.}
proc nk_input_glyph*(a1: ptr nk_context; a2: nk_glyph) {.cdecl,
importc.}
proc nk_input_unicode*(a1: ptr nk_context; a2: nk_rune) {.cdecl,
importc.}
proc nk_input_end*(a1: ptr nk_context) {.cdecl, importc.}
proc nk_begin*(a1: ptr nk_context): ptr nk_command {.cdecl, importc.}
proc nk_next*(a1: ptr nk_context; a2: ptr nk_command): ptr nk_command {.cdecl,
importc.}
proc nk_convert*(a1: ptr nk_context; cmds: ptr nk_buffer; vertices: ptr nk_buffer;
elements: ptr nk_buffer; a5: ptr nk_convert_config): nk_flags {.cdecl,
importc.}
proc nk_draw_begin*(a1: ptr nk_context; a2: ptr nk_buffer): ptr nk_draw_command {.cdecl,
importc: "nk__draw_begin".}
proc nk_draw_end*(a1: ptr nk_context; a2: ptr nk_buffer): ptr nk_draw_command {.cdecl,
importc: "nk__draw_end".}
proc nk_draw_next*(a1: ptr nk_draw_command; a2: ptr nk_buffer; a3: ptr nk_context): ptr nk_draw_command {.
cdecl, importc: "nk__draw_next".}
proc nk_begin*(ctx: ptr nk_context; title: cstring; bounds: nk_rect; flags: nk_flags): cint {.
cdecl, importc.}
proc nk_begin_titled*(ctx: ptr nk_context; name: cstring; title: cstring;
bounds: nk_rect; flags: nk_flags): cint {.cdecl,
importc.}
proc nk_end*(ctx: ptr nk_context) {.cdecl, importc.}
proc nk_window_find*(ctx: ptr nk_context; name: cstring): ptr nk_window {.cdecl,
importc.}
proc nk_window_get_bounds*(ctx: ptr nk_context): nk_rect {.cdecl,
importc.}
proc nk_window_get_position*(ctx: ptr nk_context): nk_vec2 {.cdecl,
importc.}
proc nk_window_get_size*(a1: ptr nk_context): nk_vec2 {.cdecl,
importc.}
proc nk_window_get_width*(a1: ptr nk_context): cfloat {.cdecl,
importc.}
proc nk_window_get_height*(a1: ptr nk_context): cfloat {.cdecl,
importc.}
proc nk_window_get_panel*(a1: ptr nk_context): ptr nk_panel {.cdecl,
importc.}
proc nk_window_get_content_region*(a1: ptr nk_context): nk_rect {.cdecl,
importc.}
proc nk_window_get_content_region_min*(a1: ptr nk_context): nk_vec2 {.cdecl,
importc.}
proc nk_window_get_content_region_max*(a1: ptr nk_context): nk_vec2 {.cdecl,
importc.}
proc nk_window_get_content_region_size*(a1: ptr nk_context): nk_vec2 {.cdecl,
importc.}
proc nk_window_get_canvas*(a1: ptr nk_context): ptr nk_command_buffer {.cdecl,
importc.}
proc nk_window_get_scroll*(a1: ptr nk_context; offset_x: pointer;
offset_y: pointer) {.cdecl,
importc.}
proc nk_window_has_focus*(a1: ptr nk_context): cint {.cdecl,
importc.}
proc nk_window_is_hovered*(a1: ptr nk_context): cint {.cdecl,
importc.}
proc nk_window_is_collapsed*(ctx: ptr nk_context; name: cstring): cint {.cdecl,
importc.}
proc nk_window_is_closed*(a1: ptr nk_context; a2: cstring): cint {.cdecl,
importc.}
proc nk_window_is_hidden*(a1: ptr nk_context; a2: cstring): cint {.cdecl,
importc.}
proc nk_window_is_active*(a1: ptr nk_context; a2: cstring): cint {.cdecl,
importc.}
proc nk_window_is_any_hovered*(a1: ptr nk_context): cint {.cdecl,
importc.}
proc nk_item_is_any_active*(a1: ptr nk_context): cint {.cdecl,
importc.}
proc nk_window_set_bounds*(a1: ptr nk_context; name: cstring; bounds: nk_rect) {.cdecl,
importc.}
proc nk_window_set_position*(a1: ptr nk_context; name: cstring; pos: nk_vec2) {.cdecl,
importc.}
proc nk_window_set_size*(a1: ptr nk_context; name: cstring; a3: nk_vec2) {.cdecl,
importc.}
proc nk_window_set_focus*(a1: ptr nk_context; name: cstring) {.cdecl,
importc.}
proc nk_window_set_scroll*(a1: ptr nk_context; offset_x: nk_uint; offset_y: nk_uint) {.
cdecl, importc.}
proc nk_window_close*(ctx: ptr nk_context; name: cstring) {.cdecl,
importc.}
proc nk_window_collapse*(a1: ptr nk_context; name: cstring; state: nk_collapse_states) {.
cdecl, importc.}
proc nk_window_collapse_if*(a1: ptr nk_context; name: cstring; a3: nk_collapse_states;
cond: cint) {.cdecl,
importc.}
proc nk_window_show*(a1: ptr nk_context; name: cstring; a3: nk_show_states) {.cdecl,
importc.}
proc nk_window_show_if*(a1: ptr nk_context; name: cstring; a3: nk_show_states;
cond: cint) {.cdecl, importc.}
proc nk_layout_set_min_row_height*(a1: ptr nk_context; height: cfloat) {.cdecl,
importc.}
proc nk_layout_reset_min_row_height*(a1: ptr nk_context) {.cdecl,
importc.}
proc nk_layout_widget_bounds*(a1: ptr nk_context): nk_rect {.cdecl,
importc.}
proc nk_layout_ratio_from_pixel*(a1: ptr nk_context; pixel_width: cfloat): cfloat {.
cdecl, importc.}
proc nk_layout_row_dynamic*(ctx: ptr nk_context; height: cfloat; cols: cint) {.cdecl,
importc.}
proc nk_layout_row_static*(ctx: ptr nk_context; height: cfloat; item_width: cint;
cols: cint) {.cdecl,
importc.}
proc nk_layout_row_begin*(ctx: ptr nk_context; fmt: nk_layout_format;
row_height: cfloat; cols: cint) {.cdecl,
importc.}
proc nk_layout_row_push*(a1: ptr nk_context; value: cfloat) {.cdecl,
importc.}
proc nk_layout_row_end*(a1: ptr nk_context) {.cdecl,
importc.}
proc nk_layout_row*(a1: ptr nk_context; a2: nk_layout_format; height: cfloat;
cols: cint; ratio: pointer) {.cdecl,
importc.}
proc nk_layout_row_template_begin*(a1: ptr nk_context; row_height: cfloat) {.cdecl,
importc.}
proc nk_layout_row_template_push_dynamic*(a1: ptr nk_context) {.cdecl,
importc.}
proc nk_layout_row_template_push_variable*(a1: ptr nk_context; min_width: cfloat) {.
cdecl, importc.}
proc nk_layout_row_template_push_static*(a1: ptr nk_context; width: cfloat) {.cdecl,
importc.}
proc nk_layout_row_template_end*(a1: ptr nk_context) {.cdecl,
importc.}
proc nk_layout_space_begin*(a1: ptr nk_context; a2: nk_layout_format; height: cfloat;
widget_count: cint) {.cdecl,
importc.}
proc nk_layout_space_push*(a1: ptr nk_context; bounds: nk_rect) {.cdecl,
importc.}
proc nk_layout_space_end*(a1: ptr nk_context) {.cdecl,
importc.}
proc nk_layout_space_bounds*(a1: ptr nk_context): nk_rect {.cdecl,
importc.}
proc nk_layout_space_to_screen*(a1: ptr nk_context; a2: nk_vec2): nk_vec2 {.cdecl,
importc.}
proc nk_layout_space_to_local*(a1: ptr nk_context; a2: nk_vec2): nk_vec2 {.cdecl,
importc.}
proc nk_layout_space_rect_to_screen*(a1: ptr nk_context; a2: nk_rect): nk_rect {.cdecl,
importc.}
proc nk_layout_space_rect_to_local*(a1: ptr nk_context; a2: nk_rect): nk_rect {.cdecl,
importc.}
proc nk_group_begin*(a1: ptr nk_context; title: cstring; a3: nk_flags): cint {.cdecl,
importc.}
proc nk_group_begin_titled*(a1: ptr nk_context; name: cstring; title: cstring;
a4: nk_flags): cint {.cdecl,
importc.}
proc nk_group_end*(a1: ptr nk_context) {.cdecl, importc.}
proc nk_group_scrolled_offset_begin*(a1: ptr nk_context; x_offset: pointer;
y_offset: pointer; title: cstring;
flags: nk_flags): cint {.cdecl,
importc.}
proc nk_group_scrolled_begin*(a1: ptr nk_context; off: ptr nk_scroll; title: cstring;
a4: nk_flags): cint {.cdecl,
importc.}
proc nk_group_scrolled_end*(a1: ptr nk_context) {.cdecl,
importc.}
proc nk_group_get_scroll*(a1: ptr nk_context; id: cstring; x_offset: pointer;
y_offset: pointer) {.cdecl,
importc.}
proc nk_group_set_scroll*(a1: ptr nk_context; id: cstring; x_offset: nk_uint;
y_offset: nk_uint) {.cdecl,
importc.}
proc nk_tree_push_hashed*(a1: ptr nk_context; a2: nk_tree_type; title: cstring;
initial_state: nk_collapse_states; hash: cstring;
len: cint; seed: cint): cint {.cdecl,
importc.}
proc nk_tree_image_push_hashed*(a1: ptr nk_context; a2: nk_tree_type; a3: nk_image;
title: cstring; initial_state: nk_collapse_states;
hash: cstring; len: cint; seed: cint): cint {.cdecl,
importc.}
proc nk_tree_pop*(a1: ptr nk_context) {.cdecl, importc.}
proc nk_tree_state_push*(a1: ptr nk_context; a2: nk_tree_type; title: cstring;
state: ptr nk_collapse_states): cint {.cdecl,
importc.}
proc nk_tree_state_image_push*(a1: ptr nk_context; a2: nk_tree_type; a3: nk_image;
title: cstring; state: ptr nk_collapse_states): cint {.
cdecl, importc.}
proc nk_tree_state_pop*(a1: ptr nk_context) {.cdecl,
importc.}
proc nk_tree_element_push_hashed*(a1: ptr nk_context; a2: nk_tree_type;
title: cstring;
initial_state: nk_collapse_states;
selected: pointer; hash: cstring; len: cint;
seed: cint): cint {.cdecl,
importc.}
proc nk_tree_element_image_push_hashed*(a1: ptr nk_context; a2: nk_tree_type;
a3: nk_image; title: cstring;
initial_state: nk_collapse_states;
selected: pointer; hash: cstring; len: cint;
seed: cint): cint {.cdecl,
importc.}
proc nk_tree_element_pop*(a1: ptr nk_context) {.cdecl,
importc.}
proc nk_list_view_begin*(a1: ptr nk_context; `out`: ptr nk_list_view; id: cstring;
a4: nk_flags; row_height: cint; row_count: cint): cint {.cdecl,
importc.}
proc nk_list_view_end*(a1: ptr nk_list_view) {.cdecl,
importc.}
proc nk_widget*(a1: ptr nk_rect; a2: ptr nk_context): nk_widget_layout_states {.cdecl,
importc.}
proc nk_widget_fitting*(a1: ptr nk_rect; a2: ptr nk_context; a3: nk_vec2): nk_widget_layout_states {.
cdecl, importc.}
proc nk_widget_bounds*(a1: ptr nk_context): nk_rect {.cdecl,
importc.}
proc nk_widget_position*(a1: ptr nk_context): nk_vec2 {.cdecl,
importc.}
proc nk_widget_size*(a1: ptr nk_context): nk_vec2 {.cdecl,
importc.}
proc nk_widget_width*(a1: ptr nk_context): cfloat {.cdecl,
importc.}
proc nk_widget_height*(a1: ptr nk_context): cfloat {.cdecl,
importc.}
proc nk_widget_is_hovered*(a1: ptr nk_context): cint {.cdecl,
importc.}
proc nk_widget_is_mouse_clicked*(a1: ptr nk_context; a2: nk_buttons): cint {.cdecl,
importc.}
proc nk_widget_has_mouse_click_down*(a1: ptr nk_context; a2: nk_buttons; down: cint): cint {.
cdecl, importc.}
proc nk_spacing*(a1: ptr nk_context; cols: cint) {.cdecl, importc.}
proc nk_text*(a1: ptr nk_context; a2: cstring; a3: cint; a4: nk_flags) {.cdecl,
importc.}
proc nk_text_colored*(a1: ptr nk_context; a2: cstring; a3: cint; a4: nk_flags;
a5: nk_color) {.cdecl, importc.}
proc nk_text_wrap*(a1: ptr nk_context; a2: cstring; a3: cint) {.cdecl,
importc.}
proc nk_text_wrap_colored*(a1: ptr nk_context; a2: cstring; a3: cint; a4: nk_color) {.
cdecl, importc.}
proc nk_label*(a1: ptr nk_context; a2: cstring; align: nk_flags) {.cdecl,
importc.}
proc nk_label_colored*(a1: ptr nk_context; a2: cstring; align: nk_flags; a4: nk_color) {.
cdecl, importc.}
proc nk_label_wrap*(a1: ptr nk_context; a2: cstring) {.cdecl,
importc.}
proc nk_label_colored_wrap*(a1: ptr nk_context; a2: cstring; a3: nk_color) {.cdecl,
importc.}
proc new_nk_image*(a1: ptr nk_context; a2: nk_image) {.cdecl, importc: "nk_image".}
proc nk_image_color*(a1: ptr nk_context; a2: nk_image; a3: nk_color) {.cdecl,
importc.}
proc nk_labelf*(a1: ptr nk_context; a2: nk_flags; a3: cstring) {.varargs, cdecl,
importc.}
proc nk_labelf_colored*(a1: ptr nk_context; a2: nk_flags; a3: nk_color; a4: cstring) {.
varargs, cdecl, importc.}
proc nk_labelf_wrap*(a1: ptr nk_context; a2: cstring) {.varargs, cdecl,
importc.}
proc nk_labelf_colored_wrap*(a1: ptr nk_context; a2: nk_color; a3: cstring) {.varargs,
cdecl, importc.}
proc nk_labelfv*(a1: ptr nk_context; a2: nk_flags; a3: cstring) {.cdecl,
importc, varargs.}
proc nk_labelfv_colored*(a1: ptr nk_context; a2: nk_flags; a3: nk_color; a4: cstring) {.cdecl, importc.}
proc nk_labelfv_wrap*(a1: ptr nk_context; a2: cstring) {.cdecl,
importc, varargs.}
proc nk_labelfv_colored_wrap*(a1: ptr nk_context; a2: nk_color; a3: cstring) {.
cdecl, importc, varargs.}
proc nk_value_bool*(a1: ptr nk_context; prefix: cstring; a3: cint) {.cdecl,
importc.}
proc nk_value_int*(a1: ptr nk_context; prefix: cstring; a3: cint) {.cdecl,
importc.}
proc nk_value_uint*(a1: ptr nk_context; prefix: cstring; a3: cuint) {.cdecl,
importc.}
proc nk_value_float*(a1: ptr nk_context; prefix: cstring; a3: cfloat) {.cdecl,
importc.}
proc nk_value_color_byte*(a1: ptr nk_context; prefix: cstring; a3: nk_color) {.cdecl,
importc.}
proc nk_value_color_float*(a1: ptr nk_context; prefix: cstring; a3: nk_color) {.cdecl,
importc.}
proc nk_value_color_hex*(a1: ptr nk_context; prefix: cstring; a3: nk_color) {.cdecl,
importc.}
proc nk_button_text*(a1: ptr nk_context; title: cstring; len: cint): cint {.cdecl,
importc.}
proc nk_button_label*(a1: ptr nk_context; title: cstring): cint {.cdecl,
importc.}
proc nk_button_color*(a1: ptr nk_context; a2: nk_color): cint {.cdecl,
importc.}
proc nk_button_symbol*(a1: ptr nk_context; a2: nk_symbol_type): cint {.cdecl,
importc.}
proc nk_button_image*(a1: ptr nk_context; img: nk_image): cint {.cdecl,
importc.}
proc nk_button_symbol_label*(a1: ptr nk_context; a2: nk_symbol_type; a3: cstring;
text_alignment: nk_flags): cint {.cdecl,
importc.}
proc nk_button_symbol_text*(a1: ptr nk_context; a2: nk_symbol_type; a3: cstring;
a4: cint; alignment: nk_flags): cint {.cdecl,
importc.}
proc nk_button_image_label*(a1: ptr nk_context; img: nk_image; a3: cstring;
text_alignment: nk_flags): cint {.cdecl,
importc.}
proc nk_button_image_text*(a1: ptr nk_context; img: nk_image; a3: cstring; a4: cint;
alignment: nk_flags): cint {.cdecl,
importc.}
proc nk_button_text_styled*(a1: ptr nk_context; a2: ptr nk_style_button;
title: cstring; len: cint): cint {.cdecl,
importc.}
proc nk_button_label_styled*(a1: ptr nk_context; a2: ptr nk_style_button;
title: cstring): cint {.cdecl,
importc.}
proc nk_button_symbol_styled*(a1: ptr nk_context; a2: ptr nk_style_button;
a3: nk_symbol_type): cint {.cdecl,
importc.}
proc nk_button_image_styled*(a1: ptr nk_context; a2: ptr nk_style_button; img: nk_image): cint {.
cdecl, importc.}
proc nk_button_symbol_text_styled*(a1: ptr nk_context; a2: ptr nk_style_button;
a3: nk_symbol_type; a4: cstring; a5: cint;
alignment: nk_flags): cint {.cdecl,
importc.}
proc nk_button_symbol_label_styled*(ctx: ptr nk_context; style: ptr nk_style_button;
symbol: nk_symbol_type; title: cstring;
align: nk_flags): cint {.cdecl,
importc.}
proc nk_button_image_label_styled*(a1: ptr nk_context; a2: ptr nk_style_button;
img: nk_image; a4: cstring;
text_alignment: nk_flags): cint {.cdecl,
importc.}
proc nk_button_image_text_styled*(a1: ptr nk_context; a2: ptr nk_style_button;
img: nk_image; a4: cstring; a5: cint;
alignment: nk_flags): cint {.cdecl,
importc.}
proc nk_button_set_behavior*(a1: ptr nk_context; a2: nk_button_behavior) {.cdecl,
importc.}
proc nk_button_push_behavior*(a1: ptr nk_context; a2: nk_button_behavior): cint {.
cdecl, importc.}
proc nk_button_pop_behavior*(a1: ptr nk_context): cint {.cdecl,
importc.}
proc nk_check_label*(a1: ptr nk_context; a2: cstring; active: cint): cint {.cdecl,
importc.}
proc nk_check_text*(a1: ptr nk_context; a2: cstring; a3: cint; active: cint): cint {.cdecl,
importc.}
proc nk_check_flags_label*(a1: ptr nk_context; a2: cstring; flags: cuint; value: cuint): cuint {.
cdecl, importc.}
proc nk_check_flags_text*(a1: ptr nk_context; a2: cstring; a3: cint; flags: cuint;
value: cuint): cuint {.cdecl,
importc.}
proc nk_checkbox_label*(a1: ptr nk_context; a2: cstring; active: pointer): cint {.cdecl,
importc.}
proc nk_checkbox_text*(a1: ptr nk_context; a2: cstring; a3: cint; active: pointer): cint {.
cdecl, importc.}
proc nk_checkbox_flags_label*(a1: ptr nk_context; a2: cstring; flags: pointer;
value: cuint): cint {.cdecl,
importc.}
proc nk_checkbox_flags_text*(a1: ptr nk_context; a2: cstring; a3: cint;
flags: pointer; value: cuint): cint {.cdecl,
importc.}
proc nk_radio_label*(a1: ptr nk_context; a2: cstring; active: pointer): cint {.cdecl,
importc.}
proc nk_radio_text*(a1: ptr nk_context; a2: cstring; a3: cint; active: pointer): cint {.
cdecl, importc.}
proc nk_option_label*(a1: ptr nk_context; a2: cstring; active: cint): cint {.cdecl,
importc.}
proc nk_option_text*(a1: ptr nk_context; a2: cstring; a3: cint; active: cint): cint {.
cdecl, importc.}
proc nk_selectable_label*(a1: ptr nk_context; a2: cstring; align: nk_flags;
value: pointer): cint {.cdecl,
importc.}
proc nk_selectable_text*(a1: ptr nk_context; a2: cstring; a3: cint; align: nk_flags;
value: pointer): cint {.cdecl,
importc.}
proc nk_selectable_image_label*(a1: ptr nk_context; a2: nk_image; a3: cstring;
align: nk_flags; value: pointer): cint {.cdecl,
importc.}
proc nk_selectable_image_text*(a1: ptr nk_context; a2: nk_image; a3: cstring; a4: cint;
align: nk_flags; value: pointer): cint {.cdecl,
importc.}
proc nk_selectable_symbol_label*(a1: ptr nk_context; a2: nk_symbol_type; a3: cstring;
align: nk_flags; value: pointer): cint {.cdecl,
importc.}
proc nk_selectable_symbol_text*(a1: ptr nk_context; a2: nk_symbol_type; a3: cstring;
a4: cint; align: nk_flags; value: pointer): cint {.
cdecl, importc.}
proc nk_select_label*(a1: ptr nk_context; a2: cstring; align: nk_flags; value: cint): cint {.
cdecl, importc.}
proc nk_select_text*(a1: ptr nk_context; a2: cstring; a3: cint; align: nk_flags;
value: cint): cint {.cdecl, importc.}
proc nk_select_image_label*(a1: ptr nk_context; a2: nk_image; a3: cstring;
align: nk_flags; value: cint): cint {.cdecl,
importc.}
proc nk_select_image_text*(a1: ptr nk_context; a2: nk_image; a3: cstring; a4: cint;
align: nk_flags; value: cint): cint {.cdecl,
importc.}
proc nk_select_symbol_label*(a1: ptr nk_context; a2: nk_symbol_type; a3: cstring;
align: nk_flags; value: cint): cint {.cdecl,
importc.}
proc nk_select_symbol_text*(a1: ptr nk_context; a2: nk_symbol_type; a3: cstring;
a4: cint; align: nk_flags; value: cint): cint {.cdecl,
importc.}
proc nk_slide_float*(a1: ptr nk_context; min: cfloat; val: cfloat; max: cfloat;
step: cfloat): cfloat {.cdecl, importc.}
proc nk_slide_int*(a1: ptr nk_context; min: cint; val: cint; max: cint; step: cint): cint {.
cdecl, importc.}