wxPdfDocument 1.2.0
|
Class representing line styles. More...
#include <pdflinestyle.h>
Public Member Functions | |
wxPdfLineStyle (double width=-1, wxPdfLineCap cap=wxPDF_LINECAP_NONE, wxPdfLineJoin join=wxPDF_LINEJOIN_NONE, const wxPdfArrayDouble &dash=wxPdfArrayDouble(), double phase=-1, const wxPdfColour &colour=wxPdfColour()) | |
Constructor. | |
wxPdfLineStyle (const wxPdfLineStyle &lineStyle) | |
Copy constructor. | |
wxPdfLineStyle & | operator= (const wxPdfLineStyle &lineStyle) |
Assignment operator. | |
virtual | ~wxPdfLineStyle () |
Destructor. | |
bool | IsSet () const |
Check whether the style is initialized. | |
void | SetWidth (double width) |
Set the line width. | |
double | GetWidth () const |
Get the line width. | |
void | SetLineCap (const wxPdfLineCap cap) |
Set the line ending style. | |
wxPdfLineCap | GetLineCap () const |
Get the line ending style. | |
void | SetLineJoin (const wxPdfLineJoin join) |
Set the line join style. | |
wxPdfLineJoin | GetLineJoin () const |
Get the line join style. | |
void | SetDash (const wxPdfArrayDouble &dash) |
Set the dash pattern. | |
const wxPdfArrayDouble & | GetDash () const |
Get the dash pattern. | |
void | SetPhase (double phase) |
Set the dash pattern phase. | |
double | GetPhase () const |
Get the dash pattern phase. | |
void | SetColour (const wxPdfColour &colour) |
Set the line colour. | |
const wxPdfColour & | GetColour () const |
Get the line colour. | |
Class representing line styles.
wxPdfLineStyle::wxPdfLineStyle | ( | double | width = -1, |
wxPdfLineCap | cap = wxPDF_LINECAP_NONE, | ||
wxPdfLineJoin | join = wxPDF_LINEJOIN_NONE, | ||
const wxPdfArrayDouble & | dash = wxPdfArrayDouble(), | ||
double | phase = -1, | ||
const wxPdfColour & | colour = wxPdfColour() ) |
Constructor.
Creates a line style for use in graphics primitives.
[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. |
wxPdfLineStyle::wxPdfLineStyle | ( | const wxPdfLineStyle & | lineStyle | ) |
Copy constructor.
|
virtual |
Destructor.
|
inline |
Get the line colour.
|
inline |
Get the dash pattern.
|
inline |
Get the line ending style.
|
inline |
Get the line join style.
|
inline |
Get the dash pattern phase.
|
inline |
Get the line width.
|
inline |
Check whether the style is initialized.
wxPdfLineStyle & wxPdfLineStyle::operator= | ( | const wxPdfLineStyle & | lineStyle | ) |
Assignment operator.
|
inline |
Set the line colour.
|
inline |
Set the dash pattern.
|
inline |
Set the line ending style.
|
inline |
Set the line join style.
|
inline |
Set the dash pattern phase.
|
inline |
Set the line width.