LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Qt5GraphicsBackend Class Referencefinal

#include <Qt5Graphics.hxx>

Inheritance diagram for Qt5GraphicsBackend:
[legend]
Collaboration diagram for Qt5GraphicsBackend:
[legend]

Public Member Functions

 Qt5GraphicsBackend (Qt5Frame *pFrame, QImage *pQImage)
 
 ~Qt5GraphicsBackend () override
 
void Init () override
 
QImage * getQImage ()
 
void setQImage (QImage *pQImage)
 
void freeResources () override
 
OUString getRenderBackendName () const override
 
bool setClipRegion (vcl::Region const &rRegion) override
 
void ResetClipRegion () override
 
sal_uInt16 GetBitCount () const override
 
tools::Long GetGraphicsWidth () const override
 
void SetLineColor () override
 
void SetLineColor (Color nColor) override
 
void SetFillColor () override
 
void SetFillColor (Color nColor) override
 
void SetXORMode (bool bSet, bool bInvertOnly) override
 
void SetROPLineColor (SalROPColor nROPColor) override
 
void SetROPFillColor (SalROPColor nROPColor) override
 
void drawPixel (tools::Long nX, tools::Long nY) override
 
void drawPixel (tools::Long nX, tools::Long nY, Color nColor) override
 
void drawLine (tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2) override
 
void drawRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) override
 
void drawPolyLine (sal_uInt32 nPoints, const Point *pPointArray) override
 
void drawPolygon (sal_uInt32 nPoints, const Point *pPointArray) override
 
void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPointArray) override
 
bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency) override
 
bool drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &, double fTransparency, double fLineWidth, const std::vector< double > *pStroke, basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle, bool bPixelSnapHairline) override
 
bool drawPolyLineBezier (sal_uInt32 nPoints, const Point *pPointArray, const PolyFlags *pFlagArray) override
 
bool drawPolygonBezier (sal_uInt32 nPoints, const Point *pPointArray, const PolyFlags *pFlagArray) override
 
bool drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPointArray, const PolyFlags *const *pFlagArray) override
 
void copyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, bool bWindowInvalidate) override
 
void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) override
 
void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap) override
 
void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap) override
 
void drawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor) override
 
std::shared_ptr< SalBitmapgetBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) override
 
Color getPixel (tools::Long nX, tools::Long nY) override
 
void invert (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags) override
 
void invert (sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags) override
 
bool drawEPS (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize) override
 
bool blendBitmap (const SalTwoRect &, const SalBitmap &rBitmap) override
 
bool blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap) override
 
bool drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap) override
 
bool drawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha) override
 draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system More...
 
bool hasFastDrawTransformedBitmap () const override
 Used e.g. More...
 
bool drawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency) override
 
bool drawGradient (const tools::PolyPolygon &rPolygon, const Gradient &rGradient) override
 
bool implDrawGradient (basegfx::B2DPolyPolygon const &rPolyPolygon, SalGradient const &rGradient) override
 
bool supportsOperation (OutDevSupportType eType) const override
 
- Public Member Functions inherited from SalGraphicsImpl
void setAntiAlias (bool bNew)
 
bool getAntiAlias () const
 
 SalGraphicsImpl ()
 
virtual ~SalGraphicsImpl ()
 
virtual void DeInit ()
 
virtual bool setClipRegion (const vcl::Region &)=0
 
- Public Member Functions inherited from Qt5GraphicsBase
 Qt5GraphicsBase ()
 
void setDevicePixelRatioF (qreal fDPR)
 
qreal devicePixelRatioF () const
 

Private Member Functions

void drawScaledImage (const SalTwoRect &rPosAry, const QImage &rImage)
 

Private Attributes

Qt5Framem_pFrame
 
QImage * m_pQImage
 
QRegion m_aClipRegion
 
QPainterPath m_aClipPath
 
Color m_aLineColor
 
Color m_aFillColor
 
QPainter::CompositionMode m_eCompositionMode
 

Friends

class Qt5Painter
 

Detailed Description

Definition at line 40 of file Qt5Graphics.hxx.

Constructor & Destructor Documentation

Qt5GraphicsBackend::Qt5GraphicsBackend ( Qt5Frame pFrame,
QImage *  pQImage 
)
Qt5GraphicsBackend::~Qt5GraphicsBackend ( )
override

Member Function Documentation

bool Qt5GraphicsBackend::blendAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSrcBitmap,
const SalBitmap rMaskBitmap,
const SalBitmap rAlphaBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::blendBitmap ( const SalTwoRect ,
const SalBitmap rBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::copyArea ( tools::Long  nDestX,
tools::Long  nDestY,
tools::Long  nSrcX,
tools::Long  nSrcY,
tools::Long  nSrcWidth,
tools::Long  nSrcHeight,
bool  bWindowInvalidate 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::copyBits ( const SalTwoRect rPosAry,
SalGraphics pSrcGraphics 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSourceBitmap,
const SalBitmap rAlphaBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawAlphaRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
sal_uInt8  nTransparency 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
const SalBitmap rMaskBitmap 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawEPS ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
void pPtr,
sal_uInt32  nSize 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawGradient ( const tools::PolyPolygon rPolygon,
const Gradient rGradient 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawLine ( tools::Long  nX1,
tools::Long  nY1,
tools::Long  nX2,
tools::Long  nY2 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawMask ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
Color  nMaskColor 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawPixel ( tools::Long  nX,
tools::Long  nY 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawPixel ( tools::Long  nX,
tools::Long  nY,
Color  nColor 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawPolygon ( sal_uInt32  nPoints,
const Point pPointArray 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawPolygonBezier ( sal_uInt32  nPoints,
const Point pPointArray,
const PolyFlags pFlagArray 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawPolyLine ( sal_uInt32  nPoints,
const Point pPointArray 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawPolyLine ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolygon ,
double  fTransparency,
double  fLineWidth,
const std::vector< double > *  pStroke,
basegfx::B2DLineJoin  ,
css::drawing::LineCap  ,
double  fMiterMinimumAngle,
bool  bPixelSnapHairline 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawPolyLineBezier ( sal_uInt32  nPoints,
const Point pPointArray,
const PolyFlags pFlagArray 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawPolyPolygon ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point **  pPointArray 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawPolyPolygon ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolyPolygon ,
double  fTransparency 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::drawPolyPolygonBezier ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const Point *const *  pPointArray,
const PolyFlags *const *  pFlagArray 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawRect ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::drawScaledImage ( const SalTwoRect rPosAry,
const QImage &  rImage 
)
private
bool Qt5GraphicsBackend::drawTransformedBitmap ( const basegfx::B2DPoint rNull,
const basegfx::B2DPoint rX,
const basegfx::B2DPoint rY,
const SalBitmap rSourceBitmap,
const SalBitmap pAlphaBitmap,
double  fAlpha 
)
overridevirtual

draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::freeResources ( )
inlineoverridevirtual

Implements SalGraphicsImpl.

Definition at line 62 of file Qt5Graphics.hxx.

sal_uInt16 Qt5GraphicsBackend::GetBitCount ( ) const
overridevirtual

Implements SalGraphicsImpl.

std::shared_ptr<SalBitmap> Qt5GraphicsBackend::getBitmap ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
overridevirtual

Implements SalGraphicsImpl.

tools::Long Qt5GraphicsBackend::GetGraphicsWidth ( ) const
overridevirtual

Implements SalGraphicsImpl.

Color Qt5GraphicsBackend::getPixel ( tools::Long  nX,
tools::Long  nY 
)
overridevirtual

Implements SalGraphicsImpl.

QImage* Qt5GraphicsBackend::getQImage ( )
inline

Definition at line 58 of file Qt5Graphics.hxx.

References m_pQImage.

OUString Qt5GraphicsBackend::getRenderBackendName ( ) const
inlineoverridevirtual

Implements SalGraphicsImpl.

Definition at line 64 of file Qt5Graphics.hxx.

bool Qt5GraphicsBackend::hasFastDrawTransformedBitmap ( ) const
overridevirtual

Used e.g.

by canvas to know whether to cache the drawing. See also tdf#138068.

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::implDrawGradient ( basegfx::B2DPolyPolygon const &  rPolyPolygon,
SalGradient const &  rGradient 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::Init ( )
inlineoverridevirtual

Implements SalGraphicsImpl.

Definition at line 56 of file Qt5Graphics.hxx.

void Qt5GraphicsBackend::invert ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
SalInvert  nFlags 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::invert ( sal_uInt32  nPoints,
const Point pPtAry,
SalInvert  nFlags 
)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::ResetClipRegion ( )
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::setClipRegion ( vcl::Region const &  rRegion)
override
void Qt5GraphicsBackend::SetFillColor ( )
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::SetFillColor ( Color  nColor)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::SetLineColor ( )
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::SetLineColor ( Color  nColor)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::setQImage ( QImage *  pQImage)
inline

Definition at line 60 of file Qt5Graphics.hxx.

void Qt5GraphicsBackend::SetROPFillColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::SetROPLineColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphicsImpl.

void Qt5GraphicsBackend::SetXORMode ( bool  bSet,
bool  bInvertOnly 
)
overridevirtual

Implements SalGraphicsImpl.

bool Qt5GraphicsBackend::supportsOperation ( OutDevSupportType  eType) const
overridevirtual

Implements SalGraphicsImpl.

Friends And Related Function Documentation

friend class Qt5Painter
friend

Definition at line 42 of file Qt5Graphics.hxx.

Member Data Documentation

QPainterPath Qt5GraphicsBackend::m_aClipPath
private

Definition at line 47 of file Qt5Graphics.hxx.

QRegion Qt5GraphicsBackend::m_aClipRegion
private

Definition at line 46 of file Qt5Graphics.hxx.

Color Qt5GraphicsBackend::m_aFillColor
private

Definition at line 49 of file Qt5Graphics.hxx.

Color Qt5GraphicsBackend::m_aLineColor
private

Definition at line 48 of file Qt5Graphics.hxx.

QPainter::CompositionMode Qt5GraphicsBackend::m_eCompositionMode
private

Definition at line 50 of file Qt5Graphics.hxx.

Qt5Frame* Qt5GraphicsBackend::m_pFrame
private

Definition at line 44 of file Qt5Graphics.hxx.

Referenced by Qt5Painter::update(), and Qt5Painter::~Qt5Painter().

QImage* Qt5GraphicsBackend::m_pQImage
private

Definition at line 45 of file Qt5Graphics.hxx.

Referenced by getQImage().


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