-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNuklear.Style.cs
711 lines (594 loc) · 28.4 KB
/
Nuklear.Style.cs
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
using System;
using System.Runtime.InteropServices;
using nk_handle = System.IntPtr;
namespace NuklearSharp
{
public enum nk_style_item_type {
NK_STYLE_ITEM_COLOR,
NK_STYLE_ITEM_IMAGE
}
[StructLayout(LayoutKind.Explicit)]
public struct nk_style_item_data {
[FieldOffset(0)]
public nk_color color;
[FieldOffset(0)]
public nk_image image;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_item {
public nk_style_item_type type;
public nk_style_item_data data;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_text {
public nk_color color;
public nk_vec2 padding;
}
public unsafe delegate void nk_style_drawbeginend(nk_command_buffer* cbuf, nk_handle userdata);
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_button {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_color border_color;
public nk_color text_background;
public nk_color text_normal;
public nk_color text_hover;
public nk_color text_active;
public uint text_alignment_nkflags;
public float border;
public float rounding;
public nk_vec2 padding;
public nk_vec2 image_padding;
public nk_vec2 touch_padding;
public nk_handle userdata;
public IntPtr draw_begin_nkStyleDrawBeginEnd;
public IntPtr draw_end_nkStyleDrawBeginEnd;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_toggle {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_color border_color;
public nk_style_item cursor_normal;
public nk_style_item cursor_hover;
public nk_color text_normal;
public nk_color text_hover;
public nk_color text_active;
public nk_color text_background;
public uint text_alignment_nkflags;
public nk_vec2 padding;
public nk_vec2 touch_padding;
public float spacing;
public float border;
public nk_handle userdata;
public IntPtr draw_begin_nkStyleDrawBeginEnd;
public IntPtr draw_end_nkStyleDrawBeginEnd;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_selectable {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item pressed;
public nk_style_item normal_active;
public nk_style_item hover_active;
public nk_style_item pressed_active;
public nk_color text_normal;
public nk_color text_hover;
public nk_color text_pressed;
public nk_color text_normal_active;
public nk_color text_hover_active;
public nk_color text_pressed_active;
public nk_color text_background;
public uint text_alignment_nkflags;
public float rounding;
public nk_vec2 padding;
public nk_vec2 touch_padding;
public nk_vec2 image_padding;
public nk_handle userdata;
public IntPtr draw_begin_nkStyleDrawBeginEnd;
public IntPtr draw_end_nkStyleDrawBeginEnd;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_slider {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_color border_color;
public nk_color bar_normal;
public nk_color bar_hover;
public nk_color bar_active;
public nk_color bar_filled;
public nk_style_item cursor_normal;
public nk_style_item cursor_hover;
public nk_style_item cursor_active;
public float border;
public float rounding;
public float bar_height;
public nk_vec2 padding;
public nk_vec2 spacing;
public nk_vec2 cursor_size;
public int show_buttons;
public nk_style_button inc_button;
public nk_style_button dec_button;
public nk_symbol_type inc_symbol;
public nk_symbol_type dec_symbol;
public nk_handle userdata;
public IntPtr draw_begin_nkStyleDrawBeginEnd;
public IntPtr draw_end_nkStyleDrawBeginEnd;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_progress {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_color border_color;
public nk_style_item cursor_normal;
public nk_style_item cursor_hover;
public nk_style_item cursor_active;
public nk_color cursor_border_color;
public float rounding;
public float border;
public float cursor_border;
public float cursor_rounding;
public nk_vec2 padding;
public nk_handle userdata;
public IntPtr draw_begin_nkStyleDrawBeginEnd;
public IntPtr draw_end_nkStyleDrawBeginEnd;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_scrollbar {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_color border_color;
public nk_style_item cursor_normal;
public nk_style_item cursor_hover;
public nk_style_item cursor_active;
public nk_color cursor_border_color;
public float border;
public float rounding;
public float border_cursor;
public float rounding_cursor;
public nk_vec2 padding;
public int show_buttons;
public nk_style_button inc_button;
public nk_style_button dec_button;
public nk_symbol_type inc_symbol;
public nk_symbol_type dec_symbol;
public nk_handle userdata;
public IntPtr draw_begin_nkStyleDrawBeginEnd;
public IntPtr draw_end_nkStyleDrawBeginEnd;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_edit {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_color border_color;
public nk_style_scrollbar scrollbar;
public nk_color cursor_normal;
public nk_color cursor_hover;
public nk_color cursor_text_normal;
public nk_color cursor_text_hover;
public nk_color text_normal;
public nk_color text_hover;
public nk_color text_active;
public nk_color selected_normal;
public nk_color selected_hover;
public nk_color selected_text_normal;
public nk_color selected_text_hover;
public float border;
public float rounding;
public float cursor_size;
public nk_vec2 scrollbar_size;
public nk_vec2 padding;
public float row_padding;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_property {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_color border_color;
public nk_color label_normal;
public nk_color label_hover;
public nk_color label_active;
public nk_symbol_type sym_left;
public nk_symbol_type sym_right;
public float border;
public float rounding;
public nk_vec2 padding;
public nk_style_edit edit;
public nk_style_button inc_button;
public nk_style_button dec_button;
public nk_handle userdata;
public IntPtr draw_begin_nkStyleDrawBeginEnd;
public IntPtr draw_end_nkStyleDrawBeginEnd;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_chart {
public nk_style_item background;
public nk_color border_color;
public nk_color selected_color;
public nk_color color;
public float border;
public float rounding;
public nk_vec2 padding;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_combo {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_color border_color;
public nk_color label_normal;
public nk_color label_hover;
public nk_color label_active;
public nk_color symbol_normal;
public nk_color symbol_hover;
public nk_color symbol_active;
public nk_style_button button;
public nk_symbol_type sym_normal;
public nk_symbol_type sym_hover;
public nk_symbol_type sym_active;
public float border;
public float rounding;
public nk_vec2 content_padding;
public nk_vec2 button_padding;
public nk_vec2 spacing;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_tab {
public nk_style_item background;
public nk_color border_color;
public nk_color text;
public nk_style_button tab_maximize_button;
public nk_style_button tab_minimize_button;
public nk_style_button node_maximize_button;
public nk_style_button node_minimize_button;
public nk_symbol_type sym_minimize;
public nk_symbol_type sym_maximize;
public float border;
public float rounding;
public float indent;
public nk_vec2 padding;
public nk_vec2 spacing;
}
public enum nk_style_header_align {
NK_HEADER_LEFT,
NK_HEADER_RIGHT
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_window_header {
public nk_style_item normal;
public nk_style_item hover;
public nk_style_item active;
public nk_style_button close_button;
public nk_style_button minimize_button;
public nk_symbol_type close_symbol;
public nk_symbol_type minimize_symbol;
public nk_symbol_type maximize_symbol;
public nk_color label_normal;
public nk_color label_hover;
public nk_color label_active;
public nk_style_header_align align;
public nk_vec2 padding;
public nk_vec2 label_padding;
public nk_vec2 spacing;
}
[StructLayout(LayoutKind.Sequential)]
public struct nk_style_window {
public nk_style_window_header header;
public nk_style_item fixed_background;
public nk_color background;
public nk_color border_color;
public nk_color popup_border_color;
public nk_color combo_border_color;
public nk_color contextual_border_color;
public nk_color menu_border_color;
public nk_color group_border_color;
public nk_color tooltip_border_color;
public nk_style_item scaler;
public float border;
public float combo_border;
public float contextual_border;
public float menu_border;
public float group_border;
public float tooltip_border;
public float popup_border;
public float min_row_height_padding;
public float rounding;
public nk_vec2 spacing;
public nk_vec2 scrollbar_size;
public nk_vec2 min_size;
public nk_vec2 padding;
public nk_vec2 group_padding;
public nk_vec2 popup_padding;
public nk_vec2 combo_padding;
public nk_vec2 contextual_padding;
public nk_vec2 menu_padding;
public nk_vec2 tooltip_padding;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct nk_style {
public nk_user_font* font;
/* fixed nk_cursor* cursors[(int)(nk_style_cursor.NK_CURSOR_COUNT)]; */
public nk_cursor* cursorArrow;
public nk_cursor* cursorText;
public nk_cursor* cursorMove;
public nk_cursor* cursorResizeV;
public nk_cursor* cursorResizeH;
public nk_cursor* cursorResizeTLDR;
public nk_cursor* cursorResizeTRDL;
public nk_cursor* cursor_active;
public nk_cursor* cursor_last;
public int cursor_visible;
public nk_style_text text;
public nk_style_button button;
public nk_style_button contextual_button;
public nk_style_button menu_button;
public nk_style_toggle option;
public nk_style_toggle checkbox;
public nk_style_selectable selectable;
public nk_style_slider slider;
public nk_style_progress progress;
public nk_style_property property;
public nk_style_edit edit;
public nk_style_chart chart;
public nk_style_scrollbar scrollh;
public nk_style_scrollbar scrollb;
public nk_style_tab tab;
public nk_style_combo combo;
public nk_style_window window;
}
public enum nk_style_colors {
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
}
public enum nk_style_cursor {
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
}
public static unsafe partial class NuklearNative
{
private delegate void nk_style_default_t(nk_context* ctx);
private delegate void nk_style_from_table_t(nk_context* ctx, nk_color* color);
private delegate void nk_style_load_cursor_t(nk_context* ctx, nk_style_cursor scur, nk_cursor* cursor);
private delegate void nk_style_load_all_cursors_t(nk_context* ctx, nk_cursor* cursor);
private delegate byte* nk_style_get_color_by_name_t(nk_style_colors scol);
private delegate void nk_style_set_font_t(nk_context* ctx, nk_user_font* userfont);
private delegate int nk_style_set_cursor_t(nk_context* ctx, nk_style_cursor scur);
private delegate void nk_style_show_cursor_t(nk_context* ctx);
private delegate void nk_style_hide_cursor_t(nk_context* ctx);
private delegate int nk_style_push_font_t(nk_context* ctx, nk_user_font* userfont);
private delegate int nk_style_push_float_t(nk_context* ctx, float* f, float g);
private delegate int nk_style_push_vec2_t(nk_context* ctx, nk_vec2* a, nk_vec2 b);
private delegate int nk_style_push_style_item_t(nk_context* ctx, nk_style_item* sitem, nk_style_item sitem2);
private delegate int nk_style_push_flags_t(nk_context* ctx, uint* a_nkflags, uint b_nkflags);
private delegate int nk_style_push_color_t(nk_context* ctx, nk_color* a, nk_color b);
private delegate int nk_style_pop_font_t(nk_context* ctx);
private delegate int nk_style_pop_float_t(nk_context* ctx);
private delegate int nk_style_pop_vec2_t(nk_context* ctx);
private delegate int nk_style_pop_style_item_t(nk_context* ctx);
private delegate int nk_style_pop_flags_t(nk_context* ctx);
private delegate int nk_style_pop_color_t(nk_context* ctx);
private delegate nk_color nk_rgb_t(int r, int g, int b);
private delegate nk_color nk_rgb_iv_t(int* rgb);
private delegate nk_color nk_rgb_bv_t(byte* rgb);
private delegate nk_color nk_rgb_cf_t(nk_colorf c);
private delegate nk_color nk_rgb_f_t(float r, float g, float b);
private delegate nk_color nk_rgb_fv_t(float* rgb);
private delegate nk_color nk_rgb_hex_t(byte* rgb);
private delegate nk_color nk_rgba_t(int r, int g, int b, int a);
private delegate nk_color nk_rgba_u32_t(uint rgba);
private delegate nk_color nk_rgba_iv_t(int* rgba);
private delegate nk_color nk_rgba_bv_t(byte* rgba);
private delegate nk_color nk_rgba_cf_t(nk_colorf c);
private delegate nk_color nk_rgba_f_t(float r, float g, float b, float a);
private delegate nk_color nk_rgba_fv_t(float* rgba);
private delegate nk_color nk_rgba_hex_t(float* hsv);
private delegate nk_color nk_hsva_t(int h, int s, int v, int a);
private delegate nk_color nk_hsva_iv_t(int* hsva);
private delegate nk_color nk_hsva_bv_t(byte* hsva);
private delegate nk_colorf nk_hsva_colorf_t(float h, float s, float v, float a);
private delegate nk_colorf nk_hsva_colorfv_t(float* c);
private delegate nk_color nk_hsva_f_t(float h, float s, float v, float a);
private delegate nk_color nk_hsva_fv_t(float* hsva);
private delegate void nk_color_f_t(out float r, out float g, out float b, out float a, nk_color src);
private delegate void nk_color_fv_t(float* rgba_out, nk_color src);
private delegate nk_colorf nk_color_cf_t(nk_color src);
private delegate void nk_color_d_t(out double r, out double g, out double b, out double a, nk_color src);
private delegate void nk_color_dv_t(double* rgba_out, nk_color src);
private delegate uint nk_color_u32_t(nk_color src);
private delegate void nk_color_hex_rgba_t(byte* output, nk_color src);
private delegate void nk_color_hex_rgb_t(byte* output, nk_color src);
private delegate void nk_color_hsv_i_t(out int h, out int s, out int v, nk_color src);
private delegate void nk_color_hsv_b_t(out byte h, out byte s, out byte v, nk_color src);
private delegate void nk_color_hsv_iv_t(int* hsv_out, nk_color src);
private delegate void nk_color_hsv_bv_t(byte* hsv_out, nk_color src);
private delegate void nk_color_hsv_f_t(out float h, out float s, out float v, nk_color src);
private delegate void nk_color_hsv_fv_t(float* hsv_out, nk_color src);
private delegate void nk_color_hsva_i_t(out int h, out int s, out int v, out int a, nk_color src);
private delegate void nk_color_hsva_b_t(out byte h, out byte s, out byte v, out byte a, nk_color src);
private delegate void nk_color_hsva_iv_t(int* hsva_out, nk_color src);
private delegate void nk_color_hsva_bv_t(byte* hsva_out, nk_color src);
private delegate void nk_color_hsva_f_t(out float h, out float s, out float v, out float a, nk_color src);
private delegate void nk_color_hsva_fv_t(float* hsva_out, nk_color src);
private delegate void nk_colorf_hsva_f_t(out float h, out float s, out float v, out float a, nk_colorf src);
private delegate void nk_colorf_hsva_fv_t(float* hsva_out, nk_colorf src);
private static nk_style_default_t _nk_style_default = LFT<nk_style_default_t>();
private static nk_style_from_table_t _nk_style_from_table = LFT<nk_style_from_table_t>();
private static nk_style_load_cursor_t _nk_style_load_cursor = LFT<nk_style_load_cursor_t>();
private static nk_style_load_all_cursors_t _nk_style_load_all_cursors = LFT<nk_style_load_all_cursors_t>();
private static nk_style_get_color_by_name_t _nk_style_get_color_by_name = LFT<nk_style_get_color_by_name_t>();
private static nk_style_set_font_t _nk_style_set_font = LFT<nk_style_set_font_t>();
private static nk_style_set_cursor_t _nk_style_set_cursor = LFT<nk_style_set_cursor_t>();
private static nk_style_show_cursor_t _nk_style_show_cursor = LFT<nk_style_show_cursor_t>();
private static nk_style_hide_cursor_t _nk_style_hide_cursor = LFT<nk_style_hide_cursor_t>();
private static nk_style_push_font_t _nk_style_push_font = LFT<nk_style_push_font_t>();
private static nk_style_push_float_t _nk_style_push_float = LFT<nk_style_push_float_t>();
private static nk_style_push_vec2_t _nk_style_push_vec2 = LFT<nk_style_push_vec2_t>();
private static nk_style_push_style_item_t _nk_style_push_style_item = LFT<nk_style_push_style_item_t>();
private static nk_style_push_flags_t _nk_style_push_flags = LFT<nk_style_push_flags_t>();
private static nk_style_push_color_t _nk_style_push_color = LFT<nk_style_push_color_t>();
private static nk_style_pop_font_t _nk_style_pop_font = LFT<nk_style_pop_font_t>();
private static nk_style_pop_float_t _nk_style_pop_float = LFT<nk_style_pop_float_t>();
private static nk_style_pop_vec2_t _nk_style_pop_vec2 = LFT<nk_style_pop_vec2_t>();
private static nk_style_pop_style_item_t _nk_style_pop_style_item = LFT<nk_style_pop_style_item_t>();
private static nk_style_pop_flags_t _nk_style_pop_flags = LFT<nk_style_pop_flags_t>();
private static nk_style_pop_color_t _nk_style_pop_color = LFT<nk_style_pop_color_t>();
private static nk_rgb_t _nk_rgb = LFT<nk_rgb_t>();
private static nk_rgb_iv_t _nk_rgb_iv = LFT<nk_rgb_iv_t>();
private static nk_rgb_bv_t _nk_rgb_bv = LFT<nk_rgb_bv_t>();
private static nk_rgb_cf_t _nk_rgb_cf = LFT<nk_rgb_cf_t>();
private static nk_rgb_f_t _nk_rgb_f = LFT<nk_rgb_f_t>();
private static nk_rgb_fv_t _nk_rgb_fv = LFT<nk_rgb_fv_t>();
private static nk_rgb_hex_t _nk_rgb_hex = LFT<nk_rgb_hex_t>();
private static nk_rgba_t _nk_rgba = LFT<nk_rgba_t>();
private static nk_rgba_u32_t _nk_rgba_u32 = LFT<nk_rgba_u32_t>();
private static nk_rgba_iv_t _nk_rgba_iv = LFT<nk_rgba_iv_t>();
private static nk_rgba_bv_t _nk_rgba_bv = LFT<nk_rgba_bv_t>();
private static nk_rgba_cf_t _nk_rgba_cf = LFT<nk_rgba_cf_t>();
private static nk_rgba_f_t _nk_rgba_f = LFT<nk_rgba_f_t>();
private static nk_rgba_fv_t _nk_rgba_fv = LFT<nk_rgba_fv_t>();
private static nk_rgba_hex_t _nk_rgba_hex = LFT<nk_rgba_hex_t>();
private static nk_hsva_t _nk_hsva = LFT<nk_hsva_t>();
private static nk_hsva_iv_t _nk_hsva_iv = LFT<nk_hsva_iv_t>();
private static nk_hsva_bv_t _nk_hsva_bv = LFT<nk_hsva_bv_t>();
private static nk_hsva_colorf_t _nk_hsva_colorf = LFT<nk_hsva_colorf_t>();
private static nk_hsva_colorfv_t _nk_hsva_colorfv = LFT<nk_hsva_colorfv_t>();
private static nk_hsva_f_t _nk_hsva_f = LFT<nk_hsva_f_t>();
private static nk_hsva_fv_t _nk_hsva_fv = LFT<nk_hsva_fv_t>();
private static nk_color_f_t _nk_color_f = LFT<nk_color_f_t>();
private static nk_color_fv_t _nk_color_fv = LFT<nk_color_fv_t>();
private static nk_color_cf_t _nk_color_cf = LFT<nk_color_cf_t>();
private static nk_color_d_t _nk_color_d = LFT<nk_color_d_t>();
private static nk_color_dv_t _nk_color_dv = LFT<nk_color_dv_t>();
private static nk_color_u32_t _nk_color_u32 = LFT<nk_color_u32_t>();
private static nk_color_hex_rgba_t _nk_color_hex_rgba = LFT<nk_color_hex_rgba_t>();
private static nk_color_hex_rgb_t _nk_color_hex_rgb = LFT<nk_color_hex_rgb_t>();
private static nk_color_hsv_i_t _nk_color_hsv_i = LFT<nk_color_hsv_i_t>();
private static nk_color_hsv_b_t _nk_color_hsv_b = LFT<nk_color_hsv_b_t>();
private static nk_color_hsv_iv_t _nk_color_hsv_iv = LFT<nk_color_hsv_iv_t>();
private static nk_color_hsv_bv_t _nk_color_hsv_bv = LFT<nk_color_hsv_bv_t>();
private static nk_color_hsv_f_t _nk_color_hsv_f = LFT<nk_color_hsv_f_t>();
private static nk_color_hsv_fv_t _nk_color_hsv_fv = LFT<nk_color_hsv_fv_t>();
private static nk_color_hsva_i_t _nk_color_hsva_i = LFT<nk_color_hsva_i_t>();
private static nk_color_hsva_b_t _nk_color_hsva_b = LFT<nk_color_hsva_b_t>();
private static nk_color_hsva_iv_t _nk_color_hsva_iv = LFT<nk_color_hsva_iv_t>();
private static nk_color_hsva_bv_t _nk_color_hsva_bv = LFT<nk_color_hsva_bv_t>();
private static nk_color_hsva_f_t _nk_color_hsva_f = LFT<nk_color_hsva_f_t>();
private static nk_color_hsva_fv_t _nk_color_hsva_fv = LFT<nk_color_hsva_fv_t>();
private static nk_colorf_hsva_f_t _nk_colorf_hsva_f = LFT<nk_colorf_hsva_f_t>();
private static nk_colorf_hsva_fv_t _nk_colorf_hsva_fv = LFT<nk_colorf_hsva_fv_t>();
public static void nk_style_default(nk_context* ctx) => _nk_style_default(ctx);
public static void nk_style_from_table(nk_context* ctx, nk_color* color) => _nk_style_from_table(ctx, color);
public static void nk_style_load_cursor(nk_context* ctx, nk_style_cursor scur, nk_cursor* cursor) => _nk_style_load_cursor(ctx, scur, cursor);
public static void nk_style_load_all_cursors(nk_context* ctx, nk_cursor* cursor) => _nk_style_load_all_cursors(ctx, cursor);
public static byte* nk_style_get_color_by_name(nk_style_colors scol) => _nk_style_get_color_by_name(scol);
public static void nk_style_set_font(nk_context* ctx, nk_user_font* userfont) => _nk_style_set_font(ctx, userfont);
public static int nk_style_set_cursor(nk_context* ctx, nk_style_cursor scur) => _nk_style_set_cursor(ctx, scur);
public static void nk_style_show_cursor(nk_context* ctx) => _nk_style_show_cursor(ctx);
public static void nk_style_hide_cursor(nk_context* ctx) => _nk_style_hide_cursor(ctx);
public static int nk_style_push_font(nk_context* ctx, nk_user_font* userfont) => _nk_style_push_font(ctx, userfont);
public static int nk_style_push_float(nk_context* ctx, float* f, float g) => _nk_style_push_float(ctx, f, g);
public static int nk_style_push_vec2(nk_context* ctx, nk_vec2* a, nk_vec2 b) => _nk_style_push_vec2(ctx, a, b);
public static int nk_style_push_style_item(nk_context* ctx, nk_style_item* sitem, nk_style_item sitem2) => _nk_style_push_style_item(ctx, sitem, sitem2);
public static int nk_style_push_flags(nk_context* ctx, uint* a_nkflags, uint b_nkflags) => _nk_style_push_flags(ctx, a_nkflags, b_nkflags);
public static int nk_style_push_color(nk_context* ctx, nk_color* a, nk_color b) => _nk_style_push_color(ctx, a, b);
public static int nk_style_pop_font(nk_context* ctx) => _nk_style_pop_font(ctx);
public static int nk_style_pop_float(nk_context* ctx) => _nk_style_pop_float(ctx);
public static int nk_style_pop_vec2(nk_context* ctx) => _nk_style_pop_vec2(ctx);
public static int nk_style_pop_style_item(nk_context* ctx) => _nk_style_pop_style_item(ctx);
public static int nk_style_pop_flags(nk_context* ctx) => _nk_style_pop_flags(ctx);
public static int nk_style_pop_color(nk_context* ctx) => _nk_style_pop_color(ctx);
public static nk_color nk_rgb(int r, int g, int b) => _nk_rgb(r, g, b);
public static nk_color nk_rgb_iv(int* rgb) => _nk_rgb_iv(rgb);
public static nk_color nk_rgb_bv(byte* rgb) => _nk_rgb_bv(rgb);
public static nk_color nk_rgb_cf(nk_colorf c) => _nk_rgb_cf(c);
public static nk_color nk_rgb_f(float r, float g, float b) => _nk_rgb_f(r, g, b);
public static nk_color nk_rgb_fv(float* rgb) => _nk_rgb_fv(rgb);
public static nk_color nk_rgb_hex(byte* rgb) => _nk_rgb_hex(rgb);
public static nk_color nk_rgba(int r, int g, int b, int a) => _nk_rgba(r, g, b, a);
public static nk_color nk_rgba_u32(uint rgba) => _nk_rgba_u32(rgba);
public static nk_color nk_rgba_iv(int* rgba) => _nk_rgba_iv(rgba);
public static nk_color nk_rgba_bv(byte* rgba) => _nk_rgba_bv(rgba);
public static nk_color nk_rgba_cf(nk_colorf c) => _nk_rgba_cf(c);
public static nk_color nk_rgba_f(float r, float g, float b, float a) => _nk_rgba_f(r, g, b, a);
public static nk_color nk_rgba_fv(float* rgba) => _nk_rgba_fv(rgba);
public static nk_color nk_rgba_hex(float* hsv) => _nk_rgba_hex(hsv);
public static nk_color nk_hsva(int h, int s, int v, int a) => _nk_hsva(h, s, v, a);
public static nk_color nk_hsva_iv(int* hsva) => _nk_hsva_iv(hsva);
public static nk_color nk_hsva_bv(byte* hsva) => _nk_hsva_bv(hsva);
public static nk_colorf nk_hsva_colorf(float h, float s, float v, float a) => _nk_hsva_colorf(h, s, v, a);
public static nk_colorf nk_hsva_colorfv(float* c) => _nk_hsva_colorfv(c);
public static nk_color nk_hsva_f(float h, float s, float v, float a) => _nk_hsva_f(h, s, v, a);
public static nk_color nk_hsva_fv(float* hsva) => _nk_hsva_fv(hsva);
public static void nk_color_f(out float r, out float g, out float b, out float a, nk_color src) => _nk_color_f(out r, out g, out b, out a, src);
public static void nk_color_fv(float* rgba_out, nk_color src) => _nk_color_fv(rgba_out, src);
public static nk_colorf nk_color_cf(nk_color src) => _nk_color_cf(src);
public static void nk_color_d(out double r, out double g, out double b, out double a, nk_color src) => _nk_color_d(out r, out g, out b, out a, src);
public static void nk_color_dv(double* rgba_out, nk_color src) => _nk_color_dv(rgba_out, src);
public static uint nk_color_u32(nk_color src) => _nk_color_u32(src);
public static void nk_color_hex_rgba(byte* output, nk_color src) => _nk_color_hex_rgba(output, src);
public static void nk_color_hex_rgb(byte* output, nk_color src) => _nk_color_hex_rgb(output, src);
public static void nk_color_hsv_i(out int h, out int s, out int v, nk_color src) => _nk_color_hsv_i(out h, out s, out v, src);
public static void nk_color_hsv_b(out byte h, out byte s, out byte v, nk_color src) => _nk_color_hsv_b(out h, out s, out v, src);
public static void nk_color_hsv_iv(int* hsv_out, nk_color src) => _nk_color_hsv_iv(hsv_out, src);
public static void nk_color_hsv_bv(byte* hsv_out, nk_color src) => _nk_color_hsv_bv(hsv_out, src);
public static void nk_color_hsv_f(out float h, out float s, out float v, nk_color src) => _nk_color_hsv_f(out h, out s, out v, src);
public static void nk_color_hsv_fv(float* hsv_out, nk_color src) => _nk_color_hsv_fv(hsv_out, src);
public static void nk_color_hsva_i(out int h, out int s, out int v, out int a, nk_color src) => _nk_color_hsva_i(out h, out s, out v, out a, src);
public static void nk_color_hsva_b(out byte h, out byte s, out byte v, out byte a, nk_color src) => _nk_color_hsva_b(out h, out s, out v, out a, src);
public static void nk_color_hsva_iv(int* hsva_out, nk_color src) => _nk_color_hsva_iv(hsva_out, src);
public static void nk_color_hsva_bv(byte* hsva_out, nk_color src) => _nk_color_hsva_bv(hsva_out, src);
public static void nk_color_hsva_f(out float h, out float s, out float v, out float a, nk_color src) => _nk_color_hsva_f(out h, out s, out v, out a, src);
public static void nk_color_hsva_fv(float* hsva_out, nk_color src) => _nk_color_hsva_fv(hsva_out, src);
public static void nk_colorf_hsva_f(out float h, out float s, out float v, out float a, nk_colorf src) => _nk_colorf_hsva_f(out h, out s, out v, out a, src);
public static void nk_colorf_hsva_fv(float* hsva_out, nk_colorf src) => _nk_colorf_hsva_fv(hsva_out, src);
private delegate nk_style_item nk_style_item_image_t(nk_image img);
private delegate nk_style_item nk_style_item_color_t(nk_color col);
private delegate nk_style_item nk_style_item_hide_t();
private static nk_style_item_image_t _nk_style_item_image = LFT<nk_style_item_image_t>();
private static nk_style_item_color_t _nk_style_item_color = LFT<nk_style_item_color_t>();
private static nk_style_item_hide_t _nk_style_item_hide = LFT<nk_style_item_hide_t>();
public static nk_style_item nk_style_item_image(nk_image img) => _nk_style_item_image(img);
public static nk_style_item nk_style_item_color(nk_color col) => _nk_style_item_color(col);
public static nk_style_item nk_style_item_hide() => _nk_style_item_hide();
}
}