1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
//! Structs and enums that are used within the grid module
mod cell_occupancy;
mod coordinates;
mod grid_item;
mod grid_track;
mod grid_track_counts;
// Publish only locally in the grid module
pub(super) use cell_occupancy::{CellOccupancyMatrix, CellOccupancyState};
pub(crate) use coordinates::{GridCoordinate, GridLine, OriginZeroLine};
pub(super) use grid_item::GridItem;
pub(super) use grid_track::GridTrack;
pub(super) use grid_track_counts::TrackCounts;
#[allow(unused_imports)]
pub(super) use grid_track::GridTrackKind;
// pub(super) enum GridPosition {
// Auto,
// LineIndex(i16),
// LineName(u16),
// // GridAreaStart(u16),
// // GridAreaEnd(u16),
// }
// pub(super) struct NamedArea {
// name: u16,
// row_start: u16,
// row_end: u16,
// column_start: u16,
// column_end: u16,
// }
// pub(super) struct CssGrid {
// pub available_space: Size<AvailableSpace>,
// pub cell_occupancy_matrix: CellOccupancyMatrix,
// pub items: Vec<GridItem>,
// pub columns: GridAxisTracks,
// pub rows: GridAxisTracks,
// pub named_areas: Vec<NamedArea>,
// }