floui_sys/
floui.rs

1/* automatically generated by rust-bindgen 0.56.0 */
2
3extern "C" {
4    pub fn Cfloui_log(s: *const ::std::os::raw::c_char);
5}
6#[repr(C)]
7#[derive(Debug, Copy, Clone)]
8pub struct CFlouiViewController {
9    _unused: [u8; 0],
10}
11extern "C" {
12    pub fn CFlouiViewController_new(
13        arg1: *mut ::std::os::raw::c_void,
14        arg2: *mut ::std::os::raw::c_void,
15        arg3: *mut ::std::os::raw::c_void,
16    ) -> *mut CFlouiViewController;
17}
18extern "C" {
19    pub fn CFlouiViewController_handle_events(arg1: *mut ::std::os::raw::c_void);
20}
21#[repr(C)]
22#[derive(Debug, Copy, Clone)]
23pub struct CWidget {
24    _unused: [u8; 0],
25}
26extern "C" {
27    pub fn CWidget_id(self_: *mut CWidget, id: *const ::std::os::raw::c_char);
28}
29extern "C" {
30    pub fn CWidget_background(self_: *mut CWidget, col: ::std::os::raw::c_uint);
31}
32extern "C" {
33    pub fn CWidget_size(self_: *mut CWidget, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
34}
35extern "C" {
36    pub fn CWidget_inner(self_: *mut CWidget) -> *mut ::std::os::raw::c_void;
37}
38pub type CFlouiCallback = ::std::option::Option<
39    unsafe extern "C" fn(arg1: *mut CWidget, data: *mut ::std::os::raw::c_void),
40>;
41#[repr(C)]
42#[derive(Debug, Copy, Clone)]
43pub struct CMainView {
44    _unused: [u8; 0],
45}
46extern "C" {
47    pub fn CMainView_new(fvc: *const CFlouiViewController) -> *mut CMainView;
48}
49extern "C" {
50    pub fn CMainView_id(self_: *mut CMainView, id: *const ::std::os::raw::c_char);
51}
52extern "C" {
53    pub fn CMainView_background(self_: *mut CMainView, col: ::std::os::raw::c_uint);
54}
55extern "C" {
56    pub fn CMainView_size(
57        self_: *mut CMainView,
58        w: ::std::os::raw::c_int,
59        h: ::std::os::raw::c_int,
60    );
61}
62extern "C" {
63    pub fn CMainView_inner(self_: *mut CMainView) -> *mut ::std::os::raw::c_void;
64}
65extern "C" {
66    pub fn CMainView_add(self_: *mut CMainView, w: *const CWidget);
67}
68extern "C" {
69    pub fn CMainView_remove(self_: *mut CMainView, w: *const CWidget);
70}
71extern "C" {
72    pub fn CMainView_clear(self_: *mut CMainView);
73}
74extern "C" {
75    pub fn CMainView_spacing(self_: *mut CMainView, spacing: ::std::os::raw::c_int);
76}
77#[repr(C)]
78#[derive(Debug, Copy, Clone)]
79pub struct CVStack {
80    _unused: [u8; 0],
81}
82extern "C" {
83    pub fn CVStack_new() -> *mut CVStack;
84}
85extern "C" {
86    pub fn CVStack_id(self_: *mut CVStack, id: *const ::std::os::raw::c_char);
87}
88extern "C" {
89    pub fn CVStack_background(self_: *mut CVStack, col: ::std::os::raw::c_uint);
90}
91extern "C" {
92    pub fn CVStack_size(self_: *mut CVStack, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
93}
94extern "C" {
95    pub fn CVStack_inner(self_: *mut CVStack) -> *mut ::std::os::raw::c_void;
96}
97extern "C" {
98    pub fn CVStack_add(self_: *mut CVStack, w: *const CWidget);
99}
100extern "C" {
101    pub fn CVStack_remove(self_: *mut CVStack, w: *const CWidget);
102}
103extern "C" {
104    pub fn CVStack_clear(self_: *mut CVStack);
105}
106extern "C" {
107    pub fn CVStack_spacing(self_: *mut CVStack, spacing: ::std::os::raw::c_int);
108}
109#[repr(C)]
110#[derive(Debug, Copy, Clone)]
111pub struct CHStack {
112    _unused: [u8; 0],
113}
114extern "C" {
115    pub fn CHStack_new() -> *mut CHStack;
116}
117extern "C" {
118    pub fn CHStack_id(self_: *mut CHStack, id: *const ::std::os::raw::c_char);
119}
120extern "C" {
121    pub fn CHStack_background(self_: *mut CHStack, col: ::std::os::raw::c_uint);
122}
123extern "C" {
124    pub fn CHStack_size(self_: *mut CHStack, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
125}
126extern "C" {
127    pub fn CHStack_inner(self_: *mut CHStack) -> *mut ::std::os::raw::c_void;
128}
129extern "C" {
130    pub fn CHStack_add(self_: *mut CHStack, w: *const CWidget);
131}
132extern "C" {
133    pub fn CHStack_remove(self_: *mut CHStack, w: *const CWidget);
134}
135extern "C" {
136    pub fn CHStack_clear(self_: *mut CHStack);
137}
138extern "C" {
139    pub fn CHStack_spacing(self_: *mut CHStack, spacing: ::std::os::raw::c_int);
140}
141#[repr(C)]
142#[derive(Debug, Copy, Clone)]
143pub struct CButton {
144    _unused: [u8; 0],
145}
146extern "C" {
147    pub fn CButton_id(self_: *mut CButton, id: *const ::std::os::raw::c_char);
148}
149extern "C" {
150    pub fn CButton_background(self_: *mut CButton, col: ::std::os::raw::c_uint);
151}
152extern "C" {
153    pub fn CButton_size(self_: *mut CButton, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
154}
155extern "C" {
156    pub fn CButton_inner(self_: *mut CButton) -> *mut ::std::os::raw::c_void;
157}
158extern "C" {
159    pub fn CButton_new(label: *const ::std::os::raw::c_char) -> *mut CButton;
160}
161extern "C" {
162    pub fn CButton_action(
163        self_: *mut CButton,
164        cb: CFlouiCallback,
165        data: *mut ::std::os::raw::c_void,
166    );
167}
168extern "C" {
169    pub fn CButton_filled(self_: *mut CButton);
170}
171extern "C" {
172    pub fn CButton_foreground(self_: *mut CButton, c: ::std::os::raw::c_uint);
173}
174#[repr(C)]
175#[derive(Debug, Copy, Clone)]
176pub struct CToggle {
177    _unused: [u8; 0],
178}
179extern "C" {
180    pub fn CToggle_id(self_: *mut CToggle, id: *const ::std::os::raw::c_char);
181}
182extern "C" {
183    pub fn CToggle_background(self_: *mut CToggle, col: ::std::os::raw::c_uint);
184}
185extern "C" {
186    pub fn CToggle_size(self_: *mut CToggle, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
187}
188extern "C" {
189    pub fn CToggle_inner(self_: *mut CToggle) -> *mut ::std::os::raw::c_void;
190}
191extern "C" {
192    pub fn CToggle_new(label: *const ::std::os::raw::c_char) -> *mut CToggle;
193}
194extern "C" {
195    pub fn CToggle_action(
196        self_: *mut CToggle,
197        cb: CFlouiCallback,
198        data: *mut ::std::os::raw::c_void,
199    );
200}
201extern "C" {
202    pub fn CToggle_set_value(self_: *mut CToggle, val: ::std::os::raw::c_int);
203}
204extern "C" {
205    pub fn CToggle_value(self_: *mut CToggle) -> ::std::os::raw::c_int;
206}
207extern "C" {
208    pub fn CToggle_foreground(self_: *mut CToggle, c: ::std::os::raw::c_uint);
209}
210#[repr(C)]
211#[derive(Debug, Copy, Clone)]
212pub struct CCheck {
213    _unused: [u8; 0],
214}
215extern "C" {
216    pub fn CCheck_id(self_: *mut CCheck, id: *const ::std::os::raw::c_char);
217}
218extern "C" {
219    pub fn CCheck_background(self_: *mut CCheck, col: ::std::os::raw::c_uint);
220}
221extern "C" {
222    pub fn CCheck_size(self_: *mut CCheck, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
223}
224extern "C" {
225    pub fn CCheck_inner(self_: *mut CCheck) -> *mut ::std::os::raw::c_void;
226}
227extern "C" {
228    pub fn CCheck_new(label: *const ::std::os::raw::c_char) -> *mut CCheck;
229}
230extern "C" {
231    pub fn CCheck_action(self_: *mut CCheck, cb: CFlouiCallback, data: *mut ::std::os::raw::c_void);
232}
233extern "C" {
234    pub fn CCheck_set_value(self_: *mut CCheck, val: ::std::os::raw::c_int);
235}
236extern "C" {
237    pub fn CCheck_value(self_: *mut CCheck) -> ::std::os::raw::c_int;
238}
239extern "C" {
240    pub fn CCheck_foreground(self_: *mut CCheck, c: ::std::os::raw::c_uint);
241}
242#[repr(C)]
243#[derive(Debug, Copy, Clone)]
244pub struct CSlider {
245    _unused: [u8; 0],
246}
247extern "C" {
248    pub fn CSlider_id(self_: *mut CSlider, id: *const ::std::os::raw::c_char);
249}
250extern "C" {
251    pub fn CSlider_background(self_: *mut CSlider, col: ::std::os::raw::c_uint);
252}
253extern "C" {
254    pub fn CSlider_size(self_: *mut CSlider, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
255}
256extern "C" {
257    pub fn CSlider_inner(self_: *mut CSlider) -> *mut ::std::os::raw::c_void;
258}
259extern "C" {
260    pub fn CSlider_new() -> *mut CSlider;
261}
262extern "C" {
263    pub fn CSlider_action(
264        self_: *mut CSlider,
265        cb: CFlouiCallback,
266        data: *mut ::std::os::raw::c_void,
267    );
268}
269extern "C" {
270    pub fn CSlider_set_value(self_: *mut CSlider, val: f64);
271}
272extern "C" {
273    pub fn CSlider_value(self_: *mut CSlider) -> f64;
274}
275extern "C" {
276    pub fn CSlider_foreground(self_: *mut CSlider, c: ::std::os::raw::c_uint);
277}
278#[repr(C)]
279#[derive(Debug, Copy, Clone)]
280pub struct CText {
281    _unused: [u8; 0],
282}
283extern "C" {
284    pub fn CText_id(self_: *mut CText, id: *const ::std::os::raw::c_char);
285}
286extern "C" {
287    pub fn CText_background(self_: *mut CText, col: ::std::os::raw::c_uint);
288}
289extern "C" {
290    pub fn CText_size(self_: *mut CText, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
291}
292extern "C" {
293    pub fn CText_inner(self_: *mut CText) -> *mut ::std::os::raw::c_void;
294}
295extern "C" {
296    pub fn CText_new(label: *const ::std::os::raw::c_char) -> *mut CText;
297}
298extern "C" {
299    pub fn CText_text(self_: *mut CText, t: *const ::std::os::raw::c_char);
300}
301extern "C" {
302    pub fn CText_center(self_: *mut CText);
303}
304extern "C" {
305    pub fn CText_left(self_: *mut CText);
306}
307extern "C" {
308    pub fn CText_right(self_: *mut CText);
309}
310extern "C" {
311    pub fn CText_bold(self_: *mut CText);
312}
313extern "C" {
314    pub fn CText_italic(self_: *mut CText);
315}
316extern "C" {
317    pub fn CText_normal(self_: *mut CText);
318}
319extern "C" {
320    pub fn CText_foreground(self_: *mut CText, c: ::std::os::raw::c_uint);
321}
322extern "C" {
323    pub fn CText_fontsize(self_: *mut CText, size: ::std::os::raw::c_int);
324}
325#[repr(C)]
326#[derive(Debug, Copy, Clone)]
327pub struct CTextField {
328    _unused: [u8; 0],
329}
330extern "C" {
331    pub fn CTextField_id(self_: *mut CTextField, id: *const ::std::os::raw::c_char);
332}
333extern "C" {
334    pub fn CTextField_background(self_: *mut CTextField, col: ::std::os::raw::c_uint);
335}
336extern "C" {
337    pub fn CTextField_size(
338        self_: *mut CTextField,
339        w: ::std::os::raw::c_int,
340        h: ::std::os::raw::c_int,
341    );
342}
343extern "C" {
344    pub fn CTextField_inner(self_: *mut CTextField) -> *mut ::std::os::raw::c_void;
345}
346extern "C" {
347    pub fn CTextField_new() -> *mut CTextField;
348}
349extern "C" {
350    pub fn CTextField_text(self_: *mut CTextField, t: *const ::std::os::raw::c_char);
351}
352extern "C" {
353    pub fn CTextField_center(self_: *mut CTextField);
354}
355extern "C" {
356    pub fn CTextField_left(self_: *mut CTextField);
357}
358extern "C" {
359    pub fn CTextField_right(self_: *mut CTextField);
360}
361extern "C" {
362    pub fn CTextField_foreground(self_: *mut CTextField, c: ::std::os::raw::c_uint);
363}
364extern "C" {
365    pub fn CTextField_fontsize(self_: *mut CTextField, size: ::std::os::raw::c_int);
366}
367#[repr(C)]
368#[derive(Debug, Copy, Clone)]
369pub struct CSpacer {
370    _unused: [u8; 0],
371}
372extern "C" {
373    pub fn CSpacer_id(self_: *mut CSpacer, id: *const ::std::os::raw::c_char);
374}
375extern "C" {
376    pub fn CSpacer_background(self_: *mut CSpacer, col: ::std::os::raw::c_uint);
377}
378extern "C" {
379    pub fn CSpacer_size(self_: *mut CSpacer, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
380}
381extern "C" {
382    pub fn CSpacer_inner(self_: *mut CSpacer) -> *mut ::std::os::raw::c_void;
383}
384extern "C" {
385    pub fn CSpacer_new() -> *mut CSpacer;
386}
387#[repr(C)]
388#[derive(Debug, Copy, Clone)]
389pub struct CImageView {
390    _unused: [u8; 0],
391}
392extern "C" {
393    pub fn CImageView_id(self_: *mut CImageView, id: *const ::std::os::raw::c_char);
394}
395extern "C" {
396    pub fn CImageView_background(self_: *mut CImageView, col: ::std::os::raw::c_uint);
397}
398extern "C" {
399    pub fn CImageView_size(
400        self_: *mut CImageView,
401        w: ::std::os::raw::c_int,
402        h: ::std::os::raw::c_int,
403    );
404}
405extern "C" {
406    pub fn CImageView_inner(self_: *mut CImageView) -> *mut ::std::os::raw::c_void;
407}
408extern "C" {
409    pub fn CImageView_new() -> *mut CImageView;
410}
411extern "C" {
412    pub fn CImageView_load(path: *const ::std::os::raw::c_char) -> *mut CImageView;
413}
414extern "C" {
415    pub fn CImageView_image(self_: *mut CImageView, path: *const ::std::os::raw::c_char);
416}
417#[repr(C)]
418#[derive(Debug, Copy, Clone)]
419pub struct CWebView {
420    _unused: [u8; 0],
421}
422extern "C" {
423    pub fn CWebView_id(self_: *mut CWebView, id: *const ::std::os::raw::c_char);
424}
425extern "C" {
426    pub fn CWebView_background(self_: *mut CWebView, col: ::std::os::raw::c_uint);
427}
428extern "C" {
429    pub fn CWebView_size(self_: *mut CWebView, w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
430}
431extern "C" {
432    pub fn CWebView_inner(self_: *mut CWebView) -> *mut ::std::os::raw::c_void;
433}
434extern "C" {
435    pub fn CWebView_new() -> *mut CWebView;
436}
437extern "C" {
438    pub fn CWebView_load_url(self_: *mut CWebView, url: *const ::std::os::raw::c_char);
439}
440extern "C" {
441    pub fn CWebView_load_html(self_: *mut CWebView, html: *const ::std::os::raw::c_char);
442}
443#[repr(C)]
444#[derive(Debug, Copy, Clone)]
445pub struct CScrollView {
446    _unused: [u8; 0],
447}
448extern "C" {
449    pub fn CScrollView_id(self_: *mut CScrollView, id: *const ::std::os::raw::c_char);
450}
451extern "C" {
452    pub fn CScrollView_background(self_: *mut CScrollView, col: ::std::os::raw::c_uint);
453}
454extern "C" {
455    pub fn CScrollView_size(
456        self_: *mut CScrollView,
457        w: ::std::os::raw::c_int,
458        h: ::std::os::raw::c_int,
459    );
460}
461extern "C" {
462    pub fn CScrollView_inner(self_: *mut CScrollView) -> *mut ::std::os::raw::c_void;
463}
464extern "C" {
465    pub fn CScrollView_new(w: *const CWidget) -> *mut CScrollView;
466}