use std::stream::const use gui::widget::* use gui::window::set_bg_color let menu = gui::frame (100,50) let (btn_id, btn_stream) = button menu (100, 50) (const "Click me!") let (cbx_id, cbx_stream) = checkbox menu (30, 30) let (lab_id, lab_stream) = label menu (180, 50) (const "This is a label") let (sep_id, sep_stream) = separator menu let (tbx_id, tbx_stream) = textbox menu (150, 80) let otter_img = gui::image::img_from_file "examples/assets/otter.png" let (img_id, img_stream) = image menu (80, 80) (const otter_img) let grp_elems = const [btn_id, sep_id, cbx_id, lab_id, tbx_id, img_id] let (grp_id, grp_stream) = vgroup menu (200, 500) grp_elems (Alignment::Bottom) let _ = gui::attach_root (menu, grp_id)