abstreet/ezgui/src/lib.rs

31 lines
785 B
Rust
Raw Normal View History

2018-09-11 03:15:47 +03:00
mod canvas;
mod color;
2019-01-25 03:09:29 +03:00
mod drawing;
mod event;
mod event_ctx;
2018-09-11 03:15:47 +03:00
mod input;
2018-09-10 03:10:34 +03:00
mod runner;
mod screen_geom;
2018-09-11 03:15:47 +03:00
mod text;
2019-02-01 20:30:26 +03:00
mod widgets;
pub use crate::canvas::{Canvas, HorizontalAlignment, VerticalAlignment, BOTTOM_LEFT, CENTERED};
pub use crate::color::Color;
2019-05-17 03:10:22 +03:00
pub use crate::drawing::{GeomBatch, GfxCtx};
pub use crate::event::{Event, Key};
pub use crate::event_ctx::{Drawable, EventCtx, Prerender};
2019-05-02 01:58:11 +03:00
pub use crate::input::UserInput;
pub use crate::runner::{run, EventLoopMode, GUI};
pub use crate::screen_geom::ScreenPt;
pub use crate::text::{Text, HOTKEY_COLOR};
2019-02-01 20:30:26 +03:00
pub use crate::widgets::{
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> {
Canceled,
StillActive,
2018-09-24 00:26:06 +03:00
Done(String, T),
}