Struct graphics::grid::Grid
[−]
[src]
pub struct Grid { pub cols: u32, pub rows: u32, pub units: Scalar, }
Represents a flat grid with square cells.
Fields
cols | Number of columns. |
rows | Number of rows. |
units | The width and height of each grid cell. |
Methods
impl Grid
fn draw<G>(&self, line: &Line, draw_state: &DrawState, transform: Matrix2d, g: &mut G) where G: Graphics
Draws the grid.
fn cells(&self) -> GridCells
Get a GridIterator for the grid