fltk-sys 1.5.22

Rust bindings for the FLTK GUI library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
#include <cfltk/cfl_misc.h>
#include <cfltk/cfl_lock.h>
#include <cfltk/cfl_widget.hpp>

#include <FL/Fl.H>
#include <FL/Fl_Chart.H>
#include <FL/Fl_Clock.H>
#include <FL/Fl_Help_View.H>
#include <FL/Fl_Image.H>
#include <FL/Fl_Input_Choice.H>
#include <FL/Fl_Progress.H>
#include <FL/Fl_Spinner.H>
#include <FL/Fl_Tooltip.H>

WIDGET_CLASS(Fl_Spinner)

WIDGET_DEFINE(Fl_Spinner)

double Fl_Spinner_minimum(Fl_Spinner *self) {
    LOCK(auto ret = self->minimum());
    return ret;
}

void Fl_Spinner_set_minimum(Fl_Spinner *self, double a) {
    LOCK(self->minimum(a));
}

double Fl_Spinner_maximum(Fl_Spinner *self) {
    LOCK(auto ret = self->maximum());
    return ret;
}

void Fl_Spinner_set_maximum(Fl_Spinner *self, double a) {
    LOCK(self->maximum(a));
}

void Fl_Spinner_set_range(Fl_Spinner *self, double a, double b) {
    LOCK(self->range(a, b));
}

void Fl_Spinner_set_step(Fl_Spinner *self, double a) {
    LOCK(self->step(a));
}

double Fl_Spinner_step(Fl_Spinner *self) {
    LOCK(auto ret = self->step());
    return ret;
}

int Fl_Spinner_maxsize(const Fl_Spinner *self) {
    LOCK(auto ret = self->maximum_size());
    return ret;
}

void Fl_Spinner_set_maxsize(Fl_Spinner *self, int m) {
    LOCK(self->maximum_size(m));
}

int Fl_Spinner_text_font(const Fl_Spinner *self) {
    LOCK(auto ret = self->textfont());
    return ret;
}

void Fl_Spinner_set_text_font(Fl_Spinner *self, int s) {
    LOCK(self->textfont(s));
}

int Fl_Spinner_text_size(const Fl_Spinner *self) {
    LOCK(auto ret = self->textsize());
    return ret;
}

void Fl_Spinner_set_text_size(Fl_Spinner *self, int s) {
    LOCK(self->textsize(s));
}

unsigned int Fl_Spinner_text_color(const Fl_Spinner *self) {
    LOCK(auto ret = self->textcolor());
    return ret;
}

void Fl_Spinner_set_text_color(Fl_Spinner *self, unsigned int n) {
    LOCK(self->textcolor(n));
}

double Fl_Spinner_value(const Fl_Spinner *self) {
    LOCK(auto ret = self->value());
    return ret;
}

void Fl_Spinner_set_value(Fl_Spinner *self, double val) {
    LOCK(self->value(val));
}

void Fl_Spinner_set_wrap(Fl_Spinner *self, int flag) {
    LOCK(self->wrap(flag));
}

int Fl_Spinner_wrap(const Fl_Spinner *self) {
    LOCK(auto ret = self->wrap());
    return ret;
}

WIDGET_CLASS(Fl_Clock)

WIDGET_DEFINE(Fl_Clock)

WIDGET_CLASS(Fl_Chart)

WIDGET_DEFINE(Fl_Chart)

void Fl_Chart_clear(Fl_Chart *self) {
    LOCK(self->clear());
}

void Fl_Chart_add(Fl_Chart *self, double val, const char *str, unsigned col) {
    LOCK(self->add(val, str, col));
}

void Fl_Chart_insert(
    Fl_Chart *self, int ind, double val, const char *str, unsigned col
) {
    LOCK(self->insert(ind, val, str, col));
}

void Fl_Chart_replace(
    Fl_Chart *self, int ind, double val, const char *str, unsigned col
) {
    LOCK(self->replace(ind, val, str, col));
}

void Fl_Chart_set_bounds(Fl_Chart *self, double a, double b) {
    LOCK(self->bounds(a, b));
}

int Fl_Chart_size(const Fl_Chart *self) {
    LOCK(auto ret = self->size());
    return ret;
}

int Fl_Chart_maxsize(const Fl_Chart *self) {
    LOCK(auto ret = self->maxsize());
    return ret;
}

void Fl_Chart_set_maxsize(Fl_Chart *self, int m) {
    LOCK(self->maxsize(m));
}

int Fl_Chart_text_font(const Fl_Chart *self) {
    LOCK(auto ret = self->textfont());
    return ret;
}

void Fl_Chart_set_text_font(Fl_Chart *self, int s) {
    LOCK(self->textfont(s));
}

int Fl_Chart_text_size(const Fl_Chart *self) {
    LOCK(auto ret = self->textsize());
    return ret;
}

void Fl_Chart_set_text_size(Fl_Chart *self, int s) {
    LOCK(self->textsize(s));
}

unsigned int Fl_Chart_text_color(const Fl_Chart *self) {
    LOCK(auto ret = self->textcolor());
    return ret;
}

void Fl_Chart_set_text_color(Fl_Chart *self, unsigned int n) {
    LOCK(self->textcolor(n));
}

int Fl_Chart_is_autosize(const Fl_Chart *self) {
    LOCK(auto ret = self->autosize());
    return ret;
}

void Fl_Chart_make_autosize(Fl_Chart *self, int n) {
    LOCK(self->autosize(n));
}

void Fl_Chart_bounds(Fl_Chart *self, double *a, double *b) {
    LOCK(self->bounds(a, b));
}

WIDGET_CLASS(Fl_Progress)

WIDGET_DEFINE(Fl_Progress)

double Fl_Progress_minimum(Fl_Progress *self) {
    LOCK(auto ret = self->minimum());
    return ret;
}

void Fl_Progress_set_minimum(Fl_Progress *self, double a) {
    LOCK(self->minimum(a));
}

double Fl_Progress_maximum(Fl_Progress *self) {
    LOCK(auto ret = self->maximum());
    return ret;
}

void Fl_Progress_set_maximum(Fl_Progress *self, double a) {
    LOCK(self->maximum(a));
}

double Fl_Progress_value(Fl_Progress *self) {
    LOCK(auto ret = self->value());
    return ret;
}

void Fl_Progress_set_value(Fl_Progress *self, double val) {
    LOCK(self->value(val));
}

float Fl_Tooltip_delay(void) {
    LOCK(auto ret = Fl_Tooltip::delay());
    return ret;
}

void Fl_Tooltip_set_delay(float f) {
    LOCK(Fl_Tooltip::delay(f));
}

float Fl_Tooltip_hidedelay(void) {
    LOCK(auto ret = Fl_Tooltip::hidedelay());
    return ret;
}

void Fl_Tooltip_set_hidedelay(float f) {
    LOCK(Fl_Tooltip::hidedelay(f));
}

float Fl_Tooltip_hoverdelay(void) {
    LOCK(auto ret = Fl_Tooltip::hoverdelay());
    return ret;
}

void Fl_Tooltip_set_hoverdelay(float f) {
    LOCK(Fl_Tooltip::hoverdelay(f));
}

int Fl_Tooltip_enabled(void) {
    LOCK(auto ret = Fl_Tooltip::enabled());
    return ret;
}

void Fl_Tooltip_enable(int b) {
    LOCK(Fl_Tooltip::enable(b));
}

void Fl_Tooltip_disable(void) {
    LOCK(Fl_Tooltip::disable());
}

void Fl_Tooltip_enter_area(
    Fl_Widget *w, int X, int Y, int W, int H, const char *tip
) {
    LOCK(Fl_Tooltip::enter_area(w, X, Y, W, H, tip));
}

void *Fl_Tooltip_current_widget(void) {
    LOCK(auto ret = Fl_Tooltip::current());
    return ret;
}

void Fl_Tooltip_current(Fl_Widget *w) {
    LOCK(Fl_Tooltip::current(w));
}

int Fl_Tooltip_font(void) {
    LOCK(auto ret = Fl_Tooltip::font());
    return ret;
}

void Fl_Tooltip_set_font(int i) {
    LOCK(Fl_Tooltip::font(i));
}

int Fl_Tooltip_font_size(void) {
    LOCK(auto ret = Fl_Tooltip::size());
    return ret;
}

void Fl_Tooltip_set_font_size(int s) {
    LOCK(Fl_Tooltip::size(s));
}

int Fl_Tooltip_color(void) {
    LOCK(auto ret = Fl_Tooltip::color());
    return ret;
}

void Fl_Tooltip_set_color(unsigned int c) {
    LOCK(Fl_Tooltip::color(c));
}

int Fl_Tooltip_text_color(void) {
    LOCK(auto ret = Fl_Tooltip::textcolor());
    return ret;
}

void Fl_Tooltip_set_text_color(unsigned int c) {
    LOCK(Fl_Tooltip::textcolor(c));
}

int Fl_Tooltip_margin_width(void) {
    LOCK(auto ret = Fl_Tooltip::margin_width());
    return ret;
}

void Fl_Tooltip_set_margin_width(int v) {
    LOCK(Fl_Tooltip::margin_width(v));
}

int Fl_Tooltip_margin_height(void) {
    LOCK(auto ret = Fl_Tooltip::margin_height());
    return ret;
}

void Fl_Tooltip_set_margin_height(int v) {
    LOCK(Fl_Tooltip::margin_height(v));
}

int Fl_Tooltip_wrap_width(void) {
    LOCK(auto ret = Fl_Tooltip::wrap_width());
    return ret;
}

void Fl_Tooltip_set_wrap_width(int v) {
    LOCK(Fl_Tooltip::wrap_width(v));
}

void *Fl_Tooltip_current_window(void) {
    LOCK(auto ret = (void *)Fl_Tooltip::current_window());
    return ret;
}

WIDGET_CLASS(Fl_Help_View)

WIDGET_DEFINE(Fl_Help_View)

const char *Fl_Help_View_directory(const Fl_Help_View *self) {
    LOCK(auto ret = self->directory());
    return ret;
}

const char *Fl_Help_View_filename(const Fl_Help_View *self) {
    LOCK(auto ret = self->filename());
    return ret;
}

int Fl_Help_View_find(Fl_Help_View *self, const char *s, int p) {
    LOCK(auto ret = self->find(s, p));
    return ret;
}

const char *Fl_Help_View_value(const Fl_Help_View *self) {
    LOCK(auto ret = self->value());
    return ret;
}

void Fl_Help_View_set_value(Fl_Help_View *self, const char *val) {
    LOCK(self->value(val));
}

void Fl_Help_View_clear_selection(Fl_Help_View *self) {
    LOCK(self->clear_selection());
}

void Fl_Help_View_select_all(Fl_Help_View *self) {
    LOCK(self->select_all());
}

void Fl_Help_View_set_topline(Fl_Help_View *self, const char *n) {
    LOCK(self->topline(n));
}

void Fl_Help_View_set_topline2(Fl_Help_View *self, int v) {
    LOCK(self->topline(v));
}

int Fl_Help_View_topline(const Fl_Help_View *self) {
    LOCK(auto ret = self->topline());
    return ret;
}

void Fl_Help_View_set_leftline(Fl_Help_View *self, int v) {
    LOCK(self->leftline(v));
}

int Fl_Help_View_leftline(const Fl_Help_View *self) {
    LOCK(auto ret = self->leftline());
    return ret;
}

void Fl_Help_View_set_text_color(Fl_Help_View *self, unsigned int c) {
    LOCK(self->textcolor(c));
}

unsigned int Fl_Help_View_text_color(Fl_Help_View *self) {
    LOCK(auto ret = self->textcolor());
    return ret;
}

void Fl_Help_View_set_text_font(Fl_Help_View *self, int f) {
    LOCK(self->textfont(f));
}

int Fl_Help_View_text_font(Fl_Help_View *self) {
    LOCK(auto ret = self->textfont());
    return ret;
}

void Fl_Help_View_set_text_size(Fl_Help_View *self, int s) {
    LOCK(self->textsize(s));
}

int Fl_Help_View_text_size(Fl_Help_View *self) {
    LOCK(auto ret = self->textsize());
    return ret;
}

int Fl_Help_View_scrollbar_size(const Fl_Help_View *self) {
    LOCK(auto ret = self->scrollbar_size());
    return ret;
}

void Fl_Help_View_set_scrollbar_size(Fl_Help_View *self, int newSize) {
    LOCK(self->scrollbar_size(newSize));
}

int Fl_Help_View_load(Fl_Help_View *self, const char *f) {
    LOCK(auto ret = self->load(f));
    return ret;
}

WIDGET_CLASS(Fl_Input_Choice)

WIDGET_DEFINE(Fl_Input_Choice)

void Fl_Input_Choice_set_down_box(Fl_Input_Choice *self, int box) {
    LOCK(self->down_box(static_cast<Fl_Boxtype>(box)));
}

int Fl_Input_Choice_down_box(const Fl_Input_Choice *self) {
    LOCK(auto ret = self->down_box());
    return ret;
}

void Fl_Input_Choice_add(Fl_Input_Choice *self, const char *s) {
    LOCK(self->add(s));
}

void Fl_Input_Choice_clear(Fl_Input_Choice *self) {
    LOCK(self->clear());
}

const char *Fl_Input_Choice_value(const Fl_Input_Choice *self) {
    LOCK(auto ret = self->value());
    return ret;
}

int Fl_Input_Choice_value2(Fl_Input_Choice *self) {
    LOCK(auto ret = self->menu()->value());
    return ret;
}

void Fl_Input_Choice_set_value(Fl_Input_Choice *self, const char *val) {
    LOCK(self->value(val));
}

void Fl_Input_Choice_set_value2(Fl_Input_Choice *self, int val) {
    LOCK(self->value(val));
}

void *Fl_Input_Choice_input(Fl_Input_Choice *self) {
    LOCK(auto ret = self->input());
    return ret;
}

void *Fl_Input_Choice_menu_button(Fl_Input_Choice *self) {
    LOCK(auto ret = self->menubutton());
    return ret;
}

void Fl_Input_Choice_set_text_color(Fl_Input_Choice *self, unsigned int c) {
    LOCK(self->textcolor(c));
}

unsigned int Fl_Input_Choice_text_color(Fl_Input_Choice *self) {
    LOCK(auto ret = self->textcolor());
    return ret;
}

void Fl_Input_Choice_set_text_font(Fl_Input_Choice *self, int f) {
    LOCK(self->textfont(f));
}

int Fl_Input_Choice_text_font(Fl_Input_Choice *self) {
    LOCK(auto ret = self->textfont());
    return ret;
}

void Fl_Input_Choice_set_text_size(Fl_Input_Choice *self, int s) {
    LOCK(self->textsize(s));
}

int Fl_Input_Choice_text_size(Fl_Input_Choice *self) {
    LOCK(auto ret = self->textsize());
    return ret;
}