Some extra fltk widgets:
```rust use fltk::{prelude::, *}; use fltk_extras::button::;
fn main() { let a = app::App::default(); app::setbackgroundcolor(0, 0, 0); app::setforegroundcolor(255, 255, 255); app::setbackground2color(128, 128, 128); let mut w = window::Window::default().withsize(400, 300); let col = group::Flex::default() .withsize(80, 200) .column() .centerofparent(); Toggle::default(); RoundToggle::default(); CheckButton::default().withlabel("Done?"); HollowRoundToggle::default(); RadioButton::default().withlabel("Radio"); col.end(); w.end(); w.show(); a.run().unwrap(); } ```
```rust use fltk::{prelude::, *}; use fltk_extras::slider::;
fn main() { let a = app::App::default(); app::setbackgroundcolor(0, 0, 0); app::setforegroundcolor(255, 255, 255); app::setbackground2color(128, 128, 128); let mut w = window::Window::default().withsize(400, 300); let col = group::Flex::default() .column() .withsize(200, 200) .centerofparent(); let hslider = FancyHorSlider::default().withlabel("Hor"); let vslider = FancyVertSlider::default().withlabel("Vert"); col.end(); w.end(); w.show(); a.run().unwrap(); } ```
```rust use fltk::{prelude::, *}; use fltk_extras::dial::;
fn main() { let a = app::App::default(); app::setbackgroundcolor(0, 0, 0); app::setforegroundcolor(255, 255, 255); app::setbackground2color(128, 128, 128); let mut w = window::Window::default().withsize(400, 300); let col = group::Flex::default() .column() .withsize(100, 200) .centerofparent(); let mut dial = Dial::default(); dial.modifiable(false); dial.setvalue(75); let mut halfdial = HalfDial::default(); halfdial.setvalue(23); col.end(); w.end(); w.show(); a.run().unwrap(); } ```