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]

[src]

Draws the grid.

Important traits for GridCells
[src]

Get a GridIterator for the grid

[src]

Get on-screen position of a grid cell

[src]

Get on-screen x position of a grid cell

[src]

Get on-screen y position of a grid cell

Trait Implementations

impl Debug for Grid
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Grid
[src]

impl Clone for Grid
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more