2014-08-23 21:50:11 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/qt/dcprint.h
|
|
|
|
// Author: Peter Most
|
|
|
|
// Copyright: (c) Peter Most
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_QT_DCPRINT_H_
|
|
|
|
#define _WX_QT_DCPRINT_H_
|
|
|
|
|
|
|
|
#include "wx/dc.h"
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxPrinterDCImpl : public wxDCImpl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPrinterDCImpl( wxPrinterDC *, const wxPrintData & );
|
2019-01-30 11:28:08 -05:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual bool CanDrawBitmap() const wxOVERRIDE;
|
|
|
|
virtual bool CanGetTextExtent() const wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void DoGetSize(int *width, int *height) const wxOVERRIDE;
|
|
|
|
virtual void DoGetSizeMM(int* width, int* height) const wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual int GetDepth() const wxOVERRIDE;
|
|
|
|
virtual wxSize GetPPI() const wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
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;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
#if wxUSE_PALETTE
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void SetPalette(const wxPalette& palette) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
#endif // wxUSE_PALETTE
|
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void SetLogicalFunction(wxRasterOperationMode function) wxOVERRIDE;
|
2019-01-30 11:28:08 -05:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual wxCoord GetCharHeight() const wxOVERRIDE;
|
|
|
|
virtual wxCoord GetCharWidth() const wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
virtual void DoGetTextExtent(const wxString& string,
|
|
|
|
wxCoord *x, wxCoord *y,
|
|
|
|
wxCoord *descent = NULL,
|
|
|
|
wxCoord *externalLeading = NULL,
|
2019-04-05 14:08:53 -04:00
|
|
|
const wxFont *theFont = NULL) const wxOVERRIDE;
|
2019-01-30 11:28:08 -05:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void Clear() wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
|
2019-04-05 14:08:53 -04:00
|
|
|
wxCoord width, wxCoord height) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void DoSetDeviceClippingRegion(const wxRegion& region) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
|
2019-04-05 14:08:53 -04:00
|
|
|
wxFloodFillStyle style = wxFLOOD_SURFACE) wxOVERRIDE;
|
2019-01-30 11:28:08 -05:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void DoDrawPoint(wxCoord x, wxCoord y) wxOVERRIDE;
|
|
|
|
virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
virtual void DoDrawArc(wxCoord x1, wxCoord y1,
|
|
|
|
wxCoord x2, wxCoord y2,
|
2019-04-05 14:08:53 -04:00
|
|
|
wxCoord xc, wxCoord yc) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
2019-04-05 14:08:53 -04:00
|
|
|
double sa, double ea) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
|
|
|
|
wxCoord width, wxCoord height,
|
2019-04-05 14:08:53 -04:00
|
|
|
double radius) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
virtual void DoDrawEllipse(wxCoord x, wxCoord y,
|
2019-04-05 14:08:53 -04:00
|
|
|
wxCoord width, wxCoord height) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void DoCrossHair(wxCoord x, wxCoord y) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
|
2019-04-05 14:08:53 -04:00
|
|
|
bool useMask = false) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
virtual void DoDrawRotatedText(const wxString& text,
|
2019-04-05 14:08:53 -04:00
|
|
|
wxCoord x, wxCoord y, double angle) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
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 = wxDefaultCoord,
|
2019-04-05 14:08:53 -04:00
|
|
|
wxCoord ysrcMask = wxDefaultCoord) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
virtual void DoDrawLines(int n, const wxPoint points[],
|
2019-04-05 14:08:53 -04:00
|
|
|
wxCoord xoffset, wxCoord yoffset ) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
virtual void DoDrawPolygon(int n, const wxPoint points[],
|
|
|
|
wxCoord xoffset, wxCoord yoffset,
|
2019-04-05 14:08:53 -04:00
|
|
|
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
private:
|
2018-12-21 09:55:33 -05:00
|
|
|
wxDECLARE_CLASS(wxPrinterDCImpl);
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPrinterDCImpl);
|
2014-08-23 21:50:11 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_QT_DCPRINT_H_
|