13 for (
int x = bounds.getX(); x < bounds.getRight(); x += boxWidth)
15 g.drawVerticalLine(x,
float(bounds.getY()),
float(bounds.getBottom()));
17 for (
int y = bounds.getY(); y < bounds.getBottom(); y += boxWidth)
19 g.drawHorizontalLine(y,
float(bounds.getX()),
float(bounds.getRight()));
24 for (
int x = bounds.getX(); x < bounds.getRight(); x += boxWidth)
26 g.drawVerticalLine(x,
float(bounds.getY()),
float(bounds.getBottom()));
28 for (
int y = bounds.getY(); y < bounds.getBottom(); y += boxWidth)
30 g.drawHorizontalLine(y,
float(bounds.getX()),
float(bounds.getRight()));
36 const int lineHeight(1);
37 for (
int y = bounds.getY(); y < bounds.getBottom(); y += betweenLinesWidth + lineHeight)
39 g.drawHorizontalLine(y,
float(bounds.getX()),
float(bounds.getRight()));
static void drawBackgroundGrid(Graphics &g, int boxWidth, const Rectangle< int > &bounds, float opacity)
Definition krotosDrawingHelper.cpp:5
static void drawBackgroundGridNoBackground(Graphics &g, int boxWidth, const Rectangle< int > &bounds)
Definition krotosDrawingHelper.cpp:22
static void drawBackgroundHorizontalLines(Graphics &g, int betweenLinesWidth, const Rectangle< int > &bounds)
Definition krotosDrawingHelper.cpp:34
const Colour topGridColour
Definition Krotos_Colours.h:14
const Colour gridColour
Definition Krotos_Colours.h:16
const Colour bottomGridColour
Definition Krotos_Colours.h:15
Definition AirAbsorptionFilter.cpp:2