#include <Style.h>
|
Color | penColor |
|
Color | fillColor |
|
double | lineWidth |
|
LineStyle | lineStyle |
|
LineCap | lineCap |
|
LineJoin | lineJoin |
|
Structure describing shape style properties.
- Examples
- examples/line_style.cpp.
◆ Style()
LibBoard::Style::Style |
( |
| ) |
|
Create a style with (current) default values.
◆ defaultFillColor()
defaultFillColor
- Returns
- Default fill color for shapes (initialized as Color::None)
◆ defaultLineCap()
const LibBoard::LineCap & LibBoard::Style::defaultLineCap |
( |
| ) |
|
|
inlinestatic |
defaultLineCap
- Returns
- Default line cap for shapes (initialized as ButtCap)
◆ defaultLineJoin()
const LibBoard::LineJoin & LibBoard::Style::defaultLineJoin |
( |
| ) |
|
|
inlinestatic |
defaultLineJoin
- Returns
- Default line join for shapes (initialized as MiterJoin)
◆ defaultLineStyle()
const LibBoard::LineStyle & LibBoard::Style::defaultLineStyle |
( |
| ) |
|
|
inlinestatic |
defaultLineStyle
- Returns
- Default line style for shapes (initialized as SolidStyle)
◆ defaultLineWidth()
const double & LibBoard::Style::defaultLineWidth |
( |
| ) |
|
|
inlinestatic |
defaultLineWidth
- Returns
- Default lineWidth value for shapes (intialized as 1.0).
◆ defaultPenColor()
defaultPenColor
- Returns
- Default pen color for shapes (initialized as Black)
- Examples
- examples/holes.cpp.
◆ defaultStyle()
defaultStyle
- Returns
- Default shape style.
◆ pop()
void LibBoard::Style::pop |
( |
| ) |
|
|
static |
Restore the top of the style stack as the new default style (and pop it).
◆ postscriptProperties()
std::string LibBoard::Style::postscriptProperties |
( |
const TransformEPS & |
transform | ) |
const |
◆ push()
void LibBoard::Style::push |
( |
| ) |
|
|
static |
Push the current default style on top of the style stack.
◆ svgProperties()
std::string LibBoard::Style::svgProperties |
( |
const TransformSVG & |
transform | ) |
const |
◆ tikzProperties()
std::string LibBoard::Style::tikzProperties |
( |
const TransformTikZ & |
transform | ) |
const |
◆ withFillColor()
Returns a copy of the style, with modified fill color.
- Parameters
-
- Returns
- A copy of the style, with modified fill color.
◆ withLineCap()
LibBoard::Style LibBoard::Style::withLineCap |
( |
LibBoard::LineCap |
lineCap | ) |
const |
|
inline |
Returns a copy of the style, with modified line cap.
- Parameters
-
- Returns
- A copy of the style, with modified line cap.
◆ withLineJoin()
LibBoard::Style LibBoard::Style::withLineJoin |
( |
LibBoard::LineJoin |
lineJoin | ) |
const |
|
inline |
Returns a copy of the style, with modified line join.
- Parameters
-
- Returns
- A copy of the style, with modified line join.
◆ withLineStyle()
LibBoard::Style LibBoard::Style::withLineStyle |
( |
LibBoard::LineStyle |
lineStyle | ) |
const |
|
inline |
Returns a copy of the style, with modified line style.
- Parameters
-
- Returns
- A copy of the style, with modified line style.
- Examples
- examples/line_style.cpp.
◆ withLineWidth()
Returns a copy of the style, with modified line width.
- Parameters
-
- Returns
- A copy of the style, with modified line width.
◆ withPenColor()
Returns a copy of the style, with modified pen color.
- Parameters
-
- Returns
- A copy of the style, with modified pen color.
The documentation for this struct was generated from the following files: