# LibBoard::Board::State Struct Reference

`#include <Board.h>`

List of all members.

## Public Member Functions

double | unit (const double &x)
Point | unit (const Point &p)
void | unit (Shape &shape)

## Public Attributes

Color | penColor
Color | fillColor
double | lineWidth
Shape::LineStyle | lineStyle
Shape::LineCap | lineCap
Shape::LineJoin | lineJoin
Fonts::Font | font
double | fontSize
double | unitFactor

## Detailed Description

Current graphical state for drawings made by the drawSomething() methods.

## Member Data Documentation

Color LibBoard::Board::State::fillColor

The fill color.

Referenced by LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawCircle(), LibBoard::Board::drawClosedPolyline(), LibBoard::Board::drawEllipse(), LibBoard::Board::drawPolyline(), LibBoard::Board::drawRectangle(), LibBoard::Board::drawTriangle(), LibBoard::Board::setFillColor(), LibBoard::Board::setFillColorRGBf(), and LibBoard::Board::setFillColorRGBi().

Fonts::Font LibBoard::Board::State::font

The font.

Referenced by LibBoard::Board::drawText(), and LibBoard::Board::setFont().

double LibBoard::Board::State::fontSize

The font size.

Referenced by LibBoard::Board::drawText(), LibBoard::Board::setFont(), and LibBoard::Board::setFontSize().

Shape::LineCap LibBoard::Board::State::lineCap

The type of line extremities.

Referenced by LibBoard::Board::drawArrow(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawClosedPolyline(), LibBoard::Board::drawLine(), LibBoard::Board::drawPolyline(), LibBoard::Board::drawRectangle(), LibBoard::Board::drawTriangle(), LibBoard::Board::fillPolyline(), LibBoard::Board::fillRectangle(), LibBoard::Board::fillTriangle(), and LibBoard::Board::setLineCap().

Shape::LineJoin LibBoard::Board::State::lineJoin

The type of line junction.

Referenced by LibBoard::Board::drawArrow(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawClosedPolyline(), LibBoard::Board::drawLine(), LibBoard::Board::drawPolyline(), LibBoard::Board::drawRectangle(), LibBoard::Board::drawTriangle(), LibBoard::Board::fillPolyline(), LibBoard::Board::fillRectangle(), LibBoard::Board::fillTriangle(), and LibBoard::Board::setLineJoin().

Shape::LineStyle LibBoard::Board::State::lineStyle

The line style.

Referenced by LibBoard::Board::drawArrow(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawCircle(), LibBoard::Board::drawClosedPolyline(), LibBoard::Board::drawEllipse(), LibBoard::Board::drawLine(), LibBoard::Board::drawPolyline(), LibBoard::Board::drawRectangle(), LibBoard::Board::drawTriangle(), LibBoard::Board::fillCircle(), LibBoard::Board::fillEllipse(), LibBoard::Board::fillPolyline(), LibBoard::Board::fillRectangle(), LibBoard::Board::fillTriangle(), and LibBoard::Board::setLineStyle().

double LibBoard::Board::State::lineWidth

The line thickness.

Referenced by LibBoard::Board::drawArrow(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawCircle(), LibBoard::Board::drawClosedPolyline(), LibBoard::Board::drawDot(), LibBoard::Board::drawEllipse(), LibBoard::Board::drawLine(), LibBoard::Board::drawPolyline(), LibBoard::Board::drawRectangle(), LibBoard::Board::drawTriangle(), and LibBoard::Board::setLineWidth().

Color LibBoard::Board::State::penColor

The pen color.

Referenced by LibBoard::Board::drawArrow(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawCircle(), LibBoard::Board::drawClosedPolyline(), LibBoard::Board::drawDot(), LibBoard::Board::drawEllipse(), LibBoard::Board::drawLine(), LibBoard::Board::drawPolyline(), LibBoard::Board::drawRectangle(), LibBoard::Board::drawText(), LibBoard::Board::drawTriangle(), LibBoard::Board::fillCircle(), LibBoard::Board::fillEllipse(), LibBoard::Board::fillGouraudTriangle(), LibBoard::Board::fillPolyline(), LibBoard::Board::fillRectangle(), LibBoard::Board::fillTriangle(), LibBoard::Board::setPenColor(), LibBoard::Board::setPenColorRGBf(), and LibBoard::Board::setPenColorRGBi().

double LibBoard::Board::State::unitFactor

The factor to be applied to arguments of the drawSomething() family.

Referenced by LibBoard::Board::operator<<(), and LibBoard::Board::setUnit().

The documentation for this struct was generated from the following files:

- include/Board.h
- src/Board.cpp