Starting gallery
-use fltk::{frame::*, window::*};
+use fltk::{group::*, valuator::*, input::*, output::*,button::*, window::*};
fn main() {
- let mut wind = Window::new().set(100, 100, 400, 300, "Hello from rust");
- let mut frame = Frame::new().set(20, 10, 360, 260, "Hello World!");
- frame.set_label_size(30);
-
+ let mut wind = Window::new().set(100,100,500,200,"Tabs Example");
+ let tab = Tabs::new().set(10,10,500-20,200-20, "");
+ let grp1 = Group::new().set(10,35,500-20,200-45,"Buttons");
+ let _but1 = Button::new().set(50, 60,90,25,"Button");
+ let _but2 = RoundButton::new().set(50, 90,90,25,"Round");
+ let _but3 = CheckButton::new().set(50,120,90,25,"Check");
+ grp1.end();
+ let grp2 = Group::new().set(10,35,500-10,200-35,"Valuators");
+ let _slider = Slider::new().set(50, 60,30,90,"Slider");
+ let _dial = Dial::new().set(100,60,90,90,"Dial");
+ grp2.end();
+ let grp3 = Group::new().set(10,35,500-30,200-25,"Input");
+ let _inp = Input::new().set(50, 60,90,30,"");
+ let _out = Output::new().set(150,60,90,30,"");
+ grp3.end();
+ tab.end();
wind.end();
wind.show();
fl::run();
