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
pub use crate::prelude::*;
use fltk_sys::valuator::*;
use std::{ffi::{CStr, CString}, mem, os::raw};
#[derive(WidgetTrait, ValuatorTrait, Debug, Clone)]
pub struct Slider {
_inner: *mut Fl_Slider,
}
#[repr(i32)]
#[derive(WidgetType, Debug, Copy, Clone, PartialEq)]
pub enum SliderType {
VerticalSlider = 0,
HorizontalSlider = 1,
VerticalFillSlider = 2,
HorizontalFillSlider = 3,
VerticalNiceSlider = 4,
HorizontalNiceSlider = 5,
}
#[derive(WidgetTrait, ValuatorTrait, Debug, Clone)]
pub struct Dial {
_inner: *mut Fl_Dial,
}
#[repr(i32)]
#[derive(WidgetType, Debug, Copy, Clone, PartialEq)]
pub enum DialType {
NormalDial = 0,
LineDial = 1,
FillDial = 2,
}
#[derive(WidgetTrait, ValuatorTrait, Debug, Clone)]
pub struct Counter {
_inner: *mut Fl_Counter,
}
#[repr(i32)]
#[derive(WidgetType, Debug, Copy, Clone, PartialEq)]
pub enum CounterType {
NormalCounter = 0,
SimpleCounter = 1,
}
#[derive(WidgetTrait, ValuatorTrait, Debug, Clone)]
pub struct Scrollbar {
_inner: *mut Fl_Scrollbar,
}
#[repr(i32)]
#[derive(WidgetType, Debug, Copy, Clone, PartialEq)]
pub enum ScrollBarType {
VerticalScrollBar = 0,
HorizontalScrollBar = 1,
VerticalFillScrollBar = 2,
HorizontalFillScrollBar = 3,
VerticalNiceScrollBar = 4,
HorizontalNiceScrollBar = 5,
}
#[derive(WidgetTrait, ValuatorTrait, Debug, Clone)]
pub struct Roller {
_inner: *mut Fl_Roller,
}
#[derive(WidgetTrait, ValuatorTrait, Debug, Clone)]
pub struct ValueSlider {
_inner: *mut Fl_Value_Slider,
}
#[derive(WidgetTrait, ValuatorTrait, Debug, Clone)]
pub struct Adjuster {
_inner: *mut Fl_Adjuster,
}
#[derive(WidgetTrait, ValuatorTrait, Debug, Clone)]
pub struct ValueInput {
_inner: *mut Fl_Value_Input,
}