1#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![allow(non_upper_case_globals)]
5
6mod colorset_custom;
7pub use self::colorset_custom::NEWT_COLORSET_CUSTOM;
8
9pub const __GNUC_VA_LIST: u32 = 1;
10pub const NEWT_COLORSET_ROOT: ::std::os::raw::c_int = 2;
11pub const NEWT_COLORSET_BORDER: ::std::os::raw::c_int = 3;
12pub const NEWT_COLORSET_WINDOW: ::std::os::raw::c_int = 4;
13pub const NEWT_COLORSET_SHADOW: ::std::os::raw::c_int = 5;
14pub const NEWT_COLORSET_TITLE: ::std::os::raw::c_int = 6;
15pub const NEWT_COLORSET_BUTTON: ::std::os::raw::c_int = 7;
16pub const NEWT_COLORSET_ACTBUTTON: ::std::os::raw::c_int = 8;
17pub const NEWT_COLORSET_CHECKBOX: ::std::os::raw::c_int = 9;
18pub const NEWT_COLORSET_ACTCHECKBOX: ::std::os::raw::c_int = 10;
19pub const NEWT_COLORSET_ENTRY: ::std::os::raw::c_int = 11;
20pub const NEWT_COLORSET_LABEL: ::std::os::raw::c_int = 12;
21pub const NEWT_COLORSET_LISTBOX: ::std::os::raw::c_int = 13;
22pub const NEWT_COLORSET_ACTLISTBOX: ::std::os::raw::c_int = 14;
23pub const NEWT_COLORSET_TEXTBOX: ::std::os::raw::c_int = 15;
24pub const NEWT_COLORSET_ACTTEXTBOX: ::std::os::raw::c_int = 16;
25pub const NEWT_COLORSET_HELPLINE: ::std::os::raw::c_int = 17;
26pub const NEWT_COLORSET_ROOTTEXT: ::std::os::raw::c_int = 18;
27pub const NEWT_COLORSET_EMPTYSCALE: ::std::os::raw::c_int = 19;
28pub const NEWT_COLORSET_FULLSCALE: ::std::os::raw::c_int = 20;
29pub const NEWT_COLORSET_DISENTRY: ::std::os::raw::c_int = 21;
30pub const NEWT_COLORSET_COMPACTBUTTON: ::std::os::raw::c_int = 22;
31pub const NEWT_COLORSET_ACTSELLISTBOX: ::std::os::raw::c_int = 23;
32pub const NEWT_COLORSET_SELLISTBOX: ::std::os::raw::c_int = 24;
33pub const NEWT_ARG_LAST: ::std::os::raw::c_int = -100000;
34pub const NEWT_ARG_APPEND: ::std::os::raw::c_int = -1;
35pub const NEWT_FLAG_RETURNEXIT: ::std::os::raw::c_int = 1;
36pub const NEWT_FLAG_HIDDEN: ::std::os::raw::c_int = 2;
37pub const NEWT_FLAG_SCROLL: ::std::os::raw::c_int = 4;
38pub const NEWT_FLAG_DISABLED: ::std::os::raw::c_int = 8;
39pub const NEWT_FLAG_BORDER: ::std::os::raw::c_int = 32;
40pub const NEWT_FLAG_WRAP: ::std::os::raw::c_int = 64;
41pub const NEWT_FLAG_NOF12: ::std::os::raw::c_int = 128;
42pub const NEWT_FLAG_MULTIPLE: ::std::os::raw::c_int = 256;
43pub const NEWT_FLAG_SELECTED: ::std::os::raw::c_int = 512;
44pub const NEWT_FLAG_CHECKBOX: ::std::os::raw::c_int = 1024;
45pub const NEWT_FLAG_PASSWORD: ::std::os::raw::c_int = 2048;
46pub const NEWT_FLAG_SHOWCURSOR: ::std::os::raw::c_int = 4096;
47pub const NEWT_FD_READ: ::std::os::raw::c_int = 1;
48pub const NEWT_FD_WRITE: ::std::os::raw::c_int = 2;
49pub const NEWT_FD_EXCEPT: ::std::os::raw::c_int = 4;
50pub const NEWT_CHECKBOXTREE_UNSELECTABLE: ::std::os::raw::c_int = 4096;
51pub const NEWT_CHECKBOXTREE_HIDE_BOX: ::std::os::raw::c_int = 8192;
52pub const NEWT_CHECKBOXTREE_COLLAPSED: ::std::os::raw::c_char = 0;
53pub const NEWT_CHECKBOXTREE_EXPANDED: ::std::os::raw::c_char = 1;
54pub const NEWT_CHECKBOXTREE_UNSELECTED: ::std::os::raw::c_char = 32;
55pub const NEWT_CHECKBOXTREE_SELECTED: ::std::os::raw::c_char = 42;
56pub const NEWT_LISTBOX_RETURNEXIT: ::std::os::raw::c_int = 1;
57pub const NEWT_ENTRY_SCROLL: ::std::os::raw::c_int = 4;
58pub const NEWT_ENTRY_HIDDEN: ::std::os::raw::c_int = 2;
59pub const NEWT_ENTRY_RETURNEXIT: ::std::os::raw::c_int = 1;
60pub const NEWT_ENTRY_DISABLED: ::std::os::raw::c_int = 8;
61pub const NEWT_TEXTBOX_WRAP: ::std::os::raw::c_int = 64;
62pub const NEWT_TEXTBOX_SCROLL: ::std::os::raw::c_int = 4;
63pub const NEWT_FORM_NOF12: ::std::os::raw::c_int = 128;
64pub const NEWT_KEY_TAB: ::std::os::raw::c_int = 9;
65pub const NEWT_KEY_ENTER: ::std::os::raw::c_int = 13;
66pub const NEWT_KEY_SUSPEND: ::std::os::raw::c_int = 26;
67pub const NEWT_KEY_ESCAPE: ::std::os::raw::c_int = 27;
68pub const NEWT_KEY_RETURN: ::std::os::raw::c_int = 13;
69pub const NEWT_KEY_EXTRA_BASE: ::std::os::raw::c_int = 32768;
70pub const NEWT_KEY_UP: ::std::os::raw::c_int = 32769;
71pub const NEWT_KEY_DOWN: ::std::os::raw::c_int = 32770;
72pub const NEWT_KEY_LEFT: ::std::os::raw::c_int = 32772;
73pub const NEWT_KEY_RIGHT: ::std::os::raw::c_int = 32773;
74pub const NEWT_KEY_BKSPC: ::std::os::raw::c_int = 32774;
75pub const NEWT_KEY_DELETE: ::std::os::raw::c_int = 32775;
76pub const NEWT_KEY_HOME: ::std::os::raw::c_int = 32776;
77pub const NEWT_KEY_END: ::std::os::raw::c_int = 32777;
78pub const NEWT_KEY_UNTAB: ::std::os::raw::c_int = 32778;
79pub const NEWT_KEY_PGUP: ::std::os::raw::c_int = 32779;
80pub const NEWT_KEY_PGDN: ::std::os::raw::c_int = 32780;
81pub const NEWT_KEY_INSERT: ::std::os::raw::c_int = 32781;
82pub const NEWT_KEY_F1: ::std::os::raw::c_int = 32869;
83pub const NEWT_KEY_F2: ::std::os::raw::c_int = 32870;
84pub const NEWT_KEY_F3: ::std::os::raw::c_int = 32871;
85pub const NEWT_KEY_F4: ::std::os::raw::c_int = 32872;
86pub const NEWT_KEY_F5: ::std::os::raw::c_int = 32873;
87pub const NEWT_KEY_F6: ::std::os::raw::c_int = 32874;
88pub const NEWT_KEY_F7: ::std::os::raw::c_int = 32875;
89pub const NEWT_KEY_F8: ::std::os::raw::c_int = 32876;
90pub const NEWT_KEY_F9: ::std::os::raw::c_int = 32877;
91pub const NEWT_KEY_F10: ::std::os::raw::c_int = 32878;
92pub const NEWT_KEY_F11: ::std::os::raw::c_int = 32879;
93pub const NEWT_KEY_F12: ::std::os::raw::c_int = 32880;
94pub const NEWT_KEY_RESIZE: ::std::os::raw::c_int = 32881;
95pub const NEWT_KEY_ERROR: ::std::os::raw::c_int = 32882;
96pub const NEWT_ANCHOR_LEFT: ::std::os::raw::c_int = 1;
97pub const NEWT_ANCHOR_RIGHT: ::std::os::raw::c_int = 2;
98pub const NEWT_ANCHOR_TOP: ::std::os::raw::c_int = 4;
99pub const NEWT_ANCHOR_BOTTOM: ::std::os::raw::c_int = 8;
100pub const NEWT_GRID_FLAG_GROWX: ::std::os::raw::c_int = 1;
101pub const NEWT_GRID_FLAG_GROWY: ::std::os::raw::c_int = 2;
102pub type va_list = __builtin_va_list;
103#[repr(C)]
104#[derive(Debug, Copy, Clone)]
105pub struct newtColors {
106 pub rootFg: *mut ::std::os::raw::c_char,
107 pub rootBg: *mut ::std::os::raw::c_char,
108 pub borderFg: *mut ::std::os::raw::c_char,
109 pub borderBg: *mut ::std::os::raw::c_char,
110 pub windowFg: *mut ::std::os::raw::c_char,
111 pub windowBg: *mut ::std::os::raw::c_char,
112 pub shadowFg: *mut ::std::os::raw::c_char,
113 pub shadowBg: *mut ::std::os::raw::c_char,
114 pub titleFg: *mut ::std::os::raw::c_char,
115 pub titleBg: *mut ::std::os::raw::c_char,
116 pub buttonFg: *mut ::std::os::raw::c_char,
117 pub buttonBg: *mut ::std::os::raw::c_char,
118 pub actButtonFg: *mut ::std::os::raw::c_char,
119 pub actButtonBg: *mut ::std::os::raw::c_char,
120 pub checkboxFg: *mut ::std::os::raw::c_char,
121 pub checkboxBg: *mut ::std::os::raw::c_char,
122 pub actCheckboxFg: *mut ::std::os::raw::c_char,
123 pub actCheckboxBg: *mut ::std::os::raw::c_char,
124 pub entryFg: *mut ::std::os::raw::c_char,
125 pub entryBg: *mut ::std::os::raw::c_char,
126 pub labelFg: *mut ::std::os::raw::c_char,
127 pub labelBg: *mut ::std::os::raw::c_char,
128 pub listboxFg: *mut ::std::os::raw::c_char,
129 pub listboxBg: *mut ::std::os::raw::c_char,
130 pub actListboxFg: *mut ::std::os::raw::c_char,
131 pub actListboxBg: *mut ::std::os::raw::c_char,
132 pub textboxFg: *mut ::std::os::raw::c_char,
133 pub textboxBg: *mut ::std::os::raw::c_char,
134 pub actTextboxFg: *mut ::std::os::raw::c_char,
135 pub actTextboxBg: *mut ::std::os::raw::c_char,
136 pub helpLineFg: *mut ::std::os::raw::c_char,
137 pub helpLineBg: *mut ::std::os::raw::c_char,
138 pub rootTextFg: *mut ::std::os::raw::c_char,
139 pub rootTextBg: *mut ::std::os::raw::c_char,
140 pub emptyScale: *mut ::std::os::raw::c_char,
141 pub fullScale: *mut ::std::os::raw::c_char,
142 pub disabledEntryFg: *mut ::std::os::raw::c_char,
143 pub disabledEntryBg: *mut ::std::os::raw::c_char,
144 pub compactButtonFg: *mut ::std::os::raw::c_char,
145 pub compactButtonBg: *mut ::std::os::raw::c_char,
146 pub actSelListboxFg: *mut ::std::os::raw::c_char,
147 pub actSelListboxBg: *mut ::std::os::raw::c_char,
148 pub selListboxFg: *mut ::std::os::raw::c_char,
149 pub selListboxBg: *mut ::std::os::raw::c_char,
150}
151#[allow(clippy::unnecessary_operation, clippy::identity_op)]
152#[cfg(any(target_arch = "arm", target_arch = "riscv32", target_arch = "x86"))]
153const _: () = {
154 ["Size of newtColors"][::std::mem::size_of::<newtColors>() - 176usize];
155 ["Alignment of newtColors"][::std::mem::align_of::<newtColors>() - 4usize];
156 ["Offset of field: newtColors::rootFg"][::std::mem::offset_of!(newtColors, rootFg) - 0usize];
157 ["Offset of field: newtColors::rootBg"][::std::mem::offset_of!(newtColors, rootBg) - 4usize];
158 ["Offset of field: newtColors::borderFg"]
159 [::std::mem::offset_of!(newtColors, borderFg) - 8usize];
160 ["Offset of field: newtColors::borderBg"]
161 [::std::mem::offset_of!(newtColors, borderBg) - 12usize];
162 ["Offset of field: newtColors::windowFg"]
163 [::std::mem::offset_of!(newtColors, windowFg) - 16usize];
164 ["Offset of field: newtColors::windowBg"]
165 [::std::mem::offset_of!(newtColors, windowBg) - 20usize];
166 ["Offset of field: newtColors::shadowFg"]
167 [::std::mem::offset_of!(newtColors, shadowFg) - 24usize];
168 ["Offset of field: newtColors::shadowBg"]
169 [::std::mem::offset_of!(newtColors, shadowBg) - 28usize];
170 ["Offset of field: newtColors::titleFg"][::std::mem::offset_of!(newtColors, titleFg) - 32usize];
171 ["Offset of field: newtColors::titleBg"][::std::mem::offset_of!(newtColors, titleBg) - 36usize];
172 ["Offset of field: newtColors::buttonFg"]
173 [::std::mem::offset_of!(newtColors, buttonFg) - 40usize];
174 ["Offset of field: newtColors::buttonBg"]
175 [::std::mem::offset_of!(newtColors, buttonBg) - 44usize];
176 ["Offset of field: newtColors::actButtonFg"]
177 [::std::mem::offset_of!(newtColors, actButtonFg) - 48usize];
178 ["Offset of field: newtColors::actButtonBg"]
179 [::std::mem::offset_of!(newtColors, actButtonBg) - 52usize];
180 ["Offset of field: newtColors::checkboxFg"]
181 [::std::mem::offset_of!(newtColors, checkboxFg) - 56usize];
182 ["Offset of field: newtColors::checkboxBg"]
183 [::std::mem::offset_of!(newtColors, checkboxBg) - 60usize];
184 ["Offset of field: newtColors::actCheckboxFg"]
185 [::std::mem::offset_of!(newtColors, actCheckboxFg) - 64usize];
186 ["Offset of field: newtColors::actCheckboxBg"]
187 [::std::mem::offset_of!(newtColors, actCheckboxBg) - 68usize];
188 ["Offset of field: newtColors::entryFg"][::std::mem::offset_of!(newtColors, entryFg) - 72usize];
189 ["Offset of field: newtColors::entryBg"][::std::mem::offset_of!(newtColors, entryBg) - 76usize];
190 ["Offset of field: newtColors::labelFg"][::std::mem::offset_of!(newtColors, labelFg) - 80usize];
191 ["Offset of field: newtColors::labelBg"][::std::mem::offset_of!(newtColors, labelBg) - 84usize];
192 ["Offset of field: newtColors::listboxFg"]
193 [::std::mem::offset_of!(newtColors, listboxFg) - 88usize];
194 ["Offset of field: newtColors::listboxBg"]
195 [::std::mem::offset_of!(newtColors, listboxBg) - 92usize];
196 ["Offset of field: newtColors::actListboxFg"]
197 [::std::mem::offset_of!(newtColors, actListboxFg) - 96usize];
198 ["Offset of field: newtColors::actListboxBg"]
199 [::std::mem::offset_of!(newtColors, actListboxBg) - 100usize];
200 ["Offset of field: newtColors::textboxFg"]
201 [::std::mem::offset_of!(newtColors, textboxFg) - 104usize];
202 ["Offset of field: newtColors::textboxBg"]
203 [::std::mem::offset_of!(newtColors, textboxBg) - 108usize];
204 ["Offset of field: newtColors::actTextboxFg"]
205 [::std::mem::offset_of!(newtColors, actTextboxFg) - 112usize];
206 ["Offset of field: newtColors::actTextboxBg"]
207 [::std::mem::offset_of!(newtColors, actTextboxBg) - 116usize];
208 ["Offset of field: newtColors::helpLineFg"]
209 [::std::mem::offset_of!(newtColors, helpLineFg) - 120usize];
210 ["Offset of field: newtColors::helpLineBg"]
211 [::std::mem::offset_of!(newtColors, helpLineBg) - 124usize];
212 ["Offset of field: newtColors::rootTextFg"]
213 [::std::mem::offset_of!(newtColors, rootTextFg) - 128usize];
214 ["Offset of field: newtColors::rootTextBg"]
215 [::std::mem::offset_of!(newtColors, rootTextBg) - 132usize];
216 ["Offset of field: newtColors::emptyScale"]
217 [::std::mem::offset_of!(newtColors, emptyScale) - 136usize];
218 ["Offset of field: newtColors::fullScale"]
219 [::std::mem::offset_of!(newtColors, fullScale) - 140usize];
220 ["Offset of field: newtColors::disabledEntryFg"]
221 [::std::mem::offset_of!(newtColors, disabledEntryFg) - 144usize];
222 ["Offset of field: newtColors::disabledEntryBg"]
223 [::std::mem::offset_of!(newtColors, disabledEntryBg) - 148usize];
224 ["Offset of field: newtColors::compactButtonFg"]
225 [::std::mem::offset_of!(newtColors, compactButtonFg) - 152usize];
226 ["Offset of field: newtColors::compactButtonBg"]
227 [::std::mem::offset_of!(newtColors, compactButtonBg) - 156usize];
228 ["Offset of field: newtColors::actSelListboxFg"]
229 [::std::mem::offset_of!(newtColors, actSelListboxFg) - 160usize];
230 ["Offset of field: newtColors::actSelListboxBg"]
231 [::std::mem::offset_of!(newtColors, actSelListboxBg) - 164usize];
232 ["Offset of field: newtColors::selListboxFg"]
233 [::std::mem::offset_of!(newtColors, selListboxFg) - 168usize];
234 ["Offset of field: newtColors::selListboxBg"]
235 [::std::mem::offset_of!(newtColors, selListboxBg) - 172usize];
236};
237#[allow(clippy::unnecessary_operation, clippy::identity_op)]
238#[cfg(any(target_arch = "aarch64", target_arch = "riscv64", target_arch = "x86_64"))]
239const _: () = {
240 ["Size of newtColors"][::std::mem::size_of::<newtColors>() - 352usize];
241 ["Alignment of newtColors"][::std::mem::align_of::<newtColors>() - 8usize];
242 ["Offset of field: newtColors::rootFg"][::std::mem::offset_of!(newtColors, rootFg) - 0usize];
243 ["Offset of field: newtColors::rootBg"][::std::mem::offset_of!(newtColors, rootBg) - 8usize];
244 ["Offset of field: newtColors::borderFg"]
245 [::std::mem::offset_of!(newtColors, borderFg) - 16usize];
246 ["Offset of field: newtColors::borderBg"]
247 [::std::mem::offset_of!(newtColors, borderBg) - 24usize];
248 ["Offset of field: newtColors::windowFg"]
249 [::std::mem::offset_of!(newtColors, windowFg) - 32usize];
250 ["Offset of field: newtColors::windowBg"]
251 [::std::mem::offset_of!(newtColors, windowBg) - 40usize];
252 ["Offset of field: newtColors::shadowFg"]
253 [::std::mem::offset_of!(newtColors, shadowFg) - 48usize];
254 ["Offset of field: newtColors::shadowBg"]
255 [::std::mem::offset_of!(newtColors, shadowBg) - 56usize];
256 ["Offset of field: newtColors::titleFg"][::std::mem::offset_of!(newtColors, titleFg) - 64usize];
257 ["Offset of field: newtColors::titleBg"][::std::mem::offset_of!(newtColors, titleBg) - 72usize];
258 ["Offset of field: newtColors::buttonFg"]
259 [::std::mem::offset_of!(newtColors, buttonFg) - 80usize];
260 ["Offset of field: newtColors::buttonBg"]
261 [::std::mem::offset_of!(newtColors, buttonBg) - 88usize];
262 ["Offset of field: newtColors::actButtonFg"]
263 [::std::mem::offset_of!(newtColors, actButtonFg) - 96usize];
264 ["Offset of field: newtColors::actButtonBg"]
265 [::std::mem::offset_of!(newtColors, actButtonBg) - 104usize];
266 ["Offset of field: newtColors::checkboxFg"]
267 [::std::mem::offset_of!(newtColors, checkboxFg) - 112usize];
268 ["Offset of field: newtColors::checkboxBg"]
269 [::std::mem::offset_of!(newtColors, checkboxBg) - 120usize];
270 ["Offset of field: newtColors::actCheckboxFg"]
271 [::std::mem::offset_of!(newtColors, actCheckboxFg) - 128usize];
272 ["Offset of field: newtColors::actCheckboxBg"]
273 [::std::mem::offset_of!(newtColors, actCheckboxBg) - 136usize];
274 ["Offset of field: newtColors::entryFg"]
275 [::std::mem::offset_of!(newtColors, entryFg) - 144usize];
276 ["Offset of field: newtColors::entryBg"]
277 [::std::mem::offset_of!(newtColors, entryBg) - 152usize];
278 ["Offset of field: newtColors::labelFg"]
279 [::std::mem::offset_of!(newtColors, labelFg) - 160usize];
280 ["Offset of field: newtColors::labelBg"]
281 [::std::mem::offset_of!(newtColors, labelBg) - 168usize];
282 ["Offset of field: newtColors::listboxFg"]
283 [::std::mem::offset_of!(newtColors, listboxFg) - 176usize];
284 ["Offset of field: newtColors::listboxBg"]
285 [::std::mem::offset_of!(newtColors, listboxBg) - 184usize];
286 ["Offset of field: newtColors::actListboxFg"]
287 [::std::mem::offset_of!(newtColors, actListboxFg) - 192usize];
288 ["Offset of field: newtColors::actListboxBg"]
289 [::std::mem::offset_of!(newtColors, actListboxBg) - 200usize];
290 ["Offset of field: newtColors::textboxFg"]
291 [::std::mem::offset_of!(newtColors, textboxFg) - 208usize];
292 ["Offset of field: newtColors::textboxBg"]
293 [::std::mem::offset_of!(newtColors, textboxBg) - 216usize];
294 ["Offset of field: newtColors::actTextboxFg"]
295 [::std::mem::offset_of!(newtColors, actTextboxFg) - 224usize];
296 ["Offset of field: newtColors::actTextboxBg"]
297 [::std::mem::offset_of!(newtColors, actTextboxBg) - 232usize];
298 ["Offset of field: newtColors::helpLineFg"]
299 [::std::mem::offset_of!(newtColors, helpLineFg) - 240usize];
300 ["Offset of field: newtColors::helpLineBg"]
301 [::std::mem::offset_of!(newtColors, helpLineBg) - 248usize];
302 ["Offset of field: newtColors::rootTextFg"]
303 [::std::mem::offset_of!(newtColors, rootTextFg) - 256usize];
304 ["Offset of field: newtColors::rootTextBg"]
305 [::std::mem::offset_of!(newtColors, rootTextBg) - 264usize];
306 ["Offset of field: newtColors::emptyScale"]
307 [::std::mem::offset_of!(newtColors, emptyScale) - 272usize];
308 ["Offset of field: newtColors::fullScale"]
309 [::std::mem::offset_of!(newtColors, fullScale) - 280usize];
310 ["Offset of field: newtColors::disabledEntryFg"]
311 [::std::mem::offset_of!(newtColors, disabledEntryFg) - 288usize];
312 ["Offset of field: newtColors::disabledEntryBg"]
313 [::std::mem::offset_of!(newtColors, disabledEntryBg) - 296usize];
314 ["Offset of field: newtColors::compactButtonFg"]
315 [::std::mem::offset_of!(newtColors, compactButtonFg) - 304usize];
316 ["Offset of field: newtColors::compactButtonBg"]
317 [::std::mem::offset_of!(newtColors, compactButtonBg) - 312usize];
318 ["Offset of field: newtColors::actSelListboxFg"]
319 [::std::mem::offset_of!(newtColors, actSelListboxFg) - 320usize];
320 ["Offset of field: newtColors::actSelListboxBg"]
321 [::std::mem::offset_of!(newtColors, actSelListboxBg) - 328usize];
322 ["Offset of field: newtColors::selListboxFg"]
323 [::std::mem::offset_of!(newtColors, selListboxFg) - 336usize];
324 ["Offset of field: newtColors::selListboxBg"]
325 [::std::mem::offset_of!(newtColors, selListboxBg) - 344usize];
326};
327pub const newtFlagsSense_NEWT_FLAGS_SET: newtFlagsSense = 0;
328pub const newtFlagsSense_NEWT_FLAGS_RESET: newtFlagsSense = 1;
329pub const newtFlagsSense_NEWT_FLAGS_TOGGLE: newtFlagsSense = 2;
330pub type newtFlagsSense = ::std::os::raw::c_uint;
331#[repr(C)]
332#[derive(Debug, Copy, Clone)]
333pub struct newtComponent_struct {
334 _unused: [u8; 0],
335}
336pub type newtComponent = *mut newtComponent_struct;
337extern "C" {
338 pub static newtDefaultColorPalette: newtColors;
339}
340pub type newtCallback = ::std::option::Option<
341 unsafe extern "C" fn(arg1: newtComponent, arg2: *mut ::std::os::raw::c_void),
342>;
343pub type newtSuspendCallback =
344 ::std::option::Option<unsafe extern "C" fn(data: *mut ::std::os::raw::c_void)>;
345extern "C" {
346 pub fn newtInit() -> ::std::os::raw::c_int;
347}
348extern "C" {
349 pub fn newtFinished() -> ::std::os::raw::c_int;
350}
351extern "C" {
352 pub fn newtCls();
353}
354extern "C" {
355 pub fn newtResizeScreen(redraw: ::std::os::raw::c_int);
356}
357extern "C" {
358 pub fn newtWaitForKey();
359}
360extern "C" {
361 pub fn newtClearKeyBuffer();
362}
363extern "C" {
364 pub fn newtDelay(usecs: ::std::os::raw::c_uint);
365}
366extern "C" {
367 pub fn newtOpenWindow(
368 left: ::std::os::raw::c_int,
369 top: ::std::os::raw::c_int,
370 width: ::std::os::raw::c_uint,
371 height: ::std::os::raw::c_uint,
372 title: *const ::std::os::raw::c_char,
373 ) -> ::std::os::raw::c_int;
374}
375extern "C" {
376 pub fn newtCenteredWindow(
377 width: ::std::os::raw::c_uint,
378 height: ::std::os::raw::c_uint,
379 title: *const ::std::os::raw::c_char,
380 ) -> ::std::os::raw::c_int;
381}
382extern "C" {
383 pub fn newtPopWindow();
384}
385extern "C" {
386 pub fn newtPopWindowNoRefresh();
387}
388extern "C" {
389 pub fn newtSetColors(colors: newtColors);
390}
391extern "C" {
392 pub fn newtSetColor(
393 colorset: ::std::os::raw::c_int,
394 fg: *mut ::std::os::raw::c_char,
395 bg: *mut ::std::os::raw::c_char,
396 );
397}
398extern "C" {
399 pub fn newtRefresh();
400}
401extern "C" {
402 pub fn newtSuspend();
403}
404extern "C" {
405 pub fn newtSetSuspendCallback(cb: newtSuspendCallback, data: *mut ::std::os::raw::c_void);
406}
407extern "C" {
408 pub fn newtSetHelpCallback(cb: newtCallback);
409}
410extern "C" {
411 pub fn newtResume() -> ::std::os::raw::c_int;
412}
413extern "C" {
414 pub fn newtPushHelpLine(text: *const ::std::os::raw::c_char);
415}
416extern "C" {
417 pub fn newtRedrawHelpLine();
418}
419extern "C" {
420 pub fn newtPopHelpLine();
421}
422extern "C" {
423 pub fn newtDrawRootText(
424 col: ::std::os::raw::c_int,
425 row: ::std::os::raw::c_int,
426 text: *const ::std::os::raw::c_char,
427 );
428}
429extern "C" {
430 pub fn newtBell();
431}
432extern "C" {
433 pub fn newtCursorOff();
434}
435extern "C" {
436 pub fn newtCursorOn();
437}
438extern "C" {
439 pub fn newtCompactButton(
440 left: ::std::os::raw::c_int,
441 top: ::std::os::raw::c_int,
442 text: *const ::std::os::raw::c_char,
443 ) -> newtComponent;
444}
445extern "C" {
446 pub fn newtButton(
447 left: ::std::os::raw::c_int,
448 top: ::std::os::raw::c_int,
449 text: *const ::std::os::raw::c_char,
450 ) -> newtComponent;
451}
452extern "C" {
453 pub fn newtCheckbox(
454 left: ::std::os::raw::c_int,
455 top: ::std::os::raw::c_int,
456 text: *const ::std::os::raw::c_char,
457 defValue: ::std::os::raw::c_char,
458 seq: *const ::std::os::raw::c_char,
459 result: *mut ::std::os::raw::c_char,
460 ) -> newtComponent;
461}
462extern "C" {
463 pub fn newtCheckboxGetValue(co: newtComponent) -> ::std::os::raw::c_char;
464}
465extern "C" {
466 pub fn newtCheckboxSetValue(co: newtComponent, value: ::std::os::raw::c_char);
467}
468extern "C" {
469 pub fn newtCheckboxSetFlags(
470 co: newtComponent,
471 flags: ::std::os::raw::c_int,
472 sense: newtFlagsSense,
473 );
474}
475extern "C" {
476 pub fn newtRadiobutton(
477 left: ::std::os::raw::c_int,
478 top: ::std::os::raw::c_int,
479 text: *const ::std::os::raw::c_char,
480 isDefault: ::std::os::raw::c_int,
481 prevButton: newtComponent,
482 ) -> newtComponent;
483}
484extern "C" {
485 pub fn newtRadioGetCurrent(setMember: newtComponent) -> newtComponent;
486}
487extern "C" {
488 pub fn newtRadioSetCurrent(setMember: newtComponent);
489}
490extern "C" {
491 pub fn newtGetScreenSize(cols: *mut ::std::os::raw::c_int, rows: *mut ::std::os::raw::c_int);
492}
493extern "C" {
494 pub fn newtLabel(
495 left: ::std::os::raw::c_int,
496 top: ::std::os::raw::c_int,
497 text: *const ::std::os::raw::c_char,
498 ) -> newtComponent;
499}
500extern "C" {
501 pub fn newtLabelSetText(co: newtComponent, text: *const ::std::os::raw::c_char);
502}
503extern "C" {
504 pub fn newtLabelSetColors(co: newtComponent, colorset: ::std::os::raw::c_int);
505}
506extern "C" {
507 pub fn newtVerticalScrollbar(
508 left: ::std::os::raw::c_int,
509 top: ::std::os::raw::c_int,
510 height: ::std::os::raw::c_int,
511 normalColorset: ::std::os::raw::c_int,
512 thumbColorset: ::std::os::raw::c_int,
513 ) -> newtComponent;
514}
515extern "C" {
516 pub fn newtScrollbarSet(
517 co: newtComponent,
518 where_: ::std::os::raw::c_int,
519 total: ::std::os::raw::c_int,
520 );
521}
522extern "C" {
523 pub fn newtScrollbarSetColors(
524 co: newtComponent,
525 normal: ::std::os::raw::c_int,
526 thumb: ::std::os::raw::c_int,
527 );
528}
529extern "C" {
530 pub fn newtListbox(
531 left: ::std::os::raw::c_int,
532 top: ::std::os::raw::c_int,
533 height: ::std::os::raw::c_int,
534 flags: ::std::os::raw::c_int,
535 ) -> newtComponent;
536}
537extern "C" {
538 pub fn newtListboxGetCurrent(co: newtComponent) -> *mut ::std::os::raw::c_void;
539}
540extern "C" {
541 pub fn newtListboxSetCurrent(co: newtComponent, num: ::std::os::raw::c_int);
542}
543extern "C" {
544 pub fn newtListboxSetCurrentByKey(co: newtComponent, key: *mut ::std::os::raw::c_void);
545}
546extern "C" {
547 pub fn newtListboxSetEntry(
548 co: newtComponent,
549 num: ::std::os::raw::c_int,
550 text: *const ::std::os::raw::c_char,
551 );
552}
553extern "C" {
554 pub fn newtListboxSetWidth(co: newtComponent, width: ::std::os::raw::c_int);
555}
556extern "C" {
557 pub fn newtListboxSetData(
558 co: newtComponent,
559 num: ::std::os::raw::c_int,
560 data: *mut ::std::os::raw::c_void,
561 );
562}
563extern "C" {
564 pub fn newtListboxAppendEntry(
565 co: newtComponent,
566 text: *const ::std::os::raw::c_char,
567 data: *const ::std::os::raw::c_void,
568 ) -> ::std::os::raw::c_int;
569}
570extern "C" {
571 pub fn newtListboxInsertEntry(
572 co: newtComponent,
573 text: *const ::std::os::raw::c_char,
574 data: *const ::std::os::raw::c_void,
575 key: *mut ::std::os::raw::c_void,
576 ) -> ::std::os::raw::c_int;
577}
578extern "C" {
579 pub fn newtListboxDeleteEntry(
580 co: newtComponent,
581 data: *mut ::std::os::raw::c_void,
582 ) -> ::std::os::raw::c_int;
583}
584extern "C" {
585 pub fn newtListboxClear(co: newtComponent);
586}
587extern "C" {
588 pub fn newtListboxGetEntry(
589 co: newtComponent,
590 num: ::std::os::raw::c_int,
591 text: *mut *mut ::std::os::raw::c_char,
592 data: *mut *mut ::std::os::raw::c_void,
593 );
594}
595extern "C" {
596 pub fn newtListboxGetSelection(
597 co: newtComponent,
598 numitems: *mut ::std::os::raw::c_int,
599 ) -> *mut *mut ::std::os::raw::c_void;
600}
601extern "C" {
602 pub fn newtListboxClearSelection(co: newtComponent);
603}
604extern "C" {
605 pub fn newtListboxSelectItem(
606 co: newtComponent,
607 key: *const ::std::os::raw::c_void,
608 sense: newtFlagsSense,
609 );
610}
611extern "C" {
612 pub fn newtListboxItemCount(co: newtComponent) -> ::std::os::raw::c_int;
613}
614extern "C" {
615 pub fn newtCheckboxTree(
616 left: ::std::os::raw::c_int,
617 top: ::std::os::raw::c_int,
618 height: ::std::os::raw::c_int,
619 flags: ::std::os::raw::c_int,
620 ) -> newtComponent;
621}
622extern "C" {
623 pub fn newtCheckboxTreeMulti(
624 left: ::std::os::raw::c_int,
625 top: ::std::os::raw::c_int,
626 height: ::std::os::raw::c_int,
627 seq: *mut ::std::os::raw::c_char,
628 flags: ::std::os::raw::c_int,
629 ) -> newtComponent;
630}
631extern "C" {
632 pub fn newtCheckboxTreeGetSelection(
633 co: newtComponent,
634 numitems: *mut ::std::os::raw::c_int,
635 ) -> *mut *const ::std::os::raw::c_void;
636}
637extern "C" {
638 pub fn newtCheckboxTreeGetCurrent(co: newtComponent) -> *const ::std::os::raw::c_void;
639}
640extern "C" {
641 pub fn newtCheckboxTreeSetCurrent(co: newtComponent, item: *mut ::std::os::raw::c_void);
642}
643extern "C" {
644 pub fn newtCheckboxTreeGetMultiSelection(
645 co: newtComponent,
646 numitems: *mut ::std::os::raw::c_int,
647 seqnum: ::std::os::raw::c_char,
648 ) -> *mut *const ::std::os::raw::c_void;
649}
650extern "C" {
651 pub fn newtCheckboxTreeAddItem(
652 co: newtComponent,
653 text: *const ::std::os::raw::c_char,
654 data: *const ::std::os::raw::c_void,
655 flags: ::std::os::raw::c_int,
656 index: ::std::os::raw::c_int,
657 ...
658 ) -> ::std::os::raw::c_int;
659}
660extern "C" {
661 pub fn newtCheckboxTreeAddArray(
662 co: newtComponent,
663 text: *const ::std::os::raw::c_char,
664 data: *const ::std::os::raw::c_void,
665 flags: ::std::os::raw::c_int,
666 indexes: *mut ::std::os::raw::c_int,
667 ) -> ::std::os::raw::c_int;
668}
669extern "C" {
670 pub fn newtCheckboxTreeFindItem(
671 co: newtComponent,
672 data: *mut ::std::os::raw::c_void,
673 ) -> *mut ::std::os::raw::c_int;
674}
675extern "C" {
676 pub fn newtCheckboxTreeSetEntry(
677 co: newtComponent,
678 data: *const ::std::os::raw::c_void,
679 text: *const ::std::os::raw::c_char,
680 );
681}
682extern "C" {
683 pub fn newtCheckboxTreeSetWidth(co: newtComponent, width: ::std::os::raw::c_int);
684}
685extern "C" {
686 pub fn newtCheckboxTreeGetEntryValue(
687 co: newtComponent,
688 data: *const ::std::os::raw::c_void,
689 ) -> ::std::os::raw::c_char;
690}
691extern "C" {
692 pub fn newtCheckboxTreeSetEntryValue(
693 co: newtComponent,
694 data: *const ::std::os::raw::c_void,
695 value: ::std::os::raw::c_char,
696 );
697}
698extern "C" {
699 pub fn newtTextboxReflowed(
700 left: ::std::os::raw::c_int,
701 top: ::std::os::raw::c_int,
702 text: *mut ::std::os::raw::c_char,
703 width: ::std::os::raw::c_int,
704 flexDown: ::std::os::raw::c_int,
705 flexUp: ::std::os::raw::c_int,
706 flags: ::std::os::raw::c_int,
707 ) -> newtComponent;
708}
709extern "C" {
710 pub fn newtTextbox(
711 left: ::std::os::raw::c_int,
712 top: ::std::os::raw::c_int,
713 width: ::std::os::raw::c_int,
714 height: ::std::os::raw::c_int,
715 flags: ::std::os::raw::c_int,
716 ) -> newtComponent;
717}
718extern "C" {
719 pub fn newtTextboxSetText(co: newtComponent, text: *const ::std::os::raw::c_char);
720}
721extern "C" {
722 pub fn newtTextboxSetHeight(co: newtComponent, height: ::std::os::raw::c_int);
723}
724extern "C" {
725 pub fn newtTextboxGetNumLines(co: newtComponent) -> ::std::os::raw::c_int;
726}
727extern "C" {
728 pub fn newtTextboxSetColors(
729 co: newtComponent,
730 normal: ::std::os::raw::c_int,
731 active: ::std::os::raw::c_int,
732 );
733}
734extern "C" {
735 pub fn newtReflowText(
736 text: *mut ::std::os::raw::c_char,
737 width: ::std::os::raw::c_int,
738 flexDown: ::std::os::raw::c_int,
739 flexUp: ::std::os::raw::c_int,
740 actualWidth: *mut ::std::os::raw::c_int,
741 actualHeight: *mut ::std::os::raw::c_int,
742 ) -> *mut ::std::os::raw::c_char;
743}
744#[repr(C)]
745#[derive(Copy, Clone)]
746pub struct newtExitStruct {
747 pub reason: newtExitStruct__bindgen_ty_1,
748 pub u: newtExitStruct__bindgen_ty_2,
749}
750pub const newtExitStruct_NEWT_EXIT_HOTKEY: ::std::os::raw::c_uint = 0;
751pub const newtExitStruct_NEWT_EXIT_COMPONENT: ::std::os::raw::c_uint = 1;
752pub const newtExitStruct_NEWT_EXIT_FDREADY: ::std::os::raw::c_uint = 2;
753pub const newtExitStruct_NEWT_EXIT_TIMER: ::std::os::raw::c_uint = 3;
754pub const newtExitStruct_NEWT_EXIT_ERROR: ::std::os::raw::c_uint = 4;
755pub type newtExitStruct__bindgen_ty_1 = ::std::os::raw::c_uint;
756#[repr(C)]
757#[derive(Copy, Clone)]
758pub union newtExitStruct__bindgen_ty_2 {
759 pub watch: ::std::os::raw::c_int,
760 pub key: ::std::os::raw::c_int,
761 pub co: newtComponent,
762}
763#[allow(clippy::unnecessary_operation, clippy::identity_op)]
764#[cfg(any(target_arch = "arm", target_arch = "riscv32", target_arch = "x86"))]
765const _: () = {
766 ["Size of newtExitStruct__bindgen_ty_2"]
767 [::std::mem::size_of::<newtExitStruct__bindgen_ty_2>() - 4usize];
768 ["Alignment of newtExitStruct__bindgen_ty_2"]
769 [::std::mem::align_of::<newtExitStruct__bindgen_ty_2>() - 4usize];
770 ["Offset of field: newtExitStruct__bindgen_ty_2::watch"]
771 [::std::mem::offset_of!(newtExitStruct__bindgen_ty_2, watch) - 0usize];
772 ["Offset of field: newtExitStruct__bindgen_ty_2::key"]
773 [::std::mem::offset_of!(newtExitStruct__bindgen_ty_2, key) - 0usize];
774 ["Offset of field: newtExitStruct__bindgen_ty_2::co"]
775 [::std::mem::offset_of!(newtExitStruct__bindgen_ty_2, co) - 0usize];
776};
777#[allow(clippy::unnecessary_operation, clippy::identity_op)]
778#[cfg(any(target_arch = "arm", target_arch = "riscv32", target_arch = "x86"))]
779const _: () = {
780 ["Size of newtExitStruct"][::std::mem::size_of::<newtExitStruct>() - 8usize];
781 ["Alignment of newtExitStruct"][::std::mem::align_of::<newtExitStruct>() - 4usize];
782 ["Offset of field: newtExitStruct::reason"]
783 [::std::mem::offset_of!(newtExitStruct, reason) - 0usize];
784 ["Offset of field: newtExitStruct::u"][::std::mem::offset_of!(newtExitStruct, u) - 4usize];
785};
786#[allow(clippy::unnecessary_operation, clippy::identity_op)]
787#[cfg(any(target_arch = "aarch64", target_arch = "riscv64", target_arch = "x86_64"))]
788const _: () = {
789 ["Size of newtExitStruct__bindgen_ty_2"]
790 [::std::mem::size_of::<newtExitStruct__bindgen_ty_2>() - 8usize];
791 ["Alignment of newtExitStruct__bindgen_ty_2"]
792 [::std::mem::align_of::<newtExitStruct__bindgen_ty_2>() - 8usize];
793 ["Offset of field: newtExitStruct__bindgen_ty_2::watch"]
794 [::std::mem::offset_of!(newtExitStruct__bindgen_ty_2, watch) - 0usize];
795 ["Offset of field: newtExitStruct__bindgen_ty_2::key"]
796 [::std::mem::offset_of!(newtExitStruct__bindgen_ty_2, key) - 0usize];
797 ["Offset of field: newtExitStruct__bindgen_ty_2::co"]
798 [::std::mem::offset_of!(newtExitStruct__bindgen_ty_2, co) - 0usize];
799};
800#[allow(clippy::unnecessary_operation, clippy::identity_op)]
801#[cfg(any(target_arch = "aarch64", target_arch = "riscv64", target_arch = "x86_64"))]
802const _: () = {
803 ["Size of newtExitStruct"][::std::mem::size_of::<newtExitStruct>() - 16usize];
804 ["Alignment of newtExitStruct"][::std::mem::align_of::<newtExitStruct>() - 8usize];
805 ["Offset of field: newtExitStruct::reason"]
806 [::std::mem::offset_of!(newtExitStruct, reason) - 0usize];
807 ["Offset of field: newtExitStruct::u"][::std::mem::offset_of!(newtExitStruct, u) - 8usize];
808};
809extern "C" {
810 pub fn newtForm(
811 vertBar: newtComponent,
812 helpTag: *mut ::std::os::raw::c_void,
813 flags: ::std::os::raw::c_int,
814 ) -> newtComponent;
815}
816extern "C" {
817 pub fn newtFormSetTimer(form: newtComponent, millisecs: ::std::os::raw::c_int);
818}
819extern "C" {
820 pub fn newtFormWatchFd(
821 form: newtComponent,
822 fd: ::std::os::raw::c_int,
823 fdFlags: ::std::os::raw::c_int,
824 );
825}
826extern "C" {
827 pub fn newtFormSetSize(co: newtComponent);
828}
829extern "C" {
830 pub fn newtFormGetCurrent(co: newtComponent) -> newtComponent;
831}
832extern "C" {
833 pub fn newtFormSetBackground(co: newtComponent, color: ::std::os::raw::c_int);
834}
835extern "C" {
836 pub fn newtFormSetCurrent(co: newtComponent, subco: newtComponent);
837}
838extern "C" {
839 pub fn newtFormAddComponent(form: newtComponent, co: newtComponent);
840}
841extern "C" {
842 pub fn newtFormAddComponents(form: newtComponent, ...);
843}
844extern "C" {
845 pub fn newtFormSetHeight(co: newtComponent, height: ::std::os::raw::c_int);
846}
847extern "C" {
848 pub fn newtFormSetWidth(co: newtComponent, width: ::std::os::raw::c_int);
849}
850extern "C" {
851 pub fn newtRunForm(form: newtComponent) -> newtComponent;
852}
853extern "C" {
854 pub fn newtFormRun(co: newtComponent, es: *mut newtExitStruct);
855}
856extern "C" {
857 pub fn newtDrawForm(form: newtComponent);
858}
859extern "C" {
860 pub fn newtFormAddHotKey(co: newtComponent, key: ::std::os::raw::c_int);
861}
862extern "C" {
863 pub fn newtFormGetScrollPosition(co: newtComponent) -> ::std::os::raw::c_int;
864}
865extern "C" {
866 pub fn newtFormSetScrollPosition(co: newtComponent, position: ::std::os::raw::c_int);
867}
868pub type newtEntryFilter = ::std::option::Option<
869 unsafe extern "C" fn(
870 entry: newtComponent,
871 data: *mut ::std::os::raw::c_void,
872 ch: ::std::os::raw::c_int,
873 cursor: ::std::os::raw::c_int,
874 ) -> ::std::os::raw::c_int,
875>;
876extern "C" {
877 pub fn newtEntry(
878 left: ::std::os::raw::c_int,
879 top: ::std::os::raw::c_int,
880 initialValue: *const ::std::os::raw::c_char,
881 width: ::std::os::raw::c_int,
882 resultPtr: *mut *const ::std::os::raw::c_char,
883 flags: ::std::os::raw::c_int,
884 ) -> newtComponent;
885}
886extern "C" {
887 pub fn newtEntrySet(
888 co: newtComponent,
889 value: *const ::std::os::raw::c_char,
890 cursorAtEnd: ::std::os::raw::c_int,
891 );
892}
893extern "C" {
894 pub fn newtEntrySetFilter(
895 co: newtComponent,
896 filter: newtEntryFilter,
897 data: *mut ::std::os::raw::c_void,
898 );
899}
900extern "C" {
901 pub fn newtEntryGetValue(co: newtComponent) -> *mut ::std::os::raw::c_char;
902}
903extern "C" {
904 pub fn newtEntrySetFlags(
905 co: newtComponent,
906 flags: ::std::os::raw::c_int,
907 sense: newtFlagsSense,
908 );
909}
910extern "C" {
911 pub fn newtEntrySetColors(
912 co: newtComponent,
913 normal: ::std::os::raw::c_int,
914 disabled: ::std::os::raw::c_int,
915 );
916}
917extern "C" {
918 pub fn newtEntryGetCursorPosition(co: newtComponent) -> ::std::os::raw::c_int;
919}
920extern "C" {
921 pub fn newtEntrySetCursorPosition(co: newtComponent, position: ::std::os::raw::c_int);
922}
923extern "C" {
924 pub fn newtScale(
925 left: ::std::os::raw::c_int,
926 top: ::std::os::raw::c_int,
927 width: ::std::os::raw::c_int,
928 fullValue: ::std::os::raw::c_longlong,
929 ) -> newtComponent;
930}
931extern "C" {
932 pub fn newtScaleSet(co: newtComponent, amount: ::std::os::raw::c_ulonglong);
933}
934extern "C" {
935 pub fn newtScaleSetColors(
936 co: newtComponent,
937 empty: ::std::os::raw::c_int,
938 full: ::std::os::raw::c_int,
939 );
940}
941extern "C" {
942 pub fn newtComponentAddCallback(
943 co: newtComponent,
944 f: newtCallback,
945 data: *mut ::std::os::raw::c_void,
946 );
947}
948extern "C" {
949 pub fn newtComponentTakesFocus(co: newtComponent, val: ::std::os::raw::c_int);
950}
951extern "C" {
952 pub fn newtComponentGetPosition(
953 co: newtComponent,
954 left: *mut ::std::os::raw::c_int,
955 top: *mut ::std::os::raw::c_int,
956 );
957}
958extern "C" {
959 pub fn newtComponentGetSize(
960 co: newtComponent,
961 width: *mut ::std::os::raw::c_int,
962 height: *mut ::std::os::raw::c_int,
963 );
964}
965extern "C" {
966 pub fn newtComponentAddDestroyCallback(
967 co: newtComponent,
968 f: newtCallback,
969 data: *mut ::std::os::raw::c_void,
970 );
971}
972extern "C" {
973 pub fn newtFormDestroy(form: newtComponent);
974}
975extern "C" {
976 pub fn newtComponentDestroy(co: newtComponent);
977}
978#[repr(C)]
979#[derive(Debug, Copy, Clone)]
980pub struct grid_s {
981 _unused: [u8; 0],
982}
983pub type newtGrid = *mut grid_s;
984pub const newtGridElement_NEWT_GRID_EMPTY: newtGridElement = 0;
985pub const newtGridElement_NEWT_GRID_COMPONENT: newtGridElement = 1;
986pub const newtGridElement_NEWT_GRID_SUBGRID: newtGridElement = 2;
987pub type newtGridElement = ::std::os::raw::c_uint;
988extern "C" {
989 pub fn newtCreateGrid(cols: ::std::os::raw::c_int, rows: ::std::os::raw::c_int) -> newtGrid;
990}
991extern "C" {
992 pub fn newtGridVStacked(
993 type_: newtGridElement,
994 what: *mut ::std::os::raw::c_void,
995 ...
996 ) -> newtGrid;
997}
998extern "C" {
999 pub fn newtGridVCloseStacked(
1000 type_: newtGridElement,
1001 what: *mut ::std::os::raw::c_void,
1002 ...
1003 ) -> newtGrid;
1004}
1005extern "C" {
1006 pub fn newtGridHStacked(
1007 type1: newtGridElement,
1008 what1: *mut ::std::os::raw::c_void,
1009 ...
1010 ) -> newtGrid;
1011}
1012extern "C" {
1013 pub fn newtGridHCloseStacked(
1014 type1: newtGridElement,
1015 what1: *mut ::std::os::raw::c_void,
1016 ...
1017 ) -> newtGrid;
1018}
1019extern "C" {
1020 pub fn newtGridBasicWindow(
1021 text: newtComponent,
1022 middle: newtGrid,
1023 buttons: newtGrid,
1024 ) -> newtGrid;
1025}
1026extern "C" {
1027 pub fn newtGridSimpleWindow(
1028 text: newtComponent,
1029 middle: newtComponent,
1030 buttons: newtGrid,
1031 ) -> newtGrid;
1032}
1033extern "C" {
1034 pub fn newtGridSetField(
1035 grid: newtGrid,
1036 col: ::std::os::raw::c_int,
1037 row: ::std::os::raw::c_int,
1038 type_: newtGridElement,
1039 val: *mut ::std::os::raw::c_void,
1040 padLeft: ::std::os::raw::c_int,
1041 padTop: ::std::os::raw::c_int,
1042 padRight: ::std::os::raw::c_int,
1043 padBottom: ::std::os::raw::c_int,
1044 anchor: ::std::os::raw::c_int,
1045 flags: ::std::os::raw::c_int,
1046 );
1047}
1048extern "C" {
1049 pub fn newtGridPlace(grid: newtGrid, left: ::std::os::raw::c_int, top: ::std::os::raw::c_int);
1050}
1051extern "C" {
1052 pub fn newtGridFree(grid: newtGrid, recurse: ::std::os::raw::c_int);
1053}
1054extern "C" {
1055 pub fn newtGridGetSize(
1056 grid: newtGrid,
1057 width: *mut ::std::os::raw::c_int,
1058 height: *mut ::std::os::raw::c_int,
1059 );
1060}
1061extern "C" {
1062 pub fn newtGridWrappedWindow(grid: newtGrid, title: *mut ::std::os::raw::c_char);
1063}
1064extern "C" {
1065 pub fn newtGridWrappedWindowAt(
1066 grid: newtGrid,
1067 title: *mut ::std::os::raw::c_char,
1068 left: ::std::os::raw::c_int,
1069 top: ::std::os::raw::c_int,
1070 );
1071}
1072extern "C" {
1073 pub fn newtGridAddComponentsToForm(
1074 grid: newtGrid,
1075 form: newtComponent,
1076 recurse: ::std::os::raw::c_int,
1077 );
1078}
1079extern "C" {
1080 pub fn newtButtonBarv(
1081 button1: *mut ::std::os::raw::c_char,
1082 b1comp: *mut newtComponent,
1083 args: va_list,
1084 ) -> newtGrid;
1085}
1086extern "C" {
1087 pub fn newtButtonBar(
1088 button1: *mut ::std::os::raw::c_char,
1089 b1comp: *mut newtComponent,
1090 ...
1091 ) -> newtGrid;
1092}
1093extern "C" {
1094 pub fn newtWinMessage(
1095 title: *mut ::std::os::raw::c_char,
1096 buttonText: *mut ::std::os::raw::c_char,
1097 text: *mut ::std::os::raw::c_char,
1098 ...
1099 );
1100}
1101extern "C" {
1102 pub fn newtWinMessagev(
1103 title: *mut ::std::os::raw::c_char,
1104 buttonText: *mut ::std::os::raw::c_char,
1105 text: *mut ::std::os::raw::c_char,
1106 argv: va_list,
1107 );
1108}
1109extern "C" {
1110 pub fn newtWinChoice(
1111 title: *mut ::std::os::raw::c_char,
1112 button1: *mut ::std::os::raw::c_char,
1113 button2: *mut ::std::os::raw::c_char,
1114 text: *mut ::std::os::raw::c_char,
1115 ...
1116 ) -> ::std::os::raw::c_int;
1117}
1118extern "C" {
1119 pub fn newtWinTernary(
1120 title: *mut ::std::os::raw::c_char,
1121 button1: *mut ::std::os::raw::c_char,
1122 button2: *mut ::std::os::raw::c_char,
1123 button3: *mut ::std::os::raw::c_char,
1124 message: *mut ::std::os::raw::c_char,
1125 ...
1126 ) -> ::std::os::raw::c_int;
1127}
1128extern "C" {
1129 pub fn newtWinMenu(
1130 title: *mut ::std::os::raw::c_char,
1131 text: *mut ::std::os::raw::c_char,
1132 suggestedWidth: ::std::os::raw::c_int,
1133 flexDown: ::std::os::raw::c_int,
1134 flexUp: ::std::os::raw::c_int,
1135 maxListHeight: ::std::os::raw::c_int,
1136 items: *mut *mut ::std::os::raw::c_char,
1137 listItem: *mut ::std::os::raw::c_int,
1138 button1: *mut ::std::os::raw::c_char,
1139 ...
1140 ) -> ::std::os::raw::c_int;
1141}
1142#[repr(C)]
1143#[derive(Debug, Copy, Clone)]
1144pub struct newtWinEntry {
1145 pub text: *mut ::std::os::raw::c_char,
1146 pub value: *mut *mut ::std::os::raw::c_char,
1147 pub flags: ::std::os::raw::c_int,
1148}
1149#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1150#[cfg(any(target_arch = "arm", target_arch = "riscv32", target_arch = "x86"))]
1151const _: () = {
1152 ["Size of newtWinEntry"][::std::mem::size_of::<newtWinEntry>() - 12usize];
1153 ["Alignment of newtWinEntry"][::std::mem::align_of::<newtWinEntry>() - 4usize];
1154 ["Offset of field: newtWinEntry::text"][::std::mem::offset_of!(newtWinEntry, text) - 0usize];
1155 ["Offset of field: newtWinEntry::value"][::std::mem::offset_of!(newtWinEntry, value) - 4usize];
1156 ["Offset of field: newtWinEntry::flags"][::std::mem::offset_of!(newtWinEntry, flags) - 8usize];
1157};
1158#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1159#[cfg(any(target_arch = "aarch64", target_arch = "riscv64", target_arch = "x86_64"))]
1160const _: () = {
1161 ["Size of newtWinEntry"][::std::mem::size_of::<newtWinEntry>() - 24usize];
1162 ["Alignment of newtWinEntry"][::std::mem::align_of::<newtWinEntry>() - 8usize];
1163 ["Offset of field: newtWinEntry::text"][::std::mem::offset_of!(newtWinEntry, text) - 0usize];
1164 ["Offset of field: newtWinEntry::value"][::std::mem::offset_of!(newtWinEntry, value) - 8usize];
1165 ["Offset of field: newtWinEntry::flags"][::std::mem::offset_of!(newtWinEntry, flags) - 16usize];
1166};
1167extern "C" {
1168 pub fn newtWinEntries(
1169 title: *mut ::std::os::raw::c_char,
1170 text: *mut ::std::os::raw::c_char,
1171 suggestedWidth: ::std::os::raw::c_int,
1172 flexDown: ::std::os::raw::c_int,
1173 flexUp: ::std::os::raw::c_int,
1174 dataWidth: ::std::os::raw::c_int,
1175 items: *mut newtWinEntry,
1176 button1: *mut ::std::os::raw::c_char,
1177 ...
1178 ) -> ::std::os::raw::c_int;
1179}
1180#[cfg(target_arch = "aarch64")]
1181pub type __builtin_va_list = __BindgenOpaqueArray<u64, 4usize>;
1182#[repr(C)]
1183#[derive(PartialEq, Copy, Clone, Debug, Hash)]
1184#[cfg(target_arch = "aarch64")]
1185pub struct __BindgenOpaqueArray<T: Copy, const N: usize>(pub [T; N]);
1186#[cfg(target_arch = "aarch64")]
1187impl<T: Copy + Default, const N: usize> Default for __BindgenOpaqueArray<T, N> {
1188 fn default() -> Self {
1189 Self([<T as Default>::default(); N])
1190 }
1191}
1192#[cfg(target_arch = "arm")]
1193pub type __builtin_va_list = u32;
1194#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
1195pub type __builtin_va_list = *mut ::std::os::raw::c_void;
1196#[cfg(target_arch = "x86")]
1197pub type __builtin_va_list = *mut ::std::os::raw::c_char;
1198#[cfg(target_arch = "x86_64")]
1199pub type __builtin_va_list = *mut __va_list_tag;
1200#[repr(C)]
1201#[derive(Debug, Copy, Clone)]
1202#[cfg(target_arch = "x86_64")]
1203pub struct __va_list_tag {
1204 pub gp_offset: ::std::os::raw::c_uint,
1205 pub fp_offset: ::std::os::raw::c_uint,
1206 pub overflow_arg_area: *mut ::std::os::raw::c_void,
1207 pub reg_save_area: *mut ::std::os::raw::c_void,
1208}
1209#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1210#[cfg(target_arch = "x86_64")]
1211const _: () = {
1212 ["Size of __va_list_tag"][::std::mem::size_of::<__va_list_tag>() - 24usize];
1213 ["Alignment of __va_list_tag"][::std::mem::align_of::<__va_list_tag>() - 8usize];
1214 ["Offset of field: __va_list_tag::gp_offset"]
1215 [::std::mem::offset_of!(__va_list_tag, gp_offset) - 0usize];
1216 ["Offset of field: __va_list_tag::fp_offset"]
1217 [::std::mem::offset_of!(__va_list_tag, fp_offset) - 4usize];
1218 ["Offset of field: __va_list_tag::overflow_arg_area"]
1219 [::std::mem::offset_of!(__va_list_tag, overflow_arg_area) - 8usize];
1220 ["Offset of field: __va_list_tag::reg_save_area"]
1221 [::std::mem::offset_of!(__va_list_tag, reg_save_area) - 16usize];
1222};