nuklear_sys/
lib.rs

1// cargo run -- ../nuklear.h --with-derive-default --output ../nu2.rs -- -DNK_INCLUDE_COMMAND_USERDATA -D NK_INCLUDE_VERTEX_BUFFER_OUTPUT -DNK_INCLUDE_FONT_BAKING
2#![allow(dead_code,non_camel_case_types,non_upper_case_globals,non_snake_case)]
3/* automatically generated by rust-bindgen */
4
5type BindgenAlign = usize;
6
7pub const NK_UNDEFINED: f64 = -1.0;
8pub const NK_UTF_INVALID: u32 = 65533;
9pub const NK_UTF_SIZE: u32 = 4;
10pub const NK_INPUT_MAX: u32 = 16;
11pub const NK_MAX_NUMBER_BUFFER: u32 = 64;
12pub const NK_SCROLLBAR_HIDING_TIMEOUT: f64 = 4.0;
13pub const NK_TEXTEDIT_UNDOSTATECOUNT: u32 = 99;
14pub const NK_TEXTEDIT_UNDOCHARCOUNT: u32 = 999;
15pub const NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS: u32 = 16;
16pub const NK_CHART_MAX_SLOT: u32 = 4;
17pub const NK_WINDOW_MAX_NAME: u32 = 64;
18pub const NK_BUTTON_BEHAVIOR_STACK_SIZE: u32 = 8;
19pub const NK_FONT_STACK_SIZE: u32 = 8;
20pub const NK_STYLE_ITEM_STACK_SIZE: u32 = 16;
21pub const NK_FLOAT_STACK_SIZE: u32 = 32;
22pub const NK_VECTOR_STACK_SIZE: u32 = 16;
23pub const NK_FLAGS_STACK_SIZE: u32 = 32;
24pub const NK_COLOR_STACK_SIZE: u32 = 32;
25pub const NK_PI: f64 = ::std::f64::consts::PI;
26pub const NK_MAX_FLOAT_PRECISION: u32 = 2;
27pub type nk_char = ::std::os::raw::c_schar;
28pub type nk_uchar = ::std::os::raw::c_uchar;
29pub type nk_byte = ::std::os::raw::c_uchar;
30pub type nk_short = ::std::os::raw::c_short;
31pub type nk_ushort = ::std::os::raw::c_ushort;
32pub type nk_int = ::std::os::raw::c_int;
33pub type nk_uint = ::std::os::raw::c_uint;
34pub type nk_size = usize;
35pub type nk_ptr = usize;
36pub type nk_hash = nk_uint;
37pub type nk_flags = nk_uint;
38pub type nk_rune = nk_uint;
39pub type _dummy_array415 = [::std::os::raw::c_char; 1usize];
40pub type _dummy_array416 = [::std::os::raw::c_char; 1usize];
41pub type _dummy_array417 = [::std::os::raw::c_char; 1usize];
42pub type _dummy_array418 = [::std::os::raw::c_char; 1usize];
43pub type _dummy_array419 = [::std::os::raw::c_char; 1usize];
44pub type _dummy_array420 = [::std::os::raw::c_char; 1usize];
45pub type _dummy_array421 = [::std::os::raw::c_char; 1usize];
46#[repr(C)]
47#[derive(Debug, Copy, Clone)]
48pub struct nk_style_slide {
49    _unused: [u8; 0],
50}
51pub const nk_false: _bindgen_ty_1 = 0;
52pub const nk_true: _bindgen_ty_1 = 1;
53pub type _bindgen_ty_1 = u32;
54#[repr(C)]
55#[derive(Debug, Default, Copy, Clone)]
56pub struct nk_color {
57    pub r: nk_byte,
58    pub g: nk_byte,
59    pub b: nk_byte,
60    pub a: nk_byte,
61}
62#[test]
63fn bindgen_test_layout_nk_color() {
64    assert_eq!(
65        ::std::mem::size_of::<nk_color>(),
66        4usize,
67        concat!("Size of: ", stringify!(nk_color))
68    );
69    assert_eq!(
70        ::std::mem::align_of::<nk_color>(),
71        1usize,
72        concat!("Alignment of ", stringify!(nk_color))
73    );
74    assert_eq!(
75        unsafe { &(*(::std::ptr::null::<nk_color>())).r as *const _ as usize },
76        0usize,
77        concat!(
78            "Offset of field: ",
79            stringify!(nk_color),
80            "::",
81            stringify!(r)
82        )
83    );
84    assert_eq!(
85        unsafe { &(*(::std::ptr::null::<nk_color>())).g as *const _ as usize },
86        1usize,
87        concat!(
88            "Offset of field: ",
89            stringify!(nk_color),
90            "::",
91            stringify!(g)
92        )
93    );
94    assert_eq!(
95        unsafe { &(*(::std::ptr::null::<nk_color>())).b as *const _ as usize },
96        2usize,
97        concat!(
98            "Offset of field: ",
99            stringify!(nk_color),
100            "::",
101            stringify!(b)
102        )
103    );
104    assert_eq!(
105        unsafe { &(*(::std::ptr::null::<nk_color>())).a as *const _ as usize },
106        3usize,
107        concat!(
108            "Offset of field: ",
109            stringify!(nk_color),
110            "::",
111            stringify!(a)
112        )
113    );
114}
115#[repr(C)]
116#[derive(Debug, Default, Copy, Clone)]
117pub struct nk_colorf {
118    pub r: f32,
119    pub g: f32,
120    pub b: f32,
121    pub a: f32,
122}
123#[test]
124fn bindgen_test_layout_nk_colorf() {
125    assert_eq!(
126        ::std::mem::size_of::<nk_colorf>(),
127        16usize,
128        concat!("Size of: ", stringify!(nk_colorf))
129    );
130    assert_eq!(
131        ::std::mem::align_of::<nk_colorf>(),
132        4usize,
133        concat!("Alignment of ", stringify!(nk_colorf))
134    );
135    assert_eq!(
136        unsafe { &(*(::std::ptr::null::<nk_colorf>())).r as *const _ as usize },
137        0usize,
138        concat!(
139            "Offset of field: ",
140            stringify!(nk_colorf),
141            "::",
142            stringify!(r)
143        )
144    );
145    assert_eq!(
146        unsafe { &(*(::std::ptr::null::<nk_colorf>())).g as *const _ as usize },
147        4usize,
148        concat!(
149            "Offset of field: ",
150            stringify!(nk_colorf),
151            "::",
152            stringify!(g)
153        )
154    );
155    assert_eq!(
156        unsafe { &(*(::std::ptr::null::<nk_colorf>())).b as *const _ as usize },
157        8usize,
158        concat!(
159            "Offset of field: ",
160            stringify!(nk_colorf),
161            "::",
162            stringify!(b)
163        )
164    );
165    assert_eq!(
166        unsafe { &(*(::std::ptr::null::<nk_colorf>())).a as *const _ as usize },
167        12usize,
168        concat!(
169            "Offset of field: ",
170            stringify!(nk_colorf),
171            "::",
172            stringify!(a)
173        )
174    );
175}
176#[repr(C)]
177#[derive(Debug, Default, Copy, Clone)]
178pub struct nk_vec2 {
179    pub x: f32,
180    pub y: f32,
181}
182#[test]
183fn bindgen_test_layout_nk_vec2() {
184    assert_eq!(
185        ::std::mem::size_of::<nk_vec2>(),
186        8usize,
187        concat!("Size of: ", stringify!(nk_vec2))
188    );
189    assert_eq!(
190        ::std::mem::align_of::<nk_vec2>(),
191        4usize,
192        concat!("Alignment of ", stringify!(nk_vec2))
193    );
194    assert_eq!(
195        unsafe { &(*(::std::ptr::null::<nk_vec2>())).x as *const _ as usize },
196        0usize,
197        concat!(
198            "Offset of field: ",
199            stringify!(nk_vec2),
200            "::",
201            stringify!(x)
202        )
203    );
204    assert_eq!(
205        unsafe { &(*(::std::ptr::null::<nk_vec2>())).y as *const _ as usize },
206        4usize,
207        concat!(
208            "Offset of field: ",
209            stringify!(nk_vec2),
210            "::",
211            stringify!(y)
212        )
213    );
214}
215#[repr(C)]
216#[derive(Debug, Default, Copy, Clone)]
217pub struct nk_vec2i {
218    pub x: ::std::os::raw::c_short,
219    pub y: ::std::os::raw::c_short,
220}
221#[test]
222fn bindgen_test_layout_nk_vec2i() {
223    assert_eq!(
224        ::std::mem::size_of::<nk_vec2i>(),
225        4usize,
226        concat!("Size of: ", stringify!(nk_vec2i))
227    );
228    assert_eq!(
229        ::std::mem::align_of::<nk_vec2i>(),
230        2usize,
231        concat!("Alignment of ", stringify!(nk_vec2i))
232    );
233    assert_eq!(
234        unsafe { &(*(::std::ptr::null::<nk_vec2i>())).x as *const _ as usize },
235        0usize,
236        concat!(
237            "Offset of field: ",
238            stringify!(nk_vec2i),
239            "::",
240            stringify!(x)
241        )
242    );
243    assert_eq!(
244        unsafe { &(*(::std::ptr::null::<nk_vec2i>())).y as *const _ as usize },
245        2usize,
246        concat!(
247            "Offset of field: ",
248            stringify!(nk_vec2i),
249            "::",
250            stringify!(y)
251        )
252    );
253}
254#[repr(C)]
255#[derive(Debug, Default, Copy, Clone)]
256pub struct nk_rect {
257    pub x: f32,
258    pub y: f32,
259    pub w: f32,
260    pub h: f32,
261}
262#[test]
263fn bindgen_test_layout_nk_rect() {
264    assert_eq!(
265        ::std::mem::size_of::<nk_rect>(),
266        16usize,
267        concat!("Size of: ", stringify!(nk_rect))
268    );
269    assert_eq!(
270        ::std::mem::align_of::<nk_rect>(),
271        4usize,
272        concat!("Alignment of ", stringify!(nk_rect))
273    );
274    assert_eq!(
275        unsafe { &(*(::std::ptr::null::<nk_rect>())).x as *const _ as usize },
276        0usize,
277        concat!(
278            "Offset of field: ",
279            stringify!(nk_rect),
280            "::",
281            stringify!(x)
282        )
283    );
284    assert_eq!(
285        unsafe { &(*(::std::ptr::null::<nk_rect>())).y as *const _ as usize },
286        4usize,
287        concat!(
288            "Offset of field: ",
289            stringify!(nk_rect),
290            "::",
291            stringify!(y)
292        )
293    );
294    assert_eq!(
295        unsafe { &(*(::std::ptr::null::<nk_rect>())).w as *const _ as usize },
296        8usize,
297        concat!(
298            "Offset of field: ",
299            stringify!(nk_rect),
300            "::",
301            stringify!(w)
302        )
303    );
304    assert_eq!(
305        unsafe { &(*(::std::ptr::null::<nk_rect>())).h as *const _ as usize },
306        12usize,
307        concat!(
308            "Offset of field: ",
309            stringify!(nk_rect),
310            "::",
311            stringify!(h)
312        )
313    );
314}
315#[repr(C)]
316#[derive(Debug, Default, Copy, Clone)]
317pub struct nk_recti {
318    pub x: ::std::os::raw::c_short,
319    pub y: ::std::os::raw::c_short,
320    pub w: ::std::os::raw::c_short,
321    pub h: ::std::os::raw::c_short,
322}
323#[test]
324fn bindgen_test_layout_nk_recti() {
325    assert_eq!(
326        ::std::mem::size_of::<nk_recti>(),
327        8usize,
328        concat!("Size of: ", stringify!(nk_recti))
329    );
330    assert_eq!(
331        ::std::mem::align_of::<nk_recti>(),
332        2usize,
333        concat!("Alignment of ", stringify!(nk_recti))
334    );
335    assert_eq!(
336        unsafe { &(*(::std::ptr::null::<nk_recti>())).x as *const _ as usize },
337        0usize,
338        concat!(
339            "Offset of field: ",
340            stringify!(nk_recti),
341            "::",
342            stringify!(x)
343        )
344    );
345    assert_eq!(
346        unsafe { &(*(::std::ptr::null::<nk_recti>())).y as *const _ as usize },
347        2usize,
348        concat!(
349            "Offset of field: ",
350            stringify!(nk_recti),
351            "::",
352            stringify!(y)
353        )
354    );
355    assert_eq!(
356        unsafe { &(*(::std::ptr::null::<nk_recti>())).w as *const _ as usize },
357        4usize,
358        concat!(
359            "Offset of field: ",
360            stringify!(nk_recti),
361            "::",
362            stringify!(w)
363        )
364    );
365    assert_eq!(
366        unsafe { &(*(::std::ptr::null::<nk_recti>())).h as *const _ as usize },
367        6usize,
368        concat!(
369            "Offset of field: ",
370            stringify!(nk_recti),
371            "::",
372            stringify!(h)
373        )
374    );
375}
376pub type nk_glyph = [::std::os::raw::c_char; 4usize];
377#[repr(C)]
378#[derive(Copy, Clone)]
379pub union nk_handle {
380    pub ptr: *mut ::std::os::raw::c_void,
381    pub id: ::std::os::raw::c_int,
382    _bindgen_union_align: BindgenAlign,
383}
384#[test]
385fn bindgen_test_layout_nk_handle() {
386    assert_eq!(
387        ::std::mem::size_of::<nk_handle>(),
388        8usize,
389        concat!("Size of: ", stringify!(nk_handle))
390    );
391    assert_eq!(
392        ::std::mem::align_of::<nk_handle>(),
393        8usize,
394        concat!("Alignment of ", stringify!(nk_handle))
395    );
396    assert_eq!(
397        unsafe {
398            &(*(::std::ptr::null::<nk_handle>())).ptr as *const _ as usize
399        },
400        0usize,
401        concat!(
402            "Offset of field: ",
403            stringify!(nk_handle),
404            "::",
405            stringify!(ptr)
406        )
407    );
408    assert_eq!(
409        unsafe {
410            &(*(::std::ptr::null::<nk_handle>())).id as *const _ as usize
411        },
412        0usize,
413        concat!(
414            "Offset of field: ",
415            stringify!(nk_handle),
416            "::",
417            stringify!(id)
418        )
419    );
420}
421impl Default for nk_handle {
422    fn default() -> Self {
423        unsafe { ::std::mem::zeroed() }
424    }
425}
426#[repr(C)]
427#[derive(Copy, Clone)]
428pub struct nk_image {
429    pub handle: nk_handle,
430    pub w: ::std::os::raw::c_ushort,
431    pub h: ::std::os::raw::c_ushort,
432    pub region: [::std::os::raw::c_ushort; 4usize],
433}
434#[test]
435fn bindgen_test_layout_nk_image() {
436    assert_eq!(
437        ::std::mem::size_of::<nk_image>(),
438        24usize,
439        concat!("Size of: ", stringify!(nk_image))
440    );
441    assert_eq!(
442        ::std::mem::align_of::<nk_image>(),
443        8usize,
444        concat!("Alignment of ", stringify!(nk_image))
445    );
446    assert_eq!(
447        unsafe {
448            &(*(::std::ptr::null::<nk_image>())).handle as *const _ as usize
449        },
450        0usize,
451        concat!(
452            "Offset of field: ",
453            stringify!(nk_image),
454            "::",
455            stringify!(handle)
456        )
457    );
458    assert_eq!(
459        unsafe { &(*(::std::ptr::null::<nk_image>())).w as *const _ as usize },
460        8usize,
461        concat!(
462            "Offset of field: ",
463            stringify!(nk_image),
464            "::",
465            stringify!(w)
466        )
467    );
468    assert_eq!(
469        unsafe { &(*(::std::ptr::null::<nk_image>())).h as *const _ as usize },
470        10usize,
471        concat!(
472            "Offset of field: ",
473            stringify!(nk_image),
474            "::",
475            stringify!(h)
476        )
477    );
478    assert_eq!(
479        unsafe {
480            &(*(::std::ptr::null::<nk_image>())).region as *const _ as usize
481        },
482        12usize,
483        concat!(
484            "Offset of field: ",
485            stringify!(nk_image),
486            "::",
487            stringify!(region)
488        )
489    );
490}
491impl Default for nk_image {
492    fn default() -> Self {
493        unsafe { ::std::mem::zeroed() }
494    }
495}
496#[repr(C)]
497#[derive(Copy, Clone)]
498pub struct nk_cursor {
499    pub img: nk_image,
500    pub size: nk_vec2,
501    pub offset: nk_vec2,
502}
503#[test]
504fn bindgen_test_layout_nk_cursor() {
505    assert_eq!(
506        ::std::mem::size_of::<nk_cursor>(),
507        40usize,
508        concat!("Size of: ", stringify!(nk_cursor))
509    );
510    assert_eq!(
511        ::std::mem::align_of::<nk_cursor>(),
512        8usize,
513        concat!("Alignment of ", stringify!(nk_cursor))
514    );
515    assert_eq!(
516        unsafe {
517            &(*(::std::ptr::null::<nk_cursor>())).img as *const _ as usize
518        },
519        0usize,
520        concat!(
521            "Offset of field: ",
522            stringify!(nk_cursor),
523            "::",
524            stringify!(img)
525        )
526    );
527    assert_eq!(
528        unsafe {
529            &(*(::std::ptr::null::<nk_cursor>())).size as *const _ as usize
530        },
531        24usize,
532        concat!(
533            "Offset of field: ",
534            stringify!(nk_cursor),
535            "::",
536            stringify!(size)
537        )
538    );
539    assert_eq!(
540        unsafe {
541            &(*(::std::ptr::null::<nk_cursor>())).offset as *const _ as usize
542        },
543        32usize,
544        concat!(
545            "Offset of field: ",
546            stringify!(nk_cursor),
547            "::",
548            stringify!(offset)
549        )
550    );
551}
552impl Default for nk_cursor {
553    fn default() -> Self {
554        unsafe { ::std::mem::zeroed() }
555    }
556}
557#[repr(C)]
558#[derive(Debug, Default, Copy, Clone)]
559pub struct nk_scroll {
560    pub x: nk_uint,
561    pub y: nk_uint,
562}
563#[test]
564fn bindgen_test_layout_nk_scroll() {
565    assert_eq!(
566        ::std::mem::size_of::<nk_scroll>(),
567        8usize,
568        concat!("Size of: ", stringify!(nk_scroll))
569    );
570    assert_eq!(
571        ::std::mem::align_of::<nk_scroll>(),
572        4usize,
573        concat!("Alignment of ", stringify!(nk_scroll))
574    );
575    assert_eq!(
576        unsafe { &(*(::std::ptr::null::<nk_scroll>())).x as *const _ as usize },
577        0usize,
578        concat!(
579            "Offset of field: ",
580            stringify!(nk_scroll),
581            "::",
582            stringify!(x)
583        )
584    );
585    assert_eq!(
586        unsafe { &(*(::std::ptr::null::<nk_scroll>())).y as *const _ as usize },
587        4usize,
588        concat!(
589            "Offset of field: ",
590            stringify!(nk_scroll),
591            "::",
592            stringify!(y)
593        )
594    );
595}
596pub const nk_heading_NK_UP: nk_heading = 0;
597pub const nk_heading_NK_RIGHT: nk_heading = 1;
598pub const nk_heading_NK_DOWN: nk_heading = 2;
599pub const nk_heading_NK_LEFT: nk_heading = 3;
600pub type nk_heading = u32;
601pub const nk_button_behavior_NK_BUTTON_DEFAULT: nk_button_behavior = 0;
602pub const nk_button_behavior_NK_BUTTON_REPEATER: nk_button_behavior = 1;
603pub type nk_button_behavior = u32;
604pub const nk_modify_NK_FIXED: nk_modify = 0;
605pub const nk_modify_NK_MODIFIABLE: nk_modify = 1;
606pub type nk_modify = u32;
607pub const nk_orientation_NK_VERTICAL: nk_orientation = 0;
608pub const nk_orientation_NK_HORIZONTAL: nk_orientation = 1;
609pub type nk_orientation = u32;
610pub const nk_collapse_states_NK_MINIMIZED: nk_collapse_states = 0;
611pub const nk_collapse_states_NK_MAXIMIZED: nk_collapse_states = 1;
612pub type nk_collapse_states = u32;
613pub const nk_show_states_NK_HIDDEN: nk_show_states = 0;
614pub const nk_show_states_NK_SHOWN: nk_show_states = 1;
615pub type nk_show_states = u32;
616pub const nk_chart_type_NK_CHART_LINES: nk_chart_type = 0;
617pub const nk_chart_type_NK_CHART_COLUMN: nk_chart_type = 1;
618pub const nk_chart_type_NK_CHART_MAX: nk_chart_type = 2;
619pub type nk_chart_type = u32;
620pub const nk_chart_event_NK_CHART_HOVERING: nk_chart_event = 1;
621pub const nk_chart_event_NK_CHART_CLICKED: nk_chart_event = 2;
622pub type nk_chart_event = u32;
623pub const nk_color_format_NK_RGB: nk_color_format = 0;
624pub const nk_color_format_NK_RGBA: nk_color_format = 1;
625pub type nk_color_format = u32;
626pub const nk_popup_type_NK_POPUP_STATIC: nk_popup_type = 0;
627pub const nk_popup_type_NK_POPUP_DYNAMIC: nk_popup_type = 1;
628pub type nk_popup_type = u32;
629pub const nk_layout_format_NK_DYNAMIC: nk_layout_format = 0;
630pub const nk_layout_format_NK_STATIC: nk_layout_format = 1;
631pub type nk_layout_format = u32;
632pub const nk_tree_type_NK_TREE_NODE: nk_tree_type = 0;
633pub const nk_tree_type_NK_TREE_TAB: nk_tree_type = 1;
634pub type nk_tree_type = u32;
635pub type nk_plugin_alloc = ::std::option::Option<
636    unsafe extern "C" fn(
637        arg1: nk_handle,
638        old: *mut ::std::os::raw::c_void,
639        arg2: nk_size,
640    ) -> *mut ::std::os::raw::c_void,
641>;
642pub type nk_plugin_free = ::std::option::Option<
643    unsafe extern "C" fn(arg1: nk_handle, old: *mut ::std::os::raw::c_void),
644>;
645pub type nk_plugin_filter = ::std::option::Option<
646    unsafe extern "C" fn(
647        arg1: *const nk_text_edit,
648        unicode: nk_rune,
649    ) -> ::std::os::raw::c_int,
650>;
651pub type nk_plugin_paste = ::std::option::Option<
652    unsafe extern "C" fn(arg1: nk_handle, arg2: *mut nk_text_edit),
653>;
654pub type nk_plugin_copy = ::std::option::Option<
655    unsafe extern "C" fn(
656        arg1: nk_handle,
657        arg2: *const ::std::os::raw::c_char,
658        len: ::std::os::raw::c_int,
659    ),
660>;
661#[repr(C)]
662#[derive(Copy, Clone)]
663pub struct nk_allocator {
664    pub userdata: nk_handle,
665    pub alloc: nk_plugin_alloc,
666    pub free: nk_plugin_free,
667}
668#[test]
669fn bindgen_test_layout_nk_allocator() {
670    assert_eq!(
671        ::std::mem::size_of::<nk_allocator>(),
672        24usize,
673        concat!("Size of: ", stringify!(nk_allocator))
674    );
675    assert_eq!(
676        ::std::mem::align_of::<nk_allocator>(),
677        8usize,
678        concat!("Alignment of ", stringify!(nk_allocator))
679    );
680    assert_eq!(
681        unsafe {
682            &(*(::std::ptr::null::<nk_allocator>())).userdata as *const _
683                as usize
684        },
685        0usize,
686        concat!(
687            "Offset of field: ",
688            stringify!(nk_allocator),
689            "::",
690            stringify!(userdata)
691        )
692    );
693    assert_eq!(
694        unsafe {
695            &(*(::std::ptr::null::<nk_allocator>())).alloc as *const _ as usize
696        },
697        8usize,
698        concat!(
699            "Offset of field: ",
700            stringify!(nk_allocator),
701            "::",
702            stringify!(alloc)
703        )
704    );
705    assert_eq!(
706        unsafe {
707            &(*(::std::ptr::null::<nk_allocator>())).free as *const _ as usize
708        },
709        16usize,
710        concat!(
711            "Offset of field: ",
712            stringify!(nk_allocator),
713            "::",
714            stringify!(free)
715        )
716    );
717}
718impl Default for nk_allocator {
719    fn default() -> Self {
720        unsafe { ::std::mem::zeroed() }
721    }
722}
723pub const nk_symbol_type_NK_SYMBOL_NONE: nk_symbol_type = 0;
724pub const nk_symbol_type_NK_SYMBOL_X: nk_symbol_type = 1;
725pub const nk_symbol_type_NK_SYMBOL_UNDERSCORE: nk_symbol_type = 2;
726pub const nk_symbol_type_NK_SYMBOL_CIRCLE_SOLID: nk_symbol_type = 3;
727pub const nk_symbol_type_NK_SYMBOL_CIRCLE_OUTLINE: nk_symbol_type = 4;
728pub const nk_symbol_type_NK_SYMBOL_RECT_SOLID: nk_symbol_type = 5;
729pub const nk_symbol_type_NK_SYMBOL_RECT_OUTLINE: nk_symbol_type = 6;
730pub const nk_symbol_type_NK_SYMBOL_TRIANGLE_UP: nk_symbol_type = 7;
731pub const nk_symbol_type_NK_SYMBOL_TRIANGLE_DOWN: nk_symbol_type = 8;
732pub const nk_symbol_type_NK_SYMBOL_TRIANGLE_LEFT: nk_symbol_type = 9;
733pub const nk_symbol_type_NK_SYMBOL_TRIANGLE_RIGHT: nk_symbol_type = 10;
734pub const nk_symbol_type_NK_SYMBOL_PLUS: nk_symbol_type = 11;
735pub const nk_symbol_type_NK_SYMBOL_MINUS: nk_symbol_type = 12;
736pub const nk_symbol_type_NK_SYMBOL_MAX: nk_symbol_type = 13;
737pub type nk_symbol_type = u32;
738extern "C" {
739    pub fn nk_init_fixed(
740        arg1: *mut nk_context,
741        memory: *mut ::std::os::raw::c_void,
742        size: nk_size,
743        arg2: *const nk_user_font,
744    ) -> ::std::os::raw::c_int;
745}
746extern "C" {
747    pub fn nk_init(
748        arg1: *mut nk_context,
749        arg2: *mut nk_allocator,
750        arg3: *const nk_user_font,
751    ) -> ::std::os::raw::c_int;
752}
753extern "C" {
754    pub fn nk_init_custom(
755        arg1: *mut nk_context,
756        cmds: *mut nk_buffer,
757        pool: *mut nk_buffer,
758        arg2: *const nk_user_font,
759    ) -> ::std::os::raw::c_int;
760}
761extern "C" {
762    pub fn nk_clear(arg1: *mut nk_context);
763}
764extern "C" {
765    pub fn nk_free(arg1: *mut nk_context);
766}
767extern "C" {
768    pub fn nk_set_user_data(arg1: *mut nk_context, handle: nk_handle);
769}
770pub const nk_keys_NK_KEY_NONE: nk_keys = 0;
771pub const nk_keys_NK_KEY_SHIFT: nk_keys = 1;
772pub const nk_keys_NK_KEY_CTRL: nk_keys = 2;
773pub const nk_keys_NK_KEY_DEL: nk_keys = 3;
774pub const nk_keys_NK_KEY_ENTER: nk_keys = 4;
775pub const nk_keys_NK_KEY_TAB: nk_keys = 5;
776pub const nk_keys_NK_KEY_BACKSPACE: nk_keys = 6;
777pub const nk_keys_NK_KEY_COPY: nk_keys = 7;
778pub const nk_keys_NK_KEY_CUT: nk_keys = 8;
779pub const nk_keys_NK_KEY_PASTE: nk_keys = 9;
780pub const nk_keys_NK_KEY_UP: nk_keys = 10;
781pub const nk_keys_NK_KEY_DOWN: nk_keys = 11;
782pub const nk_keys_NK_KEY_LEFT: nk_keys = 12;
783pub const nk_keys_NK_KEY_RIGHT: nk_keys = 13;
784pub const nk_keys_NK_KEY_TEXT_INSERT_MODE: nk_keys = 14;
785pub const nk_keys_NK_KEY_TEXT_REPLACE_MODE: nk_keys = 15;
786pub const nk_keys_NK_KEY_TEXT_RESET_MODE: nk_keys = 16;
787pub const nk_keys_NK_KEY_TEXT_LINE_START: nk_keys = 17;
788pub const nk_keys_NK_KEY_TEXT_LINE_END: nk_keys = 18;
789pub const nk_keys_NK_KEY_TEXT_START: nk_keys = 19;
790pub const nk_keys_NK_KEY_TEXT_END: nk_keys = 20;
791pub const nk_keys_NK_KEY_TEXT_UNDO: nk_keys = 21;
792pub const nk_keys_NK_KEY_TEXT_REDO: nk_keys = 22;
793pub const nk_keys_NK_KEY_TEXT_SELECT_ALL: nk_keys = 23;
794pub const nk_keys_NK_KEY_TEXT_WORD_LEFT: nk_keys = 24;
795pub const nk_keys_NK_KEY_TEXT_WORD_RIGHT: nk_keys = 25;
796pub const nk_keys_NK_KEY_SCROLL_START: nk_keys = 26;
797pub const nk_keys_NK_KEY_SCROLL_END: nk_keys = 27;
798pub const nk_keys_NK_KEY_SCROLL_DOWN: nk_keys = 28;
799pub const nk_keys_NK_KEY_SCROLL_UP: nk_keys = 29;
800pub const nk_keys_NK_KEY_MAX: nk_keys = 30;
801pub type nk_keys = u32;
802pub const nk_buttons_NK_BUTTON_LEFT: nk_buttons = 0;
803pub const nk_buttons_NK_BUTTON_MIDDLE: nk_buttons = 1;
804pub const nk_buttons_NK_BUTTON_RIGHT: nk_buttons = 2;
805pub const nk_buttons_NK_BUTTON_DOUBLE: nk_buttons = 3;
806pub const nk_buttons_NK_BUTTON_MAX: nk_buttons = 4;
807pub type nk_buttons = u32;
808extern "C" {
809    pub fn nk_input_begin(arg1: *mut nk_context);
810}
811extern "C" {
812    pub fn nk_input_motion(
813        arg1: *mut nk_context,
814        x: ::std::os::raw::c_int,
815        y: ::std::os::raw::c_int,
816    );
817}
818extern "C" {
819    pub fn nk_input_key(
820        arg1: *mut nk_context,
821        arg2: nk_keys,
822        down: ::std::os::raw::c_int,
823    );
824}
825extern "C" {
826    pub fn nk_input_button(
827        arg1: *mut nk_context,
828        arg2: nk_buttons,
829        x: ::std::os::raw::c_int,
830        y: ::std::os::raw::c_int,
831        down: ::std::os::raw::c_int,
832    );
833}
834extern "C" {
835    pub fn nk_input_scroll(arg1: *mut nk_context, val: nk_vec2);
836}
837extern "C" {
838    pub fn nk_input_char(arg1: *mut nk_context, arg2: ::std::os::raw::c_char);
839}
840extern "C" {
841    pub fn nk_input_glyph(
842        arg1: *mut nk_context,
843        arg2: *mut ::std::os::raw::c_char,
844    );
845}
846extern "C" {
847    pub fn nk_input_unicode(arg1: *mut nk_context, arg2: nk_rune);
848}
849extern "C" {
850    pub fn nk_input_end(arg1: *mut nk_context);
851}
852pub const nk_anti_aliasing_NK_ANTI_ALIASING_OFF: nk_anti_aliasing = 0;
853pub const nk_anti_aliasing_NK_ANTI_ALIASING_ON: nk_anti_aliasing = 1;
854pub type nk_anti_aliasing = u32;
855pub const nk_convert_result_NK_CONVERT_SUCCESS: nk_convert_result = 0;
856pub const nk_convert_result_NK_CONVERT_INVALID_PARAM: nk_convert_result = 1;
857pub const nk_convert_result_NK_CONVERT_COMMAND_BUFFER_FULL: nk_convert_result =
858    2;
859pub const nk_convert_result_NK_CONVERT_VERTEX_BUFFER_FULL: nk_convert_result =
860    4;
861pub const nk_convert_result_NK_CONVERT_ELEMENT_BUFFER_FULL: nk_convert_result =
862    8;
863pub type nk_convert_result = u32;
864#[repr(C)]
865#[derive(Copy, Clone)]
866pub struct nk_draw_null_texture {
867    pub texture: nk_handle,
868    pub uv: nk_vec2,
869}
870#[test]
871fn bindgen_test_layout_nk_draw_null_texture() {
872    assert_eq!(
873        ::std::mem::size_of::<nk_draw_null_texture>(),
874        16usize,
875        concat!("Size of: ", stringify!(nk_draw_null_texture))
876    );
877    assert_eq!(
878        ::std::mem::align_of::<nk_draw_null_texture>(),
879        8usize,
880        concat!("Alignment of ", stringify!(nk_draw_null_texture))
881    );
882    assert_eq!(
883        unsafe {
884            &(*(::std::ptr::null::<nk_draw_null_texture>())).texture as *const _
885                as usize
886        },
887        0usize,
888        concat!(
889            "Offset of field: ",
890            stringify!(nk_draw_null_texture),
891            "::",
892            stringify!(texture)
893        )
894    );
895    assert_eq!(
896        unsafe {
897            &(*(::std::ptr::null::<nk_draw_null_texture>())).uv as *const _
898                as usize
899        },
900        8usize,
901        concat!(
902            "Offset of field: ",
903            stringify!(nk_draw_null_texture),
904            "::",
905            stringify!(uv)
906        )
907    );
908}
909impl Default for nk_draw_null_texture {
910    fn default() -> Self {
911        unsafe { ::std::mem::zeroed() }
912    }
913}
914#[repr(C)]
915#[derive(Copy, Clone)]
916pub struct nk_convert_config {
917    pub global_alpha: f32,
918    pub line_AA: nk_anti_aliasing,
919    pub shape_AA: nk_anti_aliasing,
920    pub circle_segment_count: ::std::os::raw::c_uint,
921    pub arc_segment_count: ::std::os::raw::c_uint,
922    pub curve_segment_count: ::std::os::raw::c_uint,
923    pub null: nk_draw_null_texture,
924    pub vertex_layout: *const nk_draw_vertex_layout_element,
925    pub vertex_size: nk_size,
926    pub vertex_alignment: nk_size,
927}
928#[test]
929fn bindgen_test_layout_nk_convert_config() {
930    assert_eq!(
931        ::std::mem::size_of::<nk_convert_config>(),
932        56usize,
933        concat!("Size of: ", stringify!(nk_convert_config))
934    );
935    assert_eq!(
936        ::std::mem::align_of::<nk_convert_config>(),
937        8usize,
938        concat!("Alignment of ", stringify!(nk_convert_config))
939    );
940    assert_eq!(
941        unsafe {
942            &(*(::std::ptr::null::<nk_convert_config>())).global_alpha
943                as *const _ as usize
944        },
945        0usize,
946        concat!(
947            "Offset of field: ",
948            stringify!(nk_convert_config),
949            "::",
950            stringify!(global_alpha)
951        )
952    );
953    assert_eq!(
954        unsafe {
955            &(*(::std::ptr::null::<nk_convert_config>())).line_AA as *const _
956                as usize
957        },
958        4usize,
959        concat!(
960            "Offset of field: ",
961            stringify!(nk_convert_config),
962            "::",
963            stringify!(line_AA)
964        )
965    );
966    assert_eq!(
967        unsafe {
968            &(*(::std::ptr::null::<nk_convert_config>())).shape_AA as *const _
969                as usize
970        },
971        8usize,
972        concat!(
973            "Offset of field: ",
974            stringify!(nk_convert_config),
975            "::",
976            stringify!(shape_AA)
977        )
978    );
979    assert_eq!(
980        unsafe {
981            &(*(::std::ptr::null::<nk_convert_config>())).circle_segment_count
982                as *const _ as usize
983        },
984        12usize,
985        concat!(
986            "Offset of field: ",
987            stringify!(nk_convert_config),
988            "::",
989            stringify!(circle_segment_count)
990        )
991    );
992    assert_eq!(
993        unsafe {
994            &(*(::std::ptr::null::<nk_convert_config>())).arc_segment_count
995                as *const _ as usize
996        },
997        16usize,
998        concat!(
999            "Offset of field: ",
1000            stringify!(nk_convert_config),
1001            "::",
1002            stringify!(arc_segment_count)
1003        )
1004    );
1005    assert_eq!(
1006        unsafe {
1007            &(*(::std::ptr::null::<nk_convert_config>())).curve_segment_count
1008                as *const _ as usize
1009        },
1010        20usize,
1011        concat!(
1012            "Offset of field: ",
1013            stringify!(nk_convert_config),
1014            "::",
1015            stringify!(curve_segment_count)
1016        )
1017    );
1018    assert_eq!(
1019        unsafe {
1020            &(*(::std::ptr::null::<nk_convert_config>())).null as *const _
1021                as usize
1022        },
1023        24usize,
1024        concat!(
1025            "Offset of field: ",
1026            stringify!(nk_convert_config),
1027            "::",
1028            stringify!(null)
1029        )
1030    );
1031    assert_eq!(
1032        unsafe {
1033            &(*(::std::ptr::null::<nk_convert_config>())).vertex_layout
1034                as *const _ as usize
1035        },
1036        40usize,
1037        concat!(
1038            "Offset of field: ",
1039            stringify!(nk_convert_config),
1040            "::",
1041            stringify!(vertex_layout)
1042        )
1043    );
1044    assert_eq!(
1045        unsafe {
1046            &(*(::std::ptr::null::<nk_convert_config>())).vertex_size
1047                as *const _ as usize
1048        },
1049        48usize,
1050        concat!(
1051            "Offset of field: ",
1052            stringify!(nk_convert_config),
1053            "::",
1054            stringify!(vertex_size)
1055        )
1056    );
1057    assert_eq!(
1058        unsafe {
1059            &(*(::std::ptr::null::<nk_convert_config>())).vertex_alignment
1060                as *const _ as usize
1061        },
1062        52usize,
1063        concat!(
1064            "Offset of field: ",
1065            stringify!(nk_convert_config),
1066            "::",
1067            stringify!(vertex_alignment)
1068        )
1069    );
1070}
1071impl Default for nk_convert_config {
1072    fn default() -> Self {
1073        unsafe { ::std::mem::zeroed() }
1074    }
1075}
1076extern "C" {
1077    pub fn nk__begin(arg1: *mut nk_context) -> *const nk_command;
1078}
1079extern "C" {
1080    pub fn nk__next(
1081        arg1: *mut nk_context,
1082        arg2: *const nk_command,
1083    ) -> *const nk_command;
1084}
1085extern "C" {
1086    pub fn nk_convert(
1087        arg1: *mut nk_context,
1088        cmds: *mut nk_buffer,
1089        vertices: *mut nk_buffer,
1090        elements: *mut nk_buffer,
1091        arg2: *const nk_convert_config,
1092    ) -> nk_flags;
1093}
1094extern "C" {
1095    pub fn nk__draw_begin(
1096        arg1: *const nk_context,
1097        arg2: *const nk_buffer,
1098    ) -> *const nk_draw_command;
1099}
1100extern "C" {
1101    pub fn nk__draw_end(
1102        arg1: *const nk_context,
1103        arg2: *const nk_buffer,
1104    ) -> *const nk_draw_command;
1105}
1106extern "C" {
1107    pub fn nk__draw_next(
1108        arg1: *const nk_draw_command,
1109        arg2: *const nk_buffer,
1110        arg3: *const nk_context,
1111    ) -> *const nk_draw_command;
1112}
1113pub const nk_panel_flags_NK_WINDOW_BORDER: nk_panel_flags = 1;
1114pub const nk_panel_flags_NK_WINDOW_MOVABLE: nk_panel_flags = 2;
1115pub const nk_panel_flags_NK_WINDOW_SCALABLE: nk_panel_flags = 4;
1116pub const nk_panel_flags_NK_WINDOW_CLOSABLE: nk_panel_flags = 8;
1117pub const nk_panel_flags_NK_WINDOW_MINIMIZABLE: nk_panel_flags = 16;
1118pub const nk_panel_flags_NK_WINDOW_NO_SCROLLBAR: nk_panel_flags = 32;
1119pub const nk_panel_flags_NK_WINDOW_TITLE: nk_panel_flags = 64;
1120pub const nk_panel_flags_NK_WINDOW_SCROLL_AUTO_HIDE: nk_panel_flags = 128;
1121pub const nk_panel_flags_NK_WINDOW_BACKGROUND: nk_panel_flags = 256;
1122pub const nk_panel_flags_NK_WINDOW_SCALE_LEFT: nk_panel_flags = 512;
1123pub const nk_panel_flags_NK_WINDOW_NO_INPUT: nk_panel_flags = 1024;
1124pub type nk_panel_flags = u32;
1125extern "C" {
1126    pub fn nk_begin(
1127        ctx: *mut nk_context,
1128        title: *const ::std::os::raw::c_char,
1129        bounds: nk_rect,
1130        flags: nk_flags,
1131    ) -> ::std::os::raw::c_int;
1132}
1133extern "C" {
1134    pub fn nk_begin_titled(
1135        ctx: *mut nk_context,
1136        name: *const ::std::os::raw::c_char,
1137        title: *const ::std::os::raw::c_char,
1138        bounds: nk_rect,
1139        flags: nk_flags,
1140    ) -> ::std::os::raw::c_int;
1141}
1142extern "C" {
1143    pub fn nk_end(ctx: *mut nk_context);
1144}
1145extern "C" {
1146    pub fn nk_window_find(
1147        ctx: *mut nk_context,
1148        name: *const ::std::os::raw::c_char,
1149    ) -> *mut nk_window;
1150}
1151extern "C" {
1152    pub fn nk_window_get_bounds(ctx: *const nk_context) -> nk_rect;
1153}
1154extern "C" {
1155    pub fn nk_window_get_position(ctx: *const nk_context) -> nk_vec2;
1156}
1157extern "C" {
1158    pub fn nk_window_get_size(arg1: *const nk_context) -> nk_vec2;
1159}
1160extern "C" {
1161    pub fn nk_window_get_width(arg1: *const nk_context) -> f32;
1162}
1163extern "C" {
1164    pub fn nk_window_get_height(arg1: *const nk_context) -> f32;
1165}
1166extern "C" {
1167    pub fn nk_window_get_panel(arg1: *mut nk_context) -> *mut nk_panel;
1168}
1169extern "C" {
1170    pub fn nk_window_get_content_region(arg1: *mut nk_context) -> nk_rect;
1171}
1172extern "C" {
1173    pub fn nk_window_get_content_region_min(arg1: *mut nk_context) -> nk_vec2;
1174}
1175extern "C" {
1176    pub fn nk_window_get_content_region_max(arg1: *mut nk_context) -> nk_vec2;
1177}
1178extern "C" {
1179    pub fn nk_window_get_content_region_size(arg1: *mut nk_context) -> nk_vec2;
1180}
1181extern "C" {
1182    pub fn nk_window_get_canvas(
1183        arg1: *mut nk_context,
1184    ) -> *mut nk_command_buffer;
1185}
1186extern "C" {
1187    pub fn nk_window_has_focus(
1188        arg1: *const nk_context,
1189    ) -> ::std::os::raw::c_int;
1190}
1191extern "C" {
1192    pub fn nk_window_is_hovered(arg1: *mut nk_context)
1193        -> ::std::os::raw::c_int;
1194}
1195extern "C" {
1196    pub fn nk_window_is_collapsed(
1197        ctx: *mut nk_context,
1198        name: *const ::std::os::raw::c_char,
1199    ) -> ::std::os::raw::c_int;
1200}
1201extern "C" {
1202    pub fn nk_window_is_closed(
1203        arg1: *mut nk_context,
1204        arg2: *const ::std::os::raw::c_char,
1205    ) -> ::std::os::raw::c_int;
1206}
1207extern "C" {
1208    pub fn nk_window_is_hidden(
1209        arg1: *mut nk_context,
1210        arg2: *const ::std::os::raw::c_char,
1211    ) -> ::std::os::raw::c_int;
1212}
1213extern "C" {
1214    pub fn nk_window_is_active(
1215        arg1: *mut nk_context,
1216        arg2: *const ::std::os::raw::c_char,
1217    ) -> ::std::os::raw::c_int;
1218}
1219extern "C" {
1220    pub fn nk_window_is_any_hovered(
1221        arg1: *mut nk_context,
1222    ) -> ::std::os::raw::c_int;
1223}
1224extern "C" {
1225    pub fn nk_item_is_any_active(
1226        arg1: *mut nk_context,
1227    ) -> ::std::os::raw::c_int;
1228}
1229extern "C" {
1230    pub fn nk_window_set_bounds(
1231        arg1: *mut nk_context,
1232        name: *const ::std::os::raw::c_char,
1233        bounds: nk_rect,
1234    );
1235}
1236extern "C" {
1237    pub fn nk_window_set_position(
1238        arg1: *mut nk_context,
1239        name: *const ::std::os::raw::c_char,
1240        pos: nk_vec2,
1241    );
1242}
1243extern "C" {
1244    pub fn nk_window_set_size(
1245        arg1: *mut nk_context,
1246        name: *const ::std::os::raw::c_char,
1247        arg2: nk_vec2,
1248    );
1249}
1250extern "C" {
1251    pub fn nk_window_set_focus(
1252        arg1: *mut nk_context,
1253        name: *const ::std::os::raw::c_char,
1254    );
1255}
1256extern "C" {
1257    pub fn nk_window_close(
1258        ctx: *mut nk_context,
1259        name: *const ::std::os::raw::c_char,
1260    );
1261}
1262extern "C" {
1263    pub fn nk_window_collapse(
1264        arg1: *mut nk_context,
1265        name: *const ::std::os::raw::c_char,
1266        state: nk_collapse_states,
1267    );
1268}
1269extern "C" {
1270    pub fn nk_window_collapse_if(
1271        arg1: *mut nk_context,
1272        name: *const ::std::os::raw::c_char,
1273        arg2: nk_collapse_states,
1274        cond: ::std::os::raw::c_int,
1275    );
1276}
1277extern "C" {
1278    pub fn nk_window_show(
1279        arg1: *mut nk_context,
1280        name: *const ::std::os::raw::c_char,
1281        arg2: nk_show_states,
1282    );
1283}
1284extern "C" {
1285    pub fn nk_window_show_if(
1286        arg1: *mut nk_context,
1287        name: *const ::std::os::raw::c_char,
1288        arg2: nk_show_states,
1289        cond: ::std::os::raw::c_int,
1290    );
1291}
1292extern "C" {
1293    pub fn nk_layout_set_min_row_height(arg1: *mut nk_context, height: f32);
1294}
1295extern "C" {
1296    pub fn nk_layout_reset_min_row_height(arg1: *mut nk_context);
1297}
1298extern "C" {
1299    pub fn nk_layout_widget_bounds(arg1: *mut nk_context) -> nk_rect;
1300}
1301extern "C" {
1302    pub fn nk_layout_ratio_from_pixel(
1303        arg1: *mut nk_context,
1304        pixel_width: f32,
1305    ) -> f32;
1306}
1307extern "C" {
1308    pub fn nk_layout_row_dynamic(
1309        ctx: *mut nk_context,
1310        height: f32,
1311        cols: ::std::os::raw::c_int,
1312    );
1313}
1314extern "C" {
1315    pub fn nk_layout_row_static(
1316        ctx: *mut nk_context,
1317        height: f32,
1318        item_width: ::std::os::raw::c_int,
1319        cols: ::std::os::raw::c_int,
1320    );
1321}
1322extern "C" {
1323    pub fn nk_layout_row_begin(
1324        ctx: *mut nk_context,
1325        fmt: nk_layout_format,
1326        row_height: f32,
1327        cols: ::std::os::raw::c_int,
1328    );
1329}
1330extern "C" {
1331    pub fn nk_layout_row_push(arg1: *mut nk_context, value: f32);
1332}
1333extern "C" {
1334    pub fn nk_layout_row_end(arg1: *mut nk_context);
1335}
1336extern "C" {
1337    pub fn nk_layout_row(
1338        arg1: *mut nk_context,
1339        arg2: nk_layout_format,
1340        height: f32,
1341        cols: ::std::os::raw::c_int,
1342        ratio: *const f32,
1343    );
1344}
1345extern "C" {
1346    pub fn nk_layout_row_template_begin(arg1: *mut nk_context, row_height: f32);
1347}
1348extern "C" {
1349    pub fn nk_layout_row_template_push_dynamic(arg1: *mut nk_context);
1350}
1351extern "C" {
1352    pub fn nk_layout_row_template_push_variable(
1353        arg1: *mut nk_context,
1354        min_width: f32,
1355    );
1356}
1357extern "C" {
1358    pub fn nk_layout_row_template_push_static(
1359        arg1: *mut nk_context,
1360        width: f32,
1361    );
1362}
1363extern "C" {
1364    pub fn nk_layout_row_template_end(arg1: *mut nk_context);
1365}
1366extern "C" {
1367    pub fn nk_layout_space_begin(
1368        arg1: *mut nk_context,
1369        arg2: nk_layout_format,
1370        height: f32,
1371        widget_count: ::std::os::raw::c_int,
1372    );
1373}
1374extern "C" {
1375    pub fn nk_layout_space_push(arg1: *mut nk_context, bounds: nk_rect);
1376}
1377extern "C" {
1378    pub fn nk_layout_space_end(arg1: *mut nk_context);
1379}
1380extern "C" {
1381    pub fn nk_layout_space_bounds(arg1: *mut nk_context) -> nk_rect;
1382}
1383extern "C" {
1384    pub fn nk_layout_space_to_screen(
1385        arg1: *mut nk_context,
1386        arg2: nk_vec2,
1387    ) -> nk_vec2;
1388}
1389extern "C" {
1390    pub fn nk_layout_space_to_local(
1391        arg1: *mut nk_context,
1392        arg2: nk_vec2,
1393    ) -> nk_vec2;
1394}
1395extern "C" {
1396    pub fn nk_layout_space_rect_to_screen(
1397        arg1: *mut nk_context,
1398        arg2: nk_rect,
1399    ) -> nk_rect;
1400}
1401extern "C" {
1402    pub fn nk_layout_space_rect_to_local(
1403        arg1: *mut nk_context,
1404        arg2: nk_rect,
1405    ) -> nk_rect;
1406}
1407extern "C" {
1408    pub fn nk_group_begin(
1409        arg1: *mut nk_context,
1410        title: *const ::std::os::raw::c_char,
1411        arg2: nk_flags,
1412    ) -> ::std::os::raw::c_int;
1413}
1414extern "C" {
1415    pub fn nk_group_begin_titled(
1416        arg1: *mut nk_context,
1417        name: *const ::std::os::raw::c_char,
1418        title: *const ::std::os::raw::c_char,
1419        arg2: nk_flags,
1420    ) -> ::std::os::raw::c_int;
1421}
1422extern "C" {
1423    pub fn nk_group_end(arg1: *mut nk_context);
1424}
1425extern "C" {
1426    pub fn nk_group_scrolled_offset_begin(
1427        arg1: *mut nk_context,
1428        x_offset: *mut nk_uint,
1429        y_offset: *mut nk_uint,
1430        title: *const ::std::os::raw::c_char,
1431        flags: nk_flags,
1432    ) -> ::std::os::raw::c_int;
1433}
1434extern "C" {
1435    pub fn nk_group_scrolled_begin(
1436        arg1: *mut nk_context,
1437        off: *mut nk_scroll,
1438        title: *const ::std::os::raw::c_char,
1439        arg2: nk_flags,
1440    ) -> ::std::os::raw::c_int;
1441}
1442extern "C" {
1443    pub fn nk_group_scrolled_end(arg1: *mut nk_context);
1444}
1445extern "C" {
1446    pub fn nk_tree_push_hashed(
1447        arg1: *mut nk_context,
1448        arg2: nk_tree_type,
1449        title: *const ::std::os::raw::c_char,
1450        initial_state: nk_collapse_states,
1451        hash: *const ::std::os::raw::c_char,
1452        len: ::std::os::raw::c_int,
1453        seed: ::std::os::raw::c_int,
1454    ) -> ::std::os::raw::c_int;
1455}
1456extern "C" {
1457    pub fn nk_tree_image_push_hashed(
1458        arg1: *mut nk_context,
1459        arg2: nk_tree_type,
1460        arg3: nk_image,
1461        title: *const ::std::os::raw::c_char,
1462        initial_state: nk_collapse_states,
1463        hash: *const ::std::os::raw::c_char,
1464        len: ::std::os::raw::c_int,
1465        seed: ::std::os::raw::c_int,
1466    ) -> ::std::os::raw::c_int;
1467}
1468extern "C" {
1469    pub fn nk_tree_pop(arg1: *mut nk_context);
1470}
1471extern "C" {
1472    pub fn nk_tree_state_push(
1473        arg1: *mut nk_context,
1474        arg2: nk_tree_type,
1475        title: *const ::std::os::raw::c_char,
1476        state: *mut nk_collapse_states,
1477    ) -> ::std::os::raw::c_int;
1478}
1479extern "C" {
1480    pub fn nk_tree_state_image_push(
1481        arg1: *mut nk_context,
1482        arg2: nk_tree_type,
1483        arg3: nk_image,
1484        title: *const ::std::os::raw::c_char,
1485        state: *mut nk_collapse_states,
1486    ) -> ::std::os::raw::c_int;
1487}
1488extern "C" {
1489    pub fn nk_tree_state_pop(arg1: *mut nk_context);
1490}
1491extern "C" {
1492    pub fn nk_tree_element_push_hashed(
1493        arg1: *mut nk_context,
1494        arg2: nk_tree_type,
1495        title: *const ::std::os::raw::c_char,
1496        initial_state: nk_collapse_states,
1497        selected: *mut ::std::os::raw::c_int,
1498        hash: *const ::std::os::raw::c_char,
1499        len: ::std::os::raw::c_int,
1500        seed: ::std::os::raw::c_int,
1501    ) -> ::std::os::raw::c_int;
1502}
1503extern "C" {
1504    pub fn nk_tree_element_image_push_hashed(
1505        arg1: *mut nk_context,
1506        arg2: nk_tree_type,
1507        arg3: nk_image,
1508        title: *const ::std::os::raw::c_char,
1509        initial_state: nk_collapse_states,
1510        selected: *mut ::std::os::raw::c_int,
1511        hash: *const ::std::os::raw::c_char,
1512        len: ::std::os::raw::c_int,
1513        seed: ::std::os::raw::c_int,
1514    ) -> ::std::os::raw::c_int;
1515}
1516extern "C" {
1517    pub fn nk_tree_element_pop(arg1: *mut nk_context);
1518}
1519#[repr(C)]
1520#[derive(Debug, Copy, Clone)]
1521pub struct nk_list_view {
1522    pub begin: ::std::os::raw::c_int,
1523    pub end: ::std::os::raw::c_int,
1524    pub count: ::std::os::raw::c_int,
1525    pub total_height: ::std::os::raw::c_int,
1526    pub ctx: *mut nk_context,
1527    pub scroll_pointer: *mut nk_uint,
1528    pub scroll_value: nk_uint,
1529}
1530#[test]
1531fn bindgen_test_layout_nk_list_view() {
1532    assert_eq!(
1533        ::std::mem::size_of::<nk_list_view>(),
1534        40usize,
1535        concat!("Size of: ", stringify!(nk_list_view))
1536    );
1537    assert_eq!(
1538        ::std::mem::align_of::<nk_list_view>(),
1539        8usize,
1540        concat!("Alignment of ", stringify!(nk_list_view))
1541    );
1542    assert_eq!(
1543        unsafe {
1544            &(*(::std::ptr::null::<nk_list_view>())).begin as *const _ as usize
1545        },
1546        0usize,
1547        concat!(
1548            "Offset of field: ",
1549            stringify!(nk_list_view),
1550            "::",
1551            stringify!(begin)
1552        )
1553    );
1554    assert_eq!(
1555        unsafe {
1556            &(*(::std::ptr::null::<nk_list_view>())).end as *const _ as usize
1557        },
1558        4usize,
1559        concat!(
1560            "Offset of field: ",
1561            stringify!(nk_list_view),
1562            "::",
1563            stringify!(end)
1564        )
1565    );
1566    assert_eq!(
1567        unsafe {
1568            &(*(::std::ptr::null::<nk_list_view>())).count as *const _ as usize
1569        },
1570        8usize,
1571        concat!(
1572            "Offset of field: ",
1573            stringify!(nk_list_view),
1574            "::",
1575            stringify!(count)
1576        )
1577    );
1578    assert_eq!(
1579        unsafe {
1580            &(*(::std::ptr::null::<nk_list_view>())).total_height as *const _
1581                as usize
1582        },
1583        12usize,
1584        concat!(
1585            "Offset of field: ",
1586            stringify!(nk_list_view),
1587            "::",
1588            stringify!(total_height)
1589        )
1590    );
1591    assert_eq!(
1592        unsafe {
1593            &(*(::std::ptr::null::<nk_list_view>())).ctx as *const _ as usize
1594        },
1595        16usize,
1596        concat!(
1597            "Offset of field: ",
1598            stringify!(nk_list_view),
1599            "::",
1600            stringify!(ctx)
1601        )
1602    );
1603    assert_eq!(
1604        unsafe {
1605            &(*(::std::ptr::null::<nk_list_view>())).scroll_pointer as *const _
1606                as usize
1607        },
1608        24usize,
1609        concat!(
1610            "Offset of field: ",
1611            stringify!(nk_list_view),
1612            "::",
1613            stringify!(scroll_pointer)
1614        )
1615    );
1616    assert_eq!(
1617        unsafe {
1618            &(*(::std::ptr::null::<nk_list_view>())).scroll_value as *const _
1619                as usize
1620        },
1621        32usize,
1622        concat!(
1623            "Offset of field: ",
1624            stringify!(nk_list_view),
1625            "::",
1626            stringify!(scroll_value)
1627        )
1628    );
1629}
1630impl Default for nk_list_view {
1631    fn default() -> Self {
1632        unsafe { ::std::mem::zeroed() }
1633    }
1634}
1635extern "C" {
1636    pub fn nk_list_view_begin(
1637        arg1: *mut nk_context,
1638        out: *mut nk_list_view,
1639        id: *const ::std::os::raw::c_char,
1640        arg2: nk_flags,
1641        row_height: ::std::os::raw::c_int,
1642        row_count: ::std::os::raw::c_int,
1643    ) -> ::std::os::raw::c_int;
1644}
1645extern "C" {
1646    pub fn nk_list_view_end(arg1: *mut nk_list_view);
1647}
1648pub const nk_widget_layout_states_NK_WIDGET_INVALID: nk_widget_layout_states =
1649    0;
1650pub const nk_widget_layout_states_NK_WIDGET_VALID: nk_widget_layout_states = 1;
1651pub const nk_widget_layout_states_NK_WIDGET_ROM: nk_widget_layout_states = 2;
1652pub type nk_widget_layout_states = u32;
1653pub const nk_widget_states_NK_WIDGET_STATE_MODIFIED: nk_widget_states = 2;
1654pub const nk_widget_states_NK_WIDGET_STATE_INACTIVE: nk_widget_states = 4;
1655pub const nk_widget_states_NK_WIDGET_STATE_ENTERED: nk_widget_states = 8;
1656pub const nk_widget_states_NK_WIDGET_STATE_HOVER: nk_widget_states = 16;
1657pub const nk_widget_states_NK_WIDGET_STATE_ACTIVED: nk_widget_states = 32;
1658pub const nk_widget_states_NK_WIDGET_STATE_LEFT: nk_widget_states = 64;
1659pub const nk_widget_states_NK_WIDGET_STATE_HOVERED: nk_widget_states = 18;
1660pub const nk_widget_states_NK_WIDGET_STATE_ACTIVE: nk_widget_states = 34;
1661pub type nk_widget_states = u32;
1662extern "C" {
1663    pub fn nk_widget(
1664        arg1: *mut nk_rect,
1665        arg2: *const nk_context,
1666    ) -> nk_widget_layout_states;
1667}
1668extern "C" {
1669    pub fn nk_widget_fitting(
1670        arg1: *mut nk_rect,
1671        arg2: *mut nk_context,
1672        arg3: nk_vec2,
1673    ) -> nk_widget_layout_states;
1674}
1675extern "C" {
1676    pub fn nk_widget_bounds(arg1: *mut nk_context) -> nk_rect;
1677}
1678extern "C" {
1679    pub fn nk_widget_position(arg1: *mut nk_context) -> nk_vec2;
1680}
1681extern "C" {
1682    pub fn nk_widget_size(arg1: *mut nk_context) -> nk_vec2;
1683}
1684extern "C" {
1685    pub fn nk_widget_width(arg1: *mut nk_context) -> f32;
1686}
1687extern "C" {
1688    pub fn nk_widget_height(arg1: *mut nk_context) -> f32;
1689}
1690extern "C" {
1691    pub fn nk_widget_is_hovered(arg1: *mut nk_context)
1692        -> ::std::os::raw::c_int;
1693}
1694extern "C" {
1695    pub fn nk_widget_is_mouse_clicked(
1696        arg1: *mut nk_context,
1697        arg2: nk_buttons,
1698    ) -> ::std::os::raw::c_int;
1699}
1700extern "C" {
1701    pub fn nk_widget_has_mouse_click_down(
1702        arg1: *mut nk_context,
1703        arg2: nk_buttons,
1704        down: ::std::os::raw::c_int,
1705    ) -> ::std::os::raw::c_int;
1706}
1707extern "C" {
1708    pub fn nk_spacing(arg1: *mut nk_context, cols: ::std::os::raw::c_int);
1709}
1710pub const nk_text_align_NK_TEXT_ALIGN_LEFT: nk_text_align = 1;
1711pub const nk_text_align_NK_TEXT_ALIGN_CENTERED: nk_text_align = 2;
1712pub const nk_text_align_NK_TEXT_ALIGN_RIGHT: nk_text_align = 4;
1713pub const nk_text_align_NK_TEXT_ALIGN_TOP: nk_text_align = 8;
1714pub const nk_text_align_NK_TEXT_ALIGN_MIDDLE: nk_text_align = 16;
1715pub const nk_text_align_NK_TEXT_ALIGN_BOTTOM: nk_text_align = 32;
1716pub type nk_text_align = u32;
1717pub const nk_text_alignment_NK_TEXT_LEFT: nk_text_alignment = 17;
1718pub const nk_text_alignment_NK_TEXT_CENTERED: nk_text_alignment = 18;
1719pub const nk_text_alignment_NK_TEXT_RIGHT: nk_text_alignment = 20;
1720pub type nk_text_alignment = u32;
1721extern "C" {
1722    pub fn nk_text(
1723        arg1: *mut nk_context,
1724        arg2: *const ::std::os::raw::c_char,
1725        arg3: ::std::os::raw::c_int,
1726        arg4: nk_flags,
1727    );
1728}
1729extern "C" {
1730    pub fn nk_text_colored(
1731        arg1: *mut nk_context,
1732        arg2: *const ::std::os::raw::c_char,
1733        arg3: ::std::os::raw::c_int,
1734        arg4: nk_flags,
1735        arg5: nk_color,
1736    );
1737}
1738extern "C" {
1739    pub fn nk_text_wrap(
1740        arg1: *mut nk_context,
1741        arg2: *const ::std::os::raw::c_char,
1742        arg3: ::std::os::raw::c_int,
1743    );
1744}
1745extern "C" {
1746    pub fn nk_text_wrap_colored(
1747        arg1: *mut nk_context,
1748        arg2: *const ::std::os::raw::c_char,
1749        arg3: ::std::os::raw::c_int,
1750        arg4: nk_color,
1751    );
1752}
1753extern "C" {
1754    pub fn nk_label(
1755        arg1: *mut nk_context,
1756        arg2: *const ::std::os::raw::c_char,
1757        align: nk_flags,
1758    );
1759}
1760extern "C" {
1761    pub fn nk_label_colored(
1762        arg1: *mut nk_context,
1763        arg2: *const ::std::os::raw::c_char,
1764        align: nk_flags,
1765        arg3: nk_color,
1766    );
1767}
1768extern "C" {
1769    pub fn nk_label_wrap(
1770        arg1: *mut nk_context,
1771        arg2: *const ::std::os::raw::c_char,
1772    );
1773}
1774extern "C" {
1775    pub fn nk_label_colored_wrap(
1776        arg1: *mut nk_context,
1777        arg2: *const ::std::os::raw::c_char,
1778        arg3: nk_color,
1779    );
1780}
1781extern "C" {
1782    pub fn nk_image(arg1: *mut nk_context, arg2: nk_image);
1783}
1784extern "C" {
1785    pub fn nk_image_color(
1786        arg1: *mut nk_context,
1787        arg2: nk_image,
1788        arg3: nk_color,
1789    );
1790}
1791extern "C" {
1792    pub fn nk_button_text(
1793        arg1: *mut nk_context,
1794        title: *const ::std::os::raw::c_char,
1795        len: ::std::os::raw::c_int,
1796    ) -> ::std::os::raw::c_int;
1797}
1798extern "C" {
1799    pub fn nk_button_label(
1800        arg1: *mut nk_context,
1801        title: *const ::std::os::raw::c_char,
1802    ) -> ::std::os::raw::c_int;
1803}
1804extern "C" {
1805    pub fn nk_button_color(
1806        arg1: *mut nk_context,
1807        arg2: nk_color,
1808    ) -> ::std::os::raw::c_int;
1809}
1810extern "C" {
1811    pub fn nk_button_symbol(
1812        arg1: *mut nk_context,
1813        arg2: nk_symbol_type,
1814    ) -> ::std::os::raw::c_int;
1815}
1816extern "C" {
1817    pub fn nk_button_image(
1818        arg1: *mut nk_context,
1819        img: nk_image,
1820    ) -> ::std::os::raw::c_int;
1821}
1822extern "C" {
1823    pub fn nk_button_symbol_label(
1824        arg1: *mut nk_context,
1825        arg2: nk_symbol_type,
1826        arg3: *const ::std::os::raw::c_char,
1827        text_alignment: nk_flags,
1828    ) -> ::std::os::raw::c_int;
1829}
1830extern "C" {
1831    pub fn nk_button_symbol_text(
1832        arg1: *mut nk_context,
1833        arg2: nk_symbol_type,
1834        arg3: *const ::std::os::raw::c_char,
1835        arg4: ::std::os::raw::c_int,
1836        alignment: nk_flags,
1837    ) -> ::std::os::raw::c_int;
1838}
1839extern "C" {
1840    pub fn nk_button_image_label(
1841        arg1: *mut nk_context,
1842        img: nk_image,
1843        arg2: *const ::std::os::raw::c_char,
1844        text_alignment: nk_flags,
1845    ) -> ::std::os::raw::c_int;
1846}
1847extern "C" {
1848    pub fn nk_button_image_text(
1849        arg1: *mut nk_context,
1850        img: nk_image,
1851        arg2: *const ::std::os::raw::c_char,
1852        arg3: ::std::os::raw::c_int,
1853        alignment: nk_flags,
1854    ) -> ::std::os::raw::c_int;
1855}
1856extern "C" {
1857    pub fn nk_button_text_styled(
1858        arg1: *mut nk_context,
1859        arg2: *const nk_style_button,
1860        title: *const ::std::os::raw::c_char,
1861        len: ::std::os::raw::c_int,
1862    ) -> ::std::os::raw::c_int;
1863}
1864extern "C" {
1865    pub fn nk_button_label_styled(
1866        arg1: *mut nk_context,
1867        arg2: *const nk_style_button,
1868        title: *const ::std::os::raw::c_char,
1869    ) -> ::std::os::raw::c_int;
1870}
1871extern "C" {
1872    pub fn nk_button_symbol_styled(
1873        arg1: *mut nk_context,
1874        arg2: *const nk_style_button,
1875        arg3: nk_symbol_type,
1876    ) -> ::std::os::raw::c_int;
1877}
1878extern "C" {
1879    pub fn nk_button_image_styled(
1880        arg1: *mut nk_context,
1881        arg2: *const nk_style_button,
1882        img: nk_image,
1883    ) -> ::std::os::raw::c_int;
1884}
1885extern "C" {
1886    pub fn nk_button_symbol_text_styled(
1887        arg1: *mut nk_context,
1888        arg2: *const nk_style_button,
1889        arg3: nk_symbol_type,
1890        arg4: *const ::std::os::raw::c_char,
1891        arg5: ::std::os::raw::c_int,
1892        alignment: nk_flags,
1893    ) -> ::std::os::raw::c_int;
1894}
1895extern "C" {
1896    pub fn nk_button_symbol_label_styled(
1897        ctx: *mut nk_context,
1898        style: *const nk_style_button,
1899        symbol: nk_symbol_type,
1900        title: *const ::std::os::raw::c_char,
1901        align: nk_flags,
1902    ) -> ::std::os::raw::c_int;
1903}
1904extern "C" {
1905    pub fn nk_button_image_label_styled(
1906        arg1: *mut nk_context,
1907        arg2: *const nk_style_button,
1908        img: nk_image,
1909        arg3: *const ::std::os::raw::c_char,
1910        text_alignment: nk_flags,
1911    ) -> ::std::os::raw::c_int;
1912}
1913extern "C" {
1914    pub fn nk_button_image_text_styled(
1915        arg1: *mut nk_context,
1916        arg2: *const nk_style_button,
1917        img: nk_image,
1918        arg3: *const ::std::os::raw::c_char,
1919        arg4: ::std::os::raw::c_int,
1920        alignment: nk_flags,
1921    ) -> ::std::os::raw::c_int;
1922}
1923extern "C" {
1924    pub fn nk_button_set_behavior(
1925        arg1: *mut nk_context,
1926        arg2: nk_button_behavior,
1927    );
1928}
1929extern "C" {
1930    pub fn nk_button_push_behavior(
1931        arg1: *mut nk_context,
1932        arg2: nk_button_behavior,
1933    ) -> ::std::os::raw::c_int;
1934}
1935extern "C" {
1936    pub fn nk_button_pop_behavior(
1937        arg1: *mut nk_context,
1938    ) -> ::std::os::raw::c_int;
1939}
1940extern "C" {
1941    pub fn nk_check_label(
1942        arg1: *mut nk_context,
1943        arg2: *const ::std::os::raw::c_char,
1944        active: ::std::os::raw::c_int,
1945    ) -> ::std::os::raw::c_int;
1946}
1947extern "C" {
1948    pub fn nk_check_text(
1949        arg1: *mut nk_context,
1950        arg2: *const ::std::os::raw::c_char,
1951        arg3: ::std::os::raw::c_int,
1952        active: ::std::os::raw::c_int,
1953    ) -> ::std::os::raw::c_int;
1954}
1955extern "C" {
1956    pub fn nk_check_flags_label(
1957        arg1: *mut nk_context,
1958        arg2: *const ::std::os::raw::c_char,
1959        flags: ::std::os::raw::c_uint,
1960        value: ::std::os::raw::c_uint,
1961    ) -> ::std::os::raw::c_uint;
1962}
1963extern "C" {
1964    pub fn nk_check_flags_text(
1965        arg1: *mut nk_context,
1966        arg2: *const ::std::os::raw::c_char,
1967        arg3: ::std::os::raw::c_int,
1968        flags: ::std::os::raw::c_uint,
1969        value: ::std::os::raw::c_uint,
1970    ) -> ::std::os::raw::c_uint;
1971}
1972extern "C" {
1973    pub fn nk_checkbox_label(
1974        arg1: *mut nk_context,
1975        arg2: *const ::std::os::raw::c_char,
1976        active: *mut ::std::os::raw::c_int,
1977    ) -> ::std::os::raw::c_int;
1978}
1979extern "C" {
1980    pub fn nk_checkbox_text(
1981        arg1: *mut nk_context,
1982        arg2: *const ::std::os::raw::c_char,
1983        arg3: ::std::os::raw::c_int,
1984        active: *mut ::std::os::raw::c_int,
1985    ) -> ::std::os::raw::c_int;
1986}
1987extern "C" {
1988    pub fn nk_checkbox_flags_label(
1989        arg1: *mut nk_context,
1990        arg2: *const ::std::os::raw::c_char,
1991        flags: *mut ::std::os::raw::c_uint,
1992        value: ::std::os::raw::c_uint,
1993    ) -> ::std::os::raw::c_int;
1994}
1995extern "C" {
1996    pub fn nk_checkbox_flags_text(
1997        arg1: *mut nk_context,
1998        arg2: *const ::std::os::raw::c_char,
1999        arg3: ::std::os::raw::c_int,
2000        flags: *mut ::std::os::raw::c_uint,
2001        value: ::std::os::raw::c_uint,
2002    ) -> ::std::os::raw::c_int;
2003}
2004extern "C" {
2005    pub fn nk_radio_label(
2006        arg1: *mut nk_context,
2007        arg2: *const ::std::os::raw::c_char,
2008        active: *mut ::std::os::raw::c_int,
2009    ) -> ::std::os::raw::c_int;
2010}
2011extern "C" {
2012    pub fn nk_radio_text(
2013        arg1: *mut nk_context,
2014        arg2: *const ::std::os::raw::c_char,
2015        arg3: ::std::os::raw::c_int,
2016        active: *mut ::std::os::raw::c_int,
2017    ) -> ::std::os::raw::c_int;
2018}
2019extern "C" {
2020    pub fn nk_option_label(
2021        arg1: *mut nk_context,
2022        arg2: *const ::std::os::raw::c_char,
2023        active: ::std::os::raw::c_int,
2024    ) -> ::std::os::raw::c_int;
2025}
2026extern "C" {
2027    pub fn nk_option_text(
2028        arg1: *mut nk_context,
2029        arg2: *const ::std::os::raw::c_char,
2030        arg3: ::std::os::raw::c_int,
2031        active: ::std::os::raw::c_int,
2032    ) -> ::std::os::raw::c_int;
2033}
2034extern "C" {
2035    pub fn nk_selectable_label(
2036        arg1: *mut nk_context,
2037        arg2: *const ::std::os::raw::c_char,
2038        align: nk_flags,
2039        value: *mut ::std::os::raw::c_int,
2040    ) -> ::std::os::raw::c_int;
2041}
2042extern "C" {
2043    pub fn nk_selectable_text(
2044        arg1: *mut nk_context,
2045        arg2: *const ::std::os::raw::c_char,
2046        arg3: ::std::os::raw::c_int,
2047        align: nk_flags,
2048        value: *mut ::std::os::raw::c_int,
2049    ) -> ::std::os::raw::c_int;
2050}
2051extern "C" {
2052    pub fn nk_selectable_image_label(
2053        arg1: *mut nk_context,
2054        arg2: nk_image,
2055        arg3: *const ::std::os::raw::c_char,
2056        align: nk_flags,
2057        value: *mut ::std::os::raw::c_int,
2058    ) -> ::std::os::raw::c_int;
2059}
2060extern "C" {
2061    pub fn nk_selectable_image_text(
2062        arg1: *mut nk_context,
2063        arg2: nk_image,
2064        arg3: *const ::std::os::raw::c_char,
2065        arg4: ::std::os::raw::c_int,
2066        align: nk_flags,
2067        value: *mut ::std::os::raw::c_int,
2068    ) -> ::std::os::raw::c_int;
2069}
2070extern "C" {
2071    pub fn nk_selectable_symbol_label(
2072        arg1: *mut nk_context,
2073        arg2: nk_symbol_type,
2074        arg3: *const ::std::os::raw::c_char,
2075        align: nk_flags,
2076        value: *mut ::std::os::raw::c_int,
2077    ) -> ::std::os::raw::c_int;
2078}
2079extern "C" {
2080    pub fn nk_selectable_symbol_text(
2081        arg1: *mut nk_context,
2082        arg2: nk_symbol_type,
2083        arg3: *const ::std::os::raw::c_char,
2084        arg4: ::std::os::raw::c_int,
2085        align: nk_flags,
2086        value: *mut ::std::os::raw::c_int,
2087    ) -> ::std::os::raw::c_int;
2088}
2089extern "C" {
2090    pub fn nk_select_label(
2091        arg1: *mut nk_context,
2092        arg2: *const ::std::os::raw::c_char,
2093        align: nk_flags,
2094        value: ::std::os::raw::c_int,
2095    ) -> ::std::os::raw::c_int;
2096}
2097extern "C" {
2098    pub fn nk_select_text(
2099        arg1: *mut nk_context,
2100        arg2: *const ::std::os::raw::c_char,
2101        arg3: ::std::os::raw::c_int,
2102        align: nk_flags,
2103        value: ::std::os::raw::c_int,
2104    ) -> ::std::os::raw::c_int;
2105}
2106extern "C" {
2107    pub fn nk_select_image_label(
2108        arg1: *mut nk_context,
2109        arg2: nk_image,
2110        arg3: *const ::std::os::raw::c_char,
2111        align: nk_flags,
2112        value: ::std::os::raw::c_int,
2113    ) -> ::std::os::raw::c_int;
2114}
2115extern "C" {
2116    pub fn nk_select_image_text(
2117        arg1: *mut nk_context,
2118        arg2: nk_image,
2119        arg3: *const ::std::os::raw::c_char,
2120        arg4: ::std::os::raw::c_int,
2121        align: nk_flags,
2122        value: ::std::os::raw::c_int,
2123    ) -> ::std::os::raw::c_int;
2124}
2125extern "C" {
2126    pub fn nk_select_symbol_label(
2127        arg1: *mut nk_context,
2128        arg2: nk_symbol_type,
2129        arg3: *const ::std::os::raw::c_char,
2130        align: nk_flags,
2131        value: ::std::os::raw::c_int,
2132    ) -> ::std::os::raw::c_int;
2133}
2134extern "C" {
2135    pub fn nk_select_symbol_text(
2136        arg1: *mut nk_context,
2137        arg2: nk_symbol_type,
2138        arg3: *const ::std::os::raw::c_char,
2139        arg4: ::std::os::raw::c_int,
2140        align: nk_flags,
2141        value: ::std::os::raw::c_int,
2142    ) -> ::std::os::raw::c_int;
2143}
2144extern "C" {
2145    pub fn nk_slide_float(
2146        arg1: *mut nk_context,
2147        min: f32,
2148        val: f32,
2149        max: f32,
2150        step: f32,
2151    ) -> f32;
2152}
2153extern "C" {
2154    pub fn nk_slide_int(
2155        arg1: *mut nk_context,
2156        min: ::std::os::raw::c_int,
2157        val: ::std::os::raw::c_int,
2158        max: ::std::os::raw::c_int,
2159        step: ::std::os::raw::c_int,
2160    ) -> ::std::os::raw::c_int;
2161}
2162extern "C" {
2163    pub fn nk_slider_float(
2164        arg1: *mut nk_context,
2165        min: f32,
2166        val: *mut f32,
2167        max: f32,
2168        step: f32,
2169    ) -> ::std::os::raw::c_int;
2170}
2171extern "C" {
2172    pub fn nk_slider_int(
2173        arg1: *mut nk_context,
2174        min: ::std::os::raw::c_int,
2175        val: *mut ::std::os::raw::c_int,
2176        max: ::std::os::raw::c_int,
2177        step: ::std::os::raw::c_int,
2178    ) -> ::std::os::raw::c_int;
2179}
2180extern "C" {
2181    pub fn nk_progress(
2182        arg1: *mut nk_context,
2183        cur: *mut nk_size,
2184        max: nk_size,
2185        modifyable: ::std::os::raw::c_int,
2186    ) -> ::std::os::raw::c_int;
2187}
2188extern "C" {
2189    pub fn nk_prog(
2190        arg1: *mut nk_context,
2191        cur: nk_size,
2192        max: nk_size,
2193        modifyable: ::std::os::raw::c_int,
2194    ) -> nk_size;
2195}
2196extern "C" {
2197    pub fn nk_color_picker(
2198        arg1: *mut nk_context,
2199        arg2: nk_colorf,
2200        arg3: nk_color_format,
2201    ) -> nk_colorf;
2202}
2203extern "C" {
2204    pub fn nk_color_pick(
2205        arg1: *mut nk_context,
2206        arg2: *mut nk_colorf,
2207        arg3: nk_color_format,
2208    ) -> ::std::os::raw::c_int;
2209}
2210extern "C" {
2211    pub fn nk_property_int(
2212        arg1: *mut nk_context,
2213        name: *const ::std::os::raw::c_char,
2214        min: ::std::os::raw::c_int,
2215        val: *mut ::std::os::raw::c_int,
2216        max: ::std::os::raw::c_int,
2217        step: ::std::os::raw::c_int,
2218        inc_per_pixel: f32,
2219    );
2220}
2221extern "C" {
2222    pub fn nk_property_float(
2223        arg1: *mut nk_context,
2224        name: *const ::std::os::raw::c_char,
2225        min: f32,
2226        val: *mut f32,
2227        max: f32,
2228        step: f32,
2229        inc_per_pixel: f32,
2230    );
2231}
2232extern "C" {
2233    pub fn nk_property_double(
2234        arg1: *mut nk_context,
2235        name: *const ::std::os::raw::c_char,
2236        min: f64,
2237        val: *mut f64,
2238        max: f64,
2239        step: f64,
2240        inc_per_pixel: f32,
2241    );
2242}
2243extern "C" {
2244    pub fn nk_propertyi(
2245        arg1: *mut nk_context,
2246        name: *const ::std::os::raw::c_char,
2247        min: ::std::os::raw::c_int,
2248        val: ::std::os::raw::c_int,
2249        max: ::std::os::raw::c_int,
2250        step: ::std::os::raw::c_int,
2251        inc_per_pixel: f32,
2252    ) -> ::std::os::raw::c_int;
2253}
2254extern "C" {
2255    pub fn nk_propertyf(
2256        arg1: *mut nk_context,
2257        name: *const ::std::os::raw::c_char,
2258        min: f32,
2259        val: f32,
2260        max: f32,
2261        step: f32,
2262        inc_per_pixel: f32,
2263    ) -> f32;
2264}
2265extern "C" {
2266    pub fn nk_propertyd(
2267        arg1: *mut nk_context,
2268        name: *const ::std::os::raw::c_char,
2269        min: f64,
2270        val: f64,
2271        max: f64,
2272        step: f64,
2273        inc_per_pixel: f32,
2274    ) -> f64;
2275}
2276pub const nk_edit_flags_NK_EDIT_DEFAULT: nk_edit_flags = 0;
2277pub const nk_edit_flags_NK_EDIT_READ_ONLY: nk_edit_flags = 1;
2278pub const nk_edit_flags_NK_EDIT_AUTO_SELECT: nk_edit_flags = 2;
2279pub const nk_edit_flags_NK_EDIT_SIG_ENTER: nk_edit_flags = 4;
2280pub const nk_edit_flags_NK_EDIT_ALLOW_TAB: nk_edit_flags = 8;
2281pub const nk_edit_flags_NK_EDIT_NO_CURSOR: nk_edit_flags = 16;
2282pub const nk_edit_flags_NK_EDIT_SELECTABLE: nk_edit_flags = 32;
2283pub const nk_edit_flags_NK_EDIT_CLIPBOARD: nk_edit_flags = 64;
2284pub const nk_edit_flags_NK_EDIT_CTRL_ENTER_NEWLINE: nk_edit_flags = 128;
2285pub const nk_edit_flags_NK_EDIT_NO_HORIZONTAL_SCROLL: nk_edit_flags = 256;
2286pub const nk_edit_flags_NK_EDIT_ALWAYS_INSERT_MODE: nk_edit_flags = 512;
2287pub const nk_edit_flags_NK_EDIT_MULTILINE: nk_edit_flags = 1024;
2288pub const nk_edit_flags_NK_EDIT_GOTO_END_ON_ACTIVATE: nk_edit_flags = 2048;
2289pub type nk_edit_flags = u32;
2290pub const nk_edit_types_NK_EDIT_SIMPLE: nk_edit_types = 512;
2291pub const nk_edit_types_NK_EDIT_FIELD: nk_edit_types = 608;
2292pub const nk_edit_types_NK_EDIT_BOX: nk_edit_types = 1640;
2293pub const nk_edit_types_NK_EDIT_EDITOR: nk_edit_types = 1128;
2294pub type nk_edit_types = u32;
2295pub const nk_edit_events_NK_EDIT_ACTIVE: nk_edit_events = 1;
2296pub const nk_edit_events_NK_EDIT_INACTIVE: nk_edit_events = 2;
2297pub const nk_edit_events_NK_EDIT_ACTIVATED: nk_edit_events = 4;
2298pub const nk_edit_events_NK_EDIT_DEACTIVATED: nk_edit_events = 8;
2299pub const nk_edit_events_NK_EDIT_COMMITED: nk_edit_events = 16;
2300pub type nk_edit_events = u32;
2301extern "C" {
2302    pub fn nk_edit_string(
2303        arg1: *mut nk_context,
2304        arg2: nk_flags,
2305        buffer: *mut ::std::os::raw::c_char,
2306        len: *mut ::std::os::raw::c_int,
2307        max: ::std::os::raw::c_int,
2308        arg3: nk_plugin_filter,
2309    ) -> nk_flags;
2310}
2311extern "C" {
2312    pub fn nk_edit_string_zero_terminated(
2313        arg1: *mut nk_context,
2314        arg2: nk_flags,
2315        buffer: *mut ::std::os::raw::c_char,
2316        max: ::std::os::raw::c_int,
2317        arg3: nk_plugin_filter,
2318    ) -> nk_flags;
2319}
2320extern "C" {
2321    pub fn nk_edit_buffer(
2322        arg1: *mut nk_context,
2323        arg2: nk_flags,
2324        arg3: *mut nk_text_edit,
2325        arg4: nk_plugin_filter,
2326    ) -> nk_flags;
2327}
2328extern "C" {
2329    pub fn nk_edit_focus(arg1: *mut nk_context, flags: nk_flags);
2330}
2331extern "C" {
2332    pub fn nk_edit_unfocus(arg1: *mut nk_context);
2333}
2334extern "C" {
2335    pub fn nk_chart_begin(
2336        arg1: *mut nk_context,
2337        arg2: nk_chart_type,
2338        num: ::std::os::raw::c_int,
2339        min: f32,
2340        max: f32,
2341    ) -> ::std::os::raw::c_int;
2342}
2343extern "C" {
2344    pub fn nk_chart_begin_colored(
2345        arg1: *mut nk_context,
2346        arg2: nk_chart_type,
2347        arg3: nk_color,
2348        active: nk_color,
2349        num: ::std::os::raw::c_int,
2350        min: f32,
2351        max: f32,
2352    ) -> ::std::os::raw::c_int;
2353}
2354extern "C" {
2355    pub fn nk_chart_add_slot(
2356        ctx: *mut nk_context,
2357        arg1: nk_chart_type,
2358        count: ::std::os::raw::c_int,
2359        min_value: f32,
2360        max_value: f32,
2361    );
2362}
2363extern "C" {
2364    pub fn nk_chart_add_slot_colored(
2365        ctx: *mut nk_context,
2366        arg1: nk_chart_type,
2367        arg2: nk_color,
2368        active: nk_color,
2369        count: ::std::os::raw::c_int,
2370        min_value: f32,
2371        max_value: f32,
2372    );
2373}
2374extern "C" {
2375    pub fn nk_chart_push(arg1: *mut nk_context, arg2: f32) -> nk_flags;
2376}
2377extern "C" {
2378    pub fn nk_chart_push_slot(
2379        arg1: *mut nk_context,
2380        arg2: f32,
2381        arg3: ::std::os::raw::c_int,
2382    ) -> nk_flags;
2383}
2384extern "C" {
2385    pub fn nk_chart_end(arg1: *mut nk_context);
2386}
2387extern "C" {
2388    pub fn nk_plot(
2389        arg1: *mut nk_context,
2390        arg2: nk_chart_type,
2391        values: *const f32,
2392        count: ::std::os::raw::c_int,
2393        offset: ::std::os::raw::c_int,
2394    );
2395}
2396extern "C" {
2397    pub fn nk_plot_function(
2398        arg1: *mut nk_context,
2399        arg2: nk_chart_type,
2400        userdata: *mut ::std::os::raw::c_void,
2401        value_getter: ::std::option::Option<
2402            unsafe extern "C" fn(
2403                user: *mut ::std::os::raw::c_void,
2404                index: ::std::os::raw::c_int,
2405            ) -> f32,
2406        >,
2407        count: ::std::os::raw::c_int,
2408        offset: ::std::os::raw::c_int,
2409    );
2410}
2411extern "C" {
2412    pub fn nk_popup_begin(
2413        arg1: *mut nk_context,
2414        arg2: nk_popup_type,
2415        arg3: *const ::std::os::raw::c_char,
2416        arg4: nk_flags,
2417        bounds: nk_rect,
2418    ) -> ::std::os::raw::c_int;
2419}
2420extern "C" {
2421    pub fn nk_popup_close(arg1: *mut nk_context);
2422}
2423extern "C" {
2424    pub fn nk_popup_end(arg1: *mut nk_context);
2425}
2426extern "C" {
2427    pub fn nk_combo(
2428        arg1: *mut nk_context,
2429        items: *mut *const ::std::os::raw::c_char,
2430        count: ::std::os::raw::c_int,
2431        selected: ::std::os::raw::c_int,
2432        item_height: ::std::os::raw::c_int,
2433        size: nk_vec2,
2434    ) -> ::std::os::raw::c_int;
2435}
2436extern "C" {
2437    pub fn nk_combo_separator(
2438        arg1: *mut nk_context,
2439        items_separated_by_separator: *const ::std::os::raw::c_char,
2440        separator: ::std::os::raw::c_int,
2441        selected: ::std::os::raw::c_int,
2442        count: ::std::os::raw::c_int,
2443        item_height: ::std::os::raw::c_int,
2444        size: nk_vec2,
2445    ) -> ::std::os::raw::c_int;
2446}
2447extern "C" {
2448    pub fn nk_combo_string(
2449        arg1: *mut nk_context,
2450        items_separated_by_zeros: *const ::std::os::raw::c_char,
2451        selected: ::std::os::raw::c_int,
2452        count: ::std::os::raw::c_int,
2453        item_height: ::std::os::raw::c_int,
2454        size: nk_vec2,
2455    ) -> ::std::os::raw::c_int;
2456}
2457extern "C" {
2458    pub fn nk_combo_callback(
2459        arg1: *mut nk_context,
2460        item_getter: ::std::option::Option<
2461            unsafe extern "C" fn(
2462                arg1: *mut ::std::os::raw::c_void,
2463                arg2: ::std::os::raw::c_int,
2464                arg3: *mut *const ::std::os::raw::c_char,
2465            ),
2466        >,
2467        userdata: *mut ::std::os::raw::c_void,
2468        selected: ::std::os::raw::c_int,
2469        count: ::std::os::raw::c_int,
2470        item_height: ::std::os::raw::c_int,
2471        size: nk_vec2,
2472    ) -> ::std::os::raw::c_int;
2473}
2474extern "C" {
2475    pub fn nk_combobox(
2476        arg1: *mut nk_context,
2477        items: *mut *const ::std::os::raw::c_char,
2478        count: ::std::os::raw::c_int,
2479        selected: *mut ::std::os::raw::c_int,
2480        item_height: ::std::os::raw::c_int,
2481        size: nk_vec2,
2482    );
2483}
2484extern "C" {
2485    pub fn nk_combobox_string(
2486        arg1: *mut nk_context,
2487        items_separated_by_zeros: *const ::std::os::raw::c_char,
2488        selected: *mut ::std::os::raw::c_int,
2489        count: ::std::os::raw::c_int,
2490        item_height: ::std::os::raw::c_int,
2491        size: nk_vec2,
2492    );
2493}
2494extern "C" {
2495    pub fn nk_combobox_separator(
2496        arg1: *mut nk_context,
2497        items_separated_by_separator: *const ::std::os::raw::c_char,
2498        separator: ::std::os::raw::c_int,
2499        selected: *mut ::std::os::raw::c_int,
2500        count: ::std::os::raw::c_int,
2501        item_height: ::std::os::raw::c_int,
2502        size: nk_vec2,
2503    );
2504}
2505extern "C" {
2506    pub fn nk_combobox_callback(
2507        arg1: *mut nk_context,
2508        item_getter: ::std::option::Option<
2509            unsafe extern "C" fn(
2510                arg1: *mut ::std::os::raw::c_void,
2511                arg2: ::std::os::raw::c_int,
2512                arg3: *mut *const ::std::os::raw::c_char,
2513            ),
2514        >,
2515        arg2: *mut ::std::os::raw::c_void,
2516        selected: *mut ::std::os::raw::c_int,
2517        count: ::std::os::raw::c_int,
2518        item_height: ::std::os::raw::c_int,
2519        size: nk_vec2,
2520    );
2521}
2522extern "C" {
2523    pub fn nk_combo_begin_text(
2524        arg1: *mut nk_context,
2525        selected: *const ::std::os::raw::c_char,
2526        arg2: ::std::os::raw::c_int,
2527        size: nk_vec2,
2528    ) -> ::std::os::raw::c_int;
2529}
2530extern "C" {
2531    pub fn nk_combo_begin_label(
2532        arg1: *mut nk_context,
2533        selected: *const ::std::os::raw::c_char,
2534        size: nk_vec2,
2535    ) -> ::std::os::raw::c_int;
2536}
2537extern "C" {
2538    pub fn nk_combo_begin_color(
2539        arg1: *mut nk_context,
2540        color: nk_color,
2541        size: nk_vec2,
2542    ) -> ::std::os::raw::c_int;
2543}
2544extern "C" {
2545    pub fn nk_combo_begin_symbol(
2546        arg1: *mut nk_context,
2547        arg2: nk_symbol_type,
2548        size: nk_vec2,
2549    ) -> ::std::os::raw::c_int;
2550}
2551extern "C" {
2552    pub fn nk_combo_begin_symbol_label(
2553        arg1: *mut nk_context,
2554        selected: *const ::std::os::raw::c_char,
2555        arg2: nk_symbol_type,
2556        size: nk_vec2,
2557    ) -> ::std::os::raw::c_int;
2558}
2559extern "C" {
2560    pub fn nk_combo_begin_symbol_text(
2561        arg1: *mut nk_context,
2562        selected: *const ::std::os::raw::c_char,
2563        arg2: ::std::os::raw::c_int,
2564        arg3: nk_symbol_type,
2565        size: nk_vec2,
2566    ) -> ::std::os::raw::c_int;
2567}
2568extern "C" {
2569    pub fn nk_combo_begin_image(
2570        arg1: *mut nk_context,
2571        img: nk_image,
2572        size: nk_vec2,
2573    ) -> ::std::os::raw::c_int;
2574}
2575extern "C" {
2576    pub fn nk_combo_begin_image_label(
2577        arg1: *mut nk_context,
2578        selected: *const ::std::os::raw::c_char,
2579        arg2: nk_image,
2580        size: nk_vec2,
2581    ) -> ::std::os::raw::c_int;
2582}
2583extern "C" {
2584    pub fn nk_combo_begin_image_text(
2585        arg1: *mut nk_context,
2586        selected: *const ::std::os::raw::c_char,
2587        arg2: ::std::os::raw::c_int,
2588        arg3: nk_image,
2589        size: nk_vec2,
2590    ) -> ::std::os::raw::c_int;
2591}
2592extern "C" {
2593    pub fn nk_combo_item_label(
2594        arg1: *mut nk_context,
2595        arg2: *const ::std::os::raw::c_char,
2596        alignment: nk_flags,
2597    ) -> ::std::os::raw::c_int;
2598}
2599extern "C" {
2600    pub fn nk_combo_item_text(
2601        arg1: *mut nk_context,
2602        arg2: *const ::std::os::raw::c_char,
2603        arg3: ::std::os::raw::c_int,
2604        alignment: nk_flags,
2605    ) -> ::std::os::raw::c_int;
2606}
2607extern "C" {
2608    pub fn nk_combo_item_image_label(
2609        arg1: *mut nk_context,
2610        arg2: nk_image,
2611        arg3: *const ::std::os::raw::c_char,
2612        alignment: nk_flags,
2613    ) -> ::std::os::raw::c_int;
2614}
2615extern "C" {
2616    pub fn nk_combo_item_image_text(
2617        arg1: *mut nk_context,
2618        arg2: nk_image,
2619        arg3: *const ::std::os::raw::c_char,
2620        arg4: ::std::os::raw::c_int,
2621        alignment: nk_flags,
2622    ) -> ::std::os::raw::c_int;
2623}
2624extern "C" {
2625    pub fn nk_combo_item_symbol_label(
2626        arg1: *mut nk_context,
2627        arg2: nk_symbol_type,
2628        arg3: *const ::std::os::raw::c_char,
2629        alignment: nk_flags,
2630    ) -> ::std::os::raw::c_int;
2631}
2632extern "C" {
2633    pub fn nk_combo_item_symbol_text(
2634        arg1: *mut nk_context,
2635        arg2: nk_symbol_type,
2636        arg3: *const ::std::os::raw::c_char,
2637        arg4: ::std::os::raw::c_int,
2638        alignment: nk_flags,
2639    ) -> ::std::os::raw::c_int;
2640}
2641extern "C" {
2642    pub fn nk_combo_close(arg1: *mut nk_context);
2643}
2644extern "C" {
2645    pub fn nk_combo_end(arg1: *mut nk_context);
2646}
2647extern "C" {
2648    pub fn nk_contextual_begin(
2649        arg1: *mut nk_context,
2650        arg2: nk_flags,
2651        arg3: nk_vec2,
2652        trigger_bounds: nk_rect,
2653    ) -> ::std::os::raw::c_int;
2654}
2655extern "C" {
2656    pub fn nk_contextual_item_text(
2657        arg1: *mut nk_context,
2658        arg2: *const ::std::os::raw::c_char,
2659        arg3: ::std::os::raw::c_int,
2660        align: nk_flags,
2661    ) -> ::std::os::raw::c_int;
2662}
2663extern "C" {
2664    pub fn nk_contextual_item_label(
2665        arg1: *mut nk_context,
2666        arg2: *const ::std::os::raw::c_char,
2667        align: nk_flags,
2668    ) -> ::std::os::raw::c_int;
2669}
2670extern "C" {
2671    pub fn nk_contextual_item_image_label(
2672        arg1: *mut nk_context,
2673        arg2: nk_image,
2674        arg3: *const ::std::os::raw::c_char,
2675        alignment: nk_flags,
2676    ) -> ::std::os::raw::c_int;
2677}
2678extern "C" {
2679    pub fn nk_contextual_item_image_text(
2680        arg1: *mut nk_context,
2681        arg2: nk_image,
2682        arg3: *const ::std::os::raw::c_char,
2683        len: ::std::os::raw::c_int,
2684        alignment: nk_flags,
2685    ) -> ::std::os::raw::c_int;
2686}
2687extern "C" {
2688    pub fn nk_contextual_item_symbol_label(
2689        arg1: *mut nk_context,
2690        arg2: nk_symbol_type,
2691        arg3: *const ::std::os::raw::c_char,
2692        alignment: nk_flags,
2693    ) -> ::std::os::raw::c_int;
2694}
2695extern "C" {
2696    pub fn nk_contextual_item_symbol_text(
2697        arg1: *mut nk_context,
2698        arg2: nk_symbol_type,
2699        arg3: *const ::std::os::raw::c_char,
2700        arg4: ::std::os::raw::c_int,
2701        alignment: nk_flags,
2702    ) -> ::std::os::raw::c_int;
2703}
2704extern "C" {
2705    pub fn nk_contextual_close(arg1: *mut nk_context);
2706}
2707extern "C" {
2708    pub fn nk_contextual_end(arg1: *mut nk_context);
2709}
2710extern "C" {
2711    pub fn nk_tooltip(
2712        arg1: *mut nk_context,
2713        arg2: *const ::std::os::raw::c_char,
2714    );
2715}
2716extern "C" {
2717    pub fn nk_tooltip_begin(
2718        arg1: *mut nk_context,
2719        width: f32,
2720    ) -> ::std::os::raw::c_int;
2721}
2722extern "C" {
2723    pub fn nk_tooltip_end(arg1: *mut nk_context);
2724}
2725extern "C" {
2726    pub fn nk_menubar_begin(arg1: *mut nk_context);
2727}
2728extern "C" {
2729    pub fn nk_menubar_end(arg1: *mut nk_context);
2730}
2731extern "C" {
2732    pub fn nk_menu_begin_text(
2733        arg1: *mut nk_context,
2734        title: *const ::std::os::raw::c_char,
2735        title_len: ::std::os::raw::c_int,
2736        align: nk_flags,
2737        size: nk_vec2,
2738    ) -> ::std::os::raw::c_int;
2739}
2740extern "C" {
2741    pub fn nk_menu_begin_label(
2742        arg1: *mut nk_context,
2743        arg2: *const ::std::os::raw::c_char,
2744        align: nk_flags,
2745        size: nk_vec2,
2746    ) -> ::std::os::raw::c_int;
2747}
2748extern "C" {
2749    pub fn nk_menu_begin_image(
2750        arg1: *mut nk_context,
2751        arg2: *const ::std::os::raw::c_char,
2752        arg3: nk_image,
2753        size: nk_vec2,
2754    ) -> ::std::os::raw::c_int;
2755}
2756extern "C" {
2757    pub fn nk_menu_begin_image_text(
2758        arg1: *mut nk_context,
2759        arg2: *const ::std::os::raw::c_char,
2760        arg3: ::std::os::raw::c_int,
2761        align: nk_flags,
2762        arg4: nk_image,
2763        size: nk_vec2,
2764    ) -> ::std::os::raw::c_int;
2765}
2766extern "C" {
2767    pub fn nk_menu_begin_image_label(
2768        arg1: *mut nk_context,
2769        arg2: *const ::std::os::raw::c_char,
2770        align: nk_flags,
2771        arg3: nk_image,
2772        size: nk_vec2,
2773    ) -> ::std::os::raw::c_int;
2774}
2775extern "C" {
2776    pub fn nk_menu_begin_symbol(
2777        arg1: *mut nk_context,
2778        arg2: *const ::std::os::raw::c_char,
2779        arg3: nk_symbol_type,
2780        size: nk_vec2,
2781    ) -> ::std::os::raw::c_int;
2782}
2783extern "C" {
2784    pub fn nk_menu_begin_symbol_text(
2785        arg1: *mut nk_context,
2786        arg2: *const ::std::os::raw::c_char,
2787        arg3: ::std::os::raw::c_int,
2788        align: nk_flags,
2789        arg4: nk_symbol_type,
2790        size: nk_vec2,
2791    ) -> ::std::os::raw::c_int;
2792}
2793extern "C" {
2794    pub fn nk_menu_begin_symbol_label(
2795        arg1: *mut nk_context,
2796        arg2: *const ::std::os::raw::c_char,
2797        align: nk_flags,
2798        arg3: nk_symbol_type,
2799        size: nk_vec2,
2800    ) -> ::std::os::raw::c_int;
2801}
2802extern "C" {
2803    pub fn nk_menu_item_text(
2804        arg1: *mut nk_context,
2805        arg2: *const ::std::os::raw::c_char,
2806        arg3: ::std::os::raw::c_int,
2807        align: nk_flags,
2808    ) -> ::std::os::raw::c_int;
2809}
2810extern "C" {
2811    pub fn nk_menu_item_label(
2812        arg1: *mut nk_context,
2813        arg2: *const ::std::os::raw::c_char,
2814        alignment: nk_flags,
2815    ) -> ::std::os::raw::c_int;
2816}
2817extern "C" {
2818    pub fn nk_menu_item_image_label(
2819        arg1: *mut nk_context,
2820        arg2: nk_image,
2821        arg3: *const ::std::os::raw::c_char,
2822        alignment: nk_flags,
2823    ) -> ::std::os::raw::c_int;
2824}
2825extern "C" {
2826    pub fn nk_menu_item_image_text(
2827        arg1: *mut nk_context,
2828        arg2: nk_image,
2829        arg3: *const ::std::os::raw::c_char,
2830        len: ::std::os::raw::c_int,
2831        alignment: nk_flags,
2832    ) -> ::std::os::raw::c_int;
2833}
2834extern "C" {
2835    pub fn nk_menu_item_symbol_text(
2836        arg1: *mut nk_context,
2837        arg2: nk_symbol_type,
2838        arg3: *const ::std::os::raw::c_char,
2839        arg4: ::std::os::raw::c_int,
2840        alignment: nk_flags,
2841    ) -> ::std::os::raw::c_int;
2842}
2843extern "C" {
2844    pub fn nk_menu_item_symbol_label(
2845        arg1: *mut nk_context,
2846        arg2: nk_symbol_type,
2847        arg3: *const ::std::os::raw::c_char,
2848        alignment: nk_flags,
2849    ) -> ::std::os::raw::c_int;
2850}
2851extern "C" {
2852    pub fn nk_menu_close(arg1: *mut nk_context);
2853}
2854extern "C" {
2855    pub fn nk_menu_end(arg1: *mut nk_context);
2856}
2857pub const nk_style_colors_NK_COLOR_TEXT: nk_style_colors = 0;
2858pub const nk_style_colors_NK_COLOR_WINDOW: nk_style_colors = 1;
2859pub const nk_style_colors_NK_COLOR_HEADER: nk_style_colors = 2;
2860pub const nk_style_colors_NK_COLOR_BORDER: nk_style_colors = 3;
2861pub const nk_style_colors_NK_COLOR_BUTTON: nk_style_colors = 4;
2862pub const nk_style_colors_NK_COLOR_BUTTON_HOVER: nk_style_colors = 5;
2863pub const nk_style_colors_NK_COLOR_BUTTON_ACTIVE: nk_style_colors = 6;
2864pub const nk_style_colors_NK_COLOR_TOGGLE: nk_style_colors = 7;
2865pub const nk_style_colors_NK_COLOR_TOGGLE_HOVER: nk_style_colors = 8;
2866pub const nk_style_colors_NK_COLOR_TOGGLE_CURSOR: nk_style_colors = 9;
2867pub const nk_style_colors_NK_COLOR_SELECT: nk_style_colors = 10;
2868pub const nk_style_colors_NK_COLOR_SELECT_ACTIVE: nk_style_colors = 11;
2869pub const nk_style_colors_NK_COLOR_SLIDER: nk_style_colors = 12;
2870pub const nk_style_colors_NK_COLOR_SLIDER_CURSOR: nk_style_colors = 13;
2871pub const nk_style_colors_NK_COLOR_SLIDER_CURSOR_HOVER: nk_style_colors = 14;
2872pub const nk_style_colors_NK_COLOR_SLIDER_CURSOR_ACTIVE: nk_style_colors = 15;
2873pub const nk_style_colors_NK_COLOR_PROPERTY: nk_style_colors = 16;
2874pub const nk_style_colors_NK_COLOR_EDIT: nk_style_colors = 17;
2875pub const nk_style_colors_NK_COLOR_EDIT_CURSOR: nk_style_colors = 18;
2876pub const nk_style_colors_NK_COLOR_COMBO: nk_style_colors = 19;
2877pub const nk_style_colors_NK_COLOR_CHART: nk_style_colors = 20;
2878pub const nk_style_colors_NK_COLOR_CHART_COLOR: nk_style_colors = 21;
2879pub const nk_style_colors_NK_COLOR_CHART_COLOR_HIGHLIGHT: nk_style_colors = 22;
2880pub const nk_style_colors_NK_COLOR_SCROLLBAR: nk_style_colors = 23;
2881pub const nk_style_colors_NK_COLOR_SCROLLBAR_CURSOR: nk_style_colors = 24;
2882pub const nk_style_colors_NK_COLOR_SCROLLBAR_CURSOR_HOVER: nk_style_colors = 25;
2883pub const nk_style_colors_NK_COLOR_SCROLLBAR_CURSOR_ACTIVE: nk_style_colors =
2884    26;
2885pub const nk_style_colors_NK_COLOR_TAB_HEADER: nk_style_colors = 27;
2886pub const nk_style_colors_NK_COLOR_COUNT: nk_style_colors = 28;
2887pub type nk_style_colors = u32;
2888pub const nk_style_cursor_NK_CURSOR_ARROW: nk_style_cursor = 0;
2889pub const nk_style_cursor_NK_CURSOR_TEXT: nk_style_cursor = 1;
2890pub const nk_style_cursor_NK_CURSOR_MOVE: nk_style_cursor = 2;
2891pub const nk_style_cursor_NK_CURSOR_RESIZE_VERTICAL: nk_style_cursor = 3;
2892pub const nk_style_cursor_NK_CURSOR_RESIZE_HORIZONTAL: nk_style_cursor = 4;
2893pub const nk_style_cursor_NK_CURSOR_RESIZE_TOP_LEFT_DOWN_RIGHT:
2894    nk_style_cursor = 5;
2895pub const nk_style_cursor_NK_CURSOR_RESIZE_TOP_RIGHT_DOWN_LEFT:
2896    nk_style_cursor = 6;
2897pub const nk_style_cursor_NK_CURSOR_COUNT: nk_style_cursor = 7;
2898pub type nk_style_cursor = u32;
2899extern "C" {
2900    pub fn nk_style_default(arg1: *mut nk_context);
2901}
2902extern "C" {
2903    pub fn nk_style_from_table(arg1: *mut nk_context, arg2: *const nk_color);
2904}
2905extern "C" {
2906    pub fn nk_style_load_cursor(
2907        arg1: *mut nk_context,
2908        arg2: nk_style_cursor,
2909        arg3: *const nk_cursor,
2910    );
2911}
2912extern "C" {
2913    pub fn nk_style_load_all_cursors(
2914        arg1: *mut nk_context,
2915        arg2: *mut nk_cursor,
2916    );
2917}
2918extern "C" {
2919    pub fn nk_style_get_color_by_name(
2920        arg1: nk_style_colors,
2921    ) -> *const ::std::os::raw::c_char;
2922}
2923extern "C" {
2924    pub fn nk_style_set_font(arg1: *mut nk_context, arg2: *const nk_user_font);
2925}
2926extern "C" {
2927    pub fn nk_style_set_cursor(
2928        arg1: *mut nk_context,
2929        arg2: nk_style_cursor,
2930    ) -> ::std::os::raw::c_int;
2931}
2932extern "C" {
2933    pub fn nk_style_show_cursor(arg1: *mut nk_context);
2934}
2935extern "C" {
2936    pub fn nk_style_hide_cursor(arg1: *mut nk_context);
2937}
2938extern "C" {
2939    pub fn nk_style_push_font(
2940        arg1: *mut nk_context,
2941        arg2: *const nk_user_font,
2942    ) -> ::std::os::raw::c_int;
2943}
2944extern "C" {
2945    pub fn nk_style_push_float(
2946        arg1: *mut nk_context,
2947        arg2: *mut f32,
2948        arg3: f32,
2949    ) -> ::std::os::raw::c_int;
2950}
2951extern "C" {
2952    pub fn nk_style_push_vec2(
2953        arg1: *mut nk_context,
2954        arg2: *mut nk_vec2,
2955        arg3: nk_vec2,
2956    ) -> ::std::os::raw::c_int;
2957}
2958extern "C" {
2959    pub fn nk_style_push_style_item(
2960        arg1: *mut nk_context,
2961        arg2: *mut nk_style_item,
2962        arg3: nk_style_item,
2963    ) -> ::std::os::raw::c_int;
2964}
2965extern "C" {
2966    pub fn nk_style_push_flags(
2967        arg1: *mut nk_context,
2968        arg2: *mut nk_flags,
2969        arg3: nk_flags,
2970    ) -> ::std::os::raw::c_int;
2971}
2972extern "C" {
2973    pub fn nk_style_push_color(
2974        arg1: *mut nk_context,
2975        arg2: *mut nk_color,
2976        arg3: nk_color,
2977    ) -> ::std::os::raw::c_int;
2978}
2979extern "C" {
2980    pub fn nk_style_pop_font(arg1: *mut nk_context) -> ::std::os::raw::c_int;
2981}
2982extern "C" {
2983    pub fn nk_style_pop_float(arg1: *mut nk_context) -> ::std::os::raw::c_int;
2984}
2985extern "C" {
2986    pub fn nk_style_pop_vec2(arg1: *mut nk_context) -> ::std::os::raw::c_int;
2987}
2988extern "C" {
2989    pub fn nk_style_pop_style_item(
2990        arg1: *mut nk_context,
2991    ) -> ::std::os::raw::c_int;
2992}
2993extern "C" {
2994    pub fn nk_style_pop_flags(arg1: *mut nk_context) -> ::std::os::raw::c_int;
2995}
2996extern "C" {
2997    pub fn nk_style_pop_color(arg1: *mut nk_context) -> ::std::os::raw::c_int;
2998}
2999extern "C" {
3000    pub fn nk_rgb(
3001        r: ::std::os::raw::c_int,
3002        g: ::std::os::raw::c_int,
3003        b: ::std::os::raw::c_int,
3004    ) -> nk_color;
3005}
3006extern "C" {
3007    pub fn nk_rgb_iv(rgb: *const ::std::os::raw::c_int) -> nk_color;
3008}
3009extern "C" {
3010    pub fn nk_rgb_bv(rgb: *const nk_byte) -> nk_color;
3011}
3012extern "C" {
3013    pub fn nk_rgb_f(r: f32, g: f32, b: f32) -> nk_color;
3014}
3015extern "C" {
3016    pub fn nk_rgb_fv(rgb: *const f32) -> nk_color;
3017}
3018extern "C" {
3019    pub fn nk_rgb_cf(c: nk_colorf) -> nk_color;
3020}
3021extern "C" {
3022    pub fn nk_rgb_hex(rgb: *const ::std::os::raw::c_char) -> nk_color;
3023}
3024extern "C" {
3025    pub fn nk_rgba(
3026        r: ::std::os::raw::c_int,
3027        g: ::std::os::raw::c_int,
3028        b: ::std::os::raw::c_int,
3029        a: ::std::os::raw::c_int,
3030    ) -> nk_color;
3031}
3032extern "C" {
3033    pub fn nk_rgba_u32(arg1: nk_uint) -> nk_color;
3034}
3035extern "C" {
3036    pub fn nk_rgba_iv(rgba: *const ::std::os::raw::c_int) -> nk_color;
3037}
3038extern "C" {
3039    pub fn nk_rgba_bv(rgba: *const nk_byte) -> nk_color;
3040}
3041extern "C" {
3042    pub fn nk_rgba_f(r: f32, g: f32, b: f32, a: f32) -> nk_color;
3043}
3044extern "C" {
3045    pub fn nk_rgba_fv(rgba: *const f32) -> nk_color;
3046}
3047extern "C" {
3048    pub fn nk_rgba_cf(c: nk_colorf) -> nk_color;
3049}
3050extern "C" {
3051    pub fn nk_rgba_hex(rgb: *const ::std::os::raw::c_char) -> nk_color;
3052}
3053extern "C" {
3054    pub fn nk_hsva_colorf(h: f32, s: f32, v: f32, a: f32) -> nk_colorf;
3055}
3056extern "C" {
3057    pub fn nk_hsva_colorfv(c: *mut f32) -> nk_colorf;
3058}
3059extern "C" {
3060    pub fn nk_colorf_hsva_f(
3061        out_h: *mut f32,
3062        out_s: *mut f32,
3063        out_v: *mut f32,
3064        out_a: *mut f32,
3065        in_: nk_colorf,
3066    );
3067}
3068extern "C" {
3069    pub fn nk_colorf_hsva_fv(hsva: *mut f32, in_: nk_colorf);
3070}
3071extern "C" {
3072    pub fn nk_hsv(
3073        h: ::std::os::raw::c_int,
3074        s: ::std::os::raw::c_int,
3075        v: ::std::os::raw::c_int,
3076    ) -> nk_color;
3077}
3078extern "C" {
3079    pub fn nk_hsv_iv(hsv: *const ::std::os::raw::c_int) -> nk_color;
3080}
3081extern "C" {
3082    pub fn nk_hsv_bv(hsv: *const nk_byte) -> nk_color;
3083}
3084extern "C" {
3085    pub fn nk_hsv_f(h: f32, s: f32, v: f32) -> nk_color;
3086}
3087extern "C" {
3088    pub fn nk_hsv_fv(hsv: *const f32) -> nk_color;
3089}
3090extern "C" {
3091    pub fn nk_hsva(
3092        h: ::std::os::raw::c_int,
3093        s: ::std::os::raw::c_int,
3094        v: ::std::os::raw::c_int,
3095        a: ::std::os::raw::c_int,
3096    ) -> nk_color;
3097}
3098extern "C" {
3099    pub fn nk_hsva_iv(hsva: *const ::std::os::raw::c_int) -> nk_color;
3100}
3101extern "C" {
3102    pub fn nk_hsva_bv(hsva: *const nk_byte) -> nk_color;
3103}
3104extern "C" {
3105    pub fn nk_hsva_f(h: f32, s: f32, v: f32, a: f32) -> nk_color;
3106}
3107extern "C" {
3108    pub fn nk_hsva_fv(hsva: *const f32) -> nk_color;
3109}
3110extern "C" {
3111    pub fn nk_color_f(
3112        r: *mut f32,
3113        g: *mut f32,
3114        b: *mut f32,
3115        a: *mut f32,
3116        arg1: nk_color,
3117    );
3118}
3119extern "C" {
3120    pub fn nk_color_fv(rgba_out: *mut f32, arg1: nk_color);
3121}
3122extern "C" {
3123    pub fn nk_color_cf(arg1: nk_color) -> nk_colorf;
3124}
3125extern "C" {
3126    pub fn nk_color_d(
3127        r: *mut f64,
3128        g: *mut f64,
3129        b: *mut f64,
3130        a: *mut f64,
3131        arg1: nk_color,
3132    );
3133}
3134extern "C" {
3135    pub fn nk_color_dv(rgba_out: *mut f64, arg1: nk_color);
3136}
3137extern "C" {
3138    pub fn nk_color_u32(arg1: nk_color) -> nk_uint;
3139}
3140extern "C" {
3141    pub fn nk_color_hex_rgba(
3142        output: *mut ::std::os::raw::c_char,
3143        arg1: nk_color,
3144    );
3145}
3146extern "C" {
3147    pub fn nk_color_hex_rgb(
3148        output: *mut ::std::os::raw::c_char,
3149        arg1: nk_color,
3150    );
3151}
3152extern "C" {
3153    pub fn nk_color_hsv_i(
3154        out_h: *mut ::std::os::raw::c_int,
3155        out_s: *mut ::std::os::raw::c_int,
3156        out_v: *mut ::std::os::raw::c_int,
3157        arg1: nk_color,
3158    );
3159}
3160extern "C" {
3161    pub fn nk_color_hsv_b(
3162        out_h: *mut nk_byte,
3163        out_s: *mut nk_byte,
3164        out_v: *mut nk_byte,
3165        arg1: nk_color,
3166    );
3167}
3168extern "C" {
3169    pub fn nk_color_hsv_iv(hsv_out: *mut ::std::os::raw::c_int, arg1: nk_color);
3170}
3171extern "C" {
3172    pub fn nk_color_hsv_bv(hsv_out: *mut nk_byte, arg1: nk_color);
3173}
3174extern "C" {
3175    pub fn nk_color_hsv_f(
3176        out_h: *mut f32,
3177        out_s: *mut f32,
3178        out_v: *mut f32,
3179        arg1: nk_color,
3180    );
3181}
3182extern "C" {
3183    pub fn nk_color_hsv_fv(hsv_out: *mut f32, arg1: nk_color);
3184}
3185extern "C" {
3186    pub fn nk_color_hsva_i(
3187        h: *mut ::std::os::raw::c_int,
3188        s: *mut ::std::os::raw::c_int,
3189        v: *mut ::std::os::raw::c_int,
3190        a: *mut ::std::os::raw::c_int,
3191        arg1: nk_color,
3192    );
3193}
3194extern "C" {
3195    pub fn nk_color_hsva_b(
3196        h: *mut nk_byte,
3197        s: *mut nk_byte,
3198        v: *mut nk_byte,
3199        a: *mut nk_byte,
3200        arg1: nk_color,
3201    );
3202}
3203extern "C" {
3204    pub fn nk_color_hsva_iv(
3205        hsva_out: *mut ::std::os::raw::c_int,
3206        arg1: nk_color,
3207    );
3208}
3209extern "C" {
3210    pub fn nk_color_hsva_bv(hsva_out: *mut nk_byte, arg1: nk_color);
3211}
3212extern "C" {
3213    pub fn nk_color_hsva_f(
3214        out_h: *mut f32,
3215        out_s: *mut f32,
3216        out_v: *mut f32,
3217        out_a: *mut f32,
3218        arg1: nk_color,
3219    );
3220}
3221extern "C" {
3222    pub fn nk_color_hsva_fv(hsva_out: *mut f32, arg1: nk_color);
3223}
3224extern "C" {
3225    pub fn nk_handle_ptr(arg1: *mut ::std::os::raw::c_void) -> nk_handle;
3226}
3227extern "C" {
3228    pub fn nk_handle_id(arg1: ::std::os::raw::c_int) -> nk_handle;
3229}
3230extern "C" {
3231    pub fn nk_image_handle(arg1: nk_handle) -> nk_image;
3232}
3233extern "C" {
3234    pub fn nk_image_ptr(arg1: *mut ::std::os::raw::c_void) -> nk_image;
3235}
3236extern "C" {
3237    pub fn nk_image_id(arg1: ::std::os::raw::c_int) -> nk_image;
3238}
3239extern "C" {
3240    pub fn nk_image_is_subimage(img: *const nk_image) -> ::std::os::raw::c_int;
3241}
3242extern "C" {
3243    pub fn nk_subimage_ptr(
3244        arg1: *mut ::std::os::raw::c_void,
3245        w: ::std::os::raw::c_ushort,
3246        h: ::std::os::raw::c_ushort,
3247        sub_region: nk_rect,
3248    ) -> nk_image;
3249}
3250extern "C" {
3251    pub fn nk_subimage_id(
3252        arg1: ::std::os::raw::c_int,
3253        w: ::std::os::raw::c_ushort,
3254        h: ::std::os::raw::c_ushort,
3255        sub_region: nk_rect,
3256    ) -> nk_image;
3257}
3258extern "C" {
3259    pub fn nk_subimage_handle(
3260        arg1: nk_handle,
3261        w: ::std::os::raw::c_ushort,
3262        h: ::std::os::raw::c_ushort,
3263        sub_region: nk_rect,
3264    ) -> nk_image;
3265}
3266extern "C" {
3267    pub fn nk_murmur_hash(
3268        key: *const ::std::os::raw::c_void,
3269        len: ::std::os::raw::c_int,
3270        seed: nk_hash,
3271    ) -> nk_hash;
3272}
3273extern "C" {
3274    pub fn nk_triangle_from_direction(
3275        result: *mut nk_vec2,
3276        r: nk_rect,
3277        pad_x: f32,
3278        pad_y: f32,
3279        arg1: nk_heading,
3280    );
3281}
3282extern "C" {
3283    pub fn nk_vec2(x: f32, y: f32) -> nk_vec2;
3284}
3285extern "C" {
3286    pub fn nk_vec2i(
3287        x: ::std::os::raw::c_int,
3288        y: ::std::os::raw::c_int,
3289    ) -> nk_vec2;
3290}
3291extern "C" {
3292    pub fn nk_vec2v(xy: *const f32) -> nk_vec2;
3293}
3294extern "C" {
3295    pub fn nk_vec2iv(xy: *const ::std::os::raw::c_int) -> nk_vec2;
3296}
3297extern "C" {
3298    pub fn nk_get_null_rect() -> nk_rect;
3299}
3300extern "C" {
3301    pub fn nk_rect(x: f32, y: f32, w: f32, h: f32) -> nk_rect;
3302}
3303extern "C" {
3304    pub fn nk_recti(
3305        x: ::std::os::raw::c_int,
3306        y: ::std::os::raw::c_int,
3307        w: ::std::os::raw::c_int,
3308        h: ::std::os::raw::c_int,
3309    ) -> nk_rect;
3310}
3311extern "C" {
3312    pub fn nk_recta(pos: nk_vec2, size: nk_vec2) -> nk_rect;
3313}
3314extern "C" {
3315    pub fn nk_rectv(xywh: *const f32) -> nk_rect;
3316}
3317extern "C" {
3318    pub fn nk_rectiv(xywh: *const ::std::os::raw::c_int) -> nk_rect;
3319}
3320extern "C" {
3321    pub fn nk_rect_pos(arg1: nk_rect) -> nk_vec2;
3322}
3323extern "C" {
3324    pub fn nk_rect_size(arg1: nk_rect) -> nk_vec2;
3325}
3326extern "C" {
3327    pub fn nk_strlen(
3328        str: *const ::std::os::raw::c_char,
3329    ) -> ::std::os::raw::c_int;
3330}
3331extern "C" {
3332    pub fn nk_stricmp(
3333        s1: *const ::std::os::raw::c_char,
3334        s2: *const ::std::os::raw::c_char,
3335    ) -> ::std::os::raw::c_int;
3336}
3337extern "C" {
3338    pub fn nk_stricmpn(
3339        s1: *const ::std::os::raw::c_char,
3340        s2: *const ::std::os::raw::c_char,
3341        n: ::std::os::raw::c_int,
3342    ) -> ::std::os::raw::c_int;
3343}
3344extern "C" {
3345    pub fn nk_strtoi(
3346        str: *const ::std::os::raw::c_char,
3347        endptr: *mut *const ::std::os::raw::c_char,
3348    ) -> ::std::os::raw::c_int;
3349}
3350extern "C" {
3351    pub fn nk_strtof(
3352        str: *const ::std::os::raw::c_char,
3353        endptr: *mut *const ::std::os::raw::c_char,
3354    ) -> f32;
3355}
3356extern "C" {
3357    pub fn nk_strtod(
3358        str: *const ::std::os::raw::c_char,
3359        endptr: *mut *const ::std::os::raw::c_char,
3360    ) -> f64;
3361}
3362extern "C" {
3363    pub fn nk_strfilter(
3364        text: *const ::std::os::raw::c_char,
3365        regexp: *const ::std::os::raw::c_char,
3366    ) -> ::std::os::raw::c_int;
3367}
3368extern "C" {
3369    pub fn nk_strmatch_fuzzy_string(
3370        str: *const ::std::os::raw::c_char,
3371        pattern: *const ::std::os::raw::c_char,
3372        out_score: *mut ::std::os::raw::c_int,
3373    ) -> ::std::os::raw::c_int;
3374}
3375extern "C" {
3376    pub fn nk_strmatch_fuzzy_text(
3377        txt: *const ::std::os::raw::c_char,
3378        txt_len: ::std::os::raw::c_int,
3379        pattern: *const ::std::os::raw::c_char,
3380        out_score: *mut ::std::os::raw::c_int,
3381    ) -> ::std::os::raw::c_int;
3382}
3383extern "C" {
3384    pub fn nk_utf_decode(
3385        arg1: *const ::std::os::raw::c_char,
3386        arg2: *mut nk_rune,
3387        arg3: ::std::os::raw::c_int,
3388    ) -> ::std::os::raw::c_int;
3389}
3390extern "C" {
3391    pub fn nk_utf_encode(
3392        arg1: nk_rune,
3393        arg2: *mut ::std::os::raw::c_char,
3394        arg3: ::std::os::raw::c_int,
3395    ) -> ::std::os::raw::c_int;
3396}
3397extern "C" {
3398    pub fn nk_utf_len(
3399        arg1: *const ::std::os::raw::c_char,
3400        byte_len: ::std::os::raw::c_int,
3401    ) -> ::std::os::raw::c_int;
3402}
3403extern "C" {
3404    pub fn nk_utf_at(
3405        buffer: *const ::std::os::raw::c_char,
3406        length: ::std::os::raw::c_int,
3407        index: ::std::os::raw::c_int,
3408        unicode: *mut nk_rune,
3409        len: *mut ::std::os::raw::c_int,
3410    ) -> *const ::std::os::raw::c_char;
3411}
3412pub type nk_text_width_f = ::std::option::Option<
3413    unsafe extern "C" fn(
3414        arg1: nk_handle,
3415        h: f32,
3416        arg2: *const ::std::os::raw::c_char,
3417        len: ::std::os::raw::c_int,
3418    ) -> f32,
3419>;
3420pub type nk_query_font_glyph_f = ::std::option::Option<
3421    unsafe extern "C" fn(
3422        handle: nk_handle,
3423        font_height: f32,
3424        glyph: *mut nk_user_font_glyph,
3425        codepoint: nk_rune,
3426        next_codepoint: nk_rune,
3427    ),
3428>;
3429#[repr(C)]
3430#[derive(Debug, Default, Copy, Clone)]
3431pub struct nk_user_font_glyph {
3432    pub uv: [nk_vec2; 2usize],
3433    pub offset: nk_vec2,
3434    pub width: f32,
3435    pub height: f32,
3436    pub xadvance: f32,
3437}
3438#[test]
3439fn bindgen_test_layout_nk_user_font_glyph() {
3440    assert_eq!(
3441        ::std::mem::size_of::<nk_user_font_glyph>(),
3442        36usize,
3443        concat!("Size of: ", stringify!(nk_user_font_glyph))
3444    );
3445    assert_eq!(
3446        ::std::mem::align_of::<nk_user_font_glyph>(),
3447        4usize,
3448        concat!("Alignment of ", stringify!(nk_user_font_glyph))
3449    );
3450    assert_eq!(
3451        unsafe {
3452            &(*(::std::ptr::null::<nk_user_font_glyph>())).uv as *const _
3453                as usize
3454        },
3455        0usize,
3456        concat!(
3457            "Offset of field: ",
3458            stringify!(nk_user_font_glyph),
3459            "::",
3460            stringify!(uv)
3461        )
3462    );
3463    assert_eq!(
3464        unsafe {
3465            &(*(::std::ptr::null::<nk_user_font_glyph>())).offset as *const _
3466                as usize
3467        },
3468        16usize,
3469        concat!(
3470            "Offset of field: ",
3471            stringify!(nk_user_font_glyph),
3472            "::",
3473            stringify!(offset)
3474        )
3475    );
3476    assert_eq!(
3477        unsafe {
3478            &(*(::std::ptr::null::<nk_user_font_glyph>())).width as *const _
3479                as usize
3480        },
3481        24usize,
3482        concat!(
3483            "Offset of field: ",
3484            stringify!(nk_user_font_glyph),
3485            "::",
3486            stringify!(width)
3487        )
3488    );
3489    assert_eq!(
3490        unsafe {
3491            &(*(::std::ptr::null::<nk_user_font_glyph>())).height as *const _
3492                as usize
3493        },
3494        28usize,
3495        concat!(
3496            "Offset of field: ",
3497            stringify!(nk_user_font_glyph),
3498            "::",
3499            stringify!(height)
3500        )
3501    );
3502    assert_eq!(
3503        unsafe {
3504            &(*(::std::ptr::null::<nk_user_font_glyph>())).xadvance as *const _
3505                as usize
3506        },
3507        32usize,
3508        concat!(
3509            "Offset of field: ",
3510            stringify!(nk_user_font_glyph),
3511            "::",
3512            stringify!(xadvance)
3513        )
3514    );
3515}
3516#[repr(C)]
3517#[derive(Copy, Clone)]
3518pub struct nk_user_font {
3519    pub userdata: nk_handle,
3520    pub height: f32,
3521    pub width: nk_text_width_f,
3522    pub query: nk_query_font_glyph_f,
3523    pub texture: nk_handle,
3524}
3525#[test]
3526fn bindgen_test_layout_nk_user_font() {
3527    assert_eq!(
3528        ::std::mem::size_of::<nk_user_font>(),
3529        40usize,
3530        concat!("Size of: ", stringify!(nk_user_font))
3531    );
3532    assert_eq!(
3533        ::std::mem::align_of::<nk_user_font>(),
3534        8usize,
3535        concat!("Alignment of ", stringify!(nk_user_font))
3536    );
3537    assert_eq!(
3538        unsafe {
3539            &(*(::std::ptr::null::<nk_user_font>())).userdata as *const _
3540                as usize
3541        },
3542        0usize,
3543        concat!(
3544            "Offset of field: ",
3545            stringify!(nk_user_font),
3546            "::",
3547            stringify!(userdata)
3548        )
3549    );
3550    assert_eq!(
3551        unsafe {
3552            &(*(::std::ptr::null::<nk_user_font>())).height as *const _ as usize
3553        },
3554        8usize,
3555        concat!(
3556            "Offset of field: ",
3557            stringify!(nk_user_font),
3558            "::",
3559            stringify!(height)
3560        )
3561    );
3562    assert_eq!(
3563        unsafe {
3564            &(*(::std::ptr::null::<nk_user_font>())).width as *const _ as usize
3565        },
3566        16usize,
3567        concat!(
3568            "Offset of field: ",
3569            stringify!(nk_user_font),
3570            "::",
3571            stringify!(width)
3572        )
3573    );
3574    assert_eq!(
3575        unsafe {
3576            &(*(::std::ptr::null::<nk_user_font>())).query as *const _ as usize
3577        },
3578        24usize,
3579        concat!(
3580            "Offset of field: ",
3581            stringify!(nk_user_font),
3582            "::",
3583            stringify!(query)
3584        )
3585    );
3586    assert_eq!(
3587        unsafe {
3588            &(*(::std::ptr::null::<nk_user_font>())).texture as *const _
3589                as usize
3590        },
3591        32usize,
3592        concat!(
3593            "Offset of field: ",
3594            stringify!(nk_user_font),
3595            "::",
3596            stringify!(texture)
3597        )
3598    );
3599}
3600impl Default for nk_user_font {
3601    fn default() -> Self {
3602        unsafe { ::std::mem::zeroed() }
3603    }
3604}
3605pub const nk_font_coord_type_NK_COORD_UV: nk_font_coord_type = 0;
3606pub const nk_font_coord_type_NK_COORD_PIXEL: nk_font_coord_type = 1;
3607pub type nk_font_coord_type = u32;
3608#[repr(C)]
3609#[derive(Debug, Copy, Clone)]
3610pub struct nk_baked_font {
3611    pub height: f32,
3612    pub ascent: f32,
3613    pub descent: f32,
3614    pub glyph_offset: nk_rune,
3615    pub glyph_count: nk_rune,
3616    pub ranges: *const nk_rune,
3617}
3618#[test]
3619fn bindgen_test_layout_nk_baked_font() {
3620    assert_eq!(
3621        ::std::mem::size_of::<nk_baked_font>(),
3622        32usize,
3623        concat!("Size of: ", stringify!(nk_baked_font))
3624    );
3625    assert_eq!(
3626        ::std::mem::align_of::<nk_baked_font>(),
3627        8usize,
3628        concat!("Alignment of ", stringify!(nk_baked_font))
3629    );
3630    assert_eq!(
3631        unsafe {
3632            &(*(::std::ptr::null::<nk_baked_font>())).height as *const _
3633                as usize
3634        },
3635        0usize,
3636        concat!(
3637            "Offset of field: ",
3638            stringify!(nk_baked_font),
3639            "::",
3640            stringify!(height)
3641        )
3642    );
3643    assert_eq!(
3644        unsafe {
3645            &(*(::std::ptr::null::<nk_baked_font>())).ascent as *const _
3646                as usize
3647        },
3648        4usize,
3649        concat!(
3650            "Offset of field: ",
3651            stringify!(nk_baked_font),
3652            "::",
3653            stringify!(ascent)
3654        )
3655    );
3656    assert_eq!(
3657        unsafe {
3658            &(*(::std::ptr::null::<nk_baked_font>())).descent as *const _
3659                as usize
3660        },
3661        8usize,
3662        concat!(
3663            "Offset of field: ",
3664            stringify!(nk_baked_font),
3665            "::",
3666            stringify!(descent)
3667        )
3668    );
3669    assert_eq!(
3670        unsafe {
3671            &(*(::std::ptr::null::<nk_baked_font>())).glyph_offset as *const _
3672                as usize
3673        },
3674        12usize,
3675        concat!(
3676            "Offset of field: ",
3677            stringify!(nk_baked_font),
3678            "::",
3679            stringify!(glyph_offset)
3680        )
3681    );
3682    assert_eq!(
3683        unsafe {
3684            &(*(::std::ptr::null::<nk_baked_font>())).glyph_count as *const _
3685                as usize
3686        },
3687        16usize,
3688        concat!(
3689            "Offset of field: ",
3690            stringify!(nk_baked_font),
3691            "::",
3692            stringify!(glyph_count)
3693        )
3694    );
3695    assert_eq!(
3696        unsafe {
3697            &(*(::std::ptr::null::<nk_baked_font>())).ranges as *const _
3698                as usize
3699        },
3700        24usize,
3701        concat!(
3702            "Offset of field: ",
3703            stringify!(nk_baked_font),
3704            "::",
3705            stringify!(ranges)
3706        )
3707    );
3708}
3709impl Default for nk_baked_font {
3710    fn default() -> Self {
3711        unsafe { ::std::mem::zeroed() }
3712    }
3713}
3714#[repr(C)]
3715#[derive(Debug, Copy, Clone)]
3716pub struct nk_font_config {
3717    pub next: *mut nk_font_config,
3718    pub ttf_blob: *mut ::std::os::raw::c_void,
3719    pub ttf_size: nk_size,
3720    pub ttf_data_owned_by_atlas: ::std::os::raw::c_uchar,
3721    pub merge_mode: ::std::os::raw::c_uchar,
3722    pub pixel_snap: ::std::os::raw::c_uchar,
3723    pub oversample_v: ::std::os::raw::c_uchar,
3724    pub oversample_h: ::std::os::raw::c_uchar,
3725    pub padding: [::std::os::raw::c_uchar; 3usize],
3726    pub size: f32,
3727    pub coord_type: nk_font_coord_type,
3728    pub spacing: nk_vec2,
3729    pub range: *const nk_rune,
3730    pub font: *mut nk_baked_font,
3731    pub fallback_glyph: nk_rune,
3732    pub n: *mut nk_font_config,
3733    pub p: *mut nk_font_config,
3734}
3735#[test]
3736fn bindgen_test_layout_nk_font_config() {
3737    assert_eq!(
3738        ::std::mem::size_of::<nk_font_config>(),
3739        88usize,
3740        concat!("Size of: ", stringify!(nk_font_config))
3741    );
3742    assert_eq!(
3743        ::std::mem::align_of::<nk_font_config>(),
3744        8usize,
3745        concat!("Alignment of ", stringify!(nk_font_config))
3746    );
3747    assert_eq!(
3748        unsafe {
3749            &(*(::std::ptr::null::<nk_font_config>())).next as *const _ as usize
3750        },
3751        0usize,
3752        concat!(
3753            "Offset of field: ",
3754            stringify!(nk_font_config),
3755            "::",
3756            stringify!(next)
3757        )
3758    );
3759    assert_eq!(
3760        unsafe {
3761            &(*(::std::ptr::null::<nk_font_config>())).ttf_blob as *const _
3762                as usize
3763        },
3764        8usize,
3765        concat!(
3766            "Offset of field: ",
3767            stringify!(nk_font_config),
3768            "::",
3769            stringify!(ttf_blob)
3770        )
3771    );
3772    assert_eq!(
3773        unsafe {
3774            &(*(::std::ptr::null::<nk_font_config>())).ttf_size as *const _
3775                as usize
3776        },
3777        16usize,
3778        concat!(
3779            "Offset of field: ",
3780            stringify!(nk_font_config),
3781            "::",
3782            stringify!(ttf_size)
3783        )
3784    );
3785    assert_eq!(
3786        unsafe {
3787            &(*(::std::ptr::null::<nk_font_config>())).ttf_data_owned_by_atlas
3788                as *const _ as usize
3789        },
3790        20usize,
3791        concat!(
3792            "Offset of field: ",
3793            stringify!(nk_font_config),
3794            "::",
3795            stringify!(ttf_data_owned_by_atlas)
3796        )
3797    );
3798    assert_eq!(
3799        unsafe {
3800            &(*(::std::ptr::null::<nk_font_config>())).merge_mode as *const _
3801                as usize
3802        },
3803        21usize,
3804        concat!(
3805            "Offset of field: ",
3806            stringify!(nk_font_config),
3807            "::",
3808            stringify!(merge_mode)
3809        )
3810    );
3811    assert_eq!(
3812        unsafe {
3813            &(*(::std::ptr::null::<nk_font_config>())).pixel_snap as *const _
3814                as usize
3815        },
3816        22usize,
3817        concat!(
3818            "Offset of field: ",
3819            stringify!(nk_font_config),
3820            "::",
3821            stringify!(pixel_snap)
3822        )
3823    );
3824    assert_eq!(
3825        unsafe {
3826            &(*(::std::ptr::null::<nk_font_config>())).oversample_v as *const _
3827                as usize
3828        },
3829        23usize,
3830        concat!(
3831            "Offset of field: ",
3832            stringify!(nk_font_config),
3833            "::",
3834            stringify!(oversample_v)
3835        )
3836    );
3837    assert_eq!(
3838        unsafe {
3839            &(*(::std::ptr::null::<nk_font_config>())).oversample_h as *const _
3840                as usize
3841        },
3842        24usize,
3843        concat!(
3844            "Offset of field: ",
3845            stringify!(nk_font_config),
3846            "::",
3847            stringify!(oversample_h)
3848        )
3849    );
3850    assert_eq!(
3851        unsafe {
3852            &(*(::std::ptr::null::<nk_font_config>())).padding as *const _
3853                as usize
3854        },
3855        25usize,
3856        concat!(
3857            "Offset of field: ",
3858            stringify!(nk_font_config),
3859            "::",
3860            stringify!(padding)
3861        )
3862    );
3863    assert_eq!(
3864        unsafe {
3865            &(*(::std::ptr::null::<nk_font_config>())).size as *const _ as usize
3866        },
3867        28usize,
3868        concat!(
3869            "Offset of field: ",
3870            stringify!(nk_font_config),
3871            "::",
3872            stringify!(size)
3873        )
3874    );
3875    assert_eq!(
3876        unsafe {
3877            &(*(::std::ptr::null::<nk_font_config>())).coord_type as *const _
3878                as usize
3879        },
3880        32usize,
3881        concat!(
3882            "Offset of field: ",
3883            stringify!(nk_font_config),
3884            "::",
3885            stringify!(coord_type)
3886        )
3887    );
3888    assert_eq!(
3889        unsafe {
3890            &(*(::std::ptr::null::<nk_font_config>())).spacing as *const _
3891                as usize
3892        },
3893        36usize,
3894        concat!(
3895            "Offset of field: ",
3896            stringify!(nk_font_config),
3897            "::",
3898            stringify!(spacing)
3899        )
3900    );
3901    assert_eq!(
3902        unsafe {
3903            &(*(::std::ptr::null::<nk_font_config>())).range as *const _
3904                as usize
3905        },
3906        48usize,
3907        concat!(
3908            "Offset of field: ",
3909            stringify!(nk_font_config),
3910            "::",
3911            stringify!(range)
3912        )
3913    );
3914    assert_eq!(
3915        unsafe {
3916            &(*(::std::ptr::null::<nk_font_config>())).font as *const _ as usize
3917        },
3918        56usize,
3919        concat!(
3920            "Offset of field: ",
3921            stringify!(nk_font_config),
3922            "::",
3923            stringify!(font)
3924        )
3925    );
3926    assert_eq!(
3927        unsafe {
3928            &(*(::std::ptr::null::<nk_font_config>())).fallback_glyph
3929                as *const _ as usize
3930        },
3931        64usize,
3932        concat!(
3933            "Offset of field: ",
3934            stringify!(nk_font_config),
3935            "::",
3936            stringify!(fallback_glyph)
3937        )
3938    );
3939    assert_eq!(
3940        unsafe {
3941            &(*(::std::ptr::null::<nk_font_config>())).n as *const _ as usize
3942        },
3943        72usize,
3944        concat!(
3945            "Offset of field: ",
3946            stringify!(nk_font_config),
3947            "::",
3948            stringify!(n)
3949        )
3950    );
3951    assert_eq!(
3952        unsafe {
3953            &(*(::std::ptr::null::<nk_font_config>())).p as *const _ as usize
3954        },
3955        80usize,
3956        concat!(
3957            "Offset of field: ",
3958            stringify!(nk_font_config),
3959            "::",
3960            stringify!(p)
3961        )
3962    );
3963}
3964impl Default for nk_font_config {
3965    fn default() -> Self {
3966        unsafe { ::std::mem::zeroed() }
3967    }
3968}
3969#[repr(C)]
3970#[derive(Debug, Default, Copy, Clone)]
3971pub struct nk_font_glyph {
3972    pub codepoint: nk_rune,
3973    pub xadvance: f32,
3974    pub x0: f32,
3975    pub y0: f32,
3976    pub x1: f32,
3977    pub y1: f32,
3978    pub w: f32,
3979    pub h: f32,
3980    pub u0: f32,
3981    pub v0: f32,
3982    pub u1: f32,
3983    pub v1: f32,
3984}
3985#[test]
3986fn bindgen_test_layout_nk_font_glyph() {
3987    assert_eq!(
3988        ::std::mem::size_of::<nk_font_glyph>(),
3989        48usize,
3990        concat!("Size of: ", stringify!(nk_font_glyph))
3991    );
3992    assert_eq!(
3993        ::std::mem::align_of::<nk_font_glyph>(),
3994        4usize,
3995        concat!("Alignment of ", stringify!(nk_font_glyph))
3996    );
3997    assert_eq!(
3998        unsafe {
3999            &(*(::std::ptr::null::<nk_font_glyph>())).codepoint as *const _
4000                as usize
4001        },
4002        0usize,
4003        concat!(
4004            "Offset of field: ",
4005            stringify!(nk_font_glyph),
4006            "::",
4007            stringify!(codepoint)
4008        )
4009    );
4010    assert_eq!(
4011        unsafe {
4012            &(*(::std::ptr::null::<nk_font_glyph>())).xadvance as *const _
4013                as usize
4014        },
4015        4usize,
4016        concat!(
4017            "Offset of field: ",
4018            stringify!(nk_font_glyph),
4019            "::",
4020            stringify!(xadvance)
4021        )
4022    );
4023    assert_eq!(
4024        unsafe {
4025            &(*(::std::ptr::null::<nk_font_glyph>())).x0 as *const _ as usize
4026        },
4027        8usize,
4028        concat!(
4029            "Offset of field: ",
4030            stringify!(nk_font_glyph),
4031            "::",
4032            stringify!(x0)
4033        )
4034    );
4035    assert_eq!(
4036        unsafe {
4037            &(*(::std::ptr::null::<nk_font_glyph>())).y0 as *const _ as usize
4038        },
4039        12usize,
4040        concat!(
4041            "Offset of field: ",
4042            stringify!(nk_font_glyph),
4043            "::",
4044            stringify!(y0)
4045        )
4046    );
4047    assert_eq!(
4048        unsafe {
4049            &(*(::std::ptr::null::<nk_font_glyph>())).x1 as *const _ as usize
4050        },
4051        16usize,
4052        concat!(
4053            "Offset of field: ",
4054            stringify!(nk_font_glyph),
4055            "::",
4056            stringify!(x1)
4057        )
4058    );
4059    assert_eq!(
4060        unsafe {
4061            &(*(::std::ptr::null::<nk_font_glyph>())).y1 as *const _ as usize
4062        },
4063        20usize,
4064        concat!(
4065            "Offset of field: ",
4066            stringify!(nk_font_glyph),
4067            "::",
4068            stringify!(y1)
4069        )
4070    );
4071    assert_eq!(
4072        unsafe {
4073            &(*(::std::ptr::null::<nk_font_glyph>())).w as *const _ as usize
4074        },
4075        24usize,
4076        concat!(
4077            "Offset of field: ",
4078            stringify!(nk_font_glyph),
4079            "::",
4080            stringify!(w)
4081        )
4082    );
4083    assert_eq!(
4084        unsafe {
4085            &(*(::std::ptr::null::<nk_font_glyph>())).h as *const _ as usize
4086        },
4087        28usize,
4088        concat!(
4089            "Offset of field: ",
4090            stringify!(nk_font_glyph),
4091            "::",
4092            stringify!(h)
4093        )
4094    );
4095    assert_eq!(
4096        unsafe {
4097            &(*(::std::ptr::null::<nk_font_glyph>())).u0 as *const _ as usize
4098        },
4099        32usize,
4100        concat!(
4101            "Offset of field: ",
4102            stringify!(nk_font_glyph),
4103            "::",
4104            stringify!(u0)
4105        )
4106    );
4107    assert_eq!(
4108        unsafe {
4109            &(*(::std::ptr::null::<nk_font_glyph>())).v0 as *const _ as usize
4110        },
4111        36usize,
4112        concat!(
4113            "Offset of field: ",
4114            stringify!(nk_font_glyph),
4115            "::",
4116            stringify!(v0)
4117        )
4118    );
4119    assert_eq!(
4120        unsafe {
4121            &(*(::std::ptr::null::<nk_font_glyph>())).u1 as *const _ as usize
4122        },
4123        40usize,
4124        concat!(
4125            "Offset of field: ",
4126            stringify!(nk_font_glyph),
4127            "::",
4128            stringify!(u1)
4129        )
4130    );
4131    assert_eq!(
4132        unsafe {
4133            &(*(::std::ptr::null::<nk_font_glyph>())).v1 as *const _ as usize
4134        },
4135        44usize,
4136        concat!(
4137            "Offset of field: ",
4138            stringify!(nk_font_glyph),
4139            "::",
4140            stringify!(v1)
4141        )
4142    );
4143}
4144#[repr(C)]
4145#[derive(Copy, Clone)]
4146pub struct nk_font {
4147    pub next: *mut nk_font,
4148    pub handle: nk_user_font,
4149    pub info: nk_baked_font,
4150    pub scale: f32,
4151    pub glyphs: *mut nk_font_glyph,
4152    pub fallback: *const nk_font_glyph,
4153    pub fallback_codepoint: nk_rune,
4154    pub texture: nk_handle,
4155    pub config: *mut nk_font_config,
4156}
4157#[test]
4158fn bindgen_test_layout_nk_font() {
4159    assert_eq!(
4160        ::std::mem::size_of::<nk_font>(),
4161        128usize,
4162        concat!("Size of: ", stringify!(nk_font))
4163    );
4164    assert_eq!(
4165        ::std::mem::align_of::<nk_font>(),
4166        8usize,
4167        concat!("Alignment of ", stringify!(nk_font))
4168    );
4169    assert_eq!(
4170        unsafe {
4171            &(*(::std::ptr::null::<nk_font>())).next as *const _ as usize
4172        },
4173        0usize,
4174        concat!(
4175            "Offset of field: ",
4176            stringify!(nk_font),
4177            "::",
4178            stringify!(next)
4179        )
4180    );
4181    assert_eq!(
4182        unsafe {
4183            &(*(::std::ptr::null::<nk_font>())).handle as *const _ as usize
4184        },
4185        8usize,
4186        concat!(
4187            "Offset of field: ",
4188            stringify!(nk_font),
4189            "::",
4190            stringify!(handle)
4191        )
4192    );
4193    assert_eq!(
4194        unsafe {
4195            &(*(::std::ptr::null::<nk_font>())).info as *const _ as usize
4196        },
4197        48usize,
4198        concat!(
4199            "Offset of field: ",
4200            stringify!(nk_font),
4201            "::",
4202            stringify!(info)
4203        )
4204    );
4205    assert_eq!(
4206        unsafe {
4207            &(*(::std::ptr::null::<nk_font>())).scale as *const _ as usize
4208        },
4209        80usize,
4210        concat!(
4211            "Offset of field: ",
4212            stringify!(nk_font),
4213            "::",
4214            stringify!(scale)
4215        )
4216    );
4217    assert_eq!(
4218        unsafe {
4219            &(*(::std::ptr::null::<nk_font>())).glyphs as *const _ as usize
4220        },
4221        88usize,
4222        concat!(
4223            "Offset of field: ",
4224            stringify!(nk_font),
4225            "::",
4226            stringify!(glyphs)
4227        )
4228    );
4229    assert_eq!(
4230        unsafe {
4231            &(*(::std::ptr::null::<nk_font>())).fallback as *const _ as usize
4232        },
4233        96usize,
4234        concat!(
4235            "Offset of field: ",
4236            stringify!(nk_font),
4237            "::",
4238            stringify!(fallback)
4239        )
4240    );
4241    assert_eq!(
4242        unsafe {
4243            &(*(::std::ptr::null::<nk_font>())).fallback_codepoint as *const _
4244                as usize
4245        },
4246        104usize,
4247        concat!(
4248            "Offset of field: ",
4249            stringify!(nk_font),
4250            "::",
4251            stringify!(fallback_codepoint)
4252        )
4253    );
4254    assert_eq!(
4255        unsafe {
4256            &(*(::std::ptr::null::<nk_font>())).texture as *const _ as usize
4257        },
4258        112usize,
4259        concat!(
4260            "Offset of field: ",
4261            stringify!(nk_font),
4262            "::",
4263            stringify!(texture)
4264        )
4265    );
4266    assert_eq!(
4267        unsafe {
4268            &(*(::std::ptr::null::<nk_font>())).config as *const _ as usize
4269        },
4270        120usize,
4271        concat!(
4272            "Offset of field: ",
4273            stringify!(nk_font),
4274            "::",
4275            stringify!(config)
4276        )
4277    );
4278}
4279impl Default for nk_font {
4280    fn default() -> Self {
4281        unsafe { ::std::mem::zeroed() }
4282    }
4283}
4284pub const nk_font_atlas_format_NK_FONT_ATLAS_ALPHA8: nk_font_atlas_format = 0;
4285pub const nk_font_atlas_format_NK_FONT_ATLAS_RGBA32: nk_font_atlas_format = 1;
4286pub type nk_font_atlas_format = u32;
4287#[repr(C)]
4288#[derive(Copy, Clone)]
4289pub struct nk_font_atlas {
4290    pub pixel: *mut ::std::os::raw::c_void,
4291    pub tex_width: ::std::os::raw::c_int,
4292    pub tex_height: ::std::os::raw::c_int,
4293    pub permanent: nk_allocator,
4294    pub temporary: nk_allocator,
4295    pub custom: nk_recti,
4296    pub cursors: [nk_cursor; 7usize],
4297    pub glyph_count: ::std::os::raw::c_int,
4298    pub glyphs: *mut nk_font_glyph,
4299    pub default_font: *mut nk_font,
4300    pub fonts: *mut nk_font,
4301    pub config: *mut nk_font_config,
4302    pub font_num: ::std::os::raw::c_int,
4303}
4304#[test]
4305fn bindgen_test_layout_nk_font_atlas() {
4306    assert_eq!(
4307        ::std::mem::size_of::<nk_font_atlas>(),
4308        400usize,
4309        concat!("Size of: ", stringify!(nk_font_atlas))
4310    );
4311    assert_eq!(
4312        ::std::mem::align_of::<nk_font_atlas>(),
4313        8usize,
4314        concat!("Alignment of ", stringify!(nk_font_atlas))
4315    );
4316    assert_eq!(
4317        unsafe {
4318            &(*(::std::ptr::null::<nk_font_atlas>())).pixel as *const _ as usize
4319        },
4320        0usize,
4321        concat!(
4322            "Offset of field: ",
4323            stringify!(nk_font_atlas),
4324            "::",
4325            stringify!(pixel)
4326        )
4327    );
4328    assert_eq!(
4329        unsafe {
4330            &(*(::std::ptr::null::<nk_font_atlas>())).tex_width as *const _
4331                as usize
4332        },
4333        8usize,
4334        concat!(
4335            "Offset of field: ",
4336            stringify!(nk_font_atlas),
4337            "::",
4338            stringify!(tex_width)
4339        )
4340    );
4341    assert_eq!(
4342        unsafe {
4343            &(*(::std::ptr::null::<nk_font_atlas>())).tex_height as *const _
4344                as usize
4345        },
4346        12usize,
4347        concat!(
4348            "Offset of field: ",
4349            stringify!(nk_font_atlas),
4350            "::",
4351            stringify!(tex_height)
4352        )
4353    );
4354    assert_eq!(
4355        unsafe {
4356            &(*(::std::ptr::null::<nk_font_atlas>())).permanent as *const _
4357                as usize
4358        },
4359        16usize,
4360        concat!(
4361            "Offset of field: ",
4362            stringify!(nk_font_atlas),
4363            "::",
4364            stringify!(permanent)
4365        )
4366    );
4367    assert_eq!(
4368        unsafe {
4369            &(*(::std::ptr::null::<nk_font_atlas>())).temporary as *const _
4370                as usize
4371        },
4372        40usize,
4373        concat!(
4374            "Offset of field: ",
4375            stringify!(nk_font_atlas),
4376            "::",
4377            stringify!(temporary)
4378        )
4379    );
4380    assert_eq!(
4381        unsafe {
4382            &(*(::std::ptr::null::<nk_font_atlas>())).custom as *const _
4383                as usize
4384        },
4385        64usize,
4386        concat!(
4387            "Offset of field: ",
4388            stringify!(nk_font_atlas),
4389            "::",
4390            stringify!(custom)
4391        )
4392    );
4393    assert_eq!(
4394        unsafe {
4395            &(*(::std::ptr::null::<nk_font_atlas>())).cursors as *const _
4396                as usize
4397        },
4398        72usize,
4399        concat!(
4400            "Offset of field: ",
4401            stringify!(nk_font_atlas),
4402            "::",
4403            stringify!(cursors)
4404        )
4405    );
4406    assert_eq!(
4407        unsafe {
4408            &(*(::std::ptr::null::<nk_font_atlas>())).glyph_count as *const _
4409                as usize
4410        },
4411        352usize,
4412        concat!(
4413            "Offset of field: ",
4414            stringify!(nk_font_atlas),
4415            "::",
4416            stringify!(glyph_count)
4417        )
4418    );
4419    assert_eq!(
4420        unsafe {
4421            &(*(::std::ptr::null::<nk_font_atlas>())).glyphs as *const _
4422                as usize
4423        },
4424        360usize,
4425        concat!(
4426            "Offset of field: ",
4427            stringify!(nk_font_atlas),
4428            "::",
4429            stringify!(glyphs)
4430        )
4431    );
4432    assert_eq!(
4433        unsafe {
4434            &(*(::std::ptr::null::<nk_font_atlas>())).default_font as *const _
4435                as usize
4436        },
4437        368usize,
4438        concat!(
4439            "Offset of field: ",
4440            stringify!(nk_font_atlas),
4441            "::",
4442            stringify!(default_font)
4443        )
4444    );
4445    assert_eq!(
4446        unsafe {
4447            &(*(::std::ptr::null::<nk_font_atlas>())).fonts as *const _ as usize
4448        },
4449        376usize,
4450        concat!(
4451            "Offset of field: ",
4452            stringify!(nk_font_atlas),
4453            "::",
4454            stringify!(fonts)
4455        )
4456    );
4457    assert_eq!(
4458        unsafe {
4459            &(*(::std::ptr::null::<nk_font_atlas>())).config as *const _
4460                as usize
4461        },
4462        384usize,
4463        concat!(
4464            "Offset of field: ",
4465            stringify!(nk_font_atlas),
4466            "::",
4467            stringify!(config)
4468        )
4469    );
4470    assert_eq!(
4471        unsafe {
4472            &(*(::std::ptr::null::<nk_font_atlas>())).font_num as *const _
4473                as usize
4474        },
4475        392usize,
4476        concat!(
4477            "Offset of field: ",
4478            stringify!(nk_font_atlas),
4479            "::",
4480            stringify!(font_num)
4481        )
4482    );
4483}
4484impl Default for nk_font_atlas {
4485    fn default() -> Self {
4486        unsafe { ::std::mem::zeroed() }
4487    }
4488}
4489extern "C" {
4490    pub fn nk_font_default_glyph_ranges() -> *const nk_rune;
4491}
4492extern "C" {
4493    pub fn nk_font_chinese_glyph_ranges() -> *const nk_rune;
4494}
4495extern "C" {
4496    pub fn nk_font_cyrillic_glyph_ranges() -> *const nk_rune;
4497}
4498extern "C" {
4499    pub fn nk_font_korean_glyph_ranges() -> *const nk_rune;
4500}
4501extern "C" {
4502    pub fn nk_font_atlas_init(
4503        arg1: *mut nk_font_atlas,
4504        arg2: *mut nk_allocator,
4505    );
4506}
4507extern "C" {
4508    pub fn nk_font_atlas_init_custom(
4509        arg1: *mut nk_font_atlas,
4510        persistent: *mut nk_allocator,
4511        transient: *mut nk_allocator,
4512    );
4513}
4514extern "C" {
4515    pub fn nk_font_atlas_begin(arg1: *mut nk_font_atlas);
4516}
4517extern "C" {
4518    pub fn nk_font_config(pixel_height: f32) -> nk_font_config;
4519}
4520extern "C" {
4521    pub fn nk_font_atlas_add(
4522        arg1: *mut nk_font_atlas,
4523        arg2: *const nk_font_config,
4524    ) -> *mut nk_font;
4525}
4526extern "C" {
4527    pub fn nk_font_atlas_add_from_memory(
4528        atlas: *mut nk_font_atlas,
4529        memory: *mut ::std::os::raw::c_void,
4530        size: nk_size,
4531        height: f32,
4532        config: *const nk_font_config,
4533    ) -> *mut nk_font;
4534}
4535extern "C" {
4536    pub fn nk_font_atlas_add_compressed(
4537        arg1: *mut nk_font_atlas,
4538        memory: *mut ::std::os::raw::c_void,
4539        size: nk_size,
4540        height: f32,
4541        arg2: *const nk_font_config,
4542    ) -> *mut nk_font;
4543}
4544extern "C" {
4545    pub fn nk_font_atlas_add_compressed_base85(
4546        arg1: *mut nk_font_atlas,
4547        data: *const ::std::os::raw::c_char,
4548        height: f32,
4549        config: *const nk_font_config,
4550    ) -> *mut nk_font;
4551}
4552extern "C" {
4553    pub fn nk_font_atlas_bake(
4554        arg1: *mut nk_font_atlas,
4555        width: *mut ::std::os::raw::c_int,
4556        height: *mut ::std::os::raw::c_int,
4557        arg2: nk_font_atlas_format,
4558    ) -> *const ::std::os::raw::c_void;
4559}
4560extern "C" {
4561    pub fn nk_font_atlas_end(
4562        arg1: *mut nk_font_atlas,
4563        tex: nk_handle,
4564        arg2: *mut nk_draw_null_texture,
4565    );
4566}
4567extern "C" {
4568    pub fn nk_font_find_glyph(
4569        arg1: *mut nk_font,
4570        unicode: nk_rune,
4571    ) -> *const nk_font_glyph;
4572}
4573extern "C" {
4574    pub fn nk_font_atlas_cleanup(atlas: *mut nk_font_atlas);
4575}
4576extern "C" {
4577    pub fn nk_font_atlas_clear(arg1: *mut nk_font_atlas);
4578}
4579#[repr(C)]
4580#[derive(Debug, Copy, Clone)]
4581pub struct nk_memory_status {
4582    pub memory: *mut ::std::os::raw::c_void,
4583    pub type_: ::std::os::raw::c_uint,
4584    pub size: nk_size,
4585    pub allocated: nk_size,
4586    pub needed: nk_size,
4587    pub calls: nk_size,
4588}
4589#[test]
4590fn bindgen_test_layout_nk_memory_status() {
4591    assert_eq!(
4592        ::std::mem::size_of::<nk_memory_status>(),
4593        32usize,
4594        concat!("Size of: ", stringify!(nk_memory_status))
4595    );
4596    assert_eq!(
4597        ::std::mem::align_of::<nk_memory_status>(),
4598        8usize,
4599        concat!("Alignment of ", stringify!(nk_memory_status))
4600    );
4601    assert_eq!(
4602        unsafe {
4603            &(*(::std::ptr::null::<nk_memory_status>())).memory as *const _
4604                as usize
4605        },
4606        0usize,
4607        concat!(
4608            "Offset of field: ",
4609            stringify!(nk_memory_status),
4610            "::",
4611            stringify!(memory)
4612        )
4613    );
4614    assert_eq!(
4615        unsafe {
4616            &(*(::std::ptr::null::<nk_memory_status>())).type_ as *const _
4617                as usize
4618        },
4619        8usize,
4620        concat!(
4621            "Offset of field: ",
4622            stringify!(nk_memory_status),
4623            "::",
4624            stringify!(type_)
4625        )
4626    );
4627    assert_eq!(
4628        unsafe {
4629            &(*(::std::ptr::null::<nk_memory_status>())).size as *const _
4630                as usize
4631        },
4632        12usize,
4633        concat!(
4634            "Offset of field: ",
4635            stringify!(nk_memory_status),
4636            "::",
4637            stringify!(size)
4638        )
4639    );
4640    assert_eq!(
4641        unsafe {
4642            &(*(::std::ptr::null::<nk_memory_status>())).allocated as *const _
4643                as usize
4644        },
4645        16usize,
4646        concat!(
4647            "Offset of field: ",
4648            stringify!(nk_memory_status),
4649            "::",
4650            stringify!(allocated)
4651        )
4652    );
4653    assert_eq!(
4654        unsafe {
4655            &(*(::std::ptr::null::<nk_memory_status>())).needed as *const _
4656                as usize
4657        },
4658        20usize,
4659        concat!(
4660            "Offset of field: ",
4661            stringify!(nk_memory_status),
4662            "::",
4663            stringify!(needed)
4664        )
4665    );
4666    assert_eq!(
4667        unsafe {
4668            &(*(::std::ptr::null::<nk_memory_status>())).calls as *const _
4669                as usize
4670        },
4671        24usize,
4672        concat!(
4673            "Offset of field: ",
4674            stringify!(nk_memory_status),
4675            "::",
4676            stringify!(calls)
4677        )
4678    );
4679}
4680impl Default for nk_memory_status {
4681    fn default() -> Self {
4682        unsafe { ::std::mem::zeroed() }
4683    }
4684}
4685pub const nk_allocation_type_NK_BUFFER_FIXED: nk_allocation_type = 0;
4686pub const nk_allocation_type_NK_BUFFER_DYNAMIC: nk_allocation_type = 1;
4687pub type nk_allocation_type = u32;
4688pub const nk_buffer_allocation_type_NK_BUFFER_FRONT: nk_buffer_allocation_type =
4689    0;
4690pub const nk_buffer_allocation_type_NK_BUFFER_BACK: nk_buffer_allocation_type =
4691    1;
4692pub const nk_buffer_allocation_type_NK_BUFFER_MAX: nk_buffer_allocation_type =
4693    2;
4694pub type nk_buffer_allocation_type = u32;
4695#[repr(C)]
4696#[derive(Debug, Default, Copy, Clone)]
4697pub struct nk_buffer_marker {
4698    pub active: ::std::os::raw::c_int,
4699    pub offset: nk_size,
4700}
4701#[test]
4702fn bindgen_test_layout_nk_buffer_marker() {
4703    assert_eq!(
4704        ::std::mem::size_of::<nk_buffer_marker>(),
4705        8usize,
4706        concat!("Size of: ", stringify!(nk_buffer_marker))
4707    );
4708    assert_eq!(
4709        ::std::mem::align_of::<nk_buffer_marker>(),
4710        4usize,
4711        concat!("Alignment of ", stringify!(nk_buffer_marker))
4712    );
4713    assert_eq!(
4714        unsafe {
4715            &(*(::std::ptr::null::<nk_buffer_marker>())).active as *const _
4716                as usize
4717        },
4718        0usize,
4719        concat!(
4720            "Offset of field: ",
4721            stringify!(nk_buffer_marker),
4722            "::",
4723            stringify!(active)
4724        )
4725    );
4726    assert_eq!(
4727        unsafe {
4728            &(*(::std::ptr::null::<nk_buffer_marker>())).offset as *const _
4729                as usize
4730        },
4731        4usize,
4732        concat!(
4733            "Offset of field: ",
4734            stringify!(nk_buffer_marker),
4735            "::",
4736            stringify!(offset)
4737        )
4738    );
4739}
4740#[repr(C)]
4741#[derive(Debug, Copy, Clone)]
4742pub struct nk_memory {
4743    pub ptr: *mut ::std::os::raw::c_void,
4744    pub size: nk_size,
4745}
4746#[test]
4747fn bindgen_test_layout_nk_memory() {
4748    assert_eq!(
4749        ::std::mem::size_of::<nk_memory>(),
4750        16usize,
4751        concat!("Size of: ", stringify!(nk_memory))
4752    );
4753    assert_eq!(
4754        ::std::mem::align_of::<nk_memory>(),
4755        8usize,
4756        concat!("Alignment of ", stringify!(nk_memory))
4757    );
4758    assert_eq!(
4759        unsafe {
4760            &(*(::std::ptr::null::<nk_memory>())).ptr as *const _ as usize
4761        },
4762        0usize,
4763        concat!(
4764            "Offset of field: ",
4765            stringify!(nk_memory),
4766            "::",
4767            stringify!(ptr)
4768        )
4769    );
4770    assert_eq!(
4771        unsafe {
4772            &(*(::std::ptr::null::<nk_memory>())).size as *const _ as usize
4773        },
4774        8usize,
4775        concat!(
4776            "Offset of field: ",
4777            stringify!(nk_memory),
4778            "::",
4779            stringify!(size)
4780        )
4781    );
4782}
4783impl Default for nk_memory {
4784    fn default() -> Self {
4785        unsafe { ::std::mem::zeroed() }
4786    }
4787}
4788#[repr(C)]
4789#[derive(Copy, Clone)]
4790pub struct nk_buffer {
4791    pub marker: [nk_buffer_marker; 2usize],
4792    pub pool: nk_allocator,
4793    pub type_: nk_allocation_type,
4794    pub memory: nk_memory,
4795    pub grow_factor: f32,
4796    pub allocated: nk_size,
4797    pub needed: nk_size,
4798    pub calls: nk_size,
4799    pub size: nk_size,
4800}
4801#[test]
4802fn bindgen_test_layout_nk_buffer() {
4803    assert_eq!(
4804        ::std::mem::size_of::<nk_buffer>(),
4805        88usize,
4806        concat!("Size of: ", stringify!(nk_buffer))
4807    );
4808    assert_eq!(
4809        ::std::mem::align_of::<nk_buffer>(),
4810        8usize,
4811        concat!("Alignment of ", stringify!(nk_buffer))
4812    );
4813    assert_eq!(
4814        unsafe {
4815            &(*(::std::ptr::null::<nk_buffer>())).marker as *const _ as usize
4816        },
4817        0usize,
4818        concat!(
4819            "Offset of field: ",
4820            stringify!(nk_buffer),
4821            "::",
4822            stringify!(marker)
4823        )
4824    );
4825    assert_eq!(
4826        unsafe {
4827            &(*(::std::ptr::null::<nk_buffer>())).pool as *const _ as usize
4828        },
4829        16usize,
4830        concat!(
4831            "Offset of field: ",
4832            stringify!(nk_buffer),
4833            "::",
4834            stringify!(pool)
4835        )
4836    );
4837    assert_eq!(
4838        unsafe {
4839            &(*(::std::ptr::null::<nk_buffer>())).type_ as *const _ as usize
4840        },
4841        40usize,
4842        concat!(
4843            "Offset of field: ",
4844            stringify!(nk_buffer),
4845            "::",
4846            stringify!(type_)
4847        )
4848    );
4849    assert_eq!(
4850        unsafe {
4851            &(*(::std::ptr::null::<nk_buffer>())).memory as *const _ as usize
4852        },
4853        48usize,
4854        concat!(
4855            "Offset of field: ",
4856            stringify!(nk_buffer),
4857            "::",
4858            stringify!(memory)
4859        )
4860    );
4861    assert_eq!(
4862        unsafe {
4863            &(*(::std::ptr::null::<nk_buffer>())).grow_factor as *const _
4864                as usize
4865        },
4866        64usize,
4867        concat!(
4868            "Offset of field: ",
4869            stringify!(nk_buffer),
4870            "::",
4871            stringify!(grow_factor)
4872        )
4873    );
4874    assert_eq!(
4875        unsafe {
4876            &(*(::std::ptr::null::<nk_buffer>())).allocated as *const _ as usize
4877        },
4878        68usize,
4879        concat!(
4880            "Offset of field: ",
4881            stringify!(nk_buffer),
4882            "::",
4883            stringify!(allocated)
4884        )
4885    );
4886    assert_eq!(
4887        unsafe {
4888            &(*(::std::ptr::null::<nk_buffer>())).needed as *const _ as usize
4889        },
4890        72usize,
4891        concat!(
4892            "Offset of field: ",
4893            stringify!(nk_buffer),
4894            "::",
4895            stringify!(needed)
4896        )
4897    );
4898    assert_eq!(
4899        unsafe {
4900            &(*(::std::ptr::null::<nk_buffer>())).calls as *const _ as usize
4901        },
4902        76usize,
4903        concat!(
4904            "Offset of field: ",
4905            stringify!(nk_buffer),
4906            "::",
4907            stringify!(calls)
4908        )
4909    );
4910    assert_eq!(
4911        unsafe {
4912            &(*(::std::ptr::null::<nk_buffer>())).size as *const _ as usize
4913        },
4914        80usize,
4915        concat!(
4916            "Offset of field: ",
4917            stringify!(nk_buffer),
4918            "::",
4919            stringify!(size)
4920        )
4921    );
4922}
4923impl Default for nk_buffer {
4924    fn default() -> Self {
4925        unsafe { ::std::mem::zeroed() }
4926    }
4927}
4928extern "C" {
4929    pub fn nk_buffer_init(
4930        arg1: *mut nk_buffer,
4931        arg2: *const nk_allocator,
4932        size: nk_size,
4933    );
4934}
4935extern "C" {
4936    pub fn nk_buffer_init_fixed(
4937        arg1: *mut nk_buffer,
4938        memory: *mut ::std::os::raw::c_void,
4939        size: nk_size,
4940    );
4941}
4942extern "C" {
4943    pub fn nk_buffer_info(arg1: *mut nk_memory_status, arg2: *mut nk_buffer);
4944}
4945extern "C" {
4946    pub fn nk_buffer_push(
4947        arg1: *mut nk_buffer,
4948        type_: nk_buffer_allocation_type,
4949        memory: *const ::std::os::raw::c_void,
4950        size: nk_size,
4951        align: nk_size,
4952    );
4953}
4954extern "C" {
4955    pub fn nk_buffer_mark(
4956        arg1: *mut nk_buffer,
4957        type_: nk_buffer_allocation_type,
4958    );
4959}
4960extern "C" {
4961    pub fn nk_buffer_reset(
4962        arg1: *mut nk_buffer,
4963        type_: nk_buffer_allocation_type,
4964    );
4965}
4966extern "C" {
4967    pub fn nk_buffer_clear(arg1: *mut nk_buffer);
4968}
4969extern "C" {
4970    pub fn nk_buffer_free(arg1: *mut nk_buffer);
4971}
4972extern "C" {
4973    pub fn nk_buffer_memory(
4974        arg1: *mut nk_buffer,
4975    ) -> *mut ::std::os::raw::c_void;
4976}
4977extern "C" {
4978    pub fn nk_buffer_memory_const(
4979        arg1: *const nk_buffer,
4980    ) -> *const ::std::os::raw::c_void;
4981}
4982extern "C" {
4983    pub fn nk_buffer_total(arg1: *mut nk_buffer) -> nk_size;
4984}
4985#[repr(C)]
4986#[derive(Copy, Clone)]
4987pub struct nk_str {
4988    pub buffer: nk_buffer,
4989    pub len: ::std::os::raw::c_int,
4990}
4991#[test]
4992fn bindgen_test_layout_nk_str() {
4993    assert_eq!(
4994        ::std::mem::size_of::<nk_str>(),
4995        96usize,
4996        concat!("Size of: ", stringify!(nk_str))
4997    );
4998    assert_eq!(
4999        ::std::mem::align_of::<nk_str>(),
5000        8usize,
5001        concat!("Alignment of ", stringify!(nk_str))
5002    );
5003    assert_eq!(
5004        unsafe {
5005            &(*(::std::ptr::null::<nk_str>())).buffer as *const _ as usize
5006        },
5007        0usize,
5008        concat!(
5009            "Offset of field: ",
5010            stringify!(nk_str),
5011            "::",
5012            stringify!(buffer)
5013        )
5014    );
5015    assert_eq!(
5016        unsafe { &(*(::std::ptr::null::<nk_str>())).len as *const _ as usize },
5017        88usize,
5018        concat!(
5019            "Offset of field: ",
5020            stringify!(nk_str),
5021            "::",
5022            stringify!(len)
5023        )
5024    );
5025}
5026impl Default for nk_str {
5027    fn default() -> Self {
5028        unsafe { ::std::mem::zeroed() }
5029    }
5030}
5031extern "C" {
5032    pub fn nk_str_init(
5033        arg1: *mut nk_str,
5034        arg2: *const nk_allocator,
5035        size: nk_size,
5036    );
5037}
5038extern "C" {
5039    pub fn nk_str_init_fixed(
5040        arg1: *mut nk_str,
5041        memory: *mut ::std::os::raw::c_void,
5042        size: nk_size,
5043    );
5044}
5045extern "C" {
5046    pub fn nk_str_clear(arg1: *mut nk_str);
5047}
5048extern "C" {
5049    pub fn nk_str_free(arg1: *mut nk_str);
5050}
5051extern "C" {
5052    pub fn nk_str_append_text_char(
5053        arg1: *mut nk_str,
5054        arg2: *const ::std::os::raw::c_char,
5055        arg3: ::std::os::raw::c_int,
5056    ) -> ::std::os::raw::c_int;
5057}
5058extern "C" {
5059    pub fn nk_str_append_str_char(
5060        arg1: *mut nk_str,
5061        arg2: *const ::std::os::raw::c_char,
5062    ) -> ::std::os::raw::c_int;
5063}
5064extern "C" {
5065    pub fn nk_str_append_text_utf8(
5066        arg1: *mut nk_str,
5067        arg2: *const ::std::os::raw::c_char,
5068        arg3: ::std::os::raw::c_int,
5069    ) -> ::std::os::raw::c_int;
5070}
5071extern "C" {
5072    pub fn nk_str_append_str_utf8(
5073        arg1: *mut nk_str,
5074        arg2: *const ::std::os::raw::c_char,
5075    ) -> ::std::os::raw::c_int;
5076}
5077extern "C" {
5078    pub fn nk_str_append_text_runes(
5079        arg1: *mut nk_str,
5080        arg2: *const nk_rune,
5081        arg3: ::std::os::raw::c_int,
5082    ) -> ::std::os::raw::c_int;
5083}
5084extern "C" {
5085    pub fn nk_str_append_str_runes(
5086        arg1: *mut nk_str,
5087        arg2: *const nk_rune,
5088    ) -> ::std::os::raw::c_int;
5089}
5090extern "C" {
5091    pub fn nk_str_insert_at_char(
5092        arg1: *mut nk_str,
5093        pos: ::std::os::raw::c_int,
5094        arg2: *const ::std::os::raw::c_char,
5095        arg3: ::std::os::raw::c_int,
5096    ) -> ::std::os::raw::c_int;
5097}
5098extern "C" {
5099    pub fn nk_str_insert_at_rune(
5100        arg1: *mut nk_str,
5101        pos: ::std::os::raw::c_int,
5102        arg2: *const ::std::os::raw::c_char,
5103        arg3: ::std::os::raw::c_int,
5104    ) -> ::std::os::raw::c_int;
5105}
5106extern "C" {
5107    pub fn nk_str_insert_text_char(
5108        arg1: *mut nk_str,
5109        pos: ::std::os::raw::c_int,
5110        arg2: *const ::std::os::raw::c_char,
5111        arg3: ::std::os::raw::c_int,
5112    ) -> ::std::os::raw::c_int;
5113}
5114extern "C" {
5115    pub fn nk_str_insert_str_char(
5116        arg1: *mut nk_str,
5117        pos: ::std::os::raw::c_int,
5118        arg2: *const ::std::os::raw::c_char,
5119    ) -> ::std::os::raw::c_int;
5120}
5121extern "C" {
5122    pub fn nk_str_insert_text_utf8(
5123        arg1: *mut nk_str,
5124        pos: ::std::os::raw::c_int,
5125        arg2: *const ::std::os::raw::c_char,
5126        arg3: ::std::os::raw::c_int,
5127    ) -> ::std::os::raw::c_int;
5128}
5129extern "C" {
5130    pub fn nk_str_insert_str_utf8(
5131        arg1: *mut nk_str,
5132        pos: ::std::os::raw::c_int,
5133        arg2: *const ::std::os::raw::c_char,
5134    ) -> ::std::os::raw::c_int;
5135}
5136extern "C" {
5137    pub fn nk_str_insert_text_runes(
5138        arg1: *mut nk_str,
5139        pos: ::std::os::raw::c_int,
5140        arg2: *const nk_rune,
5141        arg3: ::std::os::raw::c_int,
5142    ) -> ::std::os::raw::c_int;
5143}
5144extern "C" {
5145    pub fn nk_str_insert_str_runes(
5146        arg1: *mut nk_str,
5147        pos: ::std::os::raw::c_int,
5148        arg2: *const nk_rune,
5149    ) -> ::std::os::raw::c_int;
5150}
5151extern "C" {
5152    pub fn nk_str_remove_chars(arg1: *mut nk_str, len: ::std::os::raw::c_int);
5153}
5154extern "C" {
5155    pub fn nk_str_remove_runes(str: *mut nk_str, len: ::std::os::raw::c_int);
5156}
5157extern "C" {
5158    pub fn nk_str_delete_chars(
5159        arg1: *mut nk_str,
5160        pos: ::std::os::raw::c_int,
5161        len: ::std::os::raw::c_int,
5162    );
5163}
5164extern "C" {
5165    pub fn nk_str_delete_runes(
5166        arg1: *mut nk_str,
5167        pos: ::std::os::raw::c_int,
5168        len: ::std::os::raw::c_int,
5169    );
5170}
5171extern "C" {
5172    pub fn nk_str_at_char(
5173        arg1: *mut nk_str,
5174        pos: ::std::os::raw::c_int,
5175    ) -> *mut ::std::os::raw::c_char;
5176}
5177extern "C" {
5178    pub fn nk_str_at_rune(
5179        arg1: *mut nk_str,
5180        pos: ::std::os::raw::c_int,
5181        unicode: *mut nk_rune,
5182        len: *mut ::std::os::raw::c_int,
5183    ) -> *mut ::std::os::raw::c_char;
5184}
5185extern "C" {
5186    pub fn nk_str_rune_at(
5187        arg1: *const nk_str,
5188        pos: ::std::os::raw::c_int,
5189    ) -> nk_rune;
5190}
5191extern "C" {
5192    pub fn nk_str_at_char_const(
5193        arg1: *const nk_str,
5194        pos: ::std::os::raw::c_int,
5195    ) -> *const ::std::os::raw::c_char;
5196}
5197extern "C" {
5198    pub fn nk_str_at_const(
5199        arg1: *const nk_str,
5200        pos: ::std::os::raw::c_int,
5201        unicode: *mut nk_rune,
5202        len: *mut ::std::os::raw::c_int,
5203    ) -> *const ::std::os::raw::c_char;
5204}
5205extern "C" {
5206    pub fn nk_str_get(arg1: *mut nk_str) -> *mut ::std::os::raw::c_char;
5207}
5208extern "C" {
5209    pub fn nk_str_get_const(
5210        arg1: *const nk_str,
5211    ) -> *const ::std::os::raw::c_char;
5212}
5213extern "C" {
5214    pub fn nk_str_len(arg1: *mut nk_str) -> ::std::os::raw::c_int;
5215}
5216extern "C" {
5217    pub fn nk_str_len_char(arg1: *mut nk_str) -> ::std::os::raw::c_int;
5218}
5219#[repr(C)]
5220#[derive(Copy, Clone)]
5221pub struct nk_clipboard {
5222    pub userdata: nk_handle,
5223    pub paste: nk_plugin_paste,
5224    pub copy: nk_plugin_copy,
5225}
5226#[test]
5227fn bindgen_test_layout_nk_clipboard() {
5228    assert_eq!(
5229        ::std::mem::size_of::<nk_clipboard>(),
5230        24usize,
5231        concat!("Size of: ", stringify!(nk_clipboard))
5232    );
5233    assert_eq!(
5234        ::std::mem::align_of::<nk_clipboard>(),
5235        8usize,
5236        concat!("Alignment of ", stringify!(nk_clipboard))
5237    );
5238    assert_eq!(
5239        unsafe {
5240            &(*(::std::ptr::null::<nk_clipboard>())).userdata as *const _
5241                as usize
5242        },
5243        0usize,
5244        concat!(
5245            "Offset of field: ",
5246            stringify!(nk_clipboard),
5247            "::",
5248            stringify!(userdata)
5249        )
5250    );
5251    assert_eq!(
5252        unsafe {
5253            &(*(::std::ptr::null::<nk_clipboard>())).paste as *const _ as usize
5254        },
5255        8usize,
5256        concat!(
5257            "Offset of field: ",
5258            stringify!(nk_clipboard),
5259            "::",
5260            stringify!(paste)
5261        )
5262    );
5263    assert_eq!(
5264        unsafe {
5265            &(*(::std::ptr::null::<nk_clipboard>())).copy as *const _ as usize
5266        },
5267        16usize,
5268        concat!(
5269            "Offset of field: ",
5270            stringify!(nk_clipboard),
5271            "::",
5272            stringify!(copy)
5273        )
5274    );
5275}
5276impl Default for nk_clipboard {
5277    fn default() -> Self {
5278        unsafe { ::std::mem::zeroed() }
5279    }
5280}
5281#[repr(C)]
5282#[derive(Debug, Default, Copy, Clone)]
5283pub struct nk_text_undo_record {
5284    pub where_: ::std::os::raw::c_int,
5285    pub insert_length: ::std::os::raw::c_short,
5286    pub delete_length: ::std::os::raw::c_short,
5287    pub char_storage: ::std::os::raw::c_short,
5288}
5289#[test]
5290fn bindgen_test_layout_nk_text_undo_record() {
5291    assert_eq!(
5292        ::std::mem::size_of::<nk_text_undo_record>(),
5293        12usize,
5294        concat!("Size of: ", stringify!(nk_text_undo_record))
5295    );
5296    assert_eq!(
5297        ::std::mem::align_of::<nk_text_undo_record>(),
5298        4usize,
5299        concat!("Alignment of ", stringify!(nk_text_undo_record))
5300    );
5301    assert_eq!(
5302        unsafe {
5303            &(*(::std::ptr::null::<nk_text_undo_record>())).where_ as *const _
5304                as usize
5305        },
5306        0usize,
5307        concat!(
5308            "Offset of field: ",
5309            stringify!(nk_text_undo_record),
5310            "::",
5311            stringify!(where_)
5312        )
5313    );
5314    assert_eq!(
5315        unsafe {
5316            &(*(::std::ptr::null::<nk_text_undo_record>())).insert_length
5317                as *const _ as usize
5318        },
5319        4usize,
5320        concat!(
5321            "Offset of field: ",
5322            stringify!(nk_text_undo_record),
5323            "::",
5324            stringify!(insert_length)
5325        )
5326    );
5327    assert_eq!(
5328        unsafe {
5329            &(*(::std::ptr::null::<nk_text_undo_record>())).delete_length
5330                as *const _ as usize
5331        },
5332        6usize,
5333        concat!(
5334            "Offset of field: ",
5335            stringify!(nk_text_undo_record),
5336            "::",
5337            stringify!(delete_length)
5338        )
5339    );
5340    assert_eq!(
5341        unsafe {
5342            &(*(::std::ptr::null::<nk_text_undo_record>())).char_storage
5343                as *const _ as usize
5344        },
5345        8usize,
5346        concat!(
5347            "Offset of field: ",
5348            stringify!(nk_text_undo_record),
5349            "::",
5350            stringify!(char_storage)
5351        )
5352    );
5353}
5354#[repr(C)]
5355#[derive(Copy, Clone)]
5356pub struct nk_text_undo_state {
5357    pub undo_rec: [nk_text_undo_record; 99usize],
5358    pub undo_char: [nk_rune; 999usize],
5359    pub undo_point: ::std::os::raw::c_short,
5360    pub redo_point: ::std::os::raw::c_short,
5361    pub undo_char_point: ::std::os::raw::c_short,
5362    pub redo_char_point: ::std::os::raw::c_short,
5363}
5364#[test]
5365fn bindgen_test_layout_nk_text_undo_state() {
5366    assert_eq!(
5367        ::std::mem::size_of::<nk_text_undo_state>(),
5368        5192usize,
5369        concat!("Size of: ", stringify!(nk_text_undo_state))
5370    );
5371    assert_eq!(
5372        ::std::mem::align_of::<nk_text_undo_state>(),
5373        4usize,
5374        concat!("Alignment of ", stringify!(nk_text_undo_state))
5375    );
5376    assert_eq!(
5377        unsafe {
5378            &(*(::std::ptr::null::<nk_text_undo_state>())).undo_rec as *const _
5379                as usize
5380        },
5381        0usize,
5382        concat!(
5383            "Offset of field: ",
5384            stringify!(nk_text_undo_state),
5385            "::",
5386            stringify!(undo_rec)
5387        )
5388    );
5389    assert_eq!(
5390        unsafe {
5391            &(*(::std::ptr::null::<nk_text_undo_state>())).undo_char as *const _
5392                as usize
5393        },
5394        1188usize,
5395        concat!(
5396            "Offset of field: ",
5397            stringify!(nk_text_undo_state),
5398            "::",
5399            stringify!(undo_char)
5400        )
5401    );
5402    assert_eq!(
5403        unsafe {
5404            &(*(::std::ptr::null::<nk_text_undo_state>())).undo_point
5405                as *const _ as usize
5406        },
5407        5184usize,
5408        concat!(
5409            "Offset of field: ",
5410            stringify!(nk_text_undo_state),
5411            "::",
5412            stringify!(undo_point)
5413        )
5414    );
5415    assert_eq!(
5416        unsafe {
5417            &(*(::std::ptr::null::<nk_text_undo_state>())).redo_point
5418                as *const _ as usize
5419        },
5420        5186usize,
5421        concat!(
5422            "Offset of field: ",
5423            stringify!(nk_text_undo_state),
5424            "::",
5425            stringify!(redo_point)
5426        )
5427    );
5428    assert_eq!(
5429        unsafe {
5430            &(*(::std::ptr::null::<nk_text_undo_state>())).undo_char_point
5431                as *const _ as usize
5432        },
5433        5188usize,
5434        concat!(
5435            "Offset of field: ",
5436            stringify!(nk_text_undo_state),
5437            "::",
5438            stringify!(undo_char_point)
5439        )
5440    );
5441    assert_eq!(
5442        unsafe {
5443            &(*(::std::ptr::null::<nk_text_undo_state>())).redo_char_point
5444                as *const _ as usize
5445        },
5446        5190usize,
5447        concat!(
5448            "Offset of field: ",
5449            stringify!(nk_text_undo_state),
5450            "::",
5451            stringify!(redo_char_point)
5452        )
5453    );
5454}
5455impl Default for nk_text_undo_state {
5456    fn default() -> Self {
5457        unsafe { ::std::mem::zeroed() }
5458    }
5459}
5460pub const nk_text_edit_type_NK_TEXT_EDIT_SINGLE_LINE: nk_text_edit_type = 0;
5461pub const nk_text_edit_type_NK_TEXT_EDIT_MULTI_LINE: nk_text_edit_type = 1;
5462pub type nk_text_edit_type = u32;
5463pub const nk_text_edit_mode_NK_TEXT_EDIT_MODE_VIEW: nk_text_edit_mode = 0;
5464pub const nk_text_edit_mode_NK_TEXT_EDIT_MODE_INSERT: nk_text_edit_mode = 1;
5465pub const nk_text_edit_mode_NK_TEXT_EDIT_MODE_REPLACE: nk_text_edit_mode = 2;
5466pub type nk_text_edit_mode = u32;
5467#[repr(C)]
5468#[derive(Copy, Clone)]
5469pub struct nk_text_edit {
5470    pub clip: nk_clipboard,
5471    pub string: nk_str,
5472    pub filter: nk_plugin_filter,
5473    pub scrollbar: nk_vec2,
5474    pub cursor: ::std::os::raw::c_int,
5475    pub select_start: ::std::os::raw::c_int,
5476    pub select_end: ::std::os::raw::c_int,
5477    pub mode: ::std::os::raw::c_uchar,
5478    pub cursor_at_end_of_line: ::std::os::raw::c_uchar,
5479    pub initialized: ::std::os::raw::c_uchar,
5480    pub has_preferred_x: ::std::os::raw::c_uchar,
5481    pub single_line: ::std::os::raw::c_uchar,
5482    pub active: ::std::os::raw::c_uchar,
5483    pub padding1: ::std::os::raw::c_uchar,
5484    pub preferred_x: f32,
5485    pub undo: nk_text_undo_state,
5486}
5487#[test]
5488fn bindgen_test_layout_nk_text_edit() {
5489    assert_eq!(
5490        ::std::mem::size_of::<nk_text_edit>(),
5491        5352usize,
5492        concat!("Size of: ", stringify!(nk_text_edit))
5493    );
5494    assert_eq!(
5495        ::std::mem::align_of::<nk_text_edit>(),
5496        8usize,
5497        concat!("Alignment of ", stringify!(nk_text_edit))
5498    );
5499    assert_eq!(
5500        unsafe {
5501            &(*(::std::ptr::null::<nk_text_edit>())).clip as *const _ as usize
5502        },
5503        0usize,
5504        concat!(
5505            "Offset of field: ",
5506            stringify!(nk_text_edit),
5507            "::",
5508            stringify!(clip)
5509        )
5510    );
5511    assert_eq!(
5512        unsafe {
5513            &(*(::std::ptr::null::<nk_text_edit>())).string as *const _ as usize
5514        },
5515        24usize,
5516        concat!(
5517            "Offset of field: ",
5518            stringify!(nk_text_edit),
5519            "::",
5520            stringify!(string)
5521        )
5522    );
5523    assert_eq!(
5524        unsafe {
5525            &(*(::std::ptr::null::<nk_text_edit>())).filter as *const _ as usize
5526        },
5527        120usize,
5528        concat!(
5529            "Offset of field: ",
5530            stringify!(nk_text_edit),
5531            "::",
5532            stringify!(filter)
5533        )
5534    );
5535    assert_eq!(
5536        unsafe {
5537            &(*(::std::ptr::null::<nk_text_edit>())).scrollbar as *const _
5538                as usize
5539        },
5540        128usize,
5541        concat!(
5542            "Offset of field: ",
5543            stringify!(nk_text_edit),
5544            "::",
5545            stringify!(scrollbar)
5546        )
5547    );
5548    assert_eq!(
5549        unsafe {
5550            &(*(::std::ptr::null::<nk_text_edit>())).cursor as *const _ as usize
5551        },
5552        136usize,
5553        concat!(
5554            "Offset of field: ",
5555            stringify!(nk_text_edit),
5556            "::",
5557            stringify!(cursor)
5558        )
5559    );
5560    assert_eq!(
5561        unsafe {
5562            &(*(::std::ptr::null::<nk_text_edit>())).select_start as *const _
5563                as usize
5564        },
5565        140usize,
5566        concat!(
5567            "Offset of field: ",
5568            stringify!(nk_text_edit),
5569            "::",
5570            stringify!(select_start)
5571        )
5572    );
5573    assert_eq!(
5574        unsafe {
5575            &(*(::std::ptr::null::<nk_text_edit>())).select_end as *const _
5576                as usize
5577        },
5578        144usize,
5579        concat!(
5580            "Offset of field: ",
5581            stringify!(nk_text_edit),
5582            "::",
5583            stringify!(select_end)
5584        )
5585    );
5586    assert_eq!(
5587        unsafe {
5588            &(*(::std::ptr::null::<nk_text_edit>())).mode as *const _ as usize
5589        },
5590        148usize,
5591        concat!(
5592            "Offset of field: ",
5593            stringify!(nk_text_edit),
5594            "::",
5595            stringify!(mode)
5596        )
5597    );
5598    assert_eq!(
5599        unsafe {
5600            &(*(::std::ptr::null::<nk_text_edit>())).cursor_at_end_of_line
5601                as *const _ as usize
5602        },
5603        149usize,
5604        concat!(
5605            "Offset of field: ",
5606            stringify!(nk_text_edit),
5607            "::",
5608            stringify!(cursor_at_end_of_line)
5609        )
5610    );
5611    assert_eq!(
5612        unsafe {
5613            &(*(::std::ptr::null::<nk_text_edit>())).initialized as *const _
5614                as usize
5615        },
5616        150usize,
5617        concat!(
5618            "Offset of field: ",
5619            stringify!(nk_text_edit),
5620            "::",
5621            stringify!(initialized)
5622        )
5623    );
5624    assert_eq!(
5625        unsafe {
5626            &(*(::std::ptr::null::<nk_text_edit>())).has_preferred_x as *const _
5627                as usize
5628        },
5629        151usize,
5630        concat!(
5631            "Offset of field: ",
5632            stringify!(nk_text_edit),
5633            "::",
5634            stringify!(has_preferred_x)
5635        )
5636    );
5637    assert_eq!(
5638        unsafe {
5639            &(*(::std::ptr::null::<nk_text_edit>())).single_line as *const _
5640                as usize
5641        },
5642        152usize,
5643        concat!(
5644            "Offset of field: ",
5645            stringify!(nk_text_edit),
5646            "::",
5647            stringify!(single_line)
5648        )
5649    );
5650    assert_eq!(
5651        unsafe {
5652            &(*(::std::ptr::null::<nk_text_edit>())).active as *const _ as usize
5653        },
5654        153usize,
5655        concat!(
5656            "Offset of field: ",
5657            stringify!(nk_text_edit),
5658            "::",
5659            stringify!(active)
5660        )
5661    );
5662    assert_eq!(
5663        unsafe {
5664            &(*(::std::ptr::null::<nk_text_edit>())).padding1 as *const _
5665                as usize
5666        },
5667        154usize,
5668        concat!(
5669            "Offset of field: ",
5670            stringify!(nk_text_edit),
5671            "::",
5672            stringify!(padding1)
5673        )
5674    );
5675    assert_eq!(
5676        unsafe {
5677            &(*(::std::ptr::null::<nk_text_edit>())).preferred_x as *const _
5678                as usize
5679        },
5680        156usize,
5681        concat!(
5682            "Offset of field: ",
5683            stringify!(nk_text_edit),
5684            "::",
5685            stringify!(preferred_x)
5686        )
5687    );
5688    assert_eq!(
5689        unsafe {
5690            &(*(::std::ptr::null::<nk_text_edit>())).undo as *const _ as usize
5691        },
5692        160usize,
5693        concat!(
5694            "Offset of field: ",
5695            stringify!(nk_text_edit),
5696            "::",
5697            stringify!(undo)
5698        )
5699    );
5700}
5701impl Default for nk_text_edit {
5702    fn default() -> Self {
5703        unsafe { ::std::mem::zeroed() }
5704    }
5705}
5706extern "C" {
5707    pub fn nk_filter_default(
5708        arg1: *const nk_text_edit,
5709        unicode: nk_rune,
5710    ) -> ::std::os::raw::c_int;
5711}
5712extern "C" {
5713    pub fn nk_filter_ascii(
5714        arg1: *const nk_text_edit,
5715        unicode: nk_rune,
5716    ) -> ::std::os::raw::c_int;
5717}
5718extern "C" {
5719    pub fn nk_filter_float(
5720        arg1: *const nk_text_edit,
5721        unicode: nk_rune,
5722    ) -> ::std::os::raw::c_int;
5723}
5724extern "C" {
5725    pub fn nk_filter_decimal(
5726        arg1: *const nk_text_edit,
5727        unicode: nk_rune,
5728    ) -> ::std::os::raw::c_int;
5729}
5730extern "C" {
5731    pub fn nk_filter_hex(
5732        arg1: *const nk_text_edit,
5733        unicode: nk_rune,
5734    ) -> ::std::os::raw::c_int;
5735}
5736extern "C" {
5737    pub fn nk_filter_oct(
5738        arg1: *const nk_text_edit,
5739        unicode: nk_rune,
5740    ) -> ::std::os::raw::c_int;
5741}
5742extern "C" {
5743    pub fn nk_filter_binary(
5744        arg1: *const nk_text_edit,
5745        unicode: nk_rune,
5746    ) -> ::std::os::raw::c_int;
5747}
5748extern "C" {
5749    pub fn nk_textedit_init(
5750        arg1: *mut nk_text_edit,
5751        arg2: *mut nk_allocator,
5752        size: nk_size,
5753    );
5754}
5755extern "C" {
5756    pub fn nk_textedit_init_fixed(
5757        arg1: *mut nk_text_edit,
5758        memory: *mut ::std::os::raw::c_void,
5759        size: nk_size,
5760    );
5761}
5762extern "C" {
5763    pub fn nk_textedit_free(arg1: *mut nk_text_edit);
5764}
5765extern "C" {
5766    pub fn nk_textedit_text(
5767        arg1: *mut nk_text_edit,
5768        arg2: *const ::std::os::raw::c_char,
5769        total_len: ::std::os::raw::c_int,
5770    );
5771}
5772extern "C" {
5773    pub fn nk_textedit_delete(
5774        arg1: *mut nk_text_edit,
5775        where_: ::std::os::raw::c_int,
5776        len: ::std::os::raw::c_int,
5777    );
5778}
5779extern "C" {
5780    pub fn nk_textedit_delete_selection(arg1: *mut nk_text_edit);
5781}
5782extern "C" {
5783    pub fn nk_textedit_select_all(arg1: *mut nk_text_edit);
5784}
5785extern "C" {
5786    pub fn nk_textedit_cut(arg1: *mut nk_text_edit) -> ::std::os::raw::c_int;
5787}
5788extern "C" {
5789    pub fn nk_textedit_paste(
5790        arg1: *mut nk_text_edit,
5791        arg2: *const ::std::os::raw::c_char,
5792        len: ::std::os::raw::c_int,
5793    ) -> ::std::os::raw::c_int;
5794}
5795extern "C" {
5796    pub fn nk_textedit_undo(arg1: *mut nk_text_edit);
5797}
5798extern "C" {
5799    pub fn nk_textedit_redo(arg1: *mut nk_text_edit);
5800}
5801pub const nk_command_type_NK_COMMAND_NOP: nk_command_type = 0;
5802pub const nk_command_type_NK_COMMAND_SCISSOR: nk_command_type = 1;
5803pub const nk_command_type_NK_COMMAND_LINE: nk_command_type = 2;
5804pub const nk_command_type_NK_COMMAND_CURVE: nk_command_type = 3;
5805pub const nk_command_type_NK_COMMAND_RECT: nk_command_type = 4;
5806pub const nk_command_type_NK_COMMAND_RECT_FILLED: nk_command_type = 5;
5807pub const nk_command_type_NK_COMMAND_RECT_MULTI_COLOR: nk_command_type = 6;
5808pub const nk_command_type_NK_COMMAND_CIRCLE: nk_command_type = 7;
5809pub const nk_command_type_NK_COMMAND_CIRCLE_FILLED: nk_command_type = 8;
5810pub const nk_command_type_NK_COMMAND_ARC: nk_command_type = 9;
5811pub const nk_command_type_NK_COMMAND_ARC_FILLED: nk_command_type = 10;
5812pub const nk_command_type_NK_COMMAND_TRIANGLE: nk_command_type = 11;
5813pub const nk_command_type_NK_COMMAND_TRIANGLE_FILLED: nk_command_type = 12;
5814pub const nk_command_type_NK_COMMAND_POLYGON: nk_command_type = 13;
5815pub const nk_command_type_NK_COMMAND_POLYGON_FILLED: nk_command_type = 14;
5816pub const nk_command_type_NK_COMMAND_POLYLINE: nk_command_type = 15;
5817pub const nk_command_type_NK_COMMAND_TEXT: nk_command_type = 16;
5818pub const nk_command_type_NK_COMMAND_IMAGE: nk_command_type = 17;
5819pub const nk_command_type_NK_COMMAND_CUSTOM: nk_command_type = 18;
5820pub type nk_command_type = u32;
5821#[repr(C)]
5822#[derive(Copy, Clone)]
5823pub struct nk_command {
5824    pub type_: nk_command_type,
5825    pub next: nk_size,
5826    pub userdata: nk_handle,
5827}
5828#[test]
5829fn bindgen_test_layout_nk_command() {
5830    assert_eq!(
5831        ::std::mem::size_of::<nk_command>(),
5832        16usize,
5833        concat!("Size of: ", stringify!(nk_command))
5834    );
5835    assert_eq!(
5836        ::std::mem::align_of::<nk_command>(),
5837        8usize,
5838        concat!("Alignment of ", stringify!(nk_command))
5839    );
5840    assert_eq!(
5841        unsafe {
5842            &(*(::std::ptr::null::<nk_command>())).type_ as *const _ as usize
5843        },
5844        0usize,
5845        concat!(
5846            "Offset of field: ",
5847            stringify!(nk_command),
5848            "::",
5849            stringify!(type_)
5850        )
5851    );
5852    assert_eq!(
5853        unsafe {
5854            &(*(::std::ptr::null::<nk_command>())).next as *const _ as usize
5855        },
5856        4usize,
5857        concat!(
5858            "Offset of field: ",
5859            stringify!(nk_command),
5860            "::",
5861            stringify!(next)
5862        )
5863    );
5864    assert_eq!(
5865        unsafe {
5866            &(*(::std::ptr::null::<nk_command>())).userdata as *const _ as usize
5867        },
5868        8usize,
5869        concat!(
5870            "Offset of field: ",
5871            stringify!(nk_command),
5872            "::",
5873            stringify!(userdata)
5874        )
5875    );
5876}
5877impl Default for nk_command {
5878    fn default() -> Self {
5879        unsafe { ::std::mem::zeroed() }
5880    }
5881}
5882#[repr(C)]
5883#[derive(Copy, Clone)]
5884pub struct nk_command_scissor {
5885    pub header: nk_command,
5886    pub x: ::std::os::raw::c_short,
5887    pub y: ::std::os::raw::c_short,
5888    pub w: ::std::os::raw::c_ushort,
5889    pub h: ::std::os::raw::c_ushort,
5890}
5891#[test]
5892fn bindgen_test_layout_nk_command_scissor() {
5893    assert_eq!(
5894        ::std::mem::size_of::<nk_command_scissor>(),
5895        24usize,
5896        concat!("Size of: ", stringify!(nk_command_scissor))
5897    );
5898    assert_eq!(
5899        ::std::mem::align_of::<nk_command_scissor>(),
5900        8usize,
5901        concat!("Alignment of ", stringify!(nk_command_scissor))
5902    );
5903    assert_eq!(
5904        unsafe {
5905            &(*(::std::ptr::null::<nk_command_scissor>())).header as *const _
5906                as usize
5907        },
5908        0usize,
5909        concat!(
5910            "Offset of field: ",
5911            stringify!(nk_command_scissor),
5912            "::",
5913            stringify!(header)
5914        )
5915    );
5916    assert_eq!(
5917        unsafe {
5918            &(*(::std::ptr::null::<nk_command_scissor>())).x as *const _
5919                as usize
5920        },
5921        16usize,
5922        concat!(
5923            "Offset of field: ",
5924            stringify!(nk_command_scissor),
5925            "::",
5926            stringify!(x)
5927        )
5928    );
5929    assert_eq!(
5930        unsafe {
5931            &(*(::std::ptr::null::<nk_command_scissor>())).y as *const _
5932                as usize
5933        },
5934        18usize,
5935        concat!(
5936            "Offset of field: ",
5937            stringify!(nk_command_scissor),
5938            "::",
5939            stringify!(y)
5940        )
5941    );
5942    assert_eq!(
5943        unsafe {
5944            &(*(::std::ptr::null::<nk_command_scissor>())).w as *const _
5945                as usize
5946        },
5947        20usize,
5948        concat!(
5949            "Offset of field: ",
5950            stringify!(nk_command_scissor),
5951            "::",
5952            stringify!(w)
5953        )
5954    );
5955    assert_eq!(
5956        unsafe {
5957            &(*(::std::ptr::null::<nk_command_scissor>())).h as *const _
5958                as usize
5959        },
5960        22usize,
5961        concat!(
5962            "Offset of field: ",
5963            stringify!(nk_command_scissor),
5964            "::",
5965            stringify!(h)
5966        )
5967    );
5968}
5969impl Default for nk_command_scissor {
5970    fn default() -> Self {
5971        unsafe { ::std::mem::zeroed() }
5972    }
5973}
5974#[repr(C)]
5975#[derive(Copy, Clone)]
5976pub struct nk_command_line {
5977    pub header: nk_command,
5978    pub line_thickness: ::std::os::raw::c_ushort,
5979    pub begin: nk_vec2i,
5980    pub end: nk_vec2i,
5981    pub color: nk_color,
5982}
5983#[test]
5984fn bindgen_test_layout_nk_command_line() {
5985    assert_eq!(
5986        ::std::mem::size_of::<nk_command_line>(),
5987        32usize,
5988        concat!("Size of: ", stringify!(nk_command_line))
5989    );
5990    assert_eq!(
5991        ::std::mem::align_of::<nk_command_line>(),
5992        8usize,
5993        concat!("Alignment of ", stringify!(nk_command_line))
5994    );
5995    assert_eq!(
5996        unsafe {
5997            &(*(::std::ptr::null::<nk_command_line>())).header as *const _
5998                as usize
5999        },
6000        0usize,
6001        concat!(
6002            "Offset of field: ",
6003            stringify!(nk_command_line),
6004            "::",
6005            stringify!(header)
6006        )
6007    );
6008    assert_eq!(
6009        unsafe {
6010            &(*(::std::ptr::null::<nk_command_line>())).line_thickness
6011                as *const _ as usize
6012        },
6013        16usize,
6014        concat!(
6015            "Offset of field: ",
6016            stringify!(nk_command_line),
6017            "::",
6018            stringify!(line_thickness)
6019        )
6020    );
6021    assert_eq!(
6022        unsafe {
6023            &(*(::std::ptr::null::<nk_command_line>())).begin as *const _
6024                as usize
6025        },
6026        18usize,
6027        concat!(
6028            "Offset of field: ",
6029            stringify!(nk_command_line),
6030            "::",
6031            stringify!(begin)
6032        )
6033    );
6034    assert_eq!(
6035        unsafe {
6036            &(*(::std::ptr::null::<nk_command_line>())).end as *const _ as usize
6037        },
6038        22usize,
6039        concat!(
6040            "Offset of field: ",
6041            stringify!(nk_command_line),
6042            "::",
6043            stringify!(end)
6044        )
6045    );
6046    assert_eq!(
6047        unsafe {
6048            &(*(::std::ptr::null::<nk_command_line>())).color as *const _
6049                as usize
6050        },
6051        26usize,
6052        concat!(
6053            "Offset of field: ",
6054            stringify!(nk_command_line),
6055            "::",
6056            stringify!(color)
6057        )
6058    );
6059}
6060impl Default for nk_command_line {
6061    fn default() -> Self {
6062        unsafe { ::std::mem::zeroed() }
6063    }
6064}
6065#[repr(C)]
6066#[derive(Copy, Clone)]
6067pub struct nk_command_curve {
6068    pub header: nk_command,
6069    pub line_thickness: ::std::os::raw::c_ushort,
6070    pub begin: nk_vec2i,
6071    pub end: nk_vec2i,
6072    pub ctrl: [nk_vec2i; 2usize],
6073    pub color: nk_color,
6074}
6075#[test]
6076fn bindgen_test_layout_nk_command_curve() {
6077    assert_eq!(
6078        ::std::mem::size_of::<nk_command_curve>(),
6079        40usize,
6080        concat!("Size of: ", stringify!(nk_command_curve))
6081    );
6082    assert_eq!(
6083        ::std::mem::align_of::<nk_command_curve>(),
6084        8usize,
6085        concat!("Alignment of ", stringify!(nk_command_curve))
6086    );
6087    assert_eq!(
6088        unsafe {
6089            &(*(::std::ptr::null::<nk_command_curve>())).header as *const _
6090                as usize
6091        },
6092        0usize,
6093        concat!(
6094            "Offset of field: ",
6095            stringify!(nk_command_curve),
6096            "::",
6097            stringify!(header)
6098        )
6099    );
6100    assert_eq!(
6101        unsafe {
6102            &(*(::std::ptr::null::<nk_command_curve>())).line_thickness
6103                as *const _ as usize
6104        },
6105        16usize,
6106        concat!(
6107            "Offset of field: ",
6108            stringify!(nk_command_curve),
6109            "::",
6110            stringify!(line_thickness)
6111        )
6112    );
6113    assert_eq!(
6114        unsafe {
6115            &(*(::std::ptr::null::<nk_command_curve>())).begin as *const _
6116                as usize
6117        },
6118        18usize,
6119        concat!(
6120            "Offset of field: ",
6121            stringify!(nk_command_curve),
6122            "::",
6123            stringify!(begin)
6124        )
6125    );
6126    assert_eq!(
6127        unsafe {
6128            &(*(::std::ptr::null::<nk_command_curve>())).end as *const _
6129                as usize
6130        },
6131        22usize,
6132        concat!(
6133            "Offset of field: ",
6134            stringify!(nk_command_curve),
6135            "::",
6136            stringify!(end)
6137        )
6138    );
6139    assert_eq!(
6140        unsafe {
6141            &(*(::std::ptr::null::<nk_command_curve>())).ctrl as *const _
6142                as usize
6143        },
6144        26usize,
6145        concat!(
6146            "Offset of field: ",
6147            stringify!(nk_command_curve),
6148            "::",
6149            stringify!(ctrl)
6150        )
6151    );
6152    assert_eq!(
6153        unsafe {
6154            &(*(::std::ptr::null::<nk_command_curve>())).color as *const _
6155                as usize
6156        },
6157        34usize,
6158        concat!(
6159            "Offset of field: ",
6160            stringify!(nk_command_curve),
6161            "::",
6162            stringify!(color)
6163        )
6164    );
6165}
6166impl Default for nk_command_curve {
6167    fn default() -> Self {
6168        unsafe { ::std::mem::zeroed() }
6169    }
6170}
6171#[repr(C)]
6172#[derive(Copy, Clone)]
6173pub struct nk_command_rect {
6174    pub header: nk_command,
6175    pub rounding: ::std::os::raw::c_ushort,
6176    pub line_thickness: ::std::os::raw::c_ushort,
6177    pub x: ::std::os::raw::c_short,
6178    pub y: ::std::os::raw::c_short,
6179    pub w: ::std::os::raw::c_ushort,
6180    pub h: ::std::os::raw::c_ushort,
6181    pub color: nk_color,
6182}
6183#[test]
6184fn bindgen_test_layout_nk_command_rect() {
6185    assert_eq!(
6186        ::std::mem::size_of::<nk_command_rect>(),
6187        32usize,
6188        concat!("Size of: ", stringify!(nk_command_rect))
6189    );
6190    assert_eq!(
6191        ::std::mem::align_of::<nk_command_rect>(),
6192        8usize,
6193        concat!("Alignment of ", stringify!(nk_command_rect))
6194    );
6195    assert_eq!(
6196        unsafe {
6197            &(*(::std::ptr::null::<nk_command_rect>())).header as *const _
6198                as usize
6199        },
6200        0usize,
6201        concat!(
6202            "Offset of field: ",
6203            stringify!(nk_command_rect),
6204            "::",
6205            stringify!(header)
6206        )
6207    );
6208    assert_eq!(
6209        unsafe {
6210            &(*(::std::ptr::null::<nk_command_rect>())).rounding as *const _
6211                as usize
6212        },
6213        16usize,
6214        concat!(
6215            "Offset of field: ",
6216            stringify!(nk_command_rect),
6217            "::",
6218            stringify!(rounding)
6219        )
6220    );
6221    assert_eq!(
6222        unsafe {
6223            &(*(::std::ptr::null::<nk_command_rect>())).line_thickness
6224                as *const _ as usize
6225        },
6226        18usize,
6227        concat!(
6228            "Offset of field: ",
6229            stringify!(nk_command_rect),
6230            "::",
6231            stringify!(line_thickness)
6232        )
6233    );
6234    assert_eq!(
6235        unsafe {
6236            &(*(::std::ptr::null::<nk_command_rect>())).x as *const _ as usize
6237        },
6238        20usize,
6239        concat!(
6240            "Offset of field: ",
6241            stringify!(nk_command_rect),
6242            "::",
6243            stringify!(x)
6244        )
6245    );
6246    assert_eq!(
6247        unsafe {
6248            &(*(::std::ptr::null::<nk_command_rect>())).y as *const _ as usize
6249        },
6250        22usize,
6251        concat!(
6252            "Offset of field: ",
6253            stringify!(nk_command_rect),
6254            "::",
6255            stringify!(y)
6256        )
6257    );
6258    assert_eq!(
6259        unsafe {
6260            &(*(::std::ptr::null::<nk_command_rect>())).w as *const _ as usize
6261        },
6262        24usize,
6263        concat!(
6264            "Offset of field: ",
6265            stringify!(nk_command_rect),
6266            "::",
6267            stringify!(w)
6268        )
6269    );
6270    assert_eq!(
6271        unsafe {
6272            &(*(::std::ptr::null::<nk_command_rect>())).h as *const _ as usize
6273        },
6274        26usize,
6275        concat!(
6276            "Offset of field: ",
6277            stringify!(nk_command_rect),
6278            "::",
6279            stringify!(h)
6280        )
6281    );
6282    assert_eq!(
6283        unsafe {
6284            &(*(::std::ptr::null::<nk_command_rect>())).color as *const _
6285                as usize
6286        },
6287        28usize,
6288        concat!(
6289            "Offset of field: ",
6290            stringify!(nk_command_rect),
6291            "::",
6292            stringify!(color)
6293        )
6294    );
6295}
6296impl Default for nk_command_rect {
6297    fn default() -> Self {
6298        unsafe { ::std::mem::zeroed() }
6299    }
6300}
6301#[repr(C)]
6302#[derive(Copy, Clone)]
6303pub struct nk_command_rect_filled {
6304    pub header: nk_command,
6305    pub rounding: ::std::os::raw::c_ushort,
6306    pub x: ::std::os::raw::c_short,
6307    pub y: ::std::os::raw::c_short,
6308    pub w: ::std::os::raw::c_ushort,
6309    pub h: ::std::os::raw::c_ushort,
6310    pub color: nk_color,
6311}
6312#[test]
6313fn bindgen_test_layout_nk_command_rect_filled() {
6314    assert_eq!(
6315        ::std::mem::size_of::<nk_command_rect_filled>(),
6316        32usize,
6317        concat!("Size of: ", stringify!(nk_command_rect_filled))
6318    );
6319    assert_eq!(
6320        ::std::mem::align_of::<nk_command_rect_filled>(),
6321        8usize,
6322        concat!("Alignment of ", stringify!(nk_command_rect_filled))
6323    );
6324    assert_eq!(
6325        unsafe {
6326            &(*(::std::ptr::null::<nk_command_rect_filled>())).header
6327                as *const _ as usize
6328        },
6329        0usize,
6330        concat!(
6331            "Offset of field: ",
6332            stringify!(nk_command_rect_filled),
6333            "::",
6334            stringify!(header)
6335        )
6336    );
6337    assert_eq!(
6338        unsafe {
6339            &(*(::std::ptr::null::<nk_command_rect_filled>())).rounding
6340                as *const _ as usize
6341        },
6342        16usize,
6343        concat!(
6344            "Offset of field: ",
6345            stringify!(nk_command_rect_filled),
6346            "::",
6347            stringify!(rounding)
6348        )
6349    );
6350    assert_eq!(
6351        unsafe {
6352            &(*(::std::ptr::null::<nk_command_rect_filled>())).x as *const _
6353                as usize
6354        },
6355        18usize,
6356        concat!(
6357            "Offset of field: ",
6358            stringify!(nk_command_rect_filled),
6359            "::",
6360            stringify!(x)
6361        )
6362    );
6363    assert_eq!(
6364        unsafe {
6365            &(*(::std::ptr::null::<nk_command_rect_filled>())).y as *const _
6366                as usize
6367        },
6368        20usize,
6369        concat!(
6370            "Offset of field: ",
6371            stringify!(nk_command_rect_filled),
6372            "::",
6373            stringify!(y)
6374        )
6375    );
6376    assert_eq!(
6377        unsafe {
6378            &(*(::std::ptr::null::<nk_command_rect_filled>())).w as *const _
6379                as usize
6380        },
6381        22usize,
6382        concat!(
6383            "Offset of field: ",
6384            stringify!(nk_command_rect_filled),
6385            "::",
6386            stringify!(w)
6387        )
6388    );
6389    assert_eq!(
6390        unsafe {
6391            &(*(::std::ptr::null::<nk_command_rect_filled>())).h as *const _
6392                as usize
6393        },
6394        24usize,
6395        concat!(
6396            "Offset of field: ",
6397            stringify!(nk_command_rect_filled),
6398            "::",
6399            stringify!(h)
6400        )
6401    );
6402    assert_eq!(
6403        unsafe {
6404            &(*(::std::ptr::null::<nk_command_rect_filled>())).color as *const _
6405                as usize
6406        },
6407        26usize,
6408        concat!(
6409            "Offset of field: ",
6410            stringify!(nk_command_rect_filled),
6411            "::",
6412            stringify!(color)
6413        )
6414    );
6415}
6416impl Default for nk_command_rect_filled {
6417    fn default() -> Self {
6418        unsafe { ::std::mem::zeroed() }
6419    }
6420}
6421#[repr(C)]
6422#[derive(Copy, Clone)]
6423pub struct nk_command_rect_multi_color {
6424    pub header: nk_command,
6425    pub x: ::std::os::raw::c_short,
6426    pub y: ::std::os::raw::c_short,
6427    pub w: ::std::os::raw::c_ushort,
6428    pub h: ::std::os::raw::c_ushort,
6429    pub left: nk_color,
6430    pub top: nk_color,
6431    pub bottom: nk_color,
6432    pub right: nk_color,
6433}
6434#[test]
6435fn bindgen_test_layout_nk_command_rect_multi_color() {
6436    assert_eq!(
6437        ::std::mem::size_of::<nk_command_rect_multi_color>(),
6438        40usize,
6439        concat!("Size of: ", stringify!(nk_command_rect_multi_color))
6440    );
6441    assert_eq!(
6442        ::std::mem::align_of::<nk_command_rect_multi_color>(),
6443        8usize,
6444        concat!("Alignment of ", stringify!(nk_command_rect_multi_color))
6445    );
6446    assert_eq!(
6447        unsafe {
6448            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).header
6449                as *const _ as usize
6450        },
6451        0usize,
6452        concat!(
6453            "Offset of field: ",
6454            stringify!(nk_command_rect_multi_color),
6455            "::",
6456            stringify!(header)
6457        )
6458    );
6459    assert_eq!(
6460        unsafe {
6461            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).x
6462                as *const _ as usize
6463        },
6464        16usize,
6465        concat!(
6466            "Offset of field: ",
6467            stringify!(nk_command_rect_multi_color),
6468            "::",
6469            stringify!(x)
6470        )
6471    );
6472    assert_eq!(
6473        unsafe {
6474            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).y
6475                as *const _ as usize
6476        },
6477        18usize,
6478        concat!(
6479            "Offset of field: ",
6480            stringify!(nk_command_rect_multi_color),
6481            "::",
6482            stringify!(y)
6483        )
6484    );
6485    assert_eq!(
6486        unsafe {
6487            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).w
6488                as *const _ as usize
6489        },
6490        20usize,
6491        concat!(
6492            "Offset of field: ",
6493            stringify!(nk_command_rect_multi_color),
6494            "::",
6495            stringify!(w)
6496        )
6497    );
6498    assert_eq!(
6499        unsafe {
6500            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).h
6501                as *const _ as usize
6502        },
6503        22usize,
6504        concat!(
6505            "Offset of field: ",
6506            stringify!(nk_command_rect_multi_color),
6507            "::",
6508            stringify!(h)
6509        )
6510    );
6511    assert_eq!(
6512        unsafe {
6513            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).left
6514                as *const _ as usize
6515        },
6516        24usize,
6517        concat!(
6518            "Offset of field: ",
6519            stringify!(nk_command_rect_multi_color),
6520            "::",
6521            stringify!(left)
6522        )
6523    );
6524    assert_eq!(
6525        unsafe {
6526            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).top
6527                as *const _ as usize
6528        },
6529        28usize,
6530        concat!(
6531            "Offset of field: ",
6532            stringify!(nk_command_rect_multi_color),
6533            "::",
6534            stringify!(top)
6535        )
6536    );
6537    assert_eq!(
6538        unsafe {
6539            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).bottom
6540                as *const _ as usize
6541        },
6542        32usize,
6543        concat!(
6544            "Offset of field: ",
6545            stringify!(nk_command_rect_multi_color),
6546            "::",
6547            stringify!(bottom)
6548        )
6549    );
6550    assert_eq!(
6551        unsafe {
6552            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).right
6553                as *const _ as usize
6554        },
6555        36usize,
6556        concat!(
6557            "Offset of field: ",
6558            stringify!(nk_command_rect_multi_color),
6559            "::",
6560            stringify!(right)
6561        )
6562    );
6563}
6564impl Default for nk_command_rect_multi_color {
6565    fn default() -> Self {
6566        unsafe { ::std::mem::zeroed() }
6567    }
6568}
6569#[repr(C)]
6570#[derive(Copy, Clone)]
6571pub struct nk_command_triangle {
6572    pub header: nk_command,
6573    pub line_thickness: ::std::os::raw::c_ushort,
6574    pub a: nk_vec2i,
6575    pub b: nk_vec2i,
6576    pub c: nk_vec2i,
6577    pub color: nk_color,
6578}
6579#[test]
6580fn bindgen_test_layout_nk_command_triangle() {
6581    assert_eq!(
6582        ::std::mem::size_of::<nk_command_triangle>(),
6583        40usize,
6584        concat!("Size of: ", stringify!(nk_command_triangle))
6585    );
6586    assert_eq!(
6587        ::std::mem::align_of::<nk_command_triangle>(),
6588        8usize,
6589        concat!("Alignment of ", stringify!(nk_command_triangle))
6590    );
6591    assert_eq!(
6592        unsafe {
6593            &(*(::std::ptr::null::<nk_command_triangle>())).header as *const _
6594                as usize
6595        },
6596        0usize,
6597        concat!(
6598            "Offset of field: ",
6599            stringify!(nk_command_triangle),
6600            "::",
6601            stringify!(header)
6602        )
6603    );
6604    assert_eq!(
6605        unsafe {
6606            &(*(::std::ptr::null::<nk_command_triangle>())).line_thickness
6607                as *const _ as usize
6608        },
6609        16usize,
6610        concat!(
6611            "Offset of field: ",
6612            stringify!(nk_command_triangle),
6613            "::",
6614            stringify!(line_thickness)
6615        )
6616    );
6617    assert_eq!(
6618        unsafe {
6619            &(*(::std::ptr::null::<nk_command_triangle>())).a as *const _
6620                as usize
6621        },
6622        18usize,
6623        concat!(
6624            "Offset of field: ",
6625            stringify!(nk_command_triangle),
6626            "::",
6627            stringify!(a)
6628        )
6629    );
6630    assert_eq!(
6631        unsafe {
6632            &(*(::std::ptr::null::<nk_command_triangle>())).b as *const _
6633                as usize
6634        },
6635        22usize,
6636        concat!(
6637            "Offset of field: ",
6638            stringify!(nk_command_triangle),
6639            "::",
6640            stringify!(b)
6641        )
6642    );
6643    assert_eq!(
6644        unsafe {
6645            &(*(::std::ptr::null::<nk_command_triangle>())).c as *const _
6646                as usize
6647        },
6648        26usize,
6649        concat!(
6650            "Offset of field: ",
6651            stringify!(nk_command_triangle),
6652            "::",
6653            stringify!(c)
6654        )
6655    );
6656    assert_eq!(
6657        unsafe {
6658            &(*(::std::ptr::null::<nk_command_triangle>())).color as *const _
6659                as usize
6660        },
6661        30usize,
6662        concat!(
6663            "Offset of field: ",
6664            stringify!(nk_command_triangle),
6665            "::",
6666            stringify!(color)
6667        )
6668    );
6669}
6670impl Default for nk_command_triangle {
6671    fn default() -> Self {
6672        unsafe { ::std::mem::zeroed() }
6673    }
6674}
6675#[repr(C)]
6676#[derive(Copy, Clone)]
6677pub struct nk_command_triangle_filled {
6678    pub header: nk_command,
6679    pub a: nk_vec2i,
6680    pub b: nk_vec2i,
6681    pub c: nk_vec2i,
6682    pub color: nk_color,
6683}
6684#[test]
6685fn bindgen_test_layout_nk_command_triangle_filled() {
6686    assert_eq!(
6687        ::std::mem::size_of::<nk_command_triangle_filled>(),
6688        32usize,
6689        concat!("Size of: ", stringify!(nk_command_triangle_filled))
6690    );
6691    assert_eq!(
6692        ::std::mem::align_of::<nk_command_triangle_filled>(),
6693        8usize,
6694        concat!("Alignment of ", stringify!(nk_command_triangle_filled))
6695    );
6696    assert_eq!(
6697        unsafe {
6698            &(*(::std::ptr::null::<nk_command_triangle_filled>())).header
6699                as *const _ as usize
6700        },
6701        0usize,
6702        concat!(
6703            "Offset of field: ",
6704            stringify!(nk_command_triangle_filled),
6705            "::",
6706            stringify!(header)
6707        )
6708    );
6709    assert_eq!(
6710        unsafe {
6711            &(*(::std::ptr::null::<nk_command_triangle_filled>())).a as *const _
6712                as usize
6713        },
6714        16usize,
6715        concat!(
6716            "Offset of field: ",
6717            stringify!(nk_command_triangle_filled),
6718            "::",
6719            stringify!(a)
6720        )
6721    );
6722    assert_eq!(
6723        unsafe {
6724            &(*(::std::ptr::null::<nk_command_triangle_filled>())).b as *const _
6725                as usize
6726        },
6727        20usize,
6728        concat!(
6729            "Offset of field: ",
6730            stringify!(nk_command_triangle_filled),
6731            "::",
6732            stringify!(b)
6733        )
6734    );
6735    assert_eq!(
6736        unsafe {
6737            &(*(::std::ptr::null::<nk_command_triangle_filled>())).c as *const _
6738                as usize
6739        },
6740        24usize,
6741        concat!(
6742            "Offset of field: ",
6743            stringify!(nk_command_triangle_filled),
6744            "::",
6745            stringify!(c)
6746        )
6747    );
6748    assert_eq!(
6749        unsafe {
6750            &(*(::std::ptr::null::<nk_command_triangle_filled>())).color
6751                as *const _ as usize
6752        },
6753        28usize,
6754        concat!(
6755            "Offset of field: ",
6756            stringify!(nk_command_triangle_filled),
6757            "::",
6758            stringify!(color)
6759        )
6760    );
6761}
6762impl Default for nk_command_triangle_filled {
6763    fn default() -> Self {
6764        unsafe { ::std::mem::zeroed() }
6765    }
6766}
6767#[repr(C)]
6768#[derive(Copy, Clone)]
6769pub struct nk_command_circle {
6770    pub header: nk_command,
6771    pub x: ::std::os::raw::c_short,
6772    pub y: ::std::os::raw::c_short,
6773    pub line_thickness: ::std::os::raw::c_ushort,
6774    pub w: ::std::os::raw::c_ushort,
6775    pub h: ::std::os::raw::c_ushort,
6776    pub color: nk_color,
6777}
6778#[test]
6779fn bindgen_test_layout_nk_command_circle() {
6780    assert_eq!(
6781        ::std::mem::size_of::<nk_command_circle>(),
6782        32usize,
6783        concat!("Size of: ", stringify!(nk_command_circle))
6784    );
6785    assert_eq!(
6786        ::std::mem::align_of::<nk_command_circle>(),
6787        8usize,
6788        concat!("Alignment of ", stringify!(nk_command_circle))
6789    );
6790    assert_eq!(
6791        unsafe {
6792            &(*(::std::ptr::null::<nk_command_circle>())).header as *const _
6793                as usize
6794        },
6795        0usize,
6796        concat!(
6797            "Offset of field: ",
6798            stringify!(nk_command_circle),
6799            "::",
6800            stringify!(header)
6801        )
6802    );
6803    assert_eq!(
6804        unsafe {
6805            &(*(::std::ptr::null::<nk_command_circle>())).x as *const _ as usize
6806        },
6807        16usize,
6808        concat!(
6809            "Offset of field: ",
6810            stringify!(nk_command_circle),
6811            "::",
6812            stringify!(x)
6813        )
6814    );
6815    assert_eq!(
6816        unsafe {
6817            &(*(::std::ptr::null::<nk_command_circle>())).y as *const _ as usize
6818        },
6819        18usize,
6820        concat!(
6821            "Offset of field: ",
6822            stringify!(nk_command_circle),
6823            "::",
6824            stringify!(y)
6825        )
6826    );
6827    assert_eq!(
6828        unsafe {
6829            &(*(::std::ptr::null::<nk_command_circle>())).line_thickness
6830                as *const _ as usize
6831        },
6832        20usize,
6833        concat!(
6834            "Offset of field: ",
6835            stringify!(nk_command_circle),
6836            "::",
6837            stringify!(line_thickness)
6838        )
6839    );
6840    assert_eq!(
6841        unsafe {
6842            &(*(::std::ptr::null::<nk_command_circle>())).w as *const _ as usize
6843        },
6844        22usize,
6845        concat!(
6846            "Offset of field: ",
6847            stringify!(nk_command_circle),
6848            "::",
6849            stringify!(w)
6850        )
6851    );
6852    assert_eq!(
6853        unsafe {
6854            &(*(::std::ptr::null::<nk_command_circle>())).h as *const _ as usize
6855        },
6856        24usize,
6857        concat!(
6858            "Offset of field: ",
6859            stringify!(nk_command_circle),
6860            "::",
6861            stringify!(h)
6862        )
6863    );
6864    assert_eq!(
6865        unsafe {
6866            &(*(::std::ptr::null::<nk_command_circle>())).color as *const _
6867                as usize
6868        },
6869        26usize,
6870        concat!(
6871            "Offset of field: ",
6872            stringify!(nk_command_circle),
6873            "::",
6874            stringify!(color)
6875        )
6876    );
6877}
6878impl Default for nk_command_circle {
6879    fn default() -> Self {
6880        unsafe { ::std::mem::zeroed() }
6881    }
6882}
6883#[repr(C)]
6884#[derive(Copy, Clone)]
6885pub struct nk_command_circle_filled {
6886    pub header: nk_command,
6887    pub x: ::std::os::raw::c_short,
6888    pub y: ::std::os::raw::c_short,
6889    pub w: ::std::os::raw::c_ushort,
6890    pub h: ::std::os::raw::c_ushort,
6891    pub color: nk_color,
6892}
6893#[test]
6894fn bindgen_test_layout_nk_command_circle_filled() {
6895    assert_eq!(
6896        ::std::mem::size_of::<nk_command_circle_filled>(),
6897        32usize,
6898        concat!("Size of: ", stringify!(nk_command_circle_filled))
6899    );
6900    assert_eq!(
6901        ::std::mem::align_of::<nk_command_circle_filled>(),
6902        8usize,
6903        concat!("Alignment of ", stringify!(nk_command_circle_filled))
6904    );
6905    assert_eq!(
6906        unsafe {
6907            &(*(::std::ptr::null::<nk_command_circle_filled>())).header
6908                as *const _ as usize
6909        },
6910        0usize,
6911        concat!(
6912            "Offset of field: ",
6913            stringify!(nk_command_circle_filled),
6914            "::",
6915            stringify!(header)
6916        )
6917    );
6918    assert_eq!(
6919        unsafe {
6920            &(*(::std::ptr::null::<nk_command_circle_filled>())).x as *const _
6921                as usize
6922        },
6923        16usize,
6924        concat!(
6925            "Offset of field: ",
6926            stringify!(nk_command_circle_filled),
6927            "::",
6928            stringify!(x)
6929        )
6930    );
6931    assert_eq!(
6932        unsafe {
6933            &(*(::std::ptr::null::<nk_command_circle_filled>())).y as *const _
6934                as usize
6935        },
6936        18usize,
6937        concat!(
6938            "Offset of field: ",
6939            stringify!(nk_command_circle_filled),
6940            "::",
6941            stringify!(y)
6942        )
6943    );
6944    assert_eq!(
6945        unsafe {
6946            &(*(::std::ptr::null::<nk_command_circle_filled>())).w as *const _
6947                as usize
6948        },
6949        20usize,
6950        concat!(
6951            "Offset of field: ",
6952            stringify!(nk_command_circle_filled),
6953            "::",
6954            stringify!(w)
6955        )
6956    );
6957    assert_eq!(
6958        unsafe {
6959            &(*(::std::ptr::null::<nk_command_circle_filled>())).h as *const _
6960                as usize
6961        },
6962        22usize,
6963        concat!(
6964            "Offset of field: ",
6965            stringify!(nk_command_circle_filled),
6966            "::",
6967            stringify!(h)
6968        )
6969    );
6970    assert_eq!(
6971        unsafe {
6972            &(*(::std::ptr::null::<nk_command_circle_filled>())).color
6973                as *const _ as usize
6974        },
6975        24usize,
6976        concat!(
6977            "Offset of field: ",
6978            stringify!(nk_command_circle_filled),
6979            "::",
6980            stringify!(color)
6981        )
6982    );
6983}
6984impl Default for nk_command_circle_filled {
6985    fn default() -> Self {
6986        unsafe { ::std::mem::zeroed() }
6987    }
6988}
6989#[repr(C)]
6990#[derive(Copy, Clone)]
6991pub struct nk_command_arc {
6992    pub header: nk_command,
6993    pub cx: ::std::os::raw::c_short,
6994    pub cy: ::std::os::raw::c_short,
6995    pub r: ::std::os::raw::c_ushort,
6996    pub line_thickness: ::std::os::raw::c_ushort,
6997    pub a: [f32; 2usize],
6998    pub color: nk_color,
6999}
7000#[test]
7001fn bindgen_test_layout_nk_command_arc() {
7002    assert_eq!(
7003        ::std::mem::size_of::<nk_command_arc>(),
7004        40usize,
7005        concat!("Size of: ", stringify!(nk_command_arc))
7006    );
7007    assert_eq!(
7008        ::std::mem::align_of::<nk_command_arc>(),
7009        8usize,
7010        concat!("Alignment of ", stringify!(nk_command_arc))
7011    );
7012    assert_eq!(
7013        unsafe {
7014            &(*(::std::ptr::null::<nk_command_arc>())).header as *const _
7015                as usize
7016        },
7017        0usize,
7018        concat!(
7019            "Offset of field: ",
7020            stringify!(nk_command_arc),
7021            "::",
7022            stringify!(header)
7023        )
7024    );
7025    assert_eq!(
7026        unsafe {
7027            &(*(::std::ptr::null::<nk_command_arc>())).cx as *const _ as usize
7028        },
7029        16usize,
7030        concat!(
7031            "Offset of field: ",
7032            stringify!(nk_command_arc),
7033            "::",
7034            stringify!(cx)
7035        )
7036    );
7037    assert_eq!(
7038        unsafe {
7039            &(*(::std::ptr::null::<nk_command_arc>())).cy as *const _ as usize
7040        },
7041        18usize,
7042        concat!(
7043            "Offset of field: ",
7044            stringify!(nk_command_arc),
7045            "::",
7046            stringify!(cy)
7047        )
7048    );
7049    assert_eq!(
7050        unsafe {
7051            &(*(::std::ptr::null::<nk_command_arc>())).r as *const _ as usize
7052        },
7053        20usize,
7054        concat!(
7055            "Offset of field: ",
7056            stringify!(nk_command_arc),
7057            "::",
7058            stringify!(r)
7059        )
7060    );
7061    assert_eq!(
7062        unsafe {
7063            &(*(::std::ptr::null::<nk_command_arc>())).line_thickness
7064                as *const _ as usize
7065        },
7066        22usize,
7067        concat!(
7068            "Offset of field: ",
7069            stringify!(nk_command_arc),
7070            "::",
7071            stringify!(line_thickness)
7072        )
7073    );
7074    assert_eq!(
7075        unsafe {
7076            &(*(::std::ptr::null::<nk_command_arc>())).a as *const _ as usize
7077        },
7078        24usize,
7079        concat!(
7080            "Offset of field: ",
7081            stringify!(nk_command_arc),
7082            "::",
7083            stringify!(a)
7084        )
7085    );
7086    assert_eq!(
7087        unsafe {
7088            &(*(::std::ptr::null::<nk_command_arc>())).color as *const _
7089                as usize
7090        },
7091        32usize,
7092        concat!(
7093            "Offset of field: ",
7094            stringify!(nk_command_arc),
7095            "::",
7096            stringify!(color)
7097        )
7098    );
7099}
7100impl Default for nk_command_arc {
7101    fn default() -> Self {
7102        unsafe { ::std::mem::zeroed() }
7103    }
7104}
7105#[repr(C)]
7106#[derive(Copy, Clone)]
7107pub struct nk_command_arc_filled {
7108    pub header: nk_command,
7109    pub cx: ::std::os::raw::c_short,
7110    pub cy: ::std::os::raw::c_short,
7111    pub r: ::std::os::raw::c_ushort,
7112    pub a: [f32; 2usize],
7113    pub color: nk_color,
7114}
7115#[test]
7116fn bindgen_test_layout_nk_command_arc_filled() {
7117    assert_eq!(
7118        ::std::mem::size_of::<nk_command_arc_filled>(),
7119        40usize,
7120        concat!("Size of: ", stringify!(nk_command_arc_filled))
7121    );
7122    assert_eq!(
7123        ::std::mem::align_of::<nk_command_arc_filled>(),
7124        8usize,
7125        concat!("Alignment of ", stringify!(nk_command_arc_filled))
7126    );
7127    assert_eq!(
7128        unsafe {
7129            &(*(::std::ptr::null::<nk_command_arc_filled>())).header as *const _
7130                as usize
7131        },
7132        0usize,
7133        concat!(
7134            "Offset of field: ",
7135            stringify!(nk_command_arc_filled),
7136            "::",
7137            stringify!(header)
7138        )
7139    );
7140    assert_eq!(
7141        unsafe {
7142            &(*(::std::ptr::null::<nk_command_arc_filled>())).cx as *const _
7143                as usize
7144        },
7145        16usize,
7146        concat!(
7147            "Offset of field: ",
7148            stringify!(nk_command_arc_filled),
7149            "::",
7150            stringify!(cx)
7151        )
7152    );
7153    assert_eq!(
7154        unsafe {
7155            &(*(::std::ptr::null::<nk_command_arc_filled>())).cy as *const _
7156                as usize
7157        },
7158        18usize,
7159        concat!(
7160            "Offset of field: ",
7161            stringify!(nk_command_arc_filled),
7162            "::",
7163            stringify!(cy)
7164        )
7165    );
7166    assert_eq!(
7167        unsafe {
7168            &(*(::std::ptr::null::<nk_command_arc_filled>())).r as *const _
7169                as usize
7170        },
7171        20usize,
7172        concat!(
7173            "Offset of field: ",
7174            stringify!(nk_command_arc_filled),
7175            "::",
7176            stringify!(r)
7177        )
7178    );
7179    assert_eq!(
7180        unsafe {
7181            &(*(::std::ptr::null::<nk_command_arc_filled>())).a as *const _
7182                as usize
7183        },
7184        24usize,
7185        concat!(
7186            "Offset of field: ",
7187            stringify!(nk_command_arc_filled),
7188            "::",
7189            stringify!(a)
7190        )
7191    );
7192    assert_eq!(
7193        unsafe {
7194            &(*(::std::ptr::null::<nk_command_arc_filled>())).color as *const _
7195                as usize
7196        },
7197        32usize,
7198        concat!(
7199            "Offset of field: ",
7200            stringify!(nk_command_arc_filled),
7201            "::",
7202            stringify!(color)
7203        )
7204    );
7205}
7206impl Default for nk_command_arc_filled {
7207    fn default() -> Self {
7208        unsafe { ::std::mem::zeroed() }
7209    }
7210}
7211#[repr(C)]
7212#[derive(Copy, Clone)]
7213pub struct nk_command_polygon {
7214    pub header: nk_command,
7215    pub color: nk_color,
7216    pub line_thickness: ::std::os::raw::c_ushort,
7217    pub point_count: ::std::os::raw::c_ushort,
7218    pub points: [nk_vec2i; 1usize],
7219}
7220#[test]
7221fn bindgen_test_layout_nk_command_polygon() {
7222    assert_eq!(
7223        ::std::mem::size_of::<nk_command_polygon>(),
7224        32usize,
7225        concat!("Size of: ", stringify!(nk_command_polygon))
7226    );
7227    assert_eq!(
7228        ::std::mem::align_of::<nk_command_polygon>(),
7229        8usize,
7230        concat!("Alignment of ", stringify!(nk_command_polygon))
7231    );
7232    assert_eq!(
7233        unsafe {
7234            &(*(::std::ptr::null::<nk_command_polygon>())).header as *const _
7235                as usize
7236        },
7237        0usize,
7238        concat!(
7239            "Offset of field: ",
7240            stringify!(nk_command_polygon),
7241            "::",
7242            stringify!(header)
7243        )
7244    );
7245    assert_eq!(
7246        unsafe {
7247            &(*(::std::ptr::null::<nk_command_polygon>())).color as *const _
7248                as usize
7249        },
7250        16usize,
7251        concat!(
7252            "Offset of field: ",
7253            stringify!(nk_command_polygon),
7254            "::",
7255            stringify!(color)
7256        )
7257    );
7258    assert_eq!(
7259        unsafe {
7260            &(*(::std::ptr::null::<nk_command_polygon>())).line_thickness
7261                as *const _ as usize
7262        },
7263        20usize,
7264        concat!(
7265            "Offset of field: ",
7266            stringify!(nk_command_polygon),
7267            "::",
7268            stringify!(line_thickness)
7269        )
7270    );
7271    assert_eq!(
7272        unsafe {
7273            &(*(::std::ptr::null::<nk_command_polygon>())).point_count
7274                as *const _ as usize
7275        },
7276        22usize,
7277        concat!(
7278            "Offset of field: ",
7279            stringify!(nk_command_polygon),
7280            "::",
7281            stringify!(point_count)
7282        )
7283    );
7284    assert_eq!(
7285        unsafe {
7286            &(*(::std::ptr::null::<nk_command_polygon>())).points as *const _
7287                as usize
7288        },
7289        24usize,
7290        concat!(
7291            "Offset of field: ",
7292            stringify!(nk_command_polygon),
7293            "::",
7294            stringify!(points)
7295        )
7296    );
7297}
7298impl Default for nk_command_polygon {
7299    fn default() -> Self {
7300        unsafe { ::std::mem::zeroed() }
7301    }
7302}
7303#[repr(C)]
7304#[derive(Copy, Clone)]
7305pub struct nk_command_polygon_filled {
7306    pub header: nk_command,
7307    pub color: nk_color,
7308    pub point_count: ::std::os::raw::c_ushort,
7309    pub points: [nk_vec2i; 1usize],
7310}
7311#[test]
7312fn bindgen_test_layout_nk_command_polygon_filled() {
7313    assert_eq!(
7314        ::std::mem::size_of::<nk_command_polygon_filled>(),
7315        32usize,
7316        concat!("Size of: ", stringify!(nk_command_polygon_filled))
7317    );
7318    assert_eq!(
7319        ::std::mem::align_of::<nk_command_polygon_filled>(),
7320        8usize,
7321        concat!("Alignment of ", stringify!(nk_command_polygon_filled))
7322    );
7323    assert_eq!(
7324        unsafe {
7325            &(*(::std::ptr::null::<nk_command_polygon_filled>())).header
7326                as *const _ as usize
7327        },
7328        0usize,
7329        concat!(
7330            "Offset of field: ",
7331            stringify!(nk_command_polygon_filled),
7332            "::",
7333            stringify!(header)
7334        )
7335    );
7336    assert_eq!(
7337        unsafe {
7338            &(*(::std::ptr::null::<nk_command_polygon_filled>())).color
7339                as *const _ as usize
7340        },
7341        16usize,
7342        concat!(
7343            "Offset of field: ",
7344            stringify!(nk_command_polygon_filled),
7345            "::",
7346            stringify!(color)
7347        )
7348    );
7349    assert_eq!(
7350        unsafe {
7351            &(*(::std::ptr::null::<nk_command_polygon_filled>())).point_count
7352                as *const _ as usize
7353        },
7354        20usize,
7355        concat!(
7356            "Offset of field: ",
7357            stringify!(nk_command_polygon_filled),
7358            "::",
7359            stringify!(point_count)
7360        )
7361    );
7362    assert_eq!(
7363        unsafe {
7364            &(*(::std::ptr::null::<nk_command_polygon_filled>())).points
7365                as *const _ as usize
7366        },
7367        22usize,
7368        concat!(
7369            "Offset of field: ",
7370            stringify!(nk_command_polygon_filled),
7371            "::",
7372            stringify!(points)
7373        )
7374    );
7375}
7376impl Default for nk_command_polygon_filled {
7377    fn default() -> Self {
7378        unsafe { ::std::mem::zeroed() }
7379    }
7380}
7381#[repr(C)]
7382#[derive(Copy, Clone)]
7383pub struct nk_command_polyline {
7384    pub header: nk_command,
7385    pub color: nk_color,
7386    pub line_thickness: ::std::os::raw::c_ushort,
7387    pub point_count: ::std::os::raw::c_ushort,
7388    pub points: [nk_vec2i; 1usize],
7389}
7390#[test]
7391fn bindgen_test_layout_nk_command_polyline() {
7392    assert_eq!(
7393        ::std::mem::size_of::<nk_command_polyline>(),
7394        32usize,
7395        concat!("Size of: ", stringify!(nk_command_polyline))
7396    );
7397    assert_eq!(
7398        ::std::mem::align_of::<nk_command_polyline>(),
7399        8usize,
7400        concat!("Alignment of ", stringify!(nk_command_polyline))
7401    );
7402    assert_eq!(
7403        unsafe {
7404            &(*(::std::ptr::null::<nk_command_polyline>())).header as *const _
7405                as usize
7406        },
7407        0usize,
7408        concat!(
7409            "Offset of field: ",
7410            stringify!(nk_command_polyline),
7411            "::",
7412            stringify!(header)
7413        )
7414    );
7415    assert_eq!(
7416        unsafe {
7417            &(*(::std::ptr::null::<nk_command_polyline>())).color as *const _
7418                as usize
7419        },
7420        16usize,
7421        concat!(
7422            "Offset of field: ",
7423            stringify!(nk_command_polyline),
7424            "::",
7425            stringify!(color)
7426        )
7427    );
7428    assert_eq!(
7429        unsafe {
7430            &(*(::std::ptr::null::<nk_command_polyline>())).line_thickness
7431                as *const _ as usize
7432        },
7433        20usize,
7434        concat!(
7435            "Offset of field: ",
7436            stringify!(nk_command_polyline),
7437            "::",
7438            stringify!(line_thickness)
7439        )
7440    );
7441    assert_eq!(
7442        unsafe {
7443            &(*(::std::ptr::null::<nk_command_polyline>())).point_count
7444                as *const _ as usize
7445        },
7446        22usize,
7447        concat!(
7448            "Offset of field: ",
7449            stringify!(nk_command_polyline),
7450            "::",
7451            stringify!(point_count)
7452        )
7453    );
7454    assert_eq!(
7455        unsafe {
7456            &(*(::std::ptr::null::<nk_command_polyline>())).points as *const _
7457                as usize
7458        },
7459        24usize,
7460        concat!(
7461            "Offset of field: ",
7462            stringify!(nk_command_polyline),
7463            "::",
7464            stringify!(points)
7465        )
7466    );
7467}
7468impl Default for nk_command_polyline {
7469    fn default() -> Self {
7470        unsafe { ::std::mem::zeroed() }
7471    }
7472}
7473#[repr(C)]
7474#[derive(Copy, Clone)]
7475pub struct nk_command_image {
7476    pub header: nk_command,
7477    pub x: ::std::os::raw::c_short,
7478    pub y: ::std::os::raw::c_short,
7479    pub w: ::std::os::raw::c_ushort,
7480    pub h: ::std::os::raw::c_ushort,
7481    pub img: nk_image,
7482    pub col: nk_color,
7483}
7484#[test]
7485fn bindgen_test_layout_nk_command_image() {
7486    assert_eq!(
7487        ::std::mem::size_of::<nk_command_image>(),
7488        56usize,
7489        concat!("Size of: ", stringify!(nk_command_image))
7490    );
7491    assert_eq!(
7492        ::std::mem::align_of::<nk_command_image>(),
7493        8usize,
7494        concat!("Alignment of ", stringify!(nk_command_image))
7495    );
7496    assert_eq!(
7497        unsafe {
7498            &(*(::std::ptr::null::<nk_command_image>())).header as *const _
7499                as usize
7500        },
7501        0usize,
7502        concat!(
7503            "Offset of field: ",
7504            stringify!(nk_command_image),
7505            "::",
7506            stringify!(header)
7507        )
7508    );
7509    assert_eq!(
7510        unsafe {
7511            &(*(::std::ptr::null::<nk_command_image>())).x as *const _ as usize
7512        },
7513        16usize,
7514        concat!(
7515            "Offset of field: ",
7516            stringify!(nk_command_image),
7517            "::",
7518            stringify!(x)
7519        )
7520    );
7521    assert_eq!(
7522        unsafe {
7523            &(*(::std::ptr::null::<nk_command_image>())).y as *const _ as usize
7524        },
7525        18usize,
7526        concat!(
7527            "Offset of field: ",
7528            stringify!(nk_command_image),
7529            "::",
7530            stringify!(y)
7531        )
7532    );
7533    assert_eq!(
7534        unsafe {
7535            &(*(::std::ptr::null::<nk_command_image>())).w as *const _ as usize
7536        },
7537        20usize,
7538        concat!(
7539            "Offset of field: ",
7540            stringify!(nk_command_image),
7541            "::",
7542            stringify!(w)
7543        )
7544    );
7545    assert_eq!(
7546        unsafe {
7547            &(*(::std::ptr::null::<nk_command_image>())).h as *const _ as usize
7548        },
7549        22usize,
7550        concat!(
7551            "Offset of field: ",
7552            stringify!(nk_command_image),
7553            "::",
7554            stringify!(h)
7555        )
7556    );
7557    assert_eq!(
7558        unsafe {
7559            &(*(::std::ptr::null::<nk_command_image>())).img as *const _
7560                as usize
7561        },
7562        24usize,
7563        concat!(
7564            "Offset of field: ",
7565            stringify!(nk_command_image),
7566            "::",
7567            stringify!(img)
7568        )
7569    );
7570    assert_eq!(
7571        unsafe {
7572            &(*(::std::ptr::null::<nk_command_image>())).col as *const _
7573                as usize
7574        },
7575        48usize,
7576        concat!(
7577            "Offset of field: ",
7578            stringify!(nk_command_image),
7579            "::",
7580            stringify!(col)
7581        )
7582    );
7583}
7584impl Default for nk_command_image {
7585    fn default() -> Self {
7586        unsafe { ::std::mem::zeroed() }
7587    }
7588}
7589pub type nk_command_custom_callback = ::std::option::Option<
7590    unsafe extern "C" fn(
7591        canvas: *mut ::std::os::raw::c_void,
7592        x: ::std::os::raw::c_short,
7593        y: ::std::os::raw::c_short,
7594        w: ::std::os::raw::c_ushort,
7595        h: ::std::os::raw::c_ushort,
7596        callback_data: nk_handle,
7597    ),
7598>;
7599#[repr(C)]
7600#[derive(Copy, Clone)]
7601pub struct nk_command_custom {
7602    pub header: nk_command,
7603    pub x: ::std::os::raw::c_short,
7604    pub y: ::std::os::raw::c_short,
7605    pub w: ::std::os::raw::c_ushort,
7606    pub h: ::std::os::raw::c_ushort,
7607    pub callback_data: nk_handle,
7608    pub callback: nk_command_custom_callback,
7609}
7610#[test]
7611fn bindgen_test_layout_nk_command_custom() {
7612    assert_eq!(
7613        ::std::mem::size_of::<nk_command_custom>(),
7614        40usize,
7615        concat!("Size of: ", stringify!(nk_command_custom))
7616    );
7617    assert_eq!(
7618        ::std::mem::align_of::<nk_command_custom>(),
7619        8usize,
7620        concat!("Alignment of ", stringify!(nk_command_custom))
7621    );
7622    assert_eq!(
7623        unsafe {
7624            &(*(::std::ptr::null::<nk_command_custom>())).header as *const _
7625                as usize
7626        },
7627        0usize,
7628        concat!(
7629            "Offset of field: ",
7630            stringify!(nk_command_custom),
7631            "::",
7632            stringify!(header)
7633        )
7634    );
7635    assert_eq!(
7636        unsafe {
7637            &(*(::std::ptr::null::<nk_command_custom>())).x as *const _ as usize
7638        },
7639        16usize,
7640        concat!(
7641            "Offset of field: ",
7642            stringify!(nk_command_custom),
7643            "::",
7644            stringify!(x)
7645        )
7646    );
7647    assert_eq!(
7648        unsafe {
7649            &(*(::std::ptr::null::<nk_command_custom>())).y as *const _ as usize
7650        },
7651        18usize,
7652        concat!(
7653            "Offset of field: ",
7654            stringify!(nk_command_custom),
7655            "::",
7656            stringify!(y)
7657        )
7658    );
7659    assert_eq!(
7660        unsafe {
7661            &(*(::std::ptr::null::<nk_command_custom>())).w as *const _ as usize
7662        },
7663        20usize,
7664        concat!(
7665            "Offset of field: ",
7666            stringify!(nk_command_custom),
7667            "::",
7668            stringify!(w)
7669        )
7670    );
7671    assert_eq!(
7672        unsafe {
7673            &(*(::std::ptr::null::<nk_command_custom>())).h as *const _ as usize
7674        },
7675        22usize,
7676        concat!(
7677            "Offset of field: ",
7678            stringify!(nk_command_custom),
7679            "::",
7680            stringify!(h)
7681        )
7682    );
7683    assert_eq!(
7684        unsafe {
7685            &(*(::std::ptr::null::<nk_command_custom>())).callback_data
7686                as *const _ as usize
7687        },
7688        24usize,
7689        concat!(
7690            "Offset of field: ",
7691            stringify!(nk_command_custom),
7692            "::",
7693            stringify!(callback_data)
7694        )
7695    );
7696    assert_eq!(
7697        unsafe {
7698            &(*(::std::ptr::null::<nk_command_custom>())).callback as *const _
7699                as usize
7700        },
7701        32usize,
7702        concat!(
7703            "Offset of field: ",
7704            stringify!(nk_command_custom),
7705            "::",
7706            stringify!(callback)
7707        )
7708    );
7709}
7710impl Default for nk_command_custom {
7711    fn default() -> Self {
7712        unsafe { ::std::mem::zeroed() }
7713    }
7714}
7715#[repr(C)]
7716#[derive(Copy, Clone)]
7717pub struct nk_command_text {
7718    pub header: nk_command,
7719    pub font: *const nk_user_font,
7720    pub background: nk_color,
7721    pub foreground: nk_color,
7722    pub x: ::std::os::raw::c_short,
7723    pub y: ::std::os::raw::c_short,
7724    pub w: ::std::os::raw::c_ushort,
7725    pub h: ::std::os::raw::c_ushort,
7726    pub height: f32,
7727    pub length: ::std::os::raw::c_int,
7728    pub string: [::std::os::raw::c_char; 1usize],
7729}
7730#[test]
7731fn bindgen_test_layout_nk_command_text() {
7732    assert_eq!(
7733        ::std::mem::size_of::<nk_command_text>(),
7734        56usize,
7735        concat!("Size of: ", stringify!(nk_command_text))
7736    );
7737    assert_eq!(
7738        ::std::mem::align_of::<nk_command_text>(),
7739        8usize,
7740        concat!("Alignment of ", stringify!(nk_command_text))
7741    );
7742    assert_eq!(
7743        unsafe {
7744            &(*(::std::ptr::null::<nk_command_text>())).header as *const _
7745                as usize
7746        },
7747        0usize,
7748        concat!(
7749            "Offset of field: ",
7750            stringify!(nk_command_text),
7751            "::",
7752            stringify!(header)
7753        )
7754    );
7755    assert_eq!(
7756        unsafe {
7757            &(*(::std::ptr::null::<nk_command_text>())).font as *const _
7758                as usize
7759        },
7760        16usize,
7761        concat!(
7762            "Offset of field: ",
7763            stringify!(nk_command_text),
7764            "::",
7765            stringify!(font)
7766        )
7767    );
7768    assert_eq!(
7769        unsafe {
7770            &(*(::std::ptr::null::<nk_command_text>())).background as *const _
7771                as usize
7772        },
7773        24usize,
7774        concat!(
7775            "Offset of field: ",
7776            stringify!(nk_command_text),
7777            "::",
7778            stringify!(background)
7779        )
7780    );
7781    assert_eq!(
7782        unsafe {
7783            &(*(::std::ptr::null::<nk_command_text>())).foreground as *const _
7784                as usize
7785        },
7786        28usize,
7787        concat!(
7788            "Offset of field: ",
7789            stringify!(nk_command_text),
7790            "::",
7791            stringify!(foreground)
7792        )
7793    );
7794    assert_eq!(
7795        unsafe {
7796            &(*(::std::ptr::null::<nk_command_text>())).x as *const _ as usize
7797        },
7798        32usize,
7799        concat!(
7800            "Offset of field: ",
7801            stringify!(nk_command_text),
7802            "::",
7803            stringify!(x)
7804        )
7805    );
7806    assert_eq!(
7807        unsafe {
7808            &(*(::std::ptr::null::<nk_command_text>())).y as *const _ as usize
7809        },
7810        34usize,
7811        concat!(
7812            "Offset of field: ",
7813            stringify!(nk_command_text),
7814            "::",
7815            stringify!(y)
7816        )
7817    );
7818    assert_eq!(
7819        unsafe {
7820            &(*(::std::ptr::null::<nk_command_text>())).w as *const _ as usize
7821        },
7822        36usize,
7823        concat!(
7824            "Offset of field: ",
7825            stringify!(nk_command_text),
7826            "::",
7827            stringify!(w)
7828        )
7829    );
7830    assert_eq!(
7831        unsafe {
7832            &(*(::std::ptr::null::<nk_command_text>())).h as *const _ as usize
7833        },
7834        38usize,
7835        concat!(
7836            "Offset of field: ",
7837            stringify!(nk_command_text),
7838            "::",
7839            stringify!(h)
7840        )
7841    );
7842    assert_eq!(
7843        unsafe {
7844            &(*(::std::ptr::null::<nk_command_text>())).height as *const _
7845                as usize
7846        },
7847        40usize,
7848        concat!(
7849            "Offset of field: ",
7850            stringify!(nk_command_text),
7851            "::",
7852            stringify!(height)
7853        )
7854    );
7855    assert_eq!(
7856        unsafe {
7857            &(*(::std::ptr::null::<nk_command_text>())).length as *const _
7858                as usize
7859        },
7860        44usize,
7861        concat!(
7862            "Offset of field: ",
7863            stringify!(nk_command_text),
7864            "::",
7865            stringify!(length)
7866        )
7867    );
7868    assert_eq!(
7869        unsafe {
7870            &(*(::std::ptr::null::<nk_command_text>())).string as *const _
7871                as usize
7872        },
7873        48usize,
7874        concat!(
7875            "Offset of field: ",
7876            stringify!(nk_command_text),
7877            "::",
7878            stringify!(string)
7879        )
7880    );
7881}
7882impl Default for nk_command_text {
7883    fn default() -> Self {
7884        unsafe { ::std::mem::zeroed() }
7885    }
7886}
7887pub const nk_command_clipping_NK_CLIPPING_OFF: nk_command_clipping = 0;
7888pub const nk_command_clipping_NK_CLIPPING_ON: nk_command_clipping = 1;
7889pub type nk_command_clipping = u32;
7890#[repr(C)]
7891#[derive(Copy, Clone)]
7892pub struct nk_command_buffer {
7893    pub base: *mut nk_buffer,
7894    pub clip: nk_rect,
7895    pub use_clipping: ::std::os::raw::c_int,
7896    pub userdata: nk_handle,
7897    pub begin: nk_size,
7898    pub end: nk_size,
7899    pub last: nk_size,
7900}
7901#[test]
7902fn bindgen_test_layout_nk_command_buffer() {
7903    assert_eq!(
7904        ::std::mem::size_of::<nk_command_buffer>(),
7905        56usize,
7906        concat!("Size of: ", stringify!(nk_command_buffer))
7907    );
7908    assert_eq!(
7909        ::std::mem::align_of::<nk_command_buffer>(),
7910        8usize,
7911        concat!("Alignment of ", stringify!(nk_command_buffer))
7912    );
7913    assert_eq!(
7914        unsafe {
7915            &(*(::std::ptr::null::<nk_command_buffer>())).base as *const _
7916                as usize
7917        },
7918        0usize,
7919        concat!(
7920            "Offset of field: ",
7921            stringify!(nk_command_buffer),
7922            "::",
7923            stringify!(base)
7924        )
7925    );
7926    assert_eq!(
7927        unsafe {
7928            &(*(::std::ptr::null::<nk_command_buffer>())).clip as *const _
7929                as usize
7930        },
7931        8usize,
7932        concat!(
7933            "Offset of field: ",
7934            stringify!(nk_command_buffer),
7935            "::",
7936            stringify!(clip)
7937        )
7938    );
7939    assert_eq!(
7940        unsafe {
7941            &(*(::std::ptr::null::<nk_command_buffer>())).use_clipping
7942                as *const _ as usize
7943        },
7944        24usize,
7945        concat!(
7946            "Offset of field: ",
7947            stringify!(nk_command_buffer),
7948            "::",
7949            stringify!(use_clipping)
7950        )
7951    );
7952    assert_eq!(
7953        unsafe {
7954            &(*(::std::ptr::null::<nk_command_buffer>())).userdata as *const _
7955                as usize
7956        },
7957        32usize,
7958        concat!(
7959            "Offset of field: ",
7960            stringify!(nk_command_buffer),
7961            "::",
7962            stringify!(userdata)
7963        )
7964    );
7965    assert_eq!(
7966        unsafe {
7967            &(*(::std::ptr::null::<nk_command_buffer>())).begin as *const _
7968                as usize
7969        },
7970        40usize,
7971        concat!(
7972            "Offset of field: ",
7973            stringify!(nk_command_buffer),
7974            "::",
7975            stringify!(begin)
7976        )
7977    );
7978    assert_eq!(
7979        unsafe {
7980            &(*(::std::ptr::null::<nk_command_buffer>())).end as *const _
7981                as usize
7982        },
7983        44usize,
7984        concat!(
7985            "Offset of field: ",
7986            stringify!(nk_command_buffer),
7987            "::",
7988            stringify!(end)
7989        )
7990    );
7991    assert_eq!(
7992        unsafe {
7993            &(*(::std::ptr::null::<nk_command_buffer>())).last as *const _
7994                as usize
7995        },
7996        48usize,
7997        concat!(
7998            "Offset of field: ",
7999            stringify!(nk_command_buffer),
8000            "::",
8001            stringify!(last)
8002        )
8003    );
8004}
8005impl Default for nk_command_buffer {
8006    fn default() -> Self {
8007        unsafe { ::std::mem::zeroed() }
8008    }
8009}
8010extern "C" {
8011    pub fn nk_stroke_line(
8012        b: *mut nk_command_buffer,
8013        x0: f32,
8014        y0: f32,
8015        x1: f32,
8016        y1: f32,
8017        line_thickness: f32,
8018        arg1: nk_color,
8019    );
8020}
8021extern "C" {
8022    pub fn nk_stroke_curve(
8023        arg1: *mut nk_command_buffer,
8024        arg2: f32,
8025        arg3: f32,
8026        arg4: f32,
8027        arg5: f32,
8028        arg6: f32,
8029        arg7: f32,
8030        arg8: f32,
8031        arg9: f32,
8032        line_thickness: f32,
8033        arg10: nk_color,
8034    );
8035}
8036extern "C" {
8037    pub fn nk_stroke_rect(
8038        arg1: *mut nk_command_buffer,
8039        arg2: nk_rect,
8040        rounding: f32,
8041        line_thickness: f32,
8042        arg3: nk_color,
8043    );
8044}
8045extern "C" {
8046    pub fn nk_stroke_circle(
8047        arg1: *mut nk_command_buffer,
8048        arg2: nk_rect,
8049        line_thickness: f32,
8050        arg3: nk_color,
8051    );
8052}
8053extern "C" {
8054    pub fn nk_stroke_arc(
8055        arg1: *mut nk_command_buffer,
8056        cx: f32,
8057        cy: f32,
8058        radius: f32,
8059        a_min: f32,
8060        a_max: f32,
8061        line_thickness: f32,
8062        arg2: nk_color,
8063    );
8064}
8065extern "C" {
8066    pub fn nk_stroke_triangle(
8067        arg1: *mut nk_command_buffer,
8068        arg2: f32,
8069        arg3: f32,
8070        arg4: f32,
8071        arg5: f32,
8072        arg6: f32,
8073        arg7: f32,
8074        line_thichness: f32,
8075        arg8: nk_color,
8076    );
8077}
8078extern "C" {
8079    pub fn nk_stroke_polyline(
8080        arg1: *mut nk_command_buffer,
8081        points: *mut f32,
8082        point_count: ::std::os::raw::c_int,
8083        line_thickness: f32,
8084        col: nk_color,
8085    );
8086}
8087extern "C" {
8088    pub fn nk_stroke_polygon(
8089        arg1: *mut nk_command_buffer,
8090        arg2: *mut f32,
8091        point_count: ::std::os::raw::c_int,
8092        line_thickness: f32,
8093        arg3: nk_color,
8094    );
8095}
8096extern "C" {
8097    pub fn nk_fill_rect(
8098        arg1: *mut nk_command_buffer,
8099        arg2: nk_rect,
8100        rounding: f32,
8101        arg3: nk_color,
8102    );
8103}
8104extern "C" {
8105    pub fn nk_fill_rect_multi_color(
8106        arg1: *mut nk_command_buffer,
8107        arg2: nk_rect,
8108        left: nk_color,
8109        top: nk_color,
8110        right: nk_color,
8111        bottom: nk_color,
8112    );
8113}
8114extern "C" {
8115    pub fn nk_fill_circle(
8116        arg1: *mut nk_command_buffer,
8117        arg2: nk_rect,
8118        arg3: nk_color,
8119    );
8120}
8121extern "C" {
8122    pub fn nk_fill_arc(
8123        arg1: *mut nk_command_buffer,
8124        cx: f32,
8125        cy: f32,
8126        radius: f32,
8127        a_min: f32,
8128        a_max: f32,
8129        arg2: nk_color,
8130    );
8131}
8132extern "C" {
8133    pub fn nk_fill_triangle(
8134        arg1: *mut nk_command_buffer,
8135        x0: f32,
8136        y0: f32,
8137        x1: f32,
8138        y1: f32,
8139        x2: f32,
8140        y2: f32,
8141        arg2: nk_color,
8142    );
8143}
8144extern "C" {
8145    pub fn nk_fill_polygon(
8146        arg1: *mut nk_command_buffer,
8147        arg2: *mut f32,
8148        point_count: ::std::os::raw::c_int,
8149        arg3: nk_color,
8150    );
8151}
8152extern "C" {
8153    pub fn nk_draw_image(
8154        arg1: *mut nk_command_buffer,
8155        arg2: nk_rect,
8156        arg3: *const nk_image,
8157        arg4: nk_color,
8158    );
8159}
8160extern "C" {
8161    pub fn nk_draw_text(
8162        arg1: *mut nk_command_buffer,
8163        arg2: nk_rect,
8164        text: *const ::std::os::raw::c_char,
8165        len: ::std::os::raw::c_int,
8166        arg3: *const nk_user_font,
8167        arg4: nk_color,
8168        arg5: nk_color,
8169    );
8170}
8171extern "C" {
8172    pub fn nk_push_scissor(arg1: *mut nk_command_buffer, arg2: nk_rect);
8173}
8174extern "C" {
8175    pub fn nk_push_custom(
8176        arg1: *mut nk_command_buffer,
8177        arg2: nk_rect,
8178        arg3: nk_command_custom_callback,
8179        usr: nk_handle,
8180    );
8181}
8182#[repr(C)]
8183#[derive(Debug, Default, Copy, Clone)]
8184pub struct nk_mouse_button {
8185    pub down: ::std::os::raw::c_int,
8186    pub clicked: ::std::os::raw::c_uint,
8187    pub clicked_pos: nk_vec2,
8188}
8189#[test]
8190fn bindgen_test_layout_nk_mouse_button() {
8191    assert_eq!(
8192        ::std::mem::size_of::<nk_mouse_button>(),
8193        16usize,
8194        concat!("Size of: ", stringify!(nk_mouse_button))
8195    );
8196    assert_eq!(
8197        ::std::mem::align_of::<nk_mouse_button>(),
8198        4usize,
8199        concat!("Alignment of ", stringify!(nk_mouse_button))
8200    );
8201    assert_eq!(
8202        unsafe {
8203            &(*(::std::ptr::null::<nk_mouse_button>())).down as *const _
8204                as usize
8205        },
8206        0usize,
8207        concat!(
8208            "Offset of field: ",
8209            stringify!(nk_mouse_button),
8210            "::",
8211            stringify!(down)
8212        )
8213    );
8214    assert_eq!(
8215        unsafe {
8216            &(*(::std::ptr::null::<nk_mouse_button>())).clicked as *const _
8217                as usize
8218        },
8219        4usize,
8220        concat!(
8221            "Offset of field: ",
8222            stringify!(nk_mouse_button),
8223            "::",
8224            stringify!(clicked)
8225        )
8226    );
8227    assert_eq!(
8228        unsafe {
8229            &(*(::std::ptr::null::<nk_mouse_button>())).clicked_pos as *const _
8230                as usize
8231        },
8232        8usize,
8233        concat!(
8234            "Offset of field: ",
8235            stringify!(nk_mouse_button),
8236            "::",
8237            stringify!(clicked_pos)
8238        )
8239    );
8240}
8241#[repr(C)]
8242#[derive(Debug, Default, Copy, Clone)]
8243pub struct nk_mouse {
8244    pub buttons: [nk_mouse_button; 4usize],
8245    pub pos: nk_vec2,
8246    pub prev: nk_vec2,
8247    pub delta: nk_vec2,
8248    pub scroll_delta: nk_vec2,
8249    pub grab: ::std::os::raw::c_uchar,
8250    pub grabbed: ::std::os::raw::c_uchar,
8251    pub ungrab: ::std::os::raw::c_uchar,
8252}
8253#[test]
8254fn bindgen_test_layout_nk_mouse() {
8255    assert_eq!(
8256        ::std::mem::size_of::<nk_mouse>(),
8257        100usize,
8258        concat!("Size of: ", stringify!(nk_mouse))
8259    );
8260    assert_eq!(
8261        ::std::mem::align_of::<nk_mouse>(),
8262        4usize,
8263        concat!("Alignment of ", stringify!(nk_mouse))
8264    );
8265    assert_eq!(
8266        unsafe {
8267            &(*(::std::ptr::null::<nk_mouse>())).buttons as *const _ as usize
8268        },
8269        0usize,
8270        concat!(
8271            "Offset of field: ",
8272            stringify!(nk_mouse),
8273            "::",
8274            stringify!(buttons)
8275        )
8276    );
8277    assert_eq!(
8278        unsafe {
8279            &(*(::std::ptr::null::<nk_mouse>())).pos as *const _ as usize
8280        },
8281        64usize,
8282        concat!(
8283            "Offset of field: ",
8284            stringify!(nk_mouse),
8285            "::",
8286            stringify!(pos)
8287        )
8288    );
8289    assert_eq!(
8290        unsafe {
8291            &(*(::std::ptr::null::<nk_mouse>())).prev as *const _ as usize
8292        },
8293        72usize,
8294        concat!(
8295            "Offset of field: ",
8296            stringify!(nk_mouse),
8297            "::",
8298            stringify!(prev)
8299        )
8300    );
8301    assert_eq!(
8302        unsafe {
8303            &(*(::std::ptr::null::<nk_mouse>())).delta as *const _ as usize
8304        },
8305        80usize,
8306        concat!(
8307            "Offset of field: ",
8308            stringify!(nk_mouse),
8309            "::",
8310            stringify!(delta)
8311        )
8312    );
8313    assert_eq!(
8314        unsafe {
8315            &(*(::std::ptr::null::<nk_mouse>())).scroll_delta as *const _
8316                as usize
8317        },
8318        88usize,
8319        concat!(
8320            "Offset of field: ",
8321            stringify!(nk_mouse),
8322            "::",
8323            stringify!(scroll_delta)
8324        )
8325    );
8326    assert_eq!(
8327        unsafe {
8328            &(*(::std::ptr::null::<nk_mouse>())).grab as *const _ as usize
8329        },
8330        96usize,
8331        concat!(
8332            "Offset of field: ",
8333            stringify!(nk_mouse),
8334            "::",
8335            stringify!(grab)
8336        )
8337    );
8338    assert_eq!(
8339        unsafe {
8340            &(*(::std::ptr::null::<nk_mouse>())).grabbed as *const _ as usize
8341        },
8342        97usize,
8343        concat!(
8344            "Offset of field: ",
8345            stringify!(nk_mouse),
8346            "::",
8347            stringify!(grabbed)
8348        )
8349    );
8350    assert_eq!(
8351        unsafe {
8352            &(*(::std::ptr::null::<nk_mouse>())).ungrab as *const _ as usize
8353        },
8354        98usize,
8355        concat!(
8356            "Offset of field: ",
8357            stringify!(nk_mouse),
8358            "::",
8359            stringify!(ungrab)
8360        )
8361    );
8362}
8363#[repr(C)]
8364#[derive(Debug, Default, Copy, Clone)]
8365pub struct nk_key {
8366    pub down: ::std::os::raw::c_int,
8367    pub clicked: ::std::os::raw::c_uint,
8368}
8369#[test]
8370fn bindgen_test_layout_nk_key() {
8371    assert_eq!(
8372        ::std::mem::size_of::<nk_key>(),
8373        8usize,
8374        concat!("Size of: ", stringify!(nk_key))
8375    );
8376    assert_eq!(
8377        ::std::mem::align_of::<nk_key>(),
8378        4usize,
8379        concat!("Alignment of ", stringify!(nk_key))
8380    );
8381    assert_eq!(
8382        unsafe { &(*(::std::ptr::null::<nk_key>())).down as *const _ as usize },
8383        0usize,
8384        concat!(
8385            "Offset of field: ",
8386            stringify!(nk_key),
8387            "::",
8388            stringify!(down)
8389        )
8390    );
8391    assert_eq!(
8392        unsafe {
8393            &(*(::std::ptr::null::<nk_key>())).clicked as *const _ as usize
8394        },
8395        4usize,
8396        concat!(
8397            "Offset of field: ",
8398            stringify!(nk_key),
8399            "::",
8400            stringify!(clicked)
8401        )
8402    );
8403}
8404#[repr(C)]
8405#[derive(Debug, Default, Copy, Clone)]
8406pub struct nk_keyboard {
8407    pub keys: [nk_key; 30usize],
8408    pub text: [::std::os::raw::c_char; 16usize],
8409    pub text_len: ::std::os::raw::c_int,
8410}
8411#[test]
8412fn bindgen_test_layout_nk_keyboard() {
8413    assert_eq!(
8414        ::std::mem::size_of::<nk_keyboard>(),
8415        260usize,
8416        concat!("Size of: ", stringify!(nk_keyboard))
8417    );
8418    assert_eq!(
8419        ::std::mem::align_of::<nk_keyboard>(),
8420        4usize,
8421        concat!("Alignment of ", stringify!(nk_keyboard))
8422    );
8423    assert_eq!(
8424        unsafe {
8425            &(*(::std::ptr::null::<nk_keyboard>())).keys as *const _ as usize
8426        },
8427        0usize,
8428        concat!(
8429            "Offset of field: ",
8430            stringify!(nk_keyboard),
8431            "::",
8432            stringify!(keys)
8433        )
8434    );
8435    assert_eq!(
8436        unsafe {
8437            &(*(::std::ptr::null::<nk_keyboard>())).text as *const _ as usize
8438        },
8439        240usize,
8440        concat!(
8441            "Offset of field: ",
8442            stringify!(nk_keyboard),
8443            "::",
8444            stringify!(text)
8445        )
8446    );
8447    assert_eq!(
8448        unsafe {
8449            &(*(::std::ptr::null::<nk_keyboard>())).text_len as *const _
8450                as usize
8451        },
8452        256usize,
8453        concat!(
8454            "Offset of field: ",
8455            stringify!(nk_keyboard),
8456            "::",
8457            stringify!(text_len)
8458        )
8459    );
8460}
8461#[repr(C)]
8462#[derive(Debug, Default, Copy, Clone)]
8463pub struct nk_input {
8464    pub keyboard: nk_keyboard,
8465    pub mouse: nk_mouse,
8466}
8467#[test]
8468fn bindgen_test_layout_nk_input() {
8469    assert_eq!(
8470        ::std::mem::size_of::<nk_input>(),
8471        360usize,
8472        concat!("Size of: ", stringify!(nk_input))
8473    );
8474    assert_eq!(
8475        ::std::mem::align_of::<nk_input>(),
8476        4usize,
8477        concat!("Alignment of ", stringify!(nk_input))
8478    );
8479    assert_eq!(
8480        unsafe {
8481            &(*(::std::ptr::null::<nk_input>())).keyboard as *const _ as usize
8482        },
8483        0usize,
8484        concat!(
8485            "Offset of field: ",
8486            stringify!(nk_input),
8487            "::",
8488            stringify!(keyboard)
8489        )
8490    );
8491    assert_eq!(
8492        unsafe {
8493            &(*(::std::ptr::null::<nk_input>())).mouse as *const _ as usize
8494        },
8495        260usize,
8496        concat!(
8497            "Offset of field: ",
8498            stringify!(nk_input),
8499            "::",
8500            stringify!(mouse)
8501        )
8502    );
8503}
8504extern "C" {
8505    pub fn nk_input_has_mouse_click(
8506        arg1: *const nk_input,
8507        arg2: nk_buttons,
8508    ) -> ::std::os::raw::c_int;
8509}
8510extern "C" {
8511    pub fn nk_input_has_mouse_click_in_rect(
8512        arg1: *const nk_input,
8513        arg2: nk_buttons,
8514        arg3: nk_rect,
8515    ) -> ::std::os::raw::c_int;
8516}
8517extern "C" {
8518    pub fn nk_input_has_mouse_click_down_in_rect(
8519        arg1: *const nk_input,
8520        arg2: nk_buttons,
8521        arg3: nk_rect,
8522        down: ::std::os::raw::c_int,
8523    ) -> ::std::os::raw::c_int;
8524}
8525extern "C" {
8526    pub fn nk_input_is_mouse_click_in_rect(
8527        arg1: *const nk_input,
8528        arg2: nk_buttons,
8529        arg3: nk_rect,
8530    ) -> ::std::os::raw::c_int;
8531}
8532extern "C" {
8533    pub fn nk_input_is_mouse_click_down_in_rect(
8534        i: *const nk_input,
8535        id: nk_buttons,
8536        b: nk_rect,
8537        down: ::std::os::raw::c_int,
8538    ) -> ::std::os::raw::c_int;
8539}
8540extern "C" {
8541    pub fn nk_input_any_mouse_click_in_rect(
8542        arg1: *const nk_input,
8543        arg2: nk_rect,
8544    ) -> ::std::os::raw::c_int;
8545}
8546extern "C" {
8547    pub fn nk_input_is_mouse_prev_hovering_rect(
8548        arg1: *const nk_input,
8549        arg2: nk_rect,
8550    ) -> ::std::os::raw::c_int;
8551}
8552extern "C" {
8553    pub fn nk_input_is_mouse_hovering_rect(
8554        arg1: *const nk_input,
8555        arg2: nk_rect,
8556    ) -> ::std::os::raw::c_int;
8557}
8558extern "C" {
8559    pub fn nk_input_mouse_clicked(
8560        arg1: *const nk_input,
8561        arg2: nk_buttons,
8562        arg3: nk_rect,
8563    ) -> ::std::os::raw::c_int;
8564}
8565extern "C" {
8566    pub fn nk_input_is_mouse_down(
8567        arg1: *const nk_input,
8568        arg2: nk_buttons,
8569    ) -> ::std::os::raw::c_int;
8570}
8571extern "C" {
8572    pub fn nk_input_is_mouse_pressed(
8573        arg1: *const nk_input,
8574        arg2: nk_buttons,
8575    ) -> ::std::os::raw::c_int;
8576}
8577extern "C" {
8578    pub fn nk_input_is_mouse_released(
8579        arg1: *const nk_input,
8580        arg2: nk_buttons,
8581    ) -> ::std::os::raw::c_int;
8582}
8583extern "C" {
8584    pub fn nk_input_is_key_pressed(
8585        arg1: *const nk_input,
8586        arg2: nk_keys,
8587    ) -> ::std::os::raw::c_int;
8588}
8589extern "C" {
8590    pub fn nk_input_is_key_released(
8591        arg1: *const nk_input,
8592        arg2: nk_keys,
8593    ) -> ::std::os::raw::c_int;
8594}
8595extern "C" {
8596    pub fn nk_input_is_key_down(
8597        arg1: *const nk_input,
8598        arg2: nk_keys,
8599    ) -> ::std::os::raw::c_int;
8600}
8601pub type nk_draw_index = nk_ushort;
8602pub const nk_draw_list_stroke_NK_STROKE_OPEN: nk_draw_list_stroke = 0;
8603pub const nk_draw_list_stroke_NK_STROKE_CLOSED: nk_draw_list_stroke = 1;
8604pub type nk_draw_list_stroke = u32;
8605pub const nk_draw_vertex_layout_attribute_NK_VERTEX_POSITION:
8606    nk_draw_vertex_layout_attribute = 0;
8607pub const nk_draw_vertex_layout_attribute_NK_VERTEX_COLOR:
8608    nk_draw_vertex_layout_attribute = 1;
8609pub const nk_draw_vertex_layout_attribute_NK_VERTEX_TEXCOORD:
8610    nk_draw_vertex_layout_attribute = 2;
8611pub const nk_draw_vertex_layout_attribute_NK_VERTEX_ATTRIBUTE_COUNT:
8612    nk_draw_vertex_layout_attribute = 3;
8613pub type nk_draw_vertex_layout_attribute = u32;
8614pub const nk_draw_vertex_layout_format_NK_FORMAT_SCHAR:
8615    nk_draw_vertex_layout_format = 0;
8616pub const nk_draw_vertex_layout_format_NK_FORMAT_SSHORT:
8617    nk_draw_vertex_layout_format = 1;
8618pub const nk_draw_vertex_layout_format_NK_FORMAT_SINT:
8619    nk_draw_vertex_layout_format = 2;
8620pub const nk_draw_vertex_layout_format_NK_FORMAT_UCHAR:
8621    nk_draw_vertex_layout_format = 3;
8622pub const nk_draw_vertex_layout_format_NK_FORMAT_USHORT:
8623    nk_draw_vertex_layout_format = 4;
8624pub const nk_draw_vertex_layout_format_NK_FORMAT_UINT:
8625    nk_draw_vertex_layout_format = 5;
8626pub const nk_draw_vertex_layout_format_NK_FORMAT_FLOAT:
8627    nk_draw_vertex_layout_format = 6;
8628pub const nk_draw_vertex_layout_format_NK_FORMAT_DOUBLE:
8629    nk_draw_vertex_layout_format = 7;
8630pub const nk_draw_vertex_layout_format_NK_FORMAT_COLOR_BEGIN:
8631    nk_draw_vertex_layout_format = 8;
8632pub const nk_draw_vertex_layout_format_NK_FORMAT_R8G8B8:
8633    nk_draw_vertex_layout_format = 8;
8634pub const nk_draw_vertex_layout_format_NK_FORMAT_R16G15B16:
8635    nk_draw_vertex_layout_format = 9;
8636pub const nk_draw_vertex_layout_format_NK_FORMAT_R32G32B32:
8637    nk_draw_vertex_layout_format = 10;
8638pub const nk_draw_vertex_layout_format_NK_FORMAT_R8G8B8A8:
8639    nk_draw_vertex_layout_format = 11;
8640pub const nk_draw_vertex_layout_format_NK_FORMAT_B8G8R8A8:
8641    nk_draw_vertex_layout_format = 12;
8642pub const nk_draw_vertex_layout_format_NK_FORMAT_R16G15B16A16:
8643    nk_draw_vertex_layout_format = 13;
8644pub const nk_draw_vertex_layout_format_NK_FORMAT_R32G32B32A32:
8645    nk_draw_vertex_layout_format = 14;
8646pub const nk_draw_vertex_layout_format_NK_FORMAT_R32G32B32A32_FLOAT:
8647    nk_draw_vertex_layout_format = 15;
8648pub const nk_draw_vertex_layout_format_NK_FORMAT_R32G32B32A32_DOUBLE:
8649    nk_draw_vertex_layout_format = 16;
8650pub const nk_draw_vertex_layout_format_NK_FORMAT_RGB32:
8651    nk_draw_vertex_layout_format = 17;
8652pub const nk_draw_vertex_layout_format_NK_FORMAT_RGBA32:
8653    nk_draw_vertex_layout_format = 18;
8654pub const nk_draw_vertex_layout_format_NK_FORMAT_COLOR_END:
8655    nk_draw_vertex_layout_format = 18;
8656pub const nk_draw_vertex_layout_format_NK_FORMAT_COUNT:
8657    nk_draw_vertex_layout_format = 19;
8658pub type nk_draw_vertex_layout_format = u32;
8659#[repr(C)]
8660#[derive(Debug, Copy, Clone)]
8661pub struct nk_draw_vertex_layout_element {
8662    pub attribute: nk_draw_vertex_layout_attribute,
8663    pub format: nk_draw_vertex_layout_format,
8664    pub offset: nk_size,
8665}
8666#[test]
8667fn bindgen_test_layout_nk_draw_vertex_layout_element() {
8668    assert_eq!(
8669        ::std::mem::size_of::<nk_draw_vertex_layout_element>(),
8670        12usize,
8671        concat!("Size of: ", stringify!(nk_draw_vertex_layout_element))
8672    );
8673    assert_eq!(
8674        ::std::mem::align_of::<nk_draw_vertex_layout_element>(),
8675        4usize,
8676        concat!("Alignment of ", stringify!(nk_draw_vertex_layout_element))
8677    );
8678    assert_eq!(
8679        unsafe {
8680            &(*(::std::ptr::null::<nk_draw_vertex_layout_element>())).attribute
8681                as *const _ as usize
8682        },
8683        0usize,
8684        concat!(
8685            "Offset of field: ",
8686            stringify!(nk_draw_vertex_layout_element),
8687            "::",
8688            stringify!(attribute)
8689        )
8690    );
8691    assert_eq!(
8692        unsafe {
8693            &(*(::std::ptr::null::<nk_draw_vertex_layout_element>())).format
8694                as *const _ as usize
8695        },
8696        4usize,
8697        concat!(
8698            "Offset of field: ",
8699            stringify!(nk_draw_vertex_layout_element),
8700            "::",
8701            stringify!(format)
8702        )
8703    );
8704    assert_eq!(
8705        unsafe {
8706            &(*(::std::ptr::null::<nk_draw_vertex_layout_element>())).offset
8707                as *const _ as usize
8708        },
8709        8usize,
8710        concat!(
8711            "Offset of field: ",
8712            stringify!(nk_draw_vertex_layout_element),
8713            "::",
8714            stringify!(offset)
8715        )
8716    );
8717}
8718impl Default for nk_draw_vertex_layout_element {
8719    fn default() -> Self {
8720        unsafe { ::std::mem::zeroed() }
8721    }
8722}
8723#[repr(C)]
8724#[derive(Copy, Clone)]
8725pub struct nk_draw_command {
8726    pub elem_count: ::std::os::raw::c_uint,
8727    pub clip_rect: nk_rect,
8728    pub texture: nk_handle,
8729    pub userdata: nk_handle,
8730}
8731#[test]
8732fn bindgen_test_layout_nk_draw_command() {
8733    assert_eq!(
8734        ::std::mem::size_of::<nk_draw_command>(),
8735        40usize,
8736        concat!("Size of: ", stringify!(nk_draw_command))
8737    );
8738    assert_eq!(
8739        ::std::mem::align_of::<nk_draw_command>(),
8740        8usize,
8741        concat!("Alignment of ", stringify!(nk_draw_command))
8742    );
8743    assert_eq!(
8744        unsafe {
8745            &(*(::std::ptr::null::<nk_draw_command>())).elem_count as *const _
8746                as usize
8747        },
8748        0usize,
8749        concat!(
8750            "Offset of field: ",
8751            stringify!(nk_draw_command),
8752            "::",
8753            stringify!(elem_count)
8754        )
8755    );
8756    assert_eq!(
8757        unsafe {
8758            &(*(::std::ptr::null::<nk_draw_command>())).clip_rect as *const _
8759                as usize
8760        },
8761        4usize,
8762        concat!(
8763            "Offset of field: ",
8764            stringify!(nk_draw_command),
8765            "::",
8766            stringify!(clip_rect)
8767        )
8768    );
8769    assert_eq!(
8770        unsafe {
8771            &(*(::std::ptr::null::<nk_draw_command>())).texture as *const _
8772                as usize
8773        },
8774        24usize,
8775        concat!(
8776            "Offset of field: ",
8777            stringify!(nk_draw_command),
8778            "::",
8779            stringify!(texture)
8780        )
8781    );
8782    assert_eq!(
8783        unsafe {
8784            &(*(::std::ptr::null::<nk_draw_command>())).userdata as *const _
8785                as usize
8786        },
8787        32usize,
8788        concat!(
8789            "Offset of field: ",
8790            stringify!(nk_draw_command),
8791            "::",
8792            stringify!(userdata)
8793        )
8794    );
8795}
8796impl Default for nk_draw_command {
8797    fn default() -> Self {
8798        unsafe { ::std::mem::zeroed() }
8799    }
8800}
8801#[repr(C)]
8802#[derive(Copy, Clone)]
8803pub struct nk_draw_list {
8804    pub clip_rect: nk_rect,
8805    pub circle_vtx: [nk_vec2; 12usize],
8806    pub config: nk_convert_config,
8807    pub buffer: *mut nk_buffer,
8808    pub vertices: *mut nk_buffer,
8809    pub elements: *mut nk_buffer,
8810    pub element_count: ::std::os::raw::c_uint,
8811    pub vertex_count: ::std::os::raw::c_uint,
8812    pub cmd_count: ::std::os::raw::c_uint,
8813    pub cmd_offset: nk_size,
8814    pub path_count: ::std::os::raw::c_uint,
8815    pub path_offset: ::std::os::raw::c_uint,
8816    pub line_AA: nk_anti_aliasing,
8817    pub shape_AA: nk_anti_aliasing,
8818    pub userdata: nk_handle,
8819}
8820#[test]
8821fn bindgen_test_layout_nk_draw_list() {
8822    assert_eq!(
8823        ::std::mem::size_of::<nk_draw_list>(),
8824        232usize,
8825        concat!("Size of: ", stringify!(nk_draw_list))
8826    );
8827    assert_eq!(
8828        ::std::mem::align_of::<nk_draw_list>(),
8829        8usize,
8830        concat!("Alignment of ", stringify!(nk_draw_list))
8831    );
8832    assert_eq!(
8833        unsafe {
8834            &(*(::std::ptr::null::<nk_draw_list>())).clip_rect as *const _
8835                as usize
8836        },
8837        0usize,
8838        concat!(
8839            "Offset of field: ",
8840            stringify!(nk_draw_list),
8841            "::",
8842            stringify!(clip_rect)
8843        )
8844    );
8845    assert_eq!(
8846        unsafe {
8847            &(*(::std::ptr::null::<nk_draw_list>())).circle_vtx as *const _
8848                as usize
8849        },
8850        16usize,
8851        concat!(
8852            "Offset of field: ",
8853            stringify!(nk_draw_list),
8854            "::",
8855            stringify!(circle_vtx)
8856        )
8857    );
8858    assert_eq!(
8859        unsafe {
8860            &(*(::std::ptr::null::<nk_draw_list>())).config as *const _ as usize
8861        },
8862        112usize,
8863        concat!(
8864            "Offset of field: ",
8865            stringify!(nk_draw_list),
8866            "::",
8867            stringify!(config)
8868        )
8869    );
8870    assert_eq!(
8871        unsafe {
8872            &(*(::std::ptr::null::<nk_draw_list>())).buffer as *const _ as usize
8873        },
8874        168usize,
8875        concat!(
8876            "Offset of field: ",
8877            stringify!(nk_draw_list),
8878            "::",
8879            stringify!(buffer)
8880        )
8881    );
8882    assert_eq!(
8883        unsafe {
8884            &(*(::std::ptr::null::<nk_draw_list>())).vertices as *const _
8885                as usize
8886        },
8887        176usize,
8888        concat!(
8889            "Offset of field: ",
8890            stringify!(nk_draw_list),
8891            "::",
8892            stringify!(vertices)
8893        )
8894    );
8895    assert_eq!(
8896        unsafe {
8897            &(*(::std::ptr::null::<nk_draw_list>())).elements as *const _
8898                as usize
8899        },
8900        184usize,
8901        concat!(
8902            "Offset of field: ",
8903            stringify!(nk_draw_list),
8904            "::",
8905            stringify!(elements)
8906        )
8907    );
8908    assert_eq!(
8909        unsafe {
8910            &(*(::std::ptr::null::<nk_draw_list>())).element_count as *const _
8911                as usize
8912        },
8913        192usize,
8914        concat!(
8915            "Offset of field: ",
8916            stringify!(nk_draw_list),
8917            "::",
8918            stringify!(element_count)
8919        )
8920    );
8921    assert_eq!(
8922        unsafe {
8923            &(*(::std::ptr::null::<nk_draw_list>())).vertex_count as *const _
8924                as usize
8925        },
8926        196usize,
8927        concat!(
8928            "Offset of field: ",
8929            stringify!(nk_draw_list),
8930            "::",
8931            stringify!(vertex_count)
8932        )
8933    );
8934    assert_eq!(
8935        unsafe {
8936            &(*(::std::ptr::null::<nk_draw_list>())).cmd_count as *const _
8937                as usize
8938        },
8939        200usize,
8940        concat!(
8941            "Offset of field: ",
8942            stringify!(nk_draw_list),
8943            "::",
8944            stringify!(cmd_count)
8945        )
8946    );
8947    assert_eq!(
8948        unsafe {
8949            &(*(::std::ptr::null::<nk_draw_list>())).cmd_offset as *const _
8950                as usize
8951        },
8952        204usize,
8953        concat!(
8954            "Offset of field: ",
8955            stringify!(nk_draw_list),
8956            "::",
8957            stringify!(cmd_offset)
8958        )
8959    );
8960    assert_eq!(
8961        unsafe {
8962            &(*(::std::ptr::null::<nk_draw_list>())).path_count as *const _
8963                as usize
8964        },
8965        208usize,
8966        concat!(
8967            "Offset of field: ",
8968            stringify!(nk_draw_list),
8969            "::",
8970            stringify!(path_count)
8971        )
8972    );
8973    assert_eq!(
8974        unsafe {
8975            &(*(::std::ptr::null::<nk_draw_list>())).path_offset as *const _
8976                as usize
8977        },
8978        212usize,
8979        concat!(
8980            "Offset of field: ",
8981            stringify!(nk_draw_list),
8982            "::",
8983            stringify!(path_offset)
8984        )
8985    );
8986    assert_eq!(
8987        unsafe {
8988            &(*(::std::ptr::null::<nk_draw_list>())).line_AA as *const _
8989                as usize
8990        },
8991        216usize,
8992        concat!(
8993            "Offset of field: ",
8994            stringify!(nk_draw_list),
8995            "::",
8996            stringify!(line_AA)
8997        )
8998    );
8999    assert_eq!(
9000        unsafe {
9001            &(*(::std::ptr::null::<nk_draw_list>())).shape_AA as *const _
9002                as usize
9003        },
9004        220usize,
9005        concat!(
9006            "Offset of field: ",
9007            stringify!(nk_draw_list),
9008            "::",
9009            stringify!(shape_AA)
9010        )
9011    );
9012    assert_eq!(
9013        unsafe {
9014            &(*(::std::ptr::null::<nk_draw_list>())).userdata as *const _
9015                as usize
9016        },
9017        224usize,
9018        concat!(
9019            "Offset of field: ",
9020            stringify!(nk_draw_list),
9021            "::",
9022            stringify!(userdata)
9023        )
9024    );
9025}
9026impl Default for nk_draw_list {
9027    fn default() -> Self {
9028        unsafe { ::std::mem::zeroed() }
9029    }
9030}
9031extern "C" {
9032    pub fn nk_draw_list_init(arg1: *mut nk_draw_list);
9033}
9034extern "C" {
9035    pub fn nk_draw_list_setup(
9036        arg1: *mut nk_draw_list,
9037        arg2: *const nk_convert_config,
9038        cmds: *mut nk_buffer,
9039        vertices: *mut nk_buffer,
9040        elements: *mut nk_buffer,
9041        line_aa: nk_anti_aliasing,
9042        shape_aa: nk_anti_aliasing,
9043    );
9044}
9045extern "C" {
9046    pub fn nk__draw_list_begin(
9047        arg1: *const nk_draw_list,
9048        arg2: *const nk_buffer,
9049    ) -> *const nk_draw_command;
9050}
9051extern "C" {
9052    pub fn nk__draw_list_next(
9053        arg1: *const nk_draw_command,
9054        arg2: *const nk_buffer,
9055        arg3: *const nk_draw_list,
9056    ) -> *const nk_draw_command;
9057}
9058extern "C" {
9059    pub fn nk__draw_list_end(
9060        arg1: *const nk_draw_list,
9061        arg2: *const nk_buffer,
9062    ) -> *const nk_draw_command;
9063}
9064extern "C" {
9065    pub fn nk_draw_list_path_clear(arg1: *mut nk_draw_list);
9066}
9067extern "C" {
9068    pub fn nk_draw_list_path_line_to(arg1: *mut nk_draw_list, pos: nk_vec2);
9069}
9070extern "C" {
9071    pub fn nk_draw_list_path_arc_to_fast(
9072        arg1: *mut nk_draw_list,
9073        center: nk_vec2,
9074        radius: f32,
9075        a_min: ::std::os::raw::c_int,
9076        a_max: ::std::os::raw::c_int,
9077    );
9078}
9079extern "C" {
9080    pub fn nk_draw_list_path_arc_to(
9081        arg1: *mut nk_draw_list,
9082        center: nk_vec2,
9083        radius: f32,
9084        a_min: f32,
9085        a_max: f32,
9086        segments: ::std::os::raw::c_uint,
9087    );
9088}
9089extern "C" {
9090    pub fn nk_draw_list_path_rect_to(
9091        arg1: *mut nk_draw_list,
9092        a: nk_vec2,
9093        b: nk_vec2,
9094        rounding: f32,
9095    );
9096}
9097extern "C" {
9098    pub fn nk_draw_list_path_curve_to(
9099        arg1: *mut nk_draw_list,
9100        p2: nk_vec2,
9101        p3: nk_vec2,
9102        p4: nk_vec2,
9103        num_segments: ::std::os::raw::c_uint,
9104    );
9105}
9106extern "C" {
9107    pub fn nk_draw_list_path_fill(arg1: *mut nk_draw_list, arg2: nk_color);
9108}
9109extern "C" {
9110    pub fn nk_draw_list_path_stroke(
9111        arg1: *mut nk_draw_list,
9112        arg2: nk_color,
9113        closed: nk_draw_list_stroke,
9114        thickness: f32,
9115    );
9116}
9117extern "C" {
9118    pub fn nk_draw_list_stroke_line(
9119        arg1: *mut nk_draw_list,
9120        a: nk_vec2,
9121        b: nk_vec2,
9122        arg2: nk_color,
9123        thickness: f32,
9124    );
9125}
9126extern "C" {
9127    pub fn nk_draw_list_stroke_rect(
9128        arg1: *mut nk_draw_list,
9129        rect: nk_rect,
9130        arg2: nk_color,
9131        rounding: f32,
9132        thickness: f32,
9133    );
9134}
9135extern "C" {
9136    pub fn nk_draw_list_stroke_triangle(
9137        arg1: *mut nk_draw_list,
9138        a: nk_vec2,
9139        b: nk_vec2,
9140        c: nk_vec2,
9141        arg2: nk_color,
9142        thickness: f32,
9143    );
9144}
9145extern "C" {
9146    pub fn nk_draw_list_stroke_circle(
9147        arg1: *mut nk_draw_list,
9148        center: nk_vec2,
9149        radius: f32,
9150        arg2: nk_color,
9151        segs: ::std::os::raw::c_uint,
9152        thickness: f32,
9153    );
9154}
9155extern "C" {
9156    pub fn nk_draw_list_stroke_curve(
9157        arg1: *mut nk_draw_list,
9158        p0: nk_vec2,
9159        cp0: nk_vec2,
9160        cp1: nk_vec2,
9161        p1: nk_vec2,
9162        arg2: nk_color,
9163        segments: ::std::os::raw::c_uint,
9164        thickness: f32,
9165    );
9166}
9167extern "C" {
9168    pub fn nk_draw_list_stroke_poly_line(
9169        arg1: *mut nk_draw_list,
9170        pnts: *const nk_vec2,
9171        cnt: ::std::os::raw::c_uint,
9172        arg2: nk_color,
9173        arg3: nk_draw_list_stroke,
9174        thickness: f32,
9175        arg4: nk_anti_aliasing,
9176    );
9177}
9178extern "C" {
9179    pub fn nk_draw_list_fill_rect(
9180        arg1: *mut nk_draw_list,
9181        rect: nk_rect,
9182        arg2: nk_color,
9183        rounding: f32,
9184    );
9185}
9186extern "C" {
9187    pub fn nk_draw_list_fill_rect_multi_color(
9188        arg1: *mut nk_draw_list,
9189        rect: nk_rect,
9190        left: nk_color,
9191        top: nk_color,
9192        right: nk_color,
9193        bottom: nk_color,
9194    );
9195}
9196extern "C" {
9197    pub fn nk_draw_list_fill_triangle(
9198        arg1: *mut nk_draw_list,
9199        a: nk_vec2,
9200        b: nk_vec2,
9201        c: nk_vec2,
9202        arg2: nk_color,
9203    );
9204}
9205extern "C" {
9206    pub fn nk_draw_list_fill_circle(
9207        arg1: *mut nk_draw_list,
9208        center: nk_vec2,
9209        radius: f32,
9210        col: nk_color,
9211        segs: ::std::os::raw::c_uint,
9212    );
9213}
9214extern "C" {
9215    pub fn nk_draw_list_fill_poly_convex(
9216        arg1: *mut nk_draw_list,
9217        points: *const nk_vec2,
9218        count: ::std::os::raw::c_uint,
9219        arg2: nk_color,
9220        arg3: nk_anti_aliasing,
9221    );
9222}
9223extern "C" {
9224    pub fn nk_draw_list_add_image(
9225        arg1: *mut nk_draw_list,
9226        texture: nk_image,
9227        rect: nk_rect,
9228        arg2: nk_color,
9229    );
9230}
9231extern "C" {
9232    pub fn nk_draw_list_add_text(
9233        arg1: *mut nk_draw_list,
9234        arg2: *const nk_user_font,
9235        arg3: nk_rect,
9236        text: *const ::std::os::raw::c_char,
9237        len: ::std::os::raw::c_int,
9238        font_height: f32,
9239        arg4: nk_color,
9240    );
9241}
9242extern "C" {
9243    pub fn nk_draw_list_push_userdata(
9244        arg1: *mut nk_draw_list,
9245        userdata: nk_handle,
9246    );
9247}
9248pub const nk_style_item_type_NK_STYLE_ITEM_COLOR: nk_style_item_type = 0;
9249pub const nk_style_item_type_NK_STYLE_ITEM_IMAGE: nk_style_item_type = 1;
9250pub type nk_style_item_type = u32;
9251#[repr(C)]
9252#[derive(Copy, Clone)]
9253pub union nk_style_item_data {
9254    pub image: nk_image,
9255    pub color: nk_color,
9256    _bindgen_union_align: [BindgenAlign; 3usize],
9257}
9258#[test]
9259fn bindgen_test_layout_nk_style_item_data() {
9260    assert_eq!(
9261        ::std::mem::size_of::<nk_style_item_data>(),
9262        24usize,
9263        concat!("Size of: ", stringify!(nk_style_item_data))
9264    );
9265    assert_eq!(
9266        ::std::mem::align_of::<nk_style_item_data>(),
9267        8usize,
9268        concat!("Alignment of ", stringify!(nk_style_item_data))
9269    );
9270    assert_eq!(
9271        unsafe {
9272            &(*(::std::ptr::null::<nk_style_item_data>())).image as *const _
9273                as usize
9274        },
9275        0usize,
9276        concat!(
9277            "Offset of field: ",
9278            stringify!(nk_style_item_data),
9279            "::",
9280            stringify!(image)
9281        )
9282    );
9283    assert_eq!(
9284        unsafe {
9285            &(*(::std::ptr::null::<nk_style_item_data>())).color as *const _
9286                as usize
9287        },
9288        0usize,
9289        concat!(
9290            "Offset of field: ",
9291            stringify!(nk_style_item_data),
9292            "::",
9293            stringify!(color)
9294        )
9295    );
9296}
9297impl Default for nk_style_item_data {
9298    fn default() -> Self {
9299        unsafe { ::std::mem::zeroed() }
9300    }
9301}
9302#[repr(C)]
9303#[derive(Copy, Clone)]
9304pub struct nk_style_item {
9305    pub type_: nk_style_item_type,
9306    pub data: nk_style_item_data,
9307}
9308#[test]
9309fn bindgen_test_layout_nk_style_item() {
9310    assert_eq!(
9311        ::std::mem::size_of::<nk_style_item>(),
9312        32usize,
9313        concat!("Size of: ", stringify!(nk_style_item))
9314    );
9315    assert_eq!(
9316        ::std::mem::align_of::<nk_style_item>(),
9317        8usize,
9318        concat!("Alignment of ", stringify!(nk_style_item))
9319    );
9320    assert_eq!(
9321        unsafe {
9322            &(*(::std::ptr::null::<nk_style_item>())).type_ as *const _ as usize
9323        },
9324        0usize,
9325        concat!(
9326            "Offset of field: ",
9327            stringify!(nk_style_item),
9328            "::",
9329            stringify!(type_)
9330        )
9331    );
9332    assert_eq!(
9333        unsafe {
9334            &(*(::std::ptr::null::<nk_style_item>())).data as *const _ as usize
9335        },
9336        8usize,
9337        concat!(
9338            "Offset of field: ",
9339            stringify!(nk_style_item),
9340            "::",
9341            stringify!(data)
9342        )
9343    );
9344}
9345impl Default for nk_style_item {
9346    fn default() -> Self {
9347        unsafe { ::std::mem::zeroed() }
9348    }
9349}
9350#[repr(C)]
9351#[derive(Debug, Default, Copy, Clone)]
9352pub struct nk_style_text {
9353    pub color: nk_color,
9354    pub padding: nk_vec2,
9355}
9356#[test]
9357fn bindgen_test_layout_nk_style_text() {
9358    assert_eq!(
9359        ::std::mem::size_of::<nk_style_text>(),
9360        12usize,
9361        concat!("Size of: ", stringify!(nk_style_text))
9362    );
9363    assert_eq!(
9364        ::std::mem::align_of::<nk_style_text>(),
9365        4usize,
9366        concat!("Alignment of ", stringify!(nk_style_text))
9367    );
9368    assert_eq!(
9369        unsafe {
9370            &(*(::std::ptr::null::<nk_style_text>())).color as *const _ as usize
9371        },
9372        0usize,
9373        concat!(
9374            "Offset of field: ",
9375            stringify!(nk_style_text),
9376            "::",
9377            stringify!(color)
9378        )
9379    );
9380    assert_eq!(
9381        unsafe {
9382            &(*(::std::ptr::null::<nk_style_text>())).padding as *const _
9383                as usize
9384        },
9385        4usize,
9386        concat!(
9387            "Offset of field: ",
9388            stringify!(nk_style_text),
9389            "::",
9390            stringify!(padding)
9391        )
9392    );
9393}
9394#[repr(C)]
9395#[derive(Copy, Clone)]
9396pub struct nk_style_button {
9397    pub normal: nk_style_item,
9398    pub hover: nk_style_item,
9399    pub active: nk_style_item,
9400    pub border_color: nk_color,
9401    pub text_background: nk_color,
9402    pub text_normal: nk_color,
9403    pub text_hover: nk_color,
9404    pub text_active: nk_color,
9405    pub text_alignment: nk_flags,
9406    pub border: f32,
9407    pub rounding: f32,
9408    pub padding: nk_vec2,
9409    pub image_padding: nk_vec2,
9410    pub touch_padding: nk_vec2,
9411    pub userdata: nk_handle,
9412    pub draw_begin: ::std::option::Option<
9413        unsafe extern "C" fn(arg1: *mut nk_command_buffer, userdata: nk_handle),
9414    >,
9415    pub draw_end: ::std::option::Option<
9416        unsafe extern "C" fn(arg1: *mut nk_command_buffer, userdata: nk_handle),
9417    >,
9418}
9419#[test]
9420fn bindgen_test_layout_nk_style_button() {
9421    assert_eq!(
9422        ::std::mem::size_of::<nk_style_button>(),
9423        176usize,
9424        concat!("Size of: ", stringify!(nk_style_button))
9425    );
9426    assert_eq!(
9427        ::std::mem::align_of::<nk_style_button>(),
9428        8usize,
9429        concat!("Alignment of ", stringify!(nk_style_button))
9430    );
9431    assert_eq!(
9432        unsafe {
9433            &(*(::std::ptr::null::<nk_style_button>())).normal as *const _
9434                as usize
9435        },
9436        0usize,
9437        concat!(
9438            "Offset of field: ",
9439            stringify!(nk_style_button),
9440            "::",
9441            stringify!(normal)
9442        )
9443    );
9444    assert_eq!(
9445        unsafe {
9446            &(*(::std::ptr::null::<nk_style_button>())).hover as *const _
9447                as usize
9448        },
9449        32usize,
9450        concat!(
9451            "Offset of field: ",
9452            stringify!(nk_style_button),
9453            "::",
9454            stringify!(hover)
9455        )
9456    );
9457    assert_eq!(
9458        unsafe {
9459            &(*(::std::ptr::null::<nk_style_button>())).active as *const _
9460                as usize
9461        },
9462        64usize,
9463        concat!(
9464            "Offset of field: ",
9465            stringify!(nk_style_button),
9466            "::",
9467            stringify!(active)
9468        )
9469    );
9470    assert_eq!(
9471        unsafe {
9472            &(*(::std::ptr::null::<nk_style_button>())).border_color as *const _
9473                as usize
9474        },
9475        96usize,
9476        concat!(
9477            "Offset of field: ",
9478            stringify!(nk_style_button),
9479            "::",
9480            stringify!(border_color)
9481        )
9482    );
9483    assert_eq!(
9484        unsafe {
9485            &(*(::std::ptr::null::<nk_style_button>())).text_background
9486                as *const _ as usize
9487        },
9488        100usize,
9489        concat!(
9490            "Offset of field: ",
9491            stringify!(nk_style_button),
9492            "::",
9493            stringify!(text_background)
9494        )
9495    );
9496    assert_eq!(
9497        unsafe {
9498            &(*(::std::ptr::null::<nk_style_button>())).text_normal as *const _
9499                as usize
9500        },
9501        104usize,
9502        concat!(
9503            "Offset of field: ",
9504            stringify!(nk_style_button),
9505            "::",
9506            stringify!(text_normal)
9507        )
9508    );
9509    assert_eq!(
9510        unsafe {
9511            &(*(::std::ptr::null::<nk_style_button>())).text_hover as *const _
9512                as usize
9513        },
9514        108usize,
9515        concat!(
9516            "Offset of field: ",
9517            stringify!(nk_style_button),
9518            "::",
9519            stringify!(text_hover)
9520        )
9521    );
9522    assert_eq!(
9523        unsafe {
9524            &(*(::std::ptr::null::<nk_style_button>())).text_active as *const _
9525                as usize
9526        },
9527        112usize,
9528        concat!(
9529            "Offset of field: ",
9530            stringify!(nk_style_button),
9531            "::",
9532            stringify!(text_active)
9533        )
9534    );
9535    assert_eq!(
9536        unsafe {
9537            &(*(::std::ptr::null::<nk_style_button>())).text_alignment
9538                as *const _ as usize
9539        },
9540        116usize,
9541        concat!(
9542            "Offset of field: ",
9543            stringify!(nk_style_button),
9544            "::",
9545            stringify!(text_alignment)
9546        )
9547    );
9548    assert_eq!(
9549        unsafe {
9550            &(*(::std::ptr::null::<nk_style_button>())).border as *const _
9551                as usize
9552        },
9553        120usize,
9554        concat!(
9555            "Offset of field: ",
9556            stringify!(nk_style_button),
9557            "::",
9558            stringify!(border)
9559        )
9560    );
9561    assert_eq!(
9562        unsafe {
9563            &(*(::std::ptr::null::<nk_style_button>())).rounding as *const _
9564                as usize
9565        },
9566        124usize,
9567        concat!(
9568            "Offset of field: ",
9569            stringify!(nk_style_button),
9570            "::",
9571            stringify!(rounding)
9572        )
9573    );
9574    assert_eq!(
9575        unsafe {
9576            &(*(::std::ptr::null::<nk_style_button>())).padding as *const _
9577                as usize
9578        },
9579        128usize,
9580        concat!(
9581            "Offset of field: ",
9582            stringify!(nk_style_button),
9583            "::",
9584            stringify!(padding)
9585        )
9586    );
9587    assert_eq!(
9588        unsafe {
9589            &(*(::std::ptr::null::<nk_style_button>())).image_padding
9590                as *const _ as usize
9591        },
9592        136usize,
9593        concat!(
9594            "Offset of field: ",
9595            stringify!(nk_style_button),
9596            "::",
9597            stringify!(image_padding)
9598        )
9599    );
9600    assert_eq!(
9601        unsafe {
9602            &(*(::std::ptr::null::<nk_style_button>())).touch_padding
9603                as *const _ as usize
9604        },
9605        144usize,
9606        concat!(
9607            "Offset of field: ",
9608            stringify!(nk_style_button),
9609            "::",
9610            stringify!(touch_padding)
9611        )
9612    );
9613    assert_eq!(
9614        unsafe {
9615            &(*(::std::ptr::null::<nk_style_button>())).userdata as *const _
9616                as usize
9617        },
9618        152usize,
9619        concat!(
9620            "Offset of field: ",
9621            stringify!(nk_style_button),
9622            "::",
9623            stringify!(userdata)
9624        )
9625    );
9626    assert_eq!(
9627        unsafe {
9628            &(*(::std::ptr::null::<nk_style_button>())).draw_begin as *const _
9629                as usize
9630        },
9631        160usize,
9632        concat!(
9633            "Offset of field: ",
9634            stringify!(nk_style_button),
9635            "::",
9636            stringify!(draw_begin)
9637        )
9638    );
9639    assert_eq!(
9640        unsafe {
9641            &(*(::std::ptr::null::<nk_style_button>())).draw_end as *const _
9642                as usize
9643        },
9644        168usize,
9645        concat!(
9646            "Offset of field: ",
9647            stringify!(nk_style_button),
9648            "::",
9649            stringify!(draw_end)
9650        )
9651    );
9652}
9653impl Default for nk_style_button {
9654    fn default() -> Self {
9655        unsafe { ::std::mem::zeroed() }
9656    }
9657}
9658#[repr(C)]
9659#[derive(Copy, Clone)]
9660pub struct nk_style_toggle {
9661    pub normal: nk_style_item,
9662    pub hover: nk_style_item,
9663    pub active: nk_style_item,
9664    pub border_color: nk_color,
9665    pub cursor_normal: nk_style_item,
9666    pub cursor_hover: nk_style_item,
9667    pub text_normal: nk_color,
9668    pub text_hover: nk_color,
9669    pub text_active: nk_color,
9670    pub text_background: nk_color,
9671    pub text_alignment: nk_flags,
9672    pub padding: nk_vec2,
9673    pub touch_padding: nk_vec2,
9674    pub spacing: f32,
9675    pub border: f32,
9676    pub userdata: nk_handle,
9677    pub draw_begin: ::std::option::Option<
9678        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
9679    >,
9680    pub draw_end: ::std::option::Option<
9681        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
9682    >,
9683}
9684#[test]
9685fn bindgen_test_layout_nk_style_toggle() {
9686    assert_eq!(
9687        ::std::mem::size_of::<nk_style_toggle>(),
9688        240usize,
9689        concat!("Size of: ", stringify!(nk_style_toggle))
9690    );
9691    assert_eq!(
9692        ::std::mem::align_of::<nk_style_toggle>(),
9693        8usize,
9694        concat!("Alignment of ", stringify!(nk_style_toggle))
9695    );
9696    assert_eq!(
9697        unsafe {
9698            &(*(::std::ptr::null::<nk_style_toggle>())).normal as *const _
9699                as usize
9700        },
9701        0usize,
9702        concat!(
9703            "Offset of field: ",
9704            stringify!(nk_style_toggle),
9705            "::",
9706            stringify!(normal)
9707        )
9708    );
9709    assert_eq!(
9710        unsafe {
9711            &(*(::std::ptr::null::<nk_style_toggle>())).hover as *const _
9712                as usize
9713        },
9714        32usize,
9715        concat!(
9716            "Offset of field: ",
9717            stringify!(nk_style_toggle),
9718            "::",
9719            stringify!(hover)
9720        )
9721    );
9722    assert_eq!(
9723        unsafe {
9724            &(*(::std::ptr::null::<nk_style_toggle>())).active as *const _
9725                as usize
9726        },
9727        64usize,
9728        concat!(
9729            "Offset of field: ",
9730            stringify!(nk_style_toggle),
9731            "::",
9732            stringify!(active)
9733        )
9734    );
9735    assert_eq!(
9736        unsafe {
9737            &(*(::std::ptr::null::<nk_style_toggle>())).border_color as *const _
9738                as usize
9739        },
9740        96usize,
9741        concat!(
9742            "Offset of field: ",
9743            stringify!(nk_style_toggle),
9744            "::",
9745            stringify!(border_color)
9746        )
9747    );
9748    assert_eq!(
9749        unsafe {
9750            &(*(::std::ptr::null::<nk_style_toggle>())).cursor_normal
9751                as *const _ as usize
9752        },
9753        104usize,
9754        concat!(
9755            "Offset of field: ",
9756            stringify!(nk_style_toggle),
9757            "::",
9758            stringify!(cursor_normal)
9759        )
9760    );
9761    assert_eq!(
9762        unsafe {
9763            &(*(::std::ptr::null::<nk_style_toggle>())).cursor_hover as *const _
9764                as usize
9765        },
9766        136usize,
9767        concat!(
9768            "Offset of field: ",
9769            stringify!(nk_style_toggle),
9770            "::",
9771            stringify!(cursor_hover)
9772        )
9773    );
9774    assert_eq!(
9775        unsafe {
9776            &(*(::std::ptr::null::<nk_style_toggle>())).text_normal as *const _
9777                as usize
9778        },
9779        168usize,
9780        concat!(
9781            "Offset of field: ",
9782            stringify!(nk_style_toggle),
9783            "::",
9784            stringify!(text_normal)
9785        )
9786    );
9787    assert_eq!(
9788        unsafe {
9789            &(*(::std::ptr::null::<nk_style_toggle>())).text_hover as *const _
9790                as usize
9791        },
9792        172usize,
9793        concat!(
9794            "Offset of field: ",
9795            stringify!(nk_style_toggle),
9796            "::",
9797            stringify!(text_hover)
9798        )
9799    );
9800    assert_eq!(
9801        unsafe {
9802            &(*(::std::ptr::null::<nk_style_toggle>())).text_active as *const _
9803                as usize
9804        },
9805        176usize,
9806        concat!(
9807            "Offset of field: ",
9808            stringify!(nk_style_toggle),
9809            "::",
9810            stringify!(text_active)
9811        )
9812    );
9813    assert_eq!(
9814        unsafe {
9815            &(*(::std::ptr::null::<nk_style_toggle>())).text_background
9816                as *const _ as usize
9817        },
9818        180usize,
9819        concat!(
9820            "Offset of field: ",
9821            stringify!(nk_style_toggle),
9822            "::",
9823            stringify!(text_background)
9824        )
9825    );
9826    assert_eq!(
9827        unsafe {
9828            &(*(::std::ptr::null::<nk_style_toggle>())).text_alignment
9829                as *const _ as usize
9830        },
9831        184usize,
9832        concat!(
9833            "Offset of field: ",
9834            stringify!(nk_style_toggle),
9835            "::",
9836            stringify!(text_alignment)
9837        )
9838    );
9839    assert_eq!(
9840        unsafe {
9841            &(*(::std::ptr::null::<nk_style_toggle>())).padding as *const _
9842                as usize
9843        },
9844        188usize,
9845        concat!(
9846            "Offset of field: ",
9847            stringify!(nk_style_toggle),
9848            "::",
9849            stringify!(padding)
9850        )
9851    );
9852    assert_eq!(
9853        unsafe {
9854            &(*(::std::ptr::null::<nk_style_toggle>())).touch_padding
9855                as *const _ as usize
9856        },
9857        196usize,
9858        concat!(
9859            "Offset of field: ",
9860            stringify!(nk_style_toggle),
9861            "::",
9862            stringify!(touch_padding)
9863        )
9864    );
9865    assert_eq!(
9866        unsafe {
9867            &(*(::std::ptr::null::<nk_style_toggle>())).spacing as *const _
9868                as usize
9869        },
9870        204usize,
9871        concat!(
9872            "Offset of field: ",
9873            stringify!(nk_style_toggle),
9874            "::",
9875            stringify!(spacing)
9876        )
9877    );
9878    assert_eq!(
9879        unsafe {
9880            &(*(::std::ptr::null::<nk_style_toggle>())).border as *const _
9881                as usize
9882        },
9883        208usize,
9884        concat!(
9885            "Offset of field: ",
9886            stringify!(nk_style_toggle),
9887            "::",
9888            stringify!(border)
9889        )
9890    );
9891    assert_eq!(
9892        unsafe {
9893            &(*(::std::ptr::null::<nk_style_toggle>())).userdata as *const _
9894                as usize
9895        },
9896        216usize,
9897        concat!(
9898            "Offset of field: ",
9899            stringify!(nk_style_toggle),
9900            "::",
9901            stringify!(userdata)
9902        )
9903    );
9904    assert_eq!(
9905        unsafe {
9906            &(*(::std::ptr::null::<nk_style_toggle>())).draw_begin as *const _
9907                as usize
9908        },
9909        224usize,
9910        concat!(
9911            "Offset of field: ",
9912            stringify!(nk_style_toggle),
9913            "::",
9914            stringify!(draw_begin)
9915        )
9916    );
9917    assert_eq!(
9918        unsafe {
9919            &(*(::std::ptr::null::<nk_style_toggle>())).draw_end as *const _
9920                as usize
9921        },
9922        232usize,
9923        concat!(
9924            "Offset of field: ",
9925            stringify!(nk_style_toggle),
9926            "::",
9927            stringify!(draw_end)
9928        )
9929    );
9930}
9931impl Default for nk_style_toggle {
9932    fn default() -> Self {
9933        unsafe { ::std::mem::zeroed() }
9934    }
9935}
9936#[repr(C)]
9937#[derive(Copy, Clone)]
9938pub struct nk_style_selectable {
9939    pub normal: nk_style_item,
9940    pub hover: nk_style_item,
9941    pub pressed: nk_style_item,
9942    pub normal_active: nk_style_item,
9943    pub hover_active: nk_style_item,
9944    pub pressed_active: nk_style_item,
9945    pub text_normal: nk_color,
9946    pub text_hover: nk_color,
9947    pub text_pressed: nk_color,
9948    pub text_normal_active: nk_color,
9949    pub text_hover_active: nk_color,
9950    pub text_pressed_active: nk_color,
9951    pub text_background: nk_color,
9952    pub text_alignment: nk_flags,
9953    pub rounding: f32,
9954    pub padding: nk_vec2,
9955    pub touch_padding: nk_vec2,
9956    pub image_padding: nk_vec2,
9957    pub userdata: nk_handle,
9958    pub draw_begin: ::std::option::Option<
9959        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
9960    >,
9961    pub draw_end: ::std::option::Option<
9962        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
9963    >,
9964}
9965#[test]
9966fn bindgen_test_layout_nk_style_selectable() {
9967    assert_eq!(
9968        ::std::mem::size_of::<nk_style_selectable>(),
9969        280usize,
9970        concat!("Size of: ", stringify!(nk_style_selectable))
9971    );
9972    assert_eq!(
9973        ::std::mem::align_of::<nk_style_selectable>(),
9974        8usize,
9975        concat!("Alignment of ", stringify!(nk_style_selectable))
9976    );
9977    assert_eq!(
9978        unsafe {
9979            &(*(::std::ptr::null::<nk_style_selectable>())).normal as *const _
9980                as usize
9981        },
9982        0usize,
9983        concat!(
9984            "Offset of field: ",
9985            stringify!(nk_style_selectable),
9986            "::",
9987            stringify!(normal)
9988        )
9989    );
9990    assert_eq!(
9991        unsafe {
9992            &(*(::std::ptr::null::<nk_style_selectable>())).hover as *const _
9993                as usize
9994        },
9995        32usize,
9996        concat!(
9997            "Offset of field: ",
9998            stringify!(nk_style_selectable),
9999            "::",
10000            stringify!(hover)
10001        )
10002    );
10003    assert_eq!(
10004        unsafe {
10005            &(*(::std::ptr::null::<nk_style_selectable>())).pressed as *const _
10006                as usize
10007        },
10008        64usize,
10009        concat!(
10010            "Offset of field: ",
10011            stringify!(nk_style_selectable),
10012            "::",
10013            stringify!(pressed)
10014        )
10015    );
10016    assert_eq!(
10017        unsafe {
10018            &(*(::std::ptr::null::<nk_style_selectable>())).normal_active
10019                as *const _ as usize
10020        },
10021        96usize,
10022        concat!(
10023            "Offset of field: ",
10024            stringify!(nk_style_selectable),
10025            "::",
10026            stringify!(normal_active)
10027        )
10028    );
10029    assert_eq!(
10030        unsafe {
10031            &(*(::std::ptr::null::<nk_style_selectable>())).hover_active
10032                as *const _ as usize
10033        },
10034        128usize,
10035        concat!(
10036            "Offset of field: ",
10037            stringify!(nk_style_selectable),
10038            "::",
10039            stringify!(hover_active)
10040        )
10041    );
10042    assert_eq!(
10043        unsafe {
10044            &(*(::std::ptr::null::<nk_style_selectable>())).pressed_active
10045                as *const _ as usize
10046        },
10047        160usize,
10048        concat!(
10049            "Offset of field: ",
10050            stringify!(nk_style_selectable),
10051            "::",
10052            stringify!(pressed_active)
10053        )
10054    );
10055    assert_eq!(
10056        unsafe {
10057            &(*(::std::ptr::null::<nk_style_selectable>())).text_normal
10058                as *const _ as usize
10059        },
10060        192usize,
10061        concat!(
10062            "Offset of field: ",
10063            stringify!(nk_style_selectable),
10064            "::",
10065            stringify!(text_normal)
10066        )
10067    );
10068    assert_eq!(
10069        unsafe {
10070            &(*(::std::ptr::null::<nk_style_selectable>())).text_hover
10071                as *const _ as usize
10072        },
10073        196usize,
10074        concat!(
10075            "Offset of field: ",
10076            stringify!(nk_style_selectable),
10077            "::",
10078            stringify!(text_hover)
10079        )
10080    );
10081    assert_eq!(
10082        unsafe {
10083            &(*(::std::ptr::null::<nk_style_selectable>())).text_pressed
10084                as *const _ as usize
10085        },
10086        200usize,
10087        concat!(
10088            "Offset of field: ",
10089            stringify!(nk_style_selectable),
10090            "::",
10091            stringify!(text_pressed)
10092        )
10093    );
10094    assert_eq!(
10095        unsafe {
10096            &(*(::std::ptr::null::<nk_style_selectable>())).text_normal_active
10097                as *const _ as usize
10098        },
10099        204usize,
10100        concat!(
10101            "Offset of field: ",
10102            stringify!(nk_style_selectable),
10103            "::",
10104            stringify!(text_normal_active)
10105        )
10106    );
10107    assert_eq!(
10108        unsafe {
10109            &(*(::std::ptr::null::<nk_style_selectable>())).text_hover_active
10110                as *const _ as usize
10111        },
10112        208usize,
10113        concat!(
10114            "Offset of field: ",
10115            stringify!(nk_style_selectable),
10116            "::",
10117            stringify!(text_hover_active)
10118        )
10119    );
10120    assert_eq!(
10121        unsafe {
10122            &(*(::std::ptr::null::<nk_style_selectable>())).text_pressed_active
10123                as *const _ as usize
10124        },
10125        212usize,
10126        concat!(
10127            "Offset of field: ",
10128            stringify!(nk_style_selectable),
10129            "::",
10130            stringify!(text_pressed_active)
10131        )
10132    );
10133    assert_eq!(
10134        unsafe {
10135            &(*(::std::ptr::null::<nk_style_selectable>())).text_background
10136                as *const _ as usize
10137        },
10138        216usize,
10139        concat!(
10140            "Offset of field: ",
10141            stringify!(nk_style_selectable),
10142            "::",
10143            stringify!(text_background)
10144        )
10145    );
10146    assert_eq!(
10147        unsafe {
10148            &(*(::std::ptr::null::<nk_style_selectable>())).text_alignment
10149                as *const _ as usize
10150        },
10151        220usize,
10152        concat!(
10153            "Offset of field: ",
10154            stringify!(nk_style_selectable),
10155            "::",
10156            stringify!(text_alignment)
10157        )
10158    );
10159    assert_eq!(
10160        unsafe {
10161            &(*(::std::ptr::null::<nk_style_selectable>())).rounding as *const _
10162                as usize
10163        },
10164        224usize,
10165        concat!(
10166            "Offset of field: ",
10167            stringify!(nk_style_selectable),
10168            "::",
10169            stringify!(rounding)
10170        )
10171    );
10172    assert_eq!(
10173        unsafe {
10174            &(*(::std::ptr::null::<nk_style_selectable>())).padding as *const _
10175                as usize
10176        },
10177        228usize,
10178        concat!(
10179            "Offset of field: ",
10180            stringify!(nk_style_selectable),
10181            "::",
10182            stringify!(padding)
10183        )
10184    );
10185    assert_eq!(
10186        unsafe {
10187            &(*(::std::ptr::null::<nk_style_selectable>())).touch_padding
10188                as *const _ as usize
10189        },
10190        236usize,
10191        concat!(
10192            "Offset of field: ",
10193            stringify!(nk_style_selectable),
10194            "::",
10195            stringify!(touch_padding)
10196        )
10197    );
10198    assert_eq!(
10199        unsafe {
10200            &(*(::std::ptr::null::<nk_style_selectable>())).image_padding
10201                as *const _ as usize
10202        },
10203        244usize,
10204        concat!(
10205            "Offset of field: ",
10206            stringify!(nk_style_selectable),
10207            "::",
10208            stringify!(image_padding)
10209        )
10210    );
10211    assert_eq!(
10212        unsafe {
10213            &(*(::std::ptr::null::<nk_style_selectable>())).userdata as *const _
10214                as usize
10215        },
10216        256usize,
10217        concat!(
10218            "Offset of field: ",
10219            stringify!(nk_style_selectable),
10220            "::",
10221            stringify!(userdata)
10222        )
10223    );
10224    assert_eq!(
10225        unsafe {
10226            &(*(::std::ptr::null::<nk_style_selectable>())).draw_begin
10227                as *const _ as usize
10228        },
10229        264usize,
10230        concat!(
10231            "Offset of field: ",
10232            stringify!(nk_style_selectable),
10233            "::",
10234            stringify!(draw_begin)
10235        )
10236    );
10237    assert_eq!(
10238        unsafe {
10239            &(*(::std::ptr::null::<nk_style_selectable>())).draw_end as *const _
10240                as usize
10241        },
10242        272usize,
10243        concat!(
10244            "Offset of field: ",
10245            stringify!(nk_style_selectable),
10246            "::",
10247            stringify!(draw_end)
10248        )
10249    );
10250}
10251impl Default for nk_style_selectable {
10252    fn default() -> Self {
10253        unsafe { ::std::mem::zeroed() }
10254    }
10255}
10256#[repr(C)]
10257#[derive(Copy, Clone)]
10258pub struct nk_style_slider {
10259    pub normal: nk_style_item,
10260    pub hover: nk_style_item,
10261    pub active: nk_style_item,
10262    pub border_color: nk_color,
10263    pub bar_normal: nk_color,
10264    pub bar_hover: nk_color,
10265    pub bar_active: nk_color,
10266    pub bar_filled: nk_color,
10267    pub cursor_normal: nk_style_item,
10268    pub cursor_hover: nk_style_item,
10269    pub cursor_active: nk_style_item,
10270    pub border: f32,
10271    pub rounding: f32,
10272    pub bar_height: f32,
10273    pub padding: nk_vec2,
10274    pub spacing: nk_vec2,
10275    pub cursor_size: nk_vec2,
10276    pub show_buttons: ::std::os::raw::c_int,
10277    pub inc_button: nk_style_button,
10278    pub dec_button: nk_style_button,
10279    pub inc_symbol: nk_symbol_type,
10280    pub dec_symbol: nk_symbol_type,
10281    pub userdata: nk_handle,
10282    pub draw_begin: ::std::option::Option<
10283        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
10284    >,
10285    pub draw_end: ::std::option::Option<
10286        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
10287    >,
10288}
10289#[test]
10290fn bindgen_test_layout_nk_style_slider() {
10291    assert_eq!(
10292        ::std::mem::size_of::<nk_style_slider>(),
10293        640usize,
10294        concat!("Size of: ", stringify!(nk_style_slider))
10295    );
10296    assert_eq!(
10297        ::std::mem::align_of::<nk_style_slider>(),
10298        8usize,
10299        concat!("Alignment of ", stringify!(nk_style_slider))
10300    );
10301    assert_eq!(
10302        unsafe {
10303            &(*(::std::ptr::null::<nk_style_slider>())).normal as *const _
10304                as usize
10305        },
10306        0usize,
10307        concat!(
10308            "Offset of field: ",
10309            stringify!(nk_style_slider),
10310            "::",
10311            stringify!(normal)
10312        )
10313    );
10314    assert_eq!(
10315        unsafe {
10316            &(*(::std::ptr::null::<nk_style_slider>())).hover as *const _
10317                as usize
10318        },
10319        32usize,
10320        concat!(
10321            "Offset of field: ",
10322            stringify!(nk_style_slider),
10323            "::",
10324            stringify!(hover)
10325        )
10326    );
10327    assert_eq!(
10328        unsafe {
10329            &(*(::std::ptr::null::<nk_style_slider>())).active as *const _
10330                as usize
10331        },
10332        64usize,
10333        concat!(
10334            "Offset of field: ",
10335            stringify!(nk_style_slider),
10336            "::",
10337            stringify!(active)
10338        )
10339    );
10340    assert_eq!(
10341        unsafe {
10342            &(*(::std::ptr::null::<nk_style_slider>())).border_color as *const _
10343                as usize
10344        },
10345        96usize,
10346        concat!(
10347            "Offset of field: ",
10348            stringify!(nk_style_slider),
10349            "::",
10350            stringify!(border_color)
10351        )
10352    );
10353    assert_eq!(
10354        unsafe {
10355            &(*(::std::ptr::null::<nk_style_slider>())).bar_normal as *const _
10356                as usize
10357        },
10358        100usize,
10359        concat!(
10360            "Offset of field: ",
10361            stringify!(nk_style_slider),
10362            "::",
10363            stringify!(bar_normal)
10364        )
10365    );
10366    assert_eq!(
10367        unsafe {
10368            &(*(::std::ptr::null::<nk_style_slider>())).bar_hover as *const _
10369                as usize
10370        },
10371        104usize,
10372        concat!(
10373            "Offset of field: ",
10374            stringify!(nk_style_slider),
10375            "::",
10376            stringify!(bar_hover)
10377        )
10378    );
10379    assert_eq!(
10380        unsafe {
10381            &(*(::std::ptr::null::<nk_style_slider>())).bar_active as *const _
10382                as usize
10383        },
10384        108usize,
10385        concat!(
10386            "Offset of field: ",
10387            stringify!(nk_style_slider),
10388            "::",
10389            stringify!(bar_active)
10390        )
10391    );
10392    assert_eq!(
10393        unsafe {
10394            &(*(::std::ptr::null::<nk_style_slider>())).bar_filled as *const _
10395                as usize
10396        },
10397        112usize,
10398        concat!(
10399            "Offset of field: ",
10400            stringify!(nk_style_slider),
10401            "::",
10402            stringify!(bar_filled)
10403        )
10404    );
10405    assert_eq!(
10406        unsafe {
10407            &(*(::std::ptr::null::<nk_style_slider>())).cursor_normal
10408                as *const _ as usize
10409        },
10410        120usize,
10411        concat!(
10412            "Offset of field: ",
10413            stringify!(nk_style_slider),
10414            "::",
10415            stringify!(cursor_normal)
10416        )
10417    );
10418    assert_eq!(
10419        unsafe {
10420            &(*(::std::ptr::null::<nk_style_slider>())).cursor_hover as *const _
10421                as usize
10422        },
10423        152usize,
10424        concat!(
10425            "Offset of field: ",
10426            stringify!(nk_style_slider),
10427            "::",
10428            stringify!(cursor_hover)
10429        )
10430    );
10431    assert_eq!(
10432        unsafe {
10433            &(*(::std::ptr::null::<nk_style_slider>())).cursor_active
10434                as *const _ as usize
10435        },
10436        184usize,
10437        concat!(
10438            "Offset of field: ",
10439            stringify!(nk_style_slider),
10440            "::",
10441            stringify!(cursor_active)
10442        )
10443    );
10444    assert_eq!(
10445        unsafe {
10446            &(*(::std::ptr::null::<nk_style_slider>())).border as *const _
10447                as usize
10448        },
10449        216usize,
10450        concat!(
10451            "Offset of field: ",
10452            stringify!(nk_style_slider),
10453            "::",
10454            stringify!(border)
10455        )
10456    );
10457    assert_eq!(
10458        unsafe {
10459            &(*(::std::ptr::null::<nk_style_slider>())).rounding as *const _
10460                as usize
10461        },
10462        220usize,
10463        concat!(
10464            "Offset of field: ",
10465            stringify!(nk_style_slider),
10466            "::",
10467            stringify!(rounding)
10468        )
10469    );
10470    assert_eq!(
10471        unsafe {
10472            &(*(::std::ptr::null::<nk_style_slider>())).bar_height as *const _
10473                as usize
10474        },
10475        224usize,
10476        concat!(
10477            "Offset of field: ",
10478            stringify!(nk_style_slider),
10479            "::",
10480            stringify!(bar_height)
10481        )
10482    );
10483    assert_eq!(
10484        unsafe {
10485            &(*(::std::ptr::null::<nk_style_slider>())).padding as *const _
10486                as usize
10487        },
10488        228usize,
10489        concat!(
10490            "Offset of field: ",
10491            stringify!(nk_style_slider),
10492            "::",
10493            stringify!(padding)
10494        )
10495    );
10496    assert_eq!(
10497        unsafe {
10498            &(*(::std::ptr::null::<nk_style_slider>())).spacing as *const _
10499                as usize
10500        },
10501        236usize,
10502        concat!(
10503            "Offset of field: ",
10504            stringify!(nk_style_slider),
10505            "::",
10506            stringify!(spacing)
10507        )
10508    );
10509    assert_eq!(
10510        unsafe {
10511            &(*(::std::ptr::null::<nk_style_slider>())).cursor_size as *const _
10512                as usize
10513        },
10514        244usize,
10515        concat!(
10516            "Offset of field: ",
10517            stringify!(nk_style_slider),
10518            "::",
10519            stringify!(cursor_size)
10520        )
10521    );
10522    assert_eq!(
10523        unsafe {
10524            &(*(::std::ptr::null::<nk_style_slider>())).show_buttons as *const _
10525                as usize
10526        },
10527        252usize,
10528        concat!(
10529            "Offset of field: ",
10530            stringify!(nk_style_slider),
10531            "::",
10532            stringify!(show_buttons)
10533        )
10534    );
10535    assert_eq!(
10536        unsafe {
10537            &(*(::std::ptr::null::<nk_style_slider>())).inc_button as *const _
10538                as usize
10539        },
10540        256usize,
10541        concat!(
10542            "Offset of field: ",
10543            stringify!(nk_style_slider),
10544            "::",
10545            stringify!(inc_button)
10546        )
10547    );
10548    assert_eq!(
10549        unsafe {
10550            &(*(::std::ptr::null::<nk_style_slider>())).dec_button as *const _
10551                as usize
10552        },
10553        432usize,
10554        concat!(
10555            "Offset of field: ",
10556            stringify!(nk_style_slider),
10557            "::",
10558            stringify!(dec_button)
10559        )
10560    );
10561    assert_eq!(
10562        unsafe {
10563            &(*(::std::ptr::null::<nk_style_slider>())).inc_symbol as *const _
10564                as usize
10565        },
10566        608usize,
10567        concat!(
10568            "Offset of field: ",
10569            stringify!(nk_style_slider),
10570            "::",
10571            stringify!(inc_symbol)
10572        )
10573    );
10574    assert_eq!(
10575        unsafe {
10576            &(*(::std::ptr::null::<nk_style_slider>())).dec_symbol as *const _
10577                as usize
10578        },
10579        612usize,
10580        concat!(
10581            "Offset of field: ",
10582            stringify!(nk_style_slider),
10583            "::",
10584            stringify!(dec_symbol)
10585        )
10586    );
10587    assert_eq!(
10588        unsafe {
10589            &(*(::std::ptr::null::<nk_style_slider>())).userdata as *const _
10590                as usize
10591        },
10592        616usize,
10593        concat!(
10594            "Offset of field: ",
10595            stringify!(nk_style_slider),
10596            "::",
10597            stringify!(userdata)
10598        )
10599    );
10600    assert_eq!(
10601        unsafe {
10602            &(*(::std::ptr::null::<nk_style_slider>())).draw_begin as *const _
10603                as usize
10604        },
10605        624usize,
10606        concat!(
10607            "Offset of field: ",
10608            stringify!(nk_style_slider),
10609            "::",
10610            stringify!(draw_begin)
10611        )
10612    );
10613    assert_eq!(
10614        unsafe {
10615            &(*(::std::ptr::null::<nk_style_slider>())).draw_end as *const _
10616                as usize
10617        },
10618        632usize,
10619        concat!(
10620            "Offset of field: ",
10621            stringify!(nk_style_slider),
10622            "::",
10623            stringify!(draw_end)
10624        )
10625    );
10626}
10627impl Default for nk_style_slider {
10628    fn default() -> Self {
10629        unsafe { ::std::mem::zeroed() }
10630    }
10631}
10632#[repr(C)]
10633#[derive(Copy, Clone)]
10634pub struct nk_style_progress {
10635    pub normal: nk_style_item,
10636    pub hover: nk_style_item,
10637    pub active: nk_style_item,
10638    pub border_color: nk_color,
10639    pub cursor_normal: nk_style_item,
10640    pub cursor_hover: nk_style_item,
10641    pub cursor_active: nk_style_item,
10642    pub cursor_border_color: nk_color,
10643    pub rounding: f32,
10644    pub border: f32,
10645    pub cursor_border: f32,
10646    pub cursor_rounding: f32,
10647    pub padding: nk_vec2,
10648    pub userdata: nk_handle,
10649    pub draw_begin: ::std::option::Option<
10650        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
10651    >,
10652    pub draw_end: ::std::option::Option<
10653        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
10654    >,
10655}
10656#[test]
10657fn bindgen_test_layout_nk_style_progress() {
10658    assert_eq!(
10659        ::std::mem::size_of::<nk_style_progress>(),
10660        256usize,
10661        concat!("Size of: ", stringify!(nk_style_progress))
10662    );
10663    assert_eq!(
10664        ::std::mem::align_of::<nk_style_progress>(),
10665        8usize,
10666        concat!("Alignment of ", stringify!(nk_style_progress))
10667    );
10668    assert_eq!(
10669        unsafe {
10670            &(*(::std::ptr::null::<nk_style_progress>())).normal as *const _
10671                as usize
10672        },
10673        0usize,
10674        concat!(
10675            "Offset of field: ",
10676            stringify!(nk_style_progress),
10677            "::",
10678            stringify!(normal)
10679        )
10680    );
10681    assert_eq!(
10682        unsafe {
10683            &(*(::std::ptr::null::<nk_style_progress>())).hover as *const _
10684                as usize
10685        },
10686        32usize,
10687        concat!(
10688            "Offset of field: ",
10689            stringify!(nk_style_progress),
10690            "::",
10691            stringify!(hover)
10692        )
10693    );
10694    assert_eq!(
10695        unsafe {
10696            &(*(::std::ptr::null::<nk_style_progress>())).active as *const _
10697                as usize
10698        },
10699        64usize,
10700        concat!(
10701            "Offset of field: ",
10702            stringify!(nk_style_progress),
10703            "::",
10704            stringify!(active)
10705        )
10706    );
10707    assert_eq!(
10708        unsafe {
10709            &(*(::std::ptr::null::<nk_style_progress>())).border_color
10710                as *const _ as usize
10711        },
10712        96usize,
10713        concat!(
10714            "Offset of field: ",
10715            stringify!(nk_style_progress),
10716            "::",
10717            stringify!(border_color)
10718        )
10719    );
10720    assert_eq!(
10721        unsafe {
10722            &(*(::std::ptr::null::<nk_style_progress>())).cursor_normal
10723                as *const _ as usize
10724        },
10725        104usize,
10726        concat!(
10727            "Offset of field: ",
10728            stringify!(nk_style_progress),
10729            "::",
10730            stringify!(cursor_normal)
10731        )
10732    );
10733    assert_eq!(
10734        unsafe {
10735            &(*(::std::ptr::null::<nk_style_progress>())).cursor_hover
10736                as *const _ as usize
10737        },
10738        136usize,
10739        concat!(
10740            "Offset of field: ",
10741            stringify!(nk_style_progress),
10742            "::",
10743            stringify!(cursor_hover)
10744        )
10745    );
10746    assert_eq!(
10747        unsafe {
10748            &(*(::std::ptr::null::<nk_style_progress>())).cursor_active
10749                as *const _ as usize
10750        },
10751        168usize,
10752        concat!(
10753            "Offset of field: ",
10754            stringify!(nk_style_progress),
10755            "::",
10756            stringify!(cursor_active)
10757        )
10758    );
10759    assert_eq!(
10760        unsafe {
10761            &(*(::std::ptr::null::<nk_style_progress>())).cursor_border_color
10762                as *const _ as usize
10763        },
10764        200usize,
10765        concat!(
10766            "Offset of field: ",
10767            stringify!(nk_style_progress),
10768            "::",
10769            stringify!(cursor_border_color)
10770        )
10771    );
10772    assert_eq!(
10773        unsafe {
10774            &(*(::std::ptr::null::<nk_style_progress>())).rounding as *const _
10775                as usize
10776        },
10777        204usize,
10778        concat!(
10779            "Offset of field: ",
10780            stringify!(nk_style_progress),
10781            "::",
10782            stringify!(rounding)
10783        )
10784    );
10785    assert_eq!(
10786        unsafe {
10787            &(*(::std::ptr::null::<nk_style_progress>())).border as *const _
10788                as usize
10789        },
10790        208usize,
10791        concat!(
10792            "Offset of field: ",
10793            stringify!(nk_style_progress),
10794            "::",
10795            stringify!(border)
10796        )
10797    );
10798    assert_eq!(
10799        unsafe {
10800            &(*(::std::ptr::null::<nk_style_progress>())).cursor_border
10801                as *const _ as usize
10802        },
10803        212usize,
10804        concat!(
10805            "Offset of field: ",
10806            stringify!(nk_style_progress),
10807            "::",
10808            stringify!(cursor_border)
10809        )
10810    );
10811    assert_eq!(
10812        unsafe {
10813            &(*(::std::ptr::null::<nk_style_progress>())).cursor_rounding
10814                as *const _ as usize
10815        },
10816        216usize,
10817        concat!(
10818            "Offset of field: ",
10819            stringify!(nk_style_progress),
10820            "::",
10821            stringify!(cursor_rounding)
10822        )
10823    );
10824    assert_eq!(
10825        unsafe {
10826            &(*(::std::ptr::null::<nk_style_progress>())).padding as *const _
10827                as usize
10828        },
10829        220usize,
10830        concat!(
10831            "Offset of field: ",
10832            stringify!(nk_style_progress),
10833            "::",
10834            stringify!(padding)
10835        )
10836    );
10837    assert_eq!(
10838        unsafe {
10839            &(*(::std::ptr::null::<nk_style_progress>())).userdata as *const _
10840                as usize
10841        },
10842        232usize,
10843        concat!(
10844            "Offset of field: ",
10845            stringify!(nk_style_progress),
10846            "::",
10847            stringify!(userdata)
10848        )
10849    );
10850    assert_eq!(
10851        unsafe {
10852            &(*(::std::ptr::null::<nk_style_progress>())).draw_begin as *const _
10853                as usize
10854        },
10855        240usize,
10856        concat!(
10857            "Offset of field: ",
10858            stringify!(nk_style_progress),
10859            "::",
10860            stringify!(draw_begin)
10861        )
10862    );
10863    assert_eq!(
10864        unsafe {
10865            &(*(::std::ptr::null::<nk_style_progress>())).draw_end as *const _
10866                as usize
10867        },
10868        248usize,
10869        concat!(
10870            "Offset of field: ",
10871            stringify!(nk_style_progress),
10872            "::",
10873            stringify!(draw_end)
10874        )
10875    );
10876}
10877impl Default for nk_style_progress {
10878    fn default() -> Self {
10879        unsafe { ::std::mem::zeroed() }
10880    }
10881}
10882#[repr(C)]
10883#[derive(Copy, Clone)]
10884pub struct nk_style_scrollbar {
10885    pub normal: nk_style_item,
10886    pub hover: nk_style_item,
10887    pub active: nk_style_item,
10888    pub border_color: nk_color,
10889    pub cursor_normal: nk_style_item,
10890    pub cursor_hover: nk_style_item,
10891    pub cursor_active: nk_style_item,
10892    pub cursor_border_color: nk_color,
10893    pub border: f32,
10894    pub rounding: f32,
10895    pub border_cursor: f32,
10896    pub rounding_cursor: f32,
10897    pub padding: nk_vec2,
10898    pub show_buttons: ::std::os::raw::c_int,
10899    pub inc_button: nk_style_button,
10900    pub dec_button: nk_style_button,
10901    pub inc_symbol: nk_symbol_type,
10902    pub dec_symbol: nk_symbol_type,
10903    pub userdata: nk_handle,
10904    pub draw_begin: ::std::option::Option<
10905        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
10906    >,
10907    pub draw_end: ::std::option::Option<
10908        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
10909    >,
10910}
10911#[test]
10912fn bindgen_test_layout_nk_style_scrollbar() {
10913    assert_eq!(
10914        ::std::mem::size_of::<nk_style_scrollbar>(),
10915        616usize,
10916        concat!("Size of: ", stringify!(nk_style_scrollbar))
10917    );
10918    assert_eq!(
10919        ::std::mem::align_of::<nk_style_scrollbar>(),
10920        8usize,
10921        concat!("Alignment of ", stringify!(nk_style_scrollbar))
10922    );
10923    assert_eq!(
10924        unsafe {
10925            &(*(::std::ptr::null::<nk_style_scrollbar>())).normal as *const _
10926                as usize
10927        },
10928        0usize,
10929        concat!(
10930            "Offset of field: ",
10931            stringify!(nk_style_scrollbar),
10932            "::",
10933            stringify!(normal)
10934        )
10935    );
10936    assert_eq!(
10937        unsafe {
10938            &(*(::std::ptr::null::<nk_style_scrollbar>())).hover as *const _
10939                as usize
10940        },
10941        32usize,
10942        concat!(
10943            "Offset of field: ",
10944            stringify!(nk_style_scrollbar),
10945            "::",
10946            stringify!(hover)
10947        )
10948    );
10949    assert_eq!(
10950        unsafe {
10951            &(*(::std::ptr::null::<nk_style_scrollbar>())).active as *const _
10952                as usize
10953        },
10954        64usize,
10955        concat!(
10956            "Offset of field: ",
10957            stringify!(nk_style_scrollbar),
10958            "::",
10959            stringify!(active)
10960        )
10961    );
10962    assert_eq!(
10963        unsafe {
10964            &(*(::std::ptr::null::<nk_style_scrollbar>())).border_color
10965                as *const _ as usize
10966        },
10967        96usize,
10968        concat!(
10969            "Offset of field: ",
10970            stringify!(nk_style_scrollbar),
10971            "::",
10972            stringify!(border_color)
10973        )
10974    );
10975    assert_eq!(
10976        unsafe {
10977            &(*(::std::ptr::null::<nk_style_scrollbar>())).cursor_normal
10978                as *const _ as usize
10979        },
10980        104usize,
10981        concat!(
10982            "Offset of field: ",
10983            stringify!(nk_style_scrollbar),
10984            "::",
10985            stringify!(cursor_normal)
10986        )
10987    );
10988    assert_eq!(
10989        unsafe {
10990            &(*(::std::ptr::null::<nk_style_scrollbar>())).cursor_hover
10991                as *const _ as usize
10992        },
10993        136usize,
10994        concat!(
10995            "Offset of field: ",
10996            stringify!(nk_style_scrollbar),
10997            "::",
10998            stringify!(cursor_hover)
10999        )
11000    );
11001    assert_eq!(
11002        unsafe {
11003            &(*(::std::ptr::null::<nk_style_scrollbar>())).cursor_active
11004                as *const _ as usize
11005        },
11006        168usize,
11007        concat!(
11008            "Offset of field: ",
11009            stringify!(nk_style_scrollbar),
11010            "::",
11011            stringify!(cursor_active)
11012        )
11013    );
11014    assert_eq!(
11015        unsafe {
11016            &(*(::std::ptr::null::<nk_style_scrollbar>())).cursor_border_color
11017                as *const _ as usize
11018        },
11019        200usize,
11020        concat!(
11021            "Offset of field: ",
11022            stringify!(nk_style_scrollbar),
11023            "::",
11024            stringify!(cursor_border_color)
11025        )
11026    );
11027    assert_eq!(
11028        unsafe {
11029            &(*(::std::ptr::null::<nk_style_scrollbar>())).border as *const _
11030                as usize
11031        },
11032        204usize,
11033        concat!(
11034            "Offset of field: ",
11035            stringify!(nk_style_scrollbar),
11036            "::",
11037            stringify!(border)
11038        )
11039    );
11040    assert_eq!(
11041        unsafe {
11042            &(*(::std::ptr::null::<nk_style_scrollbar>())).rounding as *const _
11043                as usize
11044        },
11045        208usize,
11046        concat!(
11047            "Offset of field: ",
11048            stringify!(nk_style_scrollbar),
11049            "::",
11050            stringify!(rounding)
11051        )
11052    );
11053    assert_eq!(
11054        unsafe {
11055            &(*(::std::ptr::null::<nk_style_scrollbar>())).border_cursor
11056                as *const _ as usize
11057        },
11058        212usize,
11059        concat!(
11060            "Offset of field: ",
11061            stringify!(nk_style_scrollbar),
11062            "::",
11063            stringify!(border_cursor)
11064        )
11065    );
11066    assert_eq!(
11067        unsafe {
11068            &(*(::std::ptr::null::<nk_style_scrollbar>())).rounding_cursor
11069                as *const _ as usize
11070        },
11071        216usize,
11072        concat!(
11073            "Offset of field: ",
11074            stringify!(nk_style_scrollbar),
11075            "::",
11076            stringify!(rounding_cursor)
11077        )
11078    );
11079    assert_eq!(
11080        unsafe {
11081            &(*(::std::ptr::null::<nk_style_scrollbar>())).padding as *const _
11082                as usize
11083        },
11084        220usize,
11085        concat!(
11086            "Offset of field: ",
11087            stringify!(nk_style_scrollbar),
11088            "::",
11089            stringify!(padding)
11090        )
11091    );
11092    assert_eq!(
11093        unsafe {
11094            &(*(::std::ptr::null::<nk_style_scrollbar>())).show_buttons
11095                as *const _ as usize
11096        },
11097        228usize,
11098        concat!(
11099            "Offset of field: ",
11100            stringify!(nk_style_scrollbar),
11101            "::",
11102            stringify!(show_buttons)
11103        )
11104    );
11105    assert_eq!(
11106        unsafe {
11107            &(*(::std::ptr::null::<nk_style_scrollbar>())).inc_button
11108                as *const _ as usize
11109        },
11110        232usize,
11111        concat!(
11112            "Offset of field: ",
11113            stringify!(nk_style_scrollbar),
11114            "::",
11115            stringify!(inc_button)
11116        )
11117    );
11118    assert_eq!(
11119        unsafe {
11120            &(*(::std::ptr::null::<nk_style_scrollbar>())).dec_button
11121                as *const _ as usize
11122        },
11123        408usize,
11124        concat!(
11125            "Offset of field: ",
11126            stringify!(nk_style_scrollbar),
11127            "::",
11128            stringify!(dec_button)
11129        )
11130    );
11131    assert_eq!(
11132        unsafe {
11133            &(*(::std::ptr::null::<nk_style_scrollbar>())).inc_symbol
11134                as *const _ as usize
11135        },
11136        584usize,
11137        concat!(
11138            "Offset of field: ",
11139            stringify!(nk_style_scrollbar),
11140            "::",
11141            stringify!(inc_symbol)
11142        )
11143    );
11144    assert_eq!(
11145        unsafe {
11146            &(*(::std::ptr::null::<nk_style_scrollbar>())).dec_symbol
11147                as *const _ as usize
11148        },
11149        588usize,
11150        concat!(
11151            "Offset of field: ",
11152            stringify!(nk_style_scrollbar),
11153            "::",
11154            stringify!(dec_symbol)
11155        )
11156    );
11157    assert_eq!(
11158        unsafe {
11159            &(*(::std::ptr::null::<nk_style_scrollbar>())).userdata as *const _
11160                as usize
11161        },
11162        592usize,
11163        concat!(
11164            "Offset of field: ",
11165            stringify!(nk_style_scrollbar),
11166            "::",
11167            stringify!(userdata)
11168        )
11169    );
11170    assert_eq!(
11171        unsafe {
11172            &(*(::std::ptr::null::<nk_style_scrollbar>())).draw_begin
11173                as *const _ as usize
11174        },
11175        600usize,
11176        concat!(
11177            "Offset of field: ",
11178            stringify!(nk_style_scrollbar),
11179            "::",
11180            stringify!(draw_begin)
11181        )
11182    );
11183    assert_eq!(
11184        unsafe {
11185            &(*(::std::ptr::null::<nk_style_scrollbar>())).draw_end as *const _
11186                as usize
11187        },
11188        608usize,
11189        concat!(
11190            "Offset of field: ",
11191            stringify!(nk_style_scrollbar),
11192            "::",
11193            stringify!(draw_end)
11194        )
11195    );
11196}
11197impl Default for nk_style_scrollbar {
11198    fn default() -> Self {
11199        unsafe { ::std::mem::zeroed() }
11200    }
11201}
11202#[repr(C)]
11203#[derive(Copy, Clone)]
11204pub struct nk_style_edit {
11205    pub normal: nk_style_item,
11206    pub hover: nk_style_item,
11207    pub active: nk_style_item,
11208    pub border_color: nk_color,
11209    pub scrollbar: nk_style_scrollbar,
11210    pub cursor_normal: nk_color,
11211    pub cursor_hover: nk_color,
11212    pub cursor_text_normal: nk_color,
11213    pub cursor_text_hover: nk_color,
11214    pub text_normal: nk_color,
11215    pub text_hover: nk_color,
11216    pub text_active: nk_color,
11217    pub selected_normal: nk_color,
11218    pub selected_hover: nk_color,
11219    pub selected_text_normal: nk_color,
11220    pub selected_text_hover: nk_color,
11221    pub border: f32,
11222    pub rounding: f32,
11223    pub cursor_size: f32,
11224    pub scrollbar_size: nk_vec2,
11225    pub padding: nk_vec2,
11226    pub row_padding: f32,
11227}
11228#[test]
11229fn bindgen_test_layout_nk_style_edit() {
11230    assert_eq!(
11231        ::std::mem::size_of::<nk_style_edit>(),
11232        800usize,
11233        concat!("Size of: ", stringify!(nk_style_edit))
11234    );
11235    assert_eq!(
11236        ::std::mem::align_of::<nk_style_edit>(),
11237        8usize,
11238        concat!("Alignment of ", stringify!(nk_style_edit))
11239    );
11240    assert_eq!(
11241        unsafe {
11242            &(*(::std::ptr::null::<nk_style_edit>())).normal as *const _
11243                as usize
11244        },
11245        0usize,
11246        concat!(
11247            "Offset of field: ",
11248            stringify!(nk_style_edit),
11249            "::",
11250            stringify!(normal)
11251        )
11252    );
11253    assert_eq!(
11254        unsafe {
11255            &(*(::std::ptr::null::<nk_style_edit>())).hover as *const _ as usize
11256        },
11257        32usize,
11258        concat!(
11259            "Offset of field: ",
11260            stringify!(nk_style_edit),
11261            "::",
11262            stringify!(hover)
11263        )
11264    );
11265    assert_eq!(
11266        unsafe {
11267            &(*(::std::ptr::null::<nk_style_edit>())).active as *const _
11268                as usize
11269        },
11270        64usize,
11271        concat!(
11272            "Offset of field: ",
11273            stringify!(nk_style_edit),
11274            "::",
11275            stringify!(active)
11276        )
11277    );
11278    assert_eq!(
11279        unsafe {
11280            &(*(::std::ptr::null::<nk_style_edit>())).border_color as *const _
11281                as usize
11282        },
11283        96usize,
11284        concat!(
11285            "Offset of field: ",
11286            stringify!(nk_style_edit),
11287            "::",
11288            stringify!(border_color)
11289        )
11290    );
11291    assert_eq!(
11292        unsafe {
11293            &(*(::std::ptr::null::<nk_style_edit>())).scrollbar as *const _
11294                as usize
11295        },
11296        104usize,
11297        concat!(
11298            "Offset of field: ",
11299            stringify!(nk_style_edit),
11300            "::",
11301            stringify!(scrollbar)
11302        )
11303    );
11304    assert_eq!(
11305        unsafe {
11306            &(*(::std::ptr::null::<nk_style_edit>())).cursor_normal as *const _
11307                as usize
11308        },
11309        720usize,
11310        concat!(
11311            "Offset of field: ",
11312            stringify!(nk_style_edit),
11313            "::",
11314            stringify!(cursor_normal)
11315        )
11316    );
11317    assert_eq!(
11318        unsafe {
11319            &(*(::std::ptr::null::<nk_style_edit>())).cursor_hover as *const _
11320                as usize
11321        },
11322        724usize,
11323        concat!(
11324            "Offset of field: ",
11325            stringify!(nk_style_edit),
11326            "::",
11327            stringify!(cursor_hover)
11328        )
11329    );
11330    assert_eq!(
11331        unsafe {
11332            &(*(::std::ptr::null::<nk_style_edit>())).cursor_text_normal
11333                as *const _ as usize
11334        },
11335        728usize,
11336        concat!(
11337            "Offset of field: ",
11338            stringify!(nk_style_edit),
11339            "::",
11340            stringify!(cursor_text_normal)
11341        )
11342    );
11343    assert_eq!(
11344        unsafe {
11345            &(*(::std::ptr::null::<nk_style_edit>())).cursor_text_hover
11346                as *const _ as usize
11347        },
11348        732usize,
11349        concat!(
11350            "Offset of field: ",
11351            stringify!(nk_style_edit),
11352            "::",
11353            stringify!(cursor_text_hover)
11354        )
11355    );
11356    assert_eq!(
11357        unsafe {
11358            &(*(::std::ptr::null::<nk_style_edit>())).text_normal as *const _
11359                as usize
11360        },
11361        736usize,
11362        concat!(
11363            "Offset of field: ",
11364            stringify!(nk_style_edit),
11365            "::",
11366            stringify!(text_normal)
11367        )
11368    );
11369    assert_eq!(
11370        unsafe {
11371            &(*(::std::ptr::null::<nk_style_edit>())).text_hover as *const _
11372                as usize
11373        },
11374        740usize,
11375        concat!(
11376            "Offset of field: ",
11377            stringify!(nk_style_edit),
11378            "::",
11379            stringify!(text_hover)
11380        )
11381    );
11382    assert_eq!(
11383        unsafe {
11384            &(*(::std::ptr::null::<nk_style_edit>())).text_active as *const _
11385                as usize
11386        },
11387        744usize,
11388        concat!(
11389            "Offset of field: ",
11390            stringify!(nk_style_edit),
11391            "::",
11392            stringify!(text_active)
11393        )
11394    );
11395    assert_eq!(
11396        unsafe {
11397            &(*(::std::ptr::null::<nk_style_edit>())).selected_normal
11398                as *const _ as usize
11399        },
11400        748usize,
11401        concat!(
11402            "Offset of field: ",
11403            stringify!(nk_style_edit),
11404            "::",
11405            stringify!(selected_normal)
11406        )
11407    );
11408    assert_eq!(
11409        unsafe {
11410            &(*(::std::ptr::null::<nk_style_edit>())).selected_hover as *const _
11411                as usize
11412        },
11413        752usize,
11414        concat!(
11415            "Offset of field: ",
11416            stringify!(nk_style_edit),
11417            "::",
11418            stringify!(selected_hover)
11419        )
11420    );
11421    assert_eq!(
11422        unsafe {
11423            &(*(::std::ptr::null::<nk_style_edit>())).selected_text_normal
11424                as *const _ as usize
11425        },
11426        756usize,
11427        concat!(
11428            "Offset of field: ",
11429            stringify!(nk_style_edit),
11430            "::",
11431            stringify!(selected_text_normal)
11432        )
11433    );
11434    assert_eq!(
11435        unsafe {
11436            &(*(::std::ptr::null::<nk_style_edit>())).selected_text_hover
11437                as *const _ as usize
11438        },
11439        760usize,
11440        concat!(
11441            "Offset of field: ",
11442            stringify!(nk_style_edit),
11443            "::",
11444            stringify!(selected_text_hover)
11445        )
11446    );
11447    assert_eq!(
11448        unsafe {
11449            &(*(::std::ptr::null::<nk_style_edit>())).border as *const _
11450                as usize
11451        },
11452        764usize,
11453        concat!(
11454            "Offset of field: ",
11455            stringify!(nk_style_edit),
11456            "::",
11457            stringify!(border)
11458        )
11459    );
11460    assert_eq!(
11461        unsafe {
11462            &(*(::std::ptr::null::<nk_style_edit>())).rounding as *const _
11463                as usize
11464        },
11465        768usize,
11466        concat!(
11467            "Offset of field: ",
11468            stringify!(nk_style_edit),
11469            "::",
11470            stringify!(rounding)
11471        )
11472    );
11473    assert_eq!(
11474        unsafe {
11475            &(*(::std::ptr::null::<nk_style_edit>())).cursor_size as *const _
11476                as usize
11477        },
11478        772usize,
11479        concat!(
11480            "Offset of field: ",
11481            stringify!(nk_style_edit),
11482            "::",
11483            stringify!(cursor_size)
11484        )
11485    );
11486    assert_eq!(
11487        unsafe {
11488            &(*(::std::ptr::null::<nk_style_edit>())).scrollbar_size as *const _
11489                as usize
11490        },
11491        776usize,
11492        concat!(
11493            "Offset of field: ",
11494            stringify!(nk_style_edit),
11495            "::",
11496            stringify!(scrollbar_size)
11497        )
11498    );
11499    assert_eq!(
11500        unsafe {
11501            &(*(::std::ptr::null::<nk_style_edit>())).padding as *const _
11502                as usize
11503        },
11504        784usize,
11505        concat!(
11506            "Offset of field: ",
11507            stringify!(nk_style_edit),
11508            "::",
11509            stringify!(padding)
11510        )
11511    );
11512    assert_eq!(
11513        unsafe {
11514            &(*(::std::ptr::null::<nk_style_edit>())).row_padding as *const _
11515                as usize
11516        },
11517        792usize,
11518        concat!(
11519            "Offset of field: ",
11520            stringify!(nk_style_edit),
11521            "::",
11522            stringify!(row_padding)
11523        )
11524    );
11525}
11526impl Default for nk_style_edit {
11527    fn default() -> Self {
11528        unsafe { ::std::mem::zeroed() }
11529    }
11530}
11531#[repr(C)]
11532#[derive(Copy, Clone)]
11533pub struct nk_style_property {
11534    pub normal: nk_style_item,
11535    pub hover: nk_style_item,
11536    pub active: nk_style_item,
11537    pub border_color: nk_color,
11538    pub label_normal: nk_color,
11539    pub label_hover: nk_color,
11540    pub label_active: nk_color,
11541    pub sym_left: nk_symbol_type,
11542    pub sym_right: nk_symbol_type,
11543    pub border: f32,
11544    pub rounding: f32,
11545    pub padding: nk_vec2,
11546    pub edit: nk_style_edit,
11547    pub inc_button: nk_style_button,
11548    pub dec_button: nk_style_button,
11549    pub userdata: nk_handle,
11550    pub draw_begin: ::std::option::Option<
11551        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
11552    >,
11553    pub draw_end: ::std::option::Option<
11554        unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle),
11555    >,
11556}
11557#[test]
11558fn bindgen_test_layout_nk_style_property() {
11559    assert_eq!(
11560        ::std::mem::size_of::<nk_style_property>(),
11561        1312usize,
11562        concat!("Size of: ", stringify!(nk_style_property))
11563    );
11564    assert_eq!(
11565        ::std::mem::align_of::<nk_style_property>(),
11566        8usize,
11567        concat!("Alignment of ", stringify!(nk_style_property))
11568    );
11569    assert_eq!(
11570        unsafe {
11571            &(*(::std::ptr::null::<nk_style_property>())).normal as *const _
11572                as usize
11573        },
11574        0usize,
11575        concat!(
11576            "Offset of field: ",
11577            stringify!(nk_style_property),
11578            "::",
11579            stringify!(normal)
11580        )
11581    );
11582    assert_eq!(
11583        unsafe {
11584            &(*(::std::ptr::null::<nk_style_property>())).hover as *const _
11585                as usize
11586        },
11587        32usize,
11588        concat!(
11589            "Offset of field: ",
11590            stringify!(nk_style_property),
11591            "::",
11592            stringify!(hover)
11593        )
11594    );
11595    assert_eq!(
11596        unsafe {
11597            &(*(::std::ptr::null::<nk_style_property>())).active as *const _
11598                as usize
11599        },
11600        64usize,
11601        concat!(
11602            "Offset of field: ",
11603            stringify!(nk_style_property),
11604            "::",
11605            stringify!(active)
11606        )
11607    );
11608    assert_eq!(
11609        unsafe {
11610            &(*(::std::ptr::null::<nk_style_property>())).border_color
11611                as *const _ as usize
11612        },
11613        96usize,
11614        concat!(
11615            "Offset of field: ",
11616            stringify!(nk_style_property),
11617            "::",
11618            stringify!(border_color)
11619        )
11620    );
11621    assert_eq!(
11622        unsafe {
11623            &(*(::std::ptr::null::<nk_style_property>())).label_normal
11624                as *const _ as usize
11625        },
11626        100usize,
11627        concat!(
11628            "Offset of field: ",
11629            stringify!(nk_style_property),
11630            "::",
11631            stringify!(label_normal)
11632        )
11633    );
11634    assert_eq!(
11635        unsafe {
11636            &(*(::std::ptr::null::<nk_style_property>())).label_hover
11637                as *const _ as usize
11638        },
11639        104usize,
11640        concat!(
11641            "Offset of field: ",
11642            stringify!(nk_style_property),
11643            "::",
11644            stringify!(label_hover)
11645        )
11646    );
11647    assert_eq!(
11648        unsafe {
11649            &(*(::std::ptr::null::<nk_style_property>())).label_active
11650                as *const _ as usize
11651        },
11652        108usize,
11653        concat!(
11654            "Offset of field: ",
11655            stringify!(nk_style_property),
11656            "::",
11657            stringify!(label_active)
11658        )
11659    );
11660    assert_eq!(
11661        unsafe {
11662            &(*(::std::ptr::null::<nk_style_property>())).sym_left as *const _
11663                as usize
11664        },
11665        112usize,
11666        concat!(
11667            "Offset of field: ",
11668            stringify!(nk_style_property),
11669            "::",
11670            stringify!(sym_left)
11671        )
11672    );
11673    assert_eq!(
11674        unsafe {
11675            &(*(::std::ptr::null::<nk_style_property>())).sym_right as *const _
11676                as usize
11677        },
11678        116usize,
11679        concat!(
11680            "Offset of field: ",
11681            stringify!(nk_style_property),
11682            "::",
11683            stringify!(sym_right)
11684        )
11685    );
11686    assert_eq!(
11687        unsafe {
11688            &(*(::std::ptr::null::<nk_style_property>())).border as *const _
11689                as usize
11690        },
11691        120usize,
11692        concat!(
11693            "Offset of field: ",
11694            stringify!(nk_style_property),
11695            "::",
11696            stringify!(border)
11697        )
11698    );
11699    assert_eq!(
11700        unsafe {
11701            &(*(::std::ptr::null::<nk_style_property>())).rounding as *const _
11702                as usize
11703        },
11704        124usize,
11705        concat!(
11706            "Offset of field: ",
11707            stringify!(nk_style_property),
11708            "::",
11709            stringify!(rounding)
11710        )
11711    );
11712    assert_eq!(
11713        unsafe {
11714            &(*(::std::ptr::null::<nk_style_property>())).padding as *const _
11715                as usize
11716        },
11717        128usize,
11718        concat!(
11719            "Offset of field: ",
11720            stringify!(nk_style_property),
11721            "::",
11722            stringify!(padding)
11723        )
11724    );
11725    assert_eq!(
11726        unsafe {
11727            &(*(::std::ptr::null::<nk_style_property>())).edit as *const _
11728                as usize
11729        },
11730        136usize,
11731        concat!(
11732            "Offset of field: ",
11733            stringify!(nk_style_property),
11734            "::",
11735            stringify!(edit)
11736        )
11737    );
11738    assert_eq!(
11739        unsafe {
11740            &(*(::std::ptr::null::<nk_style_property>())).inc_button as *const _
11741                as usize
11742        },
11743        936usize,
11744        concat!(
11745            "Offset of field: ",
11746            stringify!(nk_style_property),
11747            "::",
11748            stringify!(inc_button)
11749        )
11750    );
11751    assert_eq!(
11752        unsafe {
11753            &(*(::std::ptr::null::<nk_style_property>())).dec_button as *const _
11754                as usize
11755        },
11756        1112usize,
11757        concat!(
11758            "Offset of field: ",
11759            stringify!(nk_style_property),
11760            "::",
11761            stringify!(dec_button)
11762        )
11763    );
11764    assert_eq!(
11765        unsafe {
11766            &(*(::std::ptr::null::<nk_style_property>())).userdata as *const _
11767                as usize
11768        },
11769        1288usize,
11770        concat!(
11771            "Offset of field: ",
11772            stringify!(nk_style_property),
11773            "::",
11774            stringify!(userdata)
11775        )
11776    );
11777    assert_eq!(
11778        unsafe {
11779            &(*(::std::ptr::null::<nk_style_property>())).draw_begin as *const _
11780                as usize
11781        },
11782        1296usize,
11783        concat!(
11784            "Offset of field: ",
11785            stringify!(nk_style_property),
11786            "::",
11787            stringify!(draw_begin)
11788        )
11789    );
11790    assert_eq!(
11791        unsafe {
11792            &(*(::std::ptr::null::<nk_style_property>())).draw_end as *const _
11793                as usize
11794        },
11795        1304usize,
11796        concat!(
11797            "Offset of field: ",
11798            stringify!(nk_style_property),
11799            "::",
11800            stringify!(draw_end)
11801        )
11802    );
11803}
11804impl Default for nk_style_property {
11805    fn default() -> Self {
11806        unsafe { ::std::mem::zeroed() }
11807    }
11808}
11809#[repr(C)]
11810#[derive(Copy, Clone)]
11811pub struct nk_style_chart {
11812    pub background: nk_style_item,
11813    pub border_color: nk_color,
11814    pub selected_color: nk_color,
11815    pub color: nk_color,
11816    pub border: f32,
11817    pub rounding: f32,
11818    pub padding: nk_vec2,
11819}
11820#[test]
11821fn bindgen_test_layout_nk_style_chart() {
11822    assert_eq!(
11823        ::std::mem::size_of::<nk_style_chart>(),
11824        64usize,
11825        concat!("Size of: ", stringify!(nk_style_chart))
11826    );
11827    assert_eq!(
11828        ::std::mem::align_of::<nk_style_chart>(),
11829        8usize,
11830        concat!("Alignment of ", stringify!(nk_style_chart))
11831    );
11832    assert_eq!(
11833        unsafe {
11834            &(*(::std::ptr::null::<nk_style_chart>())).background as *const _
11835                as usize
11836        },
11837        0usize,
11838        concat!(
11839            "Offset of field: ",
11840            stringify!(nk_style_chart),
11841            "::",
11842            stringify!(background)
11843        )
11844    );
11845    assert_eq!(
11846        unsafe {
11847            &(*(::std::ptr::null::<nk_style_chart>())).border_color as *const _
11848                as usize
11849        },
11850        32usize,
11851        concat!(
11852            "Offset of field: ",
11853            stringify!(nk_style_chart),
11854            "::",
11855            stringify!(border_color)
11856        )
11857    );
11858    assert_eq!(
11859        unsafe {
11860            &(*(::std::ptr::null::<nk_style_chart>())).selected_color
11861                as *const _ as usize
11862        },
11863        36usize,
11864        concat!(
11865            "Offset of field: ",
11866            stringify!(nk_style_chart),
11867            "::",
11868            stringify!(selected_color)
11869        )
11870    );
11871    assert_eq!(
11872        unsafe {
11873            &(*(::std::ptr::null::<nk_style_chart>())).color as *const _
11874                as usize
11875        },
11876        40usize,
11877        concat!(
11878            "Offset of field: ",
11879            stringify!(nk_style_chart),
11880            "::",
11881            stringify!(color)
11882        )
11883    );
11884    assert_eq!(
11885        unsafe {
11886            &(*(::std::ptr::null::<nk_style_chart>())).border as *const _
11887                as usize
11888        },
11889        44usize,
11890        concat!(
11891            "Offset of field: ",
11892            stringify!(nk_style_chart),
11893            "::",
11894            stringify!(border)
11895        )
11896    );
11897    assert_eq!(
11898        unsafe {
11899            &(*(::std::ptr::null::<nk_style_chart>())).rounding as *const _
11900                as usize
11901        },
11902        48usize,
11903        concat!(
11904            "Offset of field: ",
11905            stringify!(nk_style_chart),
11906            "::",
11907            stringify!(rounding)
11908        )
11909    );
11910    assert_eq!(
11911        unsafe {
11912            &(*(::std::ptr::null::<nk_style_chart>())).padding as *const _
11913                as usize
11914        },
11915        52usize,
11916        concat!(
11917            "Offset of field: ",
11918            stringify!(nk_style_chart),
11919            "::",
11920            stringify!(padding)
11921        )
11922    );
11923}
11924impl Default for nk_style_chart {
11925    fn default() -> Self {
11926        unsafe { ::std::mem::zeroed() }
11927    }
11928}
11929#[repr(C)]
11930#[derive(Copy, Clone)]
11931pub struct nk_style_combo {
11932    pub normal: nk_style_item,
11933    pub hover: nk_style_item,
11934    pub active: nk_style_item,
11935    pub border_color: nk_color,
11936    pub label_normal: nk_color,
11937    pub label_hover: nk_color,
11938    pub label_active: nk_color,
11939    pub symbol_normal: nk_color,
11940    pub symbol_hover: nk_color,
11941    pub symbol_active: nk_color,
11942    pub button: nk_style_button,
11943    pub sym_normal: nk_symbol_type,
11944    pub sym_hover: nk_symbol_type,
11945    pub sym_active: nk_symbol_type,
11946    pub border: f32,
11947    pub rounding: f32,
11948    pub content_padding: nk_vec2,
11949    pub button_padding: nk_vec2,
11950    pub spacing: nk_vec2,
11951}
11952#[test]
11953fn bindgen_test_layout_nk_style_combo() {
11954    assert_eq!(
11955        ::std::mem::size_of::<nk_style_combo>(),
11956        352usize,
11957        concat!("Size of: ", stringify!(nk_style_combo))
11958    );
11959    assert_eq!(
11960        ::std::mem::align_of::<nk_style_combo>(),
11961        8usize,
11962        concat!("Alignment of ", stringify!(nk_style_combo))
11963    );
11964    assert_eq!(
11965        unsafe {
11966            &(*(::std::ptr::null::<nk_style_combo>())).normal as *const _
11967                as usize
11968        },
11969        0usize,
11970        concat!(
11971            "Offset of field: ",
11972            stringify!(nk_style_combo),
11973            "::",
11974            stringify!(normal)
11975        )
11976    );
11977    assert_eq!(
11978        unsafe {
11979            &(*(::std::ptr::null::<nk_style_combo>())).hover as *const _
11980                as usize
11981        },
11982        32usize,
11983        concat!(
11984            "Offset of field: ",
11985            stringify!(nk_style_combo),
11986            "::",
11987            stringify!(hover)
11988        )
11989    );
11990    assert_eq!(
11991        unsafe {
11992            &(*(::std::ptr::null::<nk_style_combo>())).active as *const _
11993                as usize
11994        },
11995        64usize,
11996        concat!(
11997            "Offset of field: ",
11998            stringify!(nk_style_combo),
11999            "::",
12000            stringify!(active)
12001        )
12002    );
12003    assert_eq!(
12004        unsafe {
12005            &(*(::std::ptr::null::<nk_style_combo>())).border_color as *const _
12006                as usize
12007        },
12008        96usize,
12009        concat!(
12010            "Offset of field: ",
12011            stringify!(nk_style_combo),
12012            "::",
12013            stringify!(border_color)
12014        )
12015    );
12016    assert_eq!(
12017        unsafe {
12018            &(*(::std::ptr::null::<nk_style_combo>())).label_normal as *const _
12019                as usize
12020        },
12021        100usize,
12022        concat!(
12023            "Offset of field: ",
12024            stringify!(nk_style_combo),
12025            "::",
12026            stringify!(label_normal)
12027        )
12028    );
12029    assert_eq!(
12030        unsafe {
12031            &(*(::std::ptr::null::<nk_style_combo>())).label_hover as *const _
12032                as usize
12033        },
12034        104usize,
12035        concat!(
12036            "Offset of field: ",
12037            stringify!(nk_style_combo),
12038            "::",
12039            stringify!(label_hover)
12040        )
12041    );
12042    assert_eq!(
12043        unsafe {
12044            &(*(::std::ptr::null::<nk_style_combo>())).label_active as *const _
12045                as usize
12046        },
12047        108usize,
12048        concat!(
12049            "Offset of field: ",
12050            stringify!(nk_style_combo),
12051            "::",
12052            stringify!(label_active)
12053        )
12054    );
12055    assert_eq!(
12056        unsafe {
12057            &(*(::std::ptr::null::<nk_style_combo>())).symbol_normal as *const _
12058                as usize
12059        },
12060        112usize,
12061        concat!(
12062            "Offset of field: ",
12063            stringify!(nk_style_combo),
12064            "::",
12065            stringify!(symbol_normal)
12066        )
12067    );
12068    assert_eq!(
12069        unsafe {
12070            &(*(::std::ptr::null::<nk_style_combo>())).symbol_hover as *const _
12071                as usize
12072        },
12073        116usize,
12074        concat!(
12075            "Offset of field: ",
12076            stringify!(nk_style_combo),
12077            "::",
12078            stringify!(symbol_hover)
12079        )
12080    );
12081    assert_eq!(
12082        unsafe {
12083            &(*(::std::ptr::null::<nk_style_combo>())).symbol_active as *const _
12084                as usize
12085        },
12086        120usize,
12087        concat!(
12088            "Offset of field: ",
12089            stringify!(nk_style_combo),
12090            "::",
12091            stringify!(symbol_active)
12092        )
12093    );
12094    assert_eq!(
12095        unsafe {
12096            &(*(::std::ptr::null::<nk_style_combo>())).button as *const _
12097                as usize
12098        },
12099        128usize,
12100        concat!(
12101            "Offset of field: ",
12102            stringify!(nk_style_combo),
12103            "::",
12104            stringify!(button)
12105        )
12106    );
12107    assert_eq!(
12108        unsafe {
12109            &(*(::std::ptr::null::<nk_style_combo>())).sym_normal as *const _
12110                as usize
12111        },
12112        304usize,
12113        concat!(
12114            "Offset of field: ",
12115            stringify!(nk_style_combo),
12116            "::",
12117            stringify!(sym_normal)
12118        )
12119    );
12120    assert_eq!(
12121        unsafe {
12122            &(*(::std::ptr::null::<nk_style_combo>())).sym_hover as *const _
12123                as usize
12124        },
12125        308usize,
12126        concat!(
12127            "Offset of field: ",
12128            stringify!(nk_style_combo),
12129            "::",
12130            stringify!(sym_hover)
12131        )
12132    );
12133    assert_eq!(
12134        unsafe {
12135            &(*(::std::ptr::null::<nk_style_combo>())).sym_active as *const _
12136                as usize
12137        },
12138        312usize,
12139        concat!(
12140            "Offset of field: ",
12141            stringify!(nk_style_combo),
12142            "::",
12143            stringify!(sym_active)
12144        )
12145    );
12146    assert_eq!(
12147        unsafe {
12148            &(*(::std::ptr::null::<nk_style_combo>())).border as *const _
12149                as usize
12150        },
12151        316usize,
12152        concat!(
12153            "Offset of field: ",
12154            stringify!(nk_style_combo),
12155            "::",
12156            stringify!(border)
12157        )
12158    );
12159    assert_eq!(
12160        unsafe {
12161            &(*(::std::ptr::null::<nk_style_combo>())).rounding as *const _
12162                as usize
12163        },
12164        320usize,
12165        concat!(
12166            "Offset of field: ",
12167            stringify!(nk_style_combo),
12168            "::",
12169            stringify!(rounding)
12170        )
12171    );
12172    assert_eq!(
12173        unsafe {
12174            &(*(::std::ptr::null::<nk_style_combo>())).content_padding
12175                as *const _ as usize
12176        },
12177        324usize,
12178        concat!(
12179            "Offset of field: ",
12180            stringify!(nk_style_combo),
12181            "::",
12182            stringify!(content_padding)
12183        )
12184    );
12185    assert_eq!(
12186        unsafe {
12187            &(*(::std::ptr::null::<nk_style_combo>())).button_padding
12188                as *const _ as usize
12189        },
12190        332usize,
12191        concat!(
12192            "Offset of field: ",
12193            stringify!(nk_style_combo),
12194            "::",
12195            stringify!(button_padding)
12196        )
12197    );
12198    assert_eq!(
12199        unsafe {
12200            &(*(::std::ptr::null::<nk_style_combo>())).spacing as *const _
12201                as usize
12202        },
12203        340usize,
12204        concat!(
12205            "Offset of field: ",
12206            stringify!(nk_style_combo),
12207            "::",
12208            stringify!(spacing)
12209        )
12210    );
12211}
12212impl Default for nk_style_combo {
12213    fn default() -> Self {
12214        unsafe { ::std::mem::zeroed() }
12215    }
12216}
12217#[repr(C)]
12218#[derive(Copy, Clone)]
12219pub struct nk_style_tab {
12220    pub background: nk_style_item,
12221    pub border_color: nk_color,
12222    pub text: nk_color,
12223    pub tab_maximize_button: nk_style_button,
12224    pub tab_minimize_button: nk_style_button,
12225    pub node_maximize_button: nk_style_button,
12226    pub node_minimize_button: nk_style_button,
12227    pub sym_minimize: nk_symbol_type,
12228    pub sym_maximize: nk_symbol_type,
12229    pub border: f32,
12230    pub rounding: f32,
12231    pub indent: f32,
12232    pub padding: nk_vec2,
12233    pub spacing: nk_vec2,
12234}
12235#[test]
12236fn bindgen_test_layout_nk_style_tab() {
12237    assert_eq!(
12238        ::std::mem::size_of::<nk_style_tab>(),
12239        784usize,
12240        concat!("Size of: ", stringify!(nk_style_tab))
12241    );
12242    assert_eq!(
12243        ::std::mem::align_of::<nk_style_tab>(),
12244        8usize,
12245        concat!("Alignment of ", stringify!(nk_style_tab))
12246    );
12247    assert_eq!(
12248        unsafe {
12249            &(*(::std::ptr::null::<nk_style_tab>())).background as *const _
12250                as usize
12251        },
12252        0usize,
12253        concat!(
12254            "Offset of field: ",
12255            stringify!(nk_style_tab),
12256            "::",
12257            stringify!(background)
12258        )
12259    );
12260    assert_eq!(
12261        unsafe {
12262            &(*(::std::ptr::null::<nk_style_tab>())).border_color as *const _
12263                as usize
12264        },
12265        32usize,
12266        concat!(
12267            "Offset of field: ",
12268            stringify!(nk_style_tab),
12269            "::",
12270            stringify!(border_color)
12271        )
12272    );
12273    assert_eq!(
12274        unsafe {
12275            &(*(::std::ptr::null::<nk_style_tab>())).text as *const _ as usize
12276        },
12277        36usize,
12278        concat!(
12279            "Offset of field: ",
12280            stringify!(nk_style_tab),
12281            "::",
12282            stringify!(text)
12283        )
12284    );
12285    assert_eq!(
12286        unsafe {
12287            &(*(::std::ptr::null::<nk_style_tab>())).tab_maximize_button
12288                as *const _ as usize
12289        },
12290        40usize,
12291        concat!(
12292            "Offset of field: ",
12293            stringify!(nk_style_tab),
12294            "::",
12295            stringify!(tab_maximize_button)
12296        )
12297    );
12298    assert_eq!(
12299        unsafe {
12300            &(*(::std::ptr::null::<nk_style_tab>())).tab_minimize_button
12301                as *const _ as usize
12302        },
12303        216usize,
12304        concat!(
12305            "Offset of field: ",
12306            stringify!(nk_style_tab),
12307            "::",
12308            stringify!(tab_minimize_button)
12309        )
12310    );
12311    assert_eq!(
12312        unsafe {
12313            &(*(::std::ptr::null::<nk_style_tab>())).node_maximize_button
12314                as *const _ as usize
12315        },
12316        392usize,
12317        concat!(
12318            "Offset of field: ",
12319            stringify!(nk_style_tab),
12320            "::",
12321            stringify!(node_maximize_button)
12322        )
12323    );
12324    assert_eq!(
12325        unsafe {
12326            &(*(::std::ptr::null::<nk_style_tab>())).node_minimize_button
12327                as *const _ as usize
12328        },
12329        568usize,
12330        concat!(
12331            "Offset of field: ",
12332            stringify!(nk_style_tab),
12333            "::",
12334            stringify!(node_minimize_button)
12335        )
12336    );
12337    assert_eq!(
12338        unsafe {
12339            &(*(::std::ptr::null::<nk_style_tab>())).sym_minimize as *const _
12340                as usize
12341        },
12342        744usize,
12343        concat!(
12344            "Offset of field: ",
12345            stringify!(nk_style_tab),
12346            "::",
12347            stringify!(sym_minimize)
12348        )
12349    );
12350    assert_eq!(
12351        unsafe {
12352            &(*(::std::ptr::null::<nk_style_tab>())).sym_maximize as *const _
12353                as usize
12354        },
12355        748usize,
12356        concat!(
12357            "Offset of field: ",
12358            stringify!(nk_style_tab),
12359            "::",
12360            stringify!(sym_maximize)
12361        )
12362    );
12363    assert_eq!(
12364        unsafe {
12365            &(*(::std::ptr::null::<nk_style_tab>())).border as *const _ as usize
12366        },
12367        752usize,
12368        concat!(
12369            "Offset of field: ",
12370            stringify!(nk_style_tab),
12371            "::",
12372            stringify!(border)
12373        )
12374    );
12375    assert_eq!(
12376        unsafe {
12377            &(*(::std::ptr::null::<nk_style_tab>())).rounding as *const _
12378                as usize
12379        },
12380        756usize,
12381        concat!(
12382            "Offset of field: ",
12383            stringify!(nk_style_tab),
12384            "::",
12385            stringify!(rounding)
12386        )
12387    );
12388    assert_eq!(
12389        unsafe {
12390            &(*(::std::ptr::null::<nk_style_tab>())).indent as *const _ as usize
12391        },
12392        760usize,
12393        concat!(
12394            "Offset of field: ",
12395            stringify!(nk_style_tab),
12396            "::",
12397            stringify!(indent)
12398        )
12399    );
12400    assert_eq!(
12401        unsafe {
12402            &(*(::std::ptr::null::<nk_style_tab>())).padding as *const _
12403                as usize
12404        },
12405        764usize,
12406        concat!(
12407            "Offset of field: ",
12408            stringify!(nk_style_tab),
12409            "::",
12410            stringify!(padding)
12411        )
12412    );
12413    assert_eq!(
12414        unsafe {
12415            &(*(::std::ptr::null::<nk_style_tab>())).spacing as *const _
12416                as usize
12417        },
12418        772usize,
12419        concat!(
12420            "Offset of field: ",
12421            stringify!(nk_style_tab),
12422            "::",
12423            stringify!(spacing)
12424        )
12425    );
12426}
12427impl Default for nk_style_tab {
12428    fn default() -> Self {
12429        unsafe { ::std::mem::zeroed() }
12430    }
12431}
12432pub const nk_style_header_align_NK_HEADER_LEFT: nk_style_header_align = 0;
12433pub const nk_style_header_align_NK_HEADER_RIGHT: nk_style_header_align = 1;
12434pub type nk_style_header_align = u32;
12435#[repr(C)]
12436#[derive(Copy, Clone)]
12437pub struct nk_style_window_header {
12438    pub normal: nk_style_item,
12439    pub hover: nk_style_item,
12440    pub active: nk_style_item,
12441    pub close_button: nk_style_button,
12442    pub minimize_button: nk_style_button,
12443    pub close_symbol: nk_symbol_type,
12444    pub minimize_symbol: nk_symbol_type,
12445    pub maximize_symbol: nk_symbol_type,
12446    pub label_normal: nk_color,
12447    pub label_hover: nk_color,
12448    pub label_active: nk_color,
12449    pub align: nk_style_header_align,
12450    pub padding: nk_vec2,
12451    pub label_padding: nk_vec2,
12452    pub spacing: nk_vec2,
12453}
12454#[test]
12455fn bindgen_test_layout_nk_style_window_header() {
12456    assert_eq!(
12457        ::std::mem::size_of::<nk_style_window_header>(),
12458        504usize,
12459        concat!("Size of: ", stringify!(nk_style_window_header))
12460    );
12461    assert_eq!(
12462        ::std::mem::align_of::<nk_style_window_header>(),
12463        8usize,
12464        concat!("Alignment of ", stringify!(nk_style_window_header))
12465    );
12466    assert_eq!(
12467        unsafe {
12468            &(*(::std::ptr::null::<nk_style_window_header>())).normal
12469                as *const _ as usize
12470        },
12471        0usize,
12472        concat!(
12473            "Offset of field: ",
12474            stringify!(nk_style_window_header),
12475            "::",
12476            stringify!(normal)
12477        )
12478    );
12479    assert_eq!(
12480        unsafe {
12481            &(*(::std::ptr::null::<nk_style_window_header>())).hover as *const _
12482                as usize
12483        },
12484        32usize,
12485        concat!(
12486            "Offset of field: ",
12487            stringify!(nk_style_window_header),
12488            "::",
12489            stringify!(hover)
12490        )
12491    );
12492    assert_eq!(
12493        unsafe {
12494            &(*(::std::ptr::null::<nk_style_window_header>())).active
12495                as *const _ as usize
12496        },
12497        64usize,
12498        concat!(
12499            "Offset of field: ",
12500            stringify!(nk_style_window_header),
12501            "::",
12502            stringify!(active)
12503        )
12504    );
12505    assert_eq!(
12506        unsafe {
12507            &(*(::std::ptr::null::<nk_style_window_header>())).close_button
12508                as *const _ as usize
12509        },
12510        96usize,
12511        concat!(
12512            "Offset of field: ",
12513            stringify!(nk_style_window_header),
12514            "::",
12515            stringify!(close_button)
12516        )
12517    );
12518    assert_eq!(
12519        unsafe {
12520            &(*(::std::ptr::null::<nk_style_window_header>())).minimize_button
12521                as *const _ as usize
12522        },
12523        272usize,
12524        concat!(
12525            "Offset of field: ",
12526            stringify!(nk_style_window_header),
12527            "::",
12528            stringify!(minimize_button)
12529        )
12530    );
12531    assert_eq!(
12532        unsafe {
12533            &(*(::std::ptr::null::<nk_style_window_header>())).close_symbol
12534                as *const _ as usize
12535        },
12536        448usize,
12537        concat!(
12538            "Offset of field: ",
12539            stringify!(nk_style_window_header),
12540            "::",
12541            stringify!(close_symbol)
12542        )
12543    );
12544    assert_eq!(
12545        unsafe {
12546            &(*(::std::ptr::null::<nk_style_window_header>())).minimize_symbol
12547                as *const _ as usize
12548        },
12549        452usize,
12550        concat!(
12551            "Offset of field: ",
12552            stringify!(nk_style_window_header),
12553            "::",
12554            stringify!(minimize_symbol)
12555        )
12556    );
12557    assert_eq!(
12558        unsafe {
12559            &(*(::std::ptr::null::<nk_style_window_header>())).maximize_symbol
12560                as *const _ as usize
12561        },
12562        456usize,
12563        concat!(
12564            "Offset of field: ",
12565            stringify!(nk_style_window_header),
12566            "::",
12567            stringify!(maximize_symbol)
12568        )
12569    );
12570    assert_eq!(
12571        unsafe {
12572            &(*(::std::ptr::null::<nk_style_window_header>())).label_normal
12573                as *const _ as usize
12574        },
12575        460usize,
12576        concat!(
12577            "Offset of field: ",
12578            stringify!(nk_style_window_header),
12579            "::",
12580            stringify!(label_normal)
12581        )
12582    );
12583    assert_eq!(
12584        unsafe {
12585            &(*(::std::ptr::null::<nk_style_window_header>())).label_hover
12586                as *const _ as usize
12587        },
12588        464usize,
12589        concat!(
12590            "Offset of field: ",
12591            stringify!(nk_style_window_header),
12592            "::",
12593            stringify!(label_hover)
12594        )
12595    );
12596    assert_eq!(
12597        unsafe {
12598            &(*(::std::ptr::null::<nk_style_window_header>())).label_active
12599                as *const _ as usize
12600        },
12601        468usize,
12602        concat!(
12603            "Offset of field: ",
12604            stringify!(nk_style_window_header),
12605            "::",
12606            stringify!(label_active)
12607        )
12608    );
12609    assert_eq!(
12610        unsafe {
12611            &(*(::std::ptr::null::<nk_style_window_header>())).align as *const _
12612                as usize
12613        },
12614        472usize,
12615        concat!(
12616            "Offset of field: ",
12617            stringify!(nk_style_window_header),
12618            "::",
12619            stringify!(align)
12620        )
12621    );
12622    assert_eq!(
12623        unsafe {
12624            &(*(::std::ptr::null::<nk_style_window_header>())).padding
12625                as *const _ as usize
12626        },
12627        476usize,
12628        concat!(
12629            "Offset of field: ",
12630            stringify!(nk_style_window_header),
12631            "::",
12632            stringify!(padding)
12633        )
12634    );
12635    assert_eq!(
12636        unsafe {
12637            &(*(::std::ptr::null::<nk_style_window_header>())).label_padding
12638                as *const _ as usize
12639        },
12640        484usize,
12641        concat!(
12642            "Offset of field: ",
12643            stringify!(nk_style_window_header),
12644            "::",
12645            stringify!(label_padding)
12646        )
12647    );
12648    assert_eq!(
12649        unsafe {
12650            &(*(::std::ptr::null::<nk_style_window_header>())).spacing
12651                as *const _ as usize
12652        },
12653        492usize,
12654        concat!(
12655            "Offset of field: ",
12656            stringify!(nk_style_window_header),
12657            "::",
12658            stringify!(spacing)
12659        )
12660    );
12661}
12662impl Default for nk_style_window_header {
12663    fn default() -> Self {
12664        unsafe { ::std::mem::zeroed() }
12665    }
12666}
12667#[repr(C)]
12668#[derive(Copy, Clone)]
12669pub struct nk_style_window {
12670    pub header: nk_style_window_header,
12671    pub fixed_background: nk_style_item,
12672    pub background: nk_color,
12673    pub border_color: nk_color,
12674    pub popup_border_color: nk_color,
12675    pub combo_border_color: nk_color,
12676    pub contextual_border_color: nk_color,
12677    pub menu_border_color: nk_color,
12678    pub group_border_color: nk_color,
12679    pub tooltip_border_color: nk_color,
12680    pub scaler: nk_style_item,
12681    pub border: f32,
12682    pub combo_border: f32,
12683    pub contextual_border: f32,
12684    pub menu_border: f32,
12685    pub group_border: f32,
12686    pub tooltip_border: f32,
12687    pub popup_border: f32,
12688    pub min_row_height_padding: f32,
12689    pub rounding: f32,
12690    pub spacing: nk_vec2,
12691    pub scrollbar_size: nk_vec2,
12692    pub min_size: nk_vec2,
12693    pub padding: nk_vec2,
12694    pub group_padding: nk_vec2,
12695    pub popup_padding: nk_vec2,
12696    pub combo_padding: nk_vec2,
12697    pub contextual_padding: nk_vec2,
12698    pub menu_padding: nk_vec2,
12699    pub tooltip_padding: nk_vec2,
12700}
12701#[test]
12702fn bindgen_test_layout_nk_style_window() {
12703    assert_eq!(
12704        ::std::mem::size_of::<nk_style_window>(),
12705        720usize,
12706        concat!("Size of: ", stringify!(nk_style_window))
12707    );
12708    assert_eq!(
12709        ::std::mem::align_of::<nk_style_window>(),
12710        8usize,
12711        concat!("Alignment of ", stringify!(nk_style_window))
12712    );
12713    assert_eq!(
12714        unsafe {
12715            &(*(::std::ptr::null::<nk_style_window>())).header as *const _
12716                as usize
12717        },
12718        0usize,
12719        concat!(
12720            "Offset of field: ",
12721            stringify!(nk_style_window),
12722            "::",
12723            stringify!(header)
12724        )
12725    );
12726    assert_eq!(
12727        unsafe {
12728            &(*(::std::ptr::null::<nk_style_window>())).fixed_background
12729                as *const _ as usize
12730        },
12731        504usize,
12732        concat!(
12733            "Offset of field: ",
12734            stringify!(nk_style_window),
12735            "::",
12736            stringify!(fixed_background)
12737        )
12738    );
12739    assert_eq!(
12740        unsafe {
12741            &(*(::std::ptr::null::<nk_style_window>())).background as *const _
12742                as usize
12743        },
12744        536usize,
12745        concat!(
12746            "Offset of field: ",
12747            stringify!(nk_style_window),
12748            "::",
12749            stringify!(background)
12750        )
12751    );
12752    assert_eq!(
12753        unsafe {
12754            &(*(::std::ptr::null::<nk_style_window>())).border_color as *const _
12755                as usize
12756        },
12757        540usize,
12758        concat!(
12759            "Offset of field: ",
12760            stringify!(nk_style_window),
12761            "::",
12762            stringify!(border_color)
12763        )
12764    );
12765    assert_eq!(
12766        unsafe {
12767            &(*(::std::ptr::null::<nk_style_window>())).popup_border_color
12768                as *const _ as usize
12769        },
12770        544usize,
12771        concat!(
12772            "Offset of field: ",
12773            stringify!(nk_style_window),
12774            "::",
12775            stringify!(popup_border_color)
12776        )
12777    );
12778    assert_eq!(
12779        unsafe {
12780            &(*(::std::ptr::null::<nk_style_window>())).combo_border_color
12781                as *const _ as usize
12782        },
12783        548usize,
12784        concat!(
12785            "Offset of field: ",
12786            stringify!(nk_style_window),
12787            "::",
12788            stringify!(combo_border_color)
12789        )
12790    );
12791    assert_eq!(
12792        unsafe {
12793            &(*(::std::ptr::null::<nk_style_window>())).contextual_border_color
12794                as *const _ as usize
12795        },
12796        552usize,
12797        concat!(
12798            "Offset of field: ",
12799            stringify!(nk_style_window),
12800            "::",
12801            stringify!(contextual_border_color)
12802        )
12803    );
12804    assert_eq!(
12805        unsafe {
12806            &(*(::std::ptr::null::<nk_style_window>())).menu_border_color
12807                as *const _ as usize
12808        },
12809        556usize,
12810        concat!(
12811            "Offset of field: ",
12812            stringify!(nk_style_window),
12813            "::",
12814            stringify!(menu_border_color)
12815        )
12816    );
12817    assert_eq!(
12818        unsafe {
12819            &(*(::std::ptr::null::<nk_style_window>())).group_border_color
12820                as *const _ as usize
12821        },
12822        560usize,
12823        concat!(
12824            "Offset of field: ",
12825            stringify!(nk_style_window),
12826            "::",
12827            stringify!(group_border_color)
12828        )
12829    );
12830    assert_eq!(
12831        unsafe {
12832            &(*(::std::ptr::null::<nk_style_window>())).tooltip_border_color
12833                as *const _ as usize
12834        },
12835        564usize,
12836        concat!(
12837            "Offset of field: ",
12838            stringify!(nk_style_window),
12839            "::",
12840            stringify!(tooltip_border_color)
12841        )
12842    );
12843    assert_eq!(
12844        unsafe {
12845            &(*(::std::ptr::null::<nk_style_window>())).scaler as *const _
12846                as usize
12847        },
12848        568usize,
12849        concat!(
12850            "Offset of field: ",
12851            stringify!(nk_style_window),
12852            "::",
12853            stringify!(scaler)
12854        )
12855    );
12856    assert_eq!(
12857        unsafe {
12858            &(*(::std::ptr::null::<nk_style_window>())).border as *const _
12859                as usize
12860        },
12861        600usize,
12862        concat!(
12863            "Offset of field: ",
12864            stringify!(nk_style_window),
12865            "::",
12866            stringify!(border)
12867        )
12868    );
12869    assert_eq!(
12870        unsafe {
12871            &(*(::std::ptr::null::<nk_style_window>())).combo_border as *const _
12872                as usize
12873        },
12874        604usize,
12875        concat!(
12876            "Offset of field: ",
12877            stringify!(nk_style_window),
12878            "::",
12879            stringify!(combo_border)
12880        )
12881    );
12882    assert_eq!(
12883        unsafe {
12884            &(*(::std::ptr::null::<nk_style_window>())).contextual_border
12885                as *const _ as usize
12886        },
12887        608usize,
12888        concat!(
12889            "Offset of field: ",
12890            stringify!(nk_style_window),
12891            "::",
12892            stringify!(contextual_border)
12893        )
12894    );
12895    assert_eq!(
12896        unsafe {
12897            &(*(::std::ptr::null::<nk_style_window>())).menu_border as *const _
12898                as usize
12899        },
12900        612usize,
12901        concat!(
12902            "Offset of field: ",
12903            stringify!(nk_style_window),
12904            "::",
12905            stringify!(menu_border)
12906        )
12907    );
12908    assert_eq!(
12909        unsafe {
12910            &(*(::std::ptr::null::<nk_style_window>())).group_border as *const _
12911                as usize
12912        },
12913        616usize,
12914        concat!(
12915            "Offset of field: ",
12916            stringify!(nk_style_window),
12917            "::",
12918            stringify!(group_border)
12919        )
12920    );
12921    assert_eq!(
12922        unsafe {
12923            &(*(::std::ptr::null::<nk_style_window>())).tooltip_border
12924                as *const _ as usize
12925        },
12926        620usize,
12927        concat!(
12928            "Offset of field: ",
12929            stringify!(nk_style_window),
12930            "::",
12931            stringify!(tooltip_border)
12932        )
12933    );
12934    assert_eq!(
12935        unsafe {
12936            &(*(::std::ptr::null::<nk_style_window>())).popup_border as *const _
12937                as usize
12938        },
12939        624usize,
12940        concat!(
12941            "Offset of field: ",
12942            stringify!(nk_style_window),
12943            "::",
12944            stringify!(popup_border)
12945        )
12946    );
12947    assert_eq!(
12948        unsafe {
12949            &(*(::std::ptr::null::<nk_style_window>())).min_row_height_padding
12950                as *const _ as usize
12951        },
12952        628usize,
12953        concat!(
12954            "Offset of field: ",
12955            stringify!(nk_style_window),
12956            "::",
12957            stringify!(min_row_height_padding)
12958        )
12959    );
12960    assert_eq!(
12961        unsafe {
12962            &(*(::std::ptr::null::<nk_style_window>())).rounding as *const _
12963                as usize
12964        },
12965        632usize,
12966        concat!(
12967            "Offset of field: ",
12968            stringify!(nk_style_window),
12969            "::",
12970            stringify!(rounding)
12971        )
12972    );
12973    assert_eq!(
12974        unsafe {
12975            &(*(::std::ptr::null::<nk_style_window>())).spacing as *const _
12976                as usize
12977        },
12978        636usize,
12979        concat!(
12980            "Offset of field: ",
12981            stringify!(nk_style_window),
12982            "::",
12983            stringify!(spacing)
12984        )
12985    );
12986    assert_eq!(
12987        unsafe {
12988            &(*(::std::ptr::null::<nk_style_window>())).scrollbar_size
12989                as *const _ as usize
12990        },
12991        644usize,
12992        concat!(
12993            "Offset of field: ",
12994            stringify!(nk_style_window),
12995            "::",
12996            stringify!(scrollbar_size)
12997        )
12998    );
12999    assert_eq!(
13000        unsafe {
13001            &(*(::std::ptr::null::<nk_style_window>())).min_size as *const _
13002                as usize
13003        },
13004        652usize,
13005        concat!(
13006            "Offset of field: ",
13007            stringify!(nk_style_window),
13008            "::",
13009            stringify!(min_size)
13010        )
13011    );
13012    assert_eq!(
13013        unsafe {
13014            &(*(::std::ptr::null::<nk_style_window>())).padding as *const _
13015                as usize
13016        },
13017        660usize,
13018        concat!(
13019            "Offset of field: ",
13020            stringify!(nk_style_window),
13021            "::",
13022            stringify!(padding)
13023        )
13024    );
13025    assert_eq!(
13026        unsafe {
13027            &(*(::std::ptr::null::<nk_style_window>())).group_padding
13028                as *const _ as usize
13029        },
13030        668usize,
13031        concat!(
13032            "Offset of field: ",
13033            stringify!(nk_style_window),
13034            "::",
13035            stringify!(group_padding)
13036        )
13037    );
13038    assert_eq!(
13039        unsafe {
13040            &(*(::std::ptr::null::<nk_style_window>())).popup_padding
13041                as *const _ as usize
13042        },
13043        676usize,
13044        concat!(
13045            "Offset of field: ",
13046            stringify!(nk_style_window),
13047            "::",
13048            stringify!(popup_padding)
13049        )
13050    );
13051    assert_eq!(
13052        unsafe {
13053            &(*(::std::ptr::null::<nk_style_window>())).combo_padding
13054                as *const _ as usize
13055        },
13056        684usize,
13057        concat!(
13058            "Offset of field: ",
13059            stringify!(nk_style_window),
13060            "::",
13061            stringify!(combo_padding)
13062        )
13063    );
13064    assert_eq!(
13065        unsafe {
13066            &(*(::std::ptr::null::<nk_style_window>())).contextual_padding
13067                as *const _ as usize
13068        },
13069        692usize,
13070        concat!(
13071            "Offset of field: ",
13072            stringify!(nk_style_window),
13073            "::",
13074            stringify!(contextual_padding)
13075        )
13076    );
13077    assert_eq!(
13078        unsafe {
13079            &(*(::std::ptr::null::<nk_style_window>())).menu_padding as *const _
13080                as usize
13081        },
13082        700usize,
13083        concat!(
13084            "Offset of field: ",
13085            stringify!(nk_style_window),
13086            "::",
13087            stringify!(menu_padding)
13088        )
13089    );
13090    assert_eq!(
13091        unsafe {
13092            &(*(::std::ptr::null::<nk_style_window>())).tooltip_padding
13093                as *const _ as usize
13094        },
13095        708usize,
13096        concat!(
13097            "Offset of field: ",
13098            stringify!(nk_style_window),
13099            "::",
13100            stringify!(tooltip_padding)
13101        )
13102    );
13103}
13104impl Default for nk_style_window {
13105    fn default() -> Self {
13106        unsafe { ::std::mem::zeroed() }
13107    }
13108}
13109#[repr(C)]
13110#[derive(Copy, Clone)]
13111pub struct nk_style {
13112    pub font: *const nk_user_font,
13113    pub cursors: [*const nk_cursor; 7usize],
13114    pub cursor_active: *const nk_cursor,
13115    pub cursor_last: *mut nk_cursor,
13116    pub cursor_visible: ::std::os::raw::c_int,
13117    pub text: nk_style_text,
13118    pub button: nk_style_button,
13119    pub contextual_button: nk_style_button,
13120    pub menu_button: nk_style_button,
13121    pub option: nk_style_toggle,
13122    pub checkbox: nk_style_toggle,
13123    pub selectable: nk_style_selectable,
13124    pub slider: nk_style_slider,
13125    pub progress: nk_style_progress,
13126    pub property: nk_style_property,
13127    pub edit: nk_style_edit,
13128    pub chart: nk_style_chart,
13129    pub scrollh: nk_style_scrollbar,
13130    pub scrollv: nk_style_scrollbar,
13131    pub tab: nk_style_tab,
13132    pub combo: nk_style_combo,
13133    pub window: nk_style_window,
13134}
13135#[test]
13136fn bindgen_test_layout_nk_style() {
13137    assert_eq!(
13138        ::std::mem::size_of::<nk_style>(),
13139        7544usize,
13140        concat!("Size of: ", stringify!(nk_style))
13141    );
13142    assert_eq!(
13143        ::std::mem::align_of::<nk_style>(),
13144        8usize,
13145        concat!("Alignment of ", stringify!(nk_style))
13146    );
13147    assert_eq!(
13148        unsafe {
13149            &(*(::std::ptr::null::<nk_style>())).font as *const _ as usize
13150        },
13151        0usize,
13152        concat!(
13153            "Offset of field: ",
13154            stringify!(nk_style),
13155            "::",
13156            stringify!(font)
13157        )
13158    );
13159    assert_eq!(
13160        unsafe {
13161            &(*(::std::ptr::null::<nk_style>())).cursors as *const _ as usize
13162        },
13163        8usize,
13164        concat!(
13165            "Offset of field: ",
13166            stringify!(nk_style),
13167            "::",
13168            stringify!(cursors)
13169        )
13170    );
13171    assert_eq!(
13172        unsafe {
13173            &(*(::std::ptr::null::<nk_style>())).cursor_active as *const _
13174                as usize
13175        },
13176        64usize,
13177        concat!(
13178            "Offset of field: ",
13179            stringify!(nk_style),
13180            "::",
13181            stringify!(cursor_active)
13182        )
13183    );
13184    assert_eq!(
13185        unsafe {
13186            &(*(::std::ptr::null::<nk_style>())).cursor_last as *const _
13187                as usize
13188        },
13189        72usize,
13190        concat!(
13191            "Offset of field: ",
13192            stringify!(nk_style),
13193            "::",
13194            stringify!(cursor_last)
13195        )
13196    );
13197    assert_eq!(
13198        unsafe {
13199            &(*(::std::ptr::null::<nk_style>())).cursor_visible as *const _
13200                as usize
13201        },
13202        80usize,
13203        concat!(
13204            "Offset of field: ",
13205            stringify!(nk_style),
13206            "::",
13207            stringify!(cursor_visible)
13208        )
13209    );
13210    assert_eq!(
13211        unsafe {
13212            &(*(::std::ptr::null::<nk_style>())).text as *const _ as usize
13213        },
13214        84usize,
13215        concat!(
13216            "Offset of field: ",
13217            stringify!(nk_style),
13218            "::",
13219            stringify!(text)
13220        )
13221    );
13222    assert_eq!(
13223        unsafe {
13224            &(*(::std::ptr::null::<nk_style>())).button as *const _ as usize
13225        },
13226        96usize,
13227        concat!(
13228            "Offset of field: ",
13229            stringify!(nk_style),
13230            "::",
13231            stringify!(button)
13232        )
13233    );
13234    assert_eq!(
13235        unsafe {
13236            &(*(::std::ptr::null::<nk_style>())).contextual_button as *const _
13237                as usize
13238        },
13239        272usize,
13240        concat!(
13241            "Offset of field: ",
13242            stringify!(nk_style),
13243            "::",
13244            stringify!(contextual_button)
13245        )
13246    );
13247    assert_eq!(
13248        unsafe {
13249            &(*(::std::ptr::null::<nk_style>())).menu_button as *const _
13250                as usize
13251        },
13252        448usize,
13253        concat!(
13254            "Offset of field: ",
13255            stringify!(nk_style),
13256            "::",
13257            stringify!(menu_button)
13258        )
13259    );
13260    assert_eq!(
13261        unsafe {
13262            &(*(::std::ptr::null::<nk_style>())).option as *const _ as usize
13263        },
13264        624usize,
13265        concat!(
13266            "Offset of field: ",
13267            stringify!(nk_style),
13268            "::",
13269            stringify!(option)
13270        )
13271    );
13272    assert_eq!(
13273        unsafe {
13274            &(*(::std::ptr::null::<nk_style>())).checkbox as *const _ as usize
13275        },
13276        864usize,
13277        concat!(
13278            "Offset of field: ",
13279            stringify!(nk_style),
13280            "::",
13281            stringify!(checkbox)
13282        )
13283    );
13284    assert_eq!(
13285        unsafe {
13286            &(*(::std::ptr::null::<nk_style>())).selectable as *const _ as usize
13287        },
13288        1104usize,
13289        concat!(
13290            "Offset of field: ",
13291            stringify!(nk_style),
13292            "::",
13293            stringify!(selectable)
13294        )
13295    );
13296    assert_eq!(
13297        unsafe {
13298            &(*(::std::ptr::null::<nk_style>())).slider as *const _ as usize
13299        },
13300        1384usize,
13301        concat!(
13302            "Offset of field: ",
13303            stringify!(nk_style),
13304            "::",
13305            stringify!(slider)
13306        )
13307    );
13308    assert_eq!(
13309        unsafe {
13310            &(*(::std::ptr::null::<nk_style>())).progress as *const _ as usize
13311        },
13312        2024usize,
13313        concat!(
13314            "Offset of field: ",
13315            stringify!(nk_style),
13316            "::",
13317            stringify!(progress)
13318        )
13319    );
13320    assert_eq!(
13321        unsafe {
13322            &(*(::std::ptr::null::<nk_style>())).property as *const _ as usize
13323        },
13324        2280usize,
13325        concat!(
13326            "Offset of field: ",
13327            stringify!(nk_style),
13328            "::",
13329            stringify!(property)
13330        )
13331    );
13332    assert_eq!(
13333        unsafe {
13334            &(*(::std::ptr::null::<nk_style>())).edit as *const _ as usize
13335        },
13336        3592usize,
13337        concat!(
13338            "Offset of field: ",
13339            stringify!(nk_style),
13340            "::",
13341            stringify!(edit)
13342        )
13343    );
13344    assert_eq!(
13345        unsafe {
13346            &(*(::std::ptr::null::<nk_style>())).chart as *const _ as usize
13347        },
13348        4392usize,
13349        concat!(
13350            "Offset of field: ",
13351            stringify!(nk_style),
13352            "::",
13353            stringify!(chart)
13354        )
13355    );
13356    assert_eq!(
13357        unsafe {
13358            &(*(::std::ptr::null::<nk_style>())).scrollh as *const _ as usize
13359        },
13360        4456usize,
13361        concat!(
13362            "Offset of field: ",
13363            stringify!(nk_style),
13364            "::",
13365            stringify!(scrollh)
13366        )
13367    );
13368    assert_eq!(
13369        unsafe {
13370            &(*(::std::ptr::null::<nk_style>())).scrollv as *const _ as usize
13371        },
13372        5072usize,
13373        concat!(
13374            "Offset of field: ",
13375            stringify!(nk_style),
13376            "::",
13377            stringify!(scrollv)
13378        )
13379    );
13380    assert_eq!(
13381        unsafe {
13382            &(*(::std::ptr::null::<nk_style>())).tab as *const _ as usize
13383        },
13384        5688usize,
13385        concat!(
13386            "Offset of field: ",
13387            stringify!(nk_style),
13388            "::",
13389            stringify!(tab)
13390        )
13391    );
13392    assert_eq!(
13393        unsafe {
13394            &(*(::std::ptr::null::<nk_style>())).combo as *const _ as usize
13395        },
13396        6472usize,
13397        concat!(
13398            "Offset of field: ",
13399            stringify!(nk_style),
13400            "::",
13401            stringify!(combo)
13402        )
13403    );
13404    assert_eq!(
13405        unsafe {
13406            &(*(::std::ptr::null::<nk_style>())).window as *const _ as usize
13407        },
13408        6824usize,
13409        concat!(
13410            "Offset of field: ",
13411            stringify!(nk_style),
13412            "::",
13413            stringify!(window)
13414        )
13415    );
13416}
13417impl Default for nk_style {
13418    fn default() -> Self {
13419        unsafe { ::std::mem::zeroed() }
13420    }
13421}
13422extern "C" {
13423    pub fn nk_style_item_image(img: nk_image) -> nk_style_item;
13424}
13425extern "C" {
13426    pub fn nk_style_item_color(arg1: nk_color) -> nk_style_item;
13427}
13428extern "C" {
13429    pub fn nk_style_item_hide() -> nk_style_item;
13430}
13431pub const nk_panel_type_NK_PANEL_NONE: nk_panel_type = 0;
13432pub const nk_panel_type_NK_PANEL_WINDOW: nk_panel_type = 1;
13433pub const nk_panel_type_NK_PANEL_GROUP: nk_panel_type = 2;
13434pub const nk_panel_type_NK_PANEL_POPUP: nk_panel_type = 4;
13435pub const nk_panel_type_NK_PANEL_CONTEXTUAL: nk_panel_type = 16;
13436pub const nk_panel_type_NK_PANEL_COMBO: nk_panel_type = 32;
13437pub const nk_panel_type_NK_PANEL_MENU: nk_panel_type = 64;
13438pub const nk_panel_type_NK_PANEL_TOOLTIP: nk_panel_type = 128;
13439pub type nk_panel_type = u32;
13440pub const nk_panel_set_NK_PANEL_SET_NONBLOCK: nk_panel_set = 240;
13441pub const nk_panel_set_NK_PANEL_SET_POPUP: nk_panel_set = 244;
13442pub const nk_panel_set_NK_PANEL_SET_SUB: nk_panel_set = 246;
13443pub type nk_panel_set = u32;
13444#[repr(C)]
13445#[derive(Debug, Copy, Clone)]
13446pub struct nk_chart_slot {
13447    pub type_: nk_chart_type,
13448    pub color: nk_color,
13449    pub highlight: nk_color,
13450    pub min: f32,
13451    pub max: f32,
13452    pub range: f32,
13453    pub count: ::std::os::raw::c_int,
13454    pub last: nk_vec2,
13455    pub index: ::std::os::raw::c_int,
13456}
13457#[test]
13458fn bindgen_test_layout_nk_chart_slot() {
13459    assert_eq!(
13460        ::std::mem::size_of::<nk_chart_slot>(),
13461        40usize,
13462        concat!("Size of: ", stringify!(nk_chart_slot))
13463    );
13464    assert_eq!(
13465        ::std::mem::align_of::<nk_chart_slot>(),
13466        4usize,
13467        concat!("Alignment of ", stringify!(nk_chart_slot))
13468    );
13469    assert_eq!(
13470        unsafe {
13471            &(*(::std::ptr::null::<nk_chart_slot>())).type_ as *const _ as usize
13472        },
13473        0usize,
13474        concat!(
13475            "Offset of field: ",
13476            stringify!(nk_chart_slot),
13477            "::",
13478            stringify!(type_)
13479        )
13480    );
13481    assert_eq!(
13482        unsafe {
13483            &(*(::std::ptr::null::<nk_chart_slot>())).color as *const _ as usize
13484        },
13485        4usize,
13486        concat!(
13487            "Offset of field: ",
13488            stringify!(nk_chart_slot),
13489            "::",
13490            stringify!(color)
13491        )
13492    );
13493    assert_eq!(
13494        unsafe {
13495            &(*(::std::ptr::null::<nk_chart_slot>())).highlight as *const _
13496                as usize
13497        },
13498        8usize,
13499        concat!(
13500            "Offset of field: ",
13501            stringify!(nk_chart_slot),
13502            "::",
13503            stringify!(highlight)
13504        )
13505    );
13506    assert_eq!(
13507        unsafe {
13508            &(*(::std::ptr::null::<nk_chart_slot>())).min as *const _ as usize
13509        },
13510        12usize,
13511        concat!(
13512            "Offset of field: ",
13513            stringify!(nk_chart_slot),
13514            "::",
13515            stringify!(min)
13516        )
13517    );
13518    assert_eq!(
13519        unsafe {
13520            &(*(::std::ptr::null::<nk_chart_slot>())).max as *const _ as usize
13521        },
13522        16usize,
13523        concat!(
13524            "Offset of field: ",
13525            stringify!(nk_chart_slot),
13526            "::",
13527            stringify!(max)
13528        )
13529    );
13530    assert_eq!(
13531        unsafe {
13532            &(*(::std::ptr::null::<nk_chart_slot>())).range as *const _ as usize
13533        },
13534        20usize,
13535        concat!(
13536            "Offset of field: ",
13537            stringify!(nk_chart_slot),
13538            "::",
13539            stringify!(range)
13540        )
13541    );
13542    assert_eq!(
13543        unsafe {
13544            &(*(::std::ptr::null::<nk_chart_slot>())).count as *const _ as usize
13545        },
13546        24usize,
13547        concat!(
13548            "Offset of field: ",
13549            stringify!(nk_chart_slot),
13550            "::",
13551            stringify!(count)
13552        )
13553    );
13554    assert_eq!(
13555        unsafe {
13556            &(*(::std::ptr::null::<nk_chart_slot>())).last as *const _ as usize
13557        },
13558        28usize,
13559        concat!(
13560            "Offset of field: ",
13561            stringify!(nk_chart_slot),
13562            "::",
13563            stringify!(last)
13564        )
13565    );
13566    assert_eq!(
13567        unsafe {
13568            &(*(::std::ptr::null::<nk_chart_slot>())).index as *const _ as usize
13569        },
13570        36usize,
13571        concat!(
13572            "Offset of field: ",
13573            stringify!(nk_chart_slot),
13574            "::",
13575            stringify!(index)
13576        )
13577    );
13578}
13579impl Default for nk_chart_slot {
13580    fn default() -> Self {
13581        unsafe { ::std::mem::zeroed() }
13582    }
13583}
13584#[repr(C)]
13585#[derive(Debug, Copy, Clone)]
13586pub struct nk_chart {
13587    pub slot: ::std::os::raw::c_int,
13588    pub x: f32,
13589    pub y: f32,
13590    pub w: f32,
13591    pub h: f32,
13592    pub slots: [nk_chart_slot; 4usize],
13593}
13594#[test]
13595fn bindgen_test_layout_nk_chart() {
13596    assert_eq!(
13597        ::std::mem::size_of::<nk_chart>(),
13598        180usize,
13599        concat!("Size of: ", stringify!(nk_chart))
13600    );
13601    assert_eq!(
13602        ::std::mem::align_of::<nk_chart>(),
13603        4usize,
13604        concat!("Alignment of ", stringify!(nk_chart))
13605    );
13606    assert_eq!(
13607        unsafe {
13608            &(*(::std::ptr::null::<nk_chart>())).slot as *const _ as usize
13609        },
13610        0usize,
13611        concat!(
13612            "Offset of field: ",
13613            stringify!(nk_chart),
13614            "::",
13615            stringify!(slot)
13616        )
13617    );
13618    assert_eq!(
13619        unsafe { &(*(::std::ptr::null::<nk_chart>())).x as *const _ as usize },
13620        4usize,
13621        concat!(
13622            "Offset of field: ",
13623            stringify!(nk_chart),
13624            "::",
13625            stringify!(x)
13626        )
13627    );
13628    assert_eq!(
13629        unsafe { &(*(::std::ptr::null::<nk_chart>())).y as *const _ as usize },
13630        8usize,
13631        concat!(
13632            "Offset of field: ",
13633            stringify!(nk_chart),
13634            "::",
13635            stringify!(y)
13636        )
13637    );
13638    assert_eq!(
13639        unsafe { &(*(::std::ptr::null::<nk_chart>())).w as *const _ as usize },
13640        12usize,
13641        concat!(
13642            "Offset of field: ",
13643            stringify!(nk_chart),
13644            "::",
13645            stringify!(w)
13646        )
13647    );
13648    assert_eq!(
13649        unsafe { &(*(::std::ptr::null::<nk_chart>())).h as *const _ as usize },
13650        16usize,
13651        concat!(
13652            "Offset of field: ",
13653            stringify!(nk_chart),
13654            "::",
13655            stringify!(h)
13656        )
13657    );
13658    assert_eq!(
13659        unsafe {
13660            &(*(::std::ptr::null::<nk_chart>())).slots as *const _ as usize
13661        },
13662        20usize,
13663        concat!(
13664            "Offset of field: ",
13665            stringify!(nk_chart),
13666            "::",
13667            stringify!(slots)
13668        )
13669    );
13670}
13671impl Default for nk_chart {
13672    fn default() -> Self {
13673        unsafe { ::std::mem::zeroed() }
13674    }
13675}
13676pub const nk_panel_row_layout_type_NK_LAYOUT_DYNAMIC_FIXED:
13677    nk_panel_row_layout_type = 0;
13678pub const nk_panel_row_layout_type_NK_LAYOUT_DYNAMIC_ROW:
13679    nk_panel_row_layout_type = 1;
13680pub const nk_panel_row_layout_type_NK_LAYOUT_DYNAMIC_FREE:
13681    nk_panel_row_layout_type = 2;
13682pub const nk_panel_row_layout_type_NK_LAYOUT_DYNAMIC: nk_panel_row_layout_type =
13683    3;
13684pub const nk_panel_row_layout_type_NK_LAYOUT_STATIC_FIXED:
13685    nk_panel_row_layout_type = 4;
13686pub const nk_panel_row_layout_type_NK_LAYOUT_STATIC_ROW:
13687    nk_panel_row_layout_type = 5;
13688pub const nk_panel_row_layout_type_NK_LAYOUT_STATIC_FREE:
13689    nk_panel_row_layout_type = 6;
13690pub const nk_panel_row_layout_type_NK_LAYOUT_STATIC: nk_panel_row_layout_type =
13691    7;
13692pub const nk_panel_row_layout_type_NK_LAYOUT_TEMPLATE:
13693    nk_panel_row_layout_type = 8;
13694pub const nk_panel_row_layout_type_NK_LAYOUT_COUNT: nk_panel_row_layout_type =
13695    9;
13696pub type nk_panel_row_layout_type = u32;
13697#[repr(C)]
13698#[derive(Debug, Copy, Clone)]
13699pub struct nk_row_layout {
13700    pub type_: nk_panel_row_layout_type,
13701    pub index: ::std::os::raw::c_int,
13702    pub height: f32,
13703    pub min_height: f32,
13704    pub columns: ::std::os::raw::c_int,
13705    pub ratio: *const f32,
13706    pub item_width: f32,
13707    pub item_height: f32,
13708    pub item_offset: f32,
13709    pub filled: f32,
13710    pub item: nk_rect,
13711    pub tree_depth: ::std::os::raw::c_int,
13712    pub templates: [f32; 16usize],
13713}
13714#[test]
13715fn bindgen_test_layout_nk_row_layout() {
13716    assert_eq!(
13717        ::std::mem::size_of::<nk_row_layout>(),
13718        136usize,
13719        concat!("Size of: ", stringify!(nk_row_layout))
13720    );
13721    assert_eq!(
13722        ::std::mem::align_of::<nk_row_layout>(),
13723        8usize,
13724        concat!("Alignment of ", stringify!(nk_row_layout))
13725    );
13726    assert_eq!(
13727        unsafe {
13728            &(*(::std::ptr::null::<nk_row_layout>())).type_ as *const _ as usize
13729        },
13730        0usize,
13731        concat!(
13732            "Offset of field: ",
13733            stringify!(nk_row_layout),
13734            "::",
13735            stringify!(type_)
13736        )
13737    );
13738    assert_eq!(
13739        unsafe {
13740            &(*(::std::ptr::null::<nk_row_layout>())).index as *const _ as usize
13741        },
13742        4usize,
13743        concat!(
13744            "Offset of field: ",
13745            stringify!(nk_row_layout),
13746            "::",
13747            stringify!(index)
13748        )
13749    );
13750    assert_eq!(
13751        unsafe {
13752            &(*(::std::ptr::null::<nk_row_layout>())).height as *const _
13753                as usize
13754        },
13755        8usize,
13756        concat!(
13757            "Offset of field: ",
13758            stringify!(nk_row_layout),
13759            "::",
13760            stringify!(height)
13761        )
13762    );
13763    assert_eq!(
13764        unsafe {
13765            &(*(::std::ptr::null::<nk_row_layout>())).min_height as *const _
13766                as usize
13767        },
13768        12usize,
13769        concat!(
13770            "Offset of field: ",
13771            stringify!(nk_row_layout),
13772            "::",
13773            stringify!(min_height)
13774        )
13775    );
13776    assert_eq!(
13777        unsafe {
13778            &(*(::std::ptr::null::<nk_row_layout>())).columns as *const _
13779                as usize
13780        },
13781        16usize,
13782        concat!(
13783            "Offset of field: ",
13784            stringify!(nk_row_layout),
13785            "::",
13786            stringify!(columns)
13787        )
13788    );
13789    assert_eq!(
13790        unsafe {
13791            &(*(::std::ptr::null::<nk_row_layout>())).ratio as *const _ as usize
13792        },
13793        24usize,
13794        concat!(
13795            "Offset of field: ",
13796            stringify!(nk_row_layout),
13797            "::",
13798            stringify!(ratio)
13799        )
13800    );
13801    assert_eq!(
13802        unsafe {
13803            &(*(::std::ptr::null::<nk_row_layout>())).item_width as *const _
13804                as usize
13805        },
13806        32usize,
13807        concat!(
13808            "Offset of field: ",
13809            stringify!(nk_row_layout),
13810            "::",
13811            stringify!(item_width)
13812        )
13813    );
13814    assert_eq!(
13815        unsafe {
13816            &(*(::std::ptr::null::<nk_row_layout>())).item_height as *const _
13817                as usize
13818        },
13819        36usize,
13820        concat!(
13821            "Offset of field: ",
13822            stringify!(nk_row_layout),
13823            "::",
13824            stringify!(item_height)
13825        )
13826    );
13827    assert_eq!(
13828        unsafe {
13829            &(*(::std::ptr::null::<nk_row_layout>())).item_offset as *const _
13830                as usize
13831        },
13832        40usize,
13833        concat!(
13834            "Offset of field: ",
13835            stringify!(nk_row_layout),
13836            "::",
13837            stringify!(item_offset)
13838        )
13839    );
13840    assert_eq!(
13841        unsafe {
13842            &(*(::std::ptr::null::<nk_row_layout>())).filled as *const _
13843                as usize
13844        },
13845        44usize,
13846        concat!(
13847            "Offset of field: ",
13848            stringify!(nk_row_layout),
13849            "::",
13850            stringify!(filled)
13851        )
13852    );
13853    assert_eq!(
13854        unsafe {
13855            &(*(::std::ptr::null::<nk_row_layout>())).item as *const _ as usize
13856        },
13857        48usize,
13858        concat!(
13859            "Offset of field: ",
13860            stringify!(nk_row_layout),
13861            "::",
13862            stringify!(item)
13863        )
13864    );
13865    assert_eq!(
13866        unsafe {
13867            &(*(::std::ptr::null::<nk_row_layout>())).tree_depth as *const _
13868                as usize
13869        },
13870        64usize,
13871        concat!(
13872            "Offset of field: ",
13873            stringify!(nk_row_layout),
13874            "::",
13875            stringify!(tree_depth)
13876        )
13877    );
13878    assert_eq!(
13879        unsafe {
13880            &(*(::std::ptr::null::<nk_row_layout>())).templates as *const _
13881                as usize
13882        },
13883        68usize,
13884        concat!(
13885            "Offset of field: ",
13886            stringify!(nk_row_layout),
13887            "::",
13888            stringify!(templates)
13889        )
13890    );
13891}
13892impl Default for nk_row_layout {
13893    fn default() -> Self {
13894        unsafe { ::std::mem::zeroed() }
13895    }
13896}
13897#[repr(C)]
13898#[derive(Debug, Default, Copy, Clone)]
13899pub struct nk_popup_buffer {
13900    pub begin: nk_size,
13901    pub parent: nk_size,
13902    pub last: nk_size,
13903    pub end: nk_size,
13904    pub active: ::std::os::raw::c_int,
13905}
13906#[test]
13907fn bindgen_test_layout_nk_popup_buffer() {
13908    assert_eq!(
13909        ::std::mem::size_of::<nk_popup_buffer>(),
13910        20usize,
13911        concat!("Size of: ", stringify!(nk_popup_buffer))
13912    );
13913    assert_eq!(
13914        ::std::mem::align_of::<nk_popup_buffer>(),
13915        4usize,
13916        concat!("Alignment of ", stringify!(nk_popup_buffer))
13917    );
13918    assert_eq!(
13919        unsafe {
13920            &(*(::std::ptr::null::<nk_popup_buffer>())).begin as *const _
13921                as usize
13922        },
13923        0usize,
13924        concat!(
13925            "Offset of field: ",
13926            stringify!(nk_popup_buffer),
13927            "::",
13928            stringify!(begin)
13929        )
13930    );
13931    assert_eq!(
13932        unsafe {
13933            &(*(::std::ptr::null::<nk_popup_buffer>())).parent as *const _
13934                as usize
13935        },
13936        4usize,
13937        concat!(
13938            "Offset of field: ",
13939            stringify!(nk_popup_buffer),
13940            "::",
13941            stringify!(parent)
13942        )
13943    );
13944    assert_eq!(
13945        unsafe {
13946            &(*(::std::ptr::null::<nk_popup_buffer>())).last as *const _
13947                as usize
13948        },
13949        8usize,
13950        concat!(
13951            "Offset of field: ",
13952            stringify!(nk_popup_buffer),
13953            "::",
13954            stringify!(last)
13955        )
13956    );
13957    assert_eq!(
13958        unsafe {
13959            &(*(::std::ptr::null::<nk_popup_buffer>())).end as *const _ as usize
13960        },
13961        12usize,
13962        concat!(
13963            "Offset of field: ",
13964            stringify!(nk_popup_buffer),
13965            "::",
13966            stringify!(end)
13967        )
13968    );
13969    assert_eq!(
13970        unsafe {
13971            &(*(::std::ptr::null::<nk_popup_buffer>())).active as *const _
13972                as usize
13973        },
13974        16usize,
13975        concat!(
13976            "Offset of field: ",
13977            stringify!(nk_popup_buffer),
13978            "::",
13979            stringify!(active)
13980        )
13981    );
13982}
13983#[repr(C)]
13984#[derive(Debug, Default, Copy, Clone)]
13985pub struct nk_menu_state {
13986    pub x: f32,
13987    pub y: f32,
13988    pub w: f32,
13989    pub h: f32,
13990    pub offset: nk_scroll,
13991}
13992#[test]
13993fn bindgen_test_layout_nk_menu_state() {
13994    assert_eq!(
13995        ::std::mem::size_of::<nk_menu_state>(),
13996        24usize,
13997        concat!("Size of: ", stringify!(nk_menu_state))
13998    );
13999    assert_eq!(
14000        ::std::mem::align_of::<nk_menu_state>(),
14001        4usize,
14002        concat!("Alignment of ", stringify!(nk_menu_state))
14003    );
14004    assert_eq!(
14005        unsafe {
14006            &(*(::std::ptr::null::<nk_menu_state>())).x as *const _ as usize
14007        },
14008        0usize,
14009        concat!(
14010            "Offset of field: ",
14011            stringify!(nk_menu_state),
14012            "::",
14013            stringify!(x)
14014        )
14015    );
14016    assert_eq!(
14017        unsafe {
14018            &(*(::std::ptr::null::<nk_menu_state>())).y as *const _ as usize
14019        },
14020        4usize,
14021        concat!(
14022            "Offset of field: ",
14023            stringify!(nk_menu_state),
14024            "::",
14025            stringify!(y)
14026        )
14027    );
14028    assert_eq!(
14029        unsafe {
14030            &(*(::std::ptr::null::<nk_menu_state>())).w as *const _ as usize
14031        },
14032        8usize,
14033        concat!(
14034            "Offset of field: ",
14035            stringify!(nk_menu_state),
14036            "::",
14037            stringify!(w)
14038        )
14039    );
14040    assert_eq!(
14041        unsafe {
14042            &(*(::std::ptr::null::<nk_menu_state>())).h as *const _ as usize
14043        },
14044        12usize,
14045        concat!(
14046            "Offset of field: ",
14047            stringify!(nk_menu_state),
14048            "::",
14049            stringify!(h)
14050        )
14051    );
14052    assert_eq!(
14053        unsafe {
14054            &(*(::std::ptr::null::<nk_menu_state>())).offset as *const _
14055                as usize
14056        },
14057        16usize,
14058        concat!(
14059            "Offset of field: ",
14060            stringify!(nk_menu_state),
14061            "::",
14062            stringify!(offset)
14063        )
14064    );
14065}
14066#[repr(C)]
14067#[derive(Debug, Copy, Clone)]
14068pub struct nk_panel {
14069    pub type_: nk_panel_type,
14070    pub flags: nk_flags,
14071    pub bounds: nk_rect,
14072    pub offset_x: *mut nk_uint,
14073    pub offset_y: *mut nk_uint,
14074    pub at_x: f32,
14075    pub at_y: f32,
14076    pub max_x: f32,
14077    pub footer_height: f32,
14078    pub header_height: f32,
14079    pub border: f32,
14080    pub has_scrolling: ::std::os::raw::c_uint,
14081    pub clip: nk_rect,
14082    pub menu: nk_menu_state,
14083    pub row: nk_row_layout,
14084    pub chart: nk_chart,
14085    pub buffer: *mut nk_command_buffer,
14086    pub parent: *mut nk_panel,
14087}
14088#[test]
14089fn bindgen_test_layout_nk_panel() {
14090    assert_eq!(
14091        ::std::mem::size_of::<nk_panel>(),
14092        448usize,
14093        concat!("Size of: ", stringify!(nk_panel))
14094    );
14095    assert_eq!(
14096        ::std::mem::align_of::<nk_panel>(),
14097        8usize,
14098        concat!("Alignment of ", stringify!(nk_panel))
14099    );
14100    assert_eq!(
14101        unsafe {
14102            &(*(::std::ptr::null::<nk_panel>())).type_ as *const _ as usize
14103        },
14104        0usize,
14105        concat!(
14106            "Offset of field: ",
14107            stringify!(nk_panel),
14108            "::",
14109            stringify!(type_)
14110        )
14111    );
14112    assert_eq!(
14113        unsafe {
14114            &(*(::std::ptr::null::<nk_panel>())).flags as *const _ as usize
14115        },
14116        4usize,
14117        concat!(
14118            "Offset of field: ",
14119            stringify!(nk_panel),
14120            "::",
14121            stringify!(flags)
14122        )
14123    );
14124    assert_eq!(
14125        unsafe {
14126            &(*(::std::ptr::null::<nk_panel>())).bounds as *const _ as usize
14127        },
14128        8usize,
14129        concat!(
14130            "Offset of field: ",
14131            stringify!(nk_panel),
14132            "::",
14133            stringify!(bounds)
14134        )
14135    );
14136    assert_eq!(
14137        unsafe {
14138            &(*(::std::ptr::null::<nk_panel>())).offset_x as *const _ as usize
14139        },
14140        24usize,
14141        concat!(
14142            "Offset of field: ",
14143            stringify!(nk_panel),
14144            "::",
14145            stringify!(offset_x)
14146        )
14147    );
14148    assert_eq!(
14149        unsafe {
14150            &(*(::std::ptr::null::<nk_panel>())).offset_y as *const _ as usize
14151        },
14152        32usize,
14153        concat!(
14154            "Offset of field: ",
14155            stringify!(nk_panel),
14156            "::",
14157            stringify!(offset_y)
14158        )
14159    );
14160    assert_eq!(
14161        unsafe {
14162            &(*(::std::ptr::null::<nk_panel>())).at_x as *const _ as usize
14163        },
14164        40usize,
14165        concat!(
14166            "Offset of field: ",
14167            stringify!(nk_panel),
14168            "::",
14169            stringify!(at_x)
14170        )
14171    );
14172    assert_eq!(
14173        unsafe {
14174            &(*(::std::ptr::null::<nk_panel>())).at_y as *const _ as usize
14175        },
14176        44usize,
14177        concat!(
14178            "Offset of field: ",
14179            stringify!(nk_panel),
14180            "::",
14181            stringify!(at_y)
14182        )
14183    );
14184    assert_eq!(
14185        unsafe {
14186            &(*(::std::ptr::null::<nk_panel>())).max_x as *const _ as usize
14187        },
14188        48usize,
14189        concat!(
14190            "Offset of field: ",
14191            stringify!(nk_panel),
14192            "::",
14193            stringify!(max_x)
14194        )
14195    );
14196    assert_eq!(
14197        unsafe {
14198            &(*(::std::ptr::null::<nk_panel>())).footer_height as *const _
14199                as usize
14200        },
14201        52usize,
14202        concat!(
14203            "Offset of field: ",
14204            stringify!(nk_panel),
14205            "::",
14206            stringify!(footer_height)
14207        )
14208    );
14209    assert_eq!(
14210        unsafe {
14211            &(*(::std::ptr::null::<nk_panel>())).header_height as *const _
14212                as usize
14213        },
14214        56usize,
14215        concat!(
14216            "Offset of field: ",
14217            stringify!(nk_panel),
14218            "::",
14219            stringify!(header_height)
14220        )
14221    );
14222    assert_eq!(
14223        unsafe {
14224            &(*(::std::ptr::null::<nk_panel>())).border as *const _ as usize
14225        },
14226        60usize,
14227        concat!(
14228            "Offset of field: ",
14229            stringify!(nk_panel),
14230            "::",
14231            stringify!(border)
14232        )
14233    );
14234    assert_eq!(
14235        unsafe {
14236            &(*(::std::ptr::null::<nk_panel>())).has_scrolling as *const _
14237                as usize
14238        },
14239        64usize,
14240        concat!(
14241            "Offset of field: ",
14242            stringify!(nk_panel),
14243            "::",
14244            stringify!(has_scrolling)
14245        )
14246    );
14247    assert_eq!(
14248        unsafe {
14249            &(*(::std::ptr::null::<nk_panel>())).clip as *const _ as usize
14250        },
14251        68usize,
14252        concat!(
14253            "Offset of field: ",
14254            stringify!(nk_panel),
14255            "::",
14256            stringify!(clip)
14257        )
14258    );
14259    assert_eq!(
14260        unsafe {
14261            &(*(::std::ptr::null::<nk_panel>())).menu as *const _ as usize
14262        },
14263        84usize,
14264        concat!(
14265            "Offset of field: ",
14266            stringify!(nk_panel),
14267            "::",
14268            stringify!(menu)
14269        )
14270    );
14271    assert_eq!(
14272        unsafe {
14273            &(*(::std::ptr::null::<nk_panel>())).row as *const _ as usize
14274        },
14275        112usize,
14276        concat!(
14277            "Offset of field: ",
14278            stringify!(nk_panel),
14279            "::",
14280            stringify!(row)
14281        )
14282    );
14283    assert_eq!(
14284        unsafe {
14285            &(*(::std::ptr::null::<nk_panel>())).chart as *const _ as usize
14286        },
14287        248usize,
14288        concat!(
14289            "Offset of field: ",
14290            stringify!(nk_panel),
14291            "::",
14292            stringify!(chart)
14293        )
14294    );
14295    assert_eq!(
14296        unsafe {
14297            &(*(::std::ptr::null::<nk_panel>())).buffer as *const _ as usize
14298        },
14299        432usize,
14300        concat!(
14301            "Offset of field: ",
14302            stringify!(nk_panel),
14303            "::",
14304            stringify!(buffer)
14305        )
14306    );
14307    assert_eq!(
14308        unsafe {
14309            &(*(::std::ptr::null::<nk_panel>())).parent as *const _ as usize
14310        },
14311        440usize,
14312        concat!(
14313            "Offset of field: ",
14314            stringify!(nk_panel),
14315            "::",
14316            stringify!(parent)
14317        )
14318    );
14319}
14320impl Default for nk_panel {
14321    fn default() -> Self {
14322        unsafe { ::std::mem::zeroed() }
14323    }
14324}
14325pub const nk_window_flags_NK_WINDOW_PRIVATE: nk_window_flags = 2048;
14326pub const nk_window_flags_NK_WINDOW_DYNAMIC: nk_window_flags = 2048;
14327pub const nk_window_flags_NK_WINDOW_ROM: nk_window_flags = 4096;
14328pub const nk_window_flags_NK_WINDOW_NOT_INTERACTIVE: nk_window_flags = 5120;
14329pub const nk_window_flags_NK_WINDOW_HIDDEN: nk_window_flags = 8192;
14330pub const nk_window_flags_NK_WINDOW_CLOSED: nk_window_flags = 16384;
14331pub const nk_window_flags_NK_WINDOW_MINIMIZED: nk_window_flags = 32768;
14332pub const nk_window_flags_NK_WINDOW_REMOVE_ROM: nk_window_flags = 65536;
14333pub type nk_window_flags = u32;
14334#[repr(C)]
14335#[derive(Debug, Copy, Clone)]
14336pub struct nk_popup_state {
14337    pub win: *mut nk_window,
14338    pub type_: nk_panel_type,
14339    pub buf: nk_popup_buffer,
14340    pub name: nk_hash,
14341    pub active: ::std::os::raw::c_int,
14342    pub combo_count: ::std::os::raw::c_uint,
14343    pub con_count: ::std::os::raw::c_uint,
14344    pub con_old: ::std::os::raw::c_uint,
14345    pub active_con: ::std::os::raw::c_uint,
14346    pub header: nk_rect,
14347}
14348#[test]
14349fn bindgen_test_layout_nk_popup_state() {
14350    assert_eq!(
14351        ::std::mem::size_of::<nk_popup_state>(),
14352        72usize,
14353        concat!("Size of: ", stringify!(nk_popup_state))
14354    );
14355    assert_eq!(
14356        ::std::mem::align_of::<nk_popup_state>(),
14357        8usize,
14358        concat!("Alignment of ", stringify!(nk_popup_state))
14359    );
14360    assert_eq!(
14361        unsafe {
14362            &(*(::std::ptr::null::<nk_popup_state>())).win as *const _ as usize
14363        },
14364        0usize,
14365        concat!(
14366            "Offset of field: ",
14367            stringify!(nk_popup_state),
14368            "::",
14369            stringify!(win)
14370        )
14371    );
14372    assert_eq!(
14373        unsafe {
14374            &(*(::std::ptr::null::<nk_popup_state>())).type_ as *const _
14375                as usize
14376        },
14377        8usize,
14378        concat!(
14379            "Offset of field: ",
14380            stringify!(nk_popup_state),
14381            "::",
14382            stringify!(type_)
14383        )
14384    );
14385    assert_eq!(
14386        unsafe {
14387            &(*(::std::ptr::null::<nk_popup_state>())).buf as *const _ as usize
14388        },
14389        12usize,
14390        concat!(
14391            "Offset of field: ",
14392            stringify!(nk_popup_state),
14393            "::",
14394            stringify!(buf)
14395        )
14396    );
14397    assert_eq!(
14398        unsafe {
14399            &(*(::std::ptr::null::<nk_popup_state>())).name as *const _ as usize
14400        },
14401        32usize,
14402        concat!(
14403            "Offset of field: ",
14404            stringify!(nk_popup_state),
14405            "::",
14406            stringify!(name)
14407        )
14408    );
14409    assert_eq!(
14410        unsafe {
14411            &(*(::std::ptr::null::<nk_popup_state>())).active as *const _
14412                as usize
14413        },
14414        36usize,
14415        concat!(
14416            "Offset of field: ",
14417            stringify!(nk_popup_state),
14418            "::",
14419            stringify!(active)
14420        )
14421    );
14422    assert_eq!(
14423        unsafe {
14424            &(*(::std::ptr::null::<nk_popup_state>())).combo_count as *const _
14425                as usize
14426        },
14427        40usize,
14428        concat!(
14429            "Offset of field: ",
14430            stringify!(nk_popup_state),
14431            "::",
14432            stringify!(combo_count)
14433        )
14434    );
14435    assert_eq!(
14436        unsafe {
14437            &(*(::std::ptr::null::<nk_popup_state>())).con_count as *const _
14438                as usize
14439        },
14440        44usize,
14441        concat!(
14442            "Offset of field: ",
14443            stringify!(nk_popup_state),
14444            "::",
14445            stringify!(con_count)
14446        )
14447    );
14448    assert_eq!(
14449        unsafe {
14450            &(*(::std::ptr::null::<nk_popup_state>())).con_old as *const _
14451                as usize
14452        },
14453        48usize,
14454        concat!(
14455            "Offset of field: ",
14456            stringify!(nk_popup_state),
14457            "::",
14458            stringify!(con_old)
14459        )
14460    );
14461    assert_eq!(
14462        unsafe {
14463            &(*(::std::ptr::null::<nk_popup_state>())).active_con as *const _
14464                as usize
14465        },
14466        52usize,
14467        concat!(
14468            "Offset of field: ",
14469            stringify!(nk_popup_state),
14470            "::",
14471            stringify!(active_con)
14472        )
14473    );
14474    assert_eq!(
14475        unsafe {
14476            &(*(::std::ptr::null::<nk_popup_state>())).header as *const _
14477                as usize
14478        },
14479        56usize,
14480        concat!(
14481            "Offset of field: ",
14482            stringify!(nk_popup_state),
14483            "::",
14484            stringify!(header)
14485        )
14486    );
14487}
14488impl Default for nk_popup_state {
14489    fn default() -> Self {
14490        unsafe { ::std::mem::zeroed() }
14491    }
14492}
14493#[repr(C)]
14494#[derive(Debug, Default, Copy, Clone)]
14495pub struct nk_edit_state {
14496    pub name: nk_hash,
14497    pub seq: ::std::os::raw::c_uint,
14498    pub old: ::std::os::raw::c_uint,
14499    pub active: ::std::os::raw::c_int,
14500    pub prev: ::std::os::raw::c_int,
14501    pub cursor: ::std::os::raw::c_int,
14502    pub sel_start: ::std::os::raw::c_int,
14503    pub sel_end: ::std::os::raw::c_int,
14504    pub scrollbar: nk_scroll,
14505    pub mode: ::std::os::raw::c_uchar,
14506    pub single_line: ::std::os::raw::c_uchar,
14507}
14508#[test]
14509fn bindgen_test_layout_nk_edit_state() {
14510    assert_eq!(
14511        ::std::mem::size_of::<nk_edit_state>(),
14512        44usize,
14513        concat!("Size of: ", stringify!(nk_edit_state))
14514    );
14515    assert_eq!(
14516        ::std::mem::align_of::<nk_edit_state>(),
14517        4usize,
14518        concat!("Alignment of ", stringify!(nk_edit_state))
14519    );
14520    assert_eq!(
14521        unsafe {
14522            &(*(::std::ptr::null::<nk_edit_state>())).name as *const _ as usize
14523        },
14524        0usize,
14525        concat!(
14526            "Offset of field: ",
14527            stringify!(nk_edit_state),
14528            "::",
14529            stringify!(name)
14530        )
14531    );
14532    assert_eq!(
14533        unsafe {
14534            &(*(::std::ptr::null::<nk_edit_state>())).seq as *const _ as usize
14535        },
14536        4usize,
14537        concat!(
14538            "Offset of field: ",
14539            stringify!(nk_edit_state),
14540            "::",
14541            stringify!(seq)
14542        )
14543    );
14544    assert_eq!(
14545        unsafe {
14546            &(*(::std::ptr::null::<nk_edit_state>())).old as *const _ as usize
14547        },
14548        8usize,
14549        concat!(
14550            "Offset of field: ",
14551            stringify!(nk_edit_state),
14552            "::",
14553            stringify!(old)
14554        )
14555    );
14556    assert_eq!(
14557        unsafe {
14558            &(*(::std::ptr::null::<nk_edit_state>())).active as *const _
14559                as usize
14560        },
14561        12usize,
14562        concat!(
14563            "Offset of field: ",
14564            stringify!(nk_edit_state),
14565            "::",
14566            stringify!(active)
14567        )
14568    );
14569    assert_eq!(
14570        unsafe {
14571            &(*(::std::ptr::null::<nk_edit_state>())).prev as *const _ as usize
14572        },
14573        16usize,
14574        concat!(
14575            "Offset of field: ",
14576            stringify!(nk_edit_state),
14577            "::",
14578            stringify!(prev)
14579        )
14580    );
14581    assert_eq!(
14582        unsafe {
14583            &(*(::std::ptr::null::<nk_edit_state>())).cursor as *const _
14584                as usize
14585        },
14586        20usize,
14587        concat!(
14588            "Offset of field: ",
14589            stringify!(nk_edit_state),
14590            "::",
14591            stringify!(cursor)
14592        )
14593    );
14594    assert_eq!(
14595        unsafe {
14596            &(*(::std::ptr::null::<nk_edit_state>())).sel_start as *const _
14597                as usize
14598        },
14599        24usize,
14600        concat!(
14601            "Offset of field: ",
14602            stringify!(nk_edit_state),
14603            "::",
14604            stringify!(sel_start)
14605        )
14606    );
14607    assert_eq!(
14608        unsafe {
14609            &(*(::std::ptr::null::<nk_edit_state>())).sel_end as *const _
14610                as usize
14611        },
14612        28usize,
14613        concat!(
14614            "Offset of field: ",
14615            stringify!(nk_edit_state),
14616            "::",
14617            stringify!(sel_end)
14618        )
14619    );
14620    assert_eq!(
14621        unsafe {
14622            &(*(::std::ptr::null::<nk_edit_state>())).scrollbar as *const _
14623                as usize
14624        },
14625        32usize,
14626        concat!(
14627            "Offset of field: ",
14628            stringify!(nk_edit_state),
14629            "::",
14630            stringify!(scrollbar)
14631        )
14632    );
14633    assert_eq!(
14634        unsafe {
14635            &(*(::std::ptr::null::<nk_edit_state>())).mode as *const _ as usize
14636        },
14637        40usize,
14638        concat!(
14639            "Offset of field: ",
14640            stringify!(nk_edit_state),
14641            "::",
14642            stringify!(mode)
14643        )
14644    );
14645    assert_eq!(
14646        unsafe {
14647            &(*(::std::ptr::null::<nk_edit_state>())).single_line as *const _
14648                as usize
14649        },
14650        41usize,
14651        concat!(
14652            "Offset of field: ",
14653            stringify!(nk_edit_state),
14654            "::",
14655            stringify!(single_line)
14656        )
14657    );
14658}
14659#[repr(C)]
14660#[derive(Copy, Clone)]
14661pub struct nk_property_state {
14662    pub active: ::std::os::raw::c_int,
14663    pub prev: ::std::os::raw::c_int,
14664    pub buffer: [::std::os::raw::c_char; 64usize],
14665    pub length: ::std::os::raw::c_int,
14666    pub cursor: ::std::os::raw::c_int,
14667    pub select_start: ::std::os::raw::c_int,
14668    pub select_end: ::std::os::raw::c_int,
14669    pub name: nk_hash,
14670    pub seq: ::std::os::raw::c_uint,
14671    pub old: ::std::os::raw::c_uint,
14672    pub state: ::std::os::raw::c_int,
14673}
14674#[test]
14675fn bindgen_test_layout_nk_property_state() {
14676    assert_eq!(
14677        ::std::mem::size_of::<nk_property_state>(),
14678        104usize,
14679        concat!("Size of: ", stringify!(nk_property_state))
14680    );
14681    assert_eq!(
14682        ::std::mem::align_of::<nk_property_state>(),
14683        4usize,
14684        concat!("Alignment of ", stringify!(nk_property_state))
14685    );
14686    assert_eq!(
14687        unsafe {
14688            &(*(::std::ptr::null::<nk_property_state>())).active as *const _
14689                as usize
14690        },
14691        0usize,
14692        concat!(
14693            "Offset of field: ",
14694            stringify!(nk_property_state),
14695            "::",
14696            stringify!(active)
14697        )
14698    );
14699    assert_eq!(
14700        unsafe {
14701            &(*(::std::ptr::null::<nk_property_state>())).prev as *const _
14702                as usize
14703        },
14704        4usize,
14705        concat!(
14706            "Offset of field: ",
14707            stringify!(nk_property_state),
14708            "::",
14709            stringify!(prev)
14710        )
14711    );
14712    assert_eq!(
14713        unsafe {
14714            &(*(::std::ptr::null::<nk_property_state>())).buffer as *const _
14715                as usize
14716        },
14717        8usize,
14718        concat!(
14719            "Offset of field: ",
14720            stringify!(nk_property_state),
14721            "::",
14722            stringify!(buffer)
14723        )
14724    );
14725    assert_eq!(
14726        unsafe {
14727            &(*(::std::ptr::null::<nk_property_state>())).length as *const _
14728                as usize
14729        },
14730        72usize,
14731        concat!(
14732            "Offset of field: ",
14733            stringify!(nk_property_state),
14734            "::",
14735            stringify!(length)
14736        )
14737    );
14738    assert_eq!(
14739        unsafe {
14740            &(*(::std::ptr::null::<nk_property_state>())).cursor as *const _
14741                as usize
14742        },
14743        76usize,
14744        concat!(
14745            "Offset of field: ",
14746            stringify!(nk_property_state),
14747            "::",
14748            stringify!(cursor)
14749        )
14750    );
14751    assert_eq!(
14752        unsafe {
14753            &(*(::std::ptr::null::<nk_property_state>())).select_start
14754                as *const _ as usize
14755        },
14756        80usize,
14757        concat!(
14758            "Offset of field: ",
14759            stringify!(nk_property_state),
14760            "::",
14761            stringify!(select_start)
14762        )
14763    );
14764    assert_eq!(
14765        unsafe {
14766            &(*(::std::ptr::null::<nk_property_state>())).select_end as *const _
14767                as usize
14768        },
14769        84usize,
14770        concat!(
14771            "Offset of field: ",
14772            stringify!(nk_property_state),
14773            "::",
14774            stringify!(select_end)
14775        )
14776    );
14777    assert_eq!(
14778        unsafe {
14779            &(*(::std::ptr::null::<nk_property_state>())).name as *const _
14780                as usize
14781        },
14782        88usize,
14783        concat!(
14784            "Offset of field: ",
14785            stringify!(nk_property_state),
14786            "::",
14787            stringify!(name)
14788        )
14789    );
14790    assert_eq!(
14791        unsafe {
14792            &(*(::std::ptr::null::<nk_property_state>())).seq as *const _
14793                as usize
14794        },
14795        92usize,
14796        concat!(
14797            "Offset of field: ",
14798            stringify!(nk_property_state),
14799            "::",
14800            stringify!(seq)
14801        )
14802    );
14803    assert_eq!(
14804        unsafe {
14805            &(*(::std::ptr::null::<nk_property_state>())).old as *const _
14806                as usize
14807        },
14808        96usize,
14809        concat!(
14810            "Offset of field: ",
14811            stringify!(nk_property_state),
14812            "::",
14813            stringify!(old)
14814        )
14815    );
14816    assert_eq!(
14817        unsafe {
14818            &(*(::std::ptr::null::<nk_property_state>())).state as *const _
14819                as usize
14820        },
14821        100usize,
14822        concat!(
14823            "Offset of field: ",
14824            stringify!(nk_property_state),
14825            "::",
14826            stringify!(state)
14827        )
14828    );
14829}
14830impl Default for nk_property_state {
14831    fn default() -> Self {
14832        unsafe { ::std::mem::zeroed() }
14833    }
14834}
14835#[repr(C)]
14836#[derive(Copy, Clone)]
14837pub struct nk_window {
14838    pub seq: ::std::os::raw::c_uint,
14839    pub name: nk_hash,
14840    pub name_string: [::std::os::raw::c_char; 64usize],
14841    pub flags: nk_flags,
14842    pub bounds: nk_rect,
14843    pub scrollbar: nk_scroll,
14844    pub buffer: nk_command_buffer,
14845    pub layout: *mut nk_panel,
14846    pub scrollbar_hiding_timer: f32,
14847    pub property: nk_property_state,
14848    pub popup: nk_popup_state,
14849    pub edit: nk_edit_state,
14850    pub scrolled: ::std::os::raw::c_uint,
14851    pub tables: *mut nk_table,
14852    pub table_count: ::std::os::raw::c_uint,
14853    pub next: *mut nk_window,
14854    pub prev: *mut nk_window,
14855    pub parent: *mut nk_window,
14856}
14857#[test]
14858fn bindgen_test_layout_nk_window() {
14859    assert_eq!(
14860        ::std::mem::size_of::<nk_window>(),
14861        440usize,
14862        concat!("Size of: ", stringify!(nk_window))
14863    );
14864    assert_eq!(
14865        ::std::mem::align_of::<nk_window>(),
14866        8usize,
14867        concat!("Alignment of ", stringify!(nk_window))
14868    );
14869    assert_eq!(
14870        unsafe {
14871            &(*(::std::ptr::null::<nk_window>())).seq as *const _ as usize
14872        },
14873        0usize,
14874        concat!(
14875            "Offset of field: ",
14876            stringify!(nk_window),
14877            "::",
14878            stringify!(seq)
14879        )
14880    );
14881    assert_eq!(
14882        unsafe {
14883            &(*(::std::ptr::null::<nk_window>())).name as *const _ as usize
14884        },
14885        4usize,
14886        concat!(
14887            "Offset of field: ",
14888            stringify!(nk_window),
14889            "::",
14890            stringify!(name)
14891        )
14892    );
14893    assert_eq!(
14894        unsafe {
14895            &(*(::std::ptr::null::<nk_window>())).name_string as *const _
14896                as usize
14897        },
14898        8usize,
14899        concat!(
14900            "Offset of field: ",
14901            stringify!(nk_window),
14902            "::",
14903            stringify!(name_string)
14904        )
14905    );
14906    assert_eq!(
14907        unsafe {
14908            &(*(::std::ptr::null::<nk_window>())).flags as *const _ as usize
14909        },
14910        72usize,
14911        concat!(
14912            "Offset of field: ",
14913            stringify!(nk_window),
14914            "::",
14915            stringify!(flags)
14916        )
14917    );
14918    assert_eq!(
14919        unsafe {
14920            &(*(::std::ptr::null::<nk_window>())).bounds as *const _ as usize
14921        },
14922        76usize,
14923        concat!(
14924            "Offset of field: ",
14925            stringify!(nk_window),
14926            "::",
14927            stringify!(bounds)
14928        )
14929    );
14930    assert_eq!(
14931        unsafe {
14932            &(*(::std::ptr::null::<nk_window>())).scrollbar as *const _ as usize
14933        },
14934        92usize,
14935        concat!(
14936            "Offset of field: ",
14937            stringify!(nk_window),
14938            "::",
14939            stringify!(scrollbar)
14940        )
14941    );
14942    assert_eq!(
14943        unsafe {
14944            &(*(::std::ptr::null::<nk_window>())).buffer as *const _ as usize
14945        },
14946        104usize,
14947        concat!(
14948            "Offset of field: ",
14949            stringify!(nk_window),
14950            "::",
14951            stringify!(buffer)
14952        )
14953    );
14954    assert_eq!(
14955        unsafe {
14956            &(*(::std::ptr::null::<nk_window>())).layout as *const _ as usize
14957        },
14958        160usize,
14959        concat!(
14960            "Offset of field: ",
14961            stringify!(nk_window),
14962            "::",
14963            stringify!(layout)
14964        )
14965    );
14966    assert_eq!(
14967        unsafe {
14968            &(*(::std::ptr::null::<nk_window>())).scrollbar_hiding_timer
14969                as *const _ as usize
14970        },
14971        168usize,
14972        concat!(
14973            "Offset of field: ",
14974            stringify!(nk_window),
14975            "::",
14976            stringify!(scrollbar_hiding_timer)
14977        )
14978    );
14979    assert_eq!(
14980        unsafe {
14981            &(*(::std::ptr::null::<nk_window>())).property as *const _ as usize
14982        },
14983        172usize,
14984        concat!(
14985            "Offset of field: ",
14986            stringify!(nk_window),
14987            "::",
14988            stringify!(property)
14989        )
14990    );
14991    assert_eq!(
14992        unsafe {
14993            &(*(::std::ptr::null::<nk_window>())).popup as *const _ as usize
14994        },
14995        280usize,
14996        concat!(
14997            "Offset of field: ",
14998            stringify!(nk_window),
14999            "::",
15000            stringify!(popup)
15001        )
15002    );
15003    assert_eq!(
15004        unsafe {
15005            &(*(::std::ptr::null::<nk_window>())).edit as *const _ as usize
15006        },
15007        352usize,
15008        concat!(
15009            "Offset of field: ",
15010            stringify!(nk_window),
15011            "::",
15012            stringify!(edit)
15013        )
15014    );
15015    assert_eq!(
15016        unsafe {
15017            &(*(::std::ptr::null::<nk_window>())).scrolled as *const _ as usize
15018        },
15019        396usize,
15020        concat!(
15021            "Offset of field: ",
15022            stringify!(nk_window),
15023            "::",
15024            stringify!(scrolled)
15025        )
15026    );
15027    assert_eq!(
15028        unsafe {
15029            &(*(::std::ptr::null::<nk_window>())).tables as *const _ as usize
15030        },
15031        400usize,
15032        concat!(
15033            "Offset of field: ",
15034            stringify!(nk_window),
15035            "::",
15036            stringify!(tables)
15037        )
15038    );
15039    assert_eq!(
15040        unsafe {
15041            &(*(::std::ptr::null::<nk_window>())).table_count as *const _
15042                as usize
15043        },
15044        408usize,
15045        concat!(
15046            "Offset of field: ",
15047            stringify!(nk_window),
15048            "::",
15049            stringify!(table_count)
15050        )
15051    );
15052    assert_eq!(
15053        unsafe {
15054            &(*(::std::ptr::null::<nk_window>())).next as *const _ as usize
15055        },
15056        416usize,
15057        concat!(
15058            "Offset of field: ",
15059            stringify!(nk_window),
15060            "::",
15061            stringify!(next)
15062        )
15063    );
15064    assert_eq!(
15065        unsafe {
15066            &(*(::std::ptr::null::<nk_window>())).prev as *const _ as usize
15067        },
15068        424usize,
15069        concat!(
15070            "Offset of field: ",
15071            stringify!(nk_window),
15072            "::",
15073            stringify!(prev)
15074        )
15075    );
15076    assert_eq!(
15077        unsafe {
15078            &(*(::std::ptr::null::<nk_window>())).parent as *const _ as usize
15079        },
15080        432usize,
15081        concat!(
15082            "Offset of field: ",
15083            stringify!(nk_window),
15084            "::",
15085            stringify!(parent)
15086        )
15087    );
15088}
15089impl Default for nk_window {
15090    fn default() -> Self {
15091        unsafe { ::std::mem::zeroed() }
15092    }
15093}
15094#[repr(C)]
15095#[derive(Copy, Clone)]
15096pub struct nk_config_stack_style_item_element {
15097    pub address: *mut nk_style_item,
15098    pub old_value: nk_style_item,
15099}
15100#[test]
15101fn bindgen_test_layout_nk_config_stack_style_item_element() {
15102    assert_eq!(
15103        ::std::mem::size_of::<nk_config_stack_style_item_element>(),
15104        40usize,
15105        concat!("Size of: ", stringify!(nk_config_stack_style_item_element))
15106    );
15107    assert_eq!(
15108        ::std::mem::align_of::<nk_config_stack_style_item_element>(),
15109        8usize,
15110        concat!(
15111            "Alignment of ",
15112            stringify!(nk_config_stack_style_item_element)
15113        )
15114    );
15115    assert_eq!(
15116        unsafe {
15117            &(*(::std::ptr::null::<nk_config_stack_style_item_element>()))
15118                .address as *const _ as usize
15119        },
15120        0usize,
15121        concat!(
15122            "Offset of field: ",
15123            stringify!(nk_config_stack_style_item_element),
15124            "::",
15125            stringify!(address)
15126        )
15127    );
15128    assert_eq!(
15129        unsafe {
15130            &(*(::std::ptr::null::<nk_config_stack_style_item_element>()))
15131                .old_value as *const _ as usize
15132        },
15133        8usize,
15134        concat!(
15135            "Offset of field: ",
15136            stringify!(nk_config_stack_style_item_element),
15137            "::",
15138            stringify!(old_value)
15139        )
15140    );
15141}
15142impl Default for nk_config_stack_style_item_element {
15143    fn default() -> Self {
15144        unsafe { ::std::mem::zeroed() }
15145    }
15146}
15147#[repr(C)]
15148#[derive(Debug, Copy, Clone)]
15149pub struct nk_config_stack_float_element {
15150    pub address: *mut f32,
15151    pub old_value: f32,
15152}
15153#[test]
15154fn bindgen_test_layout_nk_config_stack_float_element() {
15155    assert_eq!(
15156        ::std::mem::size_of::<nk_config_stack_float_element>(),
15157        16usize,
15158        concat!("Size of: ", stringify!(nk_config_stack_float_element))
15159    );
15160    assert_eq!(
15161        ::std::mem::align_of::<nk_config_stack_float_element>(),
15162        8usize,
15163        concat!("Alignment of ", stringify!(nk_config_stack_float_element))
15164    );
15165    assert_eq!(
15166        unsafe {
15167            &(*(::std::ptr::null::<nk_config_stack_float_element>())).address
15168                as *const _ as usize
15169        },
15170        0usize,
15171        concat!(
15172            "Offset of field: ",
15173            stringify!(nk_config_stack_float_element),
15174            "::",
15175            stringify!(address)
15176        )
15177    );
15178    assert_eq!(
15179        unsafe {
15180            &(*(::std::ptr::null::<nk_config_stack_float_element>())).old_value
15181                as *const _ as usize
15182        },
15183        8usize,
15184        concat!(
15185            "Offset of field: ",
15186            stringify!(nk_config_stack_float_element),
15187            "::",
15188            stringify!(old_value)
15189        )
15190    );
15191}
15192impl Default for nk_config_stack_float_element {
15193    fn default() -> Self {
15194        unsafe { ::std::mem::zeroed() }
15195    }
15196}
15197#[repr(C)]
15198#[derive(Debug, Copy, Clone)]
15199pub struct nk_config_stack_vec2_element {
15200    pub address: *mut nk_vec2,
15201    pub old_value: nk_vec2,
15202}
15203#[test]
15204fn bindgen_test_layout_nk_config_stack_vec2_element() {
15205    assert_eq!(
15206        ::std::mem::size_of::<nk_config_stack_vec2_element>(),
15207        16usize,
15208        concat!("Size of: ", stringify!(nk_config_stack_vec2_element))
15209    );
15210    assert_eq!(
15211        ::std::mem::align_of::<nk_config_stack_vec2_element>(),
15212        8usize,
15213        concat!("Alignment of ", stringify!(nk_config_stack_vec2_element))
15214    );
15215    assert_eq!(
15216        unsafe {
15217            &(*(::std::ptr::null::<nk_config_stack_vec2_element>())).address
15218                as *const _ as usize
15219        },
15220        0usize,
15221        concat!(
15222            "Offset of field: ",
15223            stringify!(nk_config_stack_vec2_element),
15224            "::",
15225            stringify!(address)
15226        )
15227    );
15228    assert_eq!(
15229        unsafe {
15230            &(*(::std::ptr::null::<nk_config_stack_vec2_element>())).old_value
15231                as *const _ as usize
15232        },
15233        8usize,
15234        concat!(
15235            "Offset of field: ",
15236            stringify!(nk_config_stack_vec2_element),
15237            "::",
15238            stringify!(old_value)
15239        )
15240    );
15241}
15242impl Default for nk_config_stack_vec2_element {
15243    fn default() -> Self {
15244        unsafe { ::std::mem::zeroed() }
15245    }
15246}
15247#[repr(C)]
15248#[derive(Debug, Copy, Clone)]
15249pub struct nk_config_stack_flags_element {
15250    pub address: *mut nk_flags,
15251    pub old_value: nk_flags,
15252}
15253#[test]
15254fn bindgen_test_layout_nk_config_stack_flags_element() {
15255    assert_eq!(
15256        ::std::mem::size_of::<nk_config_stack_flags_element>(),
15257        16usize,
15258        concat!("Size of: ", stringify!(nk_config_stack_flags_element))
15259    );
15260    assert_eq!(
15261        ::std::mem::align_of::<nk_config_stack_flags_element>(),
15262        8usize,
15263        concat!("Alignment of ", stringify!(nk_config_stack_flags_element))
15264    );
15265    assert_eq!(
15266        unsafe {
15267            &(*(::std::ptr::null::<nk_config_stack_flags_element>())).address
15268                as *const _ as usize
15269        },
15270        0usize,
15271        concat!(
15272            "Offset of field: ",
15273            stringify!(nk_config_stack_flags_element),
15274            "::",
15275            stringify!(address)
15276        )
15277    );
15278    assert_eq!(
15279        unsafe {
15280            &(*(::std::ptr::null::<nk_config_stack_flags_element>())).old_value
15281                as *const _ as usize
15282        },
15283        8usize,
15284        concat!(
15285            "Offset of field: ",
15286            stringify!(nk_config_stack_flags_element),
15287            "::",
15288            stringify!(old_value)
15289        )
15290    );
15291}
15292impl Default for nk_config_stack_flags_element {
15293    fn default() -> Self {
15294        unsafe { ::std::mem::zeroed() }
15295    }
15296}
15297#[repr(C)]
15298#[derive(Debug, Copy, Clone)]
15299pub struct nk_config_stack_color_element {
15300    pub address: *mut nk_color,
15301    pub old_value: nk_color,
15302}
15303#[test]
15304fn bindgen_test_layout_nk_config_stack_color_element() {
15305    assert_eq!(
15306        ::std::mem::size_of::<nk_config_stack_color_element>(),
15307        16usize,
15308        concat!("Size of: ", stringify!(nk_config_stack_color_element))
15309    );
15310    assert_eq!(
15311        ::std::mem::align_of::<nk_config_stack_color_element>(),
15312        8usize,
15313        concat!("Alignment of ", stringify!(nk_config_stack_color_element))
15314    );
15315    assert_eq!(
15316        unsafe {
15317            &(*(::std::ptr::null::<nk_config_stack_color_element>())).address
15318                as *const _ as usize
15319        },
15320        0usize,
15321        concat!(
15322            "Offset of field: ",
15323            stringify!(nk_config_stack_color_element),
15324            "::",
15325            stringify!(address)
15326        )
15327    );
15328    assert_eq!(
15329        unsafe {
15330            &(*(::std::ptr::null::<nk_config_stack_color_element>())).old_value
15331                as *const _ as usize
15332        },
15333        8usize,
15334        concat!(
15335            "Offset of field: ",
15336            stringify!(nk_config_stack_color_element),
15337            "::",
15338            stringify!(old_value)
15339        )
15340    );
15341}
15342impl Default for nk_config_stack_color_element {
15343    fn default() -> Self {
15344        unsafe { ::std::mem::zeroed() }
15345    }
15346}
15347#[repr(C)]
15348#[derive(Debug, Copy, Clone)]
15349pub struct nk_config_stack_user_font_element {
15350    pub address: *mut *const nk_user_font,
15351    pub old_value: *const nk_user_font,
15352}
15353#[test]
15354fn bindgen_test_layout_nk_config_stack_user_font_element() {
15355    assert_eq!(
15356        ::std::mem::size_of::<nk_config_stack_user_font_element>(),
15357        16usize,
15358        concat!("Size of: ", stringify!(nk_config_stack_user_font_element))
15359    );
15360    assert_eq!(
15361        ::std::mem::align_of::<nk_config_stack_user_font_element>(),
15362        8usize,
15363        concat!(
15364            "Alignment of ",
15365            stringify!(nk_config_stack_user_font_element)
15366        )
15367    );
15368    assert_eq!(
15369        unsafe {
15370            &(*(::std::ptr::null::<nk_config_stack_user_font_element>()))
15371                .address as *const _ as usize
15372        },
15373        0usize,
15374        concat!(
15375            "Offset of field: ",
15376            stringify!(nk_config_stack_user_font_element),
15377            "::",
15378            stringify!(address)
15379        )
15380    );
15381    assert_eq!(
15382        unsafe {
15383            &(*(::std::ptr::null::<nk_config_stack_user_font_element>()))
15384                .old_value as *const _ as usize
15385        },
15386        8usize,
15387        concat!(
15388            "Offset of field: ",
15389            stringify!(nk_config_stack_user_font_element),
15390            "::",
15391            stringify!(old_value)
15392        )
15393    );
15394}
15395impl Default for nk_config_stack_user_font_element {
15396    fn default() -> Self {
15397        unsafe { ::std::mem::zeroed() }
15398    }
15399}
15400#[repr(C)]
15401#[derive(Debug, Copy, Clone)]
15402pub struct nk_config_stack_button_behavior_element {
15403    pub address: *mut nk_button_behavior,
15404    pub old_value: nk_button_behavior,
15405}
15406#[test]
15407fn bindgen_test_layout_nk_config_stack_button_behavior_element() {
15408    assert_eq!(
15409        ::std::mem::size_of::<nk_config_stack_button_behavior_element>(),
15410        16usize,
15411        concat!(
15412            "Size of: ",
15413            stringify!(nk_config_stack_button_behavior_element)
15414        )
15415    );
15416    assert_eq!(
15417        ::std::mem::align_of::<nk_config_stack_button_behavior_element>(),
15418        8usize,
15419        concat!(
15420            "Alignment of ",
15421            stringify!(nk_config_stack_button_behavior_element)
15422        )
15423    );
15424    assert_eq!(
15425        unsafe {
15426            &(*(::std::ptr::null::<nk_config_stack_button_behavior_element>()))
15427                .address as *const _ as usize
15428        },
15429        0usize,
15430        concat!(
15431            "Offset of field: ",
15432            stringify!(nk_config_stack_button_behavior_element),
15433            "::",
15434            stringify!(address)
15435        )
15436    );
15437    assert_eq!(
15438        unsafe {
15439            &(*(::std::ptr::null::<nk_config_stack_button_behavior_element>()))
15440                .old_value as *const _ as usize
15441        },
15442        8usize,
15443        concat!(
15444            "Offset of field: ",
15445            stringify!(nk_config_stack_button_behavior_element),
15446            "::",
15447            stringify!(old_value)
15448        )
15449    );
15450}
15451impl Default for nk_config_stack_button_behavior_element {
15452    fn default() -> Self {
15453        unsafe { ::std::mem::zeroed() }
15454    }
15455}
15456#[repr(C)]
15457#[derive(Copy, Clone)]
15458pub struct nk_config_stack_style_item {
15459    pub head: ::std::os::raw::c_int,
15460    pub elements: [nk_config_stack_style_item_element; 16usize],
15461}
15462#[test]
15463fn bindgen_test_layout_nk_config_stack_style_item() {
15464    assert_eq!(
15465        ::std::mem::size_of::<nk_config_stack_style_item>(),
15466        648usize,
15467        concat!("Size of: ", stringify!(nk_config_stack_style_item))
15468    );
15469    assert_eq!(
15470        ::std::mem::align_of::<nk_config_stack_style_item>(),
15471        8usize,
15472        concat!("Alignment of ", stringify!(nk_config_stack_style_item))
15473    );
15474    assert_eq!(
15475        unsafe {
15476            &(*(::std::ptr::null::<nk_config_stack_style_item>())).head
15477                as *const _ as usize
15478        },
15479        0usize,
15480        concat!(
15481            "Offset of field: ",
15482            stringify!(nk_config_stack_style_item),
15483            "::",
15484            stringify!(head)
15485        )
15486    );
15487    assert_eq!(
15488        unsafe {
15489            &(*(::std::ptr::null::<nk_config_stack_style_item>())).elements
15490                as *const _ as usize
15491        },
15492        8usize,
15493        concat!(
15494            "Offset of field: ",
15495            stringify!(nk_config_stack_style_item),
15496            "::",
15497            stringify!(elements)
15498        )
15499    );
15500}
15501impl Default for nk_config_stack_style_item {
15502    fn default() -> Self {
15503        unsafe { ::std::mem::zeroed() }
15504    }
15505}
15506#[repr(C)]
15507#[derive(Debug, Copy, Clone)]
15508pub struct nk_config_stack_float {
15509    pub head: ::std::os::raw::c_int,
15510    pub elements: [nk_config_stack_float_element; 32usize],
15511}
15512#[test]
15513fn bindgen_test_layout_nk_config_stack_float() {
15514    assert_eq!(
15515        ::std::mem::size_of::<nk_config_stack_float>(),
15516        520usize,
15517        concat!("Size of: ", stringify!(nk_config_stack_float))
15518    );
15519    assert_eq!(
15520        ::std::mem::align_of::<nk_config_stack_float>(),
15521        8usize,
15522        concat!("Alignment of ", stringify!(nk_config_stack_float))
15523    );
15524    assert_eq!(
15525        unsafe {
15526            &(*(::std::ptr::null::<nk_config_stack_float>())).head as *const _
15527                as usize
15528        },
15529        0usize,
15530        concat!(
15531            "Offset of field: ",
15532            stringify!(nk_config_stack_float),
15533            "::",
15534            stringify!(head)
15535        )
15536    );
15537    assert_eq!(
15538        unsafe {
15539            &(*(::std::ptr::null::<nk_config_stack_float>())).elements
15540                as *const _ as usize
15541        },
15542        8usize,
15543        concat!(
15544            "Offset of field: ",
15545            stringify!(nk_config_stack_float),
15546            "::",
15547            stringify!(elements)
15548        )
15549    );
15550}
15551impl Default for nk_config_stack_float {
15552    fn default() -> Self {
15553        unsafe { ::std::mem::zeroed() }
15554    }
15555}
15556#[repr(C)]
15557#[derive(Debug, Copy, Clone)]
15558pub struct nk_config_stack_vec2 {
15559    pub head: ::std::os::raw::c_int,
15560    pub elements: [nk_config_stack_vec2_element; 16usize],
15561}
15562#[test]
15563fn bindgen_test_layout_nk_config_stack_vec2() {
15564    assert_eq!(
15565        ::std::mem::size_of::<nk_config_stack_vec2>(),
15566        264usize,
15567        concat!("Size of: ", stringify!(nk_config_stack_vec2))
15568    );
15569    assert_eq!(
15570        ::std::mem::align_of::<nk_config_stack_vec2>(),
15571        8usize,
15572        concat!("Alignment of ", stringify!(nk_config_stack_vec2))
15573    );
15574    assert_eq!(
15575        unsafe {
15576            &(*(::std::ptr::null::<nk_config_stack_vec2>())).head as *const _
15577                as usize
15578        },
15579        0usize,
15580        concat!(
15581            "Offset of field: ",
15582            stringify!(nk_config_stack_vec2),
15583            "::",
15584            stringify!(head)
15585        )
15586    );
15587    assert_eq!(
15588        unsafe {
15589            &(*(::std::ptr::null::<nk_config_stack_vec2>())).elements
15590                as *const _ as usize
15591        },
15592        8usize,
15593        concat!(
15594            "Offset of field: ",
15595            stringify!(nk_config_stack_vec2),
15596            "::",
15597            stringify!(elements)
15598        )
15599    );
15600}
15601impl Default for nk_config_stack_vec2 {
15602    fn default() -> Self {
15603        unsafe { ::std::mem::zeroed() }
15604    }
15605}
15606#[repr(C)]
15607#[derive(Debug, Copy, Clone)]
15608pub struct nk_config_stack_flags {
15609    pub head: ::std::os::raw::c_int,
15610    pub elements: [nk_config_stack_flags_element; 32usize],
15611}
15612#[test]
15613fn bindgen_test_layout_nk_config_stack_flags() {
15614    assert_eq!(
15615        ::std::mem::size_of::<nk_config_stack_flags>(),
15616        520usize,
15617        concat!("Size of: ", stringify!(nk_config_stack_flags))
15618    );
15619    assert_eq!(
15620        ::std::mem::align_of::<nk_config_stack_flags>(),
15621        8usize,
15622        concat!("Alignment of ", stringify!(nk_config_stack_flags))
15623    );
15624    assert_eq!(
15625        unsafe {
15626            &(*(::std::ptr::null::<nk_config_stack_flags>())).head as *const _
15627                as usize
15628        },
15629        0usize,
15630        concat!(
15631            "Offset of field: ",
15632            stringify!(nk_config_stack_flags),
15633            "::",
15634            stringify!(head)
15635        )
15636    );
15637    assert_eq!(
15638        unsafe {
15639            &(*(::std::ptr::null::<nk_config_stack_flags>())).elements
15640                as *const _ as usize
15641        },
15642        8usize,
15643        concat!(
15644            "Offset of field: ",
15645            stringify!(nk_config_stack_flags),
15646            "::",
15647            stringify!(elements)
15648        )
15649    );
15650}
15651impl Default for nk_config_stack_flags {
15652    fn default() -> Self {
15653        unsafe { ::std::mem::zeroed() }
15654    }
15655}
15656#[repr(C)]
15657#[derive(Debug, Copy, Clone)]
15658pub struct nk_config_stack_color {
15659    pub head: ::std::os::raw::c_int,
15660    pub elements: [nk_config_stack_color_element; 32usize],
15661}
15662#[test]
15663fn bindgen_test_layout_nk_config_stack_color() {
15664    assert_eq!(
15665        ::std::mem::size_of::<nk_config_stack_color>(),
15666        520usize,
15667        concat!("Size of: ", stringify!(nk_config_stack_color))
15668    );
15669    assert_eq!(
15670        ::std::mem::align_of::<nk_config_stack_color>(),
15671        8usize,
15672        concat!("Alignment of ", stringify!(nk_config_stack_color))
15673    );
15674    assert_eq!(
15675        unsafe {
15676            &(*(::std::ptr::null::<nk_config_stack_color>())).head as *const _
15677                as usize
15678        },
15679        0usize,
15680        concat!(
15681            "Offset of field: ",
15682            stringify!(nk_config_stack_color),
15683            "::",
15684            stringify!(head)
15685        )
15686    );
15687    assert_eq!(
15688        unsafe {
15689            &(*(::std::ptr::null::<nk_config_stack_color>())).elements
15690                as *const _ as usize
15691        },
15692        8usize,
15693        concat!(
15694            "Offset of field: ",
15695            stringify!(nk_config_stack_color),
15696            "::",
15697            stringify!(elements)
15698        )
15699    );
15700}
15701impl Default for nk_config_stack_color {
15702    fn default() -> Self {
15703        unsafe { ::std::mem::zeroed() }
15704    }
15705}
15706#[repr(C)]
15707#[derive(Debug, Copy, Clone)]
15708pub struct nk_config_stack_user_font {
15709    pub head: ::std::os::raw::c_int,
15710    pub elements: [nk_config_stack_user_font_element; 8usize],
15711}
15712#[test]
15713fn bindgen_test_layout_nk_config_stack_user_font() {
15714    assert_eq!(
15715        ::std::mem::size_of::<nk_config_stack_user_font>(),
15716        136usize,
15717        concat!("Size of: ", stringify!(nk_config_stack_user_font))
15718    );
15719    assert_eq!(
15720        ::std::mem::align_of::<nk_config_stack_user_font>(),
15721        8usize,
15722        concat!("Alignment of ", stringify!(nk_config_stack_user_font))
15723    );
15724    assert_eq!(
15725        unsafe {
15726            &(*(::std::ptr::null::<nk_config_stack_user_font>())).head
15727                as *const _ as usize
15728        },
15729        0usize,
15730        concat!(
15731            "Offset of field: ",
15732            stringify!(nk_config_stack_user_font),
15733            "::",
15734            stringify!(head)
15735        )
15736    );
15737    assert_eq!(
15738        unsafe {
15739            &(*(::std::ptr::null::<nk_config_stack_user_font>())).elements
15740                as *const _ as usize
15741        },
15742        8usize,
15743        concat!(
15744            "Offset of field: ",
15745            stringify!(nk_config_stack_user_font),
15746            "::",
15747            stringify!(elements)
15748        )
15749    );
15750}
15751impl Default for nk_config_stack_user_font {
15752    fn default() -> Self {
15753        unsafe { ::std::mem::zeroed() }
15754    }
15755}
15756#[repr(C)]
15757#[derive(Debug, Copy, Clone)]
15758pub struct nk_config_stack_button_behavior {
15759    pub head: ::std::os::raw::c_int,
15760    pub elements: [nk_config_stack_button_behavior_element; 8usize],
15761}
15762#[test]
15763fn bindgen_test_layout_nk_config_stack_button_behavior() {
15764    assert_eq!(
15765        ::std::mem::size_of::<nk_config_stack_button_behavior>(),
15766        136usize,
15767        concat!("Size of: ", stringify!(nk_config_stack_button_behavior))
15768    );
15769    assert_eq!(
15770        ::std::mem::align_of::<nk_config_stack_button_behavior>(),
15771        8usize,
15772        concat!("Alignment of ", stringify!(nk_config_stack_button_behavior))
15773    );
15774    assert_eq!(
15775        unsafe {
15776            &(*(::std::ptr::null::<nk_config_stack_button_behavior>())).head
15777                as *const _ as usize
15778        },
15779        0usize,
15780        concat!(
15781            "Offset of field: ",
15782            stringify!(nk_config_stack_button_behavior),
15783            "::",
15784            stringify!(head)
15785        )
15786    );
15787    assert_eq!(
15788        unsafe {
15789            &(*(::std::ptr::null::<nk_config_stack_button_behavior>())).elements
15790                as *const _ as usize
15791        },
15792        8usize,
15793        concat!(
15794            "Offset of field: ",
15795            stringify!(nk_config_stack_button_behavior),
15796            "::",
15797            stringify!(elements)
15798        )
15799    );
15800}
15801impl Default for nk_config_stack_button_behavior {
15802    fn default() -> Self {
15803        unsafe { ::std::mem::zeroed() }
15804    }
15805}
15806#[repr(C)]
15807#[derive(Copy, Clone)]
15808pub struct nk_configuration_stacks {
15809    pub style_items: nk_config_stack_style_item,
15810    pub floats: nk_config_stack_float,
15811    pub vectors: nk_config_stack_vec2,
15812    pub flags: nk_config_stack_flags,
15813    pub colors: nk_config_stack_color,
15814    pub fonts: nk_config_stack_user_font,
15815    pub button_behaviors: nk_config_stack_button_behavior,
15816}
15817#[test]
15818fn bindgen_test_layout_nk_configuration_stacks() {
15819    assert_eq!(
15820        ::std::mem::size_of::<nk_configuration_stacks>(),
15821        2744usize,
15822        concat!("Size of: ", stringify!(nk_configuration_stacks))
15823    );
15824    assert_eq!(
15825        ::std::mem::align_of::<nk_configuration_stacks>(),
15826        8usize,
15827        concat!("Alignment of ", stringify!(nk_configuration_stacks))
15828    );
15829    assert_eq!(
15830        unsafe {
15831            &(*(::std::ptr::null::<nk_configuration_stacks>())).style_items
15832                as *const _ as usize
15833        },
15834        0usize,
15835        concat!(
15836            "Offset of field: ",
15837            stringify!(nk_configuration_stacks),
15838            "::",
15839            stringify!(style_items)
15840        )
15841    );
15842    assert_eq!(
15843        unsafe {
15844            &(*(::std::ptr::null::<nk_configuration_stacks>())).floats
15845                as *const _ as usize
15846        },
15847        648usize,
15848        concat!(
15849            "Offset of field: ",
15850            stringify!(nk_configuration_stacks),
15851            "::",
15852            stringify!(floats)
15853        )
15854    );
15855    assert_eq!(
15856        unsafe {
15857            &(*(::std::ptr::null::<nk_configuration_stacks>())).vectors
15858                as *const _ as usize
15859        },
15860        1168usize,
15861        concat!(
15862            "Offset of field: ",
15863            stringify!(nk_configuration_stacks),
15864            "::",
15865            stringify!(vectors)
15866        )
15867    );
15868    assert_eq!(
15869        unsafe {
15870            &(*(::std::ptr::null::<nk_configuration_stacks>())).flags
15871                as *const _ as usize
15872        },
15873        1432usize,
15874        concat!(
15875            "Offset of field: ",
15876            stringify!(nk_configuration_stacks),
15877            "::",
15878            stringify!(flags)
15879        )
15880    );
15881    assert_eq!(
15882        unsafe {
15883            &(*(::std::ptr::null::<nk_configuration_stacks>())).colors
15884                as *const _ as usize
15885        },
15886        1952usize,
15887        concat!(
15888            "Offset of field: ",
15889            stringify!(nk_configuration_stacks),
15890            "::",
15891            stringify!(colors)
15892        )
15893    );
15894    assert_eq!(
15895        unsafe {
15896            &(*(::std::ptr::null::<nk_configuration_stacks>())).fonts
15897                as *const _ as usize
15898        },
15899        2472usize,
15900        concat!(
15901            "Offset of field: ",
15902            stringify!(nk_configuration_stacks),
15903            "::",
15904            stringify!(fonts)
15905        )
15906    );
15907    assert_eq!(
15908        unsafe {
15909            &(*(::std::ptr::null::<nk_configuration_stacks>())).button_behaviors
15910                as *const _ as usize
15911        },
15912        2608usize,
15913        concat!(
15914            "Offset of field: ",
15915            stringify!(nk_configuration_stacks),
15916            "::",
15917            stringify!(button_behaviors)
15918        )
15919    );
15920}
15921impl Default for nk_configuration_stacks {
15922    fn default() -> Self {
15923        unsafe { ::std::mem::zeroed() }
15924    }
15925}
15926#[repr(C)]
15927#[derive(Copy, Clone)]
15928pub struct nk_table {
15929    pub seq: ::std::os::raw::c_uint,
15930    pub size: ::std::os::raw::c_uint,
15931    pub keys: [nk_hash; 56usize],
15932    pub values: [nk_uint; 56usize],
15933    pub next: *mut nk_table,
15934    pub prev: *mut nk_table,
15935}
15936#[test]
15937fn bindgen_test_layout_nk_table() {
15938    assert_eq!(
15939        ::std::mem::size_of::<nk_table>(),
15940        472usize,
15941        concat!("Size of: ", stringify!(nk_table))
15942    );
15943    assert_eq!(
15944        ::std::mem::align_of::<nk_table>(),
15945        8usize,
15946        concat!("Alignment of ", stringify!(nk_table))
15947    );
15948    assert_eq!(
15949        unsafe {
15950            &(*(::std::ptr::null::<nk_table>())).seq as *const _ as usize
15951        },
15952        0usize,
15953        concat!(
15954            "Offset of field: ",
15955            stringify!(nk_table),
15956            "::",
15957            stringify!(seq)
15958        )
15959    );
15960    assert_eq!(
15961        unsafe {
15962            &(*(::std::ptr::null::<nk_table>())).size as *const _ as usize
15963        },
15964        4usize,
15965        concat!(
15966            "Offset of field: ",
15967            stringify!(nk_table),
15968            "::",
15969            stringify!(size)
15970        )
15971    );
15972    assert_eq!(
15973        unsafe {
15974            &(*(::std::ptr::null::<nk_table>())).keys as *const _ as usize
15975        },
15976        8usize,
15977        concat!(
15978            "Offset of field: ",
15979            stringify!(nk_table),
15980            "::",
15981            stringify!(keys)
15982        )
15983    );
15984    assert_eq!(
15985        unsafe {
15986            &(*(::std::ptr::null::<nk_table>())).values as *const _ as usize
15987        },
15988        232usize,
15989        concat!(
15990            "Offset of field: ",
15991            stringify!(nk_table),
15992            "::",
15993            stringify!(values)
15994        )
15995    );
15996    assert_eq!(
15997        unsafe {
15998            &(*(::std::ptr::null::<nk_table>())).next as *const _ as usize
15999        },
16000        456usize,
16001        concat!(
16002            "Offset of field: ",
16003            stringify!(nk_table),
16004            "::",
16005            stringify!(next)
16006        )
16007    );
16008    assert_eq!(
16009        unsafe {
16010            &(*(::std::ptr::null::<nk_table>())).prev as *const _ as usize
16011        },
16012        464usize,
16013        concat!(
16014            "Offset of field: ",
16015            stringify!(nk_table),
16016            "::",
16017            stringify!(prev)
16018        )
16019    );
16020}
16021impl Default for nk_table {
16022    fn default() -> Self {
16023        unsafe { ::std::mem::zeroed() }
16024    }
16025}
16026#[repr(C)]
16027#[derive(Copy, Clone)]
16028pub union nk_page_data {
16029    pub tbl: nk_table,
16030    pub pan: nk_panel,
16031    pub win: nk_window,
16032    _bindgen_union_align: [BindgenAlign; 59usize],
16033}
16034#[test]
16035fn bindgen_test_layout_nk_page_data() {
16036    assert_eq!(
16037        ::std::mem::size_of::<nk_page_data>(),
16038        472usize,
16039        concat!("Size of: ", stringify!(nk_page_data))
16040    );
16041    assert_eq!(
16042        ::std::mem::align_of::<nk_page_data>(),
16043        8usize,
16044        concat!("Alignment of ", stringify!(nk_page_data))
16045    );
16046    assert_eq!(
16047        unsafe {
16048            &(*(::std::ptr::null::<nk_page_data>())).tbl as *const _ as usize
16049        },
16050        0usize,
16051        concat!(
16052            "Offset of field: ",
16053            stringify!(nk_page_data),
16054            "::",
16055            stringify!(tbl)
16056        )
16057    );
16058    assert_eq!(
16059        unsafe {
16060            &(*(::std::ptr::null::<nk_page_data>())).pan as *const _ as usize
16061        },
16062        0usize,
16063        concat!(
16064            "Offset of field: ",
16065            stringify!(nk_page_data),
16066            "::",
16067            stringify!(pan)
16068        )
16069    );
16070    assert_eq!(
16071        unsafe {
16072            &(*(::std::ptr::null::<nk_page_data>())).win as *const _ as usize
16073        },
16074        0usize,
16075        concat!(
16076            "Offset of field: ",
16077            stringify!(nk_page_data),
16078            "::",
16079            stringify!(win)
16080        )
16081    );
16082}
16083impl Default for nk_page_data {
16084    fn default() -> Self {
16085        unsafe { ::std::mem::zeroed() }
16086    }
16087}
16088#[repr(C)]
16089#[derive(Copy, Clone)]
16090pub struct nk_page_element {
16091    pub data: nk_page_data,
16092    pub next: *mut nk_page_element,
16093    pub prev: *mut nk_page_element,
16094}
16095#[test]
16096fn bindgen_test_layout_nk_page_element() {
16097    assert_eq!(
16098        ::std::mem::size_of::<nk_page_element>(),
16099        488usize,
16100        concat!("Size of: ", stringify!(nk_page_element))
16101    );
16102    assert_eq!(
16103        ::std::mem::align_of::<nk_page_element>(),
16104        8usize,
16105        concat!("Alignment of ", stringify!(nk_page_element))
16106    );
16107    assert_eq!(
16108        unsafe {
16109            &(*(::std::ptr::null::<nk_page_element>())).data as *const _
16110                as usize
16111        },
16112        0usize,
16113        concat!(
16114            "Offset of field: ",
16115            stringify!(nk_page_element),
16116            "::",
16117            stringify!(data)
16118        )
16119    );
16120    assert_eq!(
16121        unsafe {
16122            &(*(::std::ptr::null::<nk_page_element>())).next as *const _
16123                as usize
16124        },
16125        472usize,
16126        concat!(
16127            "Offset of field: ",
16128            stringify!(nk_page_element),
16129            "::",
16130            stringify!(next)
16131        )
16132    );
16133    assert_eq!(
16134        unsafe {
16135            &(*(::std::ptr::null::<nk_page_element>())).prev as *const _
16136                as usize
16137        },
16138        480usize,
16139        concat!(
16140            "Offset of field: ",
16141            stringify!(nk_page_element),
16142            "::",
16143            stringify!(prev)
16144        )
16145    );
16146}
16147impl Default for nk_page_element {
16148    fn default() -> Self {
16149        unsafe { ::std::mem::zeroed() }
16150    }
16151}
16152#[repr(C)]
16153#[derive(Copy, Clone)]
16154pub struct nk_page {
16155    pub size: ::std::os::raw::c_uint,
16156    pub next: *mut nk_page,
16157    pub win: [nk_page_element; 1usize],
16158}
16159#[test]
16160fn bindgen_test_layout_nk_page() {
16161    assert_eq!(
16162        ::std::mem::size_of::<nk_page>(),
16163        504usize,
16164        concat!("Size of: ", stringify!(nk_page))
16165    );
16166    assert_eq!(
16167        ::std::mem::align_of::<nk_page>(),
16168        8usize,
16169        concat!("Alignment of ", stringify!(nk_page))
16170    );
16171    assert_eq!(
16172        unsafe {
16173            &(*(::std::ptr::null::<nk_page>())).size as *const _ as usize
16174        },
16175        0usize,
16176        concat!(
16177            "Offset of field: ",
16178            stringify!(nk_page),
16179            "::",
16180            stringify!(size)
16181        )
16182    );
16183    assert_eq!(
16184        unsafe {
16185            &(*(::std::ptr::null::<nk_page>())).next as *const _ as usize
16186        },
16187        8usize,
16188        concat!(
16189            "Offset of field: ",
16190            stringify!(nk_page),
16191            "::",
16192            stringify!(next)
16193        )
16194    );
16195    assert_eq!(
16196        unsafe { &(*(::std::ptr::null::<nk_page>())).win as *const _ as usize },
16197        16usize,
16198        concat!(
16199            "Offset of field: ",
16200            stringify!(nk_page),
16201            "::",
16202            stringify!(win)
16203        )
16204    );
16205}
16206impl Default for nk_page {
16207    fn default() -> Self {
16208        unsafe { ::std::mem::zeroed() }
16209    }
16210}
16211#[repr(C)]
16212#[derive(Copy, Clone)]
16213pub struct nk_pool {
16214    pub alloc: nk_allocator,
16215    pub type_: nk_allocation_type,
16216    pub page_count: ::std::os::raw::c_uint,
16217    pub pages: *mut nk_page,
16218    pub freelist: *mut nk_page_element,
16219    pub capacity: ::std::os::raw::c_uint,
16220    pub size: nk_size,
16221    pub cap: nk_size,
16222}
16223#[test]
16224fn bindgen_test_layout_nk_pool() {
16225    assert_eq!(
16226        ::std::mem::size_of::<nk_pool>(),
16227        64usize,
16228        concat!("Size of: ", stringify!(nk_pool))
16229    );
16230    assert_eq!(
16231        ::std::mem::align_of::<nk_pool>(),
16232        8usize,
16233        concat!("Alignment of ", stringify!(nk_pool))
16234    );
16235    assert_eq!(
16236        unsafe {
16237            &(*(::std::ptr::null::<nk_pool>())).alloc as *const _ as usize
16238        },
16239        0usize,
16240        concat!(
16241            "Offset of field: ",
16242            stringify!(nk_pool),
16243            "::",
16244            stringify!(alloc)
16245        )
16246    );
16247    assert_eq!(
16248        unsafe {
16249            &(*(::std::ptr::null::<nk_pool>())).type_ as *const _ as usize
16250        },
16251        24usize,
16252        concat!(
16253            "Offset of field: ",
16254            stringify!(nk_pool),
16255            "::",
16256            stringify!(type_)
16257        )
16258    );
16259    assert_eq!(
16260        unsafe {
16261            &(*(::std::ptr::null::<nk_pool>())).page_count as *const _ as usize
16262        },
16263        28usize,
16264        concat!(
16265            "Offset of field: ",
16266            stringify!(nk_pool),
16267            "::",
16268            stringify!(page_count)
16269        )
16270    );
16271    assert_eq!(
16272        unsafe {
16273            &(*(::std::ptr::null::<nk_pool>())).pages as *const _ as usize
16274        },
16275        32usize,
16276        concat!(
16277            "Offset of field: ",
16278            stringify!(nk_pool),
16279            "::",
16280            stringify!(pages)
16281        )
16282    );
16283    assert_eq!(
16284        unsafe {
16285            &(*(::std::ptr::null::<nk_pool>())).freelist as *const _ as usize
16286        },
16287        40usize,
16288        concat!(
16289            "Offset of field: ",
16290            stringify!(nk_pool),
16291            "::",
16292            stringify!(freelist)
16293        )
16294    );
16295    assert_eq!(
16296        unsafe {
16297            &(*(::std::ptr::null::<nk_pool>())).capacity as *const _ as usize
16298        },
16299        48usize,
16300        concat!(
16301            "Offset of field: ",
16302            stringify!(nk_pool),
16303            "::",
16304            stringify!(capacity)
16305        )
16306    );
16307    assert_eq!(
16308        unsafe {
16309            &(*(::std::ptr::null::<nk_pool>())).size as *const _ as usize
16310        },
16311        52usize,
16312        concat!(
16313            "Offset of field: ",
16314            stringify!(nk_pool),
16315            "::",
16316            stringify!(size)
16317        )
16318    );
16319    assert_eq!(
16320        unsafe { &(*(::std::ptr::null::<nk_pool>())).cap as *const _ as usize },
16321        56usize,
16322        concat!(
16323            "Offset of field: ",
16324            stringify!(nk_pool),
16325            "::",
16326            stringify!(cap)
16327        )
16328    );
16329}
16330impl Default for nk_pool {
16331    fn default() -> Self {
16332        unsafe { ::std::mem::zeroed() }
16333    }
16334}
16335#[repr(C)]
16336#[derive(Copy, Clone)]
16337pub struct nk_context {
16338    pub input: nk_input,
16339    pub style: nk_style,
16340    pub memory: nk_buffer,
16341    pub clip: nk_clipboard,
16342    pub last_widget_state: nk_flags,
16343    pub button_behavior: nk_button_behavior,
16344    pub stacks: nk_configuration_stacks,
16345    pub delta_time_seconds: f32,
16346    pub draw_list: nk_draw_list,
16347    pub userdata: nk_handle,
16348    pub text_edit: nk_text_edit,
16349    pub overlay: nk_command_buffer,
16350    pub build: ::std::os::raw::c_int,
16351    pub use_pool: ::std::os::raw::c_int,
16352    pub pool: nk_pool,
16353    pub begin: *mut nk_window,
16354    pub end: *mut nk_window,
16355    pub active: *mut nk_window,
16356    pub current: *mut nk_window,
16357    pub freelist: *mut nk_page_element,
16358    pub count: ::std::os::raw::c_uint,
16359    pub seq: ::std::os::raw::c_uint,
16360}
16361#[test]
16362fn bindgen_test_layout_nk_context() {
16363    assert_eq!(
16364        ::std::mem::size_of::<nk_context>(),
16365        16544usize,
16366        concat!("Size of: ", stringify!(nk_context))
16367    );
16368    assert_eq!(
16369        ::std::mem::align_of::<nk_context>(),
16370        8usize,
16371        concat!("Alignment of ", stringify!(nk_context))
16372    );
16373    assert_eq!(
16374        unsafe {
16375            &(*(::std::ptr::null::<nk_context>())).input as *const _ as usize
16376        },
16377        0usize,
16378        concat!(
16379            "Offset of field: ",
16380            stringify!(nk_context),
16381            "::",
16382            stringify!(input)
16383        )
16384    );
16385    assert_eq!(
16386        unsafe {
16387            &(*(::std::ptr::null::<nk_context>())).style as *const _ as usize
16388        },
16389        360usize,
16390        concat!(
16391            "Offset of field: ",
16392            stringify!(nk_context),
16393            "::",
16394            stringify!(style)
16395        )
16396    );
16397    assert_eq!(
16398        unsafe {
16399            &(*(::std::ptr::null::<nk_context>())).memory as *const _ as usize
16400        },
16401        7904usize,
16402        concat!(
16403            "Offset of field: ",
16404            stringify!(nk_context),
16405            "::",
16406            stringify!(memory)
16407        )
16408    );
16409    assert_eq!(
16410        unsafe {
16411            &(*(::std::ptr::null::<nk_context>())).clip as *const _ as usize
16412        },
16413        7992usize,
16414        concat!(
16415            "Offset of field: ",
16416            stringify!(nk_context),
16417            "::",
16418            stringify!(clip)
16419        )
16420    );
16421    assert_eq!(
16422        unsafe {
16423            &(*(::std::ptr::null::<nk_context>())).last_widget_state as *const _
16424                as usize
16425        },
16426        8016usize,
16427        concat!(
16428            "Offset of field: ",
16429            stringify!(nk_context),
16430            "::",
16431            stringify!(last_widget_state)
16432        )
16433    );
16434    assert_eq!(
16435        unsafe {
16436            &(*(::std::ptr::null::<nk_context>())).button_behavior as *const _
16437                as usize
16438        },
16439        8020usize,
16440        concat!(
16441            "Offset of field: ",
16442            stringify!(nk_context),
16443            "::",
16444            stringify!(button_behavior)
16445        )
16446    );
16447    assert_eq!(
16448        unsafe {
16449            &(*(::std::ptr::null::<nk_context>())).stacks as *const _ as usize
16450        },
16451        8024usize,
16452        concat!(
16453            "Offset of field: ",
16454            stringify!(nk_context),
16455            "::",
16456            stringify!(stacks)
16457        )
16458    );
16459    assert_eq!(
16460        unsafe {
16461            &(*(::std::ptr::null::<nk_context>())).delta_time_seconds
16462                as *const _ as usize
16463        },
16464        10768usize,
16465        concat!(
16466            "Offset of field: ",
16467            stringify!(nk_context),
16468            "::",
16469            stringify!(delta_time_seconds)
16470        )
16471    );
16472    assert_eq!(
16473        unsafe {
16474            &(*(::std::ptr::null::<nk_context>())).draw_list as *const _
16475                as usize
16476        },
16477        10776usize,
16478        concat!(
16479            "Offset of field: ",
16480            stringify!(nk_context),
16481            "::",
16482            stringify!(draw_list)
16483        )
16484    );
16485    assert_eq!(
16486        unsafe {
16487            &(*(::std::ptr::null::<nk_context>())).userdata as *const _ as usize
16488        },
16489        11008usize,
16490        concat!(
16491            "Offset of field: ",
16492            stringify!(nk_context),
16493            "::",
16494            stringify!(userdata)
16495        )
16496    );
16497    assert_eq!(
16498        unsafe {
16499            &(*(::std::ptr::null::<nk_context>())).text_edit as *const _
16500                as usize
16501        },
16502        11016usize,
16503        concat!(
16504            "Offset of field: ",
16505            stringify!(nk_context),
16506            "::",
16507            stringify!(text_edit)
16508        )
16509    );
16510    assert_eq!(
16511        unsafe {
16512            &(*(::std::ptr::null::<nk_context>())).overlay as *const _ as usize
16513        },
16514        16368usize,
16515        concat!(
16516            "Offset of field: ",
16517            stringify!(nk_context),
16518            "::",
16519            stringify!(overlay)
16520        )
16521    );
16522    assert_eq!(
16523        unsafe {
16524            &(*(::std::ptr::null::<nk_context>())).build as *const _ as usize
16525        },
16526        16424usize,
16527        concat!(
16528            "Offset of field: ",
16529            stringify!(nk_context),
16530            "::",
16531            stringify!(build)
16532        )
16533    );
16534    assert_eq!(
16535        unsafe {
16536            &(*(::std::ptr::null::<nk_context>())).use_pool as *const _ as usize
16537        },
16538        16428usize,
16539        concat!(
16540            "Offset of field: ",
16541            stringify!(nk_context),
16542            "::",
16543            stringify!(use_pool)
16544        )
16545    );
16546    assert_eq!(
16547        unsafe {
16548            &(*(::std::ptr::null::<nk_context>())).pool as *const _ as usize
16549        },
16550        16432usize,
16551        concat!(
16552            "Offset of field: ",
16553            stringify!(nk_context),
16554            "::",
16555            stringify!(pool)
16556        )
16557    );
16558    assert_eq!(
16559        unsafe {
16560            &(*(::std::ptr::null::<nk_context>())).begin as *const _ as usize
16561        },
16562        16496usize,
16563        concat!(
16564            "Offset of field: ",
16565            stringify!(nk_context),
16566            "::",
16567            stringify!(begin)
16568        )
16569    );
16570    assert_eq!(
16571        unsafe {
16572            &(*(::std::ptr::null::<nk_context>())).end as *const _ as usize
16573        },
16574        16504usize,
16575        concat!(
16576            "Offset of field: ",
16577            stringify!(nk_context),
16578            "::",
16579            stringify!(end)
16580        )
16581    );
16582    assert_eq!(
16583        unsafe {
16584            &(*(::std::ptr::null::<nk_context>())).active as *const _ as usize
16585        },
16586        16512usize,
16587        concat!(
16588            "Offset of field: ",
16589            stringify!(nk_context),
16590            "::",
16591            stringify!(active)
16592        )
16593    );
16594    assert_eq!(
16595        unsafe {
16596            &(*(::std::ptr::null::<nk_context>())).current as *const _ as usize
16597        },
16598        16520usize,
16599        concat!(
16600            "Offset of field: ",
16601            stringify!(nk_context),
16602            "::",
16603            stringify!(current)
16604        )
16605    );
16606    assert_eq!(
16607        unsafe {
16608            &(*(::std::ptr::null::<nk_context>())).freelist as *const _ as usize
16609        },
16610        16528usize,
16611        concat!(
16612            "Offset of field: ",
16613            stringify!(nk_context),
16614            "::",
16615            stringify!(freelist)
16616        )
16617    );
16618    assert_eq!(
16619        unsafe {
16620            &(*(::std::ptr::null::<nk_context>())).count as *const _ as usize
16621        },
16622        16536usize,
16623        concat!(
16624            "Offset of field: ",
16625            stringify!(nk_context),
16626            "::",
16627            stringify!(count)
16628        )
16629    );
16630    assert_eq!(
16631        unsafe {
16632            &(*(::std::ptr::null::<nk_context>())).seq as *const _ as usize
16633        },
16634        16540usize,
16635        concat!(
16636            "Offset of field: ",
16637            stringify!(nk_context),
16638            "::",
16639            stringify!(seq)
16640        )
16641    );
16642}
16643impl Default for nk_context {
16644    fn default() -> Self {
16645        unsafe { ::std::mem::zeroed() }
16646    }
16647}