2018-09-11 03:15:47 +03:00
|
|
|
mod canvas;
|
2018-12-03 20:49:20 +03:00
|
|
|
mod color;
|
2019-01-25 03:09:29 +03:00
|
|
|
mod drawing;
|
2018-12-16 05:27:43 +03:00
|
|
|
mod event;
|
2019-02-01 03:43:09 +03:00
|
|
|
mod event_ctx;
|
2018-09-11 03:15:47 +03:00
|
|
|
mod input;
|
2018-09-10 03:10:34 +03:00
|
|
|
mod runner;
|
2018-12-18 01:12:53 +03:00
|
|
|
mod screen_geom;
|
2018-09-11 03:15:47 +03:00
|
|
|
mod text;
|
2019-02-01 20:30:26 +03:00
|
|
|
mod widgets;
|
2018-03-13 18:04:21 +03:00
|
|
|
|
2018-12-25 20:44:12 +03:00
|
|
|
pub use crate::canvas::{Canvas, HorizontalAlignment, VerticalAlignment, BOTTOM_LEFT, CENTERED};
|
2018-12-06 21:18:20 +03:00
|
|
|
pub use crate::color::Color;
|
2019-05-17 03:10:22 +03:00
|
|
|
pub use crate::drawing::{GeomBatch, GfxCtx};
|
2018-12-16 05:27:43 +03:00
|
|
|
pub use crate::event::{Event, Key};
|
2019-02-01 03:43:09 +03:00
|
|
|
pub use crate::event_ctx::{Drawable, EventCtx, Prerender};
|
2019-05-02 01:58:11 +03:00
|
|
|
pub use crate::input::UserInput;
|
2018-12-06 21:18:20 +03:00
|
|
|
pub use crate::runner::{run, EventLoopMode, GUI};
|
2018-12-18 01:12:53 +03:00
|
|
|
pub use crate::screen_geom::ScreenPt;
|
2019-05-03 22:49:27 +03:00
|
|
|
pub use crate::text::{Text, HOTKEY_COLOR};
|
2019-02-01 20:30:26 +03:00
|
|
|
pub use crate::widgets::{
|
2019-05-29 20:42:55 +03:00
|
|
|
Autocomplete, ItemSlider, LogScroller, ModalMenu, ScrollingMenu, Slider, TextBox, Wizard,
|
|
|
|
WrappedWizard,
|
2019-02-01 20:30:26 +03:00
|
|
|
};
|
2018-06-23 00:42:11 +03:00
|
|
|
|
2018-09-24 00:26:06 +03:00
|
|
|
pub enum InputResult<T: Clone> {
|
2018-09-21 05:04:29 +03:00
|
|
|
Canceled,
|
|
|
|
StillActive,
|
2018-09-24 00:26:06 +03:00
|
|
|
Done(String, T),
|
2018-09-21 05:04:29 +03:00
|
|
|
}
|