wxWidgets/include/wx/qt/dcprint.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

107 lines
4.4 KiB
C
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////
// 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-04-05 14:08:53 -04:00
virtual bool CanDrawBitmap() const wxOVERRIDE;
virtual bool CanGetTextExtent() const wxOVERRIDE;
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;
2019-04-05 14:08:53 -04:00
virtual int GetDepth() const wxOVERRIDE;
virtual wxSize GetPPI() const wxOVERRIDE;
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;
#if wxUSE_PALETTE
2019-04-05 14:08:53 -04:00
virtual void SetPalette(const wxPalette& palette) wxOVERRIDE;
#endif // wxUSE_PALETTE
2019-04-05 14:08:53 -04:00
virtual void SetLogicalFunction(wxRasterOperationMode function) wxOVERRIDE;
2019-04-05 14:08:53 -04:00
virtual wxCoord GetCharHeight() const wxOVERRIDE;
virtual wxCoord GetCharWidth() const wxOVERRIDE;
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-04-05 14:08:53 -04:00
virtual void Clear() wxOVERRIDE;
virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
2019-04-05 14:08:53 -04:00
wxCoord width, wxCoord height) wxOVERRIDE;
2019-04-05 14:08:53 -04:00
virtual void DoSetDeviceClippingRegion(const wxRegion& region) wxOVERRIDE;
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
2019-04-05 14:08:53 -04:00
wxFloodFillStyle style = wxFLOOD_SURFACE) wxOVERRIDE;
2019-04-05 14:08:53 -04:00
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const wxOVERRIDE;
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;
virtual void DoDrawArc(wxCoord x1, wxCoord y1,
wxCoord x2, wxCoord y2,
2019-04-05 14:08:53 -04:00
wxCoord xc, wxCoord yc) wxOVERRIDE;
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
2019-04-05 14:08:53 -04:00
double sa, double ea) wxOVERRIDE;
2019-04-05 14:08:53 -04:00
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
wxCoord width, wxCoord height,
2019-04-05 14:08:53 -04:00
double radius) wxOVERRIDE;
virtual void DoDrawEllipse(wxCoord x, wxCoord y,
2019-04-05 14:08:53 -04:00
wxCoord width, wxCoord height) wxOVERRIDE;
2019-04-05 14:08:53 -04:00
virtual void DoCrossHair(wxCoord x, wxCoord y) wxOVERRIDE;
2019-04-05 14:08:53 -04:00
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y) wxOVERRIDE;
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
2019-04-05 14:08:53 -04:00
bool useMask = false) wxOVERRIDE;
2019-04-05 14:08:53 -04:00
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxOVERRIDE;
virtual void DoDrawRotatedText(const wxString& text,
2019-04-05 14:08:53 -04:00
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 = wxDefaultCoord,
2019-04-05 14:08:53 -04:00
wxCoord ysrcMask = wxDefaultCoord) wxOVERRIDE;
virtual void DoDrawLines(int n, const wxPoint points[],
2019-04-05 14:08:53 -04:00
wxCoord xoffset, wxCoord yoffset ) wxOVERRIDE;
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;
private:
2018-12-21 09:55:33 -05:00
wxDECLARE_CLASS(wxPrinterDCImpl);
wxDECLARE_NO_COPY_CLASS(wxPrinterDCImpl);
};
#endif // _WX_QT_DCPRINT_H_