#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(not(feature = "std"))]
extern crate alloc;
mod floating;
mod hit_test;
mod layout;
mod mouse_coord;
mod node;
mod ordering;
mod orientation;
mod rect;
mod region_map;
mod scroll;
mod snap;
mod split;
pub use floating::{
DragHandle, FLOATING_MIN_HEIGHT, FLOATING_MIN_WIDTH, HeaderDrag, ResizeDrag, ResizeEdge,
ResizeHandle, apply_resize_drag_signed, floating_header_for_region, resize_handles_for_region,
};
pub use hit_test::{detect_quadrant, find_closest_region, hit_test_leaf, resolve_target};
pub use layout::LayoutEngine;
pub use mouse_coord::{CoordSpace, MousePosition};
pub use node::{BspNode, NaryNode};
pub use ordering::{FocusRing, ZOrder};
pub use orientation::{LongestSide, OrientationHeuristic, Spiral};
pub use rect::{
LayoutError, LayoutRect, Orientation, Quadrant, Ratio, RectSpec, SizeConstraints, gap_insert,
inset, rect_contains,
};
pub use region_map::RegionMap;
pub use scroll::ScrollState;
pub use snap::{
EdgeResistance, InsertPosition, SnapPreview, SnapTarget, corner_preview_rect,
detect_corner_snap, detect_edge_snap, edge_preview_rect, tiled_preview_rect,
};
pub use split::{
build_rects_from_sizes, gap_size, handle_thickness, split_rect_bsp, split_rects_nary,
split_rects_weighted, split_rects_with_gaps, split_sizes,
};
mod tiling;
pub use tiling::{Direction, LayoutNode, SplitGap, split_area_for_path, split_at_path_mut};