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

Number of columns.

Number of rows.

The width and height of each grid cell.

Methods

impl Grid
[src]

Draws the grid.

Get a GridIterator for the grid

Get on-screen position of a grid cell

Get on-screen x position of a grid cell

Get on-screen y position of a grid cell

Trait Implementations

impl Copy for Grid
[src]

impl Clone for Grid
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more