![]() |
wxPdfDocument
1.4.0
Library for generating PDF documents from wxWidgets applications
|
Class representing patterns. More...
#include <pdfpattern.h>
Public Member Functions | |
| wxPdfPattern (int index, double width, double height) | |
| Constructor for pattern. | |
| wxPdfPattern (int index, double width, double height, int templateId) | |
| Constructor for pattern. | |
| wxPdfPattern (int index, double width, double height, wxPdfPatternStyle patternStyle, const wxColour &drawColour, const wxColour &fillColour=wxColour()) | |
| Constructor for pattern. | |
| wxPdfPattern (int index, double x1, double y1, double x2, double y2, const wxGraphicsGradientStops &stops, const wxAffineMatrix2D &matrix) | |
| Constructor for linear gradient pattern. | |
| wxPdfPattern (int index, double startX, double startY, double startRadius, double endX, double endY, double endRadius, const wxGraphicsGradientStops &stops, const wxAffineMatrix2D &matrix) | |
| Constructor for radial gradient pattern. | |
| wxPdfPattern (const wxPdfPattern &pattern) | |
| Copy constructor. | |
| void | SetObjIndex (int index) |
| Set object index. | |
| int | GetObjIndex () const |
| Get object index. | |
| int | GetIndex () const |
| Get pattern index. | |
| void | SetImage (wxPdfImage *image) |
| Set image. | |
| wxPdfImage * | GetImage () const |
| Get image. | |
| double | GetWidth () const |
| Get pattern width. | |
| double | GetHeight () const |
| Get pattern height. | |
| int | GetTemplateId () const |
| Get template id. | |
| wxPdfPatternStyle | GetPatternStyle () const |
| Get pattern style. | |
| wxColour | GetDrawColour () const |
| Get draw color. | |
| void | SetFillColour (const wxColour &fillColour) |
| Set fill color. | |
| wxColour | GetFillColour () const |
| Get fill color. | |
| bool | HasFillColour () const |
| Check whether fill color is set. | |
| double | GetX1 () const |
| Get x-coordinate of start point (linear gradient). | |
| double | GetY1 () const |
| Get y-coordinate of start point (linear gradient). | |
| double | GetX2 () const |
| Get x-coordinate of end point (linear gradient). | |
| double | GetY2 () const |
| Get y-coordinate of end point (linear gradient). | |
| double | GetStartX () const |
| Get x-coordinate of center of start circle (radial gradient). | |
| double | GetStartY () const |
| Get y-coordinate of center of start circle (radial gradient). | |
| double | GetEndX () const |
| Get x-coordinate of center of end circle (radial gradient). | |
| double | GetEndY () const |
| Get y-coordinate of center of end circle (radial gradient). | |
| double | GetStartRadius () const |
| Get radius of start circle (radial gradient). | |
| double | GetEndRadius () const |
| Get radius of end circle (radial gradient). | |
| wxGraphicsGradientStops | GetStops () const |
| Get list of gradient stops. | |
| const wxAffineMatrix2D | GetMatrix () const |
| Get transformation matrix. | |
Class representing patterns.
| wxPdfPattern::wxPdfPattern | ( | int | index, |
| double | width, | ||
| double | height ) |
Constructor for pattern.
| index | The pattern index |
| width | The pattern width |
| height | The pattern height |
| wxPdfPattern::wxPdfPattern | ( | int | index, |
| double | width, | ||
| double | height, | ||
| int | templateId ) |
Constructor for pattern.
| index | The pattern index |
| width | The pattern width |
| height | The pattern height |
| templateId | The id of the template to be used as a pattern |
| wxPdfPattern::wxPdfPattern | ( | int | index, |
| double | width, | ||
| double | height, | ||
| wxPdfPatternStyle | patternStyle, | ||
| const wxColour & | drawColour, | ||
| const wxColour & | fillColour = wxColour() ) |
Constructor for pattern.
| index | The pattern index |
| width | The pattern width |
| height | The pattern height |
| patternStyle | The hatch style pattern to be used |
| drawColour | The foreground colour to be used for hatching |
| fillColour | The background colour to be used to fill the pattern background (optional) |
| wxPdfPattern::wxPdfPattern | ( | int | index, |
| double | x1, | ||
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| const wxGraphicsGradientStops & | stops, | ||
| const wxAffineMatrix2D & | matrix ) |
Constructor for linear gradient pattern.
| index | The pattern index |
| x1 | x-coordinate of start point |
| y1 | y-coordinate of start point |
| x2 | x-coordinate of end point |
| y2 | y-coordinate of end point |
| stops | List of gradient stops |
| matrix | Transformation matrix (optional) |
| wxPdfPattern::wxPdfPattern | ( | int | index, |
| double | startX, | ||
| double | startY, | ||
| double | startRadius, | ||
| double | endX, | ||
| double | endY, | ||
| double | endRadius, | ||
| const wxGraphicsGradientStops & | stops, | ||
| const wxAffineMatrix2D & | matrix ) |
Constructor for radial gradient pattern.
| index | The pattern index |
| startX | x-coordinate of start circle |
| startY | y-coordinate of start circle |
| startRadius | radius of start circle |
| endX | x-coordinate of end circle |
| endY | y-coordinate of end circle |
| endRadius | radius of end circle |
| stops | List of gradient stops |
| matrix | Transformation matrix (optional) |
| wxPdfPattern::wxPdfPattern | ( | const wxPdfPattern & | pattern | ) |
Copy constructor.
| pattern | The pattern to copy |
|
inline |
Get draw color.
|
inline |
Get radius of end circle (radial gradient).
|
inline |
Get x-coordinate of center of end circle (radial gradient).
|
inline |
Get y-coordinate of center of end circle (radial gradient).
|
inline |
Get fill color.
|
inline |
Get pattern height.
|
inline |
Get image.
|
inline |
Get pattern index.
|
inline |
Get transformation matrix.
|
inline |
Get object index.
|
inline |
Get pattern style.
|
inline |
Get radius of start circle (radial gradient).
|
inline |
Get x-coordinate of center of start circle (radial gradient).
|
inline |
Get y-coordinate of center of start circle (radial gradient).
|
inline |
Get list of gradient stops.
|
inline |
Get template id.
|
inline |
Get pattern width.
|
inline |
Get x-coordinate of start point (linear gradient).
|
inline |
Get x-coordinate of end point (linear gradient).
|
inline |
Get y-coordinate of start point (linear gradient).
|
inline |
Get y-coordinate of end point (linear gradient).
|
inline |
Check whether fill color is set.
true if the pattern has a fill colour, false otherwise
|
inline |
Set fill color.
| fillColour | The fill colour |
|
inline |
Set image.
| image | The image to use as a pattern |
|
inline |
Set object index.
| index | The object index |