Class representing line styles.
More...
#include <pdflinestyle.h>
Class representing line styles.
◆ wxPdfLineStyle() [1/2]
Constructor.
Creates a line style for use in graphics primitives.
- Parameters
-
| [in] | width | Width of the line in user units. |
| [in] | cap | Type of cap to put on the line (butt, round, square). The difference between 'square' and 'butt' is that 'square' projects a flat end past the end of the line. |
| [in] | join | form of line joining: miter, round or bevel |
| [in] | dash | pattern for dashed lines.Is an empty array (without dash) or array with series of length values, which are the lengths of the on and off dashes. For example: (2) represents 2 on, 2 off, 2 on , 2 off ... (2,1) is 2 on, 1 off, 2 on, 1 off.. etc |
| [in] | phase | Modifier of the dash pattern which is used to shift the point at which the pattern starts |
| [in] | colour | line colour. |
- See also
- SetLineStyle(), Curve(), Line(), Circle(), Ellipse(), Rect(), RoundedRect(), Polygon(), RegularPolygon(), StarPolygon()
◆ wxPdfLineStyle() [2/2]
Copy constructor.
- Parameters
-
| lineStyle | The line style to copy |
◆ ~wxPdfLineStyle()
| virtual wxPdfLineStyle::~wxPdfLineStyle |
( |
| ) |
|
|
virtual |
◆ GetColour()
| const wxPdfColour & wxPdfLineStyle::GetColour |
( |
| ) |
const |
|
inline |
Get the line colour.
- Returns
- The line colour
◆ GetDash()
Get the dash pattern.
- Returns
- The dash pattern array
◆ GetLineCap()
Get the line ending style.
- Returns
- The line cap style
◆ GetLineJoin()
Get the line join style.
- Returns
- The line join style
◆ GetPhase()
| double wxPdfLineStyle::GetPhase |
( |
| ) |
const |
|
inline |
Get the dash pattern phase.
- Returns
- The dash pattern phase
◆ GetWidth()
| double wxPdfLineStyle::GetWidth |
( |
| ) |
const |
|
inline |
Get the line width.
- Returns
- The line width
◆ IsSet()
| bool wxPdfLineStyle::IsSet |
( |
| ) |
const |
|
inline |
Check whether the style is initialized.
- Returns
true if the style is set, false otherwise
◆ operator=()
Assignment operator.
- Parameters
-
| lineStyle | The line style to copy |
- Returns
- A reference to this line style
◆ SetColour()
| void wxPdfLineStyle::SetColour |
( |
const wxPdfColour & | colour | ) |
|
|
inline |
Set the line colour.
- Parameters
-
◆ SetDash()
Set the dash pattern.
- Parameters
-
| dash | The dash pattern array |
◆ SetLineCap()
Set the line ending style.
- Parameters
-
◆ SetLineJoin()
Set the line join style.
- Parameters
-
◆ SetPhase()
| void wxPdfLineStyle::SetPhase |
( |
double | phase | ) |
|
|
inline |
Set the dash pattern phase.
- Parameters
-
| phase | The dash pattern phase |
◆ SetWidth()
| void wxPdfLineStyle::SetWidth |
( |
double | width | ) |
|
|
inline |
Set the line width.
- Parameters
-
The documentation for this class was generated from the following file: