wxPdfDocument  0.9.6
Public Member Functions | Protected Member Functions | List of all members
wxPdfDC Class Reference

Class representing a PDF drawing context. More...

#include <pdfdc29.h>

Inheritance diagram for wxPdfDC:

Public Member Functions

 wxPdfDC ()
 
 wxPdfDC (const wxPrintData &printData)
 
 wxPdfDC (wxPdfDocument *pdfDocument, double templateWidth, double templateHeight)
 
virtual ~wxPdfDC ()
 
wxPdfDocumentGetPdfDocument ()
 
void SetPrintData (const wxPrintData &data)
 
wxPrintData & GetPrintData ()
 
void SetResolution (int ppi)
 
int GetResolution () const
 
void SetImageType (wxBitmapType bitmapType, int quality=75)
 
virtual void Clear ()
 
virtual bool StartDoc (const wxString &message)
 
virtual void EndDoc ()
 
virtual void StartPage ()
 
virtual void EndPage ()
 
virtual void SetFont (const wxFont &font)
 
virtual void SetPen (const wxPen &pen)
 
virtual void SetBrush (const wxBrush &brush)
 
virtual void SetBackground (const wxBrush &brush)
 
virtual void SetBackgroundMode (int mode)
 
virtual void SetPalette (const wxPalette &palette)
 
virtual void DestroyClippingRegion ()
 
virtual wxCoord GetCharHeight () const
 
virtual wxCoord GetCharWidth () const
 
virtual bool CanDrawBitmap () const
 
virtual bool CanGetTextExtent () const
 
virtual int GetDepth () const
 
virtual wxSize GetPPI () const
 
virtual void SetMapMode (int mode)
 
virtual void SetUserScale (double x, double y)
 
virtual void SetLogicalScale (double x, double y)
 
virtual void SetLogicalOrigin (wxCoord x, wxCoord y)
 
virtual void SetDeviceOrigin (wxCoord x, wxCoord y)
 
virtual void SetAxisOrientation (bool xLeftRight, bool yBottomUp)
 
virtual void SetLogicalFunction (int function)
 
virtual void SetTextForeground (const wxColour &colour)
 
virtual void ComputeScaleAndOrigin ()
 
int GetDrawingStyle ()
 
bool StretchBlt (wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxBitmap *bitmap)
 
int IncreaseImageCounter ()
 
void SetMapModeStyle (wxPdfMapModeStyle style)
 
wxPdfMapModeStyle GetMapModeStyle () const
 
 wxPdfDC ()
 
 wxPdfDC (const wxPrintData &printData)
 
 wxPdfDC (wxPdfDocument *pdfDocument, double templateWidth, double templateHeight)
 
wxPdfDocumentGetPdfDocument ()
 
void SetResolution (int ppi)
 
int GetResolution () const
 
void SetImageType (wxBitmapType bitmapType, int quality=75)
 
void SetMapModeStyle (wxPdfMapModeStyle style)
 
wxPdfMapModeStyle GetMapModeStyle () const
 

Protected Member Functions

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

Detailed Description

Class representing a PDF drawing context.

Constructor & Destructor Documentation

◆ wxPdfDC() [1/6]

wxPdfDC::wxPdfDC ( )

◆ wxPdfDC() [2/6]

wxPdfDC::wxPdfDC ( const wxPrintData &  printData)

◆ wxPdfDC() [3/6]

wxPdfDC::wxPdfDC ( wxPdfDocument pdfDocument,
double  templateWidth,
double  templateHeight 
)

◆ ~wxPdfDC()

virtual wxPdfDC::~wxPdfDC ( )
virtual

◆ wxPdfDC() [4/6]

wxPdfDC::wxPdfDC ( )

◆ wxPdfDC() [5/6]

wxPdfDC::wxPdfDC ( const wxPrintData &  printData)

◆ wxPdfDC() [6/6]

wxPdfDC::wxPdfDC ( wxPdfDocument pdfDocument,
double  templateWidth,
double  templateHeight 
)

Member Function Documentation

◆ CanDrawBitmap()

virtual bool wxPdfDC::CanDrawBitmap ( ) const
virtual

◆ CanGetTextExtent()

virtual bool wxPdfDC::CanGetTextExtent ( ) const
virtual

◆ Clear()

virtual void wxPdfDC::Clear ( )
virtual

◆ ComputeScaleAndOrigin()

virtual void wxPdfDC::ComputeScaleAndOrigin ( )
virtual

◆ DestroyClippingRegion()

virtual void wxPdfDC::DestroyClippingRegion ( )
virtual

◆ DoBlit()

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

◆ DoCrossHair()

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

◆ DoDrawArc()

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

◆ DoDrawBitmap()

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

◆ DoDrawCheckMark()

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

◆ DoDrawEllipse()

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

◆ DoDrawEllipticArc()

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

◆ DoDrawIcon()

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

◆ DoDrawLine()

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

◆ DoDrawLines()

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

◆ DoDrawPoint()

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

◆ DoDrawPolygon()

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

◆ DoDrawPolyPolygon()

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

◆ DoDrawRectangle()

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

◆ DoDrawRotatedText()

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

◆ DoDrawRoundedRectangle()

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

◆ DoDrawText()

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

◆ DoFloodFill()

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

◆ DoGetPartialTextExtents()

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

◆ DoGetPixel()

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

◆ DoGetSize()

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

◆ DoGetSizeMM()

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

◆ DoGetTextExtent()

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

◆ DoGradientFillConcentric()

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

◆ DoGradientFillLinear()

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

◆ DoSetClippingRegion()

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

◆ DoSetClippingRegionAsRegion()

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

◆ EndDoc()

virtual void wxPdfDC::EndDoc ( )
virtual

◆ EndPage()

virtual void wxPdfDC::EndPage ( )
virtual

◆ GetCharHeight()

virtual wxCoord wxPdfDC::GetCharHeight ( ) const
virtual

◆ GetCharWidth()

virtual wxCoord wxPdfDC::GetCharWidth ( ) const
virtual

◆ GetDepth()

virtual int wxPdfDC::GetDepth ( ) const
virtual

◆ GetDrawingStyle()

int wxPdfDC::GetDrawingStyle ( )

◆ GetMapModeStyle() [1/2]

wxPdfMapModeStyle wxPdfDC::GetMapModeStyle ( ) const

◆ GetMapModeStyle() [2/2]

wxPdfMapModeStyle wxPdfDC::GetMapModeStyle ( ) const
inline

◆ GetPdfDocument() [1/2]

wxPdfDocument* wxPdfDC::GetPdfDocument ( )

◆ GetPdfDocument() [2/2]

wxPdfDocument* wxPdfDC::GetPdfDocument ( )

◆ GetPPI()

virtual wxSize wxPdfDC::GetPPI ( ) const
virtual

◆ GetPrintData()

wxPrintData& wxPdfDC::GetPrintData ( )
inline

◆ GetResolution() [1/2]

int wxPdfDC::GetResolution ( ) const

◆ GetResolution() [2/2]

int wxPdfDC::GetResolution ( ) const

◆ IncreaseImageCounter()

int wxPdfDC::IncreaseImageCounter ( )
inline

◆ SetAxisOrientation()

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

◆ SetBackground()

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

◆ SetBackgroundMode()

virtual void wxPdfDC::SetBackgroundMode ( int  mode)
virtual

◆ SetBrush()

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

◆ SetDeviceOrigin()

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

◆ SetFont()

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

◆ SetImageType() [1/2]

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

◆ SetImageType() [2/2]

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

◆ SetLogicalFunction()

virtual void wxPdfDC::SetLogicalFunction ( int  function)
virtual

◆ SetLogicalOrigin()

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

◆ SetLogicalScale()

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

◆ SetMapMode()

virtual void wxPdfDC::SetMapMode ( int  mode)
virtual

◆ SetMapModeStyle() [1/2]

void wxPdfDC::SetMapModeStyle ( wxPdfMapModeStyle  style)

◆ SetMapModeStyle() [2/2]

void wxPdfDC::SetMapModeStyle ( wxPdfMapModeStyle  style)
inline

◆ SetPalette()

virtual void wxPdfDC::SetPalette ( const wxPalette &  palette)
virtual

◆ SetPen()

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

◆ SetPrintData()

void wxPdfDC::SetPrintData ( const wxPrintData &  data)

◆ SetResolution() [1/2]

void wxPdfDC::SetResolution ( int  ppi)

◆ SetResolution() [2/2]

void wxPdfDC::SetResolution ( int  ppi)

◆ SetTextForeground()

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

◆ SetUserScale()

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

◆ StartDoc()

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

◆ StartPage()

virtual void wxPdfDC::StartPage ( )
virtual

◆ StretchBlt()

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

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