mod geometry;
mod resize;
mod spacing;
mod toolbar;
pub use geometry::{SplitAxis, SplitLayout, SplitSize, split_rect};
pub use resize::{ResizeHandle, ResizeHandleStyle, ResizeResponse};
pub use spacing::{column, inset, row};
pub use toolbar::{ToolbarFit, fit_toolbar};
pub(crate) const EXTENT: f32 = 1_000_000.0;
pub(crate) fn usable(rect: egui::Rect) -> bool {
let (w, h) = (rect.width(), rect.height());
rect.min.is_finite() && rect.max.is_finite() && w > 0.0 && h > 0.0 && w <= EXTENT && h <= EXTENT
}
#[cfg(test)]
mod tests;