cursive/cursive-core/src/lib.rs

75 lines
1.5 KiB
Rust
Raw Normal View History

//! # Cursive-core
//!
//! This library defines the core components for the Cursive TUI.
//!
//! The main purpose of `cursive-core` is to write third-party libraries to work with Cursive.
//!
2020-05-26 18:01:28 +00:00
//! If you are building an end-user application, then [`cursive`] is probably what you want.
//!
//! [`cursive`]: https://docs.rs/cursive
#![deny(missing_docs)]
2021-01-18 18:50:55 +00:00
extern crate wasmer_enumset as enumset;
macro_rules! new_default(
($c:ident<$t:ident>) => {
impl<$t> Default for $c<$t> {
fn default() -> Self {
Self::new()
}
}
};
2020-07-03 06:58:54 +00:00
($c:ident) => {
impl Default for $c {
fn default() -> Self {
Self::new()
}
}
2020-07-03 06:58:54 +00:00
};
($c:ident<$t:ident: Default>) => {
impl <$t> Default for $c<$t>
where $t: Default {
fn default() -> Self {
Self::new($t::default())
}
}
};
);
#[macro_use]
pub mod utils;
#[macro_use]
pub mod view;
#[macro_use]
pub mod views;
pub mod align;
pub mod backend;
pub mod direction;
pub mod event;
pub mod logger;
pub mod menu;
pub mod theme;
pub mod traits;
pub mod vec;
mod cursive;
2020-08-05 06:24:11 +00:00
mod cursive_run;
2020-07-03 06:58:54 +00:00
mod dump;
mod printer;
mod rect;
mod with;
mod xy;
mod div;
pub use self::cursive::{CbSink, Cursive, ScreenId};
2020-08-05 06:24:11 +00:00
pub use self::cursive_run::CursiveRunner;
2020-07-03 06:58:54 +00:00
pub use self::dump::Dump;
pub use self::printer::Printer;
pub use self::rect::Rect;
pub use self::vec::Vec2;
pub use self::view::View;
pub use self::with::With;
pub use self::xy::XY;