mod bitmap;
mod bitvec;
mod brightness_grid;
mod byte_slice;
mod char_grid;
mod cp437_grid;
pub use bitmap::*;
pub use bitvec::*;
pub use brightness_grid::*;
pub use byte_slice::*;
pub use char_grid::*;
pub use cp437_grid::*;
macro_rules! derive_container {
($object_type:ident) => {
$crate::macros::derive_clone!($object_type);
$crate::macros::derive_free!($object_type);
};
}
macro_rules! derive_get_width_height {
($object_type:ident) => {
$crate::macros::wrap_methods! {$object_type;
fn width(ref instance) -> val usize;
fn height(ref instance) -> val usize;
}
};
}
macro_rules! derive_grid {
($object_type:ident, $value_type:ident) => {
$crate::containers::derive_get_width_height!($object_type);
$crate::macros::wrap_methods! {$object_type;
fn get(ref instance, x: val usize, y: val usize) -> val $value_type;
fn set(mut instance, x: val usize, y: val usize, value: val $value_type);
fn fill(mut instance, value: val $value_type);
}
};
}
pub(crate) use {derive_container, derive_get_width_height, derive_grid};
mod _hidden {
#[allow(unused)]
pub struct DisplayBitVec;
}