wxPdfDocument 1.2.0
Public Member Functions | Protected Member Functions | List of all members
wxPdfDCImpl Class Reference

Class representing the PDF drawing context implementation. More...

#include <pdfdc.h>

Inheritance diagram for wxPdfDCImpl:

Public Member Functions

 wxPdfDCImpl (wxPdfDC *owner)
 
 wxPdfDCImpl (wxPdfDC *owner, const wxPrintData &data)
 
 wxPdfDCImpl (wxPdfDC *owner, wxPdfDocument *pdfDocument, double templateWidth, double templateHeight)
 
 wxPdfDCImpl (wxPdfDC *owner, const wxString &file, int w=300, int h=200)
 
virtual ~wxPdfDCImpl ()
 
void Init ()
 
wxPdfDocumentGetPdfDocument ()
 
void SetPrintData (const wxPrintData &data)
 
wxPrintData & GetPrintData ()
 
void SetResolution (int ppi)
 
virtual int GetResolution () const wxOVERRIDE
 
void SetImageType (wxBitmapType bitmapType, int quality=75)
 
virtual void Clear () wxOVERRIDE
 
virtual bool StartDoc (const wxString &message) wxOVERRIDE
 
virtual void EndDoc () wxOVERRIDE
 
virtual void StartPage () wxOVERRIDE
 
virtual void EndPage () wxOVERRIDE
 
virtual void SetFont (const wxFont &font) wxOVERRIDE
 
virtual void SetPen (const wxPen &pen) wxOVERRIDE
 
virtual void SetBrush (const wxBrush &brush) wxOVERRIDE
 
virtual void SetBackground (const wxBrush &brush) wxOVERRIDE
 
virtual void SetBackgroundMode (int mode) wxOVERRIDE
 
virtual void DestroyClippingRegion () wxOVERRIDE
 
virtual wxCoord GetCharHeight () const wxOVERRIDE
 
virtual wxCoord GetCharWidth () const wxOVERRIDE
 
virtual bool CanDrawBitmap () const wxOVERRIDE
 
virtual bool CanGetTextExtent () const wxOVERRIDE
 
virtual int GetDepth () const wxOVERRIDE
 
virtual wxSize GetPPI () const wxOVERRIDE
 
virtual void SetMapMode (wxMappingMode mode) wxOVERRIDE
 
virtual void SetUserScale (double x, double y) wxOVERRIDE
 
virtual void SetLogicalScale (double x, double y) wxOVERRIDE
 
virtual void SetLogicalOrigin (wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void SetDeviceOrigin (wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void SetAxisOrientation (bool xLeftRight, bool yBottomUp) wxOVERRIDE
 
virtual void SetLogicalFunction (wxRasterOperationMode function) wxOVERRIDE
 
virtual void SetTextForeground (const wxColour &colour) wxOVERRIDE
 
virtual void ComputeScaleAndOrigin () wxOVERRIDE
 
int GetDrawingStyle ()
 
bool StretchBlt (wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxBitmap *bitmap)
 
int IncreaseImageCounter ()
 
void SetMapModeStyle (wxPdfMapModeStyle style)
 
wxPdfMapModeStyle GetMapModeStyle () const
 
double ScaleLogicalToPdfX (wxCoord x) const
 
double ScaleLogicalToPdfXRel (wxCoord x) const
 
double ScaleLogicalToPdfY (wxCoord y) const
 
double ScaleLogicalToPdfYRel (wxCoord y) const
 
double ScaleFontSizeToPdf (int pointSize) const
 
int ScalePdfToFontMetric (double metric) const
 

Protected Member Functions

virtual bool DoFloodFill (wxCoord x, wxCoord y, const wxColour &col, wxFloodFillStyle style=wxFLOOD_SURFACE) wxOVERRIDE
 
virtual void DoGradientFillLinear (const wxRect &rect, const wxColour &initialColour, const wxColour &destColour, wxDirection nDirection=wxEAST) wxOVERRIDE
 
virtual void DoGradientFillConcentric (const wxRect &rect, const wxColour &initialColour, const wxColour &destColour, const wxPoint &circleCenter) wxOVERRIDE
 
virtual bool DoGetPixel (wxCoord x, wxCoord y, wxColour *col) const wxOVERRIDE
 
virtual void DoDrawPoint (wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void DoDrawLine (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE
 
virtual void DoDrawArc (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord xc, wxCoord yc) wxOVERRIDE
 
virtual void DoDrawCheckMark (wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE
 
virtual void DoDrawEllipticArc (wxCoord x, wxCoord y, wxCoord w, wxCoord h, double sa, double ea) wxOVERRIDE
 
virtual void DoDrawRectangle (wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE
 
virtual void DoDrawRoundedRectangle (wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius) wxOVERRIDE
 
virtual void DoDrawEllipse (wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE
 
virtual void DoCrossHair (wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void DoDrawIcon (const wxIcon &icon, wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void DoDrawBitmap (const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask=false) wxOVERRIDE
 
virtual void DoDrawText (const wxString &text, wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void DoDrawRotatedText (const wxString &text, wxCoord x, wxCoord y, double angle) wxOVERRIDE
 
virtual bool DoBlit (wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxDC *source, wxCoord xsrc, wxCoord ysrc, wxRasterOperationMode rop=wxCOPY, bool useMask=false, wxCoord xsrcMask=-1, wxCoord ysrcMask=-1) wxOVERRIDE
 
virtual void DoGetSize (int *width, int *height) const wxOVERRIDE
 
virtual void DoGetSizeMM (int *width, int *height) const wxOVERRIDE
 
virtual void DoDrawLines (int n, const wxPoint points[], wxCoord xoffset, wxCoord yoffset) wxOVERRIDE
 
virtual void DoDrawPolygon (int n, const wxPoint points[], wxCoord xoffset, wxCoord yoffset, wxPolygonFillMode fillStyle=wxODDEVEN_RULE) wxOVERRIDE
 
virtual void DoDrawPolyPolygon (int n, const int count[], const wxPoint points[], wxCoord xoffset, wxCoord yoffset, wxPolygonFillMode fillStyle) wxOVERRIDE
 
virtual void DoSetClippingRegionAsRegion (const wxRegion &region)
 
virtual void DoSetClippingRegion (wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE
 
virtual void DoSetDeviceClippingRegion (const wxRegion &region) wxOVERRIDE
 
virtual void DoGetTextExtent (const wxString &string, wxCoord *x, wxCoord *y, wxCoord *descent=NULL, wxCoord *externalLeading=NULL, const wxFont *theFont=NULL) const wxOVERRIDE
 
virtual bool DoGetPartialTextExtents (const wxString &text, wxArrayInt &widths) const wxOVERRIDE
 

Detailed Description

Class representing the PDF drawing context implementation.

Constructor & Destructor Documentation

◆ wxPdfDCImpl() [1/4]

wxPdfDCImpl::wxPdfDCImpl ( wxPdfDC * owner)

◆ wxPdfDCImpl() [2/4]

wxPdfDCImpl::wxPdfDCImpl ( wxPdfDC * owner,
const wxPrintData & data )

◆ wxPdfDCImpl() [3/4]

wxPdfDCImpl::wxPdfDCImpl ( wxPdfDC * owner,
wxPdfDocument * pdfDocument,
double templateWidth,
double templateHeight )

◆ wxPdfDCImpl() [4/4]

wxPdfDCImpl::wxPdfDCImpl ( wxPdfDC * owner,
const wxString & file,
int w = 300,
int h = 200 )

◆ ~wxPdfDCImpl()

virtual wxPdfDCImpl::~wxPdfDCImpl ( )
virtual

Member Function Documentation

◆ CanDrawBitmap()

virtual bool wxPdfDCImpl::CanDrawBitmap ( ) const
virtual

◆ CanGetTextExtent()

virtual bool wxPdfDCImpl::CanGetTextExtent ( ) const
virtual

◆ Clear()

virtual void wxPdfDCImpl::Clear ( )
virtual

◆ ComputeScaleAndOrigin()

virtual void wxPdfDCImpl::ComputeScaleAndOrigin ( )
virtual

◆ DestroyClippingRegion()

virtual void wxPdfDCImpl::DestroyClippingRegion ( )
virtual

◆ DoBlit()

virtual bool wxPdfDCImpl::DoBlit ( wxCoord xdest,
wxCoord ydest,
wxCoord width,
wxCoord height,
wxDC * source,
wxCoord xsrc,
wxCoord ysrc,
wxRasterOperationMode rop = wxCOPY,
bool useMask = false,
wxCoord xsrcMask = -1,
wxCoord ysrcMask = -1 )
protectedvirtual

◆ DoCrossHair()

virtual void wxPdfDCImpl::DoCrossHair ( wxCoord x,
wxCoord y )
protectedvirtual

◆ DoDrawArc()

virtual void wxPdfDCImpl::DoDrawArc ( wxCoord x1,
wxCoord y1,
wxCoord x2,
wxCoord y2,
wxCoord xc,
wxCoord yc )
protectedvirtual

◆ DoDrawBitmap()

virtual void wxPdfDCImpl::DoDrawBitmap ( const wxBitmap & bmp,
wxCoord x,
wxCoord y,
bool useMask = false )
protectedvirtual

◆ DoDrawCheckMark()

virtual void wxPdfDCImpl::DoDrawCheckMark ( wxCoord x,
wxCoord y,
wxCoord width,
wxCoord height )
protectedvirtual

◆ DoDrawEllipse()

virtual void wxPdfDCImpl::DoDrawEllipse ( wxCoord x,
wxCoord y,
wxCoord width,
wxCoord height )
protectedvirtual

◆ DoDrawEllipticArc()

virtual void wxPdfDCImpl::DoDrawEllipticArc ( wxCoord x,
wxCoord y,
wxCoord w,
wxCoord h,
double sa,
double ea )
protectedvirtual

◆ DoDrawIcon()

virtual void wxPdfDCImpl::DoDrawIcon ( const wxIcon & icon,
wxCoord x,
wxCoord y )
protectedvirtual

◆ DoDrawLine()

virtual void wxPdfDCImpl::DoDrawLine ( wxCoord x1,
wxCoord y1,
wxCoord x2,
wxCoord y2 )
protectedvirtual

◆ DoDrawLines()

virtual void wxPdfDCImpl::DoDrawLines ( int n,
const wxPoint points[],
wxCoord xoffset,
wxCoord yoffset )
protectedvirtual

◆ DoDrawPoint()

virtual void wxPdfDCImpl::DoDrawPoint ( wxCoord x,
wxCoord y )
protectedvirtual

◆ DoDrawPolygon()

virtual void wxPdfDCImpl::DoDrawPolygon ( int n,
const wxPoint points[],
wxCoord xoffset,
wxCoord yoffset,
wxPolygonFillMode fillStyle = wxODDEVEN_RULE )
protectedvirtual

◆ DoDrawPolyPolygon()

virtual void wxPdfDCImpl::DoDrawPolyPolygon ( int n,
const int count[],
const wxPoint points[],
wxCoord xoffset,
wxCoord yoffset,
wxPolygonFillMode fillStyle )
protectedvirtual

◆ DoDrawRectangle()

virtual void wxPdfDCImpl::DoDrawRectangle ( wxCoord x,
wxCoord y,
wxCoord width,
wxCoord height )
protectedvirtual

◆ DoDrawRotatedText()

virtual void wxPdfDCImpl::DoDrawRotatedText ( const wxString & text,
wxCoord x,
wxCoord y,
double angle )
protectedvirtual

◆ DoDrawRoundedRectangle()

virtual void wxPdfDCImpl::DoDrawRoundedRectangle ( wxCoord x,
wxCoord y,
wxCoord width,
wxCoord height,
double radius )
protectedvirtual

◆ DoDrawText()

virtual void wxPdfDCImpl::DoDrawText ( const wxString & text,
wxCoord x,
wxCoord y )
protectedvirtual

◆ DoFloodFill()

virtual bool wxPdfDCImpl::DoFloodFill ( wxCoord x,
wxCoord y,
const wxColour & col,
wxFloodFillStyle style = wxFLOOD_SURFACE )
protectedvirtual

◆ DoGetPartialTextExtents()

virtual bool wxPdfDCImpl::DoGetPartialTextExtents ( const wxString & text,
wxArrayInt & widths ) const
protectedvirtual

◆ DoGetPixel()

virtual bool wxPdfDCImpl::DoGetPixel ( wxCoord x,
wxCoord y,
wxColour * col ) const
protectedvirtual

◆ DoGetSize()

virtual void wxPdfDCImpl::DoGetSize ( int * width,
int * height ) const
protectedvirtual

◆ DoGetSizeMM()

virtual void wxPdfDCImpl::DoGetSizeMM ( int * width,
int * height ) const
protectedvirtual

◆ DoGetTextExtent()

virtual void wxPdfDCImpl::DoGetTextExtent ( const wxString & string,
wxCoord * x,
wxCoord * y,
wxCoord * descent = NULL,
wxCoord * externalLeading = NULL,
const wxFont * theFont = NULL ) const
protectedvirtual

◆ DoGradientFillConcentric()

virtual void wxPdfDCImpl::DoGradientFillConcentric ( const wxRect & rect,
const wxColour & initialColour,
const wxColour & destColour,
const wxPoint & circleCenter )
protectedvirtual

◆ DoGradientFillLinear()

virtual void wxPdfDCImpl::DoGradientFillLinear ( const wxRect & rect,
const wxColour & initialColour,
const wxColour & destColour,
wxDirection nDirection = wxEAST )
protectedvirtual

◆ DoSetClippingRegion()

virtual void wxPdfDCImpl::DoSetClippingRegion ( wxCoord x,
wxCoord y,
wxCoord width,
wxCoord height )
protectedvirtual

◆ DoSetClippingRegionAsRegion()

virtual void wxPdfDCImpl::DoSetClippingRegionAsRegion ( const wxRegion & region)
protectedvirtual

◆ DoSetDeviceClippingRegion()

virtual void wxPdfDCImpl::DoSetDeviceClippingRegion ( const wxRegion & region)
protectedvirtual

◆ EndDoc()

virtual void wxPdfDCImpl::EndDoc ( )
virtual

◆ EndPage()

virtual void wxPdfDCImpl::EndPage ( )
virtual

◆ GetCharHeight()

virtual wxCoord wxPdfDCImpl::GetCharHeight ( ) const
virtual

◆ GetCharWidth()

virtual wxCoord wxPdfDCImpl::GetCharWidth ( ) const
virtual

◆ GetDepth()

virtual int wxPdfDCImpl::GetDepth ( ) const
virtual

◆ GetDrawingStyle()

int wxPdfDCImpl::GetDrawingStyle ( )

◆ GetMapModeStyle()

wxPdfMapModeStyle wxPdfDCImpl::GetMapModeStyle ( ) const
inline

◆ GetPdfDocument()

wxPdfDocument * wxPdfDCImpl::GetPdfDocument ( )

◆ GetPPI()

virtual wxSize wxPdfDCImpl::GetPPI ( ) const
virtual

◆ GetPrintData()

wxPrintData & wxPdfDCImpl::GetPrintData ( )
inline

◆ GetResolution()

virtual int wxPdfDCImpl::GetResolution ( ) const
virtual

◆ IncreaseImageCounter()

int wxPdfDCImpl::IncreaseImageCounter ( )

◆ Init()

void wxPdfDCImpl::Init ( )

◆ ScaleFontSizeToPdf()

double wxPdfDCImpl::ScaleFontSizeToPdf ( int pointSize) const

◆ ScaleLogicalToPdfX()

double wxPdfDCImpl::ScaleLogicalToPdfX ( wxCoord x) const

◆ ScaleLogicalToPdfXRel()

double wxPdfDCImpl::ScaleLogicalToPdfXRel ( wxCoord x) const

◆ ScaleLogicalToPdfY()

double wxPdfDCImpl::ScaleLogicalToPdfY ( wxCoord y) const

◆ ScaleLogicalToPdfYRel()

double wxPdfDCImpl::ScaleLogicalToPdfYRel ( wxCoord y) const

◆ ScalePdfToFontMetric()

int wxPdfDCImpl::ScalePdfToFontMetric ( double metric) const

◆ SetAxisOrientation()

virtual void wxPdfDCImpl::SetAxisOrientation ( bool xLeftRight,
bool yBottomUp )
virtual

◆ SetBackground()

virtual void wxPdfDCImpl::SetBackground ( const wxBrush & brush)
virtual

◆ SetBackgroundMode()

virtual void wxPdfDCImpl::SetBackgroundMode ( int mode)
virtual

◆ SetBrush()

virtual void wxPdfDCImpl::SetBrush ( const wxBrush & brush)
virtual

◆ SetDeviceOrigin()

virtual void wxPdfDCImpl::SetDeviceOrigin ( wxCoord x,
wxCoord y )
virtual

◆ SetFont()

virtual void wxPdfDCImpl::SetFont ( const wxFont & font)
virtual

◆ SetImageType()

void wxPdfDCImpl::SetImageType ( wxBitmapType bitmapType,
int quality = 75 )

◆ SetLogicalFunction()

virtual void wxPdfDCImpl::SetLogicalFunction ( wxRasterOperationMode function)
virtual

◆ SetLogicalOrigin()

virtual void wxPdfDCImpl::SetLogicalOrigin ( wxCoord x,
wxCoord y )
virtual

◆ SetLogicalScale()

virtual void wxPdfDCImpl::SetLogicalScale ( double x,
double y )
virtual

◆ SetMapMode()

virtual void wxPdfDCImpl::SetMapMode ( wxMappingMode mode)
virtual

◆ SetMapModeStyle()

void wxPdfDCImpl::SetMapModeStyle ( wxPdfMapModeStyle style)
inline

◆ SetPen()

virtual void wxPdfDCImpl::SetPen ( const wxPen & pen)
virtual

◆ SetPrintData()

void wxPdfDCImpl::SetPrintData ( const wxPrintData & data)

◆ SetResolution()

void wxPdfDCImpl::SetResolution ( int ppi)

◆ SetTextForeground()

virtual void wxPdfDCImpl::SetTextForeground ( const wxColour & colour)
virtual

◆ SetUserScale()

virtual void wxPdfDCImpl::SetUserScale ( double x,
double y )
virtual

◆ StartDoc()

virtual bool wxPdfDCImpl::StartDoc ( const wxString & message)
virtual

◆ StartPage()

virtual void wxPdfDCImpl::StartPage ( )
virtual

◆ StretchBlt()

bool wxPdfDCImpl::StretchBlt ( wxCoord xdest,
wxCoord ydest,
wxCoord width,
wxCoord height,
wxBitmap * bitmap )

The documentation for this class was generated from the following file: