gridbox-0.1.0.0: A grid box model

Safe HaskellSafe
LanguageHaskell2010

GridBox.Row

Description

Row of a grid

Synopsis

Documentation

type Row = [Box] Source #

A row of boxes.

getBoxPositionX :: Int -> Double -> Double -> Double Source #

Get the x-position for given row, size and x-offset.

getBoxPositionY :: Int -> Double -> Double -> Double Source #

Get the y-position for given col, size and y-offset.

createBox :: (Double, Double) -> Double -> Double -> Int -> Int -> Box Source #

Create a box with given row, col, size, x- and y-offset.

makeRow :: (Double, Double) -> Double -> Double -> [Int] -> Int -> Row Source #

Create a row with given row, List of col-indexes, size, x- and y-offset.

topX :: Double -> Double -> Double Source #

Get the given position with x-offset.

topY :: Double -> Double -> Double Source #

Get the given position with y-offset.