pub fn grid_sized(width: usize, height: usize) -> Result<BrailleGrid>Expand description
Creates a BrailleGrid with explicit dimensions.
Use this when you need a specific grid size rather than terminal-sized.
§Arguments
width- Grid width in terminal cellsheight- Grid height in terminal cells
§Returns
A new BrailleGrid with the specified dimensions.
§Errors
Returns DotmaxError::InvalidDimensions if width or height is 0
or exceeds maximum limits (10,000).
§Examples
use dotmax::quick;
// Create a 100x50 grid
let grid = quick::grid_sized(100, 50)?;
assert_eq!(grid.width(), 100);
assert_eq!(grid.height(), 50);