nuki_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(
3    dead_code,
4    non_camel_case_types,
5    non_upper_case_globals,
6    non_snake_case
7)]
8use std::fmt::Debug;
9/* automatically generated by rust-bindgen */
10
11pub const NK_UNDEFINED: f64 = -1.0;
12pub const NK_UTF_INVALID: u32 = 65533;
13pub const NK_UTF_SIZE: u32 = 4;
14pub const NK_INPUT_MAX: u32 = 16;
15pub const NK_MAX_NUMBER_BUFFER: u32 = 64;
16pub const NK_SCROLLBAR_HIDING_TIMEOUT: f64 = 4.0;
17pub const NK_TEXTEDIT_UNDOSTATECOUNT: u32 = 99;
18pub const NK_TEXTEDIT_UNDOCHARCOUNT: u32 = 999;
19pub const NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS: u32 = 16;
20pub const NK_CHART_MAX_SLOT: u32 = 4;
21pub const NK_WINDOW_MAX_NAME: u32 = 64;
22pub const NK_BUTTON_BEHAVIOR_STACK_SIZE: u32 = 8;
23pub const NK_FONT_STACK_SIZE: u32 = 8;
24pub const NK_STYLE_ITEM_STACK_SIZE: u32 = 16;
25pub const NK_FLOAT_STACK_SIZE: u32 = 32;
26pub const NK_VECTOR_STACK_SIZE: u32 = 16;
27pub const NK_FLAGS_STACK_SIZE: u32 = 32;
28pub const NK_COLOR_STACK_SIZE: u32 = 32;
29pub const NK_PI: f64 = ::std::f64::consts::PI;
30pub const NK_MAX_FLOAT_PRECISION: u32 = 2;
31pub type nk_char = ::std::os::raw::c_schar;
32pub type nk_uchar = ::std::os::raw::c_uchar;
33pub type nk_byte = ::std::os::raw::c_uchar;
34pub type nk_short = ::std::os::raw::c_short;
35pub type nk_ushort = ::std::os::raw::c_ushort;
36pub type nk_int = ::std::os::raw::c_int;
37pub type nk_uint = ::std::os::raw::c_uint;
38pub type nk_size = usize;
39pub type nk_ptr = usize;
40pub type nk_hash = nk_uint;
41pub type nk_flags = nk_uint;
42pub type nk_rune = nk_uint;
43pub type _dummy_array415 = [::std::os::raw::c_char; 1usize];
44pub type _dummy_array416 = [::std::os::raw::c_char; 1usize];
45pub type _dummy_array417 = [::std::os::raw::c_char; 1usize];
46pub type _dummy_array418 = [::std::os::raw::c_char; 1usize];
47pub type _dummy_array419 = [::std::os::raw::c_char; 1usize];
48pub type _dummy_array420 = [::std::os::raw::c_char; 1usize];
49pub type _dummy_array421 = [::std::os::raw::c_char; 1usize];
50pub type _dummy_array422 = [::std::os::raw::c_char; 1usize];
51pub type _dummy_array423 = [::std::os::raw::c_char; 1usize];
52#[repr(C)]
53#[derive(Debug, Copy, Clone)]
54pub struct nk_style_slide {
55    _unused: [u8; 0],
56}
57pub const nk_false: _bindgen_ty_1 = 0;
58pub const nk_true: _bindgen_ty_1 = 1;
59pub type _bindgen_ty_1 = u32;
60#[repr(C)]
61#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
62pub struct nk_color {
63    pub r: nk_byte,
64    pub g: nk_byte,
65    pub b: nk_byte,
66    pub a: nk_byte,
67}
68impl From<u32> for nk_color {
69    fn from(v: u32) -> Self {
70        let v = v.to_be_bytes();
71        nk_color {
72            r: v[0],
73            g: v[1],
74            b: v[2],
75            a: v[3],
76        }
77    }
78}
79impl From<[u8; 4usize]> for nk_color {
80    fn from(v: [u8; 4usize]) -> Self {
81        nk_color {
82            r: v[0],
83            g: v[1],
84            b: v[2],
85            a: v[3],
86        }
87    }
88}
89impl From<(u8, u8, u8, u8)> for nk_color {
90    fn from(v: (u8, u8, u8, u8)) -> Self {
91        nk_color {
92            r: v.0,
93            g: v.1,
94            b: v.2,
95            a: v.3,
96        }
97    }
98}
99impl From<(f32, f32, f32, f32)> for nk_color {
100    fn from(v: (f32, f32, f32, f32)) -> Self {
101        nk_color {
102            r: (v.0 * 255.0).round() as u8,
103            g: (v.1 * 255.0).round() as u8,
104            b: (v.2 * 255.0).round() as u8,
105            a: (v.3 * 255.0).round() as u8,
106        }
107    }
108}
109impl From<nk_color> for u32 {
110    fn from(v: nk_color) -> Self {
111        u32::from_be_bytes([v.r, v.g, v.b, v.a])
112    }
113}
114impl From<nk_color> for [u8; 4usize] {
115    fn from(v: nk_color) -> Self {
116        [v.r, v.g, v.b, v.a]
117    }
118}
119impl From<nk_color> for (u8, u8, u8, u8) {
120    fn from(v: nk_color) -> Self {
121        (v.r, v.g, v.b, v.a)
122    }
123}
124impl From<nk_color> for (f32, f32, f32, f32) {
125    fn from(v: nk_color) -> Self {
126        (
127            v.r as f32 / 255.0,
128            v.g as f32 / 255.0,
129            v.b as f32 / 255.0,
130            v.a as f32 / 255.0,
131        )
132    }
133}
134impl nk_color {
135    pub fn inverted(&self) -> Self {
136        Self {
137            r: 255 - self.r,
138            g: 255 - self.g,
139            b: 255 - self.b,
140            a: self.a,
141        }
142    }
143
144    #[inline]
145    pub fn rgb_f(r: f32, g: f32, b: f32) -> Self {
146        unsafe { nk_rgb_f(r, g, b) }
147    }
148}
149#[test]
150fn bindgen_test_layout_nk_color() {
151    assert_eq!(
152        ::std::mem::size_of::<nk_color>(),
153        4usize,
154        concat!("Size of: ", stringify!(nk_color))
155    );
156    assert_eq!(
157        ::std::mem::align_of::<nk_color>(),
158        1usize,
159        concat!("Alignment of ", stringify!(nk_color))
160    );
161    assert_eq!(
162        unsafe { &(*(::std::ptr::null::<nk_color>())).r as *const _ as usize },
163        0usize,
164        concat!(
165            "Offset of field: ",
166            stringify!(nk_color),
167            "::",
168            stringify!(r)
169        )
170    );
171    assert_eq!(
172        unsafe { &(*(::std::ptr::null::<nk_color>())).g as *const _ as usize },
173        1usize,
174        concat!(
175            "Offset of field: ",
176            stringify!(nk_color),
177            "::",
178            stringify!(g)
179        )
180    );
181    assert_eq!(
182        unsafe { &(*(::std::ptr::null::<nk_color>())).b as *const _ as usize },
183        2usize,
184        concat!(
185            "Offset of field: ",
186            stringify!(nk_color),
187            "::",
188            stringify!(b)
189        )
190    );
191    assert_eq!(
192        unsafe { &(*(::std::ptr::null::<nk_color>())).a as *const _ as usize },
193        3usize,
194        concat!(
195            "Offset of field: ",
196            stringify!(nk_color),
197            "::",
198            stringify!(a)
199        )
200    );
201}
202#[repr(C)]
203#[derive(Debug, Default, Copy, Clone)]
204pub struct nk_colorf {
205    pub r: f32,
206    pub g: f32,
207    pub b: f32,
208    pub a: f32,
209}
210#[test]
211fn bindgen_test_layout_nk_colorf() {
212    assert_eq!(
213        ::std::mem::size_of::<nk_colorf>(),
214        16usize,
215        concat!("Size of: ", stringify!(nk_colorf))
216    );
217    assert_eq!(
218        ::std::mem::align_of::<nk_colorf>(),
219        4usize,
220        concat!("Alignment of ", stringify!(nk_colorf))
221    );
222    assert_eq!(
223        unsafe { &(*(::std::ptr::null::<nk_colorf>())).r as *const _ as usize },
224        0usize,
225        concat!(
226            "Offset of field: ",
227            stringify!(nk_colorf),
228            "::",
229            stringify!(r)
230        )
231    );
232    assert_eq!(
233        unsafe { &(*(::std::ptr::null::<nk_colorf>())).g as *const _ as usize },
234        4usize,
235        concat!(
236            "Offset of field: ",
237            stringify!(nk_colorf),
238            "::",
239            stringify!(g)
240        )
241    );
242    assert_eq!(
243        unsafe { &(*(::std::ptr::null::<nk_colorf>())).b as *const _ as usize },
244        8usize,
245        concat!(
246            "Offset of field: ",
247            stringify!(nk_colorf),
248            "::",
249            stringify!(b)
250        )
251    );
252    assert_eq!(
253        unsafe { &(*(::std::ptr::null::<nk_colorf>())).a as *const _ as usize },
254        12usize,
255        concat!(
256            "Offset of field: ",
257            stringify!(nk_colorf),
258            "::",
259            stringify!(a)
260        )
261    );
262}
263#[repr(C)]
264#[derive(Debug, Default, Copy, Clone)]
265pub struct nk_vec2 {
266    pub x: f32,
267    pub y: f32,
268}
269impl From<nk_vec2i> for nk_vec2 {
270    fn from(v: nk_vec2i) -> nk_vec2 {
271        nk_vec2 {
272            x: v.x as f32,
273            y: v.y as f32,
274        }
275    }
276}
277impl From<(f32, f32)> for nk_vec2 {
278    fn from((x, y): (f32, f32)) -> nk_vec2 {
279        nk_vec2 { x, y }
280    }
281}
282impl From<(i16, i16)> for nk_vec2 {
283    fn from((x, y): (i16, i16)) -> nk_vec2 {
284        nk_vec2 {
285            x: x as f32,
286            y: y as f32,
287        }
288    }
289}
290impl From<(i32, i32)> for nk_vec2 {
291    fn from((x, y): (i32, i32)) -> nk_vec2 {
292        nk_vec2 {
293            x: x as f32,
294            y: y as f32,
295        }
296    }
297}
298impl From<[f32; 2usize]> for nk_vec2 {
299    fn from(v: [f32; 2usize]) -> nk_vec2 {
300        nk_vec2 { x: v[0], y: v[1] }
301    }
302}
303impl From<[i16; 2usize]> for nk_vec2 {
304    fn from(v: [i16; 2usize]) -> nk_vec2 {
305        nk_vec2 {
306            x: v[0] as f32,
307            y: v[1] as f32,
308        }
309    }
310}
311impl From<[i32; 2usize]> for nk_vec2 {
312    fn from(v: [i32; 2usize]) -> nk_vec2 {
313        nk_vec2 {
314            x: v[0] as f32,
315            y: v[1] as f32,
316        }
317    }
318}
319impl From<nk_vec2> for (f32, f32) {
320    fn from(v: nk_vec2) -> (f32, f32) {
321        (v.x, v.y)
322    }
323}
324impl From<nk_vec2> for (i16, i16) {
325    fn from(v: nk_vec2) -> (i16, i16) {
326        (v.x as i16, v.y as i16)
327    }
328}
329impl From<nk_vec2> for (i32, i32) {
330    fn from(v: nk_vec2) -> (i32, i32) {
331        (v.x as i32, v.y as i32)
332    }
333}
334impl From<nk_vec2> for [f32; 2usize] {
335    fn from(v: nk_vec2) -> [f32; 2usize] {
336        [v.x, v.y]
337    }
338}
339impl From<nk_vec2> for [i16; 2usize] {
340    fn from(v: nk_vec2) -> [i16; 2usize] {
341        [v.x as i16, v.y as i16]
342    }
343}
344impl From<nk_vec2> for [i32; 2usize] {
345    fn from(v: nk_vec2) -> [i32; 2usize] {
346        [v.x as i32, v.y as i32]
347    }
348}
349#[test]
350fn bindgen_test_layout_nk_vec2() {
351    assert_eq!(
352        ::std::mem::size_of::<nk_vec2>(),
353        8usize,
354        concat!("Size of: ", stringify!(nk_vec2))
355    );
356    assert_eq!(
357        ::std::mem::align_of::<nk_vec2>(),
358        4usize,
359        concat!("Alignment of ", stringify!(nk_vec2))
360    );
361    assert_eq!(
362        unsafe { &(*(::std::ptr::null::<nk_vec2>())).x as *const _ as usize },
363        0usize,
364        concat!(
365            "Offset of field: ",
366            stringify!(nk_vec2),
367            "::",
368            stringify!(x)
369        )
370    );
371    assert_eq!(
372        unsafe { &(*(::std::ptr::null::<nk_vec2>())).y as *const _ as usize },
373        4usize,
374        concat!(
375            "Offset of field: ",
376            stringify!(nk_vec2),
377            "::",
378            stringify!(y)
379        )
380    );
381}
382#[repr(C)]
383#[derive(Debug, Default, Copy, Clone)]
384pub struct nk_vec2i {
385    pub x: ::std::os::raw::c_short,
386    pub y: ::std::os::raw::c_short,
387}
388impl From<nk_vec2> for nk_vec2i {
389    fn from(v: nk_vec2) -> nk_vec2i {
390        nk_vec2i {
391            x: v.x as i16,
392            y: v.y as i16,
393        }
394    }
395}
396impl From<(f32, f32)> for nk_vec2i {
397    fn from((x, y): (f32, f32)) -> nk_vec2i {
398        nk_vec2i {
399            x: x as i16,
400            y: y as i16,
401        }
402    }
403}
404impl From<(i16, i16)> for nk_vec2i {
405    fn from((x, y): (i16, i16)) -> nk_vec2i {
406        nk_vec2i { x, y }
407    }
408}
409impl From<(i32, i32)> for nk_vec2i {
410    fn from((x, y): (i32, i32)) -> nk_vec2i {
411        nk_vec2i {
412            x: x as i16,
413            y: y as i16,
414        }
415    }
416}
417impl From<[f32; 2usize]> for nk_vec2i {
418    fn from(v: [f32; 2usize]) -> nk_vec2i {
419        nk_vec2i {
420            x: v[0] as i16,
421            y: v[1] as i16,
422        }
423    }
424}
425impl From<[i16; 2usize]> for nk_vec2i {
426    fn from(v: [i16; 2usize]) -> nk_vec2i {
427        nk_vec2i { x: v[0], y: v[1] }
428    }
429}
430impl From<[i32; 2usize]> for nk_vec2i {
431    fn from(v: [i32; 2usize]) -> nk_vec2i {
432        nk_vec2i {
433            x: v[0] as i16,
434            y: v[1] as i16,
435        }
436    }
437}
438impl From<nk_vec2i> for (f32, f32) {
439    fn from(v: nk_vec2i) -> (f32, f32) {
440        (v.x as f32, v.y as f32)
441    }
442}
443impl From<nk_vec2i> for (i16, i16) {
444    fn from(v: nk_vec2i) -> (i16, i16) {
445        (v.x as i16, v.y as i16)
446    }
447}
448impl From<nk_vec2i> for (i32, i32) {
449    fn from(v: nk_vec2i) -> (i32, i32) {
450        (v.x as i32, v.y as i32)
451    }
452}
453impl From<nk_vec2i> for [f32; 2usize] {
454    fn from(v: nk_vec2i) -> [f32; 2usize] {
455        [v.x as f32, v.y as f32]
456    }
457}
458impl From<nk_vec2i> for [i16; 2usize] {
459    fn from(v: nk_vec2i) -> [i16; 2usize] {
460        [v.x as i16, v.y as i16]
461    }
462}
463impl From<nk_vec2i> for [i32; 2usize] {
464    fn from(v: nk_vec2i) -> [i32; 2usize] {
465        [v.x as i32, v.y as i32]
466    }
467}
468#[test]
469fn bindgen_test_layout_nk_vec2i() {
470    assert_eq!(
471        ::std::mem::size_of::<nk_vec2i>(),
472        4usize,
473        concat!("Size of: ", stringify!(nk_vec2i))
474    );
475    assert_eq!(
476        ::std::mem::align_of::<nk_vec2i>(),
477        2usize,
478        concat!("Alignment of ", stringify!(nk_vec2i))
479    );
480    assert_eq!(
481        unsafe { &(*(::std::ptr::null::<nk_vec2i>())).x as *const _ as usize },
482        0usize,
483        concat!(
484            "Offset of field: ",
485            stringify!(nk_vec2i),
486            "::",
487            stringify!(x)
488        )
489    );
490    assert_eq!(
491        unsafe { &(*(::std::ptr::null::<nk_vec2i>())).y as *const _ as usize },
492        2usize,
493        concat!(
494            "Offset of field: ",
495            stringify!(nk_vec2i),
496            "::",
497            stringify!(y)
498        )
499    );
500}
501#[repr(C)]
502#[derive(Debug, Default, Copy, Clone)]
503pub struct nk_rect {
504    pub x: f32,
505    pub y: f32,
506    pub w: f32,
507    pub h: f32,
508}
509impl From<(nk_vec2, nk_vec2)> for nk_rect {
510    fn from((pos, size): (nk_vec2, nk_vec2)) -> nk_rect {
511        nk_rect {
512            x: pos.x,
513            y: pos.y,
514            w: size.x,
515            h: size.y,
516        }
517    }
518}
519impl From<(f32, f32, f32, f32)> for nk_rect {
520    fn from((x, y, w, h): (f32, f32, f32, f32)) -> nk_rect {
521        nk_rect { x, y, w, h }
522    }
523}
524impl From<[f32; 4usize]> for nk_rect {
525    fn from(v: [f32; 4usize]) -> nk_rect {
526        nk_rect {
527            x: v[0],
528            y: v[1],
529            w: v[2],
530            h: v[3],
531        }
532    }
533}
534impl From<nk_rect> for (nk_vec2, nk_vec2) {
535    fn from(rect: nk_rect) -> (nk_vec2, nk_vec2) {
536        (
537            nk_vec2 {
538                x: rect.x,
539                y: rect.y,
540            },
541            nk_vec2 {
542                x: rect.w,
543                y: rect.h,
544            },
545        )
546    }
547}
548impl From<nk_rect> for (f32, f32, f32, f32) {
549    fn from(rect: nk_rect) -> (f32, f32, f32, f32) {
550        (rect.x, rect.y, rect.w, rect.h)
551    }
552}
553impl From<nk_rect> for [f32; 4usize] {
554    fn from(rect: nk_rect) -> [f32; 4usize] {
555        [rect.x, rect.y, rect.w, rect.h]
556    }
557}
558#[test]
559fn bindgen_test_layout_nk_rect() {
560    assert_eq!(
561        ::std::mem::size_of::<nk_rect>(),
562        16usize,
563        concat!("Size of: ", stringify!(nk_rect))
564    );
565    assert_eq!(
566        ::std::mem::align_of::<nk_rect>(),
567        4usize,
568        concat!("Alignment of ", stringify!(nk_rect))
569    );
570    assert_eq!(
571        unsafe { &(*(::std::ptr::null::<nk_rect>())).x as *const _ as usize },
572        0usize,
573        concat!(
574            "Offset of field: ",
575            stringify!(nk_rect),
576            "::",
577            stringify!(x)
578        )
579    );
580    assert_eq!(
581        unsafe { &(*(::std::ptr::null::<nk_rect>())).y as *const _ as usize },
582        4usize,
583        concat!(
584            "Offset of field: ",
585            stringify!(nk_rect),
586            "::",
587            stringify!(y)
588        )
589    );
590    assert_eq!(
591        unsafe { &(*(::std::ptr::null::<nk_rect>())).w as *const _ as usize },
592        8usize,
593        concat!(
594            "Offset of field: ",
595            stringify!(nk_rect),
596            "::",
597            stringify!(w)
598        )
599    );
600    assert_eq!(
601        unsafe { &(*(::std::ptr::null::<nk_rect>())).h as *const _ as usize },
602        12usize,
603        concat!(
604            "Offset of field: ",
605            stringify!(nk_rect),
606            "::",
607            stringify!(h)
608        )
609    );
610}
611#[repr(C)]
612#[derive(Debug, Default, Copy, Clone)]
613pub struct nk_recti {
614    pub x: ::std::os::raw::c_short,
615    pub y: ::std::os::raw::c_short,
616    pub w: ::std::os::raw::c_short,
617    pub h: ::std::os::raw::c_short,
618}
619#[test]
620fn bindgen_test_layout_nk_recti() {
621    assert_eq!(
622        ::std::mem::size_of::<nk_recti>(),
623        8usize,
624        concat!("Size of: ", stringify!(nk_recti))
625    );
626    assert_eq!(
627        ::std::mem::align_of::<nk_recti>(),
628        2usize,
629        concat!("Alignment of ", stringify!(nk_recti))
630    );
631    assert_eq!(
632        unsafe { &(*(::std::ptr::null::<nk_recti>())).x as *const _ as usize },
633        0usize,
634        concat!(
635            "Offset of field: ",
636            stringify!(nk_recti),
637            "::",
638            stringify!(x)
639        )
640    );
641    assert_eq!(
642        unsafe { &(*(::std::ptr::null::<nk_recti>())).y as *const _ as usize },
643        2usize,
644        concat!(
645            "Offset of field: ",
646            stringify!(nk_recti),
647            "::",
648            stringify!(y)
649        )
650    );
651    assert_eq!(
652        unsafe { &(*(::std::ptr::null::<nk_recti>())).w as *const _ as usize },
653        4usize,
654        concat!(
655            "Offset of field: ",
656            stringify!(nk_recti),
657            "::",
658            stringify!(w)
659        )
660    );
661    assert_eq!(
662        unsafe { &(*(::std::ptr::null::<nk_recti>())).h as *const _ as usize },
663        6usize,
664        concat!(
665            "Offset of field: ",
666            stringify!(nk_recti),
667            "::",
668            stringify!(h)
669        )
670    );
671}
672pub type nk_glyph = [::std::os::raw::c_char; 4usize];
673#[repr(C)]
674#[derive(Copy, Clone)]
675pub union nk_handle {
676    pub ptr: *mut ::std::os::raw::c_void,
677    pub id: ::std::os::raw::c_int,
678    _bindgen_union_align: u64,
679}
680#[test]
681fn bindgen_test_layout_nk_handle() {
682    assert_eq!(
683        ::std::mem::size_of::<nk_handle>(),
684        8usize,
685        concat!("Size of: ", stringify!(nk_handle))
686    );
687    assert_eq!(
688        ::std::mem::align_of::<nk_handle>(),
689        8usize,
690        concat!("Alignment of ", stringify!(nk_handle))
691    );
692    assert_eq!(
693        unsafe { &(*(::std::ptr::null::<nk_handle>())).ptr as *const _ as usize },
694        0usize,
695        concat!(
696            "Offset of field: ",
697            stringify!(nk_handle),
698            "::",
699            stringify!(ptr)
700        )
701    );
702    assert_eq!(
703        unsafe { &(*(::std::ptr::null::<nk_handle>())).id as *const _ as usize },
704        0usize,
705        concat!(
706            "Offset of field: ",
707            stringify!(nk_handle),
708            "::",
709            stringify!(id)
710        )
711    );
712}
713impl Default for nk_handle {
714    fn default() -> Self {
715        unsafe { ::std::mem::zeroed() }
716    }
717}
718impl Debug for nk_handle {
719    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
720        unsafe {
721            f.debug_struct("nk_handle")
722                .field("ptr", &self.ptr)
723                .field("id", &self.id)
724                .finish()
725        }
726    }
727}
728#[repr(C)]
729#[derive(Copy, Clone)]
730pub struct nk_image {
731    pub handle: nk_handle,
732    pub w: ::std::os::raw::c_ushort,
733    pub h: ::std::os::raw::c_ushort,
734    pub region: [::std::os::raw::c_ushort; 4usize],
735}
736#[test]
737fn bindgen_test_layout_nk_image() {
738    assert_eq!(
739        ::std::mem::size_of::<nk_image>(),
740        24usize,
741        concat!("Size of: ", stringify!(nk_image))
742    );
743    assert_eq!(
744        ::std::mem::align_of::<nk_image>(),
745        8usize,
746        concat!("Alignment of ", stringify!(nk_image))
747    );
748    assert_eq!(
749        unsafe { &(*(::std::ptr::null::<nk_image>())).handle as *const _ as usize },
750        0usize,
751        concat!(
752            "Offset of field: ",
753            stringify!(nk_image),
754            "::",
755            stringify!(handle)
756        )
757    );
758    assert_eq!(
759        unsafe { &(*(::std::ptr::null::<nk_image>())).w as *const _ as usize },
760        8usize,
761        concat!(
762            "Offset of field: ",
763            stringify!(nk_image),
764            "::",
765            stringify!(w)
766        )
767    );
768    assert_eq!(
769        unsafe { &(*(::std::ptr::null::<nk_image>())).h as *const _ as usize },
770        10usize,
771        concat!(
772            "Offset of field: ",
773            stringify!(nk_image),
774            "::",
775            stringify!(h)
776        )
777    );
778    assert_eq!(
779        unsafe { &(*(::std::ptr::null::<nk_image>())).region as *const _ as usize },
780        12usize,
781        concat!(
782            "Offset of field: ",
783            stringify!(nk_image),
784            "::",
785            stringify!(region)
786        )
787    );
788}
789impl Default for nk_image {
790    fn default() -> Self {
791        unsafe { ::std::mem::zeroed() }
792    }
793}
794#[repr(C)]
795#[derive(Copy, Clone)]
796pub struct nk_cursor {
797    pub img: nk_image,
798    pub size: nk_vec2,
799    pub offset: nk_vec2,
800}
801#[test]
802fn bindgen_test_layout_nk_cursor() {
803    assert_eq!(
804        ::std::mem::size_of::<nk_cursor>(),
805        40usize,
806        concat!("Size of: ", stringify!(nk_cursor))
807    );
808    assert_eq!(
809        ::std::mem::align_of::<nk_cursor>(),
810        8usize,
811        concat!("Alignment of ", stringify!(nk_cursor))
812    );
813    assert_eq!(
814        unsafe { &(*(::std::ptr::null::<nk_cursor>())).img as *const _ as usize },
815        0usize,
816        concat!(
817            "Offset of field: ",
818            stringify!(nk_cursor),
819            "::",
820            stringify!(img)
821        )
822    );
823    assert_eq!(
824        unsafe { &(*(::std::ptr::null::<nk_cursor>())).size as *const _ as usize },
825        24usize,
826        concat!(
827            "Offset of field: ",
828            stringify!(nk_cursor),
829            "::",
830            stringify!(size)
831        )
832    );
833    assert_eq!(
834        unsafe { &(*(::std::ptr::null::<nk_cursor>())).offset as *const _ as usize },
835        32usize,
836        concat!(
837            "Offset of field: ",
838            stringify!(nk_cursor),
839            "::",
840            stringify!(offset)
841        )
842    );
843}
844impl Default for nk_cursor {
845    fn default() -> Self {
846        unsafe { ::std::mem::zeroed() }
847    }
848}
849#[repr(C)]
850#[derive(Debug, Default, Copy, Clone)]
851pub struct nk_scroll {
852    pub x: nk_uint,
853    pub y: nk_uint,
854}
855#[test]
856fn bindgen_test_layout_nk_scroll() {
857    assert_eq!(
858        ::std::mem::size_of::<nk_scroll>(),
859        8usize,
860        concat!("Size of: ", stringify!(nk_scroll))
861    );
862    assert_eq!(
863        ::std::mem::align_of::<nk_scroll>(),
864        4usize,
865        concat!("Alignment of ", stringify!(nk_scroll))
866    );
867    assert_eq!(
868        unsafe { &(*(::std::ptr::null::<nk_scroll>())).x as *const _ as usize },
869        0usize,
870        concat!(
871            "Offset of field: ",
872            stringify!(nk_scroll),
873            "::",
874            stringify!(x)
875        )
876    );
877    assert_eq!(
878        unsafe { &(*(::std::ptr::null::<nk_scroll>())).y as *const _ as usize },
879        4usize,
880        concat!(
881            "Offset of field: ",
882            stringify!(nk_scroll),
883            "::",
884            stringify!(y)
885        )
886    );
887}
888pub const nk_heading_NK_UP: nk_heading = 0;
889pub const nk_heading_NK_RIGHT: nk_heading = 1;
890pub const nk_heading_NK_DOWN: nk_heading = 2;
891pub const nk_heading_NK_LEFT: nk_heading = 3;
892pub type nk_heading = u32;
893pub const nk_button_behavior_NK_BUTTON_DEFAULT: nk_button_behavior = 0;
894pub const nk_button_behavior_NK_BUTTON_REPEATER: nk_button_behavior = 1;
895pub type nk_button_behavior = u32;
896pub const nk_modify_NK_FIXED: nk_modify = 0;
897pub const nk_modify_NK_MODIFIABLE: nk_modify = 1;
898pub type nk_modify = u32;
899pub const nk_orientation_NK_VERTICAL: nk_orientation = 0;
900pub const nk_orientation_NK_HORIZONTAL: nk_orientation = 1;
901pub type nk_orientation = u32;
902pub const nk_collapse_states_NK_MINIMIZED: nk_collapse_states = 0;
903pub const nk_collapse_states_NK_MAXIMIZED: nk_collapse_states = 1;
904pub type nk_collapse_states = u32;
905pub const nk_show_states_NK_HIDDEN: nk_show_states = 0;
906pub const nk_show_states_NK_SHOWN: nk_show_states = 1;
907pub type nk_show_states = u32;
908pub const nk_chart_type_NK_CHART_LINES: nk_chart_type = 0;
909pub const nk_chart_type_NK_CHART_COLUMN: nk_chart_type = 1;
910pub const nk_chart_type_NK_CHART_MAX: nk_chart_type = 2;
911pub type nk_chart_type = u32;
912pub const nk_chart_event_NK_CHART_HOVERING: nk_chart_event = 1;
913pub const nk_chart_event_NK_CHART_CLICKED: nk_chart_event = 2;
914pub type nk_chart_event = u32;
915pub const nk_color_format_NK_RGB: nk_color_format = 0;
916pub const nk_color_format_NK_RGBA: nk_color_format = 1;
917pub type nk_color_format = u32;
918pub const nk_popup_type_NK_POPUP_STATIC: nk_popup_type = 0;
919pub const nk_popup_type_NK_POPUP_DYNAMIC: nk_popup_type = 1;
920pub type nk_popup_type = u32;
921pub const nk_layout_format_NK_DYNAMIC: nk_layout_format = 0;
922pub const nk_layout_format_NK_STATIC: nk_layout_format = 1;
923pub type nk_layout_format = u32;
924pub const nk_tree_type_NK_TREE_NODE: nk_tree_type = 0;
925pub const nk_tree_type_NK_TREE_TAB: nk_tree_type = 1;
926pub type nk_tree_type = u32;
927pub type nk_plugin_alloc = ::std::option::Option<
928    unsafe extern "C" fn(
929        arg1: nk_handle,
930        old: *mut ::std::os::raw::c_void,
931        arg2: nk_size,
932    ) -> *mut ::std::os::raw::c_void,
933>;
934pub type nk_plugin_free =
935    ::std::option::Option<unsafe extern "C" fn(arg1: nk_handle, old: *mut ::std::os::raw::c_void)>;
936pub type nk_plugin_filter = ::std::option::Option<
937    unsafe extern "C" fn(arg1: *const nk_text_edit, unicode: nk_rune) -> ::std::os::raw::c_int,
938>;
939pub type nk_plugin_paste =
940    ::std::option::Option<unsafe extern "C" fn(arg1: nk_handle, arg2: *mut nk_text_edit)>;
941pub type nk_plugin_copy = ::std::option::Option<
942    unsafe extern "C" fn(
943        arg1: nk_handle,
944        arg2: *const ::std::os::raw::c_char,
945        len: ::std::os::raw::c_int,
946    ),
947>;
948#[repr(C)]
949#[derive(Copy, Clone)]
950pub struct nk_allocator {
951    pub userdata: nk_handle,
952    pub alloc: nk_plugin_alloc,
953    pub free: nk_plugin_free,
954}
955#[test]
956fn bindgen_test_layout_nk_allocator() {
957    assert_eq!(
958        ::std::mem::size_of::<nk_allocator>(),
959        24usize,
960        concat!("Size of: ", stringify!(nk_allocator))
961    );
962    assert_eq!(
963        ::std::mem::align_of::<nk_allocator>(),
964        8usize,
965        concat!("Alignment of ", stringify!(nk_allocator))
966    );
967    assert_eq!(
968        unsafe { &(*(::std::ptr::null::<nk_allocator>())).userdata as *const _ as usize },
969        0usize,
970        concat!(
971            "Offset of field: ",
972            stringify!(nk_allocator),
973            "::",
974            stringify!(userdata)
975        )
976    );
977    assert_eq!(
978        unsafe { &(*(::std::ptr::null::<nk_allocator>())).alloc as *const _ as usize },
979        8usize,
980        concat!(
981            "Offset of field: ",
982            stringify!(nk_allocator),
983            "::",
984            stringify!(alloc)
985        )
986    );
987    assert_eq!(
988        unsafe { &(*(::std::ptr::null::<nk_allocator>())).free as *const _ as usize },
989        16usize,
990        concat!(
991            "Offset of field: ",
992            stringify!(nk_allocator),
993            "::",
994            stringify!(free)
995        )
996    );
997}
998impl Default for nk_allocator {
999    fn default() -> Self {
1000        unsafe { ::std::mem::zeroed() }
1001    }
1002}
1003impl Debug for nk_allocator {
1004    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1005        f.debug_struct("nk_allocator")
1006            .field("userdata", &self.userdata)
1007            .field("alloc", &self.alloc)
1008            .field("free", &self.free)
1009            .finish()
1010    }
1011}
1012pub const nk_symbol_type_NK_SYMBOL_NONE: nk_symbol_type = 0;
1013pub const nk_symbol_type_NK_SYMBOL_X: nk_symbol_type = 1;
1014pub const nk_symbol_type_NK_SYMBOL_UNDERSCORE: nk_symbol_type = 2;
1015pub const nk_symbol_type_NK_SYMBOL_CIRCLE_SOLID: nk_symbol_type = 3;
1016pub const nk_symbol_type_NK_SYMBOL_CIRCLE_OUTLINE: nk_symbol_type = 4;
1017pub const nk_symbol_type_NK_SYMBOL_RECT_SOLID: nk_symbol_type = 5;
1018pub const nk_symbol_type_NK_SYMBOL_RECT_OUTLINE: nk_symbol_type = 6;
1019pub const nk_symbol_type_NK_SYMBOL_TRIANGLE_UP: nk_symbol_type = 7;
1020pub const nk_symbol_type_NK_SYMBOL_TRIANGLE_DOWN: nk_symbol_type = 8;
1021pub const nk_symbol_type_NK_SYMBOL_TRIANGLE_LEFT: nk_symbol_type = 9;
1022pub const nk_symbol_type_NK_SYMBOL_TRIANGLE_RIGHT: nk_symbol_type = 10;
1023pub const nk_symbol_type_NK_SYMBOL_PLUS: nk_symbol_type = 11;
1024pub const nk_symbol_type_NK_SYMBOL_MINUS: nk_symbol_type = 12;
1025pub const nk_symbol_type_NK_SYMBOL_MAX: nk_symbol_type = 13;
1026pub type nk_symbol_type = u32;
1027extern "C" {
1028    pub fn nk_init_fixed(
1029        arg1: *mut nk_context,
1030        memory: *mut ::std::os::raw::c_void,
1031        size: nk_size,
1032        arg2: *const nk_user_font,
1033    ) -> ::std::os::raw::c_int;
1034}
1035extern "C" {
1036    pub fn nk_init(
1037        arg1: *mut nk_context,
1038        arg2: *mut nk_allocator,
1039        arg3: *const nk_user_font,
1040    ) -> ::std::os::raw::c_int;
1041}
1042extern "C" {
1043    pub fn nk_init_custom(
1044        arg1: *mut nk_context,
1045        cmds: *mut nk_buffer,
1046        pool: *mut nk_buffer,
1047        arg2: *const nk_user_font,
1048    ) -> ::std::os::raw::c_int;
1049}
1050extern "C" {
1051    pub fn nk_clear(arg1: *mut nk_context);
1052}
1053extern "C" {
1054    pub fn nk_free(arg1: *mut nk_context);
1055}
1056extern "C" {
1057    pub fn nk_set_user_data(arg1: *mut nk_context, handle: nk_handle);
1058}
1059pub const nk_keys_NK_KEY_NONE: nk_keys = 0;
1060pub const nk_keys_NK_KEY_SHIFT: nk_keys = 1;
1061pub const nk_keys_NK_KEY_CTRL: nk_keys = 2;
1062pub const nk_keys_NK_KEY_DEL: nk_keys = 3;
1063pub const nk_keys_NK_KEY_ENTER: nk_keys = 4;
1064pub const nk_keys_NK_KEY_TAB: nk_keys = 5;
1065pub const nk_keys_NK_KEY_BACKSPACE: nk_keys = 6;
1066pub const nk_keys_NK_KEY_COPY: nk_keys = 7;
1067pub const nk_keys_NK_KEY_CUT: nk_keys = 8;
1068pub const nk_keys_NK_KEY_PASTE: nk_keys = 9;
1069pub const nk_keys_NK_KEY_UP: nk_keys = 10;
1070pub const nk_keys_NK_KEY_DOWN: nk_keys = 11;
1071pub const nk_keys_NK_KEY_LEFT: nk_keys = 12;
1072pub const nk_keys_NK_KEY_RIGHT: nk_keys = 13;
1073pub const nk_keys_NK_KEY_TEXT_INSERT_MODE: nk_keys = 14;
1074pub const nk_keys_NK_KEY_TEXT_REPLACE_MODE: nk_keys = 15;
1075pub const nk_keys_NK_KEY_TEXT_RESET_MODE: nk_keys = 16;
1076pub const nk_keys_NK_KEY_TEXT_LINE_START: nk_keys = 17;
1077pub const nk_keys_NK_KEY_TEXT_LINE_END: nk_keys = 18;
1078pub const nk_keys_NK_KEY_TEXT_START: nk_keys = 19;
1079pub const nk_keys_NK_KEY_TEXT_END: nk_keys = 20;
1080pub const nk_keys_NK_KEY_TEXT_UNDO: nk_keys = 21;
1081pub const nk_keys_NK_KEY_TEXT_REDO: nk_keys = 22;
1082pub const nk_keys_NK_KEY_TEXT_SELECT_ALL: nk_keys = 23;
1083pub const nk_keys_NK_KEY_TEXT_WORD_LEFT: nk_keys = 24;
1084pub const nk_keys_NK_KEY_TEXT_WORD_RIGHT: nk_keys = 25;
1085pub const nk_keys_NK_KEY_SCROLL_START: nk_keys = 26;
1086pub const nk_keys_NK_KEY_SCROLL_END: nk_keys = 27;
1087pub const nk_keys_NK_KEY_SCROLL_DOWN: nk_keys = 28;
1088pub const nk_keys_NK_KEY_SCROLL_UP: nk_keys = 29;
1089pub const nk_keys_NK_KEY_MAX: nk_keys = 30;
1090pub type nk_keys = u32;
1091pub const nk_buttons_NK_BUTTON_LEFT: nk_buttons = 0;
1092pub const nk_buttons_NK_BUTTON_MIDDLE: nk_buttons = 1;
1093pub const nk_buttons_NK_BUTTON_RIGHT: nk_buttons = 2;
1094pub const nk_buttons_NK_BUTTON_DOUBLE: nk_buttons = 3;
1095pub const nk_buttons_NK_BUTTON_MAX: nk_buttons = 4;
1096pub type nk_buttons = u32;
1097extern "C" {
1098    pub fn nk_input_begin(arg1: *mut nk_context);
1099}
1100extern "C" {
1101    pub fn nk_input_motion(
1102        arg1: *mut nk_context,
1103        x: ::std::os::raw::c_int,
1104        y: ::std::os::raw::c_int,
1105    );
1106}
1107extern "C" {
1108    pub fn nk_input_key(arg1: *mut nk_context, arg2: nk_keys, down: ::std::os::raw::c_int);
1109}
1110extern "C" {
1111    pub fn nk_input_button(
1112        arg1: *mut nk_context,
1113        arg2: nk_buttons,
1114        x: ::std::os::raw::c_int,
1115        y: ::std::os::raw::c_int,
1116        down: ::std::os::raw::c_int,
1117    );
1118}
1119extern "C" {
1120    pub fn nk_input_scroll(arg1: *mut nk_context, val: nk_vec2);
1121}
1122extern "C" {
1123    pub fn nk_input_char(arg1: *mut nk_context, arg2: ::std::os::raw::c_char);
1124}
1125extern "C" {
1126    pub fn nk_input_glyph(arg1: *mut nk_context, arg2: *mut ::std::os::raw::c_char);
1127}
1128extern "C" {
1129    pub fn nk_input_unicode(arg1: *mut nk_context, arg2: nk_rune);
1130}
1131extern "C" {
1132    pub fn nk_input_end(arg1: *mut nk_context);
1133}
1134pub const nk_anti_aliasing_NK_ANTI_ALIASING_OFF: nk_anti_aliasing = 0;
1135pub const nk_anti_aliasing_NK_ANTI_ALIASING_ON: nk_anti_aliasing = 1;
1136pub type nk_anti_aliasing = u32;
1137pub const nk_convert_result_NK_CONVERT_SUCCESS: nk_convert_result = 0;
1138pub const nk_convert_result_NK_CONVERT_INVALID_PARAM: nk_convert_result = 1;
1139pub const nk_convert_result_NK_CONVERT_COMMAND_BUFFER_FULL: nk_convert_result = 2;
1140pub const nk_convert_result_NK_CONVERT_VERTEX_BUFFER_FULL: nk_convert_result = 4;
1141pub const nk_convert_result_NK_CONVERT_ELEMENT_BUFFER_FULL: nk_convert_result = 8;
1142pub type nk_convert_result = u32;
1143#[repr(C)]
1144#[derive(Copy, Clone)]
1145pub struct nk_draw_null_texture {
1146    pub texture: nk_handle,
1147    pub uv: nk_vec2,
1148}
1149#[test]
1150fn bindgen_test_layout_nk_draw_null_texture() {
1151    assert_eq!(
1152        ::std::mem::size_of::<nk_draw_null_texture>(),
1153        16usize,
1154        concat!("Size of: ", stringify!(nk_draw_null_texture))
1155    );
1156    assert_eq!(
1157        ::std::mem::align_of::<nk_draw_null_texture>(),
1158        8usize,
1159        concat!("Alignment of ", stringify!(nk_draw_null_texture))
1160    );
1161    assert_eq!(
1162        unsafe { &(*(::std::ptr::null::<nk_draw_null_texture>())).texture as *const _ as usize },
1163        0usize,
1164        concat!(
1165            "Offset of field: ",
1166            stringify!(nk_draw_null_texture),
1167            "::",
1168            stringify!(texture)
1169        )
1170    );
1171    assert_eq!(
1172        unsafe { &(*(::std::ptr::null::<nk_draw_null_texture>())).uv as *const _ as usize },
1173        8usize,
1174        concat!(
1175            "Offset of field: ",
1176            stringify!(nk_draw_null_texture),
1177            "::",
1178            stringify!(uv)
1179        )
1180    );
1181}
1182impl Default for nk_draw_null_texture {
1183    fn default() -> Self {
1184        unsafe { ::std::mem::zeroed() }
1185    }
1186}
1187impl Debug for nk_draw_null_texture {
1188    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1189        f.debug_struct("nk_draw_null_texture")
1190            .field("texture", &self.texture)
1191            .field("uv", &self.uv)
1192            .finish()
1193    }
1194}
1195#[repr(C)]
1196#[derive(Copy, Clone)]
1197pub struct nk_convert_config {
1198    pub global_alpha: f32,
1199    pub line_AA: nk_anti_aliasing,
1200    pub shape_AA: nk_anti_aliasing,
1201    pub circle_segment_count: ::std::os::raw::c_uint,
1202    pub arc_segment_count: ::std::os::raw::c_uint,
1203    pub curve_segment_count: ::std::os::raw::c_uint,
1204    pub null: nk_draw_null_texture,
1205    pub vertex_layout: *const nk_draw_vertex_layout_element,
1206    pub vertex_size: nk_size,
1207    pub vertex_alignment: nk_size,
1208}
1209#[test]
1210fn bindgen_test_layout_nk_convert_config() {
1211    assert_eq!(
1212        ::std::mem::size_of::<nk_convert_config>(),
1213        64usize,
1214        concat!("Size of: ", stringify!(nk_convert_config))
1215    );
1216    assert_eq!(
1217        ::std::mem::align_of::<nk_convert_config>(),
1218        8usize,
1219        concat!("Alignment of ", stringify!(nk_convert_config))
1220    );
1221    assert_eq!(
1222        unsafe { &(*(::std::ptr::null::<nk_convert_config>())).global_alpha as *const _ as usize },
1223        0usize,
1224        concat!(
1225            "Offset of field: ",
1226            stringify!(nk_convert_config),
1227            "::",
1228            stringify!(global_alpha)
1229        )
1230    );
1231    assert_eq!(
1232        unsafe { &(*(::std::ptr::null::<nk_convert_config>())).line_AA as *const _ as usize },
1233        4usize,
1234        concat!(
1235            "Offset of field: ",
1236            stringify!(nk_convert_config),
1237            "::",
1238            stringify!(line_AA)
1239        )
1240    );
1241    assert_eq!(
1242        unsafe { &(*(::std::ptr::null::<nk_convert_config>())).shape_AA as *const _ as usize },
1243        8usize,
1244        concat!(
1245            "Offset of field: ",
1246            stringify!(nk_convert_config),
1247            "::",
1248            stringify!(shape_AA)
1249        )
1250    );
1251    assert_eq!(
1252        unsafe {
1253            &(*(::std::ptr::null::<nk_convert_config>())).circle_segment_count as *const _ as usize
1254        },
1255        12usize,
1256        concat!(
1257            "Offset of field: ",
1258            stringify!(nk_convert_config),
1259            "::",
1260            stringify!(circle_segment_count)
1261        )
1262    );
1263    assert_eq!(
1264        unsafe {
1265            &(*(::std::ptr::null::<nk_convert_config>())).arc_segment_count as *const _ as usize
1266        },
1267        16usize,
1268        concat!(
1269            "Offset of field: ",
1270            stringify!(nk_convert_config),
1271            "::",
1272            stringify!(arc_segment_count)
1273        )
1274    );
1275    assert_eq!(
1276        unsafe {
1277            &(*(::std::ptr::null::<nk_convert_config>())).curve_segment_count as *const _ as usize
1278        },
1279        20usize,
1280        concat!(
1281            "Offset of field: ",
1282            stringify!(nk_convert_config),
1283            "::",
1284            stringify!(curve_segment_count)
1285        )
1286    );
1287    assert_eq!(
1288        unsafe { &(*(::std::ptr::null::<nk_convert_config>())).null as *const _ as usize },
1289        24usize,
1290        concat!(
1291            "Offset of field: ",
1292            stringify!(nk_convert_config),
1293            "::",
1294            stringify!(null)
1295        )
1296    );
1297    assert_eq!(
1298        unsafe { &(*(::std::ptr::null::<nk_convert_config>())).vertex_layout as *const _ as usize },
1299        40usize,
1300        concat!(
1301            "Offset of field: ",
1302            stringify!(nk_convert_config),
1303            "::",
1304            stringify!(vertex_layout)
1305        )
1306    );
1307    assert_eq!(
1308        unsafe { &(*(::std::ptr::null::<nk_convert_config>())).vertex_size as *const _ as usize },
1309        48usize,
1310        concat!(
1311            "Offset of field: ",
1312            stringify!(nk_convert_config),
1313            "::",
1314            stringify!(vertex_size)
1315        )
1316    );
1317    assert_eq!(
1318        unsafe {
1319            &(*(::std::ptr::null::<nk_convert_config>())).vertex_alignment as *const _ as usize
1320        },
1321        56usize,
1322        concat!(
1323            "Offset of field: ",
1324            stringify!(nk_convert_config),
1325            "::",
1326            stringify!(vertex_alignment)
1327        )
1328    );
1329}
1330impl Default for nk_convert_config {
1331    fn default() -> Self {
1332        unsafe { ::std::mem::zeroed() }
1333    }
1334}
1335impl Debug for nk_convert_config {
1336    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1337        f.debug_struct("nk_convert_config")
1338            .field("global_alpha", &self.global_alpha)
1339            .field("line_AA", &self.line_AA)
1340            .field("shape_AA", &self.shape_AA)
1341            .field("circle_segment_count", &self.circle_segment_count)
1342            .field("arc_segment_count", &self.arc_segment_count)
1343            .field("curve_segment_count", &self.curve_segment_count)
1344            .field("null", &self.null)
1345            .field("vertex_layout", &self.vertex_layout)
1346            .field("vertex_size", &self.vertex_size)
1347            .field("vertex_alignment", &self.vertex_alignment)
1348            .finish()
1349    }
1350}
1351extern "C" {
1352    pub fn nk__begin(arg1: *mut nk_context) -> *const nk_command;
1353}
1354extern "C" {
1355    pub fn nk__next(arg1: *mut nk_context, arg2: *const nk_command) -> *const nk_command;
1356}
1357extern "C" {
1358    pub fn nk_convert(
1359        arg1: *mut nk_context,
1360        cmds: *mut nk_buffer,
1361        vertices: *mut nk_buffer,
1362        elements: *mut nk_buffer,
1363        arg2: *const nk_convert_config,
1364    ) -> nk_flags;
1365}
1366extern "C" {
1367    pub fn nk__draw_begin(
1368        arg1: *const nk_context,
1369        arg2: *const nk_buffer,
1370    ) -> *const nk_draw_command;
1371}
1372extern "C" {
1373    pub fn nk__draw_end(arg1: *const nk_context, arg2: *const nk_buffer) -> *const nk_draw_command;
1374}
1375extern "C" {
1376    pub fn nk__draw_next(
1377        arg1: *const nk_draw_command,
1378        arg2: *const nk_buffer,
1379        arg3: *const nk_context,
1380    ) -> *const nk_draw_command;
1381}
1382pub const nk_panel_flags_NK_WINDOW_BORDER: nk_panel_flags = 1;
1383pub const nk_panel_flags_NK_WINDOW_MOVABLE: nk_panel_flags = 2;
1384pub const nk_panel_flags_NK_WINDOW_SCALABLE: nk_panel_flags = 4;
1385pub const nk_panel_flags_NK_WINDOW_CLOSABLE: nk_panel_flags = 8;
1386pub const nk_panel_flags_NK_WINDOW_MINIMIZABLE: nk_panel_flags = 16;
1387pub const nk_panel_flags_NK_WINDOW_NO_SCROLLBAR: nk_panel_flags = 32;
1388pub const nk_panel_flags_NK_WINDOW_TITLE: nk_panel_flags = 64;
1389pub const nk_panel_flags_NK_WINDOW_SCROLL_AUTO_HIDE: nk_panel_flags = 128;
1390pub const nk_panel_flags_NK_WINDOW_BACKGROUND: nk_panel_flags = 256;
1391pub const nk_panel_flags_NK_WINDOW_SCALE_LEFT: nk_panel_flags = 512;
1392pub const nk_panel_flags_NK_WINDOW_NO_INPUT: nk_panel_flags = 1024;
1393pub type nk_panel_flags = u32;
1394extern "C" {
1395    pub fn nk_begin(
1396        ctx: *mut nk_context,
1397        title: *const ::std::os::raw::c_char,
1398        bounds: nk_rect,
1399        flags: nk_flags,
1400    ) -> ::std::os::raw::c_int;
1401}
1402extern "C" {
1403    pub fn nk_begin_titled(
1404        ctx: *mut nk_context,
1405        name: *const ::std::os::raw::c_char,
1406        title: *const ::std::os::raw::c_char,
1407        bounds: nk_rect,
1408        flags: nk_flags,
1409    ) -> ::std::os::raw::c_int;
1410}
1411extern "C" {
1412    pub fn nk_end(ctx: *mut nk_context);
1413}
1414extern "C" {
1415    pub fn nk_window_find(
1416        ctx: *mut nk_context,
1417        name: *const ::std::os::raw::c_char,
1418    ) -> *mut nk_window;
1419}
1420extern "C" {
1421    pub fn nk_window_get_bounds(ctx: *const nk_context) -> nk_rect;
1422}
1423extern "C" {
1424    pub fn nk_window_get_position(ctx: *const nk_context) -> nk_vec2;
1425}
1426extern "C" {
1427    pub fn nk_window_get_size(arg1: *const nk_context) -> nk_vec2;
1428}
1429extern "C" {
1430    pub fn nk_window_get_width(arg1: *const nk_context) -> f32;
1431}
1432extern "C" {
1433    pub fn nk_window_get_height(arg1: *const nk_context) -> f32;
1434}
1435extern "C" {
1436    pub fn nk_window_get_panel(arg1: *mut nk_context) -> *mut nk_panel;
1437}
1438extern "C" {
1439    pub fn nk_window_get_content_region(arg1: *mut nk_context) -> nk_rect;
1440}
1441extern "C" {
1442    pub fn nk_window_get_content_region_min(arg1: *mut nk_context) -> nk_vec2;
1443}
1444extern "C" {
1445    pub fn nk_window_get_content_region_max(arg1: *mut nk_context) -> nk_vec2;
1446}
1447extern "C" {
1448    pub fn nk_window_get_content_region_size(arg1: *mut nk_context) -> nk_vec2;
1449}
1450extern "C" {
1451    pub fn nk_window_get_canvas(arg1: *mut nk_context) -> *mut nk_command_buffer;
1452}
1453extern "C" {
1454    pub fn nk_window_get_scroll(
1455        arg1: *const nk_context,
1456        offset_x: *mut nk_uint,
1457        offset_y: *mut nk_uint,
1458    );
1459}
1460extern "C" {
1461    pub fn nk_window_has_focus(arg1: *const nk_context) -> ::std::os::raw::c_int;
1462}
1463extern "C" {
1464    pub fn nk_window_is_hovered(arg1: *mut nk_context) -> ::std::os::raw::c_int;
1465}
1466extern "C" {
1467    pub fn nk_window_is_collapsed(
1468        ctx: *mut nk_context,
1469        name: *const ::std::os::raw::c_char,
1470    ) -> ::std::os::raw::c_int;
1471}
1472extern "C" {
1473    pub fn nk_window_is_closed(
1474        arg1: *mut nk_context,
1475        arg2: *const ::std::os::raw::c_char,
1476    ) -> ::std::os::raw::c_int;
1477}
1478extern "C" {
1479    pub fn nk_window_is_hidden(
1480        arg1: *mut nk_context,
1481        arg2: *const ::std::os::raw::c_char,
1482    ) -> ::std::os::raw::c_int;
1483}
1484extern "C" {
1485    pub fn nk_window_is_active(
1486        arg1: *mut nk_context,
1487        arg2: *const ::std::os::raw::c_char,
1488    ) -> ::std::os::raw::c_int;
1489}
1490extern "C" {
1491    pub fn nk_window_is_any_hovered(arg1: *mut nk_context) -> ::std::os::raw::c_int;
1492}
1493extern "C" {
1494    pub fn nk_item_is_any_active(arg1: *mut nk_context) -> ::std::os::raw::c_int;
1495}
1496extern "C" {
1497    pub fn nk_window_set_bounds(
1498        arg1: *mut nk_context,
1499        name: *const ::std::os::raw::c_char,
1500        bounds: nk_rect,
1501    );
1502}
1503extern "C" {
1504    pub fn nk_window_set_position(
1505        arg1: *mut nk_context,
1506        name: *const ::std::os::raw::c_char,
1507        pos: nk_vec2,
1508    );
1509}
1510extern "C" {
1511    pub fn nk_window_set_size(
1512        arg1: *mut nk_context,
1513        name: *const ::std::os::raw::c_char,
1514        arg2: nk_vec2,
1515    );
1516}
1517extern "C" {
1518    pub fn nk_window_set_focus(arg1: *mut nk_context, name: *const ::std::os::raw::c_char);
1519}
1520extern "C" {
1521    pub fn nk_window_set_scroll(arg1: *mut nk_context, offset_x: nk_uint, offset_y: nk_uint);
1522}
1523extern "C" {
1524    pub fn nk_window_close(ctx: *mut nk_context, name: *const ::std::os::raw::c_char);
1525}
1526extern "C" {
1527    pub fn nk_window_collapse(
1528        arg1: *mut nk_context,
1529        name: *const ::std::os::raw::c_char,
1530        state: nk_collapse_states,
1531    );
1532}
1533extern "C" {
1534    pub fn nk_window_collapse_if(
1535        arg1: *mut nk_context,
1536        name: *const ::std::os::raw::c_char,
1537        arg2: nk_collapse_states,
1538        cond: ::std::os::raw::c_int,
1539    );
1540}
1541extern "C" {
1542    pub fn nk_window_show(
1543        arg1: *mut nk_context,
1544        name: *const ::std::os::raw::c_char,
1545        arg2: nk_show_states,
1546    );
1547}
1548extern "C" {
1549    pub fn nk_window_show_if(
1550        arg1: *mut nk_context,
1551        name: *const ::std::os::raw::c_char,
1552        arg2: nk_show_states,
1553        cond: ::std::os::raw::c_int,
1554    );
1555}
1556extern "C" {
1557    pub fn nk_layout_set_min_row_height(arg1: *mut nk_context, height: f32);
1558}
1559extern "C" {
1560    pub fn nk_layout_reset_min_row_height(arg1: *mut nk_context);
1561}
1562extern "C" {
1563    pub fn nk_layout_widget_bounds(arg1: *mut nk_context) -> nk_rect;
1564}
1565extern "C" {
1566    pub fn nk_layout_ratio_from_pixel(arg1: *mut nk_context, pixel_width: f32) -> f32;
1567}
1568extern "C" {
1569    pub fn nk_layout_row_dynamic(ctx: *mut nk_context, height: f32, cols: ::std::os::raw::c_int);
1570}
1571extern "C" {
1572    pub fn nk_layout_row_static(
1573        ctx: *mut nk_context,
1574        height: f32,
1575        item_width: ::std::os::raw::c_int,
1576        cols: ::std::os::raw::c_int,
1577    );
1578}
1579extern "C" {
1580    pub fn nk_layout_row_begin(
1581        ctx: *mut nk_context,
1582        fmt: nk_layout_format,
1583        row_height: f32,
1584        cols: ::std::os::raw::c_int,
1585    );
1586}
1587extern "C" {
1588    pub fn nk_layout_row_push(arg1: *mut nk_context, value: f32);
1589}
1590extern "C" {
1591    pub fn nk_layout_row_end(arg1: *mut nk_context);
1592}
1593extern "C" {
1594    pub fn nk_layout_row(
1595        arg1: *mut nk_context,
1596        arg2: nk_layout_format,
1597        height: f32,
1598        cols: ::std::os::raw::c_int,
1599        ratio: *const f32,
1600    );
1601}
1602extern "C" {
1603    pub fn nk_layout_row_colored(
1604        arg1: *mut nk_context,
1605        arg2: nk_layout_format,
1606        height: f32,
1607        cols: ::std::os::raw::c_int,
1608        ratio: *const f32,
1609        color: nk_color,
1610    );
1611}
1612extern "C" {
1613    pub fn nk_layout_row_template_begin(arg1: *mut nk_context, row_height: f32);
1614}
1615extern "C" {
1616    pub fn nk_layout_row_template_push_dynamic(arg1: *mut nk_context);
1617}
1618extern "C" {
1619    pub fn nk_layout_row_template_push_variable(arg1: *mut nk_context, min_width: f32);
1620}
1621extern "C" {
1622    pub fn nk_layout_row_template_push_static(arg1: *mut nk_context, width: f32);
1623}
1624extern "C" {
1625    pub fn nk_layout_row_template_end(arg1: *mut nk_context);
1626}
1627extern "C" {
1628    pub fn nk_layout_space_begin(
1629        arg1: *mut nk_context,
1630        arg2: nk_layout_format,
1631        height: f32,
1632        widget_count: ::std::os::raw::c_int,
1633    );
1634}
1635extern "C" {
1636    pub fn nk_layout_space_colored_begin(
1637        arg1: *mut nk_context,
1638        arg2: nk_layout_format,
1639        height: f32,
1640        widget_count: ::std::os::raw::c_int,
1641        color: nk_color,
1642    );
1643}
1644extern "C" {
1645    pub fn nk_layout_space_push(arg1: *mut nk_context, bounds: nk_rect);
1646}
1647extern "C" {
1648    pub fn nk_layout_space_end(arg1: *mut nk_context);
1649}
1650extern "C" {
1651    pub fn nk_layout_space_bounds(arg1: *mut nk_context) -> nk_rect;
1652}
1653extern "C" {
1654    pub fn nk_layout_space_to_screen(arg1: *mut nk_context, arg2: nk_vec2) -> nk_vec2;
1655}
1656extern "C" {
1657    pub fn nk_layout_space_to_local(arg1: *mut nk_context, arg2: nk_vec2) -> nk_vec2;
1658}
1659extern "C" {
1660    pub fn nk_layout_space_rect_to_screen(arg1: *mut nk_context, arg2: nk_rect) -> nk_rect;
1661}
1662extern "C" {
1663    pub fn nk_layout_space_rect_to_local(arg1: *mut nk_context, arg2: nk_rect) -> nk_rect;
1664}
1665extern "C" {
1666    pub fn nk_group_begin(
1667        arg1: *mut nk_context,
1668        title: *const ::std::os::raw::c_char,
1669        arg2: nk_flags,
1670    ) -> ::std::os::raw::c_int;
1671}
1672extern "C" {
1673    pub fn nk_group_begin_titled(
1674        arg1: *mut nk_context,
1675        name: *const ::std::os::raw::c_char,
1676        title: *const ::std::os::raw::c_char,
1677        arg2: nk_flags,
1678    ) -> ::std::os::raw::c_int;
1679}
1680extern "C" {
1681    pub fn nk_group_end(arg1: *mut nk_context);
1682}
1683extern "C" {
1684    pub fn nk_group_scrolled_offset_begin(
1685        arg1: *mut nk_context,
1686        x_offset: *mut nk_uint,
1687        y_offset: *mut nk_uint,
1688        title: *const ::std::os::raw::c_char,
1689        flags: nk_flags,
1690    ) -> ::std::os::raw::c_int;
1691}
1692extern "C" {
1693    pub fn nk_group_scrolled_begin(
1694        arg1: *mut nk_context,
1695        off: *mut nk_scroll,
1696        title: *const ::std::os::raw::c_char,
1697        arg2: nk_flags,
1698    ) -> ::std::os::raw::c_int;
1699}
1700extern "C" {
1701    pub fn nk_group_scrolled_end(arg1: *mut nk_context);
1702}
1703extern "C" {
1704    pub fn nk_group_get_scroll(
1705        arg1: *mut nk_context,
1706        id: *const ::std::os::raw::c_char,
1707        x_offset: *mut nk_uint,
1708        y_offset: *mut nk_uint,
1709    );
1710}
1711extern "C" {
1712    pub fn nk_group_set_scroll(
1713        arg1: *mut nk_context,
1714        id: *const ::std::os::raw::c_char,
1715        x_offset: nk_uint,
1716        y_offset: nk_uint,
1717    );
1718}
1719extern "C" {
1720    pub fn nk_tree_push_hashed(
1721        arg1: *mut nk_context,
1722        arg2: nk_tree_type,
1723        title: *const ::std::os::raw::c_char,
1724        initial_state: nk_collapse_states,
1725        hash: *const ::std::os::raw::c_char,
1726        len: ::std::os::raw::c_int,
1727        seed: ::std::os::raw::c_int,
1728    ) -> ::std::os::raw::c_int;
1729}
1730extern "C" {
1731    pub fn nk_tree_image_push_hashed(
1732        arg1: *mut nk_context,
1733        arg2: nk_tree_type,
1734        arg3: nk_image,
1735        title: *const ::std::os::raw::c_char,
1736        initial_state: nk_collapse_states,
1737        hash: *const ::std::os::raw::c_char,
1738        len: ::std::os::raw::c_int,
1739        seed: ::std::os::raw::c_int,
1740    ) -> ::std::os::raw::c_int;
1741}
1742extern "C" {
1743    pub fn nk_tree_pop(arg1: *mut nk_context);
1744}
1745extern "C" {
1746    pub fn nk_tree_state_push(
1747        arg1: *mut nk_context,
1748        arg2: nk_tree_type,
1749        title: *const ::std::os::raw::c_char,
1750        state: *mut nk_collapse_states,
1751    ) -> ::std::os::raw::c_int;
1752}
1753extern "C" {
1754    pub fn nk_tree_state_image_push(
1755        arg1: *mut nk_context,
1756        arg2: nk_tree_type,
1757        arg3: nk_image,
1758        title: *const ::std::os::raw::c_char,
1759        state: *mut nk_collapse_states,
1760    ) -> ::std::os::raw::c_int;
1761}
1762extern "C" {
1763    pub fn nk_tree_state_pop(arg1: *mut nk_context);
1764}
1765extern "C" {
1766    pub fn nk_tree_element_push_hashed(
1767        arg1: *mut nk_context,
1768        arg2: nk_tree_type,
1769        title: *const ::std::os::raw::c_char,
1770        initial_state: nk_collapse_states,
1771        selected: *mut ::std::os::raw::c_int,
1772        hash: *const ::std::os::raw::c_char,
1773        len: ::std::os::raw::c_int,
1774        seed: ::std::os::raw::c_int,
1775    ) -> ::std::os::raw::c_int;
1776}
1777extern "C" {
1778    pub fn nk_tree_element_image_push_hashed(
1779        arg1: *mut nk_context,
1780        arg2: nk_tree_type,
1781        arg3: nk_image,
1782        title: *const ::std::os::raw::c_char,
1783        initial_state: nk_collapse_states,
1784        selected: *mut ::std::os::raw::c_int,
1785        hash: *const ::std::os::raw::c_char,
1786        len: ::std::os::raw::c_int,
1787        seed: ::std::os::raw::c_int,
1788    ) -> ::std::os::raw::c_int;
1789}
1790extern "C" {
1791    pub fn nk_tree_element_pop(arg1: *mut nk_context);
1792}
1793#[repr(C)]
1794#[derive(Debug, Copy, Clone)]
1795pub struct nk_list_view {
1796    pub begin: ::std::os::raw::c_int,
1797    pub end: ::std::os::raw::c_int,
1798    pub count: ::std::os::raw::c_int,
1799    pub total_height: ::std::os::raw::c_int,
1800    pub ctx: *mut nk_context,
1801    pub scroll_pointer: *mut nk_uint,
1802    pub scroll_value: nk_uint,
1803}
1804#[test]
1805fn bindgen_test_layout_nk_list_view() {
1806    assert_eq!(
1807        ::std::mem::size_of::<nk_list_view>(),
1808        40usize,
1809        concat!("Size of: ", stringify!(nk_list_view))
1810    );
1811    assert_eq!(
1812        ::std::mem::align_of::<nk_list_view>(),
1813        8usize,
1814        concat!("Alignment of ", stringify!(nk_list_view))
1815    );
1816    assert_eq!(
1817        unsafe { &(*(::std::ptr::null::<nk_list_view>())).begin as *const _ as usize },
1818        0usize,
1819        concat!(
1820            "Offset of field: ",
1821            stringify!(nk_list_view),
1822            "::",
1823            stringify!(begin)
1824        )
1825    );
1826    assert_eq!(
1827        unsafe { &(*(::std::ptr::null::<nk_list_view>())).end as *const _ as usize },
1828        4usize,
1829        concat!(
1830            "Offset of field: ",
1831            stringify!(nk_list_view),
1832            "::",
1833            stringify!(end)
1834        )
1835    );
1836    assert_eq!(
1837        unsafe { &(*(::std::ptr::null::<nk_list_view>())).count as *const _ as usize },
1838        8usize,
1839        concat!(
1840            "Offset of field: ",
1841            stringify!(nk_list_view),
1842            "::",
1843            stringify!(count)
1844        )
1845    );
1846    assert_eq!(
1847        unsafe { &(*(::std::ptr::null::<nk_list_view>())).total_height as *const _ as usize },
1848        12usize,
1849        concat!(
1850            "Offset of field: ",
1851            stringify!(nk_list_view),
1852            "::",
1853            stringify!(total_height)
1854        )
1855    );
1856    assert_eq!(
1857        unsafe { &(*(::std::ptr::null::<nk_list_view>())).ctx as *const _ as usize },
1858        16usize,
1859        concat!(
1860            "Offset of field: ",
1861            stringify!(nk_list_view),
1862            "::",
1863            stringify!(ctx)
1864        )
1865    );
1866    assert_eq!(
1867        unsafe { &(*(::std::ptr::null::<nk_list_view>())).scroll_pointer as *const _ as usize },
1868        24usize,
1869        concat!(
1870            "Offset of field: ",
1871            stringify!(nk_list_view),
1872            "::",
1873            stringify!(scroll_pointer)
1874        )
1875    );
1876    assert_eq!(
1877        unsafe { &(*(::std::ptr::null::<nk_list_view>())).scroll_value as *const _ as usize },
1878        32usize,
1879        concat!(
1880            "Offset of field: ",
1881            stringify!(nk_list_view),
1882            "::",
1883            stringify!(scroll_value)
1884        )
1885    );
1886}
1887impl Default for nk_list_view {
1888    fn default() -> Self {
1889        unsafe { ::std::mem::zeroed() }
1890    }
1891}
1892extern "C" {
1893    pub fn nk_list_view_begin(
1894        arg1: *mut nk_context,
1895        out: *mut nk_list_view,
1896        id: *const ::std::os::raw::c_char,
1897        arg2: nk_flags,
1898        row_height: ::std::os::raw::c_int,
1899        row_count: ::std::os::raw::c_int,
1900    ) -> ::std::os::raw::c_int;
1901}
1902extern "C" {
1903    pub fn nk_list_view_end(arg1: *mut nk_list_view);
1904}
1905pub const nk_widget_layout_states_NK_WIDGET_INVALID: nk_widget_layout_states = 0;
1906pub const nk_widget_layout_states_NK_WIDGET_VALID: nk_widget_layout_states = 1;
1907pub const nk_widget_layout_states_NK_WIDGET_ROM: nk_widget_layout_states = 2;
1908pub type nk_widget_layout_states = u32;
1909pub const nk_widget_states_NK_WIDGET_STATE_MODIFIED: nk_widget_states = 2;
1910pub const nk_widget_states_NK_WIDGET_STATE_INACTIVE: nk_widget_states = 4;
1911pub const nk_widget_states_NK_WIDGET_STATE_ENTERED: nk_widget_states = 8;
1912pub const nk_widget_states_NK_WIDGET_STATE_HOVER: nk_widget_states = 16;
1913pub const nk_widget_states_NK_WIDGET_STATE_ACTIVED: nk_widget_states = 32;
1914pub const nk_widget_states_NK_WIDGET_STATE_LEFT: nk_widget_states = 64;
1915pub const nk_widget_states_NK_WIDGET_STATE_HOVERED: nk_widget_states = 18;
1916pub const nk_widget_states_NK_WIDGET_STATE_ACTIVE: nk_widget_states = 34;
1917pub type nk_widget_states = u32;
1918extern "C" {
1919    pub fn nk_widget(arg1: *mut nk_rect, arg2: *const nk_context) -> nk_widget_layout_states;
1920}
1921extern "C" {
1922    pub fn nk_widget_fitting(
1923        arg1: *mut nk_rect,
1924        arg2: *mut nk_context,
1925        arg3: nk_vec2,
1926    ) -> nk_widget_layout_states;
1927}
1928extern "C" {
1929    pub fn nk_widget_bounds(arg1: *mut nk_context) -> nk_rect;
1930}
1931extern "C" {
1932    pub fn nk_widget_position(arg1: *mut nk_context) -> nk_vec2;
1933}
1934extern "C" {
1935    pub fn nk_widget_size(arg1: *mut nk_context) -> nk_vec2;
1936}
1937extern "C" {
1938    pub fn nk_widget_width(arg1: *mut nk_context) -> f32;
1939}
1940extern "C" {
1941    pub fn nk_widget_height(arg1: *mut nk_context) -> f32;
1942}
1943extern "C" {
1944    pub fn nk_widget_is_hovered(arg1: *mut nk_context) -> ::std::os::raw::c_int;
1945}
1946extern "C" {
1947    pub fn nk_widget_is_mouse_clicked(
1948        arg1: *mut nk_context,
1949        arg2: nk_buttons,
1950    ) -> ::std::os::raw::c_int;
1951}
1952extern "C" {
1953    pub fn nk_widget_has_mouse_click_down(
1954        arg1: *mut nk_context,
1955        arg2: nk_buttons,
1956        down: ::std::os::raw::c_int,
1957    ) -> ::std::os::raw::c_int;
1958}
1959extern "C" {
1960    pub fn nk_spacing(arg1: *mut nk_context, cols: ::std::os::raw::c_int);
1961}
1962pub const nk_text_align_NK_TEXT_ALIGN_LEFT: nk_text_align = 1;
1963pub const nk_text_align_NK_TEXT_ALIGN_CENTERED: nk_text_align = 2;
1964pub const nk_text_align_NK_TEXT_ALIGN_RIGHT: nk_text_align = 4;
1965pub const nk_text_align_NK_TEXT_ALIGN_TOP: nk_text_align = 8;
1966pub const nk_text_align_NK_TEXT_ALIGN_MIDDLE: nk_text_align = 16;
1967pub const nk_text_align_NK_TEXT_ALIGN_BOTTOM: nk_text_align = 32;
1968pub type nk_text_align = u32;
1969pub const nk_text_alignment_NK_TEXT_LEFT: nk_text_alignment = 17;
1970pub const nk_text_alignment_NK_TEXT_CENTERED: nk_text_alignment = 18;
1971pub const nk_text_alignment_NK_TEXT_RIGHT: nk_text_alignment = 20;
1972pub type nk_text_alignment = u32;
1973extern "C" {
1974    pub fn nk_text(
1975        arg1: *mut nk_context,
1976        arg2: *const ::std::os::raw::c_char,
1977        arg3: ::std::os::raw::c_int,
1978        arg4: nk_flags,
1979    );
1980}
1981extern "C" {
1982    pub fn nk_text_colored(
1983        arg1: *mut nk_context,
1984        arg2: *const ::std::os::raw::c_char,
1985        arg3: ::std::os::raw::c_int,
1986        arg4: nk_flags,
1987        arg5: nk_color,
1988    );
1989}
1990extern "C" {
1991    pub fn nk_text_wrap(
1992        arg1: *mut nk_context,
1993        arg2: *const ::std::os::raw::c_char,
1994        arg3: ::std::os::raw::c_int,
1995    );
1996}
1997extern "C" {
1998    pub fn nk_text_wrap_colored(
1999        arg1: *mut nk_context,
2000        arg2: *const ::std::os::raw::c_char,
2001        arg3: ::std::os::raw::c_int,
2002        arg4: nk_color,
2003    );
2004}
2005extern "C" {
2006    pub fn nk_label(arg1: *mut nk_context, arg2: *const ::std::os::raw::c_char, align: nk_flags);
2007}
2008extern "C" {
2009    pub fn nk_label_colored(
2010        arg1: *mut nk_context,
2011        arg2: *const ::std::os::raw::c_char,
2012        align: nk_flags,
2013        arg3: nk_color,
2014    );
2015}
2016extern "C" {
2017    pub fn nk_label_wrap(arg1: *mut nk_context, arg2: *const ::std::os::raw::c_char);
2018}
2019extern "C" {
2020    pub fn nk_label_colored_wrap(
2021        arg1: *mut nk_context,
2022        arg2: *const ::std::os::raw::c_char,
2023        arg3: nk_color,
2024    );
2025}
2026extern "C" {
2027    pub fn nk_image(arg1: *mut nk_context, arg2: nk_image);
2028}
2029extern "C" {
2030    pub fn nk_image_color(arg1: *mut nk_context, arg2: nk_image, arg3: nk_color);
2031}
2032extern "C" {
2033    pub fn nk_button_text(
2034        arg1: *mut nk_context,
2035        title: *const ::std::os::raw::c_char,
2036        len: ::std::os::raw::c_int,
2037    ) -> ::std::os::raw::c_int;
2038}
2039extern "C" {
2040    pub fn nk_button_label(
2041        arg1: *mut nk_context,
2042        title: *const ::std::os::raw::c_char,
2043    ) -> ::std::os::raw::c_int;
2044}
2045extern "C" {
2046    pub fn nk_button_color(arg1: *mut nk_context, arg2: nk_color) -> ::std::os::raw::c_int;
2047}
2048extern "C" {
2049    pub fn nk_button_symbol(arg1: *mut nk_context, arg2: nk_symbol_type) -> ::std::os::raw::c_int;
2050}
2051extern "C" {
2052    pub fn nk_button_image(arg1: *mut nk_context, img: nk_image) -> ::std::os::raw::c_int;
2053}
2054extern "C" {
2055    pub fn nk_button_symbol_label(
2056        arg1: *mut nk_context,
2057        arg2: nk_symbol_type,
2058        arg3: *const ::std::os::raw::c_char,
2059        text_alignment: nk_flags,
2060    ) -> ::std::os::raw::c_int;
2061}
2062extern "C" {
2063    pub fn nk_button_symbol_text(
2064        arg1: *mut nk_context,
2065        arg2: nk_symbol_type,
2066        arg3: *const ::std::os::raw::c_char,
2067        arg4: ::std::os::raw::c_int,
2068        alignment: nk_flags,
2069    ) -> ::std::os::raw::c_int;
2070}
2071extern "C" {
2072    pub fn nk_button_image_label(
2073        arg1: *mut nk_context,
2074        img: nk_image,
2075        arg2: *const ::std::os::raw::c_char,
2076        text_alignment: nk_flags,
2077    ) -> ::std::os::raw::c_int;
2078}
2079extern "C" {
2080    pub fn nk_button_image_text(
2081        arg1: *mut nk_context,
2082        img: nk_image,
2083        arg2: *const ::std::os::raw::c_char,
2084        arg3: ::std::os::raw::c_int,
2085        alignment: nk_flags,
2086    ) -> ::std::os::raw::c_int;
2087}
2088extern "C" {
2089    pub fn nk_button_text_styled(
2090        arg1: *mut nk_context,
2091        arg2: *const nk_style_button,
2092        title: *const ::std::os::raw::c_char,
2093        len: ::std::os::raw::c_int,
2094    ) -> ::std::os::raw::c_int;
2095}
2096extern "C" {
2097    pub fn nk_button_label_styled(
2098        arg1: *mut nk_context,
2099        arg2: *const nk_style_button,
2100        title: *const ::std::os::raw::c_char,
2101    ) -> ::std::os::raw::c_int;
2102}
2103extern "C" {
2104    pub fn nk_button_symbol_styled(
2105        arg1: *mut nk_context,
2106        arg2: *const nk_style_button,
2107        arg3: nk_symbol_type,
2108    ) -> ::std::os::raw::c_int;
2109}
2110extern "C" {
2111    pub fn nk_button_image_styled(
2112        arg1: *mut nk_context,
2113        arg2: *const nk_style_button,
2114        img: nk_image,
2115    ) -> ::std::os::raw::c_int;
2116}
2117extern "C" {
2118    pub fn nk_button_symbol_text_styled(
2119        arg1: *mut nk_context,
2120        arg2: *const nk_style_button,
2121        arg3: nk_symbol_type,
2122        arg4: *const ::std::os::raw::c_char,
2123        arg5: ::std::os::raw::c_int,
2124        alignment: nk_flags,
2125    ) -> ::std::os::raw::c_int;
2126}
2127extern "C" {
2128    pub fn nk_button_symbol_label_styled(
2129        ctx: *mut nk_context,
2130        style: *const nk_style_button,
2131        symbol: nk_symbol_type,
2132        title: *const ::std::os::raw::c_char,
2133        align: nk_flags,
2134    ) -> ::std::os::raw::c_int;
2135}
2136extern "C" {
2137    pub fn nk_button_image_label_styled(
2138        arg1: *mut nk_context,
2139        arg2: *const nk_style_button,
2140        img: nk_image,
2141        arg3: *const ::std::os::raw::c_char,
2142        text_alignment: nk_flags,
2143    ) -> ::std::os::raw::c_int;
2144}
2145extern "C" {
2146    pub fn nk_button_image_text_styled(
2147        arg1: *mut nk_context,
2148        arg2: *const nk_style_button,
2149        img: nk_image,
2150        arg3: *const ::std::os::raw::c_char,
2151        arg4: ::std::os::raw::c_int,
2152        alignment: nk_flags,
2153    ) -> ::std::os::raw::c_int;
2154}
2155extern "C" {
2156    pub fn nk_button_set_behavior(arg1: *mut nk_context, arg2: nk_button_behavior);
2157}
2158extern "C" {
2159    pub fn nk_button_push_behavior(
2160        arg1: *mut nk_context,
2161        arg2: nk_button_behavior,
2162    ) -> ::std::os::raw::c_int;
2163}
2164extern "C" {
2165    pub fn nk_button_pop_behavior(arg1: *mut nk_context) -> ::std::os::raw::c_int;
2166}
2167extern "C" {
2168    pub fn nk_check_label(
2169        arg1: *mut nk_context,
2170        arg2: *const ::std::os::raw::c_char,
2171        active: ::std::os::raw::c_int,
2172    ) -> ::std::os::raw::c_int;
2173}
2174extern "C" {
2175    pub fn nk_check_text(
2176        arg1: *mut nk_context,
2177        arg2: *const ::std::os::raw::c_char,
2178        arg3: ::std::os::raw::c_int,
2179        active: ::std::os::raw::c_int,
2180    ) -> ::std::os::raw::c_int;
2181}
2182extern "C" {
2183    pub fn nk_check_flags_label(
2184        arg1: *mut nk_context,
2185        arg2: *const ::std::os::raw::c_char,
2186        flags: ::std::os::raw::c_uint,
2187        value: ::std::os::raw::c_uint,
2188    ) -> ::std::os::raw::c_uint;
2189}
2190extern "C" {
2191    pub fn nk_check_flags_text(
2192        arg1: *mut nk_context,
2193        arg2: *const ::std::os::raw::c_char,
2194        arg3: ::std::os::raw::c_int,
2195        flags: ::std::os::raw::c_uint,
2196        value: ::std::os::raw::c_uint,
2197    ) -> ::std::os::raw::c_uint;
2198}
2199extern "C" {
2200    pub fn nk_checkbox_label(
2201        arg1: *mut nk_context,
2202        arg2: *const ::std::os::raw::c_char,
2203        active: *mut ::std::os::raw::c_int,
2204    ) -> ::std::os::raw::c_int;
2205}
2206extern "C" {
2207    pub fn nk_checkbox_text(
2208        arg1: *mut nk_context,
2209        arg2: *const ::std::os::raw::c_char,
2210        arg3: ::std::os::raw::c_int,
2211        active: *mut ::std::os::raw::c_int,
2212    ) -> ::std::os::raw::c_int;
2213}
2214extern "C" {
2215    pub fn nk_checkbox_flags_label(
2216        arg1: *mut nk_context,
2217        arg2: *const ::std::os::raw::c_char,
2218        flags: *mut ::std::os::raw::c_uint,
2219        value: ::std::os::raw::c_uint,
2220    ) -> ::std::os::raw::c_int;
2221}
2222extern "C" {
2223    pub fn nk_checkbox_flags_text(
2224        arg1: *mut nk_context,
2225        arg2: *const ::std::os::raw::c_char,
2226        arg3: ::std::os::raw::c_int,
2227        flags: *mut ::std::os::raw::c_uint,
2228        value: ::std::os::raw::c_uint,
2229    ) -> ::std::os::raw::c_int;
2230}
2231extern "C" {
2232    pub fn nk_radio_label(
2233        arg1: *mut nk_context,
2234        arg2: *const ::std::os::raw::c_char,
2235        active: *mut ::std::os::raw::c_int,
2236    ) -> ::std::os::raw::c_int;
2237}
2238extern "C" {
2239    pub fn nk_radio_text(
2240        arg1: *mut nk_context,
2241        arg2: *const ::std::os::raw::c_char,
2242        arg3: ::std::os::raw::c_int,
2243        active: *mut ::std::os::raw::c_int,
2244    ) -> ::std::os::raw::c_int;
2245}
2246extern "C" {
2247    pub fn nk_option_label(
2248        arg1: *mut nk_context,
2249        arg2: *const ::std::os::raw::c_char,
2250        active: ::std::os::raw::c_int,
2251    ) -> ::std::os::raw::c_int;
2252}
2253extern "C" {
2254    pub fn nk_option_text(
2255        arg1: *mut nk_context,
2256        arg2: *const ::std::os::raw::c_char,
2257        arg3: ::std::os::raw::c_int,
2258        active: ::std::os::raw::c_int,
2259    ) -> ::std::os::raw::c_int;
2260}
2261extern "C" {
2262    pub fn nk_selectable_label(
2263        arg1: *mut nk_context,
2264        arg2: *const ::std::os::raw::c_char,
2265        align: nk_flags,
2266        value: *mut ::std::os::raw::c_int,
2267    ) -> ::std::os::raw::c_int;
2268}
2269extern "C" {
2270    pub fn nk_selectable_text(
2271        arg1: *mut nk_context,
2272        arg2: *const ::std::os::raw::c_char,
2273        arg3: ::std::os::raw::c_int,
2274        align: nk_flags,
2275        value: *mut ::std::os::raw::c_int,
2276    ) -> ::std::os::raw::c_int;
2277}
2278extern "C" {
2279    pub fn nk_selectable_image_label(
2280        arg1: *mut nk_context,
2281        arg2: nk_image,
2282        arg3: *const ::std::os::raw::c_char,
2283        align: nk_flags,
2284        value: *mut ::std::os::raw::c_int,
2285    ) -> ::std::os::raw::c_int;
2286}
2287extern "C" {
2288    pub fn nk_selectable_image_text(
2289        arg1: *mut nk_context,
2290        arg2: nk_image,
2291        arg3: *const ::std::os::raw::c_char,
2292        arg4: ::std::os::raw::c_int,
2293        align: nk_flags,
2294        value: *mut ::std::os::raw::c_int,
2295    ) -> ::std::os::raw::c_int;
2296}
2297extern "C" {
2298    pub fn nk_selectable_symbol_label(
2299        arg1: *mut nk_context,
2300        arg2: nk_symbol_type,
2301        arg3: *const ::std::os::raw::c_char,
2302        align: nk_flags,
2303        value: *mut ::std::os::raw::c_int,
2304    ) -> ::std::os::raw::c_int;
2305}
2306extern "C" {
2307    pub fn nk_selectable_symbol_text(
2308        arg1: *mut nk_context,
2309        arg2: nk_symbol_type,
2310        arg3: *const ::std::os::raw::c_char,
2311        arg4: ::std::os::raw::c_int,
2312        align: nk_flags,
2313        value: *mut ::std::os::raw::c_int,
2314    ) -> ::std::os::raw::c_int;
2315}
2316extern "C" {
2317    pub fn nk_select_label(
2318        arg1: *mut nk_context,
2319        arg2: *const ::std::os::raw::c_char,
2320        align: nk_flags,
2321        value: ::std::os::raw::c_int,
2322    ) -> ::std::os::raw::c_int;
2323}
2324extern "C" {
2325    pub fn nk_select_text(
2326        arg1: *mut nk_context,
2327        arg2: *const ::std::os::raw::c_char,
2328        arg3: ::std::os::raw::c_int,
2329        align: nk_flags,
2330        value: ::std::os::raw::c_int,
2331    ) -> ::std::os::raw::c_int;
2332}
2333extern "C" {
2334    pub fn nk_select_image_label(
2335        arg1: *mut nk_context,
2336        arg2: nk_image,
2337        arg3: *const ::std::os::raw::c_char,
2338        align: nk_flags,
2339        value: ::std::os::raw::c_int,
2340    ) -> ::std::os::raw::c_int;
2341}
2342extern "C" {
2343    pub fn nk_select_image_text(
2344        arg1: *mut nk_context,
2345        arg2: nk_image,
2346        arg3: *const ::std::os::raw::c_char,
2347        arg4: ::std::os::raw::c_int,
2348        align: nk_flags,
2349        value: ::std::os::raw::c_int,
2350    ) -> ::std::os::raw::c_int;
2351}
2352extern "C" {
2353    pub fn nk_select_symbol_label(
2354        arg1: *mut nk_context,
2355        arg2: nk_symbol_type,
2356        arg3: *const ::std::os::raw::c_char,
2357        align: nk_flags,
2358        value: ::std::os::raw::c_int,
2359    ) -> ::std::os::raw::c_int;
2360}
2361extern "C" {
2362    pub fn nk_select_symbol_text(
2363        arg1: *mut nk_context,
2364        arg2: nk_symbol_type,
2365        arg3: *const ::std::os::raw::c_char,
2366        arg4: ::std::os::raw::c_int,
2367        align: nk_flags,
2368        value: ::std::os::raw::c_int,
2369    ) -> ::std::os::raw::c_int;
2370}
2371extern "C" {
2372    pub fn nk_slide_float(arg1: *mut nk_context, min: f32, val: f32, max: f32, step: f32) -> f32;
2373}
2374extern "C" {
2375    pub fn nk_slide_int(
2376        arg1: *mut nk_context,
2377        min: ::std::os::raw::c_int,
2378        val: ::std::os::raw::c_int,
2379        max: ::std::os::raw::c_int,
2380        step: ::std::os::raw::c_int,
2381    ) -> ::std::os::raw::c_int;
2382}
2383extern "C" {
2384    pub fn nk_slider_float(
2385        arg1: *mut nk_context,
2386        min: f32,
2387        val: *mut f32,
2388        max: f32,
2389        step: f32,
2390    ) -> ::std::os::raw::c_int;
2391}
2392extern "C" {
2393    pub fn nk_slider_int(
2394        arg1: *mut nk_context,
2395        min: ::std::os::raw::c_int,
2396        val: *mut ::std::os::raw::c_int,
2397        max: ::std::os::raw::c_int,
2398        step: ::std::os::raw::c_int,
2399    ) -> ::std::os::raw::c_int;
2400}
2401extern "C" {
2402    pub fn nk_progress(
2403        arg1: *mut nk_context,
2404        cur: *mut nk_size,
2405        max: nk_size,
2406        modifyable: ::std::os::raw::c_int,
2407    ) -> ::std::os::raw::c_int;
2408}
2409extern "C" {
2410    pub fn nk_prog(
2411        arg1: *mut nk_context,
2412        cur: nk_size,
2413        max: nk_size,
2414        modifyable: ::std::os::raw::c_int,
2415    ) -> nk_size;
2416}
2417extern "C" {
2418    pub fn nk_color_picker(
2419        arg1: *mut nk_context,
2420        arg2: nk_colorf,
2421        arg3: nk_color_format,
2422    ) -> nk_colorf;
2423}
2424extern "C" {
2425    pub fn nk_color_pick(
2426        arg1: *mut nk_context,
2427        arg2: *mut nk_colorf,
2428        arg3: nk_color_format,
2429    ) -> ::std::os::raw::c_int;
2430}
2431extern "C" {
2432    pub fn nk_property_int(
2433        arg1: *mut nk_context,
2434        name: *const ::std::os::raw::c_char,
2435        min: ::std::os::raw::c_int,
2436        val: *mut ::std::os::raw::c_int,
2437        max: ::std::os::raw::c_int,
2438        step: ::std::os::raw::c_int,
2439        inc_per_pixel: f32,
2440    );
2441}
2442extern "C" {
2443    pub fn nk_property_float(
2444        arg1: *mut nk_context,
2445        name: *const ::std::os::raw::c_char,
2446        min: f32,
2447        val: *mut f32,
2448        max: f32,
2449        step: f32,
2450        inc_per_pixel: f32,
2451    );
2452}
2453extern "C" {
2454    pub fn nk_property_double(
2455        arg1: *mut nk_context,
2456        name: *const ::std::os::raw::c_char,
2457        min: f64,
2458        val: *mut f64,
2459        max: f64,
2460        step: f64,
2461        inc_per_pixel: f32,
2462    );
2463}
2464extern "C" {
2465    pub fn nk_propertyi(
2466        arg1: *mut nk_context,
2467        name: *const ::std::os::raw::c_char,
2468        min: ::std::os::raw::c_int,
2469        val: ::std::os::raw::c_int,
2470        max: ::std::os::raw::c_int,
2471        step: ::std::os::raw::c_int,
2472        inc_per_pixel: f32,
2473    ) -> ::std::os::raw::c_int;
2474}
2475extern "C" {
2476    pub fn nk_propertyf(
2477        arg1: *mut nk_context,
2478        name: *const ::std::os::raw::c_char,
2479        min: f32,
2480        val: f32,
2481        max: f32,
2482        step: f32,
2483        inc_per_pixel: f32,
2484    ) -> f32;
2485}
2486extern "C" {
2487    pub fn nk_propertyd(
2488        arg1: *mut nk_context,
2489        name: *const ::std::os::raw::c_char,
2490        min: f64,
2491        val: f64,
2492        max: f64,
2493        step: f64,
2494        inc_per_pixel: f32,
2495    ) -> f64;
2496}
2497pub const nk_edit_flags_NK_EDIT_DEFAULT: nk_edit_flags = 0;
2498pub const nk_edit_flags_NK_EDIT_READ_ONLY: nk_edit_flags = 1;
2499pub const nk_edit_flags_NK_EDIT_AUTO_SELECT: nk_edit_flags = 2;
2500pub const nk_edit_flags_NK_EDIT_SIG_ENTER: nk_edit_flags = 4;
2501pub const nk_edit_flags_NK_EDIT_ALLOW_TAB: nk_edit_flags = 8;
2502pub const nk_edit_flags_NK_EDIT_NO_CURSOR: nk_edit_flags = 16;
2503pub const nk_edit_flags_NK_EDIT_SELECTABLE: nk_edit_flags = 32;
2504pub const nk_edit_flags_NK_EDIT_CLIPBOARD: nk_edit_flags = 64;
2505pub const nk_edit_flags_NK_EDIT_CTRL_ENTER_NEWLINE: nk_edit_flags = 128;
2506pub const nk_edit_flags_NK_EDIT_NO_HORIZONTAL_SCROLL: nk_edit_flags = 256;
2507pub const nk_edit_flags_NK_EDIT_ALWAYS_INSERT_MODE: nk_edit_flags = 512;
2508pub const nk_edit_flags_NK_EDIT_MULTILINE: nk_edit_flags = 1024;
2509pub const nk_edit_flags_NK_EDIT_GOTO_END_ON_ACTIVATE: nk_edit_flags = 2048;
2510pub type nk_edit_flags = u32;
2511pub const nk_edit_types_NK_EDIT_SIMPLE: nk_edit_types = 512;
2512pub const nk_edit_types_NK_EDIT_FIELD: nk_edit_types = 608;
2513pub const nk_edit_types_NK_EDIT_BOX: nk_edit_types = 1640;
2514pub const nk_edit_types_NK_EDIT_EDITOR: nk_edit_types = 1128;
2515pub type nk_edit_types = u32;
2516pub const nk_edit_events_NK_EDIT_ACTIVE: nk_edit_events = 1;
2517pub const nk_edit_events_NK_EDIT_INACTIVE: nk_edit_events = 2;
2518pub const nk_edit_events_NK_EDIT_ACTIVATED: nk_edit_events = 4;
2519pub const nk_edit_events_NK_EDIT_DEACTIVATED: nk_edit_events = 8;
2520pub const nk_edit_events_NK_EDIT_COMMITED: nk_edit_events = 16;
2521pub type nk_edit_events = u32;
2522extern "C" {
2523    pub fn nk_edit_string(
2524        arg1: *mut nk_context,
2525        arg2: nk_flags,
2526        buffer: *mut ::std::os::raw::c_char,
2527        len: *mut ::std::os::raw::c_int,
2528        max: ::std::os::raw::c_int,
2529        arg3: nk_plugin_filter,
2530    ) -> nk_flags;
2531}
2532extern "C" {
2533    pub fn nk_edit_string_zero_terminated(
2534        arg1: *mut nk_context,
2535        arg2: nk_flags,
2536        buffer: *mut ::std::os::raw::c_char,
2537        max: ::std::os::raw::c_int,
2538        arg3: nk_plugin_filter,
2539    ) -> nk_flags;
2540}
2541extern "C" {
2542    pub fn nk_edit_buffer(
2543        arg1: *mut nk_context,
2544        arg2: nk_flags,
2545        arg3: *mut nk_text_edit,
2546        arg4: nk_plugin_filter,
2547    ) -> nk_flags;
2548}
2549extern "C" {
2550    pub fn nk_edit_focus(arg1: *mut nk_context, flags: nk_flags);
2551}
2552extern "C" {
2553    pub fn nk_edit_unfocus(arg1: *mut nk_context);
2554}
2555extern "C" {
2556    pub fn nk_chart_begin(
2557        arg1: *mut nk_context,
2558        arg2: nk_chart_type,
2559        num: ::std::os::raw::c_int,
2560        min: f32,
2561        max: f32,
2562    ) -> ::std::os::raw::c_int;
2563}
2564extern "C" {
2565    pub fn nk_chart_begin_colored(
2566        arg1: *mut nk_context,
2567        arg2: nk_chart_type,
2568        arg3: nk_color,
2569        active: nk_color,
2570        num: ::std::os::raw::c_int,
2571        min: f32,
2572        max: f32,
2573    ) -> ::std::os::raw::c_int;
2574}
2575extern "C" {
2576    pub fn nk_chart_add_slot(
2577        ctx: *mut nk_context,
2578        arg1: nk_chart_type,
2579        count: ::std::os::raw::c_int,
2580        min_value: f32,
2581        max_value: f32,
2582    );
2583}
2584extern "C" {
2585    pub fn nk_chart_add_slot_colored(
2586        ctx: *mut nk_context,
2587        arg1: nk_chart_type,
2588        arg2: nk_color,
2589        active: nk_color,
2590        count: ::std::os::raw::c_int,
2591        min_value: f32,
2592        max_value: f32,
2593    );
2594}
2595extern "C" {
2596    pub fn nk_chart_push(arg1: *mut nk_context, arg2: f32) -> nk_flags;
2597}
2598extern "C" {
2599    pub fn nk_chart_push_slot(
2600        arg1: *mut nk_context,
2601        arg2: f32,
2602        arg3: ::std::os::raw::c_int,
2603    ) -> nk_flags;
2604}
2605extern "C" {
2606    pub fn nk_chart_end(arg1: *mut nk_context);
2607}
2608extern "C" {
2609    pub fn nk_plot(
2610        arg1: *mut nk_context,
2611        arg2: nk_chart_type,
2612        values: *const f32,
2613        count: ::std::os::raw::c_int,
2614        offset: ::std::os::raw::c_int,
2615    );
2616}
2617extern "C" {
2618    pub fn nk_plot_function(
2619        arg1: *mut nk_context,
2620        arg2: nk_chart_type,
2621        userdata: *mut ::std::os::raw::c_void,
2622        value_getter: ::std::option::Option<
2623            unsafe extern "C" fn(
2624                user: *mut ::std::os::raw::c_void,
2625                index: ::std::os::raw::c_int,
2626            ) -> f32,
2627        >,
2628        count: ::std::os::raw::c_int,
2629        offset: ::std::os::raw::c_int,
2630    );
2631}
2632extern "C" {
2633    pub fn nk_popup_begin(
2634        arg1: *mut nk_context,
2635        arg2: nk_popup_type,
2636        arg3: *const ::std::os::raw::c_char,
2637        arg4: nk_flags,
2638        bounds: nk_rect,
2639    ) -> ::std::os::raw::c_int;
2640}
2641extern "C" {
2642    pub fn nk_popup_close(arg1: *mut nk_context);
2643}
2644extern "C" {
2645    pub fn nk_popup_end(arg1: *mut nk_context);
2646}
2647extern "C" {
2648    pub fn nk_popup_get_scroll(
2649        arg1: *mut nk_context,
2650        offset_x: *mut nk_uint,
2651        offset_y: *mut nk_uint,
2652    );
2653}
2654extern "C" {
2655    pub fn nk_popup_set_scroll(arg1: *mut nk_context, offset_x: nk_uint, offset_y: nk_uint);
2656}
2657extern "C" {
2658    pub fn nk_combo(
2659        arg1: *mut nk_context,
2660        items: *mut *const ::std::os::raw::c_char,
2661        count: ::std::os::raw::c_int,
2662        selected: ::std::os::raw::c_int,
2663        item_height: ::std::os::raw::c_int,
2664        size: nk_vec2,
2665    ) -> ::std::os::raw::c_int;
2666}
2667extern "C" {
2668    pub fn nk_combo_separator(
2669        arg1: *mut nk_context,
2670        items_separated_by_separator: *const ::std::os::raw::c_char,
2671        separator: ::std::os::raw::c_int,
2672        selected: ::std::os::raw::c_int,
2673        count: ::std::os::raw::c_int,
2674        item_height: ::std::os::raw::c_int,
2675        size: nk_vec2,
2676    ) -> ::std::os::raw::c_int;
2677}
2678extern "C" {
2679    pub fn nk_combo_string(
2680        arg1: *mut nk_context,
2681        items_separated_by_zeros: *const ::std::os::raw::c_char,
2682        selected: ::std::os::raw::c_int,
2683        count: ::std::os::raw::c_int,
2684        item_height: ::std::os::raw::c_int,
2685        size: nk_vec2,
2686    ) -> ::std::os::raw::c_int;
2687}
2688extern "C" {
2689    pub fn nk_combo_callback(
2690        arg1: *mut nk_context,
2691        item_getter: ::std::option::Option<
2692            unsafe extern "C" fn(
2693                arg1: *mut ::std::os::raw::c_void,
2694                arg2: ::std::os::raw::c_int,
2695                arg3: *mut *const ::std::os::raw::c_char,
2696            ),
2697        >,
2698        userdata: *mut ::std::os::raw::c_void,
2699        selected: ::std::os::raw::c_int,
2700        count: ::std::os::raw::c_int,
2701        item_height: ::std::os::raw::c_int,
2702        size: nk_vec2,
2703    ) -> ::std::os::raw::c_int;
2704}
2705extern "C" {
2706    pub fn nk_combobox(
2707        arg1: *mut nk_context,
2708        items: *mut *const ::std::os::raw::c_char,
2709        count: ::std::os::raw::c_int,
2710        selected: *mut ::std::os::raw::c_int,
2711        item_height: ::std::os::raw::c_int,
2712        size: nk_vec2,
2713    );
2714}
2715extern "C" {
2716    pub fn nk_combobox_string(
2717        arg1: *mut nk_context,
2718        items_separated_by_zeros: *const ::std::os::raw::c_char,
2719        selected: *mut ::std::os::raw::c_int,
2720        count: ::std::os::raw::c_int,
2721        item_height: ::std::os::raw::c_int,
2722        size: nk_vec2,
2723    );
2724}
2725extern "C" {
2726    pub fn nk_combobox_separator(
2727        arg1: *mut nk_context,
2728        items_separated_by_separator: *const ::std::os::raw::c_char,
2729        separator: ::std::os::raw::c_int,
2730        selected: *mut ::std::os::raw::c_int,
2731        count: ::std::os::raw::c_int,
2732        item_height: ::std::os::raw::c_int,
2733        size: nk_vec2,
2734    );
2735}
2736extern "C" {
2737    pub fn nk_combobox_callback(
2738        arg1: *mut nk_context,
2739        item_getter: ::std::option::Option<
2740            unsafe extern "C" fn(
2741                arg1: *mut ::std::os::raw::c_void,
2742                arg2: ::std::os::raw::c_int,
2743                arg3: *mut *const ::std::os::raw::c_char,
2744            ),
2745        >,
2746        arg2: *mut ::std::os::raw::c_void,
2747        selected: *mut ::std::os::raw::c_int,
2748        count: ::std::os::raw::c_int,
2749        item_height: ::std::os::raw::c_int,
2750        size: nk_vec2,
2751    );
2752}
2753extern "C" {
2754    pub fn nk_combo_begin_text(
2755        arg1: *mut nk_context,
2756        selected: *const ::std::os::raw::c_char,
2757        arg2: ::std::os::raw::c_int,
2758        size: nk_vec2,
2759    ) -> ::std::os::raw::c_int;
2760}
2761extern "C" {
2762    pub fn nk_combo_begin_label(
2763        arg1: *mut nk_context,
2764        selected: *const ::std::os::raw::c_char,
2765        size: nk_vec2,
2766    ) -> ::std::os::raw::c_int;
2767}
2768extern "C" {
2769    pub fn nk_combo_begin_color(
2770        arg1: *mut nk_context,
2771        color: nk_color,
2772        size: nk_vec2,
2773    ) -> ::std::os::raw::c_int;
2774}
2775extern "C" {
2776    pub fn nk_combo_begin_symbol(
2777        arg1: *mut nk_context,
2778        arg2: nk_symbol_type,
2779        size: nk_vec2,
2780    ) -> ::std::os::raw::c_int;
2781}
2782extern "C" {
2783    pub fn nk_combo_begin_symbol_label(
2784        arg1: *mut nk_context,
2785        selected: *const ::std::os::raw::c_char,
2786        arg2: nk_symbol_type,
2787        size: nk_vec2,
2788    ) -> ::std::os::raw::c_int;
2789}
2790extern "C" {
2791    pub fn nk_combo_begin_symbol_text(
2792        arg1: *mut nk_context,
2793        selected: *const ::std::os::raw::c_char,
2794        arg2: ::std::os::raw::c_int,
2795        arg3: nk_symbol_type,
2796        size: nk_vec2,
2797    ) -> ::std::os::raw::c_int;
2798}
2799extern "C" {
2800    pub fn nk_combo_begin_image(
2801        arg1: *mut nk_context,
2802        img: nk_image,
2803        size: nk_vec2,
2804    ) -> ::std::os::raw::c_int;
2805}
2806extern "C" {
2807    pub fn nk_combo_begin_image_label(
2808        arg1: *mut nk_context,
2809        selected: *const ::std::os::raw::c_char,
2810        arg2: nk_image,
2811        size: nk_vec2,
2812    ) -> ::std::os::raw::c_int;
2813}
2814extern "C" {
2815    pub fn nk_combo_begin_image_text(
2816        arg1: *mut nk_context,
2817        selected: *const ::std::os::raw::c_char,
2818        arg2: ::std::os::raw::c_int,
2819        arg3: nk_image,
2820        size: nk_vec2,
2821    ) -> ::std::os::raw::c_int;
2822}
2823extern "C" {
2824    pub fn nk_combo_item_label(
2825        arg1: *mut nk_context,
2826        arg2: *const ::std::os::raw::c_char,
2827        alignment: nk_flags,
2828    ) -> ::std::os::raw::c_int;
2829}
2830extern "C" {
2831    pub fn nk_combo_item_text(
2832        arg1: *mut nk_context,
2833        arg2: *const ::std::os::raw::c_char,
2834        arg3: ::std::os::raw::c_int,
2835        alignment: nk_flags,
2836    ) -> ::std::os::raw::c_int;
2837}
2838extern "C" {
2839    pub fn nk_combo_item_image_label(
2840        arg1: *mut nk_context,
2841        arg2: nk_image,
2842        arg3: *const ::std::os::raw::c_char,
2843        alignment: nk_flags,
2844    ) -> ::std::os::raw::c_int;
2845}
2846extern "C" {
2847    pub fn nk_combo_item_image_text(
2848        arg1: *mut nk_context,
2849        arg2: nk_image,
2850        arg3: *const ::std::os::raw::c_char,
2851        arg4: ::std::os::raw::c_int,
2852        alignment: nk_flags,
2853    ) -> ::std::os::raw::c_int;
2854}
2855extern "C" {
2856    pub fn nk_combo_item_symbol_label(
2857        arg1: *mut nk_context,
2858        arg2: nk_symbol_type,
2859        arg3: *const ::std::os::raw::c_char,
2860        alignment: nk_flags,
2861    ) -> ::std::os::raw::c_int;
2862}
2863extern "C" {
2864    pub fn nk_combo_item_symbol_text(
2865        arg1: *mut nk_context,
2866        arg2: nk_symbol_type,
2867        arg3: *const ::std::os::raw::c_char,
2868        arg4: ::std::os::raw::c_int,
2869        alignment: nk_flags,
2870    ) -> ::std::os::raw::c_int;
2871}
2872extern "C" {
2873    pub fn nk_combo_close(arg1: *mut nk_context);
2874}
2875extern "C" {
2876    pub fn nk_combo_end(arg1: *mut nk_context);
2877}
2878extern "C" {
2879    pub fn nk_contextual_begin(
2880        arg1: *mut nk_context,
2881        arg2: nk_flags,
2882        arg3: nk_vec2,
2883        trigger_bounds: nk_rect,
2884    ) -> ::std::os::raw::c_int;
2885}
2886extern "C" {
2887    pub fn nk_contextual_item_text(
2888        arg1: *mut nk_context,
2889        arg2: *const ::std::os::raw::c_char,
2890        arg3: ::std::os::raw::c_int,
2891        align: nk_flags,
2892    ) -> ::std::os::raw::c_int;
2893}
2894extern "C" {
2895    pub fn nk_contextual_item_label(
2896        arg1: *mut nk_context,
2897        arg2: *const ::std::os::raw::c_char,
2898        align: nk_flags,
2899    ) -> ::std::os::raw::c_int;
2900}
2901extern "C" {
2902    pub fn nk_contextual_item_image_label(
2903        arg1: *mut nk_context,
2904        arg2: nk_image,
2905        arg3: *const ::std::os::raw::c_char,
2906        alignment: nk_flags,
2907    ) -> ::std::os::raw::c_int;
2908}
2909extern "C" {
2910    pub fn nk_contextual_item_image_text(
2911        arg1: *mut nk_context,
2912        arg2: nk_image,
2913        arg3: *const ::std::os::raw::c_char,
2914        len: ::std::os::raw::c_int,
2915        alignment: nk_flags,
2916    ) -> ::std::os::raw::c_int;
2917}
2918extern "C" {
2919    pub fn nk_contextual_item_symbol_label(
2920        arg1: *mut nk_context,
2921        arg2: nk_symbol_type,
2922        arg3: *const ::std::os::raw::c_char,
2923        alignment: nk_flags,
2924    ) -> ::std::os::raw::c_int;
2925}
2926extern "C" {
2927    pub fn nk_contextual_item_symbol_text(
2928        arg1: *mut nk_context,
2929        arg2: nk_symbol_type,
2930        arg3: *const ::std::os::raw::c_char,
2931        arg4: ::std::os::raw::c_int,
2932        alignment: nk_flags,
2933    ) -> ::std::os::raw::c_int;
2934}
2935extern "C" {
2936    pub fn nk_contextual_close(arg1: *mut nk_context);
2937}
2938extern "C" {
2939    pub fn nk_contextual_end(arg1: *mut nk_context);
2940}
2941extern "C" {
2942    pub fn nk_tooltip(arg1: *mut nk_context, arg2: *const ::std::os::raw::c_char);
2943}
2944extern "C" {
2945    pub fn nk_tooltip_begin(arg1: *mut nk_context, width: f32) -> ::std::os::raw::c_int;
2946}
2947extern "C" {
2948    pub fn nk_tooltip_end(arg1: *mut nk_context);
2949}
2950extern "C" {
2951    pub fn nk_menubar_begin(arg1: *mut nk_context);
2952}
2953extern "C" {
2954    pub fn nk_menubar_end(arg1: *mut nk_context);
2955}
2956extern "C" {
2957    pub fn nk_menu_begin_text(
2958        arg1: *mut nk_context,
2959        title: *const ::std::os::raw::c_char,
2960        title_len: ::std::os::raw::c_int,
2961        align: nk_flags,
2962        size: nk_vec2,
2963    ) -> ::std::os::raw::c_int;
2964}
2965extern "C" {
2966    pub fn nk_menu_begin_label(
2967        arg1: *mut nk_context,
2968        arg2: *const ::std::os::raw::c_char,
2969        align: nk_flags,
2970        size: nk_vec2,
2971    ) -> ::std::os::raw::c_int;
2972}
2973extern "C" {
2974    pub fn nk_menu_begin_image(
2975        arg1: *mut nk_context,
2976        arg2: *const ::std::os::raw::c_char,
2977        arg3: nk_image,
2978        size: nk_vec2,
2979    ) -> ::std::os::raw::c_int;
2980}
2981extern "C" {
2982    pub fn nk_menu_begin_image_text(
2983        arg1: *mut nk_context,
2984        arg2: *const ::std::os::raw::c_char,
2985        arg3: ::std::os::raw::c_int,
2986        align: nk_flags,
2987        arg4: nk_image,
2988        size: nk_vec2,
2989    ) -> ::std::os::raw::c_int;
2990}
2991extern "C" {
2992    pub fn nk_menu_begin_image_label(
2993        arg1: *mut nk_context,
2994        arg2: *const ::std::os::raw::c_char,
2995        align: nk_flags,
2996        arg3: nk_image,
2997        size: nk_vec2,
2998    ) -> ::std::os::raw::c_int;
2999}
3000extern "C" {
3001    pub fn nk_menu_begin_symbol(
3002        arg1: *mut nk_context,
3003        arg2: *const ::std::os::raw::c_char,
3004        arg3: nk_symbol_type,
3005        size: nk_vec2,
3006    ) -> ::std::os::raw::c_int;
3007}
3008extern "C" {
3009    pub fn nk_menu_begin_symbol_text(
3010        arg1: *mut nk_context,
3011        arg2: *const ::std::os::raw::c_char,
3012        arg3: ::std::os::raw::c_int,
3013        align: nk_flags,
3014        arg4: nk_symbol_type,
3015        size: nk_vec2,
3016    ) -> ::std::os::raw::c_int;
3017}
3018extern "C" {
3019    pub fn nk_menu_begin_symbol_label(
3020        arg1: *mut nk_context,
3021        arg2: *const ::std::os::raw::c_char,
3022        align: nk_flags,
3023        arg3: nk_symbol_type,
3024        size: nk_vec2,
3025    ) -> ::std::os::raw::c_int;
3026}
3027extern "C" {
3028    pub fn nk_menu_item_text(
3029        arg1: *mut nk_context,
3030        arg2: *const ::std::os::raw::c_char,
3031        arg3: ::std::os::raw::c_int,
3032        align: nk_flags,
3033    ) -> ::std::os::raw::c_int;
3034}
3035extern "C" {
3036    pub fn nk_menu_item_label(
3037        arg1: *mut nk_context,
3038        arg2: *const ::std::os::raw::c_char,
3039        alignment: nk_flags,
3040    ) -> ::std::os::raw::c_int;
3041}
3042extern "C" {
3043    pub fn nk_menu_item_image_label(
3044        arg1: *mut nk_context,
3045        arg2: nk_image,
3046        arg3: *const ::std::os::raw::c_char,
3047        alignment: nk_flags,
3048    ) -> ::std::os::raw::c_int;
3049}
3050extern "C" {
3051    pub fn nk_menu_item_image_text(
3052        arg1: *mut nk_context,
3053        arg2: nk_image,
3054        arg3: *const ::std::os::raw::c_char,
3055        len: ::std::os::raw::c_int,
3056        alignment: nk_flags,
3057    ) -> ::std::os::raw::c_int;
3058}
3059extern "C" {
3060    pub fn nk_menu_item_symbol_text(
3061        arg1: *mut nk_context,
3062        arg2: nk_symbol_type,
3063        arg3: *const ::std::os::raw::c_char,
3064        arg4: ::std::os::raw::c_int,
3065        alignment: nk_flags,
3066    ) -> ::std::os::raw::c_int;
3067}
3068extern "C" {
3069    pub fn nk_menu_item_symbol_label(
3070        arg1: *mut nk_context,
3071        arg2: nk_symbol_type,
3072        arg3: *const ::std::os::raw::c_char,
3073        alignment: nk_flags,
3074    ) -> ::std::os::raw::c_int;
3075}
3076extern "C" {
3077    pub fn nk_menu_close(arg1: *mut nk_context);
3078}
3079extern "C" {
3080    pub fn nk_menu_end(arg1: *mut nk_context);
3081}
3082pub const nk_style_colors_NK_COLOR_TEXT: nk_style_colors = 0;
3083pub const nk_style_colors_NK_COLOR_WINDOW: nk_style_colors = 1;
3084pub const nk_style_colors_NK_COLOR_HEADER: nk_style_colors = 2;
3085pub const nk_style_colors_NK_COLOR_BORDER: nk_style_colors = 3;
3086pub const nk_style_colors_NK_COLOR_BUTTON: nk_style_colors = 4;
3087pub const nk_style_colors_NK_COLOR_BUTTON_HOVER: nk_style_colors = 5;
3088pub const nk_style_colors_NK_COLOR_BUTTON_ACTIVE: nk_style_colors = 6;
3089pub const nk_style_colors_NK_COLOR_TOGGLE: nk_style_colors = 7;
3090pub const nk_style_colors_NK_COLOR_TOGGLE_HOVER: nk_style_colors = 8;
3091pub const nk_style_colors_NK_COLOR_TOGGLE_CURSOR: nk_style_colors = 9;
3092pub const nk_style_colors_NK_COLOR_SELECT: nk_style_colors = 10;
3093pub const nk_style_colors_NK_COLOR_SELECT_ACTIVE: nk_style_colors = 11;
3094pub const nk_style_colors_NK_COLOR_SLIDER: nk_style_colors = 12;
3095pub const nk_style_colors_NK_COLOR_SLIDER_CURSOR: nk_style_colors = 13;
3096pub const nk_style_colors_NK_COLOR_SLIDER_CURSOR_HOVER: nk_style_colors = 14;
3097pub const nk_style_colors_NK_COLOR_SLIDER_CURSOR_ACTIVE: nk_style_colors = 15;
3098pub const nk_style_colors_NK_COLOR_PROPERTY: nk_style_colors = 16;
3099pub const nk_style_colors_NK_COLOR_EDIT: nk_style_colors = 17;
3100pub const nk_style_colors_NK_COLOR_EDIT_CURSOR: nk_style_colors = 18;
3101pub const nk_style_colors_NK_COLOR_COMBO: nk_style_colors = 19;
3102pub const nk_style_colors_NK_COLOR_CHART: nk_style_colors = 20;
3103pub const nk_style_colors_NK_COLOR_CHART_COLOR: nk_style_colors = 21;
3104pub const nk_style_colors_NK_COLOR_CHART_COLOR_HIGHLIGHT: nk_style_colors = 22;
3105pub const nk_style_colors_NK_COLOR_SCROLLBAR: nk_style_colors = 23;
3106pub const nk_style_colors_NK_COLOR_SCROLLBAR_CURSOR: nk_style_colors = 24;
3107pub const nk_style_colors_NK_COLOR_SCROLLBAR_CURSOR_HOVER: nk_style_colors = 25;
3108pub const nk_style_colors_NK_COLOR_SCROLLBAR_CURSOR_ACTIVE: nk_style_colors = 26;
3109pub const nk_style_colors_NK_COLOR_TAB_HEADER: nk_style_colors = 27;
3110pub const nk_style_colors_NK_COLOR_COUNT: nk_style_colors = 28;
3111pub type nk_style_colors = u32;
3112pub const nk_style_cursor_NK_CURSOR_ARROW: nk_style_cursor = 0;
3113pub const nk_style_cursor_NK_CURSOR_TEXT: nk_style_cursor = 1;
3114pub const nk_style_cursor_NK_CURSOR_MOVE: nk_style_cursor = 2;
3115pub const nk_style_cursor_NK_CURSOR_RESIZE_VERTICAL: nk_style_cursor = 3;
3116pub const nk_style_cursor_NK_CURSOR_RESIZE_HORIZONTAL: nk_style_cursor = 4;
3117pub const nk_style_cursor_NK_CURSOR_RESIZE_TOP_LEFT_DOWN_RIGHT: nk_style_cursor = 5;
3118pub const nk_style_cursor_NK_CURSOR_RESIZE_TOP_RIGHT_DOWN_LEFT: nk_style_cursor = 6;
3119pub const nk_style_cursor_NK_CURSOR_COUNT: nk_style_cursor = 7;
3120pub type nk_style_cursor = u32;
3121extern "C" {
3122    pub fn nk_style_default(arg1: *mut nk_context);
3123}
3124extern "C" {
3125    pub fn nk_style_from_table(arg1: *mut nk_context, arg2: *const nk_color);
3126}
3127extern "C" {
3128    pub fn nk_style_load_cursor(
3129        arg1: *mut nk_context,
3130        arg2: nk_style_cursor,
3131        arg3: *const nk_cursor,
3132    );
3133}
3134extern "C" {
3135    pub fn nk_style_load_all_cursors(arg1: *mut nk_context, arg2: *mut nk_cursor);
3136}
3137extern "C" {
3138    pub fn nk_style_get_color_by_name(arg1: nk_style_colors) -> *const ::std::os::raw::c_char;
3139}
3140extern "C" {
3141    pub fn nk_style_set_font(arg1: *mut nk_context, arg2: *const nk_user_font);
3142}
3143extern "C" {
3144    pub fn nk_style_set_cursor(
3145        arg1: *mut nk_context,
3146        arg2: nk_style_cursor,
3147    ) -> ::std::os::raw::c_int;
3148}
3149extern "C" {
3150    pub fn nk_style_show_cursor(arg1: *mut nk_context);
3151}
3152extern "C" {
3153    pub fn nk_style_hide_cursor(arg1: *mut nk_context);
3154}
3155extern "C" {
3156    pub fn nk_style_push_font(
3157        arg1: *mut nk_context,
3158        arg2: *const nk_user_font,
3159    ) -> ::std::os::raw::c_int;
3160}
3161extern "C" {
3162    pub fn nk_style_push_float(
3163        arg1: *mut nk_context,
3164        arg2: *mut f32,
3165        arg3: f32,
3166    ) -> ::std::os::raw::c_int;
3167}
3168extern "C" {
3169    pub fn nk_style_push_vec2(
3170        arg1: *mut nk_context,
3171        arg2: *mut nk_vec2,
3172        arg3: nk_vec2,
3173    ) -> ::std::os::raw::c_int;
3174}
3175extern "C" {
3176    pub fn nk_style_push_style_item(
3177        arg1: *mut nk_context,
3178        arg2: *mut nk_style_item,
3179        arg3: nk_style_item,
3180    ) -> ::std::os::raw::c_int;
3181}
3182extern "C" {
3183    pub fn nk_style_push_flags(
3184        arg1: *mut nk_context,
3185        arg2: *mut nk_flags,
3186        arg3: nk_flags,
3187    ) -> ::std::os::raw::c_int;
3188}
3189extern "C" {
3190    pub fn nk_style_push_color(
3191        arg1: *mut nk_context,
3192        arg2: *mut nk_color,
3193        arg3: nk_color,
3194    ) -> ::std::os::raw::c_int;
3195}
3196extern "C" {
3197    pub fn nk_style_pop_font(arg1: *mut nk_context) -> ::std::os::raw::c_int;
3198}
3199extern "C" {
3200    pub fn nk_style_pop_float(arg1: *mut nk_context) -> ::std::os::raw::c_int;
3201}
3202extern "C" {
3203    pub fn nk_style_pop_vec2(arg1: *mut nk_context) -> ::std::os::raw::c_int;
3204}
3205extern "C" {
3206    pub fn nk_style_pop_style_item(arg1: *mut nk_context) -> ::std::os::raw::c_int;
3207}
3208extern "C" {
3209    pub fn nk_style_pop_flags(arg1: *mut nk_context) -> ::std::os::raw::c_int;
3210}
3211extern "C" {
3212    pub fn nk_style_pop_color(arg1: *mut nk_context) -> ::std::os::raw::c_int;
3213}
3214extern "C" {
3215    pub fn nk_rgb(
3216        r: ::std::os::raw::c_int,
3217        g: ::std::os::raw::c_int,
3218        b: ::std::os::raw::c_int,
3219    ) -> nk_color;
3220}
3221extern "C" {
3222    pub fn nk_rgb_iv(rgb: *const ::std::os::raw::c_int) -> nk_color;
3223}
3224extern "C" {
3225    pub fn nk_rgb_bv(rgb: *const nk_byte) -> nk_color;
3226}
3227extern "C" {
3228    pub fn nk_rgb_f(r: f32, g: f32, b: f32) -> nk_color;
3229}
3230extern "C" {
3231    pub fn nk_rgb_fv(rgb: *const f32) -> nk_color;
3232}
3233extern "C" {
3234    pub fn nk_rgb_cf(c: nk_colorf) -> nk_color;
3235}
3236extern "C" {
3237    pub fn nk_rgb_hex(rgb: *const ::std::os::raw::c_char) -> nk_color;
3238}
3239extern "C" {
3240    pub fn nk_rgba(
3241        r: ::std::os::raw::c_int,
3242        g: ::std::os::raw::c_int,
3243        b: ::std::os::raw::c_int,
3244        a: ::std::os::raw::c_int,
3245    ) -> nk_color;
3246}
3247extern "C" {
3248    pub fn nk_rgba_u32(arg1: nk_uint) -> nk_color;
3249}
3250extern "C" {
3251    pub fn nk_rgba_iv(rgba: *const ::std::os::raw::c_int) -> nk_color;
3252}
3253extern "C" {
3254    pub fn nk_rgba_bv(rgba: *const nk_byte) -> nk_color;
3255}
3256extern "C" {
3257    pub fn nk_rgba_f(r: f32, g: f32, b: f32, a: f32) -> nk_color;
3258}
3259extern "C" {
3260    pub fn nk_rgba_fv(rgba: *const f32) -> nk_color;
3261}
3262extern "C" {
3263    pub fn nk_rgba_cf(c: nk_colorf) -> nk_color;
3264}
3265extern "C" {
3266    pub fn nk_rgba_hex(rgb: *const ::std::os::raw::c_char) -> nk_color;
3267}
3268extern "C" {
3269    pub fn nk_hsva_colorf(h: f32, s: f32, v: f32, a: f32) -> nk_colorf;
3270}
3271extern "C" {
3272    pub fn nk_hsva_colorfv(c: *mut f32) -> nk_colorf;
3273}
3274extern "C" {
3275    pub fn nk_colorf_hsva_f(
3276        out_h: *mut f32,
3277        out_s: *mut f32,
3278        out_v: *mut f32,
3279        out_a: *mut f32,
3280        in_: nk_colorf,
3281    );
3282}
3283extern "C" {
3284    pub fn nk_colorf_hsva_fv(hsva: *mut f32, in_: nk_colorf);
3285}
3286extern "C" {
3287    pub fn nk_hsv(
3288        h: ::std::os::raw::c_int,
3289        s: ::std::os::raw::c_int,
3290        v: ::std::os::raw::c_int,
3291    ) -> nk_color;
3292}
3293extern "C" {
3294    pub fn nk_hsv_iv(hsv: *const ::std::os::raw::c_int) -> nk_color;
3295}
3296extern "C" {
3297    pub fn nk_hsv_bv(hsv: *const nk_byte) -> nk_color;
3298}
3299extern "C" {
3300    pub fn nk_hsv_f(h: f32, s: f32, v: f32) -> nk_color;
3301}
3302extern "C" {
3303    pub fn nk_hsv_fv(hsv: *const f32) -> nk_color;
3304}
3305extern "C" {
3306    pub fn nk_hsva(
3307        h: ::std::os::raw::c_int,
3308        s: ::std::os::raw::c_int,
3309        v: ::std::os::raw::c_int,
3310        a: ::std::os::raw::c_int,
3311    ) -> nk_color;
3312}
3313extern "C" {
3314    pub fn nk_hsva_iv(hsva: *const ::std::os::raw::c_int) -> nk_color;
3315}
3316extern "C" {
3317    pub fn nk_hsva_bv(hsva: *const nk_byte) -> nk_color;
3318}
3319extern "C" {
3320    pub fn nk_hsva_f(h: f32, s: f32, v: f32, a: f32) -> nk_color;
3321}
3322extern "C" {
3323    pub fn nk_hsva_fv(hsva: *const f32) -> nk_color;
3324}
3325extern "C" {
3326    pub fn nk_color_f(r: *mut f32, g: *mut f32, b: *mut f32, a: *mut f32, arg1: nk_color);
3327}
3328extern "C" {
3329    pub fn nk_color_fv(rgba_out: *mut f32, arg1: nk_color);
3330}
3331extern "C" {
3332    pub fn nk_color_cf(arg1: nk_color) -> nk_colorf;
3333}
3334extern "C" {
3335    pub fn nk_color_d(r: *mut f64, g: *mut f64, b: *mut f64, a: *mut f64, arg1: nk_color);
3336}
3337extern "C" {
3338    pub fn nk_color_dv(rgba_out: *mut f64, arg1: nk_color);
3339}
3340extern "C" {
3341    pub fn nk_color_u32(arg1: nk_color) -> nk_uint;
3342}
3343extern "C" {
3344    pub fn nk_color_hex_rgba(output: *mut ::std::os::raw::c_char, arg1: nk_color);
3345}
3346extern "C" {
3347    pub fn nk_color_hex_rgb(output: *mut ::std::os::raw::c_char, arg1: nk_color);
3348}
3349extern "C" {
3350    pub fn nk_color_hsv_i(
3351        out_h: *mut ::std::os::raw::c_int,
3352        out_s: *mut ::std::os::raw::c_int,
3353        out_v: *mut ::std::os::raw::c_int,
3354        arg1: nk_color,
3355    );
3356}
3357extern "C" {
3358    pub fn nk_color_hsv_b(
3359        out_h: *mut nk_byte,
3360        out_s: *mut nk_byte,
3361        out_v: *mut nk_byte,
3362        arg1: nk_color,
3363    );
3364}
3365extern "C" {
3366    pub fn nk_color_hsv_iv(hsv_out: *mut ::std::os::raw::c_int, arg1: nk_color);
3367}
3368extern "C" {
3369    pub fn nk_color_hsv_bv(hsv_out: *mut nk_byte, arg1: nk_color);
3370}
3371extern "C" {
3372    pub fn nk_color_hsv_f(out_h: *mut f32, out_s: *mut f32, out_v: *mut f32, arg1: nk_color);
3373}
3374extern "C" {
3375    pub fn nk_color_hsv_fv(hsv_out: *mut f32, arg1: nk_color);
3376}
3377extern "C" {
3378    pub fn nk_color_hsva_i(
3379        h: *mut ::std::os::raw::c_int,
3380        s: *mut ::std::os::raw::c_int,
3381        v: *mut ::std::os::raw::c_int,
3382        a: *mut ::std::os::raw::c_int,
3383        arg1: nk_color,
3384    );
3385}
3386extern "C" {
3387    pub fn nk_color_hsva_b(
3388        h: *mut nk_byte,
3389        s: *mut nk_byte,
3390        v: *mut nk_byte,
3391        a: *mut nk_byte,
3392        arg1: nk_color,
3393    );
3394}
3395extern "C" {
3396    pub fn nk_color_hsva_iv(hsva_out: *mut ::std::os::raw::c_int, arg1: nk_color);
3397}
3398extern "C" {
3399    pub fn nk_color_hsva_bv(hsva_out: *mut nk_byte, arg1: nk_color);
3400}
3401extern "C" {
3402    pub fn nk_color_hsva_f(
3403        out_h: *mut f32,
3404        out_s: *mut f32,
3405        out_v: *mut f32,
3406        out_a: *mut f32,
3407        arg1: nk_color,
3408    );
3409}
3410extern "C" {
3411    pub fn nk_color_hsva_fv(hsva_out: *mut f32, arg1: nk_color);
3412}
3413extern "C" {
3414    pub fn nk_handle_ptr(arg1: *mut ::std::os::raw::c_void) -> nk_handle;
3415}
3416extern "C" {
3417    pub fn nk_handle_id(arg1: ::std::os::raw::c_int) -> nk_handle;
3418}
3419extern "C" {
3420    pub fn nk_image_handle(arg1: nk_handle) -> nk_image;
3421}
3422extern "C" {
3423    pub fn nk_image_ptr(arg1: *mut ::std::os::raw::c_void) -> nk_image;
3424}
3425extern "C" {
3426    pub fn nk_image_id(arg1: ::std::os::raw::c_int) -> nk_image;
3427}
3428extern "C" {
3429    pub fn nk_image_is_subimage(img: *const nk_image) -> ::std::os::raw::c_int;
3430}
3431extern "C" {
3432    pub fn nk_subimage_ptr(
3433        arg1: *mut ::std::os::raw::c_void,
3434        w: ::std::os::raw::c_ushort,
3435        h: ::std::os::raw::c_ushort,
3436        sub_region: nk_rect,
3437    ) -> nk_image;
3438}
3439extern "C" {
3440    pub fn nk_subimage_id(
3441        arg1: ::std::os::raw::c_int,
3442        w: ::std::os::raw::c_ushort,
3443        h: ::std::os::raw::c_ushort,
3444        sub_region: nk_rect,
3445    ) -> nk_image;
3446}
3447extern "C" {
3448    pub fn nk_subimage_handle(
3449        arg1: nk_handle,
3450        w: ::std::os::raw::c_ushort,
3451        h: ::std::os::raw::c_ushort,
3452        sub_region: nk_rect,
3453    ) -> nk_image;
3454}
3455extern "C" {
3456    pub fn nk_murmur_hash(
3457        key: *const ::std::os::raw::c_void,
3458        len: ::std::os::raw::c_int,
3459        seed: nk_hash,
3460    ) -> nk_hash;
3461}
3462extern "C" {
3463    pub fn nk_triangle_from_direction(
3464        result: *mut nk_vec2,
3465        r: nk_rect,
3466        pad_x: f32,
3467        pad_y: f32,
3468        arg1: nk_heading,
3469    );
3470}
3471extern "C" {
3472    pub fn nk_vec2(x: f32, y: f32) -> nk_vec2;
3473}
3474extern "C" {
3475    pub fn nk_vec2i(x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> nk_vec2;
3476}
3477extern "C" {
3478    pub fn nk_vec2v(xy: *const f32) -> nk_vec2;
3479}
3480extern "C" {
3481    pub fn nk_vec2iv(xy: *const ::std::os::raw::c_int) -> nk_vec2;
3482}
3483extern "C" {
3484    pub fn nk_get_null_rect() -> nk_rect;
3485}
3486extern "C" {
3487    pub fn nk_rect(x: f32, y: f32, w: f32, h: f32) -> nk_rect;
3488}
3489extern "C" {
3490    pub fn nk_recti(
3491        x: ::std::os::raw::c_int,
3492        y: ::std::os::raw::c_int,
3493        w: ::std::os::raw::c_int,
3494        h: ::std::os::raw::c_int,
3495    ) -> nk_rect;
3496}
3497extern "C" {
3498    pub fn nk_recta(pos: nk_vec2, size: nk_vec2) -> nk_rect;
3499}
3500extern "C" {
3501    pub fn nk_rectv(xywh: *const f32) -> nk_rect;
3502}
3503extern "C" {
3504    pub fn nk_rectiv(xywh: *const ::std::os::raw::c_int) -> nk_rect;
3505}
3506extern "C" {
3507    pub fn nk_rect_pos(arg1: nk_rect) -> nk_vec2;
3508}
3509extern "C" {
3510    pub fn nk_rect_size(arg1: nk_rect) -> nk_vec2;
3511}
3512extern "C" {
3513    pub fn nk_strlen(str: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
3514}
3515extern "C" {
3516    pub fn nk_stricmp(
3517        s1: *const ::std::os::raw::c_char,
3518        s2: *const ::std::os::raw::c_char,
3519    ) -> ::std::os::raw::c_int;
3520}
3521extern "C" {
3522    pub fn nk_stricmpn(
3523        s1: *const ::std::os::raw::c_char,
3524        s2: *const ::std::os::raw::c_char,
3525        n: ::std::os::raw::c_int,
3526    ) -> ::std::os::raw::c_int;
3527}
3528extern "C" {
3529    pub fn nk_strtoi(
3530        str: *const ::std::os::raw::c_char,
3531        endptr: *mut *const ::std::os::raw::c_char,
3532    ) -> ::std::os::raw::c_int;
3533}
3534extern "C" {
3535    pub fn nk_strtof(
3536        str: *const ::std::os::raw::c_char,
3537        endptr: *mut *const ::std::os::raw::c_char,
3538    ) -> f32;
3539}
3540extern "C" {
3541    pub fn nk_strtod(
3542        str: *const ::std::os::raw::c_char,
3543        endptr: *mut *const ::std::os::raw::c_char,
3544    ) -> f64;
3545}
3546extern "C" {
3547    pub fn nk_strfilter(
3548        text: *const ::std::os::raw::c_char,
3549        regexp: *const ::std::os::raw::c_char,
3550    ) -> ::std::os::raw::c_int;
3551}
3552extern "C" {
3553    pub fn nk_strmatch_fuzzy_string(
3554        str: *const ::std::os::raw::c_char,
3555        pattern: *const ::std::os::raw::c_char,
3556        out_score: *mut ::std::os::raw::c_int,
3557    ) -> ::std::os::raw::c_int;
3558}
3559extern "C" {
3560    pub fn nk_strmatch_fuzzy_text(
3561        txt: *const ::std::os::raw::c_char,
3562        txt_len: ::std::os::raw::c_int,
3563        pattern: *const ::std::os::raw::c_char,
3564        out_score: *mut ::std::os::raw::c_int,
3565    ) -> ::std::os::raw::c_int;
3566}
3567extern "C" {
3568    pub fn nk_utf_decode(
3569        arg1: *const ::std::os::raw::c_char,
3570        arg2: *mut nk_rune,
3571        arg3: ::std::os::raw::c_int,
3572    ) -> ::std::os::raw::c_int;
3573}
3574extern "C" {
3575    pub fn nk_utf_encode(
3576        arg1: nk_rune,
3577        arg2: *mut ::std::os::raw::c_char,
3578        arg3: ::std::os::raw::c_int,
3579    ) -> ::std::os::raw::c_int;
3580}
3581extern "C" {
3582    pub fn nk_utf_len(
3583        arg1: *const ::std::os::raw::c_char,
3584        byte_len: ::std::os::raw::c_int,
3585    ) -> ::std::os::raw::c_int;
3586}
3587extern "C" {
3588    pub fn nk_utf_at(
3589        buffer: *const ::std::os::raw::c_char,
3590        length: ::std::os::raw::c_int,
3591        index: ::std::os::raw::c_int,
3592        unicode: *mut nk_rune,
3593        len: *mut ::std::os::raw::c_int,
3594    ) -> *const ::std::os::raw::c_char;
3595}
3596pub type nk_text_width_f = ::std::option::Option<
3597    unsafe extern "C" fn(
3598        arg1: nk_handle,
3599        h: f32,
3600        arg2: *const ::std::os::raw::c_char,
3601        len: ::std::os::raw::c_int,
3602    ) -> f32,
3603>;
3604pub type nk_query_font_glyph_f = ::std::option::Option<
3605    unsafe extern "C" fn(
3606        handle: nk_handle,
3607        font_height: f32,
3608        glyph: *mut nk_user_font_glyph,
3609        codepoint: nk_rune,
3610        next_codepoint: nk_rune,
3611    ),
3612>;
3613#[repr(C)]
3614#[derive(Debug, Default, Copy, Clone)]
3615pub struct nk_user_font_glyph {
3616    pub uv: [nk_vec2; 2usize],
3617    pub offset: nk_vec2,
3618    pub width: f32,
3619    pub height: f32,
3620    pub xadvance: f32,
3621}
3622#[test]
3623fn bindgen_test_layout_nk_user_font_glyph() {
3624    assert_eq!(
3625        ::std::mem::size_of::<nk_user_font_glyph>(),
3626        36usize,
3627        concat!("Size of: ", stringify!(nk_user_font_glyph))
3628    );
3629    assert_eq!(
3630        ::std::mem::align_of::<nk_user_font_glyph>(),
3631        4usize,
3632        concat!("Alignment of ", stringify!(nk_user_font_glyph))
3633    );
3634    assert_eq!(
3635        unsafe { &(*(::std::ptr::null::<nk_user_font_glyph>())).uv as *const _ as usize },
3636        0usize,
3637        concat!(
3638            "Offset of field: ",
3639            stringify!(nk_user_font_glyph),
3640            "::",
3641            stringify!(uv)
3642        )
3643    );
3644    assert_eq!(
3645        unsafe { &(*(::std::ptr::null::<nk_user_font_glyph>())).offset as *const _ as usize },
3646        16usize,
3647        concat!(
3648            "Offset of field: ",
3649            stringify!(nk_user_font_glyph),
3650            "::",
3651            stringify!(offset)
3652        )
3653    );
3654    assert_eq!(
3655        unsafe { &(*(::std::ptr::null::<nk_user_font_glyph>())).width as *const _ as usize },
3656        24usize,
3657        concat!(
3658            "Offset of field: ",
3659            stringify!(nk_user_font_glyph),
3660            "::",
3661            stringify!(width)
3662        )
3663    );
3664    assert_eq!(
3665        unsafe { &(*(::std::ptr::null::<nk_user_font_glyph>())).height as *const _ as usize },
3666        28usize,
3667        concat!(
3668            "Offset of field: ",
3669            stringify!(nk_user_font_glyph),
3670            "::",
3671            stringify!(height)
3672        )
3673    );
3674    assert_eq!(
3675        unsafe { &(*(::std::ptr::null::<nk_user_font_glyph>())).xadvance as *const _ as usize },
3676        32usize,
3677        concat!(
3678            "Offset of field: ",
3679            stringify!(nk_user_font_glyph),
3680            "::",
3681            stringify!(xadvance)
3682        )
3683    );
3684}
3685#[repr(C)]
3686#[derive(Copy, Clone)]
3687pub struct nk_user_font {
3688    pub userdata: nk_handle,
3689    pub height: f32,
3690    pub width: nk_text_width_f,
3691    pub query: nk_query_font_glyph_f,
3692    pub texture: nk_handle,
3693}
3694#[test]
3695fn bindgen_test_layout_nk_user_font() {
3696    assert_eq!(
3697        ::std::mem::size_of::<nk_user_font>(),
3698        40usize,
3699        concat!("Size of: ", stringify!(nk_user_font))
3700    );
3701    assert_eq!(
3702        ::std::mem::align_of::<nk_user_font>(),
3703        8usize,
3704        concat!("Alignment of ", stringify!(nk_user_font))
3705    );
3706    assert_eq!(
3707        unsafe { &(*(::std::ptr::null::<nk_user_font>())).userdata as *const _ as usize },
3708        0usize,
3709        concat!(
3710            "Offset of field: ",
3711            stringify!(nk_user_font),
3712            "::",
3713            stringify!(userdata)
3714        )
3715    );
3716    assert_eq!(
3717        unsafe { &(*(::std::ptr::null::<nk_user_font>())).height as *const _ as usize },
3718        8usize,
3719        concat!(
3720            "Offset of field: ",
3721            stringify!(nk_user_font),
3722            "::",
3723            stringify!(height)
3724        )
3725    );
3726    assert_eq!(
3727        unsafe { &(*(::std::ptr::null::<nk_user_font>())).width as *const _ as usize },
3728        16usize,
3729        concat!(
3730            "Offset of field: ",
3731            stringify!(nk_user_font),
3732            "::",
3733            stringify!(width)
3734        )
3735    );
3736    assert_eq!(
3737        unsafe { &(*(::std::ptr::null::<nk_user_font>())).query as *const _ as usize },
3738        24usize,
3739        concat!(
3740            "Offset of field: ",
3741            stringify!(nk_user_font),
3742            "::",
3743            stringify!(query)
3744        )
3745    );
3746    assert_eq!(
3747        unsafe { &(*(::std::ptr::null::<nk_user_font>())).texture as *const _ as usize },
3748        32usize,
3749        concat!(
3750            "Offset of field: ",
3751            stringify!(nk_user_font),
3752            "::",
3753            stringify!(texture)
3754        )
3755    );
3756}
3757impl Default for nk_user_font {
3758    fn default() -> Self {
3759        unsafe { ::std::mem::zeroed() }
3760    }
3761}
3762pub const nk_font_coord_type_NK_COORD_UV: nk_font_coord_type = 0;
3763pub const nk_font_coord_type_NK_COORD_PIXEL: nk_font_coord_type = 1;
3764pub type nk_font_coord_type = u32;
3765#[repr(C)]
3766#[derive(Debug, Copy, Clone)]
3767pub struct nk_baked_font {
3768    pub height: f32,
3769    pub ascent: f32,
3770    pub descent: f32,
3771    pub glyph_offset: nk_rune,
3772    pub glyph_count: nk_rune,
3773    pub ranges: *const nk_rune,
3774}
3775#[test]
3776fn bindgen_test_layout_nk_baked_font() {
3777    assert_eq!(
3778        ::std::mem::size_of::<nk_baked_font>(),
3779        32usize,
3780        concat!("Size of: ", stringify!(nk_baked_font))
3781    );
3782    assert_eq!(
3783        ::std::mem::align_of::<nk_baked_font>(),
3784        8usize,
3785        concat!("Alignment of ", stringify!(nk_baked_font))
3786    );
3787    assert_eq!(
3788        unsafe { &(*(::std::ptr::null::<nk_baked_font>())).height as *const _ as usize },
3789        0usize,
3790        concat!(
3791            "Offset of field: ",
3792            stringify!(nk_baked_font),
3793            "::",
3794            stringify!(height)
3795        )
3796    );
3797    assert_eq!(
3798        unsafe { &(*(::std::ptr::null::<nk_baked_font>())).ascent as *const _ as usize },
3799        4usize,
3800        concat!(
3801            "Offset of field: ",
3802            stringify!(nk_baked_font),
3803            "::",
3804            stringify!(ascent)
3805        )
3806    );
3807    assert_eq!(
3808        unsafe { &(*(::std::ptr::null::<nk_baked_font>())).descent as *const _ as usize },
3809        8usize,
3810        concat!(
3811            "Offset of field: ",
3812            stringify!(nk_baked_font),
3813            "::",
3814            stringify!(descent)
3815        )
3816    );
3817    assert_eq!(
3818        unsafe { &(*(::std::ptr::null::<nk_baked_font>())).glyph_offset as *const _ as usize },
3819        12usize,
3820        concat!(
3821            "Offset of field: ",
3822            stringify!(nk_baked_font),
3823            "::",
3824            stringify!(glyph_offset)
3825        )
3826    );
3827    assert_eq!(
3828        unsafe { &(*(::std::ptr::null::<nk_baked_font>())).glyph_count as *const _ as usize },
3829        16usize,
3830        concat!(
3831            "Offset of field: ",
3832            stringify!(nk_baked_font),
3833            "::",
3834            stringify!(glyph_count)
3835        )
3836    );
3837    assert_eq!(
3838        unsafe { &(*(::std::ptr::null::<nk_baked_font>())).ranges as *const _ as usize },
3839        24usize,
3840        concat!(
3841            "Offset of field: ",
3842            stringify!(nk_baked_font),
3843            "::",
3844            stringify!(ranges)
3845        )
3846    );
3847}
3848impl Default for nk_baked_font {
3849    fn default() -> Self {
3850        unsafe { ::std::mem::zeroed() }
3851    }
3852}
3853#[repr(C)]
3854#[derive(Debug, Copy, Clone)]
3855pub struct nk_font_config {
3856    pub next: *mut nk_font_config,
3857    pub ttf_blob: *mut ::std::os::raw::c_void,
3858    pub ttf_size: nk_size,
3859    pub ttf_data_owned_by_atlas: ::std::os::raw::c_uchar,
3860    pub merge_mode: ::std::os::raw::c_uchar,
3861    pub pixel_snap: ::std::os::raw::c_uchar,
3862    pub oversample_v: ::std::os::raw::c_uchar,
3863    pub oversample_h: ::std::os::raw::c_uchar,
3864    pub padding: [::std::os::raw::c_uchar; 3usize],
3865    pub size: f32,
3866    pub coord_type: nk_font_coord_type,
3867    pub spacing: nk_vec2,
3868    pub range: *const nk_rune,
3869    pub font: *mut nk_baked_font,
3870    pub fallback_glyph: nk_rune,
3871    pub n: *mut nk_font_config,
3872    pub p: *mut nk_font_config,
3873}
3874#[test]
3875fn bindgen_test_layout_nk_font_config() {
3876    assert_eq!(
3877        ::std::mem::size_of::<nk_font_config>(),
3878        88usize,
3879        concat!("Size of: ", stringify!(nk_font_config))
3880    );
3881    assert_eq!(
3882        ::std::mem::align_of::<nk_font_config>(),
3883        8usize,
3884        concat!("Alignment of ", stringify!(nk_font_config))
3885    );
3886    assert_eq!(
3887        unsafe { &(*(::std::ptr::null::<nk_font_config>())).next as *const _ as usize },
3888        0usize,
3889        concat!(
3890            "Offset of field: ",
3891            stringify!(nk_font_config),
3892            "::",
3893            stringify!(next)
3894        )
3895    );
3896    assert_eq!(
3897        unsafe { &(*(::std::ptr::null::<nk_font_config>())).ttf_blob as *const _ as usize },
3898        8usize,
3899        concat!(
3900            "Offset of field: ",
3901            stringify!(nk_font_config),
3902            "::",
3903            stringify!(ttf_blob)
3904        )
3905    );
3906    assert_eq!(
3907        unsafe { &(*(::std::ptr::null::<nk_font_config>())).ttf_size as *const _ as usize },
3908        16usize,
3909        concat!(
3910            "Offset of field: ",
3911            stringify!(nk_font_config),
3912            "::",
3913            stringify!(ttf_size)
3914        )
3915    );
3916    assert_eq!(
3917        unsafe {
3918            &(*(::std::ptr::null::<nk_font_config>())).ttf_data_owned_by_atlas as *const _ as usize
3919        },
3920        24usize,
3921        concat!(
3922            "Offset of field: ",
3923            stringify!(nk_font_config),
3924            "::",
3925            stringify!(ttf_data_owned_by_atlas)
3926        )
3927    );
3928    assert_eq!(
3929        unsafe { &(*(::std::ptr::null::<nk_font_config>())).merge_mode as *const _ as usize },
3930        25usize,
3931        concat!(
3932            "Offset of field: ",
3933            stringify!(nk_font_config),
3934            "::",
3935            stringify!(merge_mode)
3936        )
3937    );
3938    assert_eq!(
3939        unsafe { &(*(::std::ptr::null::<nk_font_config>())).pixel_snap as *const _ as usize },
3940        26usize,
3941        concat!(
3942            "Offset of field: ",
3943            stringify!(nk_font_config),
3944            "::",
3945            stringify!(pixel_snap)
3946        )
3947    );
3948    assert_eq!(
3949        unsafe { &(*(::std::ptr::null::<nk_font_config>())).oversample_v as *const _ as usize },
3950        27usize,
3951        concat!(
3952            "Offset of field: ",
3953            stringify!(nk_font_config),
3954            "::",
3955            stringify!(oversample_v)
3956        )
3957    );
3958    assert_eq!(
3959        unsafe { &(*(::std::ptr::null::<nk_font_config>())).oversample_h as *const _ as usize },
3960        28usize,
3961        concat!(
3962            "Offset of field: ",
3963            stringify!(nk_font_config),
3964            "::",
3965            stringify!(oversample_h)
3966        )
3967    );
3968    assert_eq!(
3969        unsafe { &(*(::std::ptr::null::<nk_font_config>())).padding as *const _ as usize },
3970        29usize,
3971        concat!(
3972            "Offset of field: ",
3973            stringify!(nk_font_config),
3974            "::",
3975            stringify!(padding)
3976        )
3977    );
3978    assert_eq!(
3979        unsafe { &(*(::std::ptr::null::<nk_font_config>())).size as *const _ as usize },
3980        32usize,
3981        concat!(
3982            "Offset of field: ",
3983            stringify!(nk_font_config),
3984            "::",
3985            stringify!(size)
3986        )
3987    );
3988    assert_eq!(
3989        unsafe { &(*(::std::ptr::null::<nk_font_config>())).coord_type as *const _ as usize },
3990        36usize,
3991        concat!(
3992            "Offset of field: ",
3993            stringify!(nk_font_config),
3994            "::",
3995            stringify!(coord_type)
3996        )
3997    );
3998    assert_eq!(
3999        unsafe { &(*(::std::ptr::null::<nk_font_config>())).spacing as *const _ as usize },
4000        40usize,
4001        concat!(
4002            "Offset of field: ",
4003            stringify!(nk_font_config),
4004            "::",
4005            stringify!(spacing)
4006        )
4007    );
4008    assert_eq!(
4009        unsafe { &(*(::std::ptr::null::<nk_font_config>())).range as *const _ as usize },
4010        48usize,
4011        concat!(
4012            "Offset of field: ",
4013            stringify!(nk_font_config),
4014            "::",
4015            stringify!(range)
4016        )
4017    );
4018    assert_eq!(
4019        unsafe { &(*(::std::ptr::null::<nk_font_config>())).font as *const _ as usize },
4020        56usize,
4021        concat!(
4022            "Offset of field: ",
4023            stringify!(nk_font_config),
4024            "::",
4025            stringify!(font)
4026        )
4027    );
4028    assert_eq!(
4029        unsafe { &(*(::std::ptr::null::<nk_font_config>())).fallback_glyph as *const _ as usize },
4030        64usize,
4031        concat!(
4032            "Offset of field: ",
4033            stringify!(nk_font_config),
4034            "::",
4035            stringify!(fallback_glyph)
4036        )
4037    );
4038    assert_eq!(
4039        unsafe { &(*(::std::ptr::null::<nk_font_config>())).n as *const _ as usize },
4040        72usize,
4041        concat!(
4042            "Offset of field: ",
4043            stringify!(nk_font_config),
4044            "::",
4045            stringify!(n)
4046        )
4047    );
4048    assert_eq!(
4049        unsafe { &(*(::std::ptr::null::<nk_font_config>())).p as *const _ as usize },
4050        80usize,
4051        concat!(
4052            "Offset of field: ",
4053            stringify!(nk_font_config),
4054            "::",
4055            stringify!(p)
4056        )
4057    );
4058}
4059impl Default for nk_font_config {
4060    fn default() -> Self {
4061        unsafe { ::std::mem::zeroed() }
4062    }
4063}
4064#[repr(C)]
4065#[derive(Debug, Default, Copy, Clone)]
4066pub struct nk_font_glyph {
4067    pub codepoint: nk_rune,
4068    pub xadvance: f32,
4069    pub x0: f32,
4070    pub y0: f32,
4071    pub x1: f32,
4072    pub y1: f32,
4073    pub w: f32,
4074    pub h: f32,
4075    pub u0: f32,
4076    pub v0: f32,
4077    pub u1: f32,
4078    pub v1: f32,
4079}
4080#[test]
4081fn bindgen_test_layout_nk_font_glyph() {
4082    assert_eq!(
4083        ::std::mem::size_of::<nk_font_glyph>(),
4084        48usize,
4085        concat!("Size of: ", stringify!(nk_font_glyph))
4086    );
4087    assert_eq!(
4088        ::std::mem::align_of::<nk_font_glyph>(),
4089        4usize,
4090        concat!("Alignment of ", stringify!(nk_font_glyph))
4091    );
4092    assert_eq!(
4093        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).codepoint as *const _ as usize },
4094        0usize,
4095        concat!(
4096            "Offset of field: ",
4097            stringify!(nk_font_glyph),
4098            "::",
4099            stringify!(codepoint)
4100        )
4101    );
4102    assert_eq!(
4103        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).xadvance as *const _ as usize },
4104        4usize,
4105        concat!(
4106            "Offset of field: ",
4107            stringify!(nk_font_glyph),
4108            "::",
4109            stringify!(xadvance)
4110        )
4111    );
4112    assert_eq!(
4113        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).x0 as *const _ as usize },
4114        8usize,
4115        concat!(
4116            "Offset of field: ",
4117            stringify!(nk_font_glyph),
4118            "::",
4119            stringify!(x0)
4120        )
4121    );
4122    assert_eq!(
4123        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).y0 as *const _ as usize },
4124        12usize,
4125        concat!(
4126            "Offset of field: ",
4127            stringify!(nk_font_glyph),
4128            "::",
4129            stringify!(y0)
4130        )
4131    );
4132    assert_eq!(
4133        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).x1 as *const _ as usize },
4134        16usize,
4135        concat!(
4136            "Offset of field: ",
4137            stringify!(nk_font_glyph),
4138            "::",
4139            stringify!(x1)
4140        )
4141    );
4142    assert_eq!(
4143        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).y1 as *const _ as usize },
4144        20usize,
4145        concat!(
4146            "Offset of field: ",
4147            stringify!(nk_font_glyph),
4148            "::",
4149            stringify!(y1)
4150        )
4151    );
4152    assert_eq!(
4153        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).w as *const _ as usize },
4154        24usize,
4155        concat!(
4156            "Offset of field: ",
4157            stringify!(nk_font_glyph),
4158            "::",
4159            stringify!(w)
4160        )
4161    );
4162    assert_eq!(
4163        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).h as *const _ as usize },
4164        28usize,
4165        concat!(
4166            "Offset of field: ",
4167            stringify!(nk_font_glyph),
4168            "::",
4169            stringify!(h)
4170        )
4171    );
4172    assert_eq!(
4173        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).u0 as *const _ as usize },
4174        32usize,
4175        concat!(
4176            "Offset of field: ",
4177            stringify!(nk_font_glyph),
4178            "::",
4179            stringify!(u0)
4180        )
4181    );
4182    assert_eq!(
4183        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).v0 as *const _ as usize },
4184        36usize,
4185        concat!(
4186            "Offset of field: ",
4187            stringify!(nk_font_glyph),
4188            "::",
4189            stringify!(v0)
4190        )
4191    );
4192    assert_eq!(
4193        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).u1 as *const _ as usize },
4194        40usize,
4195        concat!(
4196            "Offset of field: ",
4197            stringify!(nk_font_glyph),
4198            "::",
4199            stringify!(u1)
4200        )
4201    );
4202    assert_eq!(
4203        unsafe { &(*(::std::ptr::null::<nk_font_glyph>())).v1 as *const _ as usize },
4204        44usize,
4205        concat!(
4206            "Offset of field: ",
4207            stringify!(nk_font_glyph),
4208            "::",
4209            stringify!(v1)
4210        )
4211    );
4212}
4213#[repr(C)]
4214#[derive(Copy, Clone)]
4215pub struct nk_font {
4216    pub next: *mut nk_font,
4217    pub handle: nk_user_font,
4218    pub info: nk_baked_font,
4219    pub scale: f32,
4220    pub glyphs: *mut nk_font_glyph,
4221    pub fallback: *const nk_font_glyph,
4222    pub fallback_codepoint: nk_rune,
4223    pub texture: nk_handle,
4224    pub config: *mut nk_font_config,
4225}
4226#[test]
4227fn bindgen_test_layout_nk_font() {
4228    assert_eq!(
4229        ::std::mem::size_of::<nk_font>(),
4230        128usize,
4231        concat!("Size of: ", stringify!(nk_font))
4232    );
4233    assert_eq!(
4234        ::std::mem::align_of::<nk_font>(),
4235        8usize,
4236        concat!("Alignment of ", stringify!(nk_font))
4237    );
4238    assert_eq!(
4239        unsafe { &(*(::std::ptr::null::<nk_font>())).next as *const _ as usize },
4240        0usize,
4241        concat!(
4242            "Offset of field: ",
4243            stringify!(nk_font),
4244            "::",
4245            stringify!(next)
4246        )
4247    );
4248    assert_eq!(
4249        unsafe { &(*(::std::ptr::null::<nk_font>())).handle as *const _ as usize },
4250        8usize,
4251        concat!(
4252            "Offset of field: ",
4253            stringify!(nk_font),
4254            "::",
4255            stringify!(handle)
4256        )
4257    );
4258    assert_eq!(
4259        unsafe { &(*(::std::ptr::null::<nk_font>())).info as *const _ as usize },
4260        48usize,
4261        concat!(
4262            "Offset of field: ",
4263            stringify!(nk_font),
4264            "::",
4265            stringify!(info)
4266        )
4267    );
4268    assert_eq!(
4269        unsafe { &(*(::std::ptr::null::<nk_font>())).scale as *const _ as usize },
4270        80usize,
4271        concat!(
4272            "Offset of field: ",
4273            stringify!(nk_font),
4274            "::",
4275            stringify!(scale)
4276        )
4277    );
4278    assert_eq!(
4279        unsafe { &(*(::std::ptr::null::<nk_font>())).glyphs as *const _ as usize },
4280        88usize,
4281        concat!(
4282            "Offset of field: ",
4283            stringify!(nk_font),
4284            "::",
4285            stringify!(glyphs)
4286        )
4287    );
4288    assert_eq!(
4289        unsafe { &(*(::std::ptr::null::<nk_font>())).fallback as *const _ as usize },
4290        96usize,
4291        concat!(
4292            "Offset of field: ",
4293            stringify!(nk_font),
4294            "::",
4295            stringify!(fallback)
4296        )
4297    );
4298    assert_eq!(
4299        unsafe { &(*(::std::ptr::null::<nk_font>())).fallback_codepoint as *const _ as usize },
4300        104usize,
4301        concat!(
4302            "Offset of field: ",
4303            stringify!(nk_font),
4304            "::",
4305            stringify!(fallback_codepoint)
4306        )
4307    );
4308    assert_eq!(
4309        unsafe { &(*(::std::ptr::null::<nk_font>())).texture as *const _ as usize },
4310        112usize,
4311        concat!(
4312            "Offset of field: ",
4313            stringify!(nk_font),
4314            "::",
4315            stringify!(texture)
4316        )
4317    );
4318    assert_eq!(
4319        unsafe { &(*(::std::ptr::null::<nk_font>())).config as *const _ as usize },
4320        120usize,
4321        concat!(
4322            "Offset of field: ",
4323            stringify!(nk_font),
4324            "::",
4325            stringify!(config)
4326        )
4327    );
4328}
4329impl Default for nk_font {
4330    fn default() -> Self {
4331        unsafe { ::std::mem::zeroed() }
4332    }
4333}
4334pub const nk_font_atlas_format_NK_FONT_ATLAS_ALPHA8: nk_font_atlas_format = 0;
4335pub const nk_font_atlas_format_NK_FONT_ATLAS_RGBA32: nk_font_atlas_format = 1;
4336pub const nk_font_atlas_format_NK_FONT_ATLAS_ARGB32: nk_font_atlas_format = 2;
4337pub type nk_font_atlas_format = u32;
4338#[repr(C)]
4339#[derive(Copy, Clone)]
4340pub struct nk_font_atlas {
4341    pub pixel: *mut ::std::os::raw::c_void,
4342    pub tex_width: ::std::os::raw::c_int,
4343    pub tex_height: ::std::os::raw::c_int,
4344    pub permanent: nk_allocator,
4345    pub temporary: nk_allocator,
4346    pub custom: nk_recti,
4347    pub cursors: [nk_cursor; 7usize],
4348    pub glyph_count: ::std::os::raw::c_int,
4349    pub glyphs: *mut nk_font_glyph,
4350    pub default_font: *mut nk_font,
4351    pub fonts: *mut nk_font,
4352    pub config: *mut nk_font_config,
4353    pub font_num: ::std::os::raw::c_int,
4354}
4355#[test]
4356fn bindgen_test_layout_nk_font_atlas() {
4357    assert_eq!(
4358        ::std::mem::size_of::<nk_font_atlas>(),
4359        400usize,
4360        concat!("Size of: ", stringify!(nk_font_atlas))
4361    );
4362    assert_eq!(
4363        ::std::mem::align_of::<nk_font_atlas>(),
4364        8usize,
4365        concat!("Alignment of ", stringify!(nk_font_atlas))
4366    );
4367    assert_eq!(
4368        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).pixel as *const _ as usize },
4369        0usize,
4370        concat!(
4371            "Offset of field: ",
4372            stringify!(nk_font_atlas),
4373            "::",
4374            stringify!(pixel)
4375        )
4376    );
4377    assert_eq!(
4378        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).tex_width as *const _ as usize },
4379        8usize,
4380        concat!(
4381            "Offset of field: ",
4382            stringify!(nk_font_atlas),
4383            "::",
4384            stringify!(tex_width)
4385        )
4386    );
4387    assert_eq!(
4388        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).tex_height as *const _ as usize },
4389        12usize,
4390        concat!(
4391            "Offset of field: ",
4392            stringify!(nk_font_atlas),
4393            "::",
4394            stringify!(tex_height)
4395        )
4396    );
4397    assert_eq!(
4398        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).permanent as *const _ as usize },
4399        16usize,
4400        concat!(
4401            "Offset of field: ",
4402            stringify!(nk_font_atlas),
4403            "::",
4404            stringify!(permanent)
4405        )
4406    );
4407    assert_eq!(
4408        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).temporary as *const _ as usize },
4409        40usize,
4410        concat!(
4411            "Offset of field: ",
4412            stringify!(nk_font_atlas),
4413            "::",
4414            stringify!(temporary)
4415        )
4416    );
4417    assert_eq!(
4418        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).custom as *const _ as usize },
4419        64usize,
4420        concat!(
4421            "Offset of field: ",
4422            stringify!(nk_font_atlas),
4423            "::",
4424            stringify!(custom)
4425        )
4426    );
4427    assert_eq!(
4428        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).cursors as *const _ as usize },
4429        72usize,
4430        concat!(
4431            "Offset of field: ",
4432            stringify!(nk_font_atlas),
4433            "::",
4434            stringify!(cursors)
4435        )
4436    );
4437    assert_eq!(
4438        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).glyph_count as *const _ as usize },
4439        352usize,
4440        concat!(
4441            "Offset of field: ",
4442            stringify!(nk_font_atlas),
4443            "::",
4444            stringify!(glyph_count)
4445        )
4446    );
4447    assert_eq!(
4448        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).glyphs as *const _ as usize },
4449        360usize,
4450        concat!(
4451            "Offset of field: ",
4452            stringify!(nk_font_atlas),
4453            "::",
4454            stringify!(glyphs)
4455        )
4456    );
4457    assert_eq!(
4458        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).default_font as *const _ as usize },
4459        368usize,
4460        concat!(
4461            "Offset of field: ",
4462            stringify!(nk_font_atlas),
4463            "::",
4464            stringify!(default_font)
4465        )
4466    );
4467    assert_eq!(
4468        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).fonts as *const _ as usize },
4469        376usize,
4470        concat!(
4471            "Offset of field: ",
4472            stringify!(nk_font_atlas),
4473            "::",
4474            stringify!(fonts)
4475        )
4476    );
4477    assert_eq!(
4478        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).config as *const _ as usize },
4479        384usize,
4480        concat!(
4481            "Offset of field: ",
4482            stringify!(nk_font_atlas),
4483            "::",
4484            stringify!(config)
4485        )
4486    );
4487    assert_eq!(
4488        unsafe { &(*(::std::ptr::null::<nk_font_atlas>())).font_num as *const _ as usize },
4489        392usize,
4490        concat!(
4491            "Offset of field: ",
4492            stringify!(nk_font_atlas),
4493            "::",
4494            stringify!(font_num)
4495        )
4496    );
4497}
4498impl Default for nk_font_atlas {
4499    fn default() -> Self {
4500        unsafe { ::std::mem::zeroed() }
4501    }
4502}
4503extern "C" {
4504    pub fn nk_font_default_glyph_ranges() -> *const nk_rune;
4505}
4506extern "C" {
4507    pub fn nk_font_chinese_glyph_ranges() -> *const nk_rune;
4508}
4509extern "C" {
4510    pub fn nk_font_cyrillic_glyph_ranges() -> *const nk_rune;
4511}
4512extern "C" {
4513    pub fn nk_font_korean_glyph_ranges() -> *const nk_rune;
4514}
4515extern "C" {
4516    pub fn nk_font_atlas_init(arg1: *mut nk_font_atlas, arg2: *mut nk_allocator);
4517}
4518extern "C" {
4519    pub fn nk_font_atlas_init_custom(
4520        arg1: *mut nk_font_atlas,
4521        persistent: *mut nk_allocator,
4522        transient: *mut nk_allocator,
4523    );
4524}
4525extern "C" {
4526    pub fn nk_font_atlas_begin(arg1: *mut nk_font_atlas);
4527}
4528extern "C" {
4529    pub fn nk_font_config(pixel_height: f32) -> nk_font_config;
4530}
4531extern "C" {
4532    pub fn nk_font_atlas_add(arg1: *mut nk_font_atlas, arg2: *const nk_font_config)
4533        -> *mut nk_font;
4534}
4535extern "C" {
4536    pub fn nk_font_atlas_add_from_memory(
4537        atlas: *mut nk_font_atlas,
4538        memory: *mut ::std::os::raw::c_void,
4539        size: nk_size,
4540        height: f32,
4541        config: *const nk_font_config,
4542    ) -> *mut nk_font;
4543}
4544extern "C" {
4545    pub fn nk_font_atlas_add_compressed(
4546        arg1: *mut nk_font_atlas,
4547        memory: *mut ::std::os::raw::c_void,
4548        size: nk_size,
4549        height: f32,
4550        arg2: *const nk_font_config,
4551    ) -> *mut nk_font;
4552}
4553extern "C" {
4554    pub fn nk_font_atlas_add_compressed_base85(
4555        arg1: *mut nk_font_atlas,
4556        data: *const ::std::os::raw::c_char,
4557        height: f32,
4558        config: *const nk_font_config,
4559    ) -> *mut nk_font;
4560}
4561extern "C" {
4562    pub fn nk_font_atlas_bake(
4563        arg1: *mut nk_font_atlas,
4564        width: *mut ::std::os::raw::c_int,
4565        height: *mut ::std::os::raw::c_int,
4566        arg2: nk_font_atlas_format,
4567    ) -> *const ::std::os::raw::c_void;
4568}
4569extern "C" {
4570    pub fn nk_font_atlas_end(
4571        arg1: *mut nk_font_atlas,
4572        tex: nk_handle,
4573        arg2: *mut nk_draw_null_texture,
4574    );
4575}
4576extern "C" {
4577    pub fn nk_font_find_glyph(arg1: *mut nk_font, unicode: nk_rune) -> *const nk_font_glyph;
4578}
4579extern "C" {
4580    pub fn nk_font_atlas_cleanup(atlas: *mut nk_font_atlas);
4581}
4582extern "C" {
4583    pub fn nk_font_atlas_clear(arg1: *mut nk_font_atlas);
4584}
4585#[repr(C)]
4586#[derive(Debug, Copy, Clone)]
4587pub struct nk_memory_status {
4588    pub memory: *mut ::std::os::raw::c_void,
4589    pub type_: ::std::os::raw::c_uint,
4590    pub size: nk_size,
4591    pub allocated: nk_size,
4592    pub needed: nk_size,
4593    pub calls: nk_size,
4594}
4595#[test]
4596fn bindgen_test_layout_nk_memory_status() {
4597    assert_eq!(
4598        ::std::mem::size_of::<nk_memory_status>(),
4599        48usize,
4600        concat!("Size of: ", stringify!(nk_memory_status))
4601    );
4602    assert_eq!(
4603        ::std::mem::align_of::<nk_memory_status>(),
4604        8usize,
4605        concat!("Alignment of ", stringify!(nk_memory_status))
4606    );
4607    assert_eq!(
4608        unsafe { &(*(::std::ptr::null::<nk_memory_status>())).memory as *const _ as usize },
4609        0usize,
4610        concat!(
4611            "Offset of field: ",
4612            stringify!(nk_memory_status),
4613            "::",
4614            stringify!(memory)
4615        )
4616    );
4617    assert_eq!(
4618        unsafe { &(*(::std::ptr::null::<nk_memory_status>())).type_ as *const _ as usize },
4619        8usize,
4620        concat!(
4621            "Offset of field: ",
4622            stringify!(nk_memory_status),
4623            "::",
4624            stringify!(type_)
4625        )
4626    );
4627    assert_eq!(
4628        unsafe { &(*(::std::ptr::null::<nk_memory_status>())).size as *const _ as usize },
4629        16usize,
4630        concat!(
4631            "Offset of field: ",
4632            stringify!(nk_memory_status),
4633            "::",
4634            stringify!(size)
4635        )
4636    );
4637    assert_eq!(
4638        unsafe { &(*(::std::ptr::null::<nk_memory_status>())).allocated as *const _ as usize },
4639        24usize,
4640        concat!(
4641            "Offset of field: ",
4642            stringify!(nk_memory_status),
4643            "::",
4644            stringify!(allocated)
4645        )
4646    );
4647    assert_eq!(
4648        unsafe { &(*(::std::ptr::null::<nk_memory_status>())).needed as *const _ as usize },
4649        32usize,
4650        concat!(
4651            "Offset of field: ",
4652            stringify!(nk_memory_status),
4653            "::",
4654            stringify!(needed)
4655        )
4656    );
4657    assert_eq!(
4658        unsafe { &(*(::std::ptr::null::<nk_memory_status>())).calls as *const _ as usize },
4659        40usize,
4660        concat!(
4661            "Offset of field: ",
4662            stringify!(nk_memory_status),
4663            "::",
4664            stringify!(calls)
4665        )
4666    );
4667}
4668impl Default for nk_memory_status {
4669    fn default() -> Self {
4670        unsafe { ::std::mem::zeroed() }
4671    }
4672}
4673pub const nk_allocation_type_NK_BUFFER_FIXED: nk_allocation_type = 0;
4674pub const nk_allocation_type_NK_BUFFER_DYNAMIC: nk_allocation_type = 1;
4675pub type nk_allocation_type = u32;
4676pub const nk_buffer_allocation_type_NK_BUFFER_FRONT: nk_buffer_allocation_type = 0;
4677pub const nk_buffer_allocation_type_NK_BUFFER_BACK: nk_buffer_allocation_type = 1;
4678pub const nk_buffer_allocation_type_NK_BUFFER_MAX: nk_buffer_allocation_type = 2;
4679pub type nk_buffer_allocation_type = u32;
4680#[repr(C)]
4681#[derive(Debug, Default, Copy, Clone)]
4682pub struct nk_buffer_marker {
4683    pub active: ::std::os::raw::c_int,
4684    pub offset: nk_size,
4685}
4686#[test]
4687fn bindgen_test_layout_nk_buffer_marker() {
4688    assert_eq!(
4689        ::std::mem::size_of::<nk_buffer_marker>(),
4690        16usize,
4691        concat!("Size of: ", stringify!(nk_buffer_marker))
4692    );
4693    assert_eq!(
4694        ::std::mem::align_of::<nk_buffer_marker>(),
4695        8usize,
4696        concat!("Alignment of ", stringify!(nk_buffer_marker))
4697    );
4698    assert_eq!(
4699        unsafe { &(*(::std::ptr::null::<nk_buffer_marker>())).active as *const _ as usize },
4700        0usize,
4701        concat!(
4702            "Offset of field: ",
4703            stringify!(nk_buffer_marker),
4704            "::",
4705            stringify!(active)
4706        )
4707    );
4708    assert_eq!(
4709        unsafe { &(*(::std::ptr::null::<nk_buffer_marker>())).offset as *const _ as usize },
4710        8usize,
4711        concat!(
4712            "Offset of field: ",
4713            stringify!(nk_buffer_marker),
4714            "::",
4715            stringify!(offset)
4716        )
4717    );
4718}
4719#[repr(C)]
4720#[derive(Debug, Copy, Clone)]
4721pub struct nk_memory {
4722    pub ptr: *mut ::std::os::raw::c_void,
4723    pub size: nk_size,
4724}
4725#[test]
4726fn bindgen_test_layout_nk_memory() {
4727    assert_eq!(
4728        ::std::mem::size_of::<nk_memory>(),
4729        16usize,
4730        concat!("Size of: ", stringify!(nk_memory))
4731    );
4732    assert_eq!(
4733        ::std::mem::align_of::<nk_memory>(),
4734        8usize,
4735        concat!("Alignment of ", stringify!(nk_memory))
4736    );
4737    assert_eq!(
4738        unsafe { &(*(::std::ptr::null::<nk_memory>())).ptr as *const _ as usize },
4739        0usize,
4740        concat!(
4741            "Offset of field: ",
4742            stringify!(nk_memory),
4743            "::",
4744            stringify!(ptr)
4745        )
4746    );
4747    assert_eq!(
4748        unsafe { &(*(::std::ptr::null::<nk_memory>())).size as *const _ as usize },
4749        8usize,
4750        concat!(
4751            "Offset of field: ",
4752            stringify!(nk_memory),
4753            "::",
4754            stringify!(size)
4755        )
4756    );
4757}
4758impl Default for nk_memory {
4759    fn default() -> Self {
4760        unsafe { ::std::mem::zeroed() }
4761    }
4762}
4763#[repr(C)]
4764#[derive(Copy, Clone)]
4765pub struct nk_buffer {
4766    pub marker: [nk_buffer_marker; 2usize],
4767    pub pool: nk_allocator,
4768    pub type_: nk_allocation_type,
4769    pub memory: nk_memory,
4770    pub grow_factor: f32,
4771    pub allocated: nk_size,
4772    pub needed: nk_size,
4773    pub calls: nk_size,
4774    pub size: nk_size,
4775}
4776#[test]
4777fn bindgen_test_layout_nk_buffer() {
4778    assert_eq!(
4779        ::std::mem::size_of::<nk_buffer>(),
4780        120usize,
4781        concat!("Size of: ", stringify!(nk_buffer))
4782    );
4783    assert_eq!(
4784        ::std::mem::align_of::<nk_buffer>(),
4785        8usize,
4786        concat!("Alignment of ", stringify!(nk_buffer))
4787    );
4788    assert_eq!(
4789        unsafe { &(*(::std::ptr::null::<nk_buffer>())).marker as *const _ as usize },
4790        0usize,
4791        concat!(
4792            "Offset of field: ",
4793            stringify!(nk_buffer),
4794            "::",
4795            stringify!(marker)
4796        )
4797    );
4798    assert_eq!(
4799        unsafe { &(*(::std::ptr::null::<nk_buffer>())).pool as *const _ as usize },
4800        32usize,
4801        concat!(
4802            "Offset of field: ",
4803            stringify!(nk_buffer),
4804            "::",
4805            stringify!(pool)
4806        )
4807    );
4808    assert_eq!(
4809        unsafe { &(*(::std::ptr::null::<nk_buffer>())).type_ as *const _ as usize },
4810        56usize,
4811        concat!(
4812            "Offset of field: ",
4813            stringify!(nk_buffer),
4814            "::",
4815            stringify!(type_)
4816        )
4817    );
4818    assert_eq!(
4819        unsafe { &(*(::std::ptr::null::<nk_buffer>())).memory as *const _ as usize },
4820        64usize,
4821        concat!(
4822            "Offset of field: ",
4823            stringify!(nk_buffer),
4824            "::",
4825            stringify!(memory)
4826        )
4827    );
4828    assert_eq!(
4829        unsafe { &(*(::std::ptr::null::<nk_buffer>())).grow_factor as *const _ as usize },
4830        80usize,
4831        concat!(
4832            "Offset of field: ",
4833            stringify!(nk_buffer),
4834            "::",
4835            stringify!(grow_factor)
4836        )
4837    );
4838    assert_eq!(
4839        unsafe { &(*(::std::ptr::null::<nk_buffer>())).allocated as *const _ as usize },
4840        88usize,
4841        concat!(
4842            "Offset of field: ",
4843            stringify!(nk_buffer),
4844            "::",
4845            stringify!(allocated)
4846        )
4847    );
4848    assert_eq!(
4849        unsafe { &(*(::std::ptr::null::<nk_buffer>())).needed as *const _ as usize },
4850        96usize,
4851        concat!(
4852            "Offset of field: ",
4853            stringify!(nk_buffer),
4854            "::",
4855            stringify!(needed)
4856        )
4857    );
4858    assert_eq!(
4859        unsafe { &(*(::std::ptr::null::<nk_buffer>())).calls as *const _ as usize },
4860        104usize,
4861        concat!(
4862            "Offset of field: ",
4863            stringify!(nk_buffer),
4864            "::",
4865            stringify!(calls)
4866        )
4867    );
4868    assert_eq!(
4869        unsafe { &(*(::std::ptr::null::<nk_buffer>())).size as *const _ as usize },
4870        112usize,
4871        concat!(
4872            "Offset of field: ",
4873            stringify!(nk_buffer),
4874            "::",
4875            stringify!(size)
4876        )
4877    );
4878}
4879impl Default for nk_buffer {
4880    fn default() -> Self {
4881        unsafe { ::std::mem::zeroed() }
4882    }
4883}
4884impl Debug for nk_buffer {
4885    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
4886        f.debug_struct("nk_buffer")
4887            .field("marker", &self.pool)
4888            .field("type_", &self.type_)
4889            .field("memory", &self.memory)
4890            .field("grow_factor", &self.grow_factor)
4891            .field("allocated", &self.allocated)
4892            .field("needed", &self.needed)
4893            .field("calls", &self.calls)
4894            .field("size", &self.size)
4895            .finish()
4896    }
4897}
4898extern "C" {
4899    pub fn nk_buffer_init(arg1: *mut nk_buffer, arg2: *const nk_allocator, size: nk_size);
4900}
4901extern "C" {
4902    pub fn nk_buffer_init_fixed(
4903        arg1: *mut nk_buffer,
4904        memory: *mut ::std::os::raw::c_void,
4905        size: nk_size,
4906    );
4907}
4908extern "C" {
4909    pub fn nk_buffer_info(arg1: *mut nk_memory_status, arg2: *mut nk_buffer);
4910}
4911extern "C" {
4912    pub fn nk_buffer_push(
4913        arg1: *mut nk_buffer,
4914        type_: nk_buffer_allocation_type,
4915        memory: *const ::std::os::raw::c_void,
4916        size: nk_size,
4917        align: nk_size,
4918    );
4919}
4920extern "C" {
4921    pub fn nk_buffer_mark(arg1: *mut nk_buffer, type_: nk_buffer_allocation_type);
4922}
4923extern "C" {
4924    pub fn nk_buffer_reset(arg1: *mut nk_buffer, type_: nk_buffer_allocation_type);
4925}
4926extern "C" {
4927    pub fn nk_buffer_clear(arg1: *mut nk_buffer);
4928}
4929extern "C" {
4930    pub fn nk_buffer_free(arg1: *mut nk_buffer);
4931}
4932extern "C" {
4933    pub fn nk_buffer_memory(arg1: *mut nk_buffer) -> *mut ::std::os::raw::c_void;
4934}
4935extern "C" {
4936    pub fn nk_buffer_memory_const(arg1: *const nk_buffer) -> *const ::std::os::raw::c_void;
4937}
4938extern "C" {
4939    pub fn nk_buffer_total(arg1: *mut nk_buffer) -> nk_size;
4940}
4941#[repr(C)]
4942#[derive(Copy, Clone)]
4943pub struct nk_str {
4944    pub buffer: nk_buffer,
4945    pub len: ::std::os::raw::c_int,
4946}
4947#[test]
4948fn bindgen_test_layout_nk_str() {
4949    assert_eq!(
4950        ::std::mem::size_of::<nk_str>(),
4951        128usize,
4952        concat!("Size of: ", stringify!(nk_str))
4953    );
4954    assert_eq!(
4955        ::std::mem::align_of::<nk_str>(),
4956        8usize,
4957        concat!("Alignment of ", stringify!(nk_str))
4958    );
4959    assert_eq!(
4960        unsafe { &(*(::std::ptr::null::<nk_str>())).buffer as *const _ as usize },
4961        0usize,
4962        concat!(
4963            "Offset of field: ",
4964            stringify!(nk_str),
4965            "::",
4966            stringify!(buffer)
4967        )
4968    );
4969    assert_eq!(
4970        unsafe { &(*(::std::ptr::null::<nk_str>())).len as *const _ as usize },
4971        120usize,
4972        concat!(
4973            "Offset of field: ",
4974            stringify!(nk_str),
4975            "::",
4976            stringify!(len)
4977        )
4978    );
4979}
4980impl Default for nk_str {
4981    fn default() -> Self {
4982        unsafe { ::std::mem::zeroed() }
4983    }
4984}
4985extern "C" {
4986    pub fn nk_str_init(arg1: *mut nk_str, arg2: *const nk_allocator, size: nk_size);
4987}
4988extern "C" {
4989    pub fn nk_str_init_fixed(arg1: *mut nk_str, memory: *mut ::std::os::raw::c_void, size: nk_size);
4990}
4991extern "C" {
4992    pub fn nk_str_clear(arg1: *mut nk_str);
4993}
4994extern "C" {
4995    pub fn nk_str_free(arg1: *mut nk_str);
4996}
4997extern "C" {
4998    pub fn nk_str_append_text_char(
4999        arg1: *mut nk_str,
5000        arg2: *const ::std::os::raw::c_char,
5001        arg3: ::std::os::raw::c_int,
5002    ) -> ::std::os::raw::c_int;
5003}
5004extern "C" {
5005    pub fn nk_str_append_str_char(
5006        arg1: *mut nk_str,
5007        arg2: *const ::std::os::raw::c_char,
5008    ) -> ::std::os::raw::c_int;
5009}
5010extern "C" {
5011    pub fn nk_str_append_text_utf8(
5012        arg1: *mut nk_str,
5013        arg2: *const ::std::os::raw::c_char,
5014        arg3: ::std::os::raw::c_int,
5015    ) -> ::std::os::raw::c_int;
5016}
5017extern "C" {
5018    pub fn nk_str_append_str_utf8(
5019        arg1: *mut nk_str,
5020        arg2: *const ::std::os::raw::c_char,
5021    ) -> ::std::os::raw::c_int;
5022}
5023extern "C" {
5024    pub fn nk_str_append_text_runes(
5025        arg1: *mut nk_str,
5026        arg2: *const nk_rune,
5027        arg3: ::std::os::raw::c_int,
5028    ) -> ::std::os::raw::c_int;
5029}
5030extern "C" {
5031    pub fn nk_str_append_str_runes(
5032        arg1: *mut nk_str,
5033        arg2: *const nk_rune,
5034    ) -> ::std::os::raw::c_int;
5035}
5036extern "C" {
5037    pub fn nk_str_insert_at_char(
5038        arg1: *mut nk_str,
5039        pos: ::std::os::raw::c_int,
5040        arg2: *const ::std::os::raw::c_char,
5041        arg3: ::std::os::raw::c_int,
5042    ) -> ::std::os::raw::c_int;
5043}
5044extern "C" {
5045    pub fn nk_str_insert_at_rune(
5046        arg1: *mut nk_str,
5047        pos: ::std::os::raw::c_int,
5048        arg2: *const ::std::os::raw::c_char,
5049        arg3: ::std::os::raw::c_int,
5050    ) -> ::std::os::raw::c_int;
5051}
5052extern "C" {
5053    pub fn nk_str_insert_text_char(
5054        arg1: *mut nk_str,
5055        pos: ::std::os::raw::c_int,
5056        arg2: *const ::std::os::raw::c_char,
5057        arg3: ::std::os::raw::c_int,
5058    ) -> ::std::os::raw::c_int;
5059}
5060extern "C" {
5061    pub fn nk_str_insert_str_char(
5062        arg1: *mut nk_str,
5063        pos: ::std::os::raw::c_int,
5064        arg2: *const ::std::os::raw::c_char,
5065    ) -> ::std::os::raw::c_int;
5066}
5067extern "C" {
5068    pub fn nk_str_insert_text_utf8(
5069        arg1: *mut nk_str,
5070        pos: ::std::os::raw::c_int,
5071        arg2: *const ::std::os::raw::c_char,
5072        arg3: ::std::os::raw::c_int,
5073    ) -> ::std::os::raw::c_int;
5074}
5075extern "C" {
5076    pub fn nk_str_insert_str_utf8(
5077        arg1: *mut nk_str,
5078        pos: ::std::os::raw::c_int,
5079        arg2: *const ::std::os::raw::c_char,
5080    ) -> ::std::os::raw::c_int;
5081}
5082extern "C" {
5083    pub fn nk_str_insert_text_runes(
5084        arg1: *mut nk_str,
5085        pos: ::std::os::raw::c_int,
5086        arg2: *const nk_rune,
5087        arg3: ::std::os::raw::c_int,
5088    ) -> ::std::os::raw::c_int;
5089}
5090extern "C" {
5091    pub fn nk_str_insert_str_runes(
5092        arg1: *mut nk_str,
5093        pos: ::std::os::raw::c_int,
5094        arg2: *const nk_rune,
5095    ) -> ::std::os::raw::c_int;
5096}
5097extern "C" {
5098    pub fn nk_str_remove_chars(arg1: *mut nk_str, len: ::std::os::raw::c_int);
5099}
5100extern "C" {
5101    pub fn nk_str_remove_runes(str: *mut nk_str, len: ::std::os::raw::c_int);
5102}
5103extern "C" {
5104    pub fn nk_str_delete_chars(
5105        arg1: *mut nk_str,
5106        pos: ::std::os::raw::c_int,
5107        len: ::std::os::raw::c_int,
5108    );
5109}
5110extern "C" {
5111    pub fn nk_str_delete_runes(
5112        arg1: *mut nk_str,
5113        pos: ::std::os::raw::c_int,
5114        len: ::std::os::raw::c_int,
5115    );
5116}
5117extern "C" {
5118    pub fn nk_str_at_char(
5119        arg1: *mut nk_str,
5120        pos: ::std::os::raw::c_int,
5121    ) -> *mut ::std::os::raw::c_char;
5122}
5123extern "C" {
5124    pub fn nk_str_at_rune(
5125        arg1: *mut nk_str,
5126        pos: ::std::os::raw::c_int,
5127        unicode: *mut nk_rune,
5128        len: *mut ::std::os::raw::c_int,
5129    ) -> *mut ::std::os::raw::c_char;
5130}
5131extern "C" {
5132    pub fn nk_str_rune_at(arg1: *const nk_str, pos: ::std::os::raw::c_int) -> nk_rune;
5133}
5134extern "C" {
5135    pub fn nk_str_at_char_const(
5136        arg1: *const nk_str,
5137        pos: ::std::os::raw::c_int,
5138    ) -> *const ::std::os::raw::c_char;
5139}
5140extern "C" {
5141    pub fn nk_str_at_const(
5142        arg1: *const nk_str,
5143        pos: ::std::os::raw::c_int,
5144        unicode: *mut nk_rune,
5145        len: *mut ::std::os::raw::c_int,
5146    ) -> *const ::std::os::raw::c_char;
5147}
5148extern "C" {
5149    pub fn nk_str_get(arg1: *mut nk_str) -> *mut ::std::os::raw::c_char;
5150}
5151extern "C" {
5152    pub fn nk_str_get_const(arg1: *const nk_str) -> *const ::std::os::raw::c_char;
5153}
5154extern "C" {
5155    pub fn nk_str_len(arg1: *mut nk_str) -> ::std::os::raw::c_int;
5156}
5157extern "C" {
5158    pub fn nk_str_len_char(arg1: *mut nk_str) -> ::std::os::raw::c_int;
5159}
5160#[repr(C)]
5161#[derive(Copy, Clone)]
5162pub struct nk_clipboard {
5163    pub userdata: nk_handle,
5164    pub paste: nk_plugin_paste,
5165    pub copy: nk_plugin_copy,
5166}
5167#[test]
5168fn bindgen_test_layout_nk_clipboard() {
5169    assert_eq!(
5170        ::std::mem::size_of::<nk_clipboard>(),
5171        24usize,
5172        concat!("Size of: ", stringify!(nk_clipboard))
5173    );
5174    assert_eq!(
5175        ::std::mem::align_of::<nk_clipboard>(),
5176        8usize,
5177        concat!("Alignment of ", stringify!(nk_clipboard))
5178    );
5179    assert_eq!(
5180        unsafe { &(*(::std::ptr::null::<nk_clipboard>())).userdata as *const _ as usize },
5181        0usize,
5182        concat!(
5183            "Offset of field: ",
5184            stringify!(nk_clipboard),
5185            "::",
5186            stringify!(userdata)
5187        )
5188    );
5189    assert_eq!(
5190        unsafe { &(*(::std::ptr::null::<nk_clipboard>())).paste as *const _ as usize },
5191        8usize,
5192        concat!(
5193            "Offset of field: ",
5194            stringify!(nk_clipboard),
5195            "::",
5196            stringify!(paste)
5197        )
5198    );
5199    assert_eq!(
5200        unsafe { &(*(::std::ptr::null::<nk_clipboard>())).copy as *const _ as usize },
5201        16usize,
5202        concat!(
5203            "Offset of field: ",
5204            stringify!(nk_clipboard),
5205            "::",
5206            stringify!(copy)
5207        )
5208    );
5209}
5210impl Default for nk_clipboard {
5211    fn default() -> Self {
5212        unsafe { ::std::mem::zeroed() }
5213    }
5214}
5215#[repr(C)]
5216#[derive(Debug, Default, Copy, Clone)]
5217pub struct nk_text_undo_record {
5218    pub where_: ::std::os::raw::c_int,
5219    pub insert_length: ::std::os::raw::c_short,
5220    pub delete_length: ::std::os::raw::c_short,
5221    pub char_storage: ::std::os::raw::c_short,
5222}
5223#[test]
5224fn bindgen_test_layout_nk_text_undo_record() {
5225    assert_eq!(
5226        ::std::mem::size_of::<nk_text_undo_record>(),
5227        12usize,
5228        concat!("Size of: ", stringify!(nk_text_undo_record))
5229    );
5230    assert_eq!(
5231        ::std::mem::align_of::<nk_text_undo_record>(),
5232        4usize,
5233        concat!("Alignment of ", stringify!(nk_text_undo_record))
5234    );
5235    assert_eq!(
5236        unsafe { &(*(::std::ptr::null::<nk_text_undo_record>())).where_ as *const _ as usize },
5237        0usize,
5238        concat!(
5239            "Offset of field: ",
5240            stringify!(nk_text_undo_record),
5241            "::",
5242            stringify!(where_)
5243        )
5244    );
5245    assert_eq!(
5246        unsafe {
5247            &(*(::std::ptr::null::<nk_text_undo_record>())).insert_length as *const _ as usize
5248        },
5249        4usize,
5250        concat!(
5251            "Offset of field: ",
5252            stringify!(nk_text_undo_record),
5253            "::",
5254            stringify!(insert_length)
5255        )
5256    );
5257    assert_eq!(
5258        unsafe {
5259            &(*(::std::ptr::null::<nk_text_undo_record>())).delete_length as *const _ as usize
5260        },
5261        6usize,
5262        concat!(
5263            "Offset of field: ",
5264            stringify!(nk_text_undo_record),
5265            "::",
5266            stringify!(delete_length)
5267        )
5268    );
5269    assert_eq!(
5270        unsafe {
5271            &(*(::std::ptr::null::<nk_text_undo_record>())).char_storage as *const _ as usize
5272        },
5273        8usize,
5274        concat!(
5275            "Offset of field: ",
5276            stringify!(nk_text_undo_record),
5277            "::",
5278            stringify!(char_storage)
5279        )
5280    );
5281}
5282#[repr(C)]
5283#[derive(Copy, Clone)]
5284pub struct nk_text_undo_state {
5285    pub undo_rec: [nk_text_undo_record; 99usize],
5286    pub undo_char: [nk_rune; 999usize],
5287    pub undo_point: ::std::os::raw::c_short,
5288    pub redo_point: ::std::os::raw::c_short,
5289    pub undo_char_point: ::std::os::raw::c_short,
5290    pub redo_char_point: ::std::os::raw::c_short,
5291}
5292#[test]
5293fn bindgen_test_layout_nk_text_undo_state() {
5294    assert_eq!(
5295        ::std::mem::size_of::<nk_text_undo_state>(),
5296        5192usize,
5297        concat!("Size of: ", stringify!(nk_text_undo_state))
5298    );
5299    assert_eq!(
5300        ::std::mem::align_of::<nk_text_undo_state>(),
5301        4usize,
5302        concat!("Alignment of ", stringify!(nk_text_undo_state))
5303    );
5304    assert_eq!(
5305        unsafe { &(*(::std::ptr::null::<nk_text_undo_state>())).undo_rec as *const _ as usize },
5306        0usize,
5307        concat!(
5308            "Offset of field: ",
5309            stringify!(nk_text_undo_state),
5310            "::",
5311            stringify!(undo_rec)
5312        )
5313    );
5314    assert_eq!(
5315        unsafe { &(*(::std::ptr::null::<nk_text_undo_state>())).undo_char as *const _ as usize },
5316        1188usize,
5317        concat!(
5318            "Offset of field: ",
5319            stringify!(nk_text_undo_state),
5320            "::",
5321            stringify!(undo_char)
5322        )
5323    );
5324    assert_eq!(
5325        unsafe { &(*(::std::ptr::null::<nk_text_undo_state>())).undo_point as *const _ as usize },
5326        5184usize,
5327        concat!(
5328            "Offset of field: ",
5329            stringify!(nk_text_undo_state),
5330            "::",
5331            stringify!(undo_point)
5332        )
5333    );
5334    assert_eq!(
5335        unsafe { &(*(::std::ptr::null::<nk_text_undo_state>())).redo_point as *const _ as usize },
5336        5186usize,
5337        concat!(
5338            "Offset of field: ",
5339            stringify!(nk_text_undo_state),
5340            "::",
5341            stringify!(redo_point)
5342        )
5343    );
5344    assert_eq!(
5345        unsafe {
5346            &(*(::std::ptr::null::<nk_text_undo_state>())).undo_char_point as *const _ as usize
5347        },
5348        5188usize,
5349        concat!(
5350            "Offset of field: ",
5351            stringify!(nk_text_undo_state),
5352            "::",
5353            stringify!(undo_char_point)
5354        )
5355    );
5356    assert_eq!(
5357        unsafe {
5358            &(*(::std::ptr::null::<nk_text_undo_state>())).redo_char_point as *const _ as usize
5359        },
5360        5190usize,
5361        concat!(
5362            "Offset of field: ",
5363            stringify!(nk_text_undo_state),
5364            "::",
5365            stringify!(redo_char_point)
5366        )
5367    );
5368}
5369impl Default for nk_text_undo_state {
5370    fn default() -> Self {
5371        unsafe { ::std::mem::zeroed() }
5372    }
5373}
5374pub const nk_text_edit_type_NK_TEXT_EDIT_SINGLE_LINE: nk_text_edit_type = 0;
5375pub const nk_text_edit_type_NK_TEXT_EDIT_MULTI_LINE: nk_text_edit_type = 1;
5376pub type nk_text_edit_type = u32;
5377pub const nk_text_edit_mode_NK_TEXT_EDIT_MODE_VIEW: nk_text_edit_mode = 0;
5378pub const nk_text_edit_mode_NK_TEXT_EDIT_MODE_INSERT: nk_text_edit_mode = 1;
5379pub const nk_text_edit_mode_NK_TEXT_EDIT_MODE_REPLACE: nk_text_edit_mode = 2;
5380pub type nk_text_edit_mode = u32;
5381#[repr(C)]
5382#[derive(Copy, Clone)]
5383pub struct nk_text_edit {
5384    pub clip: nk_clipboard,
5385    pub string: nk_str,
5386    pub filter: nk_plugin_filter,
5387    pub scrollbar: nk_vec2,
5388    pub cursor: ::std::os::raw::c_int,
5389    pub select_start: ::std::os::raw::c_int,
5390    pub select_end: ::std::os::raw::c_int,
5391    pub mode: ::std::os::raw::c_uchar,
5392    pub cursor_at_end_of_line: ::std::os::raw::c_uchar,
5393    pub initialized: ::std::os::raw::c_uchar,
5394    pub has_preferred_x: ::std::os::raw::c_uchar,
5395    pub single_line: ::std::os::raw::c_uchar,
5396    pub active: ::std::os::raw::c_uchar,
5397    pub padding1: ::std::os::raw::c_uchar,
5398    pub preferred_x: f32,
5399    pub undo: nk_text_undo_state,
5400}
5401#[test]
5402fn bindgen_test_layout_nk_text_edit() {
5403    assert_eq!(
5404        ::std::mem::size_of::<nk_text_edit>(),
5405        5384usize,
5406        concat!("Size of: ", stringify!(nk_text_edit))
5407    );
5408    assert_eq!(
5409        ::std::mem::align_of::<nk_text_edit>(),
5410        8usize,
5411        concat!("Alignment of ", stringify!(nk_text_edit))
5412    );
5413    assert_eq!(
5414        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).clip as *const _ as usize },
5415        0usize,
5416        concat!(
5417            "Offset of field: ",
5418            stringify!(nk_text_edit),
5419            "::",
5420            stringify!(clip)
5421        )
5422    );
5423    assert_eq!(
5424        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).string as *const _ as usize },
5425        24usize,
5426        concat!(
5427            "Offset of field: ",
5428            stringify!(nk_text_edit),
5429            "::",
5430            stringify!(string)
5431        )
5432    );
5433    assert_eq!(
5434        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).filter as *const _ as usize },
5435        152usize,
5436        concat!(
5437            "Offset of field: ",
5438            stringify!(nk_text_edit),
5439            "::",
5440            stringify!(filter)
5441        )
5442    );
5443    assert_eq!(
5444        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).scrollbar as *const _ as usize },
5445        160usize,
5446        concat!(
5447            "Offset of field: ",
5448            stringify!(nk_text_edit),
5449            "::",
5450            stringify!(scrollbar)
5451        )
5452    );
5453    assert_eq!(
5454        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).cursor as *const _ as usize },
5455        168usize,
5456        concat!(
5457            "Offset of field: ",
5458            stringify!(nk_text_edit),
5459            "::",
5460            stringify!(cursor)
5461        )
5462    );
5463    assert_eq!(
5464        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).select_start as *const _ as usize },
5465        172usize,
5466        concat!(
5467            "Offset of field: ",
5468            stringify!(nk_text_edit),
5469            "::",
5470            stringify!(select_start)
5471        )
5472    );
5473    assert_eq!(
5474        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).select_end as *const _ as usize },
5475        176usize,
5476        concat!(
5477            "Offset of field: ",
5478            stringify!(nk_text_edit),
5479            "::",
5480            stringify!(select_end)
5481        )
5482    );
5483    assert_eq!(
5484        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).mode as *const _ as usize },
5485        180usize,
5486        concat!(
5487            "Offset of field: ",
5488            stringify!(nk_text_edit),
5489            "::",
5490            stringify!(mode)
5491        )
5492    );
5493    assert_eq!(
5494        unsafe {
5495            &(*(::std::ptr::null::<nk_text_edit>())).cursor_at_end_of_line as *const _ as usize
5496        },
5497        181usize,
5498        concat!(
5499            "Offset of field: ",
5500            stringify!(nk_text_edit),
5501            "::",
5502            stringify!(cursor_at_end_of_line)
5503        )
5504    );
5505    assert_eq!(
5506        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).initialized as *const _ as usize },
5507        182usize,
5508        concat!(
5509            "Offset of field: ",
5510            stringify!(nk_text_edit),
5511            "::",
5512            stringify!(initialized)
5513        )
5514    );
5515    assert_eq!(
5516        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).has_preferred_x as *const _ as usize },
5517        183usize,
5518        concat!(
5519            "Offset of field: ",
5520            stringify!(nk_text_edit),
5521            "::",
5522            stringify!(has_preferred_x)
5523        )
5524    );
5525    assert_eq!(
5526        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).single_line as *const _ as usize },
5527        184usize,
5528        concat!(
5529            "Offset of field: ",
5530            stringify!(nk_text_edit),
5531            "::",
5532            stringify!(single_line)
5533        )
5534    );
5535    assert_eq!(
5536        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).active as *const _ as usize },
5537        185usize,
5538        concat!(
5539            "Offset of field: ",
5540            stringify!(nk_text_edit),
5541            "::",
5542            stringify!(active)
5543        )
5544    );
5545    assert_eq!(
5546        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).padding1 as *const _ as usize },
5547        186usize,
5548        concat!(
5549            "Offset of field: ",
5550            stringify!(nk_text_edit),
5551            "::",
5552            stringify!(padding1)
5553        )
5554    );
5555    assert_eq!(
5556        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).preferred_x as *const _ as usize },
5557        188usize,
5558        concat!(
5559            "Offset of field: ",
5560            stringify!(nk_text_edit),
5561            "::",
5562            stringify!(preferred_x)
5563        )
5564    );
5565    assert_eq!(
5566        unsafe { &(*(::std::ptr::null::<nk_text_edit>())).undo as *const _ as usize },
5567        192usize,
5568        concat!(
5569            "Offset of field: ",
5570            stringify!(nk_text_edit),
5571            "::",
5572            stringify!(undo)
5573        )
5574    );
5575}
5576impl Default for nk_text_edit {
5577    fn default() -> Self {
5578        unsafe { ::std::mem::zeroed() }
5579    }
5580}
5581extern "C" {
5582    pub fn nk_filter_default(arg1: *const nk_text_edit, unicode: nk_rune) -> ::std::os::raw::c_int;
5583}
5584extern "C" {
5585    pub fn nk_filter_ascii(arg1: *const nk_text_edit, unicode: nk_rune) -> ::std::os::raw::c_int;
5586}
5587extern "C" {
5588    pub fn nk_filter_float(arg1: *const nk_text_edit, unicode: nk_rune) -> ::std::os::raw::c_int;
5589}
5590extern "C" {
5591    pub fn nk_filter_decimal(arg1: *const nk_text_edit, unicode: nk_rune) -> ::std::os::raw::c_int;
5592}
5593extern "C" {
5594    pub fn nk_filter_hex(arg1: *const nk_text_edit, unicode: nk_rune) -> ::std::os::raw::c_int;
5595}
5596extern "C" {
5597    pub fn nk_filter_oct(arg1: *const nk_text_edit, unicode: nk_rune) -> ::std::os::raw::c_int;
5598}
5599extern "C" {
5600    pub fn nk_filter_binary(arg1: *const nk_text_edit, unicode: nk_rune) -> ::std::os::raw::c_int;
5601}
5602extern "C" {
5603    pub fn nk_textedit_init(arg1: *mut nk_text_edit, arg2: *mut nk_allocator, size: nk_size);
5604}
5605extern "C" {
5606    pub fn nk_textedit_init_fixed(
5607        arg1: *mut nk_text_edit,
5608        memory: *mut ::std::os::raw::c_void,
5609        size: nk_size,
5610    );
5611}
5612extern "C" {
5613    pub fn nk_textedit_free(arg1: *mut nk_text_edit);
5614}
5615extern "C" {
5616    pub fn nk_textedit_text(
5617        arg1: *mut nk_text_edit,
5618        arg2: *const ::std::os::raw::c_char,
5619        total_len: ::std::os::raw::c_int,
5620    );
5621}
5622extern "C" {
5623    pub fn nk_textedit_delete(
5624        arg1: *mut nk_text_edit,
5625        where_: ::std::os::raw::c_int,
5626        len: ::std::os::raw::c_int,
5627    );
5628}
5629extern "C" {
5630    pub fn nk_textedit_delete_selection(arg1: *mut nk_text_edit);
5631}
5632extern "C" {
5633    pub fn nk_textedit_select_all(arg1: *mut nk_text_edit);
5634}
5635extern "C" {
5636    pub fn nk_textedit_cut(arg1: *mut nk_text_edit) -> ::std::os::raw::c_int;
5637}
5638extern "C" {
5639    pub fn nk_textedit_paste(
5640        arg1: *mut nk_text_edit,
5641        arg2: *const ::std::os::raw::c_char,
5642        len: ::std::os::raw::c_int,
5643    ) -> ::std::os::raw::c_int;
5644}
5645extern "C" {
5646    pub fn nk_textedit_undo(arg1: *mut nk_text_edit);
5647}
5648extern "C" {
5649    pub fn nk_textedit_redo(arg1: *mut nk_text_edit);
5650}
5651pub const nk_command_type_NK_COMMAND_NOP: nk_command_type = 0;
5652pub const nk_command_type_NK_COMMAND_SCISSOR: nk_command_type = 1;
5653pub const nk_command_type_NK_COMMAND_LINE: nk_command_type = 2;
5654pub const nk_command_type_NK_COMMAND_CURVE: nk_command_type = 3;
5655pub const nk_command_type_NK_COMMAND_RECT: nk_command_type = 4;
5656pub const nk_command_type_NK_COMMAND_RECT_FILLED: nk_command_type = 5;
5657pub const nk_command_type_NK_COMMAND_RECT_MULTI_COLOR: nk_command_type = 6;
5658pub const nk_command_type_NK_COMMAND_CIRCLE: nk_command_type = 7;
5659pub const nk_command_type_NK_COMMAND_CIRCLE_FILLED: nk_command_type = 8;
5660pub const nk_command_type_NK_COMMAND_ARC: nk_command_type = 9;
5661pub const nk_command_type_NK_COMMAND_ARC_FILLED: nk_command_type = 10;
5662pub const nk_command_type_NK_COMMAND_TRIANGLE: nk_command_type = 11;
5663pub const nk_command_type_NK_COMMAND_TRIANGLE_FILLED: nk_command_type = 12;
5664pub const nk_command_type_NK_COMMAND_POLYGON: nk_command_type = 13;
5665pub const nk_command_type_NK_COMMAND_POLYGON_FILLED: nk_command_type = 14;
5666pub const nk_command_type_NK_COMMAND_POLYLINE: nk_command_type = 15;
5667pub const nk_command_type_NK_COMMAND_TEXT: nk_command_type = 16;
5668pub const nk_command_type_NK_COMMAND_IMAGE: nk_command_type = 17;
5669pub const nk_command_type_NK_COMMAND_CUSTOM: nk_command_type = 18;
5670pub type nk_command_type = u32;
5671#[repr(C)]
5672#[derive(Copy, Clone)]
5673pub struct nk_command {
5674    pub type_: nk_command_type,
5675    pub next: nk_size,
5676    pub userdata: nk_handle,
5677}
5678#[test]
5679fn bindgen_test_layout_nk_command() {
5680    assert_eq!(
5681        ::std::mem::size_of::<nk_command>(),
5682        24usize,
5683        concat!("Size of: ", stringify!(nk_command))
5684    );
5685    assert_eq!(
5686        ::std::mem::align_of::<nk_command>(),
5687        8usize,
5688        concat!("Alignment of ", stringify!(nk_command))
5689    );
5690    assert_eq!(
5691        unsafe { &(*(::std::ptr::null::<nk_command>())).type_ as *const _ as usize },
5692        0usize,
5693        concat!(
5694            "Offset of field: ",
5695            stringify!(nk_command),
5696            "::",
5697            stringify!(type_)
5698        )
5699    );
5700    assert_eq!(
5701        unsafe { &(*(::std::ptr::null::<nk_command>())).next as *const _ as usize },
5702        8usize,
5703        concat!(
5704            "Offset of field: ",
5705            stringify!(nk_command),
5706            "::",
5707            stringify!(next)
5708        )
5709    );
5710    assert_eq!(
5711        unsafe { &(*(::std::ptr::null::<nk_command>())).userdata as *const _ as usize },
5712        16usize,
5713        concat!(
5714            "Offset of field: ",
5715            stringify!(nk_command),
5716            "::",
5717            stringify!(userdata)
5718        )
5719    );
5720}
5721impl Default for nk_command {
5722    fn default() -> Self {
5723        unsafe { ::std::mem::zeroed() }
5724    }
5725}
5726#[repr(C)]
5727#[derive(Copy, Clone)]
5728pub struct nk_command_scissor {
5729    pub header: nk_command,
5730    pub x: ::std::os::raw::c_short,
5731    pub y: ::std::os::raw::c_short,
5732    pub w: ::std::os::raw::c_ushort,
5733    pub h: ::std::os::raw::c_ushort,
5734}
5735#[test]
5736fn bindgen_test_layout_nk_command_scissor() {
5737    assert_eq!(
5738        ::std::mem::size_of::<nk_command_scissor>(),
5739        32usize,
5740        concat!("Size of: ", stringify!(nk_command_scissor))
5741    );
5742    assert_eq!(
5743        ::std::mem::align_of::<nk_command_scissor>(),
5744        8usize,
5745        concat!("Alignment of ", stringify!(nk_command_scissor))
5746    );
5747    assert_eq!(
5748        unsafe { &(*(::std::ptr::null::<nk_command_scissor>())).header as *const _ as usize },
5749        0usize,
5750        concat!(
5751            "Offset of field: ",
5752            stringify!(nk_command_scissor),
5753            "::",
5754            stringify!(header)
5755        )
5756    );
5757    assert_eq!(
5758        unsafe { &(*(::std::ptr::null::<nk_command_scissor>())).x as *const _ as usize },
5759        24usize,
5760        concat!(
5761            "Offset of field: ",
5762            stringify!(nk_command_scissor),
5763            "::",
5764            stringify!(x)
5765        )
5766    );
5767    assert_eq!(
5768        unsafe { &(*(::std::ptr::null::<nk_command_scissor>())).y as *const _ as usize },
5769        26usize,
5770        concat!(
5771            "Offset of field: ",
5772            stringify!(nk_command_scissor),
5773            "::",
5774            stringify!(y)
5775        )
5776    );
5777    assert_eq!(
5778        unsafe { &(*(::std::ptr::null::<nk_command_scissor>())).w as *const _ as usize },
5779        28usize,
5780        concat!(
5781            "Offset of field: ",
5782            stringify!(nk_command_scissor),
5783            "::",
5784            stringify!(w)
5785        )
5786    );
5787    assert_eq!(
5788        unsafe { &(*(::std::ptr::null::<nk_command_scissor>())).h as *const _ as usize },
5789        30usize,
5790        concat!(
5791            "Offset of field: ",
5792            stringify!(nk_command_scissor),
5793            "::",
5794            stringify!(h)
5795        )
5796    );
5797}
5798impl Default for nk_command_scissor {
5799    fn default() -> Self {
5800        unsafe { ::std::mem::zeroed() }
5801    }
5802}
5803#[repr(C)]
5804#[derive(Copy, Clone)]
5805pub struct nk_command_line {
5806    pub header: nk_command,
5807    pub line_thickness: ::std::os::raw::c_ushort,
5808    pub begin: nk_vec2i,
5809    pub end: nk_vec2i,
5810    pub color: nk_color,
5811}
5812#[test]
5813fn bindgen_test_layout_nk_command_line() {
5814    assert_eq!(
5815        ::std::mem::size_of::<nk_command_line>(),
5816        40usize,
5817        concat!("Size of: ", stringify!(nk_command_line))
5818    );
5819    assert_eq!(
5820        ::std::mem::align_of::<nk_command_line>(),
5821        8usize,
5822        concat!("Alignment of ", stringify!(nk_command_line))
5823    );
5824    assert_eq!(
5825        unsafe { &(*(::std::ptr::null::<nk_command_line>())).header as *const _ as usize },
5826        0usize,
5827        concat!(
5828            "Offset of field: ",
5829            stringify!(nk_command_line),
5830            "::",
5831            stringify!(header)
5832        )
5833    );
5834    assert_eq!(
5835        unsafe { &(*(::std::ptr::null::<nk_command_line>())).line_thickness as *const _ as usize },
5836        24usize,
5837        concat!(
5838            "Offset of field: ",
5839            stringify!(nk_command_line),
5840            "::",
5841            stringify!(line_thickness)
5842        )
5843    );
5844    assert_eq!(
5845        unsafe { &(*(::std::ptr::null::<nk_command_line>())).begin as *const _ as usize },
5846        26usize,
5847        concat!(
5848            "Offset of field: ",
5849            stringify!(nk_command_line),
5850            "::",
5851            stringify!(begin)
5852        )
5853    );
5854    assert_eq!(
5855        unsafe { &(*(::std::ptr::null::<nk_command_line>())).end as *const _ as usize },
5856        30usize,
5857        concat!(
5858            "Offset of field: ",
5859            stringify!(nk_command_line),
5860            "::",
5861            stringify!(end)
5862        )
5863    );
5864    assert_eq!(
5865        unsafe { &(*(::std::ptr::null::<nk_command_line>())).color as *const _ as usize },
5866        34usize,
5867        concat!(
5868            "Offset of field: ",
5869            stringify!(nk_command_line),
5870            "::",
5871            stringify!(color)
5872        )
5873    );
5874}
5875impl Default for nk_command_line {
5876    fn default() -> Self {
5877        unsafe { ::std::mem::zeroed() }
5878    }
5879}
5880#[repr(C)]
5881#[derive(Copy, Clone)]
5882pub struct nk_command_curve {
5883    pub header: nk_command,
5884    pub line_thickness: ::std::os::raw::c_ushort,
5885    pub begin: nk_vec2i,
5886    pub end: nk_vec2i,
5887    pub ctrl: [nk_vec2i; 2usize],
5888    pub color: nk_color,
5889}
5890#[test]
5891fn bindgen_test_layout_nk_command_curve() {
5892    assert_eq!(
5893        ::std::mem::size_of::<nk_command_curve>(),
5894        48usize,
5895        concat!("Size of: ", stringify!(nk_command_curve))
5896    );
5897    assert_eq!(
5898        ::std::mem::align_of::<nk_command_curve>(),
5899        8usize,
5900        concat!("Alignment of ", stringify!(nk_command_curve))
5901    );
5902    assert_eq!(
5903        unsafe { &(*(::std::ptr::null::<nk_command_curve>())).header as *const _ as usize },
5904        0usize,
5905        concat!(
5906            "Offset of field: ",
5907            stringify!(nk_command_curve),
5908            "::",
5909            stringify!(header)
5910        )
5911    );
5912    assert_eq!(
5913        unsafe { &(*(::std::ptr::null::<nk_command_curve>())).line_thickness as *const _ as usize },
5914        24usize,
5915        concat!(
5916            "Offset of field: ",
5917            stringify!(nk_command_curve),
5918            "::",
5919            stringify!(line_thickness)
5920        )
5921    );
5922    assert_eq!(
5923        unsafe { &(*(::std::ptr::null::<nk_command_curve>())).begin as *const _ as usize },
5924        26usize,
5925        concat!(
5926            "Offset of field: ",
5927            stringify!(nk_command_curve),
5928            "::",
5929            stringify!(begin)
5930        )
5931    );
5932    assert_eq!(
5933        unsafe { &(*(::std::ptr::null::<nk_command_curve>())).end as *const _ as usize },
5934        30usize,
5935        concat!(
5936            "Offset of field: ",
5937            stringify!(nk_command_curve),
5938            "::",
5939            stringify!(end)
5940        )
5941    );
5942    assert_eq!(
5943        unsafe { &(*(::std::ptr::null::<nk_command_curve>())).ctrl as *const _ as usize },
5944        34usize,
5945        concat!(
5946            "Offset of field: ",
5947            stringify!(nk_command_curve),
5948            "::",
5949            stringify!(ctrl)
5950        )
5951    );
5952    assert_eq!(
5953        unsafe { &(*(::std::ptr::null::<nk_command_curve>())).color as *const _ as usize },
5954        42usize,
5955        concat!(
5956            "Offset of field: ",
5957            stringify!(nk_command_curve),
5958            "::",
5959            stringify!(color)
5960        )
5961    );
5962}
5963impl Default for nk_command_curve {
5964    fn default() -> Self {
5965        unsafe { ::std::mem::zeroed() }
5966    }
5967}
5968#[repr(C)]
5969#[derive(Copy, Clone)]
5970pub struct nk_command_rect {
5971    pub header: nk_command,
5972    pub rounding: ::std::os::raw::c_ushort,
5973    pub line_thickness: ::std::os::raw::c_ushort,
5974    pub x: ::std::os::raw::c_short,
5975    pub y: ::std::os::raw::c_short,
5976    pub w: ::std::os::raw::c_ushort,
5977    pub h: ::std::os::raw::c_ushort,
5978    pub color: nk_color,
5979}
5980#[test]
5981fn bindgen_test_layout_nk_command_rect() {
5982    assert_eq!(
5983        ::std::mem::size_of::<nk_command_rect>(),
5984        40usize,
5985        concat!("Size of: ", stringify!(nk_command_rect))
5986    );
5987    assert_eq!(
5988        ::std::mem::align_of::<nk_command_rect>(),
5989        8usize,
5990        concat!("Alignment of ", stringify!(nk_command_rect))
5991    );
5992    assert_eq!(
5993        unsafe { &(*(::std::ptr::null::<nk_command_rect>())).header as *const _ as usize },
5994        0usize,
5995        concat!(
5996            "Offset of field: ",
5997            stringify!(nk_command_rect),
5998            "::",
5999            stringify!(header)
6000        )
6001    );
6002    assert_eq!(
6003        unsafe { &(*(::std::ptr::null::<nk_command_rect>())).rounding as *const _ as usize },
6004        24usize,
6005        concat!(
6006            "Offset of field: ",
6007            stringify!(nk_command_rect),
6008            "::",
6009            stringify!(rounding)
6010        )
6011    );
6012    assert_eq!(
6013        unsafe { &(*(::std::ptr::null::<nk_command_rect>())).line_thickness as *const _ as usize },
6014        26usize,
6015        concat!(
6016            "Offset of field: ",
6017            stringify!(nk_command_rect),
6018            "::",
6019            stringify!(line_thickness)
6020        )
6021    );
6022    assert_eq!(
6023        unsafe { &(*(::std::ptr::null::<nk_command_rect>())).x as *const _ as usize },
6024        28usize,
6025        concat!(
6026            "Offset of field: ",
6027            stringify!(nk_command_rect),
6028            "::",
6029            stringify!(x)
6030        )
6031    );
6032    assert_eq!(
6033        unsafe { &(*(::std::ptr::null::<nk_command_rect>())).y as *const _ as usize },
6034        30usize,
6035        concat!(
6036            "Offset of field: ",
6037            stringify!(nk_command_rect),
6038            "::",
6039            stringify!(y)
6040        )
6041    );
6042    assert_eq!(
6043        unsafe { &(*(::std::ptr::null::<nk_command_rect>())).w as *const _ as usize },
6044        32usize,
6045        concat!(
6046            "Offset of field: ",
6047            stringify!(nk_command_rect),
6048            "::",
6049            stringify!(w)
6050        )
6051    );
6052    assert_eq!(
6053        unsafe { &(*(::std::ptr::null::<nk_command_rect>())).h as *const _ as usize },
6054        34usize,
6055        concat!(
6056            "Offset of field: ",
6057            stringify!(nk_command_rect),
6058            "::",
6059            stringify!(h)
6060        )
6061    );
6062    assert_eq!(
6063        unsafe { &(*(::std::ptr::null::<nk_command_rect>())).color as *const _ as usize },
6064        36usize,
6065        concat!(
6066            "Offset of field: ",
6067            stringify!(nk_command_rect),
6068            "::",
6069            stringify!(color)
6070        )
6071    );
6072}
6073impl Default for nk_command_rect {
6074    fn default() -> Self {
6075        unsafe { ::std::mem::zeroed() }
6076    }
6077}
6078#[repr(C)]
6079#[derive(Copy, Clone)]
6080pub struct nk_command_rect_filled {
6081    pub header: nk_command,
6082    pub rounding: ::std::os::raw::c_ushort,
6083    pub x: ::std::os::raw::c_short,
6084    pub y: ::std::os::raw::c_short,
6085    pub w: ::std::os::raw::c_ushort,
6086    pub h: ::std::os::raw::c_ushort,
6087    pub color: nk_color,
6088}
6089#[test]
6090fn bindgen_test_layout_nk_command_rect_filled() {
6091    assert_eq!(
6092        ::std::mem::size_of::<nk_command_rect_filled>(),
6093        40usize,
6094        concat!("Size of: ", stringify!(nk_command_rect_filled))
6095    );
6096    assert_eq!(
6097        ::std::mem::align_of::<nk_command_rect_filled>(),
6098        8usize,
6099        concat!("Alignment of ", stringify!(nk_command_rect_filled))
6100    );
6101    assert_eq!(
6102        unsafe { &(*(::std::ptr::null::<nk_command_rect_filled>())).header as *const _ as usize },
6103        0usize,
6104        concat!(
6105            "Offset of field: ",
6106            stringify!(nk_command_rect_filled),
6107            "::",
6108            stringify!(header)
6109        )
6110    );
6111    assert_eq!(
6112        unsafe { &(*(::std::ptr::null::<nk_command_rect_filled>())).rounding as *const _ as usize },
6113        24usize,
6114        concat!(
6115            "Offset of field: ",
6116            stringify!(nk_command_rect_filled),
6117            "::",
6118            stringify!(rounding)
6119        )
6120    );
6121    assert_eq!(
6122        unsafe { &(*(::std::ptr::null::<nk_command_rect_filled>())).x as *const _ as usize },
6123        26usize,
6124        concat!(
6125            "Offset of field: ",
6126            stringify!(nk_command_rect_filled),
6127            "::",
6128            stringify!(x)
6129        )
6130    );
6131    assert_eq!(
6132        unsafe { &(*(::std::ptr::null::<nk_command_rect_filled>())).y as *const _ as usize },
6133        28usize,
6134        concat!(
6135            "Offset of field: ",
6136            stringify!(nk_command_rect_filled),
6137            "::",
6138            stringify!(y)
6139        )
6140    );
6141    assert_eq!(
6142        unsafe { &(*(::std::ptr::null::<nk_command_rect_filled>())).w as *const _ as usize },
6143        30usize,
6144        concat!(
6145            "Offset of field: ",
6146            stringify!(nk_command_rect_filled),
6147            "::",
6148            stringify!(w)
6149        )
6150    );
6151    assert_eq!(
6152        unsafe { &(*(::std::ptr::null::<nk_command_rect_filled>())).h as *const _ as usize },
6153        32usize,
6154        concat!(
6155            "Offset of field: ",
6156            stringify!(nk_command_rect_filled),
6157            "::",
6158            stringify!(h)
6159        )
6160    );
6161    assert_eq!(
6162        unsafe { &(*(::std::ptr::null::<nk_command_rect_filled>())).color as *const _ as usize },
6163        34usize,
6164        concat!(
6165            "Offset of field: ",
6166            stringify!(nk_command_rect_filled),
6167            "::",
6168            stringify!(color)
6169        )
6170    );
6171}
6172impl Default for nk_command_rect_filled {
6173    fn default() -> Self {
6174        unsafe { ::std::mem::zeroed() }
6175    }
6176}
6177#[repr(C)]
6178#[derive(Copy, Clone)]
6179pub struct nk_command_rect_multi_color {
6180    pub header: nk_command,
6181    pub x: ::std::os::raw::c_short,
6182    pub y: ::std::os::raw::c_short,
6183    pub w: ::std::os::raw::c_ushort,
6184    pub h: ::std::os::raw::c_ushort,
6185    pub left: nk_color,
6186    pub top: nk_color,
6187    pub bottom: nk_color,
6188    pub right: nk_color,
6189}
6190#[test]
6191fn bindgen_test_layout_nk_command_rect_multi_color() {
6192    assert_eq!(
6193        ::std::mem::size_of::<nk_command_rect_multi_color>(),
6194        48usize,
6195        concat!("Size of: ", stringify!(nk_command_rect_multi_color))
6196    );
6197    assert_eq!(
6198        ::std::mem::align_of::<nk_command_rect_multi_color>(),
6199        8usize,
6200        concat!("Alignment of ", stringify!(nk_command_rect_multi_color))
6201    );
6202    assert_eq!(
6203        unsafe {
6204            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).header as *const _ as usize
6205        },
6206        0usize,
6207        concat!(
6208            "Offset of field: ",
6209            stringify!(nk_command_rect_multi_color),
6210            "::",
6211            stringify!(header)
6212        )
6213    );
6214    assert_eq!(
6215        unsafe { &(*(::std::ptr::null::<nk_command_rect_multi_color>())).x as *const _ as usize },
6216        24usize,
6217        concat!(
6218            "Offset of field: ",
6219            stringify!(nk_command_rect_multi_color),
6220            "::",
6221            stringify!(x)
6222        )
6223    );
6224    assert_eq!(
6225        unsafe { &(*(::std::ptr::null::<nk_command_rect_multi_color>())).y as *const _ as usize },
6226        26usize,
6227        concat!(
6228            "Offset of field: ",
6229            stringify!(nk_command_rect_multi_color),
6230            "::",
6231            stringify!(y)
6232        )
6233    );
6234    assert_eq!(
6235        unsafe { &(*(::std::ptr::null::<nk_command_rect_multi_color>())).w as *const _ as usize },
6236        28usize,
6237        concat!(
6238            "Offset of field: ",
6239            stringify!(nk_command_rect_multi_color),
6240            "::",
6241            stringify!(w)
6242        )
6243    );
6244    assert_eq!(
6245        unsafe { &(*(::std::ptr::null::<nk_command_rect_multi_color>())).h as *const _ as usize },
6246        30usize,
6247        concat!(
6248            "Offset of field: ",
6249            stringify!(nk_command_rect_multi_color),
6250            "::",
6251            stringify!(h)
6252        )
6253    );
6254    assert_eq!(
6255        unsafe {
6256            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).left as *const _ as usize
6257        },
6258        32usize,
6259        concat!(
6260            "Offset of field: ",
6261            stringify!(nk_command_rect_multi_color),
6262            "::",
6263            stringify!(left)
6264        )
6265    );
6266    assert_eq!(
6267        unsafe { &(*(::std::ptr::null::<nk_command_rect_multi_color>())).top as *const _ as usize },
6268        36usize,
6269        concat!(
6270            "Offset of field: ",
6271            stringify!(nk_command_rect_multi_color),
6272            "::",
6273            stringify!(top)
6274        )
6275    );
6276    assert_eq!(
6277        unsafe {
6278            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).bottom as *const _ as usize
6279        },
6280        40usize,
6281        concat!(
6282            "Offset of field: ",
6283            stringify!(nk_command_rect_multi_color),
6284            "::",
6285            stringify!(bottom)
6286        )
6287    );
6288    assert_eq!(
6289        unsafe {
6290            &(*(::std::ptr::null::<nk_command_rect_multi_color>())).right as *const _ as usize
6291        },
6292        44usize,
6293        concat!(
6294            "Offset of field: ",
6295            stringify!(nk_command_rect_multi_color),
6296            "::",
6297            stringify!(right)
6298        )
6299    );
6300}
6301impl Default for nk_command_rect_multi_color {
6302    fn default() -> Self {
6303        unsafe { ::std::mem::zeroed() }
6304    }
6305}
6306#[repr(C)]
6307#[derive(Copy, Clone)]
6308pub struct nk_command_triangle {
6309    pub header: nk_command,
6310    pub line_thickness: ::std::os::raw::c_ushort,
6311    pub a: nk_vec2i,
6312    pub b: nk_vec2i,
6313    pub c: nk_vec2i,
6314    pub color: nk_color,
6315}
6316#[test]
6317fn bindgen_test_layout_nk_command_triangle() {
6318    assert_eq!(
6319        ::std::mem::size_of::<nk_command_triangle>(),
6320        48usize,
6321        concat!("Size of: ", stringify!(nk_command_triangle))
6322    );
6323    assert_eq!(
6324        ::std::mem::align_of::<nk_command_triangle>(),
6325        8usize,
6326        concat!("Alignment of ", stringify!(nk_command_triangle))
6327    );
6328    assert_eq!(
6329        unsafe { &(*(::std::ptr::null::<nk_command_triangle>())).header as *const _ as usize },
6330        0usize,
6331        concat!(
6332            "Offset of field: ",
6333            stringify!(nk_command_triangle),
6334            "::",
6335            stringify!(header)
6336        )
6337    );
6338    assert_eq!(
6339        unsafe {
6340            &(*(::std::ptr::null::<nk_command_triangle>())).line_thickness as *const _ as usize
6341        },
6342        24usize,
6343        concat!(
6344            "Offset of field: ",
6345            stringify!(nk_command_triangle),
6346            "::",
6347            stringify!(line_thickness)
6348        )
6349    );
6350    assert_eq!(
6351        unsafe { &(*(::std::ptr::null::<nk_command_triangle>())).a as *const _ as usize },
6352        26usize,
6353        concat!(
6354            "Offset of field: ",
6355            stringify!(nk_command_triangle),
6356            "::",
6357            stringify!(a)
6358        )
6359    );
6360    assert_eq!(
6361        unsafe { &(*(::std::ptr::null::<nk_command_triangle>())).b as *const _ as usize },
6362        30usize,
6363        concat!(
6364            "Offset of field: ",
6365            stringify!(nk_command_triangle),
6366            "::",
6367            stringify!(b)
6368        )
6369    );
6370    assert_eq!(
6371        unsafe { &(*(::std::ptr::null::<nk_command_triangle>())).c as *const _ as usize },
6372        34usize,
6373        concat!(
6374            "Offset of field: ",
6375            stringify!(nk_command_triangle),
6376            "::",
6377            stringify!(c)
6378        )
6379    );
6380    assert_eq!(
6381        unsafe { &(*(::std::ptr::null::<nk_command_triangle>())).color as *const _ as usize },
6382        38usize,
6383        concat!(
6384            "Offset of field: ",
6385            stringify!(nk_command_triangle),
6386            "::",
6387            stringify!(color)
6388        )
6389    );
6390}
6391impl Default for nk_command_triangle {
6392    fn default() -> Self {
6393        unsafe { ::std::mem::zeroed() }
6394    }
6395}
6396#[repr(C)]
6397#[derive(Copy, Clone)]
6398pub struct nk_command_triangle_filled {
6399    pub header: nk_command,
6400    pub a: nk_vec2i,
6401    pub b: nk_vec2i,
6402    pub c: nk_vec2i,
6403    pub color: nk_color,
6404}
6405#[test]
6406fn bindgen_test_layout_nk_command_triangle_filled() {
6407    assert_eq!(
6408        ::std::mem::size_of::<nk_command_triangle_filled>(),
6409        40usize,
6410        concat!("Size of: ", stringify!(nk_command_triangle_filled))
6411    );
6412    assert_eq!(
6413        ::std::mem::align_of::<nk_command_triangle_filled>(),
6414        8usize,
6415        concat!("Alignment of ", stringify!(nk_command_triangle_filled))
6416    );
6417    assert_eq!(
6418        unsafe {
6419            &(*(::std::ptr::null::<nk_command_triangle_filled>())).header as *const _ as usize
6420        },
6421        0usize,
6422        concat!(
6423            "Offset of field: ",
6424            stringify!(nk_command_triangle_filled),
6425            "::",
6426            stringify!(header)
6427        )
6428    );
6429    assert_eq!(
6430        unsafe { &(*(::std::ptr::null::<nk_command_triangle_filled>())).a as *const _ as usize },
6431        24usize,
6432        concat!(
6433            "Offset of field: ",
6434            stringify!(nk_command_triangle_filled),
6435            "::",
6436            stringify!(a)
6437        )
6438    );
6439    assert_eq!(
6440        unsafe { &(*(::std::ptr::null::<nk_command_triangle_filled>())).b as *const _ as usize },
6441        28usize,
6442        concat!(
6443            "Offset of field: ",
6444            stringify!(nk_command_triangle_filled),
6445            "::",
6446            stringify!(b)
6447        )
6448    );
6449    assert_eq!(
6450        unsafe { &(*(::std::ptr::null::<nk_command_triangle_filled>())).c as *const _ as usize },
6451        32usize,
6452        concat!(
6453            "Offset of field: ",
6454            stringify!(nk_command_triangle_filled),
6455            "::",
6456            stringify!(c)
6457        )
6458    );
6459    assert_eq!(
6460        unsafe {
6461            &(*(::std::ptr::null::<nk_command_triangle_filled>())).color as *const _ as usize
6462        },
6463        36usize,
6464        concat!(
6465            "Offset of field: ",
6466            stringify!(nk_command_triangle_filled),
6467            "::",
6468            stringify!(color)
6469        )
6470    );
6471}
6472impl Default for nk_command_triangle_filled {
6473    fn default() -> Self {
6474        unsafe { ::std::mem::zeroed() }
6475    }
6476}
6477#[repr(C)]
6478#[derive(Copy, Clone)]
6479pub struct nk_command_circle {
6480    pub header: nk_command,
6481    pub x: ::std::os::raw::c_short,
6482    pub y: ::std::os::raw::c_short,
6483    pub line_thickness: ::std::os::raw::c_ushort,
6484    pub w: ::std::os::raw::c_ushort,
6485    pub h: ::std::os::raw::c_ushort,
6486    pub color: nk_color,
6487}
6488#[test]
6489fn bindgen_test_layout_nk_command_circle() {
6490    assert_eq!(
6491        ::std::mem::size_of::<nk_command_circle>(),
6492        40usize,
6493        concat!("Size of: ", stringify!(nk_command_circle))
6494    );
6495    assert_eq!(
6496        ::std::mem::align_of::<nk_command_circle>(),
6497        8usize,
6498        concat!("Alignment of ", stringify!(nk_command_circle))
6499    );
6500    assert_eq!(
6501        unsafe { &(*(::std::ptr::null::<nk_command_circle>())).header as *const _ as usize },
6502        0usize,
6503        concat!(
6504            "Offset of field: ",
6505            stringify!(nk_command_circle),
6506            "::",
6507            stringify!(header)
6508        )
6509    );
6510    assert_eq!(
6511        unsafe { &(*(::std::ptr::null::<nk_command_circle>())).x as *const _ as usize },
6512        24usize,
6513        concat!(
6514            "Offset of field: ",
6515            stringify!(nk_command_circle),
6516            "::",
6517            stringify!(x)
6518        )
6519    );
6520    assert_eq!(
6521        unsafe { &(*(::std::ptr::null::<nk_command_circle>())).y as *const _ as usize },
6522        26usize,
6523        concat!(
6524            "Offset of field: ",
6525            stringify!(nk_command_circle),
6526            "::",
6527            stringify!(y)
6528        )
6529    );
6530    assert_eq!(
6531        unsafe {
6532            &(*(::std::ptr::null::<nk_command_circle>())).line_thickness as *const _ as usize
6533        },
6534        28usize,
6535        concat!(
6536            "Offset of field: ",
6537            stringify!(nk_command_circle),
6538            "::",
6539            stringify!(line_thickness)
6540        )
6541    );
6542    assert_eq!(
6543        unsafe { &(*(::std::ptr::null::<nk_command_circle>())).w as *const _ as usize },
6544        30usize,
6545        concat!(
6546            "Offset of field: ",
6547            stringify!(nk_command_circle),
6548            "::",
6549            stringify!(w)
6550        )
6551    );
6552    assert_eq!(
6553        unsafe { &(*(::std::ptr::null::<nk_command_circle>())).h as *const _ as usize },
6554        32usize,
6555        concat!(
6556            "Offset of field: ",
6557            stringify!(nk_command_circle),
6558            "::",
6559            stringify!(h)
6560        )
6561    );
6562    assert_eq!(
6563        unsafe { &(*(::std::ptr::null::<nk_command_circle>())).color as *const _ as usize },
6564        34usize,
6565        concat!(
6566            "Offset of field: ",
6567            stringify!(nk_command_circle),
6568            "::",
6569            stringify!(color)
6570        )
6571    );
6572}
6573impl Default for nk_command_circle {
6574    fn default() -> Self {
6575        unsafe { ::std::mem::zeroed() }
6576    }
6577}
6578#[repr(C)]
6579#[derive(Copy, Clone)]
6580pub struct nk_command_circle_filled {
6581    pub header: nk_command,
6582    pub x: ::std::os::raw::c_short,
6583    pub y: ::std::os::raw::c_short,
6584    pub w: ::std::os::raw::c_ushort,
6585    pub h: ::std::os::raw::c_ushort,
6586    pub color: nk_color,
6587}
6588#[test]
6589fn bindgen_test_layout_nk_command_circle_filled() {
6590    assert_eq!(
6591        ::std::mem::size_of::<nk_command_circle_filled>(),
6592        40usize,
6593        concat!("Size of: ", stringify!(nk_command_circle_filled))
6594    );
6595    assert_eq!(
6596        ::std::mem::align_of::<nk_command_circle_filled>(),
6597        8usize,
6598        concat!("Alignment of ", stringify!(nk_command_circle_filled))
6599    );
6600    assert_eq!(
6601        unsafe { &(*(::std::ptr::null::<nk_command_circle_filled>())).header as *const _ as usize },
6602        0usize,
6603        concat!(
6604            "Offset of field: ",
6605            stringify!(nk_command_circle_filled),
6606            "::",
6607            stringify!(header)
6608        )
6609    );
6610    assert_eq!(
6611        unsafe { &(*(::std::ptr::null::<nk_command_circle_filled>())).x as *const _ as usize },
6612        24usize,
6613        concat!(
6614            "Offset of field: ",
6615            stringify!(nk_command_circle_filled),
6616            "::",
6617            stringify!(x)
6618        )
6619    );
6620    assert_eq!(
6621        unsafe { &(*(::std::ptr::null::<nk_command_circle_filled>())).y as *const _ as usize },
6622        26usize,
6623        concat!(
6624            "Offset of field: ",
6625            stringify!(nk_command_circle_filled),
6626            "::",
6627            stringify!(y)
6628        )
6629    );
6630    assert_eq!(
6631        unsafe { &(*(::std::ptr::null::<nk_command_circle_filled>())).w as *const _ as usize },
6632        28usize,
6633        concat!(
6634            "Offset of field: ",
6635            stringify!(nk_command_circle_filled),
6636            "::",
6637            stringify!(w)
6638        )
6639    );
6640    assert_eq!(
6641        unsafe { &(*(::std::ptr::null::<nk_command_circle_filled>())).h as *const _ as usize },
6642        30usize,
6643        concat!(
6644            "Offset of field: ",
6645            stringify!(nk_command_circle_filled),
6646            "::",
6647            stringify!(h)
6648        )
6649    );
6650    assert_eq!(
6651        unsafe { &(*(::std::ptr::null::<nk_command_circle_filled>())).color as *const _ as usize },
6652        32usize,
6653        concat!(
6654            "Offset of field: ",
6655            stringify!(nk_command_circle_filled),
6656            "::",
6657            stringify!(color)
6658        )
6659    );
6660}
6661impl Default for nk_command_circle_filled {
6662    fn default() -> Self {
6663        unsafe { ::std::mem::zeroed() }
6664    }
6665}
6666#[repr(C)]
6667#[derive(Copy, Clone)]
6668pub struct nk_command_arc {
6669    pub header: nk_command,
6670    pub cx: ::std::os::raw::c_short,
6671    pub cy: ::std::os::raw::c_short,
6672    pub r: ::std::os::raw::c_ushort,
6673    pub line_thickness: ::std::os::raw::c_ushort,
6674    pub a: [f32; 2usize],
6675    pub color: nk_color,
6676}
6677#[test]
6678fn bindgen_test_layout_nk_command_arc() {
6679    assert_eq!(
6680        ::std::mem::size_of::<nk_command_arc>(),
6681        48usize,
6682        concat!("Size of: ", stringify!(nk_command_arc))
6683    );
6684    assert_eq!(
6685        ::std::mem::align_of::<nk_command_arc>(),
6686        8usize,
6687        concat!("Alignment of ", stringify!(nk_command_arc))
6688    );
6689    assert_eq!(
6690        unsafe { &(*(::std::ptr::null::<nk_command_arc>())).header as *const _ as usize },
6691        0usize,
6692        concat!(
6693            "Offset of field: ",
6694            stringify!(nk_command_arc),
6695            "::",
6696            stringify!(header)
6697        )
6698    );
6699    assert_eq!(
6700        unsafe { &(*(::std::ptr::null::<nk_command_arc>())).cx as *const _ as usize },
6701        24usize,
6702        concat!(
6703            "Offset of field: ",
6704            stringify!(nk_command_arc),
6705            "::",
6706            stringify!(cx)
6707        )
6708    );
6709    assert_eq!(
6710        unsafe { &(*(::std::ptr::null::<nk_command_arc>())).cy as *const _ as usize },
6711        26usize,
6712        concat!(
6713            "Offset of field: ",
6714            stringify!(nk_command_arc),
6715            "::",
6716            stringify!(cy)
6717        )
6718    );
6719    assert_eq!(
6720        unsafe { &(*(::std::ptr::null::<nk_command_arc>())).r as *const _ as usize },
6721        28usize,
6722        concat!(
6723            "Offset of field: ",
6724            stringify!(nk_command_arc),
6725            "::",
6726            stringify!(r)
6727        )
6728    );
6729    assert_eq!(
6730        unsafe { &(*(::std::ptr::null::<nk_command_arc>())).line_thickness as *const _ as usize },
6731        30usize,
6732        concat!(
6733            "Offset of field: ",
6734            stringify!(nk_command_arc),
6735            "::",
6736            stringify!(line_thickness)
6737        )
6738    );
6739    assert_eq!(
6740        unsafe { &(*(::std::ptr::null::<nk_command_arc>())).a as *const _ as usize },
6741        32usize,
6742        concat!(
6743            "Offset of field: ",
6744            stringify!(nk_command_arc),
6745            "::",
6746            stringify!(a)
6747        )
6748    );
6749    assert_eq!(
6750        unsafe { &(*(::std::ptr::null::<nk_command_arc>())).color as *const _ as usize },
6751        40usize,
6752        concat!(
6753            "Offset of field: ",
6754            stringify!(nk_command_arc),
6755            "::",
6756            stringify!(color)
6757        )
6758    );
6759}
6760impl Default for nk_command_arc {
6761    fn default() -> Self {
6762        unsafe { ::std::mem::zeroed() }
6763    }
6764}
6765#[repr(C)]
6766#[derive(Copy, Clone)]
6767pub struct nk_command_arc_filled {
6768    pub header: nk_command,
6769    pub cx: ::std::os::raw::c_short,
6770    pub cy: ::std::os::raw::c_short,
6771    pub r: ::std::os::raw::c_ushort,
6772    pub a: [f32; 2usize],
6773    pub color: nk_color,
6774}
6775#[test]
6776fn bindgen_test_layout_nk_command_arc_filled() {
6777    assert_eq!(
6778        ::std::mem::size_of::<nk_command_arc_filled>(),
6779        48usize,
6780        concat!("Size of: ", stringify!(nk_command_arc_filled))
6781    );
6782    assert_eq!(
6783        ::std::mem::align_of::<nk_command_arc_filled>(),
6784        8usize,
6785        concat!("Alignment of ", stringify!(nk_command_arc_filled))
6786    );
6787    assert_eq!(
6788        unsafe { &(*(::std::ptr::null::<nk_command_arc_filled>())).header as *const _ as usize },
6789        0usize,
6790        concat!(
6791            "Offset of field: ",
6792            stringify!(nk_command_arc_filled),
6793            "::",
6794            stringify!(header)
6795        )
6796    );
6797    assert_eq!(
6798        unsafe { &(*(::std::ptr::null::<nk_command_arc_filled>())).cx as *const _ as usize },
6799        24usize,
6800        concat!(
6801            "Offset of field: ",
6802            stringify!(nk_command_arc_filled),
6803            "::",
6804            stringify!(cx)
6805        )
6806    );
6807    assert_eq!(
6808        unsafe { &(*(::std::ptr::null::<nk_command_arc_filled>())).cy as *const _ as usize },
6809        26usize,
6810        concat!(
6811            "Offset of field: ",
6812            stringify!(nk_command_arc_filled),
6813            "::",
6814            stringify!(cy)
6815        )
6816    );
6817    assert_eq!(
6818        unsafe { &(*(::std::ptr::null::<nk_command_arc_filled>())).r as *const _ as usize },
6819        28usize,
6820        concat!(
6821            "Offset of field: ",
6822            stringify!(nk_command_arc_filled),
6823            "::",
6824            stringify!(r)
6825        )
6826    );
6827    assert_eq!(
6828        unsafe { &(*(::std::ptr::null::<nk_command_arc_filled>())).a as *const _ as usize },
6829        32usize,
6830        concat!(
6831            "Offset of field: ",
6832            stringify!(nk_command_arc_filled),
6833            "::",
6834            stringify!(a)
6835        )
6836    );
6837    assert_eq!(
6838        unsafe { &(*(::std::ptr::null::<nk_command_arc_filled>())).color as *const _ as usize },
6839        40usize,
6840        concat!(
6841            "Offset of field: ",
6842            stringify!(nk_command_arc_filled),
6843            "::",
6844            stringify!(color)
6845        )
6846    );
6847}
6848impl Default for nk_command_arc_filled {
6849    fn default() -> Self {
6850        unsafe { ::std::mem::zeroed() }
6851    }
6852}
6853#[repr(C)]
6854#[derive(Copy, Clone)]
6855pub struct nk_command_polygon {
6856    pub header: nk_command,
6857    pub color: nk_color,
6858    pub line_thickness: ::std::os::raw::c_ushort,
6859    pub point_count: ::std::os::raw::c_ushort,
6860    pub points: [nk_vec2i; 1usize],
6861}
6862#[test]
6863fn bindgen_test_layout_nk_command_polygon() {
6864    assert_eq!(
6865        ::std::mem::size_of::<nk_command_polygon>(),
6866        40usize,
6867        concat!("Size of: ", stringify!(nk_command_polygon))
6868    );
6869    assert_eq!(
6870        ::std::mem::align_of::<nk_command_polygon>(),
6871        8usize,
6872        concat!("Alignment of ", stringify!(nk_command_polygon))
6873    );
6874    assert_eq!(
6875        unsafe { &(*(::std::ptr::null::<nk_command_polygon>())).header as *const _ as usize },
6876        0usize,
6877        concat!(
6878            "Offset of field: ",
6879            stringify!(nk_command_polygon),
6880            "::",
6881            stringify!(header)
6882        )
6883    );
6884    assert_eq!(
6885        unsafe { &(*(::std::ptr::null::<nk_command_polygon>())).color as *const _ as usize },
6886        24usize,
6887        concat!(
6888            "Offset of field: ",
6889            stringify!(nk_command_polygon),
6890            "::",
6891            stringify!(color)
6892        )
6893    );
6894    assert_eq!(
6895        unsafe {
6896            &(*(::std::ptr::null::<nk_command_polygon>())).line_thickness as *const _ as usize
6897        },
6898        28usize,
6899        concat!(
6900            "Offset of field: ",
6901            stringify!(nk_command_polygon),
6902            "::",
6903            stringify!(line_thickness)
6904        )
6905    );
6906    assert_eq!(
6907        unsafe { &(*(::std::ptr::null::<nk_command_polygon>())).point_count as *const _ as usize },
6908        30usize,
6909        concat!(
6910            "Offset of field: ",
6911            stringify!(nk_command_polygon),
6912            "::",
6913            stringify!(point_count)
6914        )
6915    );
6916    assert_eq!(
6917        unsafe { &(*(::std::ptr::null::<nk_command_polygon>())).points as *const _ as usize },
6918        32usize,
6919        concat!(
6920            "Offset of field: ",
6921            stringify!(nk_command_polygon),
6922            "::",
6923            stringify!(points)
6924        )
6925    );
6926}
6927impl Default for nk_command_polygon {
6928    fn default() -> Self {
6929        unsafe { ::std::mem::zeroed() }
6930    }
6931}
6932#[repr(C)]
6933#[derive(Copy, Clone)]
6934pub struct nk_command_polygon_filled {
6935    pub header: nk_command,
6936    pub color: nk_color,
6937    pub point_count: ::std::os::raw::c_ushort,
6938    pub points: [nk_vec2i; 1usize],
6939}
6940#[test]
6941fn bindgen_test_layout_nk_command_polygon_filled() {
6942    assert_eq!(
6943        ::std::mem::size_of::<nk_command_polygon_filled>(),
6944        40usize,
6945        concat!("Size of: ", stringify!(nk_command_polygon_filled))
6946    );
6947    assert_eq!(
6948        ::std::mem::align_of::<nk_command_polygon_filled>(),
6949        8usize,
6950        concat!("Alignment of ", stringify!(nk_command_polygon_filled))
6951    );
6952    assert_eq!(
6953        unsafe {
6954            &(*(::std::ptr::null::<nk_command_polygon_filled>())).header as *const _ as usize
6955        },
6956        0usize,
6957        concat!(
6958            "Offset of field: ",
6959            stringify!(nk_command_polygon_filled),
6960            "::",
6961            stringify!(header)
6962        )
6963    );
6964    assert_eq!(
6965        unsafe { &(*(::std::ptr::null::<nk_command_polygon_filled>())).color as *const _ as usize },
6966        24usize,
6967        concat!(
6968            "Offset of field: ",
6969            stringify!(nk_command_polygon_filled),
6970            "::",
6971            stringify!(color)
6972        )
6973    );
6974    assert_eq!(
6975        unsafe {
6976            &(*(::std::ptr::null::<nk_command_polygon_filled>())).point_count as *const _ as usize
6977        },
6978        28usize,
6979        concat!(
6980            "Offset of field: ",
6981            stringify!(nk_command_polygon_filled),
6982            "::",
6983            stringify!(point_count)
6984        )
6985    );
6986    assert_eq!(
6987        unsafe {
6988            &(*(::std::ptr::null::<nk_command_polygon_filled>())).points as *const _ as usize
6989        },
6990        30usize,
6991        concat!(
6992            "Offset of field: ",
6993            stringify!(nk_command_polygon_filled),
6994            "::",
6995            stringify!(points)
6996        )
6997    );
6998}
6999impl Default for nk_command_polygon_filled {
7000    fn default() -> Self {
7001        unsafe { ::std::mem::zeroed() }
7002    }
7003}
7004#[repr(C)]
7005#[derive(Copy, Clone)]
7006pub struct nk_command_polyline {
7007    pub header: nk_command,
7008    pub color: nk_color,
7009    pub line_thickness: ::std::os::raw::c_ushort,
7010    pub point_count: ::std::os::raw::c_ushort,
7011    pub points: [nk_vec2i; 1usize],
7012}
7013#[test]
7014fn bindgen_test_layout_nk_command_polyline() {
7015    assert_eq!(
7016        ::std::mem::size_of::<nk_command_polyline>(),
7017        40usize,
7018        concat!("Size of: ", stringify!(nk_command_polyline))
7019    );
7020    assert_eq!(
7021        ::std::mem::align_of::<nk_command_polyline>(),
7022        8usize,
7023        concat!("Alignment of ", stringify!(nk_command_polyline))
7024    );
7025    assert_eq!(
7026        unsafe { &(*(::std::ptr::null::<nk_command_polyline>())).header as *const _ as usize },
7027        0usize,
7028        concat!(
7029            "Offset of field: ",
7030            stringify!(nk_command_polyline),
7031            "::",
7032            stringify!(header)
7033        )
7034    );
7035    assert_eq!(
7036        unsafe { &(*(::std::ptr::null::<nk_command_polyline>())).color as *const _ as usize },
7037        24usize,
7038        concat!(
7039            "Offset of field: ",
7040            stringify!(nk_command_polyline),
7041            "::",
7042            stringify!(color)
7043        )
7044    );
7045    assert_eq!(
7046        unsafe {
7047            &(*(::std::ptr::null::<nk_command_polyline>())).line_thickness as *const _ as usize
7048        },
7049        28usize,
7050        concat!(
7051            "Offset of field: ",
7052            stringify!(nk_command_polyline),
7053            "::",
7054            stringify!(line_thickness)
7055        )
7056    );
7057    assert_eq!(
7058        unsafe { &(*(::std::ptr::null::<nk_command_polyline>())).point_count as *const _ as usize },
7059        30usize,
7060        concat!(
7061            "Offset of field: ",
7062            stringify!(nk_command_polyline),
7063            "::",
7064            stringify!(point_count)
7065        )
7066    );
7067    assert_eq!(
7068        unsafe { &(*(::std::ptr::null::<nk_command_polyline>())).points as *const _ as usize },
7069        32usize,
7070        concat!(
7071            "Offset of field: ",
7072            stringify!(nk_command_polyline),
7073            "::",
7074            stringify!(points)
7075        )
7076    );
7077}
7078impl Default for nk_command_polyline {
7079    fn default() -> Self {
7080        unsafe { ::std::mem::zeroed() }
7081    }
7082}
7083#[repr(C)]
7084#[derive(Copy, Clone)]
7085pub struct nk_command_image {
7086    pub header: nk_command,
7087    pub x: ::std::os::raw::c_short,
7088    pub y: ::std::os::raw::c_short,
7089    pub w: ::std::os::raw::c_ushort,
7090    pub h: ::std::os::raw::c_ushort,
7091    pub img: nk_image,
7092    pub col: nk_color,
7093}
7094#[test]
7095fn bindgen_test_layout_nk_command_image() {
7096    assert_eq!(
7097        ::std::mem::size_of::<nk_command_image>(),
7098        64usize,
7099        concat!("Size of: ", stringify!(nk_command_image))
7100    );
7101    assert_eq!(
7102        ::std::mem::align_of::<nk_command_image>(),
7103        8usize,
7104        concat!("Alignment of ", stringify!(nk_command_image))
7105    );
7106    assert_eq!(
7107        unsafe { &(*(::std::ptr::null::<nk_command_image>())).header as *const _ as usize },
7108        0usize,
7109        concat!(
7110            "Offset of field: ",
7111            stringify!(nk_command_image),
7112            "::",
7113            stringify!(header)
7114        )
7115    );
7116    assert_eq!(
7117        unsafe { &(*(::std::ptr::null::<nk_command_image>())).x as *const _ as usize },
7118        24usize,
7119        concat!(
7120            "Offset of field: ",
7121            stringify!(nk_command_image),
7122            "::",
7123            stringify!(x)
7124        )
7125    );
7126    assert_eq!(
7127        unsafe { &(*(::std::ptr::null::<nk_command_image>())).y as *const _ as usize },
7128        26usize,
7129        concat!(
7130            "Offset of field: ",
7131            stringify!(nk_command_image),
7132            "::",
7133            stringify!(y)
7134        )
7135    );
7136    assert_eq!(
7137        unsafe { &(*(::std::ptr::null::<nk_command_image>())).w as *const _ as usize },
7138        28usize,
7139        concat!(
7140            "Offset of field: ",
7141            stringify!(nk_command_image),
7142            "::",
7143            stringify!(w)
7144        )
7145    );
7146    assert_eq!(
7147        unsafe { &(*(::std::ptr::null::<nk_command_image>())).h as *const _ as usize },
7148        30usize,
7149        concat!(
7150            "Offset of field: ",
7151            stringify!(nk_command_image),
7152            "::",
7153            stringify!(h)
7154        )
7155    );
7156    assert_eq!(
7157        unsafe { &(*(::std::ptr::null::<nk_command_image>())).img as *const _ as usize },
7158        32usize,
7159        concat!(
7160            "Offset of field: ",
7161            stringify!(nk_command_image),
7162            "::",
7163            stringify!(img)
7164        )
7165    );
7166    assert_eq!(
7167        unsafe { &(*(::std::ptr::null::<nk_command_image>())).col as *const _ as usize },
7168        56usize,
7169        concat!(
7170            "Offset of field: ",
7171            stringify!(nk_command_image),
7172            "::",
7173            stringify!(col)
7174        )
7175    );
7176}
7177impl Default for nk_command_image {
7178    fn default() -> Self {
7179        unsafe { ::std::mem::zeroed() }
7180    }
7181}
7182pub type nk_command_custom_callback = ::std::option::Option<
7183    unsafe extern "C" fn(
7184        canvas: *mut ::std::os::raw::c_void,
7185        x: ::std::os::raw::c_short,
7186        y: ::std::os::raw::c_short,
7187        w: ::std::os::raw::c_ushort,
7188        h: ::std::os::raw::c_ushort,
7189        callback_data: nk_handle,
7190    ),
7191>;
7192#[repr(C)]
7193#[derive(Copy, Clone)]
7194pub struct nk_command_custom {
7195    pub header: nk_command,
7196    pub x: ::std::os::raw::c_short,
7197    pub y: ::std::os::raw::c_short,
7198    pub w: ::std::os::raw::c_ushort,
7199    pub h: ::std::os::raw::c_ushort,
7200    pub callback_data: nk_handle,
7201    pub callback: nk_command_custom_callback,
7202}
7203#[test]
7204fn bindgen_test_layout_nk_command_custom() {
7205    assert_eq!(
7206        ::std::mem::size_of::<nk_command_custom>(),
7207        48usize,
7208        concat!("Size of: ", stringify!(nk_command_custom))
7209    );
7210    assert_eq!(
7211        ::std::mem::align_of::<nk_command_custom>(),
7212        8usize,
7213        concat!("Alignment of ", stringify!(nk_command_custom))
7214    );
7215    assert_eq!(
7216        unsafe { &(*(::std::ptr::null::<nk_command_custom>())).header as *const _ as usize },
7217        0usize,
7218        concat!(
7219            "Offset of field: ",
7220            stringify!(nk_command_custom),
7221            "::",
7222            stringify!(header)
7223        )
7224    );
7225    assert_eq!(
7226        unsafe { &(*(::std::ptr::null::<nk_command_custom>())).x as *const _ as usize },
7227        24usize,
7228        concat!(
7229            "Offset of field: ",
7230            stringify!(nk_command_custom),
7231            "::",
7232            stringify!(x)
7233        )
7234    );
7235    assert_eq!(
7236        unsafe { &(*(::std::ptr::null::<nk_command_custom>())).y as *const _ as usize },
7237        26usize,
7238        concat!(
7239            "Offset of field: ",
7240            stringify!(nk_command_custom),
7241            "::",
7242            stringify!(y)
7243        )
7244    );
7245    assert_eq!(
7246        unsafe { &(*(::std::ptr::null::<nk_command_custom>())).w as *const _ as usize },
7247        28usize,
7248        concat!(
7249            "Offset of field: ",
7250            stringify!(nk_command_custom),
7251            "::",
7252            stringify!(w)
7253        )
7254    );
7255    assert_eq!(
7256        unsafe { &(*(::std::ptr::null::<nk_command_custom>())).h as *const _ as usize },
7257        30usize,
7258        concat!(
7259            "Offset of field: ",
7260            stringify!(nk_command_custom),
7261            "::",
7262            stringify!(h)
7263        )
7264    );
7265    assert_eq!(
7266        unsafe { &(*(::std::ptr::null::<nk_command_custom>())).callback_data as *const _ as usize },
7267        32usize,
7268        concat!(
7269            "Offset of field: ",
7270            stringify!(nk_command_custom),
7271            "::",
7272            stringify!(callback_data)
7273        )
7274    );
7275    assert_eq!(
7276        unsafe { &(*(::std::ptr::null::<nk_command_custom>())).callback as *const _ as usize },
7277        40usize,
7278        concat!(
7279            "Offset of field: ",
7280            stringify!(nk_command_custom),
7281            "::",
7282            stringify!(callback)
7283        )
7284    );
7285}
7286impl Default for nk_command_custom {
7287    fn default() -> Self {
7288        unsafe { ::std::mem::zeroed() }
7289    }
7290}
7291#[repr(C)]
7292#[derive(Copy, Clone)]
7293pub struct nk_command_text {
7294    pub header: nk_command,
7295    pub font: *const nk_user_font,
7296    pub background: nk_color,
7297    pub foreground: nk_color,
7298    pub x: ::std::os::raw::c_short,
7299    pub y: ::std::os::raw::c_short,
7300    pub w: ::std::os::raw::c_ushort,
7301    pub h: ::std::os::raw::c_ushort,
7302    pub height: f32,
7303    pub length: ::std::os::raw::c_int,
7304    pub string: [::std::os::raw::c_char; 1usize],
7305}
7306#[test]
7307fn bindgen_test_layout_nk_command_text() {
7308    assert_eq!(
7309        ::std::mem::size_of::<nk_command_text>(),
7310        64usize,
7311        concat!("Size of: ", stringify!(nk_command_text))
7312    );
7313    assert_eq!(
7314        ::std::mem::align_of::<nk_command_text>(),
7315        8usize,
7316        concat!("Alignment of ", stringify!(nk_command_text))
7317    );
7318    assert_eq!(
7319        unsafe { &(*(::std::ptr::null::<nk_command_text>())).header as *const _ as usize },
7320        0usize,
7321        concat!(
7322            "Offset of field: ",
7323            stringify!(nk_command_text),
7324            "::",
7325            stringify!(header)
7326        )
7327    );
7328    assert_eq!(
7329        unsafe { &(*(::std::ptr::null::<nk_command_text>())).font as *const _ as usize },
7330        24usize,
7331        concat!(
7332            "Offset of field: ",
7333            stringify!(nk_command_text),
7334            "::",
7335            stringify!(font)
7336        )
7337    );
7338    assert_eq!(
7339        unsafe { &(*(::std::ptr::null::<nk_command_text>())).background as *const _ as usize },
7340        32usize,
7341        concat!(
7342            "Offset of field: ",
7343            stringify!(nk_command_text),
7344            "::",
7345            stringify!(background)
7346        )
7347    );
7348    assert_eq!(
7349        unsafe { &(*(::std::ptr::null::<nk_command_text>())).foreground as *const _ as usize },
7350        36usize,
7351        concat!(
7352            "Offset of field: ",
7353            stringify!(nk_command_text),
7354            "::",
7355            stringify!(foreground)
7356        )
7357    );
7358    assert_eq!(
7359        unsafe { &(*(::std::ptr::null::<nk_command_text>())).x as *const _ as usize },
7360        40usize,
7361        concat!(
7362            "Offset of field: ",
7363            stringify!(nk_command_text),
7364            "::",
7365            stringify!(x)
7366        )
7367    );
7368    assert_eq!(
7369        unsafe { &(*(::std::ptr::null::<nk_command_text>())).y as *const _ as usize },
7370        42usize,
7371        concat!(
7372            "Offset of field: ",
7373            stringify!(nk_command_text),
7374            "::",
7375            stringify!(y)
7376        )
7377    );
7378    assert_eq!(
7379        unsafe { &(*(::std::ptr::null::<nk_command_text>())).w as *const _ as usize },
7380        44usize,
7381        concat!(
7382            "Offset of field: ",
7383            stringify!(nk_command_text),
7384            "::",
7385            stringify!(w)
7386        )
7387    );
7388    assert_eq!(
7389        unsafe { &(*(::std::ptr::null::<nk_command_text>())).h as *const _ as usize },
7390        46usize,
7391        concat!(
7392            "Offset of field: ",
7393            stringify!(nk_command_text),
7394            "::",
7395            stringify!(h)
7396        )
7397    );
7398    assert_eq!(
7399        unsafe { &(*(::std::ptr::null::<nk_command_text>())).height as *const _ as usize },
7400        48usize,
7401        concat!(
7402            "Offset of field: ",
7403            stringify!(nk_command_text),
7404            "::",
7405            stringify!(height)
7406        )
7407    );
7408    assert_eq!(
7409        unsafe { &(*(::std::ptr::null::<nk_command_text>())).length as *const _ as usize },
7410        52usize,
7411        concat!(
7412            "Offset of field: ",
7413            stringify!(nk_command_text),
7414            "::",
7415            stringify!(length)
7416        )
7417    );
7418    assert_eq!(
7419        unsafe { &(*(::std::ptr::null::<nk_command_text>())).string as *const _ as usize },
7420        56usize,
7421        concat!(
7422            "Offset of field: ",
7423            stringify!(nk_command_text),
7424            "::",
7425            stringify!(string)
7426        )
7427    );
7428}
7429impl Default for nk_command_text {
7430    fn default() -> Self {
7431        unsafe { ::std::mem::zeroed() }
7432    }
7433}
7434pub const nk_command_clipping_NK_CLIPPING_OFF: nk_command_clipping = 0;
7435pub const nk_command_clipping_NK_CLIPPING_ON: nk_command_clipping = 1;
7436pub type nk_command_clipping = u32;
7437#[repr(C)]
7438#[derive(Copy, Clone)]
7439pub struct nk_command_buffer {
7440    pub base: *mut nk_buffer,
7441    pub clip: nk_rect,
7442    pub use_clipping: ::std::os::raw::c_int,
7443    pub userdata: nk_handle,
7444    pub begin: nk_size,
7445    pub end: nk_size,
7446    pub last: nk_size,
7447}
7448#[test]
7449fn bindgen_test_layout_nk_command_buffer() {
7450    assert_eq!(
7451        ::std::mem::size_of::<nk_command_buffer>(),
7452        64usize,
7453        concat!("Size of: ", stringify!(nk_command_buffer))
7454    );
7455    assert_eq!(
7456        ::std::mem::align_of::<nk_command_buffer>(),
7457        8usize,
7458        concat!("Alignment of ", stringify!(nk_command_buffer))
7459    );
7460    assert_eq!(
7461        unsafe { &(*(::std::ptr::null::<nk_command_buffer>())).base as *const _ as usize },
7462        0usize,
7463        concat!(
7464            "Offset of field: ",
7465            stringify!(nk_command_buffer),
7466            "::",
7467            stringify!(base)
7468        )
7469    );
7470    assert_eq!(
7471        unsafe { &(*(::std::ptr::null::<nk_command_buffer>())).clip as *const _ as usize },
7472        8usize,
7473        concat!(
7474            "Offset of field: ",
7475            stringify!(nk_command_buffer),
7476            "::",
7477            stringify!(clip)
7478        )
7479    );
7480    assert_eq!(
7481        unsafe { &(*(::std::ptr::null::<nk_command_buffer>())).use_clipping as *const _ as usize },
7482        24usize,
7483        concat!(
7484            "Offset of field: ",
7485            stringify!(nk_command_buffer),
7486            "::",
7487            stringify!(use_clipping)
7488        )
7489    );
7490    assert_eq!(
7491        unsafe { &(*(::std::ptr::null::<nk_command_buffer>())).userdata as *const _ as usize },
7492        32usize,
7493        concat!(
7494            "Offset of field: ",
7495            stringify!(nk_command_buffer),
7496            "::",
7497            stringify!(userdata)
7498        )
7499    );
7500    assert_eq!(
7501        unsafe { &(*(::std::ptr::null::<nk_command_buffer>())).begin as *const _ as usize },
7502        40usize,
7503        concat!(
7504            "Offset of field: ",
7505            stringify!(nk_command_buffer),
7506            "::",
7507            stringify!(begin)
7508        )
7509    );
7510    assert_eq!(
7511        unsafe { &(*(::std::ptr::null::<nk_command_buffer>())).end as *const _ as usize },
7512        48usize,
7513        concat!(
7514            "Offset of field: ",
7515            stringify!(nk_command_buffer),
7516            "::",
7517            stringify!(end)
7518        )
7519    );
7520    assert_eq!(
7521        unsafe { &(*(::std::ptr::null::<nk_command_buffer>())).last as *const _ as usize },
7522        56usize,
7523        concat!(
7524            "Offset of field: ",
7525            stringify!(nk_command_buffer),
7526            "::",
7527            stringify!(last)
7528        )
7529    );
7530}
7531impl Default for nk_command_buffer {
7532    fn default() -> Self {
7533        unsafe { ::std::mem::zeroed() }
7534    }
7535}
7536extern "C" {
7537    pub fn nk_stroke_line(
7538        b: *mut nk_command_buffer,
7539        x0: f32,
7540        y0: f32,
7541        x1: f32,
7542        y1: f32,
7543        line_thickness: f32,
7544        arg1: nk_color,
7545    );
7546}
7547extern "C" {
7548    pub fn nk_stroke_curve(
7549        arg1: *mut nk_command_buffer,
7550        arg2: f32,
7551        arg3: f32,
7552        arg4: f32,
7553        arg5: f32,
7554        arg6: f32,
7555        arg7: f32,
7556        arg8: f32,
7557        arg9: f32,
7558        line_thickness: f32,
7559        arg10: nk_color,
7560    );
7561}
7562extern "C" {
7563    pub fn nk_stroke_rect(
7564        arg1: *mut nk_command_buffer,
7565        arg2: nk_rect,
7566        rounding: f32,
7567        line_thickness: f32,
7568        arg3: nk_color,
7569    );
7570}
7571extern "C" {
7572    pub fn nk_stroke_circle(
7573        arg1: *mut nk_command_buffer,
7574        arg2: nk_rect,
7575        line_thickness: f32,
7576        arg3: nk_color,
7577    );
7578}
7579extern "C" {
7580    pub fn nk_stroke_arc(
7581        arg1: *mut nk_command_buffer,
7582        cx: f32,
7583        cy: f32,
7584        radius: f32,
7585        a_min: f32,
7586        a_max: f32,
7587        line_thickness: f32,
7588        arg2: nk_color,
7589    );
7590}
7591extern "C" {
7592    pub fn nk_stroke_triangle(
7593        arg1: *mut nk_command_buffer,
7594        arg2: f32,
7595        arg3: f32,
7596        arg4: f32,
7597        arg5: f32,
7598        arg6: f32,
7599        arg7: f32,
7600        line_thichness: f32,
7601        arg8: nk_color,
7602    );
7603}
7604extern "C" {
7605    pub fn nk_stroke_polyline(
7606        arg1: *mut nk_command_buffer,
7607        points: *mut f32,
7608        point_count: ::std::os::raw::c_int,
7609        line_thickness: f32,
7610        col: nk_color,
7611    );
7612}
7613extern "C" {
7614    pub fn nk_stroke_polygon(
7615        arg1: *mut nk_command_buffer,
7616        arg2: *mut f32,
7617        point_count: ::std::os::raw::c_int,
7618        line_thickness: f32,
7619        arg3: nk_color,
7620    );
7621}
7622extern "C" {
7623    pub fn nk_fill_rect(arg1: *mut nk_command_buffer, arg2: nk_rect, rounding: f32, arg3: nk_color);
7624}
7625extern "C" {
7626    pub fn nk_fill_rect_multi_color(
7627        arg1: *mut nk_command_buffer,
7628        arg2: nk_rect,
7629        left: nk_color,
7630        top: nk_color,
7631        right: nk_color,
7632        bottom: nk_color,
7633    );
7634}
7635extern "C" {
7636    pub fn nk_fill_circle(arg1: *mut nk_command_buffer, arg2: nk_rect, arg3: nk_color);
7637}
7638extern "C" {
7639    pub fn nk_fill_arc(
7640        arg1: *mut nk_command_buffer,
7641        cx: f32,
7642        cy: f32,
7643        radius: f32,
7644        a_min: f32,
7645        a_max: f32,
7646        arg2: nk_color,
7647    );
7648}
7649extern "C" {
7650    pub fn nk_fill_triangle(
7651        arg1: *mut nk_command_buffer,
7652        x0: f32,
7653        y0: f32,
7654        x1: f32,
7655        y1: f32,
7656        x2: f32,
7657        y2: f32,
7658        arg2: nk_color,
7659    );
7660}
7661extern "C" {
7662    pub fn nk_fill_polygon(
7663        arg1: *mut nk_command_buffer,
7664        arg2: *mut f32,
7665        point_count: ::std::os::raw::c_int,
7666        arg3: nk_color,
7667    );
7668}
7669extern "C" {
7670    pub fn nk_draw_image(
7671        arg1: *mut nk_command_buffer,
7672        arg2: nk_rect,
7673        arg3: *const nk_image,
7674        arg4: nk_color,
7675    );
7676}
7677extern "C" {
7678    pub fn nk_draw_text(
7679        arg1: *mut nk_command_buffer,
7680        arg2: nk_rect,
7681        text: *const ::std::os::raw::c_char,
7682        len: ::std::os::raw::c_int,
7683        arg3: *const nk_user_font,
7684        arg4: nk_color,
7685        arg5: nk_color,
7686    );
7687}
7688extern "C" {
7689    pub fn nk_push_scissor(arg1: *mut nk_command_buffer, arg2: nk_rect);
7690}
7691extern "C" {
7692    pub fn nk_push_custom(
7693        arg1: *mut nk_command_buffer,
7694        arg2: nk_rect,
7695        arg3: nk_command_custom_callback,
7696        usr: nk_handle,
7697    );
7698}
7699#[repr(C)]
7700#[derive(Debug, Default, Copy, Clone)]
7701pub struct nk_mouse_button {
7702    pub down: ::std::os::raw::c_int,
7703    pub clicked: ::std::os::raw::c_uint,
7704    pub clicked_pos: nk_vec2,
7705}
7706#[test]
7707fn bindgen_test_layout_nk_mouse_button() {
7708    assert_eq!(
7709        ::std::mem::size_of::<nk_mouse_button>(),
7710        16usize,
7711        concat!("Size of: ", stringify!(nk_mouse_button))
7712    );
7713    assert_eq!(
7714        ::std::mem::align_of::<nk_mouse_button>(),
7715        4usize,
7716        concat!("Alignment of ", stringify!(nk_mouse_button))
7717    );
7718    assert_eq!(
7719        unsafe { &(*(::std::ptr::null::<nk_mouse_button>())).down as *const _ as usize },
7720        0usize,
7721        concat!(
7722            "Offset of field: ",
7723            stringify!(nk_mouse_button),
7724            "::",
7725            stringify!(down)
7726        )
7727    );
7728    assert_eq!(
7729        unsafe { &(*(::std::ptr::null::<nk_mouse_button>())).clicked as *const _ as usize },
7730        4usize,
7731        concat!(
7732            "Offset of field: ",
7733            stringify!(nk_mouse_button),
7734            "::",
7735            stringify!(clicked)
7736        )
7737    );
7738    assert_eq!(
7739        unsafe { &(*(::std::ptr::null::<nk_mouse_button>())).clicked_pos as *const _ as usize },
7740        8usize,
7741        concat!(
7742            "Offset of field: ",
7743            stringify!(nk_mouse_button),
7744            "::",
7745            stringify!(clicked_pos)
7746        )
7747    );
7748}
7749#[repr(C)]
7750#[derive(Debug, Default, Copy, Clone)]
7751pub struct nk_mouse {
7752    pub buttons: [nk_mouse_button; 4usize],
7753    pub pos: nk_vec2,
7754    pub prev: nk_vec2,
7755    pub delta: nk_vec2,
7756    pub scroll_delta: nk_vec2,
7757    pub grab: ::std::os::raw::c_uchar,
7758    pub grabbed: ::std::os::raw::c_uchar,
7759    pub ungrab: ::std::os::raw::c_uchar,
7760}
7761#[test]
7762fn bindgen_test_layout_nk_mouse() {
7763    assert_eq!(
7764        ::std::mem::size_of::<nk_mouse>(),
7765        100usize,
7766        concat!("Size of: ", stringify!(nk_mouse))
7767    );
7768    assert_eq!(
7769        ::std::mem::align_of::<nk_mouse>(),
7770        4usize,
7771        concat!("Alignment of ", stringify!(nk_mouse))
7772    );
7773    assert_eq!(
7774        unsafe { &(*(::std::ptr::null::<nk_mouse>())).buttons as *const _ as usize },
7775        0usize,
7776        concat!(
7777            "Offset of field: ",
7778            stringify!(nk_mouse),
7779            "::",
7780            stringify!(buttons)
7781        )
7782    );
7783    assert_eq!(
7784        unsafe { &(*(::std::ptr::null::<nk_mouse>())).pos as *const _ as usize },
7785        64usize,
7786        concat!(
7787            "Offset of field: ",
7788            stringify!(nk_mouse),
7789            "::",
7790            stringify!(pos)
7791        )
7792    );
7793    assert_eq!(
7794        unsafe { &(*(::std::ptr::null::<nk_mouse>())).prev as *const _ as usize },
7795        72usize,
7796        concat!(
7797            "Offset of field: ",
7798            stringify!(nk_mouse),
7799            "::",
7800            stringify!(prev)
7801        )
7802    );
7803    assert_eq!(
7804        unsafe { &(*(::std::ptr::null::<nk_mouse>())).delta as *const _ as usize },
7805        80usize,
7806        concat!(
7807            "Offset of field: ",
7808            stringify!(nk_mouse),
7809            "::",
7810            stringify!(delta)
7811        )
7812    );
7813    assert_eq!(
7814        unsafe { &(*(::std::ptr::null::<nk_mouse>())).scroll_delta as *const _ as usize },
7815        88usize,
7816        concat!(
7817            "Offset of field: ",
7818            stringify!(nk_mouse),
7819            "::",
7820            stringify!(scroll_delta)
7821        )
7822    );
7823    assert_eq!(
7824        unsafe { &(*(::std::ptr::null::<nk_mouse>())).grab as *const _ as usize },
7825        96usize,
7826        concat!(
7827            "Offset of field: ",
7828            stringify!(nk_mouse),
7829            "::",
7830            stringify!(grab)
7831        )
7832    );
7833    assert_eq!(
7834        unsafe { &(*(::std::ptr::null::<nk_mouse>())).grabbed as *const _ as usize },
7835        97usize,
7836        concat!(
7837            "Offset of field: ",
7838            stringify!(nk_mouse),
7839            "::",
7840            stringify!(grabbed)
7841        )
7842    );
7843    assert_eq!(
7844        unsafe { &(*(::std::ptr::null::<nk_mouse>())).ungrab as *const _ as usize },
7845        98usize,
7846        concat!(
7847            "Offset of field: ",
7848            stringify!(nk_mouse),
7849            "::",
7850            stringify!(ungrab)
7851        )
7852    );
7853}
7854#[repr(C)]
7855#[derive(Debug, Default, Copy, Clone)]
7856pub struct nk_key {
7857    pub down: ::std::os::raw::c_int,
7858    pub clicked: ::std::os::raw::c_uint,
7859}
7860#[test]
7861fn bindgen_test_layout_nk_key() {
7862    assert_eq!(
7863        ::std::mem::size_of::<nk_key>(),
7864        8usize,
7865        concat!("Size of: ", stringify!(nk_key))
7866    );
7867    assert_eq!(
7868        ::std::mem::align_of::<nk_key>(),
7869        4usize,
7870        concat!("Alignment of ", stringify!(nk_key))
7871    );
7872    assert_eq!(
7873        unsafe { &(*(::std::ptr::null::<nk_key>())).down as *const _ as usize },
7874        0usize,
7875        concat!(
7876            "Offset of field: ",
7877            stringify!(nk_key),
7878            "::",
7879            stringify!(down)
7880        )
7881    );
7882    assert_eq!(
7883        unsafe { &(*(::std::ptr::null::<nk_key>())).clicked as *const _ as usize },
7884        4usize,
7885        concat!(
7886            "Offset of field: ",
7887            stringify!(nk_key),
7888            "::",
7889            stringify!(clicked)
7890        )
7891    );
7892}
7893#[repr(C)]
7894#[derive(Debug, Default, Copy, Clone)]
7895pub struct nk_keyboard {
7896    pub keys: [nk_key; 30usize],
7897    pub text: [::std::os::raw::c_char; 16usize],
7898    pub text_len: ::std::os::raw::c_int,
7899}
7900#[test]
7901fn bindgen_test_layout_nk_keyboard() {
7902    assert_eq!(
7903        ::std::mem::size_of::<nk_keyboard>(),
7904        260usize,
7905        concat!("Size of: ", stringify!(nk_keyboard))
7906    );
7907    assert_eq!(
7908        ::std::mem::align_of::<nk_keyboard>(),
7909        4usize,
7910        concat!("Alignment of ", stringify!(nk_keyboard))
7911    );
7912    assert_eq!(
7913        unsafe { &(*(::std::ptr::null::<nk_keyboard>())).keys as *const _ as usize },
7914        0usize,
7915        concat!(
7916            "Offset of field: ",
7917            stringify!(nk_keyboard),
7918            "::",
7919            stringify!(keys)
7920        )
7921    );
7922    assert_eq!(
7923        unsafe { &(*(::std::ptr::null::<nk_keyboard>())).text as *const _ as usize },
7924        240usize,
7925        concat!(
7926            "Offset of field: ",
7927            stringify!(nk_keyboard),
7928            "::",
7929            stringify!(text)
7930        )
7931    );
7932    assert_eq!(
7933        unsafe { &(*(::std::ptr::null::<nk_keyboard>())).text_len as *const _ as usize },
7934        256usize,
7935        concat!(
7936            "Offset of field: ",
7937            stringify!(nk_keyboard),
7938            "::",
7939            stringify!(text_len)
7940        )
7941    );
7942}
7943#[repr(C)]
7944#[derive(Debug, Default, Copy, Clone)]
7945pub struct nk_input {
7946    pub keyboard: nk_keyboard,
7947    pub mouse: nk_mouse,
7948}
7949#[test]
7950fn bindgen_test_layout_nk_input() {
7951    assert_eq!(
7952        ::std::mem::size_of::<nk_input>(),
7953        360usize,
7954        concat!("Size of: ", stringify!(nk_input))
7955    );
7956    assert_eq!(
7957        ::std::mem::align_of::<nk_input>(),
7958        4usize,
7959        concat!("Alignment of ", stringify!(nk_input))
7960    );
7961    assert_eq!(
7962        unsafe { &(*(::std::ptr::null::<nk_input>())).keyboard as *const _ as usize },
7963        0usize,
7964        concat!(
7965            "Offset of field: ",
7966            stringify!(nk_input),
7967            "::",
7968            stringify!(keyboard)
7969        )
7970    );
7971    assert_eq!(
7972        unsafe { &(*(::std::ptr::null::<nk_input>())).mouse as *const _ as usize },
7973        260usize,
7974        concat!(
7975            "Offset of field: ",
7976            stringify!(nk_input),
7977            "::",
7978            stringify!(mouse)
7979        )
7980    );
7981}
7982extern "C" {
7983    pub fn nk_input_has_mouse_click(
7984        arg1: *const nk_input,
7985        arg2: nk_buttons,
7986    ) -> ::std::os::raw::c_int;
7987}
7988extern "C" {
7989    pub fn nk_input_has_mouse_click_in_rect(
7990        arg1: *const nk_input,
7991        arg2: nk_buttons,
7992        arg3: nk_rect,
7993    ) -> ::std::os::raw::c_int;
7994}
7995extern "C" {
7996    pub fn nk_input_has_mouse_click_down_in_rect(
7997        arg1: *const nk_input,
7998        arg2: nk_buttons,
7999        arg3: nk_rect,
8000        down: ::std::os::raw::c_int,
8001    ) -> ::std::os::raw::c_int;
8002}
8003extern "C" {
8004    pub fn nk_input_is_mouse_click_in_rect(
8005        arg1: *const nk_input,
8006        arg2: nk_buttons,
8007        arg3: nk_rect,
8008    ) -> ::std::os::raw::c_int;
8009}
8010extern "C" {
8011    pub fn nk_input_is_mouse_click_down_in_rect(
8012        i: *const nk_input,
8013        id: nk_buttons,
8014        b: nk_rect,
8015        down: ::std::os::raw::c_int,
8016    ) -> ::std::os::raw::c_int;
8017}
8018extern "C" {
8019    pub fn nk_input_any_mouse_click_in_rect(
8020        arg1: *const nk_input,
8021        arg2: nk_rect,
8022    ) -> ::std::os::raw::c_int;
8023}
8024extern "C" {
8025    pub fn nk_input_is_mouse_prev_hovering_rect(
8026        arg1: *const nk_input,
8027        arg2: nk_rect,
8028    ) -> ::std::os::raw::c_int;
8029}
8030extern "C" {
8031    pub fn nk_input_is_mouse_hovering_rect(
8032        arg1: *const nk_input,
8033        arg2: nk_rect,
8034    ) -> ::std::os::raw::c_int;
8035}
8036extern "C" {
8037    pub fn nk_input_mouse_clicked(
8038        arg1: *const nk_input,
8039        arg2: nk_buttons,
8040        arg3: nk_rect,
8041    ) -> ::std::os::raw::c_int;
8042}
8043extern "C" {
8044    pub fn nk_input_is_mouse_down(arg1: *const nk_input, arg2: nk_buttons)
8045        -> ::std::os::raw::c_int;
8046}
8047extern "C" {
8048    pub fn nk_input_is_mouse_pressed(
8049        arg1: *const nk_input,
8050        arg2: nk_buttons,
8051    ) -> ::std::os::raw::c_int;
8052}
8053extern "C" {
8054    pub fn nk_input_is_mouse_released(
8055        arg1: *const nk_input,
8056        arg2: nk_buttons,
8057    ) -> ::std::os::raw::c_int;
8058}
8059extern "C" {
8060    pub fn nk_input_is_key_pressed(arg1: *const nk_input, arg2: nk_keys) -> ::std::os::raw::c_int;
8061}
8062extern "C" {
8063    pub fn nk_input_is_key_released(arg1: *const nk_input, arg2: nk_keys) -> ::std::os::raw::c_int;
8064}
8065extern "C" {
8066    pub fn nk_input_is_key_down(arg1: *const nk_input, arg2: nk_keys) -> ::std::os::raw::c_int;
8067}
8068pub type nk_draw_index = nk_ushort;
8069pub const nk_draw_list_stroke_NK_STROKE_OPEN: nk_draw_list_stroke = 0;
8070pub const nk_draw_list_stroke_NK_STROKE_CLOSED: nk_draw_list_stroke = 1;
8071pub type nk_draw_list_stroke = u32;
8072pub const nk_draw_vertex_layout_attribute_NK_VERTEX_POSITION: nk_draw_vertex_layout_attribute = 0;
8073pub const nk_draw_vertex_layout_attribute_NK_VERTEX_COLOR: nk_draw_vertex_layout_attribute = 1;
8074pub const nk_draw_vertex_layout_attribute_NK_VERTEX_TEXCOORD: nk_draw_vertex_layout_attribute = 2;
8075pub const nk_draw_vertex_layout_attribute_NK_VERTEX_ATTRIBUTE_COUNT:
8076    nk_draw_vertex_layout_attribute = 3;
8077pub type nk_draw_vertex_layout_attribute = u32;
8078pub const nk_draw_vertex_layout_format_NK_FORMAT_SCHAR: nk_draw_vertex_layout_format = 0;
8079pub const nk_draw_vertex_layout_format_NK_FORMAT_SSHORT: nk_draw_vertex_layout_format = 1;
8080pub const nk_draw_vertex_layout_format_NK_FORMAT_SINT: nk_draw_vertex_layout_format = 2;
8081pub const nk_draw_vertex_layout_format_NK_FORMAT_UCHAR: nk_draw_vertex_layout_format = 3;
8082pub const nk_draw_vertex_layout_format_NK_FORMAT_USHORT: nk_draw_vertex_layout_format = 4;
8083pub const nk_draw_vertex_layout_format_NK_FORMAT_UINT: nk_draw_vertex_layout_format = 5;
8084pub const nk_draw_vertex_layout_format_NK_FORMAT_FLOAT: nk_draw_vertex_layout_format = 6;
8085pub const nk_draw_vertex_layout_format_NK_FORMAT_DOUBLE: nk_draw_vertex_layout_format = 7;
8086pub const nk_draw_vertex_layout_format_NK_FORMAT_COLOR_BEGIN: nk_draw_vertex_layout_format = 8;
8087pub const nk_draw_vertex_layout_format_NK_FORMAT_R8G8B8: nk_draw_vertex_layout_format = 8;
8088pub const nk_draw_vertex_layout_format_NK_FORMAT_R16G15B16: nk_draw_vertex_layout_format = 9;
8089pub const nk_draw_vertex_layout_format_NK_FORMAT_R32G32B32: nk_draw_vertex_layout_format = 10;
8090pub const nk_draw_vertex_layout_format_NK_FORMAT_R8G8B8A8: nk_draw_vertex_layout_format = 11;
8091pub const nk_draw_vertex_layout_format_NK_FORMAT_B8G8R8A8: nk_draw_vertex_layout_format = 12;
8092pub const nk_draw_vertex_layout_format_NK_FORMAT_R16G15B16A16: nk_draw_vertex_layout_format = 13;
8093pub const nk_draw_vertex_layout_format_NK_FORMAT_R32G32B32A32: nk_draw_vertex_layout_format = 14;
8094pub const nk_draw_vertex_layout_format_NK_FORMAT_R32G32B32A32_FLOAT: nk_draw_vertex_layout_format =
8095    15;
8096pub const nk_draw_vertex_layout_format_NK_FORMAT_R32G32B32A32_DOUBLE: nk_draw_vertex_layout_format =
8097    16;
8098pub const nk_draw_vertex_layout_format_NK_FORMAT_RGB32: nk_draw_vertex_layout_format = 17;
8099pub const nk_draw_vertex_layout_format_NK_FORMAT_RGBA32: nk_draw_vertex_layout_format = 18;
8100pub const nk_draw_vertex_layout_format_NK_FORMAT_COLOR_END: nk_draw_vertex_layout_format = 18;
8101pub const nk_draw_vertex_layout_format_NK_FORMAT_COUNT: nk_draw_vertex_layout_format = 19;
8102pub type nk_draw_vertex_layout_format = u32;
8103#[repr(C)]
8104#[derive(Debug, Copy, Clone)]
8105pub struct nk_draw_vertex_layout_element {
8106    pub attribute: nk_draw_vertex_layout_attribute,
8107    pub format: nk_draw_vertex_layout_format,
8108    pub offset: nk_size,
8109}
8110#[test]
8111fn bindgen_test_layout_nk_draw_vertex_layout_element() {
8112    assert_eq!(
8113        ::std::mem::size_of::<nk_draw_vertex_layout_element>(),
8114        16usize,
8115        concat!("Size of: ", stringify!(nk_draw_vertex_layout_element))
8116    );
8117    assert_eq!(
8118        ::std::mem::align_of::<nk_draw_vertex_layout_element>(),
8119        8usize,
8120        concat!("Alignment of ", stringify!(nk_draw_vertex_layout_element))
8121    );
8122    assert_eq!(
8123        unsafe {
8124            &(*(::std::ptr::null::<nk_draw_vertex_layout_element>())).attribute as *const _ as usize
8125        },
8126        0usize,
8127        concat!(
8128            "Offset of field: ",
8129            stringify!(nk_draw_vertex_layout_element),
8130            "::",
8131            stringify!(attribute)
8132        )
8133    );
8134    assert_eq!(
8135        unsafe {
8136            &(*(::std::ptr::null::<nk_draw_vertex_layout_element>())).format as *const _ as usize
8137        },
8138        4usize,
8139        concat!(
8140            "Offset of field: ",
8141            stringify!(nk_draw_vertex_layout_element),
8142            "::",
8143            stringify!(format)
8144        )
8145    );
8146    assert_eq!(
8147        unsafe {
8148            &(*(::std::ptr::null::<nk_draw_vertex_layout_element>())).offset as *const _ as usize
8149        },
8150        8usize,
8151        concat!(
8152            "Offset of field: ",
8153            stringify!(nk_draw_vertex_layout_element),
8154            "::",
8155            stringify!(offset)
8156        )
8157    );
8158}
8159impl Default for nk_draw_vertex_layout_element {
8160    fn default() -> Self {
8161        unsafe { ::std::mem::zeroed() }
8162    }
8163}
8164#[repr(C)]
8165#[derive(Copy, Clone)]
8166pub struct nk_draw_command {
8167    pub elem_count: ::std::os::raw::c_uint,
8168    pub clip_rect: nk_rect,
8169    pub texture: nk_handle,
8170    pub userdata: nk_handle,
8171}
8172#[test]
8173fn bindgen_test_layout_nk_draw_command() {
8174    assert_eq!(
8175        ::std::mem::size_of::<nk_draw_command>(),
8176        40usize,
8177        concat!("Size of: ", stringify!(nk_draw_command))
8178    );
8179    assert_eq!(
8180        ::std::mem::align_of::<nk_draw_command>(),
8181        8usize,
8182        concat!("Alignment of ", stringify!(nk_draw_command))
8183    );
8184    assert_eq!(
8185        unsafe { &(*(::std::ptr::null::<nk_draw_command>())).elem_count as *const _ as usize },
8186        0usize,
8187        concat!(
8188            "Offset of field: ",
8189            stringify!(nk_draw_command),
8190            "::",
8191            stringify!(elem_count)
8192        )
8193    );
8194    assert_eq!(
8195        unsafe { &(*(::std::ptr::null::<nk_draw_command>())).clip_rect as *const _ as usize },
8196        4usize,
8197        concat!(
8198            "Offset of field: ",
8199            stringify!(nk_draw_command),
8200            "::",
8201            stringify!(clip_rect)
8202        )
8203    );
8204    assert_eq!(
8205        unsafe { &(*(::std::ptr::null::<nk_draw_command>())).texture as *const _ as usize },
8206        24usize,
8207        concat!(
8208            "Offset of field: ",
8209            stringify!(nk_draw_command),
8210            "::",
8211            stringify!(texture)
8212        )
8213    );
8214    assert_eq!(
8215        unsafe { &(*(::std::ptr::null::<nk_draw_command>())).userdata as *const _ as usize },
8216        32usize,
8217        concat!(
8218            "Offset of field: ",
8219            stringify!(nk_draw_command),
8220            "::",
8221            stringify!(userdata)
8222        )
8223    );
8224}
8225impl Default for nk_draw_command {
8226    fn default() -> Self {
8227        unsafe { ::std::mem::zeroed() }
8228    }
8229}
8230#[repr(C)]
8231#[derive(Copy, Clone)]
8232pub struct nk_draw_list {
8233    pub clip_rect: nk_rect,
8234    pub circle_vtx: [nk_vec2; 12usize],
8235    pub config: nk_convert_config,
8236    pub buffer: *mut nk_buffer,
8237    pub vertices: *mut nk_buffer,
8238    pub elements: *mut nk_buffer,
8239    pub element_count: ::std::os::raw::c_uint,
8240    pub vertex_count: ::std::os::raw::c_uint,
8241    pub cmd_count: ::std::os::raw::c_uint,
8242    pub cmd_offset: nk_size,
8243    pub path_count: ::std::os::raw::c_uint,
8244    pub path_offset: ::std::os::raw::c_uint,
8245    pub line_AA: nk_anti_aliasing,
8246    pub shape_AA: nk_anti_aliasing,
8247    pub userdata: nk_handle,
8248}
8249#[test]
8250fn bindgen_test_layout_nk_draw_list() {
8251    assert_eq!(
8252        ::std::mem::size_of::<nk_draw_list>(),
8253        248usize,
8254        concat!("Size of: ", stringify!(nk_draw_list))
8255    );
8256    assert_eq!(
8257        ::std::mem::align_of::<nk_draw_list>(),
8258        8usize,
8259        concat!("Alignment of ", stringify!(nk_draw_list))
8260    );
8261    assert_eq!(
8262        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).clip_rect as *const _ as usize },
8263        0usize,
8264        concat!(
8265            "Offset of field: ",
8266            stringify!(nk_draw_list),
8267            "::",
8268            stringify!(clip_rect)
8269        )
8270    );
8271    assert_eq!(
8272        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).circle_vtx as *const _ as usize },
8273        16usize,
8274        concat!(
8275            "Offset of field: ",
8276            stringify!(nk_draw_list),
8277            "::",
8278            stringify!(circle_vtx)
8279        )
8280    );
8281    assert_eq!(
8282        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).config as *const _ as usize },
8283        112usize,
8284        concat!(
8285            "Offset of field: ",
8286            stringify!(nk_draw_list),
8287            "::",
8288            stringify!(config)
8289        )
8290    );
8291    assert_eq!(
8292        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).buffer as *const _ as usize },
8293        176usize,
8294        concat!(
8295            "Offset of field: ",
8296            stringify!(nk_draw_list),
8297            "::",
8298            stringify!(buffer)
8299        )
8300    );
8301    assert_eq!(
8302        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).vertices as *const _ as usize },
8303        184usize,
8304        concat!(
8305            "Offset of field: ",
8306            stringify!(nk_draw_list),
8307            "::",
8308            stringify!(vertices)
8309        )
8310    );
8311    assert_eq!(
8312        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).elements as *const _ as usize },
8313        192usize,
8314        concat!(
8315            "Offset of field: ",
8316            stringify!(nk_draw_list),
8317            "::",
8318            stringify!(elements)
8319        )
8320    );
8321    assert_eq!(
8322        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).element_count as *const _ as usize },
8323        200usize,
8324        concat!(
8325            "Offset of field: ",
8326            stringify!(nk_draw_list),
8327            "::",
8328            stringify!(element_count)
8329        )
8330    );
8331    assert_eq!(
8332        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).vertex_count as *const _ as usize },
8333        204usize,
8334        concat!(
8335            "Offset of field: ",
8336            stringify!(nk_draw_list),
8337            "::",
8338            stringify!(vertex_count)
8339        )
8340    );
8341    assert_eq!(
8342        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).cmd_count as *const _ as usize },
8343        208usize,
8344        concat!(
8345            "Offset of field: ",
8346            stringify!(nk_draw_list),
8347            "::",
8348            stringify!(cmd_count)
8349        )
8350    );
8351    assert_eq!(
8352        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).cmd_offset as *const _ as usize },
8353        216usize,
8354        concat!(
8355            "Offset of field: ",
8356            stringify!(nk_draw_list),
8357            "::",
8358            stringify!(cmd_offset)
8359        )
8360    );
8361    assert_eq!(
8362        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).path_count as *const _ as usize },
8363        224usize,
8364        concat!(
8365            "Offset of field: ",
8366            stringify!(nk_draw_list),
8367            "::",
8368            stringify!(path_count)
8369        )
8370    );
8371    assert_eq!(
8372        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).path_offset as *const _ as usize },
8373        228usize,
8374        concat!(
8375            "Offset of field: ",
8376            stringify!(nk_draw_list),
8377            "::",
8378            stringify!(path_offset)
8379        )
8380    );
8381    assert_eq!(
8382        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).line_AA as *const _ as usize },
8383        232usize,
8384        concat!(
8385            "Offset of field: ",
8386            stringify!(nk_draw_list),
8387            "::",
8388            stringify!(line_AA)
8389        )
8390    );
8391    assert_eq!(
8392        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).shape_AA as *const _ as usize },
8393        236usize,
8394        concat!(
8395            "Offset of field: ",
8396            stringify!(nk_draw_list),
8397            "::",
8398            stringify!(shape_AA)
8399        )
8400    );
8401    assert_eq!(
8402        unsafe { &(*(::std::ptr::null::<nk_draw_list>())).userdata as *const _ as usize },
8403        240usize,
8404        concat!(
8405            "Offset of field: ",
8406            stringify!(nk_draw_list),
8407            "::",
8408            stringify!(userdata)
8409        )
8410    );
8411}
8412impl Default for nk_draw_list {
8413    fn default() -> Self {
8414        unsafe { ::std::mem::zeroed() }
8415    }
8416}
8417extern "C" {
8418    pub fn nk_draw_list_init(arg1: *mut nk_draw_list);
8419}
8420extern "C" {
8421    pub fn nk_draw_list_setup(
8422        arg1: *mut nk_draw_list,
8423        arg2: *const nk_convert_config,
8424        cmds: *mut nk_buffer,
8425        vertices: *mut nk_buffer,
8426        elements: *mut nk_buffer,
8427        line_aa: nk_anti_aliasing,
8428        shape_aa: nk_anti_aliasing,
8429    );
8430}
8431extern "C" {
8432    pub fn nk__draw_list_begin(
8433        arg1: *const nk_draw_list,
8434        arg2: *const nk_buffer,
8435    ) -> *const nk_draw_command;
8436}
8437extern "C" {
8438    pub fn nk__draw_list_next(
8439        arg1: *const nk_draw_command,
8440        arg2: *const nk_buffer,
8441        arg3: *const nk_draw_list,
8442    ) -> *const nk_draw_command;
8443}
8444extern "C" {
8445    pub fn nk__draw_list_end(
8446        arg1: *const nk_draw_list,
8447        arg2: *const nk_buffer,
8448    ) -> *const nk_draw_command;
8449}
8450extern "C" {
8451    pub fn nk_draw_list_path_clear(arg1: *mut nk_draw_list);
8452}
8453extern "C" {
8454    pub fn nk_draw_list_path_line_to(arg1: *mut nk_draw_list, pos: nk_vec2);
8455}
8456extern "C" {
8457    pub fn nk_draw_list_path_arc_to_fast(
8458        arg1: *mut nk_draw_list,
8459        center: nk_vec2,
8460        radius: f32,
8461        a_min: ::std::os::raw::c_int,
8462        a_max: ::std::os::raw::c_int,
8463    );
8464}
8465extern "C" {
8466    pub fn nk_draw_list_path_arc_to(
8467        arg1: *mut nk_draw_list,
8468        center: nk_vec2,
8469        radius: f32,
8470        a_min: f32,
8471        a_max: f32,
8472        segments: ::std::os::raw::c_uint,
8473    );
8474}
8475extern "C" {
8476    pub fn nk_draw_list_path_rect_to(
8477        arg1: *mut nk_draw_list,
8478        a: nk_vec2,
8479        b: nk_vec2,
8480        rounding: f32,
8481    );
8482}
8483extern "C" {
8484    pub fn nk_draw_list_path_curve_to(
8485        arg1: *mut nk_draw_list,
8486        p2: nk_vec2,
8487        p3: nk_vec2,
8488        p4: nk_vec2,
8489        num_segments: ::std::os::raw::c_uint,
8490    );
8491}
8492extern "C" {
8493    pub fn nk_draw_list_path_fill(arg1: *mut nk_draw_list, arg2: nk_color);
8494}
8495extern "C" {
8496    pub fn nk_draw_list_path_stroke(
8497        arg1: *mut nk_draw_list,
8498        arg2: nk_color,
8499        closed: nk_draw_list_stroke,
8500        thickness: f32,
8501    );
8502}
8503extern "C" {
8504    pub fn nk_draw_list_stroke_line(
8505        arg1: *mut nk_draw_list,
8506        a: nk_vec2,
8507        b: nk_vec2,
8508        arg2: nk_color,
8509        thickness: f32,
8510    );
8511}
8512extern "C" {
8513    pub fn nk_draw_list_stroke_rect(
8514        arg1: *mut nk_draw_list,
8515        rect: nk_rect,
8516        arg2: nk_color,
8517        rounding: f32,
8518        thickness: f32,
8519    );
8520}
8521extern "C" {
8522    pub fn nk_draw_list_stroke_triangle(
8523        arg1: *mut nk_draw_list,
8524        a: nk_vec2,
8525        b: nk_vec2,
8526        c: nk_vec2,
8527        arg2: nk_color,
8528        thickness: f32,
8529    );
8530}
8531extern "C" {
8532    pub fn nk_draw_list_stroke_circle(
8533        arg1: *mut nk_draw_list,
8534        center: nk_vec2,
8535        radius: f32,
8536        arg2: nk_color,
8537        segs: ::std::os::raw::c_uint,
8538        thickness: f32,
8539    );
8540}
8541extern "C" {
8542    pub fn nk_draw_list_stroke_curve(
8543        arg1: *mut nk_draw_list,
8544        p0: nk_vec2,
8545        cp0: nk_vec2,
8546        cp1: nk_vec2,
8547        p1: nk_vec2,
8548        arg2: nk_color,
8549        segments: ::std::os::raw::c_uint,
8550        thickness: f32,
8551    );
8552}
8553extern "C" {
8554    pub fn nk_draw_list_stroke_poly_line(
8555        arg1: *mut nk_draw_list,
8556        pnts: *const nk_vec2,
8557        cnt: ::std::os::raw::c_uint,
8558        arg2: nk_color,
8559        arg3: nk_draw_list_stroke,
8560        thickness: f32,
8561        arg4: nk_anti_aliasing,
8562    );
8563}
8564extern "C" {
8565    pub fn nk_draw_list_fill_rect(
8566        arg1: *mut nk_draw_list,
8567        rect: nk_rect,
8568        arg2: nk_color,
8569        rounding: f32,
8570    );
8571}
8572extern "C" {
8573    pub fn nk_draw_list_fill_rect_multi_color(
8574        arg1: *mut nk_draw_list,
8575        rect: nk_rect,
8576        left: nk_color,
8577        top: nk_color,
8578        right: nk_color,
8579        bottom: nk_color,
8580    );
8581}
8582extern "C" {
8583    pub fn nk_draw_list_fill_triangle(
8584        arg1: *mut nk_draw_list,
8585        a: nk_vec2,
8586        b: nk_vec2,
8587        c: nk_vec2,
8588        arg2: nk_color,
8589    );
8590}
8591extern "C" {
8592    pub fn nk_draw_list_fill_circle(
8593        arg1: *mut nk_draw_list,
8594        center: nk_vec2,
8595        radius: f32,
8596        col: nk_color,
8597        segs: ::std::os::raw::c_uint,
8598    );
8599}
8600extern "C" {
8601    pub fn nk_draw_list_fill_poly_convex(
8602        arg1: *mut nk_draw_list,
8603        points: *const nk_vec2,
8604        count: ::std::os::raw::c_uint,
8605        arg2: nk_color,
8606        arg3: nk_anti_aliasing,
8607    );
8608}
8609extern "C" {
8610    pub fn nk_draw_list_add_image(
8611        arg1: *mut nk_draw_list,
8612        texture: nk_image,
8613        rect: nk_rect,
8614        arg2: nk_color,
8615    );
8616}
8617extern "C" {
8618    pub fn nk_draw_list_add_text(
8619        arg1: *mut nk_draw_list,
8620        arg2: *const nk_user_font,
8621        arg3: nk_rect,
8622        text: *const ::std::os::raw::c_char,
8623        len: ::std::os::raw::c_int,
8624        font_height: f32,
8625        arg4: nk_color,
8626    );
8627}
8628extern "C" {
8629    pub fn nk_draw_list_push_userdata(arg1: *mut nk_draw_list, userdata: nk_handle);
8630}
8631pub const nk_style_item_type_NK_STYLE_ITEM_COLOR: nk_style_item_type = 0;
8632pub const nk_style_item_type_NK_STYLE_ITEM_IMAGE: nk_style_item_type = 1;
8633pub type nk_style_item_type = u32;
8634#[repr(C)]
8635#[derive(Copy, Clone)]
8636pub union nk_style_item_data {
8637    pub image: nk_image,
8638    pub color: nk_color,
8639    _bindgen_union_align: [u64; 3usize],
8640}
8641#[test]
8642fn bindgen_test_layout_nk_style_item_data() {
8643    assert_eq!(
8644        ::std::mem::size_of::<nk_style_item_data>(),
8645        24usize,
8646        concat!("Size of: ", stringify!(nk_style_item_data))
8647    );
8648    assert_eq!(
8649        ::std::mem::align_of::<nk_style_item_data>(),
8650        8usize,
8651        concat!("Alignment of ", stringify!(nk_style_item_data))
8652    );
8653    assert_eq!(
8654        unsafe { &(*(::std::ptr::null::<nk_style_item_data>())).image as *const _ as usize },
8655        0usize,
8656        concat!(
8657            "Offset of field: ",
8658            stringify!(nk_style_item_data),
8659            "::",
8660            stringify!(image)
8661        )
8662    );
8663    assert_eq!(
8664        unsafe { &(*(::std::ptr::null::<nk_style_item_data>())).color as *const _ as usize },
8665        0usize,
8666        concat!(
8667            "Offset of field: ",
8668            stringify!(nk_style_item_data),
8669            "::",
8670            stringify!(color)
8671        )
8672    );
8673}
8674impl Default for nk_style_item_data {
8675    fn default() -> Self {
8676        unsafe { ::std::mem::zeroed() }
8677    }
8678}
8679#[repr(C)]
8680#[derive(Copy, Clone)]
8681pub struct nk_style_item {
8682    pub type_: nk_style_item_type,
8683    pub data: nk_style_item_data,
8684}
8685#[test]
8686fn bindgen_test_layout_nk_style_item() {
8687    assert_eq!(
8688        ::std::mem::size_of::<nk_style_item>(),
8689        32usize,
8690        concat!("Size of: ", stringify!(nk_style_item))
8691    );
8692    assert_eq!(
8693        ::std::mem::align_of::<nk_style_item>(),
8694        8usize,
8695        concat!("Alignment of ", stringify!(nk_style_item))
8696    );
8697    assert_eq!(
8698        unsafe { &(*(::std::ptr::null::<nk_style_item>())).type_ as *const _ as usize },
8699        0usize,
8700        concat!(
8701            "Offset of field: ",
8702            stringify!(nk_style_item),
8703            "::",
8704            stringify!(type_)
8705        )
8706    );
8707    assert_eq!(
8708        unsafe { &(*(::std::ptr::null::<nk_style_item>())).data as *const _ as usize },
8709        8usize,
8710        concat!(
8711            "Offset of field: ",
8712            stringify!(nk_style_item),
8713            "::",
8714            stringify!(data)
8715        )
8716    );
8717}
8718impl Default for nk_style_item {
8719    fn default() -> Self {
8720        unsafe { ::std::mem::zeroed() }
8721    }
8722}
8723#[repr(C)]
8724#[derive(Debug, Default, Copy, Clone)]
8725pub struct nk_style_text {
8726    pub color: nk_color,
8727    pub padding: nk_vec2,
8728}
8729#[test]
8730fn bindgen_test_layout_nk_style_text() {
8731    assert_eq!(
8732        ::std::mem::size_of::<nk_style_text>(),
8733        12usize,
8734        concat!("Size of: ", stringify!(nk_style_text))
8735    );
8736    assert_eq!(
8737        ::std::mem::align_of::<nk_style_text>(),
8738        4usize,
8739        concat!("Alignment of ", stringify!(nk_style_text))
8740    );
8741    assert_eq!(
8742        unsafe { &(*(::std::ptr::null::<nk_style_text>())).color as *const _ as usize },
8743        0usize,
8744        concat!(
8745            "Offset of field: ",
8746            stringify!(nk_style_text),
8747            "::",
8748            stringify!(color)
8749        )
8750    );
8751    assert_eq!(
8752        unsafe { &(*(::std::ptr::null::<nk_style_text>())).padding as *const _ as usize },
8753        4usize,
8754        concat!(
8755            "Offset of field: ",
8756            stringify!(nk_style_text),
8757            "::",
8758            stringify!(padding)
8759        )
8760    );
8761}
8762#[repr(C)]
8763#[derive(Copy, Clone)]
8764pub struct nk_style_button {
8765    pub normal: nk_style_item,
8766    pub hover: nk_style_item,
8767    pub active: nk_style_item,
8768    pub border_color: nk_color,
8769    pub text_background: nk_color,
8770    pub text_normal: nk_color,
8771    pub text_hover: nk_color,
8772    pub text_active: nk_color,
8773    pub text_alignment: nk_flags,
8774    pub border: f32,
8775    pub rounding: f32,
8776    pub padding: nk_vec2,
8777    pub image_padding: nk_vec2,
8778    pub touch_padding: nk_vec2,
8779    pub userdata: nk_handle,
8780    pub draw_begin: ::std::option::Option<
8781        unsafe extern "C" fn(arg1: *mut nk_command_buffer, userdata: nk_handle),
8782    >,
8783    pub draw_end: ::std::option::Option<
8784        unsafe extern "C" fn(arg1: *mut nk_command_buffer, userdata: nk_handle),
8785    >,
8786}
8787#[test]
8788fn bindgen_test_layout_nk_style_button() {
8789    assert_eq!(
8790        ::std::mem::size_of::<nk_style_button>(),
8791        176usize,
8792        concat!("Size of: ", stringify!(nk_style_button))
8793    );
8794    assert_eq!(
8795        ::std::mem::align_of::<nk_style_button>(),
8796        8usize,
8797        concat!("Alignment of ", stringify!(nk_style_button))
8798    );
8799    assert_eq!(
8800        unsafe { &(*(::std::ptr::null::<nk_style_button>())).normal as *const _ as usize },
8801        0usize,
8802        concat!(
8803            "Offset of field: ",
8804            stringify!(nk_style_button),
8805            "::",
8806            stringify!(normal)
8807        )
8808    );
8809    assert_eq!(
8810        unsafe { &(*(::std::ptr::null::<nk_style_button>())).hover as *const _ as usize },
8811        32usize,
8812        concat!(
8813            "Offset of field: ",
8814            stringify!(nk_style_button),
8815            "::",
8816            stringify!(hover)
8817        )
8818    );
8819    assert_eq!(
8820        unsafe { &(*(::std::ptr::null::<nk_style_button>())).active as *const _ as usize },
8821        64usize,
8822        concat!(
8823            "Offset of field: ",
8824            stringify!(nk_style_button),
8825            "::",
8826            stringify!(active)
8827        )
8828    );
8829    assert_eq!(
8830        unsafe { &(*(::std::ptr::null::<nk_style_button>())).border_color as *const _ as usize },
8831        96usize,
8832        concat!(
8833            "Offset of field: ",
8834            stringify!(nk_style_button),
8835            "::",
8836            stringify!(border_color)
8837        )
8838    );
8839    assert_eq!(
8840        unsafe { &(*(::std::ptr::null::<nk_style_button>())).text_background as *const _ as usize },
8841        100usize,
8842        concat!(
8843            "Offset of field: ",
8844            stringify!(nk_style_button),
8845            "::",
8846            stringify!(text_background)
8847        )
8848    );
8849    assert_eq!(
8850        unsafe { &(*(::std::ptr::null::<nk_style_button>())).text_normal as *const _ as usize },
8851        104usize,
8852        concat!(
8853            "Offset of field: ",
8854            stringify!(nk_style_button),
8855            "::",
8856            stringify!(text_normal)
8857        )
8858    );
8859    assert_eq!(
8860        unsafe { &(*(::std::ptr::null::<nk_style_button>())).text_hover as *const _ as usize },
8861        108usize,
8862        concat!(
8863            "Offset of field: ",
8864            stringify!(nk_style_button),
8865            "::",
8866            stringify!(text_hover)
8867        )
8868    );
8869    assert_eq!(
8870        unsafe { &(*(::std::ptr::null::<nk_style_button>())).text_active as *const _ as usize },
8871        112usize,
8872        concat!(
8873            "Offset of field: ",
8874            stringify!(nk_style_button),
8875            "::",
8876            stringify!(text_active)
8877        )
8878    );
8879    assert_eq!(
8880        unsafe { &(*(::std::ptr::null::<nk_style_button>())).text_alignment as *const _ as usize },
8881        116usize,
8882        concat!(
8883            "Offset of field: ",
8884            stringify!(nk_style_button),
8885            "::",
8886            stringify!(text_alignment)
8887        )
8888    );
8889    assert_eq!(
8890        unsafe { &(*(::std::ptr::null::<nk_style_button>())).border as *const _ as usize },
8891        120usize,
8892        concat!(
8893            "Offset of field: ",
8894            stringify!(nk_style_button),
8895            "::",
8896            stringify!(border)
8897        )
8898    );
8899    assert_eq!(
8900        unsafe { &(*(::std::ptr::null::<nk_style_button>())).rounding as *const _ as usize },
8901        124usize,
8902        concat!(
8903            "Offset of field: ",
8904            stringify!(nk_style_button),
8905            "::",
8906            stringify!(rounding)
8907        )
8908    );
8909    assert_eq!(
8910        unsafe { &(*(::std::ptr::null::<nk_style_button>())).padding as *const _ as usize },
8911        128usize,
8912        concat!(
8913            "Offset of field: ",
8914            stringify!(nk_style_button),
8915            "::",
8916            stringify!(padding)
8917        )
8918    );
8919    assert_eq!(
8920        unsafe { &(*(::std::ptr::null::<nk_style_button>())).image_padding as *const _ as usize },
8921        136usize,
8922        concat!(
8923            "Offset of field: ",
8924            stringify!(nk_style_button),
8925            "::",
8926            stringify!(image_padding)
8927        )
8928    );
8929    assert_eq!(
8930        unsafe { &(*(::std::ptr::null::<nk_style_button>())).touch_padding as *const _ as usize },
8931        144usize,
8932        concat!(
8933            "Offset of field: ",
8934            stringify!(nk_style_button),
8935            "::",
8936            stringify!(touch_padding)
8937        )
8938    );
8939    assert_eq!(
8940        unsafe { &(*(::std::ptr::null::<nk_style_button>())).userdata as *const _ as usize },
8941        152usize,
8942        concat!(
8943            "Offset of field: ",
8944            stringify!(nk_style_button),
8945            "::",
8946            stringify!(userdata)
8947        )
8948    );
8949    assert_eq!(
8950        unsafe { &(*(::std::ptr::null::<nk_style_button>())).draw_begin as *const _ as usize },
8951        160usize,
8952        concat!(
8953            "Offset of field: ",
8954            stringify!(nk_style_button),
8955            "::",
8956            stringify!(draw_begin)
8957        )
8958    );
8959    assert_eq!(
8960        unsafe { &(*(::std::ptr::null::<nk_style_button>())).draw_end as *const _ as usize },
8961        168usize,
8962        concat!(
8963            "Offset of field: ",
8964            stringify!(nk_style_button),
8965            "::",
8966            stringify!(draw_end)
8967        )
8968    );
8969}
8970impl Default for nk_style_button {
8971    fn default() -> Self {
8972        unsafe { ::std::mem::zeroed() }
8973    }
8974}
8975#[repr(C)]
8976#[derive(Copy, Clone)]
8977pub struct nk_style_toggle {
8978    pub normal: nk_style_item,
8979    pub hover: nk_style_item,
8980    pub active: nk_style_item,
8981    pub border_color: nk_color,
8982    pub cursor_normal: nk_style_item,
8983    pub cursor_hover: nk_style_item,
8984    pub text_normal: nk_color,
8985    pub text_hover: nk_color,
8986    pub text_active: nk_color,
8987    pub text_background: nk_color,
8988    pub text_alignment: nk_flags,
8989    pub padding: nk_vec2,
8990    pub touch_padding: nk_vec2,
8991    pub spacing: f32,
8992    pub border: f32,
8993    pub userdata: nk_handle,
8994    pub draw_begin:
8995        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
8996    pub draw_end:
8997        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
8998}
8999#[test]
9000fn bindgen_test_layout_nk_style_toggle() {
9001    assert_eq!(
9002        ::std::mem::size_of::<nk_style_toggle>(),
9003        240usize,
9004        concat!("Size of: ", stringify!(nk_style_toggle))
9005    );
9006    assert_eq!(
9007        ::std::mem::align_of::<nk_style_toggle>(),
9008        8usize,
9009        concat!("Alignment of ", stringify!(nk_style_toggle))
9010    );
9011    assert_eq!(
9012        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).normal as *const _ as usize },
9013        0usize,
9014        concat!(
9015            "Offset of field: ",
9016            stringify!(nk_style_toggle),
9017            "::",
9018            stringify!(normal)
9019        )
9020    );
9021    assert_eq!(
9022        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).hover as *const _ as usize },
9023        32usize,
9024        concat!(
9025            "Offset of field: ",
9026            stringify!(nk_style_toggle),
9027            "::",
9028            stringify!(hover)
9029        )
9030    );
9031    assert_eq!(
9032        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).active as *const _ as usize },
9033        64usize,
9034        concat!(
9035            "Offset of field: ",
9036            stringify!(nk_style_toggle),
9037            "::",
9038            stringify!(active)
9039        )
9040    );
9041    assert_eq!(
9042        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).border_color as *const _ as usize },
9043        96usize,
9044        concat!(
9045            "Offset of field: ",
9046            stringify!(nk_style_toggle),
9047            "::",
9048            stringify!(border_color)
9049        )
9050    );
9051    assert_eq!(
9052        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).cursor_normal as *const _ as usize },
9053        104usize,
9054        concat!(
9055            "Offset of field: ",
9056            stringify!(nk_style_toggle),
9057            "::",
9058            stringify!(cursor_normal)
9059        )
9060    );
9061    assert_eq!(
9062        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).cursor_hover as *const _ as usize },
9063        136usize,
9064        concat!(
9065            "Offset of field: ",
9066            stringify!(nk_style_toggle),
9067            "::",
9068            stringify!(cursor_hover)
9069        )
9070    );
9071    assert_eq!(
9072        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).text_normal as *const _ as usize },
9073        168usize,
9074        concat!(
9075            "Offset of field: ",
9076            stringify!(nk_style_toggle),
9077            "::",
9078            stringify!(text_normal)
9079        )
9080    );
9081    assert_eq!(
9082        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).text_hover as *const _ as usize },
9083        172usize,
9084        concat!(
9085            "Offset of field: ",
9086            stringify!(nk_style_toggle),
9087            "::",
9088            stringify!(text_hover)
9089        )
9090    );
9091    assert_eq!(
9092        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).text_active as *const _ as usize },
9093        176usize,
9094        concat!(
9095            "Offset of field: ",
9096            stringify!(nk_style_toggle),
9097            "::",
9098            stringify!(text_active)
9099        )
9100    );
9101    assert_eq!(
9102        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).text_background as *const _ as usize },
9103        180usize,
9104        concat!(
9105            "Offset of field: ",
9106            stringify!(nk_style_toggle),
9107            "::",
9108            stringify!(text_background)
9109        )
9110    );
9111    assert_eq!(
9112        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).text_alignment as *const _ as usize },
9113        184usize,
9114        concat!(
9115            "Offset of field: ",
9116            stringify!(nk_style_toggle),
9117            "::",
9118            stringify!(text_alignment)
9119        )
9120    );
9121    assert_eq!(
9122        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).padding as *const _ as usize },
9123        188usize,
9124        concat!(
9125            "Offset of field: ",
9126            stringify!(nk_style_toggle),
9127            "::",
9128            stringify!(padding)
9129        )
9130    );
9131    assert_eq!(
9132        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).touch_padding as *const _ as usize },
9133        196usize,
9134        concat!(
9135            "Offset of field: ",
9136            stringify!(nk_style_toggle),
9137            "::",
9138            stringify!(touch_padding)
9139        )
9140    );
9141    assert_eq!(
9142        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).spacing as *const _ as usize },
9143        204usize,
9144        concat!(
9145            "Offset of field: ",
9146            stringify!(nk_style_toggle),
9147            "::",
9148            stringify!(spacing)
9149        )
9150    );
9151    assert_eq!(
9152        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).border as *const _ as usize },
9153        208usize,
9154        concat!(
9155            "Offset of field: ",
9156            stringify!(nk_style_toggle),
9157            "::",
9158            stringify!(border)
9159        )
9160    );
9161    assert_eq!(
9162        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).userdata as *const _ as usize },
9163        216usize,
9164        concat!(
9165            "Offset of field: ",
9166            stringify!(nk_style_toggle),
9167            "::",
9168            stringify!(userdata)
9169        )
9170    );
9171    assert_eq!(
9172        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).draw_begin as *const _ as usize },
9173        224usize,
9174        concat!(
9175            "Offset of field: ",
9176            stringify!(nk_style_toggle),
9177            "::",
9178            stringify!(draw_begin)
9179        )
9180    );
9181    assert_eq!(
9182        unsafe { &(*(::std::ptr::null::<nk_style_toggle>())).draw_end as *const _ as usize },
9183        232usize,
9184        concat!(
9185            "Offset of field: ",
9186            stringify!(nk_style_toggle),
9187            "::",
9188            stringify!(draw_end)
9189        )
9190    );
9191}
9192impl Default for nk_style_toggle {
9193    fn default() -> Self {
9194        unsafe { ::std::mem::zeroed() }
9195    }
9196}
9197#[repr(C)]
9198#[derive(Copy, Clone)]
9199pub struct nk_style_selectable {
9200    pub normal: nk_style_item,
9201    pub hover: nk_style_item,
9202    pub pressed: nk_style_item,
9203    pub normal_active: nk_style_item,
9204    pub hover_active: nk_style_item,
9205    pub pressed_active: nk_style_item,
9206    pub text_normal: nk_color,
9207    pub text_hover: nk_color,
9208    pub text_pressed: nk_color,
9209    pub text_normal_active: nk_color,
9210    pub text_hover_active: nk_color,
9211    pub text_pressed_active: nk_color,
9212    pub text_background: nk_color,
9213    pub text_alignment: nk_flags,
9214    pub rounding: f32,
9215    pub padding: nk_vec2,
9216    pub touch_padding: nk_vec2,
9217    pub image_padding: nk_vec2,
9218    pub userdata: nk_handle,
9219    pub draw_begin:
9220        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
9221    pub draw_end:
9222        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
9223}
9224#[test]
9225fn bindgen_test_layout_nk_style_selectable() {
9226    assert_eq!(
9227        ::std::mem::size_of::<nk_style_selectable>(),
9228        280usize,
9229        concat!("Size of: ", stringify!(nk_style_selectable))
9230    );
9231    assert_eq!(
9232        ::std::mem::align_of::<nk_style_selectable>(),
9233        8usize,
9234        concat!("Alignment of ", stringify!(nk_style_selectable))
9235    );
9236    assert_eq!(
9237        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).normal as *const _ as usize },
9238        0usize,
9239        concat!(
9240            "Offset of field: ",
9241            stringify!(nk_style_selectable),
9242            "::",
9243            stringify!(normal)
9244        )
9245    );
9246    assert_eq!(
9247        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).hover as *const _ as usize },
9248        32usize,
9249        concat!(
9250            "Offset of field: ",
9251            stringify!(nk_style_selectable),
9252            "::",
9253            stringify!(hover)
9254        )
9255    );
9256    assert_eq!(
9257        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).pressed as *const _ as usize },
9258        64usize,
9259        concat!(
9260            "Offset of field: ",
9261            stringify!(nk_style_selectable),
9262            "::",
9263            stringify!(pressed)
9264        )
9265    );
9266    assert_eq!(
9267        unsafe {
9268            &(*(::std::ptr::null::<nk_style_selectable>())).normal_active as *const _ as usize
9269        },
9270        96usize,
9271        concat!(
9272            "Offset of field: ",
9273            stringify!(nk_style_selectable),
9274            "::",
9275            stringify!(normal_active)
9276        )
9277    );
9278    assert_eq!(
9279        unsafe {
9280            &(*(::std::ptr::null::<nk_style_selectable>())).hover_active as *const _ as usize
9281        },
9282        128usize,
9283        concat!(
9284            "Offset of field: ",
9285            stringify!(nk_style_selectable),
9286            "::",
9287            stringify!(hover_active)
9288        )
9289    );
9290    assert_eq!(
9291        unsafe {
9292            &(*(::std::ptr::null::<nk_style_selectable>())).pressed_active as *const _ as usize
9293        },
9294        160usize,
9295        concat!(
9296            "Offset of field: ",
9297            stringify!(nk_style_selectable),
9298            "::",
9299            stringify!(pressed_active)
9300        )
9301    );
9302    assert_eq!(
9303        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).text_normal as *const _ as usize },
9304        192usize,
9305        concat!(
9306            "Offset of field: ",
9307            stringify!(nk_style_selectable),
9308            "::",
9309            stringify!(text_normal)
9310        )
9311    );
9312    assert_eq!(
9313        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).text_hover as *const _ as usize },
9314        196usize,
9315        concat!(
9316            "Offset of field: ",
9317            stringify!(nk_style_selectable),
9318            "::",
9319            stringify!(text_hover)
9320        )
9321    );
9322    assert_eq!(
9323        unsafe {
9324            &(*(::std::ptr::null::<nk_style_selectable>())).text_pressed as *const _ as usize
9325        },
9326        200usize,
9327        concat!(
9328            "Offset of field: ",
9329            stringify!(nk_style_selectable),
9330            "::",
9331            stringify!(text_pressed)
9332        )
9333    );
9334    assert_eq!(
9335        unsafe {
9336            &(*(::std::ptr::null::<nk_style_selectable>())).text_normal_active as *const _ as usize
9337        },
9338        204usize,
9339        concat!(
9340            "Offset of field: ",
9341            stringify!(nk_style_selectable),
9342            "::",
9343            stringify!(text_normal_active)
9344        )
9345    );
9346    assert_eq!(
9347        unsafe {
9348            &(*(::std::ptr::null::<nk_style_selectable>())).text_hover_active as *const _ as usize
9349        },
9350        208usize,
9351        concat!(
9352            "Offset of field: ",
9353            stringify!(nk_style_selectable),
9354            "::",
9355            stringify!(text_hover_active)
9356        )
9357    );
9358    assert_eq!(
9359        unsafe {
9360            &(*(::std::ptr::null::<nk_style_selectable>())).text_pressed_active as *const _ as usize
9361        },
9362        212usize,
9363        concat!(
9364            "Offset of field: ",
9365            stringify!(nk_style_selectable),
9366            "::",
9367            stringify!(text_pressed_active)
9368        )
9369    );
9370    assert_eq!(
9371        unsafe {
9372            &(*(::std::ptr::null::<nk_style_selectable>())).text_background as *const _ as usize
9373        },
9374        216usize,
9375        concat!(
9376            "Offset of field: ",
9377            stringify!(nk_style_selectable),
9378            "::",
9379            stringify!(text_background)
9380        )
9381    );
9382    assert_eq!(
9383        unsafe {
9384            &(*(::std::ptr::null::<nk_style_selectable>())).text_alignment as *const _ as usize
9385        },
9386        220usize,
9387        concat!(
9388            "Offset of field: ",
9389            stringify!(nk_style_selectable),
9390            "::",
9391            stringify!(text_alignment)
9392        )
9393    );
9394    assert_eq!(
9395        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).rounding as *const _ as usize },
9396        224usize,
9397        concat!(
9398            "Offset of field: ",
9399            stringify!(nk_style_selectable),
9400            "::",
9401            stringify!(rounding)
9402        )
9403    );
9404    assert_eq!(
9405        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).padding as *const _ as usize },
9406        228usize,
9407        concat!(
9408            "Offset of field: ",
9409            stringify!(nk_style_selectable),
9410            "::",
9411            stringify!(padding)
9412        )
9413    );
9414    assert_eq!(
9415        unsafe {
9416            &(*(::std::ptr::null::<nk_style_selectable>())).touch_padding as *const _ as usize
9417        },
9418        236usize,
9419        concat!(
9420            "Offset of field: ",
9421            stringify!(nk_style_selectable),
9422            "::",
9423            stringify!(touch_padding)
9424        )
9425    );
9426    assert_eq!(
9427        unsafe {
9428            &(*(::std::ptr::null::<nk_style_selectable>())).image_padding as *const _ as usize
9429        },
9430        244usize,
9431        concat!(
9432            "Offset of field: ",
9433            stringify!(nk_style_selectable),
9434            "::",
9435            stringify!(image_padding)
9436        )
9437    );
9438    assert_eq!(
9439        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).userdata as *const _ as usize },
9440        256usize,
9441        concat!(
9442            "Offset of field: ",
9443            stringify!(nk_style_selectable),
9444            "::",
9445            stringify!(userdata)
9446        )
9447    );
9448    assert_eq!(
9449        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).draw_begin as *const _ as usize },
9450        264usize,
9451        concat!(
9452            "Offset of field: ",
9453            stringify!(nk_style_selectable),
9454            "::",
9455            stringify!(draw_begin)
9456        )
9457    );
9458    assert_eq!(
9459        unsafe { &(*(::std::ptr::null::<nk_style_selectable>())).draw_end as *const _ as usize },
9460        272usize,
9461        concat!(
9462            "Offset of field: ",
9463            stringify!(nk_style_selectable),
9464            "::",
9465            stringify!(draw_end)
9466        )
9467    );
9468}
9469impl Default for nk_style_selectable {
9470    fn default() -> Self {
9471        unsafe { ::std::mem::zeroed() }
9472    }
9473}
9474#[repr(C)]
9475#[derive(Copy, Clone)]
9476pub struct nk_style_slider {
9477    pub normal: nk_style_item,
9478    pub hover: nk_style_item,
9479    pub active: nk_style_item,
9480    pub border_color: nk_color,
9481    pub bar_normal: nk_color,
9482    pub bar_hover: nk_color,
9483    pub bar_active: nk_color,
9484    pub bar_filled: nk_color,
9485    pub cursor_normal: nk_style_item,
9486    pub cursor_hover: nk_style_item,
9487    pub cursor_active: nk_style_item,
9488    pub border: f32,
9489    pub rounding: f32,
9490    pub bar_height: f32,
9491    pub padding: nk_vec2,
9492    pub spacing: nk_vec2,
9493    pub cursor_size: nk_vec2,
9494    pub show_buttons: ::std::os::raw::c_int,
9495    pub inc_button: nk_style_button,
9496    pub dec_button: nk_style_button,
9497    pub inc_symbol: nk_symbol_type,
9498    pub dec_symbol: nk_symbol_type,
9499    pub userdata: nk_handle,
9500    pub draw_begin:
9501        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
9502    pub draw_end:
9503        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
9504}
9505#[test]
9506fn bindgen_test_layout_nk_style_slider() {
9507    assert_eq!(
9508        ::std::mem::size_of::<nk_style_slider>(),
9509        640usize,
9510        concat!("Size of: ", stringify!(nk_style_slider))
9511    );
9512    assert_eq!(
9513        ::std::mem::align_of::<nk_style_slider>(),
9514        8usize,
9515        concat!("Alignment of ", stringify!(nk_style_slider))
9516    );
9517    assert_eq!(
9518        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).normal as *const _ as usize },
9519        0usize,
9520        concat!(
9521            "Offset of field: ",
9522            stringify!(nk_style_slider),
9523            "::",
9524            stringify!(normal)
9525        )
9526    );
9527    assert_eq!(
9528        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).hover as *const _ as usize },
9529        32usize,
9530        concat!(
9531            "Offset of field: ",
9532            stringify!(nk_style_slider),
9533            "::",
9534            stringify!(hover)
9535        )
9536    );
9537    assert_eq!(
9538        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).active as *const _ as usize },
9539        64usize,
9540        concat!(
9541            "Offset of field: ",
9542            stringify!(nk_style_slider),
9543            "::",
9544            stringify!(active)
9545        )
9546    );
9547    assert_eq!(
9548        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).border_color as *const _ as usize },
9549        96usize,
9550        concat!(
9551            "Offset of field: ",
9552            stringify!(nk_style_slider),
9553            "::",
9554            stringify!(border_color)
9555        )
9556    );
9557    assert_eq!(
9558        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).bar_normal as *const _ as usize },
9559        100usize,
9560        concat!(
9561            "Offset of field: ",
9562            stringify!(nk_style_slider),
9563            "::",
9564            stringify!(bar_normal)
9565        )
9566    );
9567    assert_eq!(
9568        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).bar_hover as *const _ as usize },
9569        104usize,
9570        concat!(
9571            "Offset of field: ",
9572            stringify!(nk_style_slider),
9573            "::",
9574            stringify!(bar_hover)
9575        )
9576    );
9577    assert_eq!(
9578        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).bar_active as *const _ as usize },
9579        108usize,
9580        concat!(
9581            "Offset of field: ",
9582            stringify!(nk_style_slider),
9583            "::",
9584            stringify!(bar_active)
9585        )
9586    );
9587    assert_eq!(
9588        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).bar_filled as *const _ as usize },
9589        112usize,
9590        concat!(
9591            "Offset of field: ",
9592            stringify!(nk_style_slider),
9593            "::",
9594            stringify!(bar_filled)
9595        )
9596    );
9597    assert_eq!(
9598        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).cursor_normal as *const _ as usize },
9599        120usize,
9600        concat!(
9601            "Offset of field: ",
9602            stringify!(nk_style_slider),
9603            "::",
9604            stringify!(cursor_normal)
9605        )
9606    );
9607    assert_eq!(
9608        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).cursor_hover as *const _ as usize },
9609        152usize,
9610        concat!(
9611            "Offset of field: ",
9612            stringify!(nk_style_slider),
9613            "::",
9614            stringify!(cursor_hover)
9615        )
9616    );
9617    assert_eq!(
9618        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).cursor_active as *const _ as usize },
9619        184usize,
9620        concat!(
9621            "Offset of field: ",
9622            stringify!(nk_style_slider),
9623            "::",
9624            stringify!(cursor_active)
9625        )
9626    );
9627    assert_eq!(
9628        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).border as *const _ as usize },
9629        216usize,
9630        concat!(
9631            "Offset of field: ",
9632            stringify!(nk_style_slider),
9633            "::",
9634            stringify!(border)
9635        )
9636    );
9637    assert_eq!(
9638        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).rounding as *const _ as usize },
9639        220usize,
9640        concat!(
9641            "Offset of field: ",
9642            stringify!(nk_style_slider),
9643            "::",
9644            stringify!(rounding)
9645        )
9646    );
9647    assert_eq!(
9648        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).bar_height as *const _ as usize },
9649        224usize,
9650        concat!(
9651            "Offset of field: ",
9652            stringify!(nk_style_slider),
9653            "::",
9654            stringify!(bar_height)
9655        )
9656    );
9657    assert_eq!(
9658        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).padding as *const _ as usize },
9659        228usize,
9660        concat!(
9661            "Offset of field: ",
9662            stringify!(nk_style_slider),
9663            "::",
9664            stringify!(padding)
9665        )
9666    );
9667    assert_eq!(
9668        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).spacing as *const _ as usize },
9669        236usize,
9670        concat!(
9671            "Offset of field: ",
9672            stringify!(nk_style_slider),
9673            "::",
9674            stringify!(spacing)
9675        )
9676    );
9677    assert_eq!(
9678        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).cursor_size as *const _ as usize },
9679        244usize,
9680        concat!(
9681            "Offset of field: ",
9682            stringify!(nk_style_slider),
9683            "::",
9684            stringify!(cursor_size)
9685        )
9686    );
9687    assert_eq!(
9688        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).show_buttons as *const _ as usize },
9689        252usize,
9690        concat!(
9691            "Offset of field: ",
9692            stringify!(nk_style_slider),
9693            "::",
9694            stringify!(show_buttons)
9695        )
9696    );
9697    assert_eq!(
9698        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).inc_button as *const _ as usize },
9699        256usize,
9700        concat!(
9701            "Offset of field: ",
9702            stringify!(nk_style_slider),
9703            "::",
9704            stringify!(inc_button)
9705        )
9706    );
9707    assert_eq!(
9708        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).dec_button as *const _ as usize },
9709        432usize,
9710        concat!(
9711            "Offset of field: ",
9712            stringify!(nk_style_slider),
9713            "::",
9714            stringify!(dec_button)
9715        )
9716    );
9717    assert_eq!(
9718        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).inc_symbol as *const _ as usize },
9719        608usize,
9720        concat!(
9721            "Offset of field: ",
9722            stringify!(nk_style_slider),
9723            "::",
9724            stringify!(inc_symbol)
9725        )
9726    );
9727    assert_eq!(
9728        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).dec_symbol as *const _ as usize },
9729        612usize,
9730        concat!(
9731            "Offset of field: ",
9732            stringify!(nk_style_slider),
9733            "::",
9734            stringify!(dec_symbol)
9735        )
9736    );
9737    assert_eq!(
9738        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).userdata as *const _ as usize },
9739        616usize,
9740        concat!(
9741            "Offset of field: ",
9742            stringify!(nk_style_slider),
9743            "::",
9744            stringify!(userdata)
9745        )
9746    );
9747    assert_eq!(
9748        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).draw_begin as *const _ as usize },
9749        624usize,
9750        concat!(
9751            "Offset of field: ",
9752            stringify!(nk_style_slider),
9753            "::",
9754            stringify!(draw_begin)
9755        )
9756    );
9757    assert_eq!(
9758        unsafe { &(*(::std::ptr::null::<nk_style_slider>())).draw_end as *const _ as usize },
9759        632usize,
9760        concat!(
9761            "Offset of field: ",
9762            stringify!(nk_style_slider),
9763            "::",
9764            stringify!(draw_end)
9765        )
9766    );
9767}
9768impl Default for nk_style_slider {
9769    fn default() -> Self {
9770        unsafe { ::std::mem::zeroed() }
9771    }
9772}
9773#[repr(C)]
9774#[derive(Copy, Clone)]
9775pub struct nk_style_progress {
9776    pub normal: nk_style_item,
9777    pub hover: nk_style_item,
9778    pub active: nk_style_item,
9779    pub border_color: nk_color,
9780    pub cursor_normal: nk_style_item,
9781    pub cursor_hover: nk_style_item,
9782    pub cursor_active: nk_style_item,
9783    pub cursor_border_color: nk_color,
9784    pub rounding: f32,
9785    pub border: f32,
9786    pub cursor_border: f32,
9787    pub cursor_rounding: f32,
9788    pub padding: nk_vec2,
9789    pub userdata: nk_handle,
9790    pub draw_begin:
9791        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
9792    pub draw_end:
9793        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
9794}
9795#[test]
9796fn bindgen_test_layout_nk_style_progress() {
9797    assert_eq!(
9798        ::std::mem::size_of::<nk_style_progress>(),
9799        256usize,
9800        concat!("Size of: ", stringify!(nk_style_progress))
9801    );
9802    assert_eq!(
9803        ::std::mem::align_of::<nk_style_progress>(),
9804        8usize,
9805        concat!("Alignment of ", stringify!(nk_style_progress))
9806    );
9807    assert_eq!(
9808        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).normal as *const _ as usize },
9809        0usize,
9810        concat!(
9811            "Offset of field: ",
9812            stringify!(nk_style_progress),
9813            "::",
9814            stringify!(normal)
9815        )
9816    );
9817    assert_eq!(
9818        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).hover as *const _ as usize },
9819        32usize,
9820        concat!(
9821            "Offset of field: ",
9822            stringify!(nk_style_progress),
9823            "::",
9824            stringify!(hover)
9825        )
9826    );
9827    assert_eq!(
9828        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).active as *const _ as usize },
9829        64usize,
9830        concat!(
9831            "Offset of field: ",
9832            stringify!(nk_style_progress),
9833            "::",
9834            stringify!(active)
9835        )
9836    );
9837    assert_eq!(
9838        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).border_color as *const _ as usize },
9839        96usize,
9840        concat!(
9841            "Offset of field: ",
9842            stringify!(nk_style_progress),
9843            "::",
9844            stringify!(border_color)
9845        )
9846    );
9847    assert_eq!(
9848        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).cursor_normal as *const _ as usize },
9849        104usize,
9850        concat!(
9851            "Offset of field: ",
9852            stringify!(nk_style_progress),
9853            "::",
9854            stringify!(cursor_normal)
9855        )
9856    );
9857    assert_eq!(
9858        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).cursor_hover as *const _ as usize },
9859        136usize,
9860        concat!(
9861            "Offset of field: ",
9862            stringify!(nk_style_progress),
9863            "::",
9864            stringify!(cursor_hover)
9865        )
9866    );
9867    assert_eq!(
9868        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).cursor_active as *const _ as usize },
9869        168usize,
9870        concat!(
9871            "Offset of field: ",
9872            stringify!(nk_style_progress),
9873            "::",
9874            stringify!(cursor_active)
9875        )
9876    );
9877    assert_eq!(
9878        unsafe {
9879            &(*(::std::ptr::null::<nk_style_progress>())).cursor_border_color as *const _ as usize
9880        },
9881        200usize,
9882        concat!(
9883            "Offset of field: ",
9884            stringify!(nk_style_progress),
9885            "::",
9886            stringify!(cursor_border_color)
9887        )
9888    );
9889    assert_eq!(
9890        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).rounding as *const _ as usize },
9891        204usize,
9892        concat!(
9893            "Offset of field: ",
9894            stringify!(nk_style_progress),
9895            "::",
9896            stringify!(rounding)
9897        )
9898    );
9899    assert_eq!(
9900        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).border as *const _ as usize },
9901        208usize,
9902        concat!(
9903            "Offset of field: ",
9904            stringify!(nk_style_progress),
9905            "::",
9906            stringify!(border)
9907        )
9908    );
9909    assert_eq!(
9910        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).cursor_border as *const _ as usize },
9911        212usize,
9912        concat!(
9913            "Offset of field: ",
9914            stringify!(nk_style_progress),
9915            "::",
9916            stringify!(cursor_border)
9917        )
9918    );
9919    assert_eq!(
9920        unsafe {
9921            &(*(::std::ptr::null::<nk_style_progress>())).cursor_rounding as *const _ as usize
9922        },
9923        216usize,
9924        concat!(
9925            "Offset of field: ",
9926            stringify!(nk_style_progress),
9927            "::",
9928            stringify!(cursor_rounding)
9929        )
9930    );
9931    assert_eq!(
9932        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).padding as *const _ as usize },
9933        220usize,
9934        concat!(
9935            "Offset of field: ",
9936            stringify!(nk_style_progress),
9937            "::",
9938            stringify!(padding)
9939        )
9940    );
9941    assert_eq!(
9942        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).userdata as *const _ as usize },
9943        232usize,
9944        concat!(
9945            "Offset of field: ",
9946            stringify!(nk_style_progress),
9947            "::",
9948            stringify!(userdata)
9949        )
9950    );
9951    assert_eq!(
9952        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).draw_begin as *const _ as usize },
9953        240usize,
9954        concat!(
9955            "Offset of field: ",
9956            stringify!(nk_style_progress),
9957            "::",
9958            stringify!(draw_begin)
9959        )
9960    );
9961    assert_eq!(
9962        unsafe { &(*(::std::ptr::null::<nk_style_progress>())).draw_end as *const _ as usize },
9963        248usize,
9964        concat!(
9965            "Offset of field: ",
9966            stringify!(nk_style_progress),
9967            "::",
9968            stringify!(draw_end)
9969        )
9970    );
9971}
9972impl Default for nk_style_progress {
9973    fn default() -> Self {
9974        unsafe { ::std::mem::zeroed() }
9975    }
9976}
9977#[repr(C)]
9978#[derive(Copy, Clone)]
9979pub struct nk_style_scrollbar {
9980    pub normal: nk_style_item,
9981    pub hover: nk_style_item,
9982    pub active: nk_style_item,
9983    pub border_color: nk_color,
9984    pub cursor_normal: nk_style_item,
9985    pub cursor_hover: nk_style_item,
9986    pub cursor_active: nk_style_item,
9987    pub cursor_border_color: nk_color,
9988    pub border: f32,
9989    pub rounding: f32,
9990    pub border_cursor: f32,
9991    pub rounding_cursor: f32,
9992    pub padding: nk_vec2,
9993    pub show_buttons: ::std::os::raw::c_int,
9994    pub inc_button: nk_style_button,
9995    pub dec_button: nk_style_button,
9996    pub inc_symbol: nk_symbol_type,
9997    pub dec_symbol: nk_symbol_type,
9998    pub userdata: nk_handle,
9999    pub draw_begin:
10000        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
10001    pub draw_end:
10002        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
10003}
10004#[test]
10005fn bindgen_test_layout_nk_style_scrollbar() {
10006    assert_eq!(
10007        ::std::mem::size_of::<nk_style_scrollbar>(),
10008        616usize,
10009        concat!("Size of: ", stringify!(nk_style_scrollbar))
10010    );
10011    assert_eq!(
10012        ::std::mem::align_of::<nk_style_scrollbar>(),
10013        8usize,
10014        concat!("Alignment of ", stringify!(nk_style_scrollbar))
10015    );
10016    assert_eq!(
10017        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).normal as *const _ as usize },
10018        0usize,
10019        concat!(
10020            "Offset of field: ",
10021            stringify!(nk_style_scrollbar),
10022            "::",
10023            stringify!(normal)
10024        )
10025    );
10026    assert_eq!(
10027        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).hover as *const _ as usize },
10028        32usize,
10029        concat!(
10030            "Offset of field: ",
10031            stringify!(nk_style_scrollbar),
10032            "::",
10033            stringify!(hover)
10034        )
10035    );
10036    assert_eq!(
10037        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).active as *const _ as usize },
10038        64usize,
10039        concat!(
10040            "Offset of field: ",
10041            stringify!(nk_style_scrollbar),
10042            "::",
10043            stringify!(active)
10044        )
10045    );
10046    assert_eq!(
10047        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).border_color as *const _ as usize },
10048        96usize,
10049        concat!(
10050            "Offset of field: ",
10051            stringify!(nk_style_scrollbar),
10052            "::",
10053            stringify!(border_color)
10054        )
10055    );
10056    assert_eq!(
10057        unsafe {
10058            &(*(::std::ptr::null::<nk_style_scrollbar>())).cursor_normal as *const _ as usize
10059        },
10060        104usize,
10061        concat!(
10062            "Offset of field: ",
10063            stringify!(nk_style_scrollbar),
10064            "::",
10065            stringify!(cursor_normal)
10066        )
10067    );
10068    assert_eq!(
10069        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).cursor_hover as *const _ as usize },
10070        136usize,
10071        concat!(
10072            "Offset of field: ",
10073            stringify!(nk_style_scrollbar),
10074            "::",
10075            stringify!(cursor_hover)
10076        )
10077    );
10078    assert_eq!(
10079        unsafe {
10080            &(*(::std::ptr::null::<nk_style_scrollbar>())).cursor_active as *const _ as usize
10081        },
10082        168usize,
10083        concat!(
10084            "Offset of field: ",
10085            stringify!(nk_style_scrollbar),
10086            "::",
10087            stringify!(cursor_active)
10088        )
10089    );
10090    assert_eq!(
10091        unsafe {
10092            &(*(::std::ptr::null::<nk_style_scrollbar>())).cursor_border_color as *const _ as usize
10093        },
10094        200usize,
10095        concat!(
10096            "Offset of field: ",
10097            stringify!(nk_style_scrollbar),
10098            "::",
10099            stringify!(cursor_border_color)
10100        )
10101    );
10102    assert_eq!(
10103        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).border as *const _ as usize },
10104        204usize,
10105        concat!(
10106            "Offset of field: ",
10107            stringify!(nk_style_scrollbar),
10108            "::",
10109            stringify!(border)
10110        )
10111    );
10112    assert_eq!(
10113        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).rounding as *const _ as usize },
10114        208usize,
10115        concat!(
10116            "Offset of field: ",
10117            stringify!(nk_style_scrollbar),
10118            "::",
10119            stringify!(rounding)
10120        )
10121    );
10122    assert_eq!(
10123        unsafe {
10124            &(*(::std::ptr::null::<nk_style_scrollbar>())).border_cursor as *const _ as usize
10125        },
10126        212usize,
10127        concat!(
10128            "Offset of field: ",
10129            stringify!(nk_style_scrollbar),
10130            "::",
10131            stringify!(border_cursor)
10132        )
10133    );
10134    assert_eq!(
10135        unsafe {
10136            &(*(::std::ptr::null::<nk_style_scrollbar>())).rounding_cursor as *const _ as usize
10137        },
10138        216usize,
10139        concat!(
10140            "Offset of field: ",
10141            stringify!(nk_style_scrollbar),
10142            "::",
10143            stringify!(rounding_cursor)
10144        )
10145    );
10146    assert_eq!(
10147        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).padding as *const _ as usize },
10148        220usize,
10149        concat!(
10150            "Offset of field: ",
10151            stringify!(nk_style_scrollbar),
10152            "::",
10153            stringify!(padding)
10154        )
10155    );
10156    assert_eq!(
10157        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).show_buttons as *const _ as usize },
10158        228usize,
10159        concat!(
10160            "Offset of field: ",
10161            stringify!(nk_style_scrollbar),
10162            "::",
10163            stringify!(show_buttons)
10164        )
10165    );
10166    assert_eq!(
10167        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).inc_button as *const _ as usize },
10168        232usize,
10169        concat!(
10170            "Offset of field: ",
10171            stringify!(nk_style_scrollbar),
10172            "::",
10173            stringify!(inc_button)
10174        )
10175    );
10176    assert_eq!(
10177        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).dec_button as *const _ as usize },
10178        408usize,
10179        concat!(
10180            "Offset of field: ",
10181            stringify!(nk_style_scrollbar),
10182            "::",
10183            stringify!(dec_button)
10184        )
10185    );
10186    assert_eq!(
10187        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).inc_symbol as *const _ as usize },
10188        584usize,
10189        concat!(
10190            "Offset of field: ",
10191            stringify!(nk_style_scrollbar),
10192            "::",
10193            stringify!(inc_symbol)
10194        )
10195    );
10196    assert_eq!(
10197        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).dec_symbol as *const _ as usize },
10198        588usize,
10199        concat!(
10200            "Offset of field: ",
10201            stringify!(nk_style_scrollbar),
10202            "::",
10203            stringify!(dec_symbol)
10204        )
10205    );
10206    assert_eq!(
10207        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).userdata as *const _ as usize },
10208        592usize,
10209        concat!(
10210            "Offset of field: ",
10211            stringify!(nk_style_scrollbar),
10212            "::",
10213            stringify!(userdata)
10214        )
10215    );
10216    assert_eq!(
10217        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).draw_begin as *const _ as usize },
10218        600usize,
10219        concat!(
10220            "Offset of field: ",
10221            stringify!(nk_style_scrollbar),
10222            "::",
10223            stringify!(draw_begin)
10224        )
10225    );
10226    assert_eq!(
10227        unsafe { &(*(::std::ptr::null::<nk_style_scrollbar>())).draw_end as *const _ as usize },
10228        608usize,
10229        concat!(
10230            "Offset of field: ",
10231            stringify!(nk_style_scrollbar),
10232            "::",
10233            stringify!(draw_end)
10234        )
10235    );
10236}
10237impl Default for nk_style_scrollbar {
10238    fn default() -> Self {
10239        unsafe { ::std::mem::zeroed() }
10240    }
10241}
10242#[repr(C)]
10243#[derive(Copy, Clone)]
10244pub struct nk_style_edit {
10245    pub normal: nk_style_item,
10246    pub hover: nk_style_item,
10247    pub active: nk_style_item,
10248    pub border_color: nk_color,
10249    pub scrollbar: nk_style_scrollbar,
10250    pub cursor_normal: nk_color,
10251    pub cursor_hover: nk_color,
10252    pub cursor_text_normal: nk_color,
10253    pub cursor_text_hover: nk_color,
10254    pub text_normal: nk_color,
10255    pub text_hover: nk_color,
10256    pub text_active: nk_color,
10257    pub selected_normal: nk_color,
10258    pub selected_hover: nk_color,
10259    pub selected_text_normal: nk_color,
10260    pub selected_text_hover: nk_color,
10261    pub border: f32,
10262    pub rounding: f32,
10263    pub cursor_size: f32,
10264    pub scrollbar_size: nk_vec2,
10265    pub padding: nk_vec2,
10266    pub row_padding: f32,
10267}
10268#[test]
10269fn bindgen_test_layout_nk_style_edit() {
10270    assert_eq!(
10271        ::std::mem::size_of::<nk_style_edit>(),
10272        800usize,
10273        concat!("Size of: ", stringify!(nk_style_edit))
10274    );
10275    assert_eq!(
10276        ::std::mem::align_of::<nk_style_edit>(),
10277        8usize,
10278        concat!("Alignment of ", stringify!(nk_style_edit))
10279    );
10280    assert_eq!(
10281        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).normal as *const _ as usize },
10282        0usize,
10283        concat!(
10284            "Offset of field: ",
10285            stringify!(nk_style_edit),
10286            "::",
10287            stringify!(normal)
10288        )
10289    );
10290    assert_eq!(
10291        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).hover as *const _ as usize },
10292        32usize,
10293        concat!(
10294            "Offset of field: ",
10295            stringify!(nk_style_edit),
10296            "::",
10297            stringify!(hover)
10298        )
10299    );
10300    assert_eq!(
10301        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).active as *const _ as usize },
10302        64usize,
10303        concat!(
10304            "Offset of field: ",
10305            stringify!(nk_style_edit),
10306            "::",
10307            stringify!(active)
10308        )
10309    );
10310    assert_eq!(
10311        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).border_color as *const _ as usize },
10312        96usize,
10313        concat!(
10314            "Offset of field: ",
10315            stringify!(nk_style_edit),
10316            "::",
10317            stringify!(border_color)
10318        )
10319    );
10320    assert_eq!(
10321        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).scrollbar as *const _ as usize },
10322        104usize,
10323        concat!(
10324            "Offset of field: ",
10325            stringify!(nk_style_edit),
10326            "::",
10327            stringify!(scrollbar)
10328        )
10329    );
10330    assert_eq!(
10331        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).cursor_normal as *const _ as usize },
10332        720usize,
10333        concat!(
10334            "Offset of field: ",
10335            stringify!(nk_style_edit),
10336            "::",
10337            stringify!(cursor_normal)
10338        )
10339    );
10340    assert_eq!(
10341        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).cursor_hover as *const _ as usize },
10342        724usize,
10343        concat!(
10344            "Offset of field: ",
10345            stringify!(nk_style_edit),
10346            "::",
10347            stringify!(cursor_hover)
10348        )
10349    );
10350    assert_eq!(
10351        unsafe {
10352            &(*(::std::ptr::null::<nk_style_edit>())).cursor_text_normal as *const _ as usize
10353        },
10354        728usize,
10355        concat!(
10356            "Offset of field: ",
10357            stringify!(nk_style_edit),
10358            "::",
10359            stringify!(cursor_text_normal)
10360        )
10361    );
10362    assert_eq!(
10363        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).cursor_text_hover as *const _ as usize },
10364        732usize,
10365        concat!(
10366            "Offset of field: ",
10367            stringify!(nk_style_edit),
10368            "::",
10369            stringify!(cursor_text_hover)
10370        )
10371    );
10372    assert_eq!(
10373        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).text_normal as *const _ as usize },
10374        736usize,
10375        concat!(
10376            "Offset of field: ",
10377            stringify!(nk_style_edit),
10378            "::",
10379            stringify!(text_normal)
10380        )
10381    );
10382    assert_eq!(
10383        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).text_hover as *const _ as usize },
10384        740usize,
10385        concat!(
10386            "Offset of field: ",
10387            stringify!(nk_style_edit),
10388            "::",
10389            stringify!(text_hover)
10390        )
10391    );
10392    assert_eq!(
10393        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).text_active as *const _ as usize },
10394        744usize,
10395        concat!(
10396            "Offset of field: ",
10397            stringify!(nk_style_edit),
10398            "::",
10399            stringify!(text_active)
10400        )
10401    );
10402    assert_eq!(
10403        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).selected_normal as *const _ as usize },
10404        748usize,
10405        concat!(
10406            "Offset of field: ",
10407            stringify!(nk_style_edit),
10408            "::",
10409            stringify!(selected_normal)
10410        )
10411    );
10412    assert_eq!(
10413        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).selected_hover as *const _ as usize },
10414        752usize,
10415        concat!(
10416            "Offset of field: ",
10417            stringify!(nk_style_edit),
10418            "::",
10419            stringify!(selected_hover)
10420        )
10421    );
10422    assert_eq!(
10423        unsafe {
10424            &(*(::std::ptr::null::<nk_style_edit>())).selected_text_normal as *const _ as usize
10425        },
10426        756usize,
10427        concat!(
10428            "Offset of field: ",
10429            stringify!(nk_style_edit),
10430            "::",
10431            stringify!(selected_text_normal)
10432        )
10433    );
10434    assert_eq!(
10435        unsafe {
10436            &(*(::std::ptr::null::<nk_style_edit>())).selected_text_hover as *const _ as usize
10437        },
10438        760usize,
10439        concat!(
10440            "Offset of field: ",
10441            stringify!(nk_style_edit),
10442            "::",
10443            stringify!(selected_text_hover)
10444        )
10445    );
10446    assert_eq!(
10447        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).border as *const _ as usize },
10448        764usize,
10449        concat!(
10450            "Offset of field: ",
10451            stringify!(nk_style_edit),
10452            "::",
10453            stringify!(border)
10454        )
10455    );
10456    assert_eq!(
10457        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).rounding as *const _ as usize },
10458        768usize,
10459        concat!(
10460            "Offset of field: ",
10461            stringify!(nk_style_edit),
10462            "::",
10463            stringify!(rounding)
10464        )
10465    );
10466    assert_eq!(
10467        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).cursor_size as *const _ as usize },
10468        772usize,
10469        concat!(
10470            "Offset of field: ",
10471            stringify!(nk_style_edit),
10472            "::",
10473            stringify!(cursor_size)
10474        )
10475    );
10476    assert_eq!(
10477        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).scrollbar_size as *const _ as usize },
10478        776usize,
10479        concat!(
10480            "Offset of field: ",
10481            stringify!(nk_style_edit),
10482            "::",
10483            stringify!(scrollbar_size)
10484        )
10485    );
10486    assert_eq!(
10487        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).padding as *const _ as usize },
10488        784usize,
10489        concat!(
10490            "Offset of field: ",
10491            stringify!(nk_style_edit),
10492            "::",
10493            stringify!(padding)
10494        )
10495    );
10496    assert_eq!(
10497        unsafe { &(*(::std::ptr::null::<nk_style_edit>())).row_padding as *const _ as usize },
10498        792usize,
10499        concat!(
10500            "Offset of field: ",
10501            stringify!(nk_style_edit),
10502            "::",
10503            stringify!(row_padding)
10504        )
10505    );
10506}
10507impl Default for nk_style_edit {
10508    fn default() -> Self {
10509        unsafe { ::std::mem::zeroed() }
10510    }
10511}
10512#[repr(C)]
10513#[derive(Copy, Clone)]
10514pub struct nk_style_property {
10515    pub normal: nk_style_item,
10516    pub hover: nk_style_item,
10517    pub active: nk_style_item,
10518    pub border_color: nk_color,
10519    pub label_normal: nk_color,
10520    pub label_hover: nk_color,
10521    pub label_active: nk_color,
10522    pub sym_left: nk_symbol_type,
10523    pub sym_right: nk_symbol_type,
10524    pub border: f32,
10525    pub rounding: f32,
10526    pub padding: nk_vec2,
10527    pub edit: nk_style_edit,
10528    pub inc_button: nk_style_button,
10529    pub dec_button: nk_style_button,
10530    pub userdata: nk_handle,
10531    pub draw_begin:
10532        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
10533    pub draw_end:
10534        ::std::option::Option<unsafe extern "C" fn(arg1: *mut nk_command_buffer, arg2: nk_handle)>,
10535}
10536#[test]
10537fn bindgen_test_layout_nk_style_property() {
10538    assert_eq!(
10539        ::std::mem::size_of::<nk_style_property>(),
10540        1312usize,
10541        concat!("Size of: ", stringify!(nk_style_property))
10542    );
10543    assert_eq!(
10544        ::std::mem::align_of::<nk_style_property>(),
10545        8usize,
10546        concat!("Alignment of ", stringify!(nk_style_property))
10547    );
10548    assert_eq!(
10549        unsafe { &(*(::std::ptr::null::<nk_style_property>())).normal as *const _ as usize },
10550        0usize,
10551        concat!(
10552            "Offset of field: ",
10553            stringify!(nk_style_property),
10554            "::",
10555            stringify!(normal)
10556        )
10557    );
10558    assert_eq!(
10559        unsafe { &(*(::std::ptr::null::<nk_style_property>())).hover as *const _ as usize },
10560        32usize,
10561        concat!(
10562            "Offset of field: ",
10563            stringify!(nk_style_property),
10564            "::",
10565            stringify!(hover)
10566        )
10567    );
10568    assert_eq!(
10569        unsafe { &(*(::std::ptr::null::<nk_style_property>())).active as *const _ as usize },
10570        64usize,
10571        concat!(
10572            "Offset of field: ",
10573            stringify!(nk_style_property),
10574            "::",
10575            stringify!(active)
10576        )
10577    );
10578    assert_eq!(
10579        unsafe { &(*(::std::ptr::null::<nk_style_property>())).border_color as *const _ as usize },
10580        96usize,
10581        concat!(
10582            "Offset of field: ",
10583            stringify!(nk_style_property),
10584            "::",
10585            stringify!(border_color)
10586        )
10587    );
10588    assert_eq!(
10589        unsafe { &(*(::std::ptr::null::<nk_style_property>())).label_normal as *const _ as usize },
10590        100usize,
10591        concat!(
10592            "Offset of field: ",
10593            stringify!(nk_style_property),
10594            "::",
10595            stringify!(label_normal)
10596        )
10597    );
10598    assert_eq!(
10599        unsafe { &(*(::std::ptr::null::<nk_style_property>())).label_hover as *const _ as usize },
10600        104usize,
10601        concat!(
10602            "Offset of field: ",
10603            stringify!(nk_style_property),
10604            "::",
10605            stringify!(label_hover)
10606        )
10607    );
10608    assert_eq!(
10609        unsafe { &(*(::std::ptr::null::<nk_style_property>())).label_active as *const _ as usize },
10610        108usize,
10611        concat!(
10612            "Offset of field: ",
10613            stringify!(nk_style_property),
10614            "::",
10615            stringify!(label_active)
10616        )
10617    );
10618    assert_eq!(
10619        unsafe { &(*(::std::ptr::null::<nk_style_property>())).sym_left as *const _ as usize },
10620        112usize,
10621        concat!(
10622            "Offset of field: ",
10623            stringify!(nk_style_property),
10624            "::",
10625            stringify!(sym_left)
10626        )
10627    );
10628    assert_eq!(
10629        unsafe { &(*(::std::ptr::null::<nk_style_property>())).sym_right as *const _ as usize },
10630        116usize,
10631        concat!(
10632            "Offset of field: ",
10633            stringify!(nk_style_property),
10634            "::",
10635            stringify!(sym_right)
10636        )
10637    );
10638    assert_eq!(
10639        unsafe { &(*(::std::ptr::null::<nk_style_property>())).border as *const _ as usize },
10640        120usize,
10641        concat!(
10642            "Offset of field: ",
10643            stringify!(nk_style_property),
10644            "::",
10645            stringify!(border)
10646        )
10647    );
10648    assert_eq!(
10649        unsafe { &(*(::std::ptr::null::<nk_style_property>())).rounding as *const _ as usize },
10650        124usize,
10651        concat!(
10652            "Offset of field: ",
10653            stringify!(nk_style_property),
10654            "::",
10655            stringify!(rounding)
10656        )
10657    );
10658    assert_eq!(
10659        unsafe { &(*(::std::ptr::null::<nk_style_property>())).padding as *const _ as usize },
10660        128usize,
10661        concat!(
10662            "Offset of field: ",
10663            stringify!(nk_style_property),
10664            "::",
10665            stringify!(padding)
10666        )
10667    );
10668    assert_eq!(
10669        unsafe { &(*(::std::ptr::null::<nk_style_property>())).edit as *const _ as usize },
10670        136usize,
10671        concat!(
10672            "Offset of field: ",
10673            stringify!(nk_style_property),
10674            "::",
10675            stringify!(edit)
10676        )
10677    );
10678    assert_eq!(
10679        unsafe { &(*(::std::ptr::null::<nk_style_property>())).inc_button as *const _ as usize },
10680        936usize,
10681        concat!(
10682            "Offset of field: ",
10683            stringify!(nk_style_property),
10684            "::",
10685            stringify!(inc_button)
10686        )
10687    );
10688    assert_eq!(
10689        unsafe { &(*(::std::ptr::null::<nk_style_property>())).dec_button as *const _ as usize },
10690        1112usize,
10691        concat!(
10692            "Offset of field: ",
10693            stringify!(nk_style_property),
10694            "::",
10695            stringify!(dec_button)
10696        )
10697    );
10698    assert_eq!(
10699        unsafe { &(*(::std::ptr::null::<nk_style_property>())).userdata as *const _ as usize },
10700        1288usize,
10701        concat!(
10702            "Offset of field: ",
10703            stringify!(nk_style_property),
10704            "::",
10705            stringify!(userdata)
10706        )
10707    );
10708    assert_eq!(
10709        unsafe { &(*(::std::ptr::null::<nk_style_property>())).draw_begin as *const _ as usize },
10710        1296usize,
10711        concat!(
10712            "Offset of field: ",
10713            stringify!(nk_style_property),
10714            "::",
10715            stringify!(draw_begin)
10716        )
10717    );
10718    assert_eq!(
10719        unsafe { &(*(::std::ptr::null::<nk_style_property>())).draw_end as *const _ as usize },
10720        1304usize,
10721        concat!(
10722            "Offset of field: ",
10723            stringify!(nk_style_property),
10724            "::",
10725            stringify!(draw_end)
10726        )
10727    );
10728}
10729impl Default for nk_style_property {
10730    fn default() -> Self {
10731        unsafe { ::std::mem::zeroed() }
10732    }
10733}
10734#[repr(C)]
10735#[derive(Copy, Clone)]
10736pub struct nk_style_chart {
10737    pub background: nk_style_item,
10738    pub border_color: nk_color,
10739    pub selected_color: nk_color,
10740    pub color: nk_color,
10741    pub border: f32,
10742    pub rounding: f32,
10743    pub padding: nk_vec2,
10744}
10745#[test]
10746fn bindgen_test_layout_nk_style_chart() {
10747    assert_eq!(
10748        ::std::mem::size_of::<nk_style_chart>(),
10749        64usize,
10750        concat!("Size of: ", stringify!(nk_style_chart))
10751    );
10752    assert_eq!(
10753        ::std::mem::align_of::<nk_style_chart>(),
10754        8usize,
10755        concat!("Alignment of ", stringify!(nk_style_chart))
10756    );
10757    assert_eq!(
10758        unsafe { &(*(::std::ptr::null::<nk_style_chart>())).background as *const _ as usize },
10759        0usize,
10760        concat!(
10761            "Offset of field: ",
10762            stringify!(nk_style_chart),
10763            "::",
10764            stringify!(background)
10765        )
10766    );
10767    assert_eq!(
10768        unsafe { &(*(::std::ptr::null::<nk_style_chart>())).border_color as *const _ as usize },
10769        32usize,
10770        concat!(
10771            "Offset of field: ",
10772            stringify!(nk_style_chart),
10773            "::",
10774            stringify!(border_color)
10775        )
10776    );
10777    assert_eq!(
10778        unsafe { &(*(::std::ptr::null::<nk_style_chart>())).selected_color as *const _ as usize },
10779        36usize,
10780        concat!(
10781            "Offset of field: ",
10782            stringify!(nk_style_chart),
10783            "::",
10784            stringify!(selected_color)
10785        )
10786    );
10787    assert_eq!(
10788        unsafe { &(*(::std::ptr::null::<nk_style_chart>())).color as *const _ as usize },
10789        40usize,
10790        concat!(
10791            "Offset of field: ",
10792            stringify!(nk_style_chart),
10793            "::",
10794            stringify!(color)
10795        )
10796    );
10797    assert_eq!(
10798        unsafe { &(*(::std::ptr::null::<nk_style_chart>())).border as *const _ as usize },
10799        44usize,
10800        concat!(
10801            "Offset of field: ",
10802            stringify!(nk_style_chart),
10803            "::",
10804            stringify!(border)
10805        )
10806    );
10807    assert_eq!(
10808        unsafe { &(*(::std::ptr::null::<nk_style_chart>())).rounding as *const _ as usize },
10809        48usize,
10810        concat!(
10811            "Offset of field: ",
10812            stringify!(nk_style_chart),
10813            "::",
10814            stringify!(rounding)
10815        )
10816    );
10817    assert_eq!(
10818        unsafe { &(*(::std::ptr::null::<nk_style_chart>())).padding as *const _ as usize },
10819        52usize,
10820        concat!(
10821            "Offset of field: ",
10822            stringify!(nk_style_chart),
10823            "::",
10824            stringify!(padding)
10825        )
10826    );
10827}
10828impl Default for nk_style_chart {
10829    fn default() -> Self {
10830        unsafe { ::std::mem::zeroed() }
10831    }
10832}
10833#[repr(C)]
10834#[derive(Copy, Clone)]
10835pub struct nk_style_combo {
10836    pub normal: nk_style_item,
10837    pub hover: nk_style_item,
10838    pub active: nk_style_item,
10839    pub border_color: nk_color,
10840    pub label_normal: nk_color,
10841    pub label_hover: nk_color,
10842    pub label_active: nk_color,
10843    pub symbol_normal: nk_color,
10844    pub symbol_hover: nk_color,
10845    pub symbol_active: nk_color,
10846    pub button: nk_style_button,
10847    pub sym_normal: nk_symbol_type,
10848    pub sym_hover: nk_symbol_type,
10849    pub sym_active: nk_symbol_type,
10850    pub border: f32,
10851    pub rounding: f32,
10852    pub content_padding: nk_vec2,
10853    pub button_padding: nk_vec2,
10854    pub spacing: nk_vec2,
10855}
10856#[test]
10857fn bindgen_test_layout_nk_style_combo() {
10858    assert_eq!(
10859        ::std::mem::size_of::<nk_style_combo>(),
10860        352usize,
10861        concat!("Size of: ", stringify!(nk_style_combo))
10862    );
10863    assert_eq!(
10864        ::std::mem::align_of::<nk_style_combo>(),
10865        8usize,
10866        concat!("Alignment of ", stringify!(nk_style_combo))
10867    );
10868    assert_eq!(
10869        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).normal as *const _ as usize },
10870        0usize,
10871        concat!(
10872            "Offset of field: ",
10873            stringify!(nk_style_combo),
10874            "::",
10875            stringify!(normal)
10876        )
10877    );
10878    assert_eq!(
10879        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).hover as *const _ as usize },
10880        32usize,
10881        concat!(
10882            "Offset of field: ",
10883            stringify!(nk_style_combo),
10884            "::",
10885            stringify!(hover)
10886        )
10887    );
10888    assert_eq!(
10889        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).active as *const _ as usize },
10890        64usize,
10891        concat!(
10892            "Offset of field: ",
10893            stringify!(nk_style_combo),
10894            "::",
10895            stringify!(active)
10896        )
10897    );
10898    assert_eq!(
10899        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).border_color as *const _ as usize },
10900        96usize,
10901        concat!(
10902            "Offset of field: ",
10903            stringify!(nk_style_combo),
10904            "::",
10905            stringify!(border_color)
10906        )
10907    );
10908    assert_eq!(
10909        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).label_normal as *const _ as usize },
10910        100usize,
10911        concat!(
10912            "Offset of field: ",
10913            stringify!(nk_style_combo),
10914            "::",
10915            stringify!(label_normal)
10916        )
10917    );
10918    assert_eq!(
10919        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).label_hover as *const _ as usize },
10920        104usize,
10921        concat!(
10922            "Offset of field: ",
10923            stringify!(nk_style_combo),
10924            "::",
10925            stringify!(label_hover)
10926        )
10927    );
10928    assert_eq!(
10929        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).label_active as *const _ as usize },
10930        108usize,
10931        concat!(
10932            "Offset of field: ",
10933            stringify!(nk_style_combo),
10934            "::",
10935            stringify!(label_active)
10936        )
10937    );
10938    assert_eq!(
10939        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).symbol_normal as *const _ as usize },
10940        112usize,
10941        concat!(
10942            "Offset of field: ",
10943            stringify!(nk_style_combo),
10944            "::",
10945            stringify!(symbol_normal)
10946        )
10947    );
10948    assert_eq!(
10949        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).symbol_hover as *const _ as usize },
10950        116usize,
10951        concat!(
10952            "Offset of field: ",
10953            stringify!(nk_style_combo),
10954            "::",
10955            stringify!(symbol_hover)
10956        )
10957    );
10958    assert_eq!(
10959        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).symbol_active as *const _ as usize },
10960        120usize,
10961        concat!(
10962            "Offset of field: ",
10963            stringify!(nk_style_combo),
10964            "::",
10965            stringify!(symbol_active)
10966        )
10967    );
10968    assert_eq!(
10969        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).button as *const _ as usize },
10970        128usize,
10971        concat!(
10972            "Offset of field: ",
10973            stringify!(nk_style_combo),
10974            "::",
10975            stringify!(button)
10976        )
10977    );
10978    assert_eq!(
10979        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).sym_normal as *const _ as usize },
10980        304usize,
10981        concat!(
10982            "Offset of field: ",
10983            stringify!(nk_style_combo),
10984            "::",
10985            stringify!(sym_normal)
10986        )
10987    );
10988    assert_eq!(
10989        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).sym_hover as *const _ as usize },
10990        308usize,
10991        concat!(
10992            "Offset of field: ",
10993            stringify!(nk_style_combo),
10994            "::",
10995            stringify!(sym_hover)
10996        )
10997    );
10998    assert_eq!(
10999        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).sym_active as *const _ as usize },
11000        312usize,
11001        concat!(
11002            "Offset of field: ",
11003            stringify!(nk_style_combo),
11004            "::",
11005            stringify!(sym_active)
11006        )
11007    );
11008    assert_eq!(
11009        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).border as *const _ as usize },
11010        316usize,
11011        concat!(
11012            "Offset of field: ",
11013            stringify!(nk_style_combo),
11014            "::",
11015            stringify!(border)
11016        )
11017    );
11018    assert_eq!(
11019        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).rounding as *const _ as usize },
11020        320usize,
11021        concat!(
11022            "Offset of field: ",
11023            stringify!(nk_style_combo),
11024            "::",
11025            stringify!(rounding)
11026        )
11027    );
11028    assert_eq!(
11029        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).content_padding as *const _ as usize },
11030        324usize,
11031        concat!(
11032            "Offset of field: ",
11033            stringify!(nk_style_combo),
11034            "::",
11035            stringify!(content_padding)
11036        )
11037    );
11038    assert_eq!(
11039        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).button_padding as *const _ as usize },
11040        332usize,
11041        concat!(
11042            "Offset of field: ",
11043            stringify!(nk_style_combo),
11044            "::",
11045            stringify!(button_padding)
11046        )
11047    );
11048    assert_eq!(
11049        unsafe { &(*(::std::ptr::null::<nk_style_combo>())).spacing as *const _ as usize },
11050        340usize,
11051        concat!(
11052            "Offset of field: ",
11053            stringify!(nk_style_combo),
11054            "::",
11055            stringify!(spacing)
11056        )
11057    );
11058}
11059impl Default for nk_style_combo {
11060    fn default() -> Self {
11061        unsafe { ::std::mem::zeroed() }
11062    }
11063}
11064#[repr(C)]
11065#[derive(Copy, Clone)]
11066pub struct nk_style_tab {
11067    pub background: nk_style_item,
11068    pub border_color: nk_color,
11069    pub text: nk_color,
11070    pub tab_maximize_button: nk_style_button,
11071    pub tab_minimize_button: nk_style_button,
11072    pub node_maximize_button: nk_style_button,
11073    pub node_minimize_button: nk_style_button,
11074    pub sym_minimize: nk_symbol_type,
11075    pub sym_maximize: nk_symbol_type,
11076    pub border: f32,
11077    pub rounding: f32,
11078    pub indent: f32,
11079    pub padding: nk_vec2,
11080    pub spacing: nk_vec2,
11081}
11082#[test]
11083fn bindgen_test_layout_nk_style_tab() {
11084    assert_eq!(
11085        ::std::mem::size_of::<nk_style_tab>(),
11086        784usize,
11087        concat!("Size of: ", stringify!(nk_style_tab))
11088    );
11089    assert_eq!(
11090        ::std::mem::align_of::<nk_style_tab>(),
11091        8usize,
11092        concat!("Alignment of ", stringify!(nk_style_tab))
11093    );
11094    assert_eq!(
11095        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).background as *const _ as usize },
11096        0usize,
11097        concat!(
11098            "Offset of field: ",
11099            stringify!(nk_style_tab),
11100            "::",
11101            stringify!(background)
11102        )
11103    );
11104    assert_eq!(
11105        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).border_color as *const _ as usize },
11106        32usize,
11107        concat!(
11108            "Offset of field: ",
11109            stringify!(nk_style_tab),
11110            "::",
11111            stringify!(border_color)
11112        )
11113    );
11114    assert_eq!(
11115        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).text as *const _ as usize },
11116        36usize,
11117        concat!(
11118            "Offset of field: ",
11119            stringify!(nk_style_tab),
11120            "::",
11121            stringify!(text)
11122        )
11123    );
11124    assert_eq!(
11125        unsafe {
11126            &(*(::std::ptr::null::<nk_style_tab>())).tab_maximize_button as *const _ as usize
11127        },
11128        40usize,
11129        concat!(
11130            "Offset of field: ",
11131            stringify!(nk_style_tab),
11132            "::",
11133            stringify!(tab_maximize_button)
11134        )
11135    );
11136    assert_eq!(
11137        unsafe {
11138            &(*(::std::ptr::null::<nk_style_tab>())).tab_minimize_button as *const _ as usize
11139        },
11140        216usize,
11141        concat!(
11142            "Offset of field: ",
11143            stringify!(nk_style_tab),
11144            "::",
11145            stringify!(tab_minimize_button)
11146        )
11147    );
11148    assert_eq!(
11149        unsafe {
11150            &(*(::std::ptr::null::<nk_style_tab>())).node_maximize_button as *const _ as usize
11151        },
11152        392usize,
11153        concat!(
11154            "Offset of field: ",
11155            stringify!(nk_style_tab),
11156            "::",
11157            stringify!(node_maximize_button)
11158        )
11159    );
11160    assert_eq!(
11161        unsafe {
11162            &(*(::std::ptr::null::<nk_style_tab>())).node_minimize_button as *const _ as usize
11163        },
11164        568usize,
11165        concat!(
11166            "Offset of field: ",
11167            stringify!(nk_style_tab),
11168            "::",
11169            stringify!(node_minimize_button)
11170        )
11171    );
11172    assert_eq!(
11173        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).sym_minimize as *const _ as usize },
11174        744usize,
11175        concat!(
11176            "Offset of field: ",
11177            stringify!(nk_style_tab),
11178            "::",
11179            stringify!(sym_minimize)
11180        )
11181    );
11182    assert_eq!(
11183        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).sym_maximize as *const _ as usize },
11184        748usize,
11185        concat!(
11186            "Offset of field: ",
11187            stringify!(nk_style_tab),
11188            "::",
11189            stringify!(sym_maximize)
11190        )
11191    );
11192    assert_eq!(
11193        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).border as *const _ as usize },
11194        752usize,
11195        concat!(
11196            "Offset of field: ",
11197            stringify!(nk_style_tab),
11198            "::",
11199            stringify!(border)
11200        )
11201    );
11202    assert_eq!(
11203        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).rounding as *const _ as usize },
11204        756usize,
11205        concat!(
11206            "Offset of field: ",
11207            stringify!(nk_style_tab),
11208            "::",
11209            stringify!(rounding)
11210        )
11211    );
11212    assert_eq!(
11213        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).indent as *const _ as usize },
11214        760usize,
11215        concat!(
11216            "Offset of field: ",
11217            stringify!(nk_style_tab),
11218            "::",
11219            stringify!(indent)
11220        )
11221    );
11222    assert_eq!(
11223        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).padding as *const _ as usize },
11224        764usize,
11225        concat!(
11226            "Offset of field: ",
11227            stringify!(nk_style_tab),
11228            "::",
11229            stringify!(padding)
11230        )
11231    );
11232    assert_eq!(
11233        unsafe { &(*(::std::ptr::null::<nk_style_tab>())).spacing as *const _ as usize },
11234        772usize,
11235        concat!(
11236            "Offset of field: ",
11237            stringify!(nk_style_tab),
11238            "::",
11239            stringify!(spacing)
11240        )
11241    );
11242}
11243impl Default for nk_style_tab {
11244    fn default() -> Self {
11245        unsafe { ::std::mem::zeroed() }
11246    }
11247}
11248pub const nk_style_header_align_NK_HEADER_LEFT: nk_style_header_align = 0;
11249pub const nk_style_header_align_NK_HEADER_RIGHT: nk_style_header_align = 1;
11250pub type nk_style_header_align = u32;
11251#[repr(C)]
11252#[derive(Copy, Clone)]
11253pub struct nk_style_window_header {
11254    pub normal: nk_style_item,
11255    pub hover: nk_style_item,
11256    pub active: nk_style_item,
11257    pub close_button: nk_style_button,
11258    pub minimize_button: nk_style_button,
11259    pub close_symbol: nk_symbol_type,
11260    pub minimize_symbol: nk_symbol_type,
11261    pub maximize_symbol: nk_symbol_type,
11262    pub label_normal: nk_color,
11263    pub label_hover: nk_color,
11264    pub label_active: nk_color,
11265    pub align: nk_style_header_align,
11266    pub padding: nk_vec2,
11267    pub label_padding: nk_vec2,
11268    pub spacing: nk_vec2,
11269}
11270#[test]
11271fn bindgen_test_layout_nk_style_window_header() {
11272    assert_eq!(
11273        ::std::mem::size_of::<nk_style_window_header>(),
11274        504usize,
11275        concat!("Size of: ", stringify!(nk_style_window_header))
11276    );
11277    assert_eq!(
11278        ::std::mem::align_of::<nk_style_window_header>(),
11279        8usize,
11280        concat!("Alignment of ", stringify!(nk_style_window_header))
11281    );
11282    assert_eq!(
11283        unsafe { &(*(::std::ptr::null::<nk_style_window_header>())).normal as *const _ as usize },
11284        0usize,
11285        concat!(
11286            "Offset of field: ",
11287            stringify!(nk_style_window_header),
11288            "::",
11289            stringify!(normal)
11290        )
11291    );
11292    assert_eq!(
11293        unsafe { &(*(::std::ptr::null::<nk_style_window_header>())).hover as *const _ as usize },
11294        32usize,
11295        concat!(
11296            "Offset of field: ",
11297            stringify!(nk_style_window_header),
11298            "::",
11299            stringify!(hover)
11300        )
11301    );
11302    assert_eq!(
11303        unsafe { &(*(::std::ptr::null::<nk_style_window_header>())).active as *const _ as usize },
11304        64usize,
11305        concat!(
11306            "Offset of field: ",
11307            stringify!(nk_style_window_header),
11308            "::",
11309            stringify!(active)
11310        )
11311    );
11312    assert_eq!(
11313        unsafe {
11314            &(*(::std::ptr::null::<nk_style_window_header>())).close_button as *const _ as usize
11315        },
11316        96usize,
11317        concat!(
11318            "Offset of field: ",
11319            stringify!(nk_style_window_header),
11320            "::",
11321            stringify!(close_button)
11322        )
11323    );
11324    assert_eq!(
11325        unsafe {
11326            &(*(::std::ptr::null::<nk_style_window_header>())).minimize_button as *const _ as usize
11327        },
11328        272usize,
11329        concat!(
11330            "Offset of field: ",
11331            stringify!(nk_style_window_header),
11332            "::",
11333            stringify!(minimize_button)
11334        )
11335    );
11336    assert_eq!(
11337        unsafe {
11338            &(*(::std::ptr::null::<nk_style_window_header>())).close_symbol as *const _ as usize
11339        },
11340        448usize,
11341        concat!(
11342            "Offset of field: ",
11343            stringify!(nk_style_window_header),
11344            "::",
11345            stringify!(close_symbol)
11346        )
11347    );
11348    assert_eq!(
11349        unsafe {
11350            &(*(::std::ptr::null::<nk_style_window_header>())).minimize_symbol as *const _ as usize
11351        },
11352        452usize,
11353        concat!(
11354            "Offset of field: ",
11355            stringify!(nk_style_window_header),
11356            "::",
11357            stringify!(minimize_symbol)
11358        )
11359    );
11360    assert_eq!(
11361        unsafe {
11362            &(*(::std::ptr::null::<nk_style_window_header>())).maximize_symbol as *const _ as usize
11363        },
11364        456usize,
11365        concat!(
11366            "Offset of field: ",
11367            stringify!(nk_style_window_header),
11368            "::",
11369            stringify!(maximize_symbol)
11370        )
11371    );
11372    assert_eq!(
11373        unsafe {
11374            &(*(::std::ptr::null::<nk_style_window_header>())).label_normal as *const _ as usize
11375        },
11376        460usize,
11377        concat!(
11378            "Offset of field: ",
11379            stringify!(nk_style_window_header),
11380            "::",
11381            stringify!(label_normal)
11382        )
11383    );
11384    assert_eq!(
11385        unsafe {
11386            &(*(::std::ptr::null::<nk_style_window_header>())).label_hover as *const _ as usize
11387        },
11388        464usize,
11389        concat!(
11390            "Offset of field: ",
11391            stringify!(nk_style_window_header),
11392            "::",
11393            stringify!(label_hover)
11394        )
11395    );
11396    assert_eq!(
11397        unsafe {
11398            &(*(::std::ptr::null::<nk_style_window_header>())).label_active as *const _ as usize
11399        },
11400        468usize,
11401        concat!(
11402            "Offset of field: ",
11403            stringify!(nk_style_window_header),
11404            "::",
11405            stringify!(label_active)
11406        )
11407    );
11408    assert_eq!(
11409        unsafe { &(*(::std::ptr::null::<nk_style_window_header>())).align as *const _ as usize },
11410        472usize,
11411        concat!(
11412            "Offset of field: ",
11413            stringify!(nk_style_window_header),
11414            "::",
11415            stringify!(align)
11416        )
11417    );
11418    assert_eq!(
11419        unsafe { &(*(::std::ptr::null::<nk_style_window_header>())).padding as *const _ as usize },
11420        476usize,
11421        concat!(
11422            "Offset of field: ",
11423            stringify!(nk_style_window_header),
11424            "::",
11425            stringify!(padding)
11426        )
11427    );
11428    assert_eq!(
11429        unsafe {
11430            &(*(::std::ptr::null::<nk_style_window_header>())).label_padding as *const _ as usize
11431        },
11432        484usize,
11433        concat!(
11434            "Offset of field: ",
11435            stringify!(nk_style_window_header),
11436            "::",
11437            stringify!(label_padding)
11438        )
11439    );
11440    assert_eq!(
11441        unsafe { &(*(::std::ptr::null::<nk_style_window_header>())).spacing as *const _ as usize },
11442        492usize,
11443        concat!(
11444            "Offset of field: ",
11445            stringify!(nk_style_window_header),
11446            "::",
11447            stringify!(spacing)
11448        )
11449    );
11450}
11451impl Default for nk_style_window_header {
11452    fn default() -> Self {
11453        unsafe { ::std::mem::zeroed() }
11454    }
11455}
11456#[repr(C)]
11457#[derive(Copy, Clone)]
11458pub struct nk_style_window {
11459    pub header: nk_style_window_header,
11460    pub fixed_background: nk_style_item,
11461    pub background: nk_color,
11462    pub border_color: nk_color,
11463    pub popup_border_color: nk_color,
11464    pub combo_border_color: nk_color,
11465    pub contextual_border_color: nk_color,
11466    pub menu_border_color: nk_color,
11467    pub group_border_color: nk_color,
11468    pub tooltip_border_color: nk_color,
11469    pub scaler: nk_style_item,
11470    pub border: f32,
11471    pub combo_border: f32,
11472    pub contextual_border: f32,
11473    pub menu_border: f32,
11474    pub group_border: f32,
11475    pub tooltip_border: f32,
11476    pub popup_border: f32,
11477    pub min_row_height_padding: f32,
11478    pub rounding: f32,
11479    pub spacing: nk_vec2,
11480    pub scrollbar_size: nk_vec2,
11481    pub min_size: nk_vec2,
11482    pub padding: nk_vec2,
11483    pub group_padding: nk_vec2,
11484    pub popup_padding: nk_vec2,
11485    pub combo_padding: nk_vec2,
11486    pub contextual_padding: nk_vec2,
11487    pub menu_padding: nk_vec2,
11488    pub tooltip_padding: nk_vec2,
11489}
11490#[test]
11491fn bindgen_test_layout_nk_style_window() {
11492    assert_eq!(
11493        ::std::mem::size_of::<nk_style_window>(),
11494        720usize,
11495        concat!("Size of: ", stringify!(nk_style_window))
11496    );
11497    assert_eq!(
11498        ::std::mem::align_of::<nk_style_window>(),
11499        8usize,
11500        concat!("Alignment of ", stringify!(nk_style_window))
11501    );
11502    assert_eq!(
11503        unsafe { &(*(::std::ptr::null::<nk_style_window>())).header as *const _ as usize },
11504        0usize,
11505        concat!(
11506            "Offset of field: ",
11507            stringify!(nk_style_window),
11508            "::",
11509            stringify!(header)
11510        )
11511    );
11512    assert_eq!(
11513        unsafe {
11514            &(*(::std::ptr::null::<nk_style_window>())).fixed_background as *const _ as usize
11515        },
11516        504usize,
11517        concat!(
11518            "Offset of field: ",
11519            stringify!(nk_style_window),
11520            "::",
11521            stringify!(fixed_background)
11522        )
11523    );
11524    assert_eq!(
11525        unsafe { &(*(::std::ptr::null::<nk_style_window>())).background as *const _ as usize },
11526        536usize,
11527        concat!(
11528            "Offset of field: ",
11529            stringify!(nk_style_window),
11530            "::",
11531            stringify!(background)
11532        )
11533    );
11534    assert_eq!(
11535        unsafe { &(*(::std::ptr::null::<nk_style_window>())).border_color as *const _ as usize },
11536        540usize,
11537        concat!(
11538            "Offset of field: ",
11539            stringify!(nk_style_window),
11540            "::",
11541            stringify!(border_color)
11542        )
11543    );
11544    assert_eq!(
11545        unsafe {
11546            &(*(::std::ptr::null::<nk_style_window>())).popup_border_color as *const _ as usize
11547        },
11548        544usize,
11549        concat!(
11550            "Offset of field: ",
11551            stringify!(nk_style_window),
11552            "::",
11553            stringify!(popup_border_color)
11554        )
11555    );
11556    assert_eq!(
11557        unsafe {
11558            &(*(::std::ptr::null::<nk_style_window>())).combo_border_color as *const _ as usize
11559        },
11560        548usize,
11561        concat!(
11562            "Offset of field: ",
11563            stringify!(nk_style_window),
11564            "::",
11565            stringify!(combo_border_color)
11566        )
11567    );
11568    assert_eq!(
11569        unsafe {
11570            &(*(::std::ptr::null::<nk_style_window>())).contextual_border_color as *const _ as usize
11571        },
11572        552usize,
11573        concat!(
11574            "Offset of field: ",
11575            stringify!(nk_style_window),
11576            "::",
11577            stringify!(contextual_border_color)
11578        )
11579    );
11580    assert_eq!(
11581        unsafe {
11582            &(*(::std::ptr::null::<nk_style_window>())).menu_border_color as *const _ as usize
11583        },
11584        556usize,
11585        concat!(
11586            "Offset of field: ",
11587            stringify!(nk_style_window),
11588            "::",
11589            stringify!(menu_border_color)
11590        )
11591    );
11592    assert_eq!(
11593        unsafe {
11594            &(*(::std::ptr::null::<nk_style_window>())).group_border_color as *const _ as usize
11595        },
11596        560usize,
11597        concat!(
11598            "Offset of field: ",
11599            stringify!(nk_style_window),
11600            "::",
11601            stringify!(group_border_color)
11602        )
11603    );
11604    assert_eq!(
11605        unsafe {
11606            &(*(::std::ptr::null::<nk_style_window>())).tooltip_border_color as *const _ as usize
11607        },
11608        564usize,
11609        concat!(
11610            "Offset of field: ",
11611            stringify!(nk_style_window),
11612            "::",
11613            stringify!(tooltip_border_color)
11614        )
11615    );
11616    assert_eq!(
11617        unsafe { &(*(::std::ptr::null::<nk_style_window>())).scaler as *const _ as usize },
11618        568usize,
11619        concat!(
11620            "Offset of field: ",
11621            stringify!(nk_style_window),
11622            "::",
11623            stringify!(scaler)
11624        )
11625    );
11626    assert_eq!(
11627        unsafe { &(*(::std::ptr::null::<nk_style_window>())).border as *const _ as usize },
11628        600usize,
11629        concat!(
11630            "Offset of field: ",
11631            stringify!(nk_style_window),
11632            "::",
11633            stringify!(border)
11634        )
11635    );
11636    assert_eq!(
11637        unsafe { &(*(::std::ptr::null::<nk_style_window>())).combo_border as *const _ as usize },
11638        604usize,
11639        concat!(
11640            "Offset of field: ",
11641            stringify!(nk_style_window),
11642            "::",
11643            stringify!(combo_border)
11644        )
11645    );
11646    assert_eq!(
11647        unsafe {
11648            &(*(::std::ptr::null::<nk_style_window>())).contextual_border as *const _ as usize
11649        },
11650        608usize,
11651        concat!(
11652            "Offset of field: ",
11653            stringify!(nk_style_window),
11654            "::",
11655            stringify!(contextual_border)
11656        )
11657    );
11658    assert_eq!(
11659        unsafe { &(*(::std::ptr::null::<nk_style_window>())).menu_border as *const _ as usize },
11660        612usize,
11661        concat!(
11662            "Offset of field: ",
11663            stringify!(nk_style_window),
11664            "::",
11665            stringify!(menu_border)
11666        )
11667    );
11668    assert_eq!(
11669        unsafe { &(*(::std::ptr::null::<nk_style_window>())).group_border as *const _ as usize },
11670        616usize,
11671        concat!(
11672            "Offset of field: ",
11673            stringify!(nk_style_window),
11674            "::",
11675            stringify!(group_border)
11676        )
11677    );
11678    assert_eq!(
11679        unsafe { &(*(::std::ptr::null::<nk_style_window>())).tooltip_border as *const _ as usize },
11680        620usize,
11681        concat!(
11682            "Offset of field: ",
11683            stringify!(nk_style_window),
11684            "::",
11685            stringify!(tooltip_border)
11686        )
11687    );
11688    assert_eq!(
11689        unsafe { &(*(::std::ptr::null::<nk_style_window>())).popup_border as *const _ as usize },
11690        624usize,
11691        concat!(
11692            "Offset of field: ",
11693            stringify!(nk_style_window),
11694            "::",
11695            stringify!(popup_border)
11696        )
11697    );
11698    assert_eq!(
11699        unsafe {
11700            &(*(::std::ptr::null::<nk_style_window>())).min_row_height_padding as *const _ as usize
11701        },
11702        628usize,
11703        concat!(
11704            "Offset of field: ",
11705            stringify!(nk_style_window),
11706            "::",
11707            stringify!(min_row_height_padding)
11708        )
11709    );
11710    assert_eq!(
11711        unsafe { &(*(::std::ptr::null::<nk_style_window>())).rounding as *const _ as usize },
11712        632usize,
11713        concat!(
11714            "Offset of field: ",
11715            stringify!(nk_style_window),
11716            "::",
11717            stringify!(rounding)
11718        )
11719    );
11720    assert_eq!(
11721        unsafe { &(*(::std::ptr::null::<nk_style_window>())).spacing as *const _ as usize },
11722        636usize,
11723        concat!(
11724            "Offset of field: ",
11725            stringify!(nk_style_window),
11726            "::",
11727            stringify!(spacing)
11728        )
11729    );
11730    assert_eq!(
11731        unsafe { &(*(::std::ptr::null::<nk_style_window>())).scrollbar_size as *const _ as usize },
11732        644usize,
11733        concat!(
11734            "Offset of field: ",
11735            stringify!(nk_style_window),
11736            "::",
11737            stringify!(scrollbar_size)
11738        )
11739    );
11740    assert_eq!(
11741        unsafe { &(*(::std::ptr::null::<nk_style_window>())).min_size as *const _ as usize },
11742        652usize,
11743        concat!(
11744            "Offset of field: ",
11745            stringify!(nk_style_window),
11746            "::",
11747            stringify!(min_size)
11748        )
11749    );
11750    assert_eq!(
11751        unsafe { &(*(::std::ptr::null::<nk_style_window>())).padding as *const _ as usize },
11752        660usize,
11753        concat!(
11754            "Offset of field: ",
11755            stringify!(nk_style_window),
11756            "::",
11757            stringify!(padding)
11758        )
11759    );
11760    assert_eq!(
11761        unsafe { &(*(::std::ptr::null::<nk_style_window>())).group_padding as *const _ as usize },
11762        668usize,
11763        concat!(
11764            "Offset of field: ",
11765            stringify!(nk_style_window),
11766            "::",
11767            stringify!(group_padding)
11768        )
11769    );
11770    assert_eq!(
11771        unsafe { &(*(::std::ptr::null::<nk_style_window>())).popup_padding as *const _ as usize },
11772        676usize,
11773        concat!(
11774            "Offset of field: ",
11775            stringify!(nk_style_window),
11776            "::",
11777            stringify!(popup_padding)
11778        )
11779    );
11780    assert_eq!(
11781        unsafe { &(*(::std::ptr::null::<nk_style_window>())).combo_padding as *const _ as usize },
11782        684usize,
11783        concat!(
11784            "Offset of field: ",
11785            stringify!(nk_style_window),
11786            "::",
11787            stringify!(combo_padding)
11788        )
11789    );
11790    assert_eq!(
11791        unsafe {
11792            &(*(::std::ptr::null::<nk_style_window>())).contextual_padding as *const _ as usize
11793        },
11794        692usize,
11795        concat!(
11796            "Offset of field: ",
11797            stringify!(nk_style_window),
11798            "::",
11799            stringify!(contextual_padding)
11800        )
11801    );
11802    assert_eq!(
11803        unsafe { &(*(::std::ptr::null::<nk_style_window>())).menu_padding as *const _ as usize },
11804        700usize,
11805        concat!(
11806            "Offset of field: ",
11807            stringify!(nk_style_window),
11808            "::",
11809            stringify!(menu_padding)
11810        )
11811    );
11812    assert_eq!(
11813        unsafe { &(*(::std::ptr::null::<nk_style_window>())).tooltip_padding as *const _ as usize },
11814        708usize,
11815        concat!(
11816            "Offset of field: ",
11817            stringify!(nk_style_window),
11818            "::",
11819            stringify!(tooltip_padding)
11820        )
11821    );
11822}
11823impl Default for nk_style_window {
11824    fn default() -> Self {
11825        unsafe { ::std::mem::zeroed() }
11826    }
11827}
11828#[repr(C)]
11829#[derive(Copy, Clone)]
11830pub struct nk_style {
11831    pub font: *const nk_user_font,
11832    pub cursors: [*const nk_cursor; 7usize],
11833    pub cursor_active: *const nk_cursor,
11834    pub cursor_last: *mut nk_cursor,
11835    pub cursor_visible: ::std::os::raw::c_int,
11836    pub text: nk_style_text,
11837    pub button: nk_style_button,
11838    pub contextual_button: nk_style_button,
11839    pub menu_button: nk_style_button,
11840    pub option: nk_style_toggle,
11841    pub checkbox: nk_style_toggle,
11842    pub selectable: nk_style_selectable,
11843    pub slider: nk_style_slider,
11844    pub progress: nk_style_progress,
11845    pub property: nk_style_property,
11846    pub edit: nk_style_edit,
11847    pub chart: nk_style_chart,
11848    pub scrollh: nk_style_scrollbar,
11849    pub scrollv: nk_style_scrollbar,
11850    pub tab: nk_style_tab,
11851    pub combo: nk_style_combo,
11852    pub window: nk_style_window,
11853}
11854#[test]
11855fn bindgen_test_layout_nk_style() {
11856    assert_eq!(
11857        ::std::mem::size_of::<nk_style>(),
11858        7544usize,
11859        concat!("Size of: ", stringify!(nk_style))
11860    );
11861    assert_eq!(
11862        ::std::mem::align_of::<nk_style>(),
11863        8usize,
11864        concat!("Alignment of ", stringify!(nk_style))
11865    );
11866    assert_eq!(
11867        unsafe { &(*(::std::ptr::null::<nk_style>())).font as *const _ as usize },
11868        0usize,
11869        concat!(
11870            "Offset of field: ",
11871            stringify!(nk_style),
11872            "::",
11873            stringify!(font)
11874        )
11875    );
11876    assert_eq!(
11877        unsafe { &(*(::std::ptr::null::<nk_style>())).cursors as *const _ as usize },
11878        8usize,
11879        concat!(
11880            "Offset of field: ",
11881            stringify!(nk_style),
11882            "::",
11883            stringify!(cursors)
11884        )
11885    );
11886    assert_eq!(
11887        unsafe { &(*(::std::ptr::null::<nk_style>())).cursor_active as *const _ as usize },
11888        64usize,
11889        concat!(
11890            "Offset of field: ",
11891            stringify!(nk_style),
11892            "::",
11893            stringify!(cursor_active)
11894        )
11895    );
11896    assert_eq!(
11897        unsafe { &(*(::std::ptr::null::<nk_style>())).cursor_last as *const _ as usize },
11898        72usize,
11899        concat!(
11900            "Offset of field: ",
11901            stringify!(nk_style),
11902            "::",
11903            stringify!(cursor_last)
11904        )
11905    );
11906    assert_eq!(
11907        unsafe { &(*(::std::ptr::null::<nk_style>())).cursor_visible as *const _ as usize },
11908        80usize,
11909        concat!(
11910            "Offset of field: ",
11911            stringify!(nk_style),
11912            "::",
11913            stringify!(cursor_visible)
11914        )
11915    );
11916    assert_eq!(
11917        unsafe { &(*(::std::ptr::null::<nk_style>())).text as *const _ as usize },
11918        84usize,
11919        concat!(
11920            "Offset of field: ",
11921            stringify!(nk_style),
11922            "::",
11923            stringify!(text)
11924        )
11925    );
11926    assert_eq!(
11927        unsafe { &(*(::std::ptr::null::<nk_style>())).button as *const _ as usize },
11928        96usize,
11929        concat!(
11930            "Offset of field: ",
11931            stringify!(nk_style),
11932            "::",
11933            stringify!(button)
11934        )
11935    );
11936    assert_eq!(
11937        unsafe { &(*(::std::ptr::null::<nk_style>())).contextual_button as *const _ as usize },
11938        272usize,
11939        concat!(
11940            "Offset of field: ",
11941            stringify!(nk_style),
11942            "::",
11943            stringify!(contextual_button)
11944        )
11945    );
11946    assert_eq!(
11947        unsafe { &(*(::std::ptr::null::<nk_style>())).menu_button as *const _ as usize },
11948        448usize,
11949        concat!(
11950            "Offset of field: ",
11951            stringify!(nk_style),
11952            "::",
11953            stringify!(menu_button)
11954        )
11955    );
11956    assert_eq!(
11957        unsafe { &(*(::std::ptr::null::<nk_style>())).option as *const _ as usize },
11958        624usize,
11959        concat!(
11960            "Offset of field: ",
11961            stringify!(nk_style),
11962            "::",
11963            stringify!(option)
11964        )
11965    );
11966    assert_eq!(
11967        unsafe { &(*(::std::ptr::null::<nk_style>())).checkbox as *const _ as usize },
11968        864usize,
11969        concat!(
11970            "Offset of field: ",
11971            stringify!(nk_style),
11972            "::",
11973            stringify!(checkbox)
11974        )
11975    );
11976    assert_eq!(
11977        unsafe { &(*(::std::ptr::null::<nk_style>())).selectable as *const _ as usize },
11978        1104usize,
11979        concat!(
11980            "Offset of field: ",
11981            stringify!(nk_style),
11982            "::",
11983            stringify!(selectable)
11984        )
11985    );
11986    assert_eq!(
11987        unsafe { &(*(::std::ptr::null::<nk_style>())).slider as *const _ as usize },
11988        1384usize,
11989        concat!(
11990            "Offset of field: ",
11991            stringify!(nk_style),
11992            "::",
11993            stringify!(slider)
11994        )
11995    );
11996    assert_eq!(
11997        unsafe { &(*(::std::ptr::null::<nk_style>())).progress as *const _ as usize },
11998        2024usize,
11999        concat!(
12000            "Offset of field: ",
12001            stringify!(nk_style),
12002            "::",
12003            stringify!(progress)
12004        )
12005    );
12006    assert_eq!(
12007        unsafe { &(*(::std::ptr::null::<nk_style>())).property as *const _ as usize },
12008        2280usize,
12009        concat!(
12010            "Offset of field: ",
12011            stringify!(nk_style),
12012            "::",
12013            stringify!(property)
12014        )
12015    );
12016    assert_eq!(
12017        unsafe { &(*(::std::ptr::null::<nk_style>())).edit as *const _ as usize },
12018        3592usize,
12019        concat!(
12020            "Offset of field: ",
12021            stringify!(nk_style),
12022            "::",
12023            stringify!(edit)
12024        )
12025    );
12026    assert_eq!(
12027        unsafe { &(*(::std::ptr::null::<nk_style>())).chart as *const _ as usize },
12028        4392usize,
12029        concat!(
12030            "Offset of field: ",
12031            stringify!(nk_style),
12032            "::",
12033            stringify!(chart)
12034        )
12035    );
12036    assert_eq!(
12037        unsafe { &(*(::std::ptr::null::<nk_style>())).scrollh as *const _ as usize },
12038        4456usize,
12039        concat!(
12040            "Offset of field: ",
12041            stringify!(nk_style),
12042            "::",
12043            stringify!(scrollh)
12044        )
12045    );
12046    assert_eq!(
12047        unsafe { &(*(::std::ptr::null::<nk_style>())).scrollv as *const _ as usize },
12048        5072usize,
12049        concat!(
12050            "Offset of field: ",
12051            stringify!(nk_style),
12052            "::",
12053            stringify!(scrollv)
12054        )
12055    );
12056    assert_eq!(
12057        unsafe { &(*(::std::ptr::null::<nk_style>())).tab as *const _ as usize },
12058        5688usize,
12059        concat!(
12060            "Offset of field: ",
12061            stringify!(nk_style),
12062            "::",
12063            stringify!(tab)
12064        )
12065    );
12066    assert_eq!(
12067        unsafe { &(*(::std::ptr::null::<nk_style>())).combo as *const _ as usize },
12068        6472usize,
12069        concat!(
12070            "Offset of field: ",
12071            stringify!(nk_style),
12072            "::",
12073            stringify!(combo)
12074        )
12075    );
12076    assert_eq!(
12077        unsafe { &(*(::std::ptr::null::<nk_style>())).window as *const _ as usize },
12078        6824usize,
12079        concat!(
12080            "Offset of field: ",
12081            stringify!(nk_style),
12082            "::",
12083            stringify!(window)
12084        )
12085    );
12086}
12087impl Default for nk_style {
12088    fn default() -> Self {
12089        unsafe { ::std::mem::zeroed() }
12090    }
12091}
12092extern "C" {
12093    pub fn nk_style_item_image(img: nk_image) -> nk_style_item;
12094}
12095extern "C" {
12096    pub fn nk_style_item_color(arg1: nk_color) -> nk_style_item;
12097}
12098extern "C" {
12099    pub fn nk_style_item_hide() -> nk_style_item;
12100}
12101pub const nk_panel_type_NK_PANEL_NONE: nk_panel_type = 0;
12102pub const nk_panel_type_NK_PANEL_WINDOW: nk_panel_type = 1;
12103pub const nk_panel_type_NK_PANEL_GROUP: nk_panel_type = 2;
12104pub const nk_panel_type_NK_PANEL_POPUP: nk_panel_type = 4;
12105pub const nk_panel_type_NK_PANEL_CONTEXTUAL: nk_panel_type = 16;
12106pub const nk_panel_type_NK_PANEL_COMBO: nk_panel_type = 32;
12107pub const nk_panel_type_NK_PANEL_MENU: nk_panel_type = 64;
12108pub const nk_panel_type_NK_PANEL_TOOLTIP: nk_panel_type = 128;
12109pub type nk_panel_type = u32;
12110pub const nk_panel_set_NK_PANEL_SET_NONBLOCK: nk_panel_set = 240;
12111pub const nk_panel_set_NK_PANEL_SET_POPUP: nk_panel_set = 244;
12112pub const nk_panel_set_NK_PANEL_SET_SUB: nk_panel_set = 246;
12113pub type nk_panel_set = u32;
12114#[repr(C)]
12115#[derive(Debug, Copy, Clone)]
12116pub struct nk_chart_slot {
12117    pub type_: nk_chart_type,
12118    pub color: nk_color,
12119    pub highlight: nk_color,
12120    pub min: f32,
12121    pub max: f32,
12122    pub range: f32,
12123    pub count: ::std::os::raw::c_int,
12124    pub last: nk_vec2,
12125    pub index: ::std::os::raw::c_int,
12126}
12127#[test]
12128fn bindgen_test_layout_nk_chart_slot() {
12129    assert_eq!(
12130        ::std::mem::size_of::<nk_chart_slot>(),
12131        40usize,
12132        concat!("Size of: ", stringify!(nk_chart_slot))
12133    );
12134    assert_eq!(
12135        ::std::mem::align_of::<nk_chart_slot>(),
12136        4usize,
12137        concat!("Alignment of ", stringify!(nk_chart_slot))
12138    );
12139    assert_eq!(
12140        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).type_ as *const _ as usize },
12141        0usize,
12142        concat!(
12143            "Offset of field: ",
12144            stringify!(nk_chart_slot),
12145            "::",
12146            stringify!(type_)
12147        )
12148    );
12149    assert_eq!(
12150        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).color as *const _ as usize },
12151        4usize,
12152        concat!(
12153            "Offset of field: ",
12154            stringify!(nk_chart_slot),
12155            "::",
12156            stringify!(color)
12157        )
12158    );
12159    assert_eq!(
12160        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).highlight as *const _ as usize },
12161        8usize,
12162        concat!(
12163            "Offset of field: ",
12164            stringify!(nk_chart_slot),
12165            "::",
12166            stringify!(highlight)
12167        )
12168    );
12169    assert_eq!(
12170        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).min as *const _ as usize },
12171        12usize,
12172        concat!(
12173            "Offset of field: ",
12174            stringify!(nk_chart_slot),
12175            "::",
12176            stringify!(min)
12177        )
12178    );
12179    assert_eq!(
12180        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).max as *const _ as usize },
12181        16usize,
12182        concat!(
12183            "Offset of field: ",
12184            stringify!(nk_chart_slot),
12185            "::",
12186            stringify!(max)
12187        )
12188    );
12189    assert_eq!(
12190        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).range as *const _ as usize },
12191        20usize,
12192        concat!(
12193            "Offset of field: ",
12194            stringify!(nk_chart_slot),
12195            "::",
12196            stringify!(range)
12197        )
12198    );
12199    assert_eq!(
12200        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).count as *const _ as usize },
12201        24usize,
12202        concat!(
12203            "Offset of field: ",
12204            stringify!(nk_chart_slot),
12205            "::",
12206            stringify!(count)
12207        )
12208    );
12209    assert_eq!(
12210        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).last as *const _ as usize },
12211        28usize,
12212        concat!(
12213            "Offset of field: ",
12214            stringify!(nk_chart_slot),
12215            "::",
12216            stringify!(last)
12217        )
12218    );
12219    assert_eq!(
12220        unsafe { &(*(::std::ptr::null::<nk_chart_slot>())).index as *const _ as usize },
12221        36usize,
12222        concat!(
12223            "Offset of field: ",
12224            stringify!(nk_chart_slot),
12225            "::",
12226            stringify!(index)
12227        )
12228    );
12229}
12230impl Default for nk_chart_slot {
12231    fn default() -> Self {
12232        unsafe { ::std::mem::zeroed() }
12233    }
12234}
12235#[repr(C)]
12236#[derive(Debug, Copy, Clone)]
12237pub struct nk_chart {
12238    pub slot: ::std::os::raw::c_int,
12239    pub x: f32,
12240    pub y: f32,
12241    pub w: f32,
12242    pub h: f32,
12243    pub slots: [nk_chart_slot; 4usize],
12244}
12245#[test]
12246fn bindgen_test_layout_nk_chart() {
12247    assert_eq!(
12248        ::std::mem::size_of::<nk_chart>(),
12249        180usize,
12250        concat!("Size of: ", stringify!(nk_chart))
12251    );
12252    assert_eq!(
12253        ::std::mem::align_of::<nk_chart>(),
12254        4usize,
12255        concat!("Alignment of ", stringify!(nk_chart))
12256    );
12257    assert_eq!(
12258        unsafe { &(*(::std::ptr::null::<nk_chart>())).slot as *const _ as usize },
12259        0usize,
12260        concat!(
12261            "Offset of field: ",
12262            stringify!(nk_chart),
12263            "::",
12264            stringify!(slot)
12265        )
12266    );
12267    assert_eq!(
12268        unsafe { &(*(::std::ptr::null::<nk_chart>())).x as *const _ as usize },
12269        4usize,
12270        concat!(
12271            "Offset of field: ",
12272            stringify!(nk_chart),
12273            "::",
12274            stringify!(x)
12275        )
12276    );
12277    assert_eq!(
12278        unsafe { &(*(::std::ptr::null::<nk_chart>())).y as *const _ as usize },
12279        8usize,
12280        concat!(
12281            "Offset of field: ",
12282            stringify!(nk_chart),
12283            "::",
12284            stringify!(y)
12285        )
12286    );
12287    assert_eq!(
12288        unsafe { &(*(::std::ptr::null::<nk_chart>())).w as *const _ as usize },
12289        12usize,
12290        concat!(
12291            "Offset of field: ",
12292            stringify!(nk_chart),
12293            "::",
12294            stringify!(w)
12295        )
12296    );
12297    assert_eq!(
12298        unsafe { &(*(::std::ptr::null::<nk_chart>())).h as *const _ as usize },
12299        16usize,
12300        concat!(
12301            "Offset of field: ",
12302            stringify!(nk_chart),
12303            "::",
12304            stringify!(h)
12305        )
12306    );
12307    assert_eq!(
12308        unsafe { &(*(::std::ptr::null::<nk_chart>())).slots as *const _ as usize },
12309        20usize,
12310        concat!(
12311            "Offset of field: ",
12312            stringify!(nk_chart),
12313            "::",
12314            stringify!(slots)
12315        )
12316    );
12317}
12318impl Default for nk_chart {
12319    fn default() -> Self {
12320        unsafe { ::std::mem::zeroed() }
12321    }
12322}
12323pub const nk_panel_row_layout_type_NK_LAYOUT_DYNAMIC_FIXED: nk_panel_row_layout_type = 0;
12324pub const nk_panel_row_layout_type_NK_LAYOUT_DYNAMIC_ROW: nk_panel_row_layout_type = 1;
12325pub const nk_panel_row_layout_type_NK_LAYOUT_DYNAMIC_FREE: nk_panel_row_layout_type = 2;
12326pub const nk_panel_row_layout_type_NK_LAYOUT_DYNAMIC: nk_panel_row_layout_type = 3;
12327pub const nk_panel_row_layout_type_NK_LAYOUT_STATIC_FIXED: nk_panel_row_layout_type = 4;
12328pub const nk_panel_row_layout_type_NK_LAYOUT_STATIC_ROW: nk_panel_row_layout_type = 5;
12329pub const nk_panel_row_layout_type_NK_LAYOUT_STATIC_FREE: nk_panel_row_layout_type = 6;
12330pub const nk_panel_row_layout_type_NK_LAYOUT_STATIC: nk_panel_row_layout_type = 7;
12331pub const nk_panel_row_layout_type_NK_LAYOUT_TEMPLATE: nk_panel_row_layout_type = 8;
12332pub const nk_panel_row_layout_type_NK_LAYOUT_COUNT: nk_panel_row_layout_type = 9;
12333pub type nk_panel_row_layout_type = u32;
12334#[repr(C)]
12335#[derive(Debug, Copy, Clone)]
12336pub struct nk_row_layout {
12337    pub type_: nk_panel_row_layout_type,
12338    pub index: ::std::os::raw::c_int,
12339    pub height: f32,
12340    pub min_height: f32,
12341    pub columns: ::std::os::raw::c_int,
12342    pub ratio: *const f32,
12343    pub item_width: f32,
12344    pub item_height: f32,
12345    pub item_offset: f32,
12346    pub filled: f32,
12347    pub item: nk_rect,
12348    pub tree_depth: ::std::os::raw::c_int,
12349    pub templates: [f32; 16usize],
12350}
12351#[test]
12352fn bindgen_test_layout_nk_row_layout() {
12353    assert_eq!(
12354        ::std::mem::size_of::<nk_row_layout>(),
12355        136usize,
12356        concat!("Size of: ", stringify!(nk_row_layout))
12357    );
12358    assert_eq!(
12359        ::std::mem::align_of::<nk_row_layout>(),
12360        8usize,
12361        concat!("Alignment of ", stringify!(nk_row_layout))
12362    );
12363    assert_eq!(
12364        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).type_ as *const _ as usize },
12365        0usize,
12366        concat!(
12367            "Offset of field: ",
12368            stringify!(nk_row_layout),
12369            "::",
12370            stringify!(type_)
12371        )
12372    );
12373    assert_eq!(
12374        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).index as *const _ as usize },
12375        4usize,
12376        concat!(
12377            "Offset of field: ",
12378            stringify!(nk_row_layout),
12379            "::",
12380            stringify!(index)
12381        )
12382    );
12383    assert_eq!(
12384        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).height as *const _ as usize },
12385        8usize,
12386        concat!(
12387            "Offset of field: ",
12388            stringify!(nk_row_layout),
12389            "::",
12390            stringify!(height)
12391        )
12392    );
12393    assert_eq!(
12394        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).min_height as *const _ as usize },
12395        12usize,
12396        concat!(
12397            "Offset of field: ",
12398            stringify!(nk_row_layout),
12399            "::",
12400            stringify!(min_height)
12401        )
12402    );
12403    assert_eq!(
12404        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).columns as *const _ as usize },
12405        16usize,
12406        concat!(
12407            "Offset of field: ",
12408            stringify!(nk_row_layout),
12409            "::",
12410            stringify!(columns)
12411        )
12412    );
12413    assert_eq!(
12414        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).ratio as *const _ as usize },
12415        24usize,
12416        concat!(
12417            "Offset of field: ",
12418            stringify!(nk_row_layout),
12419            "::",
12420            stringify!(ratio)
12421        )
12422    );
12423    assert_eq!(
12424        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).item_width as *const _ as usize },
12425        32usize,
12426        concat!(
12427            "Offset of field: ",
12428            stringify!(nk_row_layout),
12429            "::",
12430            stringify!(item_width)
12431        )
12432    );
12433    assert_eq!(
12434        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).item_height as *const _ as usize },
12435        36usize,
12436        concat!(
12437            "Offset of field: ",
12438            stringify!(nk_row_layout),
12439            "::",
12440            stringify!(item_height)
12441        )
12442    );
12443    assert_eq!(
12444        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).item_offset as *const _ as usize },
12445        40usize,
12446        concat!(
12447            "Offset of field: ",
12448            stringify!(nk_row_layout),
12449            "::",
12450            stringify!(item_offset)
12451        )
12452    );
12453    assert_eq!(
12454        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).filled as *const _ as usize },
12455        44usize,
12456        concat!(
12457            "Offset of field: ",
12458            stringify!(nk_row_layout),
12459            "::",
12460            stringify!(filled)
12461        )
12462    );
12463    assert_eq!(
12464        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).item as *const _ as usize },
12465        48usize,
12466        concat!(
12467            "Offset of field: ",
12468            stringify!(nk_row_layout),
12469            "::",
12470            stringify!(item)
12471        )
12472    );
12473    assert_eq!(
12474        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).tree_depth as *const _ as usize },
12475        64usize,
12476        concat!(
12477            "Offset of field: ",
12478            stringify!(nk_row_layout),
12479            "::",
12480            stringify!(tree_depth)
12481        )
12482    );
12483    assert_eq!(
12484        unsafe { &(*(::std::ptr::null::<nk_row_layout>())).templates as *const _ as usize },
12485        68usize,
12486        concat!(
12487            "Offset of field: ",
12488            stringify!(nk_row_layout),
12489            "::",
12490            stringify!(templates)
12491        )
12492    );
12493}
12494impl Default for nk_row_layout {
12495    fn default() -> Self {
12496        unsafe { ::std::mem::zeroed() }
12497    }
12498}
12499#[repr(C)]
12500#[derive(Debug, Default, Copy, Clone)]
12501pub struct nk_popup_buffer {
12502    pub begin: nk_size,
12503    pub parent: nk_size,
12504    pub last: nk_size,
12505    pub end: nk_size,
12506    pub active: ::std::os::raw::c_int,
12507}
12508#[test]
12509fn bindgen_test_layout_nk_popup_buffer() {
12510    assert_eq!(
12511        ::std::mem::size_of::<nk_popup_buffer>(),
12512        40usize,
12513        concat!("Size of: ", stringify!(nk_popup_buffer))
12514    );
12515    assert_eq!(
12516        ::std::mem::align_of::<nk_popup_buffer>(),
12517        8usize,
12518        concat!("Alignment of ", stringify!(nk_popup_buffer))
12519    );
12520    assert_eq!(
12521        unsafe { &(*(::std::ptr::null::<nk_popup_buffer>())).begin as *const _ as usize },
12522        0usize,
12523        concat!(
12524            "Offset of field: ",
12525            stringify!(nk_popup_buffer),
12526            "::",
12527            stringify!(begin)
12528        )
12529    );
12530    assert_eq!(
12531        unsafe { &(*(::std::ptr::null::<nk_popup_buffer>())).parent as *const _ as usize },
12532        8usize,
12533        concat!(
12534            "Offset of field: ",
12535            stringify!(nk_popup_buffer),
12536            "::",
12537            stringify!(parent)
12538        )
12539    );
12540    assert_eq!(
12541        unsafe { &(*(::std::ptr::null::<nk_popup_buffer>())).last as *const _ as usize },
12542        16usize,
12543        concat!(
12544            "Offset of field: ",
12545            stringify!(nk_popup_buffer),
12546            "::",
12547            stringify!(last)
12548        )
12549    );
12550    assert_eq!(
12551        unsafe { &(*(::std::ptr::null::<nk_popup_buffer>())).end as *const _ as usize },
12552        24usize,
12553        concat!(
12554            "Offset of field: ",
12555            stringify!(nk_popup_buffer),
12556            "::",
12557            stringify!(end)
12558        )
12559    );
12560    assert_eq!(
12561        unsafe { &(*(::std::ptr::null::<nk_popup_buffer>())).active as *const _ as usize },
12562        32usize,
12563        concat!(
12564            "Offset of field: ",
12565            stringify!(nk_popup_buffer),
12566            "::",
12567            stringify!(active)
12568        )
12569    );
12570}
12571#[repr(C)]
12572#[derive(Debug, Default, Copy, Clone)]
12573pub struct nk_menu_state {
12574    pub x: f32,
12575    pub y: f32,
12576    pub w: f32,
12577    pub h: f32,
12578    pub offset: nk_scroll,
12579}
12580#[test]
12581fn bindgen_test_layout_nk_menu_state() {
12582    assert_eq!(
12583        ::std::mem::size_of::<nk_menu_state>(),
12584        24usize,
12585        concat!("Size of: ", stringify!(nk_menu_state))
12586    );
12587    assert_eq!(
12588        ::std::mem::align_of::<nk_menu_state>(),
12589        4usize,
12590        concat!("Alignment of ", stringify!(nk_menu_state))
12591    );
12592    assert_eq!(
12593        unsafe { &(*(::std::ptr::null::<nk_menu_state>())).x as *const _ as usize },
12594        0usize,
12595        concat!(
12596            "Offset of field: ",
12597            stringify!(nk_menu_state),
12598            "::",
12599            stringify!(x)
12600        )
12601    );
12602    assert_eq!(
12603        unsafe { &(*(::std::ptr::null::<nk_menu_state>())).y as *const _ as usize },
12604        4usize,
12605        concat!(
12606            "Offset of field: ",
12607            stringify!(nk_menu_state),
12608            "::",
12609            stringify!(y)
12610        )
12611    );
12612    assert_eq!(
12613        unsafe { &(*(::std::ptr::null::<nk_menu_state>())).w as *const _ as usize },
12614        8usize,
12615        concat!(
12616            "Offset of field: ",
12617            stringify!(nk_menu_state),
12618            "::",
12619            stringify!(w)
12620        )
12621    );
12622    assert_eq!(
12623        unsafe { &(*(::std::ptr::null::<nk_menu_state>())).h as *const _ as usize },
12624        12usize,
12625        concat!(
12626            "Offset of field: ",
12627            stringify!(nk_menu_state),
12628            "::",
12629            stringify!(h)
12630        )
12631    );
12632    assert_eq!(
12633        unsafe { &(*(::std::ptr::null::<nk_menu_state>())).offset as *const _ as usize },
12634        16usize,
12635        concat!(
12636            "Offset of field: ",
12637            stringify!(nk_menu_state),
12638            "::",
12639            stringify!(offset)
12640        )
12641    );
12642}
12643#[repr(C)]
12644#[derive(Debug, Copy, Clone)]
12645pub struct nk_panel {
12646    pub type_: nk_panel_type,
12647    pub flags: nk_flags,
12648    pub bounds: nk_rect,
12649    pub offset_x: *mut nk_uint,
12650    pub offset_y: *mut nk_uint,
12651    pub at_x: f32,
12652    pub at_y: f32,
12653    pub max_x: f32,
12654    pub footer_height: f32,
12655    pub header_height: f32,
12656    pub border: f32,
12657    pub has_scrolling: ::std::os::raw::c_uint,
12658    pub clip: nk_rect,
12659    pub menu: nk_menu_state,
12660    pub row: nk_row_layout,
12661    pub chart: nk_chart,
12662    pub buffer: *mut nk_command_buffer,
12663    pub parent: *mut nk_panel,
12664}
12665#[test]
12666fn bindgen_test_layout_nk_panel() {
12667    assert_eq!(
12668        ::std::mem::size_of::<nk_panel>(),
12669        448usize,
12670        concat!("Size of: ", stringify!(nk_panel))
12671    );
12672    assert_eq!(
12673        ::std::mem::align_of::<nk_panel>(),
12674        8usize,
12675        concat!("Alignment of ", stringify!(nk_panel))
12676    );
12677    assert_eq!(
12678        unsafe { &(*(::std::ptr::null::<nk_panel>())).type_ as *const _ as usize },
12679        0usize,
12680        concat!(
12681            "Offset of field: ",
12682            stringify!(nk_panel),
12683            "::",
12684            stringify!(type_)
12685        )
12686    );
12687    assert_eq!(
12688        unsafe { &(*(::std::ptr::null::<nk_panel>())).flags as *const _ as usize },
12689        4usize,
12690        concat!(
12691            "Offset of field: ",
12692            stringify!(nk_panel),
12693            "::",
12694            stringify!(flags)
12695        )
12696    );
12697    assert_eq!(
12698        unsafe { &(*(::std::ptr::null::<nk_panel>())).bounds as *const _ as usize },
12699        8usize,
12700        concat!(
12701            "Offset of field: ",
12702            stringify!(nk_panel),
12703            "::",
12704            stringify!(bounds)
12705        )
12706    );
12707    assert_eq!(
12708        unsafe { &(*(::std::ptr::null::<nk_panel>())).offset_x as *const _ as usize },
12709        24usize,
12710        concat!(
12711            "Offset of field: ",
12712            stringify!(nk_panel),
12713            "::",
12714            stringify!(offset_x)
12715        )
12716    );
12717    assert_eq!(
12718        unsafe { &(*(::std::ptr::null::<nk_panel>())).offset_y as *const _ as usize },
12719        32usize,
12720        concat!(
12721            "Offset of field: ",
12722            stringify!(nk_panel),
12723            "::",
12724            stringify!(offset_y)
12725        )
12726    );
12727    assert_eq!(
12728        unsafe { &(*(::std::ptr::null::<nk_panel>())).at_x as *const _ as usize },
12729        40usize,
12730        concat!(
12731            "Offset of field: ",
12732            stringify!(nk_panel),
12733            "::",
12734            stringify!(at_x)
12735        )
12736    );
12737    assert_eq!(
12738        unsafe { &(*(::std::ptr::null::<nk_panel>())).at_y as *const _ as usize },
12739        44usize,
12740        concat!(
12741            "Offset of field: ",
12742            stringify!(nk_panel),
12743            "::",
12744            stringify!(at_y)
12745        )
12746    );
12747    assert_eq!(
12748        unsafe { &(*(::std::ptr::null::<nk_panel>())).max_x as *const _ as usize },
12749        48usize,
12750        concat!(
12751            "Offset of field: ",
12752            stringify!(nk_panel),
12753            "::",
12754            stringify!(max_x)
12755        )
12756    );
12757    assert_eq!(
12758        unsafe { &(*(::std::ptr::null::<nk_panel>())).footer_height as *const _ as usize },
12759        52usize,
12760        concat!(
12761            "Offset of field: ",
12762            stringify!(nk_panel),
12763            "::",
12764            stringify!(footer_height)
12765        )
12766    );
12767    assert_eq!(
12768        unsafe { &(*(::std::ptr::null::<nk_panel>())).header_height as *const _ as usize },
12769        56usize,
12770        concat!(
12771            "Offset of field: ",
12772            stringify!(nk_panel),
12773            "::",
12774            stringify!(header_height)
12775        )
12776    );
12777    assert_eq!(
12778        unsafe { &(*(::std::ptr::null::<nk_panel>())).border as *const _ as usize },
12779        60usize,
12780        concat!(
12781            "Offset of field: ",
12782            stringify!(nk_panel),
12783            "::",
12784            stringify!(border)
12785        )
12786    );
12787    assert_eq!(
12788        unsafe { &(*(::std::ptr::null::<nk_panel>())).has_scrolling as *const _ as usize },
12789        64usize,
12790        concat!(
12791            "Offset of field: ",
12792            stringify!(nk_panel),
12793            "::",
12794            stringify!(has_scrolling)
12795        )
12796    );
12797    assert_eq!(
12798        unsafe { &(*(::std::ptr::null::<nk_panel>())).clip as *const _ as usize },
12799        68usize,
12800        concat!(
12801            "Offset of field: ",
12802            stringify!(nk_panel),
12803            "::",
12804            stringify!(clip)
12805        )
12806    );
12807    assert_eq!(
12808        unsafe { &(*(::std::ptr::null::<nk_panel>())).menu as *const _ as usize },
12809        84usize,
12810        concat!(
12811            "Offset of field: ",
12812            stringify!(nk_panel),
12813            "::",
12814            stringify!(menu)
12815        )
12816    );
12817    assert_eq!(
12818        unsafe { &(*(::std::ptr::null::<nk_panel>())).row as *const _ as usize },
12819        112usize,
12820        concat!(
12821            "Offset of field: ",
12822            stringify!(nk_panel),
12823            "::",
12824            stringify!(row)
12825        )
12826    );
12827    assert_eq!(
12828        unsafe { &(*(::std::ptr::null::<nk_panel>())).chart as *const _ as usize },
12829        248usize,
12830        concat!(
12831            "Offset of field: ",
12832            stringify!(nk_panel),
12833            "::",
12834            stringify!(chart)
12835        )
12836    );
12837    assert_eq!(
12838        unsafe { &(*(::std::ptr::null::<nk_panel>())).buffer as *const _ as usize },
12839        432usize,
12840        concat!(
12841            "Offset of field: ",
12842            stringify!(nk_panel),
12843            "::",
12844            stringify!(buffer)
12845        )
12846    );
12847    assert_eq!(
12848        unsafe { &(*(::std::ptr::null::<nk_panel>())).parent as *const _ as usize },
12849        440usize,
12850        concat!(
12851            "Offset of field: ",
12852            stringify!(nk_panel),
12853            "::",
12854            stringify!(parent)
12855        )
12856    );
12857}
12858impl Default for nk_panel {
12859    fn default() -> Self {
12860        unsafe { ::std::mem::zeroed() }
12861    }
12862}
12863pub const nk_window_flags_NK_WINDOW_PRIVATE: nk_window_flags = 2048;
12864pub const nk_window_flags_NK_WINDOW_DYNAMIC: nk_window_flags = 2048;
12865pub const nk_window_flags_NK_WINDOW_ROM: nk_window_flags = 4096;
12866pub const nk_window_flags_NK_WINDOW_NOT_INTERACTIVE: nk_window_flags = 5120;
12867pub const nk_window_flags_NK_WINDOW_HIDDEN: nk_window_flags = 8192;
12868pub const nk_window_flags_NK_WINDOW_CLOSED: nk_window_flags = 16384;
12869pub const nk_window_flags_NK_WINDOW_MINIMIZED: nk_window_flags = 32768;
12870pub const nk_window_flags_NK_WINDOW_REMOVE_ROM: nk_window_flags = 65536;
12871pub type nk_window_flags = u32;
12872#[repr(C)]
12873#[derive(Debug, Copy, Clone)]
12874pub struct nk_popup_state {
12875    pub win: *mut nk_window,
12876    pub type_: nk_panel_type,
12877    pub buf: nk_popup_buffer,
12878    pub name: nk_hash,
12879    pub active: ::std::os::raw::c_int,
12880    pub combo_count: ::std::os::raw::c_uint,
12881    pub con_count: ::std::os::raw::c_uint,
12882    pub con_old: ::std::os::raw::c_uint,
12883    pub active_con: ::std::os::raw::c_uint,
12884    pub header: nk_rect,
12885}
12886#[test]
12887fn bindgen_test_layout_nk_popup_state() {
12888    assert_eq!(
12889        ::std::mem::size_of::<nk_popup_state>(),
12890        96usize,
12891        concat!("Size of: ", stringify!(nk_popup_state))
12892    );
12893    assert_eq!(
12894        ::std::mem::align_of::<nk_popup_state>(),
12895        8usize,
12896        concat!("Alignment of ", stringify!(nk_popup_state))
12897    );
12898    assert_eq!(
12899        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).win as *const _ as usize },
12900        0usize,
12901        concat!(
12902            "Offset of field: ",
12903            stringify!(nk_popup_state),
12904            "::",
12905            stringify!(win)
12906        )
12907    );
12908    assert_eq!(
12909        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).type_ as *const _ as usize },
12910        8usize,
12911        concat!(
12912            "Offset of field: ",
12913            stringify!(nk_popup_state),
12914            "::",
12915            stringify!(type_)
12916        )
12917    );
12918    assert_eq!(
12919        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).buf as *const _ as usize },
12920        16usize,
12921        concat!(
12922            "Offset of field: ",
12923            stringify!(nk_popup_state),
12924            "::",
12925            stringify!(buf)
12926        )
12927    );
12928    assert_eq!(
12929        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).name as *const _ as usize },
12930        56usize,
12931        concat!(
12932            "Offset of field: ",
12933            stringify!(nk_popup_state),
12934            "::",
12935            stringify!(name)
12936        )
12937    );
12938    assert_eq!(
12939        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).active as *const _ as usize },
12940        60usize,
12941        concat!(
12942            "Offset of field: ",
12943            stringify!(nk_popup_state),
12944            "::",
12945            stringify!(active)
12946        )
12947    );
12948    assert_eq!(
12949        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).combo_count as *const _ as usize },
12950        64usize,
12951        concat!(
12952            "Offset of field: ",
12953            stringify!(nk_popup_state),
12954            "::",
12955            stringify!(combo_count)
12956        )
12957    );
12958    assert_eq!(
12959        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).con_count as *const _ as usize },
12960        68usize,
12961        concat!(
12962            "Offset of field: ",
12963            stringify!(nk_popup_state),
12964            "::",
12965            stringify!(con_count)
12966        )
12967    );
12968    assert_eq!(
12969        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).con_old as *const _ as usize },
12970        72usize,
12971        concat!(
12972            "Offset of field: ",
12973            stringify!(nk_popup_state),
12974            "::",
12975            stringify!(con_old)
12976        )
12977    );
12978    assert_eq!(
12979        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).active_con as *const _ as usize },
12980        76usize,
12981        concat!(
12982            "Offset of field: ",
12983            stringify!(nk_popup_state),
12984            "::",
12985            stringify!(active_con)
12986        )
12987    );
12988    assert_eq!(
12989        unsafe { &(*(::std::ptr::null::<nk_popup_state>())).header as *const _ as usize },
12990        80usize,
12991        concat!(
12992            "Offset of field: ",
12993            stringify!(nk_popup_state),
12994            "::",
12995            stringify!(header)
12996        )
12997    );
12998}
12999impl Default for nk_popup_state {
13000    fn default() -> Self {
13001        unsafe { ::std::mem::zeroed() }
13002    }
13003}
13004#[repr(C)]
13005#[derive(Debug, Default, Copy, Clone)]
13006pub struct nk_edit_state {
13007    pub name: nk_hash,
13008    pub seq: ::std::os::raw::c_uint,
13009    pub old: ::std::os::raw::c_uint,
13010    pub active: ::std::os::raw::c_int,
13011    pub prev: ::std::os::raw::c_int,
13012    pub cursor: ::std::os::raw::c_int,
13013    pub sel_start: ::std::os::raw::c_int,
13014    pub sel_end: ::std::os::raw::c_int,
13015    pub scrollbar: nk_scroll,
13016    pub mode: ::std::os::raw::c_uchar,
13017    pub single_line: ::std::os::raw::c_uchar,
13018}
13019#[test]
13020fn bindgen_test_layout_nk_edit_state() {
13021    assert_eq!(
13022        ::std::mem::size_of::<nk_edit_state>(),
13023        44usize,
13024        concat!("Size of: ", stringify!(nk_edit_state))
13025    );
13026    assert_eq!(
13027        ::std::mem::align_of::<nk_edit_state>(),
13028        4usize,
13029        concat!("Alignment of ", stringify!(nk_edit_state))
13030    );
13031    assert_eq!(
13032        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).name as *const _ as usize },
13033        0usize,
13034        concat!(
13035            "Offset of field: ",
13036            stringify!(nk_edit_state),
13037            "::",
13038            stringify!(name)
13039        )
13040    );
13041    assert_eq!(
13042        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).seq as *const _ as usize },
13043        4usize,
13044        concat!(
13045            "Offset of field: ",
13046            stringify!(nk_edit_state),
13047            "::",
13048            stringify!(seq)
13049        )
13050    );
13051    assert_eq!(
13052        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).old as *const _ as usize },
13053        8usize,
13054        concat!(
13055            "Offset of field: ",
13056            stringify!(nk_edit_state),
13057            "::",
13058            stringify!(old)
13059        )
13060    );
13061    assert_eq!(
13062        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).active as *const _ as usize },
13063        12usize,
13064        concat!(
13065            "Offset of field: ",
13066            stringify!(nk_edit_state),
13067            "::",
13068            stringify!(active)
13069        )
13070    );
13071    assert_eq!(
13072        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).prev as *const _ as usize },
13073        16usize,
13074        concat!(
13075            "Offset of field: ",
13076            stringify!(nk_edit_state),
13077            "::",
13078            stringify!(prev)
13079        )
13080    );
13081    assert_eq!(
13082        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).cursor as *const _ as usize },
13083        20usize,
13084        concat!(
13085            "Offset of field: ",
13086            stringify!(nk_edit_state),
13087            "::",
13088            stringify!(cursor)
13089        )
13090    );
13091    assert_eq!(
13092        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).sel_start as *const _ as usize },
13093        24usize,
13094        concat!(
13095            "Offset of field: ",
13096            stringify!(nk_edit_state),
13097            "::",
13098            stringify!(sel_start)
13099        )
13100    );
13101    assert_eq!(
13102        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).sel_end as *const _ as usize },
13103        28usize,
13104        concat!(
13105            "Offset of field: ",
13106            stringify!(nk_edit_state),
13107            "::",
13108            stringify!(sel_end)
13109        )
13110    );
13111    assert_eq!(
13112        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).scrollbar as *const _ as usize },
13113        32usize,
13114        concat!(
13115            "Offset of field: ",
13116            stringify!(nk_edit_state),
13117            "::",
13118            stringify!(scrollbar)
13119        )
13120    );
13121    assert_eq!(
13122        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).mode as *const _ as usize },
13123        40usize,
13124        concat!(
13125            "Offset of field: ",
13126            stringify!(nk_edit_state),
13127            "::",
13128            stringify!(mode)
13129        )
13130    );
13131    assert_eq!(
13132        unsafe { &(*(::std::ptr::null::<nk_edit_state>())).single_line as *const _ as usize },
13133        41usize,
13134        concat!(
13135            "Offset of field: ",
13136            stringify!(nk_edit_state),
13137            "::",
13138            stringify!(single_line)
13139        )
13140    );
13141}
13142#[repr(C)]
13143#[derive(Copy, Clone)]
13144pub struct nk_property_state {
13145    pub active: ::std::os::raw::c_int,
13146    pub prev: ::std::os::raw::c_int,
13147    pub buffer: [::std::os::raw::c_char; 64usize],
13148    pub length: ::std::os::raw::c_int,
13149    pub cursor: ::std::os::raw::c_int,
13150    pub select_start: ::std::os::raw::c_int,
13151    pub select_end: ::std::os::raw::c_int,
13152    pub name: nk_hash,
13153    pub seq: ::std::os::raw::c_uint,
13154    pub old: ::std::os::raw::c_uint,
13155    pub state: ::std::os::raw::c_int,
13156}
13157#[test]
13158fn bindgen_test_layout_nk_property_state() {
13159    assert_eq!(
13160        ::std::mem::size_of::<nk_property_state>(),
13161        104usize,
13162        concat!("Size of: ", stringify!(nk_property_state))
13163    );
13164    assert_eq!(
13165        ::std::mem::align_of::<nk_property_state>(),
13166        4usize,
13167        concat!("Alignment of ", stringify!(nk_property_state))
13168    );
13169    assert_eq!(
13170        unsafe { &(*(::std::ptr::null::<nk_property_state>())).active as *const _ as usize },
13171        0usize,
13172        concat!(
13173            "Offset of field: ",
13174            stringify!(nk_property_state),
13175            "::",
13176            stringify!(active)
13177        )
13178    );
13179    assert_eq!(
13180        unsafe { &(*(::std::ptr::null::<nk_property_state>())).prev as *const _ as usize },
13181        4usize,
13182        concat!(
13183            "Offset of field: ",
13184            stringify!(nk_property_state),
13185            "::",
13186            stringify!(prev)
13187        )
13188    );
13189    assert_eq!(
13190        unsafe { &(*(::std::ptr::null::<nk_property_state>())).buffer as *const _ as usize },
13191        8usize,
13192        concat!(
13193            "Offset of field: ",
13194            stringify!(nk_property_state),
13195            "::",
13196            stringify!(buffer)
13197        )
13198    );
13199    assert_eq!(
13200        unsafe { &(*(::std::ptr::null::<nk_property_state>())).length as *const _ as usize },
13201        72usize,
13202        concat!(
13203            "Offset of field: ",
13204            stringify!(nk_property_state),
13205            "::",
13206            stringify!(length)
13207        )
13208    );
13209    assert_eq!(
13210        unsafe { &(*(::std::ptr::null::<nk_property_state>())).cursor as *const _ as usize },
13211        76usize,
13212        concat!(
13213            "Offset of field: ",
13214            stringify!(nk_property_state),
13215            "::",
13216            stringify!(cursor)
13217        )
13218    );
13219    assert_eq!(
13220        unsafe { &(*(::std::ptr::null::<nk_property_state>())).select_start as *const _ as usize },
13221        80usize,
13222        concat!(
13223            "Offset of field: ",
13224            stringify!(nk_property_state),
13225            "::",
13226            stringify!(select_start)
13227        )
13228    );
13229    assert_eq!(
13230        unsafe { &(*(::std::ptr::null::<nk_property_state>())).select_end as *const _ as usize },
13231        84usize,
13232        concat!(
13233            "Offset of field: ",
13234            stringify!(nk_property_state),
13235            "::",
13236            stringify!(select_end)
13237        )
13238    );
13239    assert_eq!(
13240        unsafe { &(*(::std::ptr::null::<nk_property_state>())).name as *const _ as usize },
13241        88usize,
13242        concat!(
13243            "Offset of field: ",
13244            stringify!(nk_property_state),
13245            "::",
13246            stringify!(name)
13247        )
13248    );
13249    assert_eq!(
13250        unsafe { &(*(::std::ptr::null::<nk_property_state>())).seq as *const _ as usize },
13251        92usize,
13252        concat!(
13253            "Offset of field: ",
13254            stringify!(nk_property_state),
13255            "::",
13256            stringify!(seq)
13257        )
13258    );
13259    assert_eq!(
13260        unsafe { &(*(::std::ptr::null::<nk_property_state>())).old as *const _ as usize },
13261        96usize,
13262        concat!(
13263            "Offset of field: ",
13264            stringify!(nk_property_state),
13265            "::",
13266            stringify!(old)
13267        )
13268    );
13269    assert_eq!(
13270        unsafe { &(*(::std::ptr::null::<nk_property_state>())).state as *const _ as usize },
13271        100usize,
13272        concat!(
13273            "Offset of field: ",
13274            stringify!(nk_property_state),
13275            "::",
13276            stringify!(state)
13277        )
13278    );
13279}
13280impl Default for nk_property_state {
13281    fn default() -> Self {
13282        unsafe { ::std::mem::zeroed() }
13283    }
13284}
13285#[repr(C)]
13286#[derive(Copy, Clone)]
13287pub struct nk_window {
13288    pub seq: ::std::os::raw::c_uint,
13289    pub name: nk_hash,
13290    pub name_string: [::std::os::raw::c_char; 64usize],
13291    pub flags: nk_flags,
13292    pub bounds: nk_rect,
13293    pub scrollbar: nk_scroll,
13294    pub buffer: nk_command_buffer,
13295    pub layout: *mut nk_panel,
13296    pub scrollbar_hiding_timer: f32,
13297    pub property: nk_property_state,
13298    pub popup: nk_popup_state,
13299    pub edit: nk_edit_state,
13300    pub scrolled: ::std::os::raw::c_uint,
13301    pub tables: *mut nk_table,
13302    pub table_count: ::std::os::raw::c_uint,
13303    pub next: *mut nk_window,
13304    pub prev: *mut nk_window,
13305    pub parent: *mut nk_window,
13306}
13307#[test]
13308fn bindgen_test_layout_nk_window() {
13309    assert_eq!(
13310        ::std::mem::size_of::<nk_window>(),
13311        472usize,
13312        concat!("Size of: ", stringify!(nk_window))
13313    );
13314    assert_eq!(
13315        ::std::mem::align_of::<nk_window>(),
13316        8usize,
13317        concat!("Alignment of ", stringify!(nk_window))
13318    );
13319    assert_eq!(
13320        unsafe { &(*(::std::ptr::null::<nk_window>())).seq as *const _ as usize },
13321        0usize,
13322        concat!(
13323            "Offset of field: ",
13324            stringify!(nk_window),
13325            "::",
13326            stringify!(seq)
13327        )
13328    );
13329    assert_eq!(
13330        unsafe { &(*(::std::ptr::null::<nk_window>())).name as *const _ as usize },
13331        4usize,
13332        concat!(
13333            "Offset of field: ",
13334            stringify!(nk_window),
13335            "::",
13336            stringify!(name)
13337        )
13338    );
13339    assert_eq!(
13340        unsafe { &(*(::std::ptr::null::<nk_window>())).name_string as *const _ as usize },
13341        8usize,
13342        concat!(
13343            "Offset of field: ",
13344            stringify!(nk_window),
13345            "::",
13346            stringify!(name_string)
13347        )
13348    );
13349    assert_eq!(
13350        unsafe { &(*(::std::ptr::null::<nk_window>())).flags as *const _ as usize },
13351        72usize,
13352        concat!(
13353            "Offset of field: ",
13354            stringify!(nk_window),
13355            "::",
13356            stringify!(flags)
13357        )
13358    );
13359    assert_eq!(
13360        unsafe { &(*(::std::ptr::null::<nk_window>())).bounds as *const _ as usize },
13361        76usize,
13362        concat!(
13363            "Offset of field: ",
13364            stringify!(nk_window),
13365            "::",
13366            stringify!(bounds)
13367        )
13368    );
13369    assert_eq!(
13370        unsafe { &(*(::std::ptr::null::<nk_window>())).scrollbar as *const _ as usize },
13371        92usize,
13372        concat!(
13373            "Offset of field: ",
13374            stringify!(nk_window),
13375            "::",
13376            stringify!(scrollbar)
13377        )
13378    );
13379    assert_eq!(
13380        unsafe { &(*(::std::ptr::null::<nk_window>())).buffer as *const _ as usize },
13381        104usize,
13382        concat!(
13383            "Offset of field: ",
13384            stringify!(nk_window),
13385            "::",
13386            stringify!(buffer)
13387        )
13388    );
13389    assert_eq!(
13390        unsafe { &(*(::std::ptr::null::<nk_window>())).layout as *const _ as usize },
13391        168usize,
13392        concat!(
13393            "Offset of field: ",
13394            stringify!(nk_window),
13395            "::",
13396            stringify!(layout)
13397        )
13398    );
13399    assert_eq!(
13400        unsafe {
13401            &(*(::std::ptr::null::<nk_window>())).scrollbar_hiding_timer as *const _ as usize
13402        },
13403        176usize,
13404        concat!(
13405            "Offset of field: ",
13406            stringify!(nk_window),
13407            "::",
13408            stringify!(scrollbar_hiding_timer)
13409        )
13410    );
13411    assert_eq!(
13412        unsafe { &(*(::std::ptr::null::<nk_window>())).property as *const _ as usize },
13413        180usize,
13414        concat!(
13415            "Offset of field: ",
13416            stringify!(nk_window),
13417            "::",
13418            stringify!(property)
13419        )
13420    );
13421    assert_eq!(
13422        unsafe { &(*(::std::ptr::null::<nk_window>())).popup as *const _ as usize },
13423        288usize,
13424        concat!(
13425            "Offset of field: ",
13426            stringify!(nk_window),
13427            "::",
13428            stringify!(popup)
13429        )
13430    );
13431    assert_eq!(
13432        unsafe { &(*(::std::ptr::null::<nk_window>())).edit as *const _ as usize },
13433        384usize,
13434        concat!(
13435            "Offset of field: ",
13436            stringify!(nk_window),
13437            "::",
13438            stringify!(edit)
13439        )
13440    );
13441    assert_eq!(
13442        unsafe { &(*(::std::ptr::null::<nk_window>())).scrolled as *const _ as usize },
13443        428usize,
13444        concat!(
13445            "Offset of field: ",
13446            stringify!(nk_window),
13447            "::",
13448            stringify!(scrolled)
13449        )
13450    );
13451    assert_eq!(
13452        unsafe { &(*(::std::ptr::null::<nk_window>())).tables as *const _ as usize },
13453        432usize,
13454        concat!(
13455            "Offset of field: ",
13456            stringify!(nk_window),
13457            "::",
13458            stringify!(tables)
13459        )
13460    );
13461    assert_eq!(
13462        unsafe { &(*(::std::ptr::null::<nk_window>())).table_count as *const _ as usize },
13463        440usize,
13464        concat!(
13465            "Offset of field: ",
13466            stringify!(nk_window),
13467            "::",
13468            stringify!(table_count)
13469        )
13470    );
13471    assert_eq!(
13472        unsafe { &(*(::std::ptr::null::<nk_window>())).next as *const _ as usize },
13473        448usize,
13474        concat!(
13475            "Offset of field: ",
13476            stringify!(nk_window),
13477            "::",
13478            stringify!(next)
13479        )
13480    );
13481    assert_eq!(
13482        unsafe { &(*(::std::ptr::null::<nk_window>())).prev as *const _ as usize },
13483        456usize,
13484        concat!(
13485            "Offset of field: ",
13486            stringify!(nk_window),
13487            "::",
13488            stringify!(prev)
13489        )
13490    );
13491    assert_eq!(
13492        unsafe { &(*(::std::ptr::null::<nk_window>())).parent as *const _ as usize },
13493        464usize,
13494        concat!(
13495            "Offset of field: ",
13496            stringify!(nk_window),
13497            "::",
13498            stringify!(parent)
13499        )
13500    );
13501}
13502impl Default for nk_window {
13503    fn default() -> Self {
13504        unsafe { ::std::mem::zeroed() }
13505    }
13506}
13507#[repr(C)]
13508#[derive(Copy, Clone)]
13509pub struct nk_config_stack_style_item_element {
13510    pub address: *mut nk_style_item,
13511    pub old_value: nk_style_item,
13512}
13513#[test]
13514fn bindgen_test_layout_nk_config_stack_style_item_element() {
13515    assert_eq!(
13516        ::std::mem::size_of::<nk_config_stack_style_item_element>(),
13517        40usize,
13518        concat!("Size of: ", stringify!(nk_config_stack_style_item_element))
13519    );
13520    assert_eq!(
13521        ::std::mem::align_of::<nk_config_stack_style_item_element>(),
13522        8usize,
13523        concat!(
13524            "Alignment of ",
13525            stringify!(nk_config_stack_style_item_element)
13526        )
13527    );
13528    assert_eq!(
13529        unsafe {
13530            &(*(::std::ptr::null::<nk_config_stack_style_item_element>())).address as *const _
13531                as usize
13532        },
13533        0usize,
13534        concat!(
13535            "Offset of field: ",
13536            stringify!(nk_config_stack_style_item_element),
13537            "::",
13538            stringify!(address)
13539        )
13540    );
13541    assert_eq!(
13542        unsafe {
13543            &(*(::std::ptr::null::<nk_config_stack_style_item_element>())).old_value as *const _
13544                as usize
13545        },
13546        8usize,
13547        concat!(
13548            "Offset of field: ",
13549            stringify!(nk_config_stack_style_item_element),
13550            "::",
13551            stringify!(old_value)
13552        )
13553    );
13554}
13555impl Default for nk_config_stack_style_item_element {
13556    fn default() -> Self {
13557        unsafe { ::std::mem::zeroed() }
13558    }
13559}
13560#[repr(C)]
13561#[derive(Debug, Copy, Clone)]
13562pub struct nk_config_stack_float_element {
13563    pub address: *mut f32,
13564    pub old_value: f32,
13565}
13566#[test]
13567fn bindgen_test_layout_nk_config_stack_float_element() {
13568    assert_eq!(
13569        ::std::mem::size_of::<nk_config_stack_float_element>(),
13570        16usize,
13571        concat!("Size of: ", stringify!(nk_config_stack_float_element))
13572    );
13573    assert_eq!(
13574        ::std::mem::align_of::<nk_config_stack_float_element>(),
13575        8usize,
13576        concat!("Alignment of ", stringify!(nk_config_stack_float_element))
13577    );
13578    assert_eq!(
13579        unsafe {
13580            &(*(::std::ptr::null::<nk_config_stack_float_element>())).address as *const _ as usize
13581        },
13582        0usize,
13583        concat!(
13584            "Offset of field: ",
13585            stringify!(nk_config_stack_float_element),
13586            "::",
13587            stringify!(address)
13588        )
13589    );
13590    assert_eq!(
13591        unsafe {
13592            &(*(::std::ptr::null::<nk_config_stack_float_element>())).old_value as *const _ as usize
13593        },
13594        8usize,
13595        concat!(
13596            "Offset of field: ",
13597            stringify!(nk_config_stack_float_element),
13598            "::",
13599            stringify!(old_value)
13600        )
13601    );
13602}
13603impl Default for nk_config_stack_float_element {
13604    fn default() -> Self {
13605        unsafe { ::std::mem::zeroed() }
13606    }
13607}
13608#[repr(C)]
13609#[derive(Debug, Copy, Clone)]
13610pub struct nk_config_stack_vec2_element {
13611    pub address: *mut nk_vec2,
13612    pub old_value: nk_vec2,
13613}
13614#[test]
13615fn bindgen_test_layout_nk_config_stack_vec2_element() {
13616    assert_eq!(
13617        ::std::mem::size_of::<nk_config_stack_vec2_element>(),
13618        16usize,
13619        concat!("Size of: ", stringify!(nk_config_stack_vec2_element))
13620    );
13621    assert_eq!(
13622        ::std::mem::align_of::<nk_config_stack_vec2_element>(),
13623        8usize,
13624        concat!("Alignment of ", stringify!(nk_config_stack_vec2_element))
13625    );
13626    assert_eq!(
13627        unsafe {
13628            &(*(::std::ptr::null::<nk_config_stack_vec2_element>())).address as *const _ as usize
13629        },
13630        0usize,
13631        concat!(
13632            "Offset of field: ",
13633            stringify!(nk_config_stack_vec2_element),
13634            "::",
13635            stringify!(address)
13636        )
13637    );
13638    assert_eq!(
13639        unsafe {
13640            &(*(::std::ptr::null::<nk_config_stack_vec2_element>())).old_value as *const _ as usize
13641        },
13642        8usize,
13643        concat!(
13644            "Offset of field: ",
13645            stringify!(nk_config_stack_vec2_element),
13646            "::",
13647            stringify!(old_value)
13648        )
13649    );
13650}
13651impl Default for nk_config_stack_vec2_element {
13652    fn default() -> Self {
13653        unsafe { ::std::mem::zeroed() }
13654    }
13655}
13656#[repr(C)]
13657#[derive(Debug, Copy, Clone)]
13658pub struct nk_config_stack_flags_element {
13659    pub address: *mut nk_flags,
13660    pub old_value: nk_flags,
13661}
13662#[test]
13663fn bindgen_test_layout_nk_config_stack_flags_element() {
13664    assert_eq!(
13665        ::std::mem::size_of::<nk_config_stack_flags_element>(),
13666        16usize,
13667        concat!("Size of: ", stringify!(nk_config_stack_flags_element))
13668    );
13669    assert_eq!(
13670        ::std::mem::align_of::<nk_config_stack_flags_element>(),
13671        8usize,
13672        concat!("Alignment of ", stringify!(nk_config_stack_flags_element))
13673    );
13674    assert_eq!(
13675        unsafe {
13676            &(*(::std::ptr::null::<nk_config_stack_flags_element>())).address as *const _ as usize
13677        },
13678        0usize,
13679        concat!(
13680            "Offset of field: ",
13681            stringify!(nk_config_stack_flags_element),
13682            "::",
13683            stringify!(address)
13684        )
13685    );
13686    assert_eq!(
13687        unsafe {
13688            &(*(::std::ptr::null::<nk_config_stack_flags_element>())).old_value as *const _ as usize
13689        },
13690        8usize,
13691        concat!(
13692            "Offset of field: ",
13693            stringify!(nk_config_stack_flags_element),
13694            "::",
13695            stringify!(old_value)
13696        )
13697    );
13698}
13699impl Default for nk_config_stack_flags_element {
13700    fn default() -> Self {
13701        unsafe { ::std::mem::zeroed() }
13702    }
13703}
13704#[repr(C)]
13705#[derive(Debug, Copy, Clone)]
13706pub struct nk_config_stack_color_element {
13707    pub address: *mut nk_color,
13708    pub old_value: nk_color,
13709}
13710#[test]
13711fn bindgen_test_layout_nk_config_stack_color_element() {
13712    assert_eq!(
13713        ::std::mem::size_of::<nk_config_stack_color_element>(),
13714        16usize,
13715        concat!("Size of: ", stringify!(nk_config_stack_color_element))
13716    );
13717    assert_eq!(
13718        ::std::mem::align_of::<nk_config_stack_color_element>(),
13719        8usize,
13720        concat!("Alignment of ", stringify!(nk_config_stack_color_element))
13721    );
13722    assert_eq!(
13723        unsafe {
13724            &(*(::std::ptr::null::<nk_config_stack_color_element>())).address as *const _ as usize
13725        },
13726        0usize,
13727        concat!(
13728            "Offset of field: ",
13729            stringify!(nk_config_stack_color_element),
13730            "::",
13731            stringify!(address)
13732        )
13733    );
13734    assert_eq!(
13735        unsafe {
13736            &(*(::std::ptr::null::<nk_config_stack_color_element>())).old_value as *const _ as usize
13737        },
13738        8usize,
13739        concat!(
13740            "Offset of field: ",
13741            stringify!(nk_config_stack_color_element),
13742            "::",
13743            stringify!(old_value)
13744        )
13745    );
13746}
13747impl Default for nk_config_stack_color_element {
13748    fn default() -> Self {
13749        unsafe { ::std::mem::zeroed() }
13750    }
13751}
13752#[repr(C)]
13753#[derive(Debug, Copy, Clone)]
13754pub struct nk_config_stack_user_font_element {
13755    pub address: *mut *const nk_user_font,
13756    pub old_value: *const nk_user_font,
13757}
13758#[test]
13759fn bindgen_test_layout_nk_config_stack_user_font_element() {
13760    assert_eq!(
13761        ::std::mem::size_of::<nk_config_stack_user_font_element>(),
13762        16usize,
13763        concat!("Size of: ", stringify!(nk_config_stack_user_font_element))
13764    );
13765    assert_eq!(
13766        ::std::mem::align_of::<nk_config_stack_user_font_element>(),
13767        8usize,
13768        concat!(
13769            "Alignment of ",
13770            stringify!(nk_config_stack_user_font_element)
13771        )
13772    );
13773    assert_eq!(
13774        unsafe {
13775            &(*(::std::ptr::null::<nk_config_stack_user_font_element>())).address as *const _
13776                as usize
13777        },
13778        0usize,
13779        concat!(
13780            "Offset of field: ",
13781            stringify!(nk_config_stack_user_font_element),
13782            "::",
13783            stringify!(address)
13784        )
13785    );
13786    assert_eq!(
13787        unsafe {
13788            &(*(::std::ptr::null::<nk_config_stack_user_font_element>())).old_value as *const _
13789                as usize
13790        },
13791        8usize,
13792        concat!(
13793            "Offset of field: ",
13794            stringify!(nk_config_stack_user_font_element),
13795            "::",
13796            stringify!(old_value)
13797        )
13798    );
13799}
13800impl Default for nk_config_stack_user_font_element {
13801    fn default() -> Self {
13802        unsafe { ::std::mem::zeroed() }
13803    }
13804}
13805#[repr(C)]
13806#[derive(Debug, Copy, Clone)]
13807pub struct nk_config_stack_button_behavior_element {
13808    pub address: *mut nk_button_behavior,
13809    pub old_value: nk_button_behavior,
13810}
13811#[test]
13812fn bindgen_test_layout_nk_config_stack_button_behavior_element() {
13813    assert_eq!(
13814        ::std::mem::size_of::<nk_config_stack_button_behavior_element>(),
13815        16usize,
13816        concat!(
13817            "Size of: ",
13818            stringify!(nk_config_stack_button_behavior_element)
13819        )
13820    );
13821    assert_eq!(
13822        ::std::mem::align_of::<nk_config_stack_button_behavior_element>(),
13823        8usize,
13824        concat!(
13825            "Alignment of ",
13826            stringify!(nk_config_stack_button_behavior_element)
13827        )
13828    );
13829    assert_eq!(
13830        unsafe {
13831            &(*(::std::ptr::null::<nk_config_stack_button_behavior_element>())).address as *const _
13832                as usize
13833        },
13834        0usize,
13835        concat!(
13836            "Offset of field: ",
13837            stringify!(nk_config_stack_button_behavior_element),
13838            "::",
13839            stringify!(address)
13840        )
13841    );
13842    assert_eq!(
13843        unsafe {
13844            &(*(::std::ptr::null::<nk_config_stack_button_behavior_element>())).old_value
13845                as *const _ as usize
13846        },
13847        8usize,
13848        concat!(
13849            "Offset of field: ",
13850            stringify!(nk_config_stack_button_behavior_element),
13851            "::",
13852            stringify!(old_value)
13853        )
13854    );
13855}
13856impl Default for nk_config_stack_button_behavior_element {
13857    fn default() -> Self {
13858        unsafe { ::std::mem::zeroed() }
13859    }
13860}
13861#[repr(C)]
13862#[derive(Copy, Clone)]
13863pub struct nk_config_stack_style_item {
13864    pub head: ::std::os::raw::c_int,
13865    pub elements: [nk_config_stack_style_item_element; 16usize],
13866}
13867#[test]
13868fn bindgen_test_layout_nk_config_stack_style_item() {
13869    assert_eq!(
13870        ::std::mem::size_of::<nk_config_stack_style_item>(),
13871        648usize,
13872        concat!("Size of: ", stringify!(nk_config_stack_style_item))
13873    );
13874    assert_eq!(
13875        ::std::mem::align_of::<nk_config_stack_style_item>(),
13876        8usize,
13877        concat!("Alignment of ", stringify!(nk_config_stack_style_item))
13878    );
13879    assert_eq!(
13880        unsafe { &(*(::std::ptr::null::<nk_config_stack_style_item>())).head as *const _ as usize },
13881        0usize,
13882        concat!(
13883            "Offset of field: ",
13884            stringify!(nk_config_stack_style_item),
13885            "::",
13886            stringify!(head)
13887        )
13888    );
13889    assert_eq!(
13890        unsafe {
13891            &(*(::std::ptr::null::<nk_config_stack_style_item>())).elements as *const _ as usize
13892        },
13893        8usize,
13894        concat!(
13895            "Offset of field: ",
13896            stringify!(nk_config_stack_style_item),
13897            "::",
13898            stringify!(elements)
13899        )
13900    );
13901}
13902impl Default for nk_config_stack_style_item {
13903    fn default() -> Self {
13904        unsafe { ::std::mem::zeroed() }
13905    }
13906}
13907#[repr(C)]
13908#[derive(Debug, Copy, Clone)]
13909pub struct nk_config_stack_float {
13910    pub head: ::std::os::raw::c_int,
13911    pub elements: [nk_config_stack_float_element; 32usize],
13912}
13913#[test]
13914fn bindgen_test_layout_nk_config_stack_float() {
13915    assert_eq!(
13916        ::std::mem::size_of::<nk_config_stack_float>(),
13917        520usize,
13918        concat!("Size of: ", stringify!(nk_config_stack_float))
13919    );
13920    assert_eq!(
13921        ::std::mem::align_of::<nk_config_stack_float>(),
13922        8usize,
13923        concat!("Alignment of ", stringify!(nk_config_stack_float))
13924    );
13925    assert_eq!(
13926        unsafe { &(*(::std::ptr::null::<nk_config_stack_float>())).head as *const _ as usize },
13927        0usize,
13928        concat!(
13929            "Offset of field: ",
13930            stringify!(nk_config_stack_float),
13931            "::",
13932            stringify!(head)
13933        )
13934    );
13935    assert_eq!(
13936        unsafe { &(*(::std::ptr::null::<nk_config_stack_float>())).elements as *const _ as usize },
13937        8usize,
13938        concat!(
13939            "Offset of field: ",
13940            stringify!(nk_config_stack_float),
13941            "::",
13942            stringify!(elements)
13943        )
13944    );
13945}
13946impl Default for nk_config_stack_float {
13947    fn default() -> Self {
13948        unsafe { ::std::mem::zeroed() }
13949    }
13950}
13951#[repr(C)]
13952#[derive(Debug, Copy, Clone)]
13953pub struct nk_config_stack_vec2 {
13954    pub head: ::std::os::raw::c_int,
13955    pub elements: [nk_config_stack_vec2_element; 16usize],
13956}
13957#[test]
13958fn bindgen_test_layout_nk_config_stack_vec2() {
13959    assert_eq!(
13960        ::std::mem::size_of::<nk_config_stack_vec2>(),
13961        264usize,
13962        concat!("Size of: ", stringify!(nk_config_stack_vec2))
13963    );
13964    assert_eq!(
13965        ::std::mem::align_of::<nk_config_stack_vec2>(),
13966        8usize,
13967        concat!("Alignment of ", stringify!(nk_config_stack_vec2))
13968    );
13969    assert_eq!(
13970        unsafe { &(*(::std::ptr::null::<nk_config_stack_vec2>())).head as *const _ as usize },
13971        0usize,
13972        concat!(
13973            "Offset of field: ",
13974            stringify!(nk_config_stack_vec2),
13975            "::",
13976            stringify!(head)
13977        )
13978    );
13979    assert_eq!(
13980        unsafe { &(*(::std::ptr::null::<nk_config_stack_vec2>())).elements as *const _ as usize },
13981        8usize,
13982        concat!(
13983            "Offset of field: ",
13984            stringify!(nk_config_stack_vec2),
13985            "::",
13986            stringify!(elements)
13987        )
13988    );
13989}
13990impl Default for nk_config_stack_vec2 {
13991    fn default() -> Self {
13992        unsafe { ::std::mem::zeroed() }
13993    }
13994}
13995#[repr(C)]
13996#[derive(Debug, Copy, Clone)]
13997pub struct nk_config_stack_flags {
13998    pub head: ::std::os::raw::c_int,
13999    pub elements: [nk_config_stack_flags_element; 32usize],
14000}
14001#[test]
14002fn bindgen_test_layout_nk_config_stack_flags() {
14003    assert_eq!(
14004        ::std::mem::size_of::<nk_config_stack_flags>(),
14005        520usize,
14006        concat!("Size of: ", stringify!(nk_config_stack_flags))
14007    );
14008    assert_eq!(
14009        ::std::mem::align_of::<nk_config_stack_flags>(),
14010        8usize,
14011        concat!("Alignment of ", stringify!(nk_config_stack_flags))
14012    );
14013    assert_eq!(
14014        unsafe { &(*(::std::ptr::null::<nk_config_stack_flags>())).head as *const _ as usize },
14015        0usize,
14016        concat!(
14017            "Offset of field: ",
14018            stringify!(nk_config_stack_flags),
14019            "::",
14020            stringify!(head)
14021        )
14022    );
14023    assert_eq!(
14024        unsafe { &(*(::std::ptr::null::<nk_config_stack_flags>())).elements as *const _ as usize },
14025        8usize,
14026        concat!(
14027            "Offset of field: ",
14028            stringify!(nk_config_stack_flags),
14029            "::",
14030            stringify!(elements)
14031        )
14032    );
14033}
14034impl Default for nk_config_stack_flags {
14035    fn default() -> Self {
14036        unsafe { ::std::mem::zeroed() }
14037    }
14038}
14039#[repr(C)]
14040#[derive(Debug, Copy, Clone)]
14041pub struct nk_config_stack_color {
14042    pub head: ::std::os::raw::c_int,
14043    pub elements: [nk_config_stack_color_element; 32usize],
14044}
14045#[test]
14046fn bindgen_test_layout_nk_config_stack_color() {
14047    assert_eq!(
14048        ::std::mem::size_of::<nk_config_stack_color>(),
14049        520usize,
14050        concat!("Size of: ", stringify!(nk_config_stack_color))
14051    );
14052    assert_eq!(
14053        ::std::mem::align_of::<nk_config_stack_color>(),
14054        8usize,
14055        concat!("Alignment of ", stringify!(nk_config_stack_color))
14056    );
14057    assert_eq!(
14058        unsafe { &(*(::std::ptr::null::<nk_config_stack_color>())).head as *const _ as usize },
14059        0usize,
14060        concat!(
14061            "Offset of field: ",
14062            stringify!(nk_config_stack_color),
14063            "::",
14064            stringify!(head)
14065        )
14066    );
14067    assert_eq!(
14068        unsafe { &(*(::std::ptr::null::<nk_config_stack_color>())).elements as *const _ as usize },
14069        8usize,
14070        concat!(
14071            "Offset of field: ",
14072            stringify!(nk_config_stack_color),
14073            "::",
14074            stringify!(elements)
14075        )
14076    );
14077}
14078impl Default for nk_config_stack_color {
14079    fn default() -> Self {
14080        unsafe { ::std::mem::zeroed() }
14081    }
14082}
14083#[repr(C)]
14084#[derive(Debug, Copy, Clone)]
14085pub struct nk_config_stack_user_font {
14086    pub head: ::std::os::raw::c_int,
14087    pub elements: [nk_config_stack_user_font_element; 8usize],
14088}
14089#[test]
14090fn bindgen_test_layout_nk_config_stack_user_font() {
14091    assert_eq!(
14092        ::std::mem::size_of::<nk_config_stack_user_font>(),
14093        136usize,
14094        concat!("Size of: ", stringify!(nk_config_stack_user_font))
14095    );
14096    assert_eq!(
14097        ::std::mem::align_of::<nk_config_stack_user_font>(),
14098        8usize,
14099        concat!("Alignment of ", stringify!(nk_config_stack_user_font))
14100    );
14101    assert_eq!(
14102        unsafe { &(*(::std::ptr::null::<nk_config_stack_user_font>())).head as *const _ as usize },
14103        0usize,
14104        concat!(
14105            "Offset of field: ",
14106            stringify!(nk_config_stack_user_font),
14107            "::",
14108            stringify!(head)
14109        )
14110    );
14111    assert_eq!(
14112        unsafe {
14113            &(*(::std::ptr::null::<nk_config_stack_user_font>())).elements as *const _ as usize
14114        },
14115        8usize,
14116        concat!(
14117            "Offset of field: ",
14118            stringify!(nk_config_stack_user_font),
14119            "::",
14120            stringify!(elements)
14121        )
14122    );
14123}
14124impl Default for nk_config_stack_user_font {
14125    fn default() -> Self {
14126        unsafe { ::std::mem::zeroed() }
14127    }
14128}
14129#[repr(C)]
14130#[derive(Debug, Copy, Clone)]
14131pub struct nk_config_stack_button_behavior {
14132    pub head: ::std::os::raw::c_int,
14133    pub elements: [nk_config_stack_button_behavior_element; 8usize],
14134}
14135#[test]
14136fn bindgen_test_layout_nk_config_stack_button_behavior() {
14137    assert_eq!(
14138        ::std::mem::size_of::<nk_config_stack_button_behavior>(),
14139        136usize,
14140        concat!("Size of: ", stringify!(nk_config_stack_button_behavior))
14141    );
14142    assert_eq!(
14143        ::std::mem::align_of::<nk_config_stack_button_behavior>(),
14144        8usize,
14145        concat!("Alignment of ", stringify!(nk_config_stack_button_behavior))
14146    );
14147    assert_eq!(
14148        unsafe {
14149            &(*(::std::ptr::null::<nk_config_stack_button_behavior>())).head as *const _ as usize
14150        },
14151        0usize,
14152        concat!(
14153            "Offset of field: ",
14154            stringify!(nk_config_stack_button_behavior),
14155            "::",
14156            stringify!(head)
14157        )
14158    );
14159    assert_eq!(
14160        unsafe {
14161            &(*(::std::ptr::null::<nk_config_stack_button_behavior>())).elements as *const _
14162                as usize
14163        },
14164        8usize,
14165        concat!(
14166            "Offset of field: ",
14167            stringify!(nk_config_stack_button_behavior),
14168            "::",
14169            stringify!(elements)
14170        )
14171    );
14172}
14173impl Default for nk_config_stack_button_behavior {
14174    fn default() -> Self {
14175        unsafe { ::std::mem::zeroed() }
14176    }
14177}
14178#[repr(C)]
14179#[derive(Copy, Clone)]
14180pub struct nk_configuration_stacks {
14181    pub style_items: nk_config_stack_style_item,
14182    pub floats: nk_config_stack_float,
14183    pub vectors: nk_config_stack_vec2,
14184    pub flags: nk_config_stack_flags,
14185    pub colors: nk_config_stack_color,
14186    pub fonts: nk_config_stack_user_font,
14187    pub button_behaviors: nk_config_stack_button_behavior,
14188}
14189#[test]
14190fn bindgen_test_layout_nk_configuration_stacks() {
14191    assert_eq!(
14192        ::std::mem::size_of::<nk_configuration_stacks>(),
14193        2744usize,
14194        concat!("Size of: ", stringify!(nk_configuration_stacks))
14195    );
14196    assert_eq!(
14197        ::std::mem::align_of::<nk_configuration_stacks>(),
14198        8usize,
14199        concat!("Alignment of ", stringify!(nk_configuration_stacks))
14200    );
14201    assert_eq!(
14202        unsafe {
14203            &(*(::std::ptr::null::<nk_configuration_stacks>())).style_items as *const _ as usize
14204        },
14205        0usize,
14206        concat!(
14207            "Offset of field: ",
14208            stringify!(nk_configuration_stacks),
14209            "::",
14210            stringify!(style_items)
14211        )
14212    );
14213    assert_eq!(
14214        unsafe { &(*(::std::ptr::null::<nk_configuration_stacks>())).floats as *const _ as usize },
14215        648usize,
14216        concat!(
14217            "Offset of field: ",
14218            stringify!(nk_configuration_stacks),
14219            "::",
14220            stringify!(floats)
14221        )
14222    );
14223    assert_eq!(
14224        unsafe { &(*(::std::ptr::null::<nk_configuration_stacks>())).vectors as *const _ as usize },
14225        1168usize,
14226        concat!(
14227            "Offset of field: ",
14228            stringify!(nk_configuration_stacks),
14229            "::",
14230            stringify!(vectors)
14231        )
14232    );
14233    assert_eq!(
14234        unsafe { &(*(::std::ptr::null::<nk_configuration_stacks>())).flags as *const _ as usize },
14235        1432usize,
14236        concat!(
14237            "Offset of field: ",
14238            stringify!(nk_configuration_stacks),
14239            "::",
14240            stringify!(flags)
14241        )
14242    );
14243    assert_eq!(
14244        unsafe { &(*(::std::ptr::null::<nk_configuration_stacks>())).colors as *const _ as usize },
14245        1952usize,
14246        concat!(
14247            "Offset of field: ",
14248            stringify!(nk_configuration_stacks),
14249            "::",
14250            stringify!(colors)
14251        )
14252    );
14253    assert_eq!(
14254        unsafe { &(*(::std::ptr::null::<nk_configuration_stacks>())).fonts as *const _ as usize },
14255        2472usize,
14256        concat!(
14257            "Offset of field: ",
14258            stringify!(nk_configuration_stacks),
14259            "::",
14260            stringify!(fonts)
14261        )
14262    );
14263    assert_eq!(
14264        unsafe {
14265            &(*(::std::ptr::null::<nk_configuration_stacks>())).button_behaviors as *const _
14266                as usize
14267        },
14268        2608usize,
14269        concat!(
14270            "Offset of field: ",
14271            stringify!(nk_configuration_stacks),
14272            "::",
14273            stringify!(button_behaviors)
14274        )
14275    );
14276}
14277impl Default for nk_configuration_stacks {
14278    fn default() -> Self {
14279        unsafe { ::std::mem::zeroed() }
14280    }
14281}
14282#[repr(C)]
14283#[derive(Copy, Clone)]
14284pub struct nk_table {
14285    pub seq: ::std::os::raw::c_uint,
14286    pub size: ::std::os::raw::c_uint,
14287    pub keys: [nk_hash; 59usize],
14288    pub values: [nk_uint; 59usize],
14289    pub next: *mut nk_table,
14290    pub prev: *mut nk_table,
14291}
14292#[test]
14293fn bindgen_test_layout_nk_table() {
14294    assert_eq!(
14295        ::std::mem::size_of::<nk_table>(),
14296        496usize,
14297        concat!("Size of: ", stringify!(nk_table))
14298    );
14299    assert_eq!(
14300        ::std::mem::align_of::<nk_table>(),
14301        8usize,
14302        concat!("Alignment of ", stringify!(nk_table))
14303    );
14304    assert_eq!(
14305        unsafe { &(*(::std::ptr::null::<nk_table>())).seq as *const _ as usize },
14306        0usize,
14307        concat!(
14308            "Offset of field: ",
14309            stringify!(nk_table),
14310            "::",
14311            stringify!(seq)
14312        )
14313    );
14314    assert_eq!(
14315        unsafe { &(*(::std::ptr::null::<nk_table>())).size as *const _ as usize },
14316        4usize,
14317        concat!(
14318            "Offset of field: ",
14319            stringify!(nk_table),
14320            "::",
14321            stringify!(size)
14322        )
14323    );
14324    assert_eq!(
14325        unsafe { &(*(::std::ptr::null::<nk_table>())).keys as *const _ as usize },
14326        8usize,
14327        concat!(
14328            "Offset of field: ",
14329            stringify!(nk_table),
14330            "::",
14331            stringify!(keys)
14332        )
14333    );
14334    assert_eq!(
14335        unsafe { &(*(::std::ptr::null::<nk_table>())).values as *const _ as usize },
14336        244usize,
14337        concat!(
14338            "Offset of field: ",
14339            stringify!(nk_table),
14340            "::",
14341            stringify!(values)
14342        )
14343    );
14344    assert_eq!(
14345        unsafe { &(*(::std::ptr::null::<nk_table>())).next as *const _ as usize },
14346        480usize,
14347        concat!(
14348            "Offset of field: ",
14349            stringify!(nk_table),
14350            "::",
14351            stringify!(next)
14352        )
14353    );
14354    assert_eq!(
14355        unsafe { &(*(::std::ptr::null::<nk_table>())).prev as *const _ as usize },
14356        488usize,
14357        concat!(
14358            "Offset of field: ",
14359            stringify!(nk_table),
14360            "::",
14361            stringify!(prev)
14362        )
14363    );
14364}
14365impl Default for nk_table {
14366    fn default() -> Self {
14367        unsafe { ::std::mem::zeroed() }
14368    }
14369}
14370#[repr(C)]
14371#[derive(Copy, Clone)]
14372pub union nk_page_data {
14373    pub tbl: nk_table,
14374    pub pan: nk_panel,
14375    pub win: nk_window,
14376    _bindgen_union_align: [u64; 62usize],
14377}
14378#[test]
14379fn bindgen_test_layout_nk_page_data() {
14380    assert_eq!(
14381        ::std::mem::size_of::<nk_page_data>(),
14382        496usize,
14383        concat!("Size of: ", stringify!(nk_page_data))
14384    );
14385    assert_eq!(
14386        ::std::mem::align_of::<nk_page_data>(),
14387        8usize,
14388        concat!("Alignment of ", stringify!(nk_page_data))
14389    );
14390    assert_eq!(
14391        unsafe { &(*(::std::ptr::null::<nk_page_data>())).tbl as *const _ as usize },
14392        0usize,
14393        concat!(
14394            "Offset of field: ",
14395            stringify!(nk_page_data),
14396            "::",
14397            stringify!(tbl)
14398        )
14399    );
14400    assert_eq!(
14401        unsafe { &(*(::std::ptr::null::<nk_page_data>())).pan as *const _ as usize },
14402        0usize,
14403        concat!(
14404            "Offset of field: ",
14405            stringify!(nk_page_data),
14406            "::",
14407            stringify!(pan)
14408        )
14409    );
14410    assert_eq!(
14411        unsafe { &(*(::std::ptr::null::<nk_page_data>())).win as *const _ as usize },
14412        0usize,
14413        concat!(
14414            "Offset of field: ",
14415            stringify!(nk_page_data),
14416            "::",
14417            stringify!(win)
14418        )
14419    );
14420}
14421impl Default for nk_page_data {
14422    fn default() -> Self {
14423        unsafe { ::std::mem::zeroed() }
14424    }
14425}
14426#[repr(C)]
14427#[derive(Copy, Clone)]
14428pub struct nk_page_element {
14429    pub data: nk_page_data,
14430    pub next: *mut nk_page_element,
14431    pub prev: *mut nk_page_element,
14432}
14433#[test]
14434fn bindgen_test_layout_nk_page_element() {
14435    assert_eq!(
14436        ::std::mem::size_of::<nk_page_element>(),
14437        512usize,
14438        concat!("Size of: ", stringify!(nk_page_element))
14439    );
14440    assert_eq!(
14441        ::std::mem::align_of::<nk_page_element>(),
14442        8usize,
14443        concat!("Alignment of ", stringify!(nk_page_element))
14444    );
14445    assert_eq!(
14446        unsafe { &(*(::std::ptr::null::<nk_page_element>())).data as *const _ as usize },
14447        0usize,
14448        concat!(
14449            "Offset of field: ",
14450            stringify!(nk_page_element),
14451            "::",
14452            stringify!(data)
14453        )
14454    );
14455    assert_eq!(
14456        unsafe { &(*(::std::ptr::null::<nk_page_element>())).next as *const _ as usize },
14457        496usize,
14458        concat!(
14459            "Offset of field: ",
14460            stringify!(nk_page_element),
14461            "::",
14462            stringify!(next)
14463        )
14464    );
14465    assert_eq!(
14466        unsafe { &(*(::std::ptr::null::<nk_page_element>())).prev as *const _ as usize },
14467        504usize,
14468        concat!(
14469            "Offset of field: ",
14470            stringify!(nk_page_element),
14471            "::",
14472            stringify!(prev)
14473        )
14474    );
14475}
14476impl Default for nk_page_element {
14477    fn default() -> Self {
14478        unsafe { ::std::mem::zeroed() }
14479    }
14480}
14481#[repr(C)]
14482#[derive(Copy, Clone)]
14483pub struct nk_page {
14484    pub size: ::std::os::raw::c_uint,
14485    pub next: *mut nk_page,
14486    pub win: [nk_page_element; 1usize],
14487}
14488#[test]
14489fn bindgen_test_layout_nk_page() {
14490    assert_eq!(
14491        ::std::mem::size_of::<nk_page>(),
14492        528usize,
14493        concat!("Size of: ", stringify!(nk_page))
14494    );
14495    assert_eq!(
14496        ::std::mem::align_of::<nk_page>(),
14497        8usize,
14498        concat!("Alignment of ", stringify!(nk_page))
14499    );
14500    assert_eq!(
14501        unsafe { &(*(::std::ptr::null::<nk_page>())).size as *const _ as usize },
14502        0usize,
14503        concat!(
14504            "Offset of field: ",
14505            stringify!(nk_page),
14506            "::",
14507            stringify!(size)
14508        )
14509    );
14510    assert_eq!(
14511        unsafe { &(*(::std::ptr::null::<nk_page>())).next as *const _ as usize },
14512        8usize,
14513        concat!(
14514            "Offset of field: ",
14515            stringify!(nk_page),
14516            "::",
14517            stringify!(next)
14518        )
14519    );
14520    assert_eq!(
14521        unsafe { &(*(::std::ptr::null::<nk_page>())).win as *const _ as usize },
14522        16usize,
14523        concat!(
14524            "Offset of field: ",
14525            stringify!(nk_page),
14526            "::",
14527            stringify!(win)
14528        )
14529    );
14530}
14531impl Default for nk_page {
14532    fn default() -> Self {
14533        unsafe { ::std::mem::zeroed() }
14534    }
14535}
14536#[repr(C)]
14537#[derive(Copy, Clone)]
14538pub struct nk_pool {
14539    pub alloc: nk_allocator,
14540    pub type_: nk_allocation_type,
14541    pub page_count: ::std::os::raw::c_uint,
14542    pub pages: *mut nk_page,
14543    pub freelist: *mut nk_page_element,
14544    pub capacity: ::std::os::raw::c_uint,
14545    pub size: nk_size,
14546    pub cap: nk_size,
14547}
14548#[test]
14549fn bindgen_test_layout_nk_pool() {
14550    assert_eq!(
14551        ::std::mem::size_of::<nk_pool>(),
14552        72usize,
14553        concat!("Size of: ", stringify!(nk_pool))
14554    );
14555    assert_eq!(
14556        ::std::mem::align_of::<nk_pool>(),
14557        8usize,
14558        concat!("Alignment of ", stringify!(nk_pool))
14559    );
14560    assert_eq!(
14561        unsafe { &(*(::std::ptr::null::<nk_pool>())).alloc as *const _ as usize },
14562        0usize,
14563        concat!(
14564            "Offset of field: ",
14565            stringify!(nk_pool),
14566            "::",
14567            stringify!(alloc)
14568        )
14569    );
14570    assert_eq!(
14571        unsafe { &(*(::std::ptr::null::<nk_pool>())).type_ as *const _ as usize },
14572        24usize,
14573        concat!(
14574            "Offset of field: ",
14575            stringify!(nk_pool),
14576            "::",
14577            stringify!(type_)
14578        )
14579    );
14580    assert_eq!(
14581        unsafe { &(*(::std::ptr::null::<nk_pool>())).page_count as *const _ as usize },
14582        28usize,
14583        concat!(
14584            "Offset of field: ",
14585            stringify!(nk_pool),
14586            "::",
14587            stringify!(page_count)
14588        )
14589    );
14590    assert_eq!(
14591        unsafe { &(*(::std::ptr::null::<nk_pool>())).pages as *const _ as usize },
14592        32usize,
14593        concat!(
14594            "Offset of field: ",
14595            stringify!(nk_pool),
14596            "::",
14597            stringify!(pages)
14598        )
14599    );
14600    assert_eq!(
14601        unsafe { &(*(::std::ptr::null::<nk_pool>())).freelist as *const _ as usize },
14602        40usize,
14603        concat!(
14604            "Offset of field: ",
14605            stringify!(nk_pool),
14606            "::",
14607            stringify!(freelist)
14608        )
14609    );
14610    assert_eq!(
14611        unsafe { &(*(::std::ptr::null::<nk_pool>())).capacity as *const _ as usize },
14612        48usize,
14613        concat!(
14614            "Offset of field: ",
14615            stringify!(nk_pool),
14616            "::",
14617            stringify!(capacity)
14618        )
14619    );
14620    assert_eq!(
14621        unsafe { &(*(::std::ptr::null::<nk_pool>())).size as *const _ as usize },
14622        56usize,
14623        concat!(
14624            "Offset of field: ",
14625            stringify!(nk_pool),
14626            "::",
14627            stringify!(size)
14628        )
14629    );
14630    assert_eq!(
14631        unsafe { &(*(::std::ptr::null::<nk_pool>())).cap as *const _ as usize },
14632        64usize,
14633        concat!(
14634            "Offset of field: ",
14635            stringify!(nk_pool),
14636            "::",
14637            stringify!(cap)
14638        )
14639    );
14640}
14641impl Default for nk_pool {
14642    fn default() -> Self {
14643        unsafe { ::std::mem::zeroed() }
14644    }
14645}
14646#[repr(C)]
14647#[derive(Copy, Clone)]
14648pub struct nk_context {
14649    pub input: nk_input,
14650    pub style: nk_style,
14651    pub memory: nk_buffer,
14652    pub clip: nk_clipboard,
14653    pub last_widget_state: nk_flags,
14654    pub button_behavior: nk_button_behavior,
14655    pub stacks: nk_configuration_stacks,
14656    pub delta_time_seconds: f32,
14657    pub draw_list: nk_draw_list,
14658    pub userdata: nk_handle,
14659    pub text_edit: nk_text_edit,
14660    pub overlay: nk_command_buffer,
14661    pub build: ::std::os::raw::c_int,
14662    pub use_pool: ::std::os::raw::c_int,
14663    pub pool: nk_pool,
14664    pub begin: *mut nk_window,
14665    pub end: *mut nk_window,
14666    pub active: *mut nk_window,
14667    pub current: *mut nk_window,
14668    pub freelist: *mut nk_page_element,
14669    pub count: ::std::os::raw::c_uint,
14670    pub seq: ::std::os::raw::c_uint,
14671}
14672#[test]
14673fn bindgen_test_layout_nk_context() {
14674    assert_eq!(
14675        ::std::mem::size_of::<nk_context>(),
14676        16640usize,
14677        concat!("Size of: ", stringify!(nk_context))
14678    );
14679    assert_eq!(
14680        ::std::mem::align_of::<nk_context>(),
14681        8usize,
14682        concat!("Alignment of ", stringify!(nk_context))
14683    );
14684    assert_eq!(
14685        unsafe { &(*(::std::ptr::null::<nk_context>())).input as *const _ as usize },
14686        0usize,
14687        concat!(
14688            "Offset of field: ",
14689            stringify!(nk_context),
14690            "::",
14691            stringify!(input)
14692        )
14693    );
14694    assert_eq!(
14695        unsafe { &(*(::std::ptr::null::<nk_context>())).style as *const _ as usize },
14696        360usize,
14697        concat!(
14698            "Offset of field: ",
14699            stringify!(nk_context),
14700            "::",
14701            stringify!(style)
14702        )
14703    );
14704    assert_eq!(
14705        unsafe { &(*(::std::ptr::null::<nk_context>())).memory as *const _ as usize },
14706        7904usize,
14707        concat!(
14708            "Offset of field: ",
14709            stringify!(nk_context),
14710            "::",
14711            stringify!(memory)
14712        )
14713    );
14714    assert_eq!(
14715        unsafe { &(*(::std::ptr::null::<nk_context>())).clip as *const _ as usize },
14716        8024usize,
14717        concat!(
14718            "Offset of field: ",
14719            stringify!(nk_context),
14720            "::",
14721            stringify!(clip)
14722        )
14723    );
14724    assert_eq!(
14725        unsafe { &(*(::std::ptr::null::<nk_context>())).last_widget_state as *const _ as usize },
14726        8048usize,
14727        concat!(
14728            "Offset of field: ",
14729            stringify!(nk_context),
14730            "::",
14731            stringify!(last_widget_state)
14732        )
14733    );
14734    assert_eq!(
14735        unsafe { &(*(::std::ptr::null::<nk_context>())).button_behavior as *const _ as usize },
14736        8052usize,
14737        concat!(
14738            "Offset of field: ",
14739            stringify!(nk_context),
14740            "::",
14741            stringify!(button_behavior)
14742        )
14743    );
14744    assert_eq!(
14745        unsafe { &(*(::std::ptr::null::<nk_context>())).stacks as *const _ as usize },
14746        8056usize,
14747        concat!(
14748            "Offset of field: ",
14749            stringify!(nk_context),
14750            "::",
14751            stringify!(stacks)
14752        )
14753    );
14754    assert_eq!(
14755        unsafe { &(*(::std::ptr::null::<nk_context>())).delta_time_seconds as *const _ as usize },
14756        10800usize,
14757        concat!(
14758            "Offset of field: ",
14759            stringify!(nk_context),
14760            "::",
14761            stringify!(delta_time_seconds)
14762        )
14763    );
14764    assert_eq!(
14765        unsafe { &(*(::std::ptr::null::<nk_context>())).draw_list as *const _ as usize },
14766        10808usize,
14767        concat!(
14768            "Offset of field: ",
14769            stringify!(nk_context),
14770            "::",
14771            stringify!(draw_list)
14772        )
14773    );
14774    assert_eq!(
14775        unsafe { &(*(::std::ptr::null::<nk_context>())).userdata as *const _ as usize },
14776        11056usize,
14777        concat!(
14778            "Offset of field: ",
14779            stringify!(nk_context),
14780            "::",
14781            stringify!(userdata)
14782        )
14783    );
14784    assert_eq!(
14785        unsafe { &(*(::std::ptr::null::<nk_context>())).text_edit as *const _ as usize },
14786        11064usize,
14787        concat!(
14788            "Offset of field: ",
14789            stringify!(nk_context),
14790            "::",
14791            stringify!(text_edit)
14792        )
14793    );
14794    assert_eq!(
14795        unsafe { &(*(::std::ptr::null::<nk_context>())).overlay as *const _ as usize },
14796        16448usize,
14797        concat!(
14798            "Offset of field: ",
14799            stringify!(nk_context),
14800            "::",
14801            stringify!(overlay)
14802        )
14803    );
14804    assert_eq!(
14805        unsafe { &(*(::std::ptr::null::<nk_context>())).build as *const _ as usize },
14806        16512usize,
14807        concat!(
14808            "Offset of field: ",
14809            stringify!(nk_context),
14810            "::",
14811            stringify!(build)
14812        )
14813    );
14814    assert_eq!(
14815        unsafe { &(*(::std::ptr::null::<nk_context>())).use_pool as *const _ as usize },
14816        16516usize,
14817        concat!(
14818            "Offset of field: ",
14819            stringify!(nk_context),
14820            "::",
14821            stringify!(use_pool)
14822        )
14823    );
14824    assert_eq!(
14825        unsafe { &(*(::std::ptr::null::<nk_context>())).pool as *const _ as usize },
14826        16520usize,
14827        concat!(
14828            "Offset of field: ",
14829            stringify!(nk_context),
14830            "::",
14831            stringify!(pool)
14832        )
14833    );
14834    assert_eq!(
14835        unsafe { &(*(::std::ptr::null::<nk_context>())).begin as *const _ as usize },
14836        16592usize,
14837        concat!(
14838            "Offset of field: ",
14839            stringify!(nk_context),
14840            "::",
14841            stringify!(begin)
14842        )
14843    );
14844    assert_eq!(
14845        unsafe { &(*(::std::ptr::null::<nk_context>())).end as *const _ as usize },
14846        16600usize,
14847        concat!(
14848            "Offset of field: ",
14849            stringify!(nk_context),
14850            "::",
14851            stringify!(end)
14852        )
14853    );
14854    assert_eq!(
14855        unsafe { &(*(::std::ptr::null::<nk_context>())).active as *const _ as usize },
14856        16608usize,
14857        concat!(
14858            "Offset of field: ",
14859            stringify!(nk_context),
14860            "::",
14861            stringify!(active)
14862        )
14863    );
14864    assert_eq!(
14865        unsafe { &(*(::std::ptr::null::<nk_context>())).current as *const _ as usize },
14866        16616usize,
14867        concat!(
14868            "Offset of field: ",
14869            stringify!(nk_context),
14870            "::",
14871            stringify!(current)
14872        )
14873    );
14874    assert_eq!(
14875        unsafe { &(*(::std::ptr::null::<nk_context>())).freelist as *const _ as usize },
14876        16624usize,
14877        concat!(
14878            "Offset of field: ",
14879            stringify!(nk_context),
14880            "::",
14881            stringify!(freelist)
14882        )
14883    );
14884    assert_eq!(
14885        unsafe { &(*(::std::ptr::null::<nk_context>())).count as *const _ as usize },
14886        16632usize,
14887        concat!(
14888            "Offset of field: ",
14889            stringify!(nk_context),
14890            "::",
14891            stringify!(count)
14892        )
14893    );
14894    assert_eq!(
14895        unsafe { &(*(::std::ptr::null::<nk_context>())).seq as *const _ as usize },
14896        16636usize,
14897        concat!(
14898            "Offset of field: ",
14899            stringify!(nk_context),
14900            "::",
14901            stringify!(seq)
14902        )
14903    );
14904}
14905impl Default for nk_context {
14906    fn default() -> Self {
14907        unsafe { ::std::mem::zeroed() }
14908    }
14909}