Skip to content

Commit 68c5e56

Browse files
committed
Reorganize for more nesting.
This removes the majority of structs from the crate root and puts all the controls in the controls module. It also adds a prelude, designed to be the only import from this library other than the specific controls used.
1 parent 56414e1 commit 68c5e56

File tree

15 files changed

+643
-1229
lines changed

15 files changed

+643
-1229
lines changed

ui/examples/basic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate ui;
2-
use std::rc::Rc;
3-
use ui::{UI, Window, BoxControl, Button};
2+
use ui::prelude::*;
3+
use ui::controls::{BoxControl, Button};
44

55
fn main() {
66
// Start up the UI toolkit

ui/examples/controlgallery.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
33
extern crate ui;
44

5-
use std::rc::Rc;
6-
7-
use ui::{UI, BoxControl, Button, Checkbox, ColorButton, Combobox, EditableCombobox, DateTimePicker,
8-
Entry, FontButton, Group, Label, Menu, MenuItem, ProgressBar, RadioButtons, Separator, Slider, Spinbox, Tab, Window};
5+
use ui::prelude::*;
6+
use ui::controls::*;
7+
use ui::menus::{Menu, MenuItem};
98

109
fn run(ui: Rc<UI>) {
1110
let menu = Menu::new("File");

0 commit comments

Comments
 (0)