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

#include <QtGraphics.hxx>

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

Public Member Functions

 QtGraphicsBackend (QtFrame *pFrame, QImage *pQImage)
 
 ~QtGraphicsBackend () override
 
void Init () override
 
QImage * getQImage ()
 
void setQImage (QImage *pQImage)
 
void freeResources () override
 
OUString getRenderBackendName () const override
 
void 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
 
bool hasFastDrawTransformedBitmap () const override
 
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 Init ()=0
 
virtual void DeInit ()
 
virtual void freeResources ()=0
 
virtual OUString getRenderBackendName () const =0
 
virtual void setClipRegion (const vcl::Region &)=0
 
virtual sal_uInt16 GetBitCount () const =0
 
virtual tools::Long GetGraphicsWidth () const =0
 
virtual void ResetClipRegion ()=0
 
virtual void SetLineColor ()=0
 
virtual void SetLineColor (Color nColor)=0
 
virtual void SetFillColor ()=0
 
virtual void SetFillColor (Color nColor)=0
 
virtual void SetXORMode (bool bSet, bool bInvertOnly)=0
 
virtual void SetROPLineColor (SalROPColor nROPColor)=0
 
virtual void SetROPFillColor (SalROPColor nROPColor)=0
 
virtual void drawPixel (tools::Long nX, tools::Long nY)=0
 
virtual void drawPixel (tools::Long nX, tools::Long nY, Color nColor)=0
 
virtual void drawLine (tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2)=0
 
virtual void drawRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)=0
 
virtual void drawPolyLine (sal_uInt32 nPoints, const Point *pPtAry)=0
 
virtual void drawPolygon (sal_uInt32 nPoints, const Point *pPtAry)=0
 
virtual void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry)=0
 
virtual bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency)=0
 
virtual 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)=0
 
virtual bool drawPolyLineBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry)=0
 
virtual bool drawPolygonBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry)=0
 
virtual bool drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry)=0
 
virtual void copyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, bool bWindowInvalidate)=0
 
virtual void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics)=0
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap)=0
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap)=0
 
virtual void drawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor)=0
 
virtual std::shared_ptr< SalBitmapgetBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)=0
 
virtual Color getPixel (tools::Long nX, tools::Long nY)=0
 
virtual void invert (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags)=0
 
virtual void invert (sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags)=0
 
virtual bool drawEPS (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize)=0
 
virtual bool blendBitmap (const SalTwoRect &, const SalBitmap &rBitmap)=0
 
virtual bool blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap)=0
 
virtual bool drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap)=0
 
virtual bool drawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha)=0
 
virtual bool hasFastDrawTransformedBitmap () const =0
 
virtual bool drawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency)=0
 
virtual bool drawGradient (const tools::PolyPolygon &rPolygon, const Gradient &rGradient)=0
 
virtual bool implDrawGradient (basegfx::B2DPolyPolygon const &rPolyPolygon, SalGradient const &rGradient)=0
 
virtual bool supportsOperation (OutDevSupportType eType) const =0
 
- Public Member Functions inherited from QtGraphicsBase
 QtGraphicsBase ()
 
void setDevicePixelRatioF (qreal fDPR)
 
qreal devicePixelRatioF () const
 

Private Member Functions

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

Private Attributes

QtFramem_pFrame
 
QImage * m_pQImage
 
QRegion m_aClipRegion
 
QPainterPath m_aClipPath
 
std::optional< Colorm_oLineColor
 
std::optional< Colorm_oFillColor
 
QPainter::CompositionMode m_eCompositionMode
 

Friends

class QtPainter
 

Detailed Description

Definition at line 46 of file qt5/QtGraphics.hxx.

Constructor & Destructor Documentation

◆ QtGraphicsBackend()

QtGraphicsBackend::QtGraphicsBackend ( QtFrame pFrame,
QImage *  pQImage 
)

◆ ~QtGraphicsBackend()

QtGraphicsBackend::~QtGraphicsBackend ( )
override

Member Function Documentation

◆ blendAlphaBitmap()

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

Implements SalGraphicsImpl.

◆ blendBitmap()

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

Implements SalGraphicsImpl.

◆ copyArea()

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

Implements SalGraphicsImpl.

◆ copyBits()

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

Implements SalGraphicsImpl.

◆ drawAlphaBitmap()

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

Implements SalGraphicsImpl.

◆ drawAlphaRect()

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

Implements SalGraphicsImpl.

◆ drawBitmap() [1/2]

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

Implements SalGraphicsImpl.

◆ drawBitmap() [2/2]

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

Implements SalGraphicsImpl.

◆ drawEPS()

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

Implements SalGraphicsImpl.

◆ drawGradient()

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

Implements SalGraphicsImpl.

◆ drawLine()

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

Implements SalGraphicsImpl.

◆ drawMask()

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

Implements SalGraphicsImpl.

◆ drawPixel() [1/2]

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

Implements SalGraphicsImpl.

◆ drawPixel() [2/2]

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

Implements SalGraphicsImpl.

◆ drawPolygon()

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

Implements SalGraphicsImpl.

◆ drawPolygonBezier()

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

Implements SalGraphicsImpl.

◆ drawPolyLine() [1/2]

bool QtGraphicsBackend::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.

◆ drawPolyLine() [2/2]

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

Implements SalGraphicsImpl.

◆ drawPolyLineBezier()

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

Implements SalGraphicsImpl.

◆ drawPolyPolygon() [1/2]

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

Implements SalGraphicsImpl.

◆ drawPolyPolygon() [2/2]

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

Implements SalGraphicsImpl.

◆ drawPolyPolygonBezier()

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

Implements SalGraphicsImpl.

◆ drawRect()

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

Implements SalGraphicsImpl.

◆ drawScaledImage()

void QtGraphicsBackend::drawScaledImage ( const SalTwoRect rPosAry,
const QImage &  rImage 
)
private

◆ drawTransformedBitmap()

bool QtGraphicsBackend::drawTransformedBitmap ( const basegfx::B2DPoint rNull,
const basegfx::B2DPoint rX,
const basegfx::B2DPoint rY,
const SalBitmap rSourceBitmap,
const SalBitmap pAlphaBitmap,
double  fAlpha 
)
overridevirtual

Implements SalGraphicsImpl.

◆ freeResources()

void QtGraphicsBackend::freeResources ( )
inlineoverridevirtual

Implements SalGraphicsImpl.

Definition at line 68 of file qt5/QtGraphics.hxx.

◆ GetBitCount()

sal_uInt16 QtGraphicsBackend::GetBitCount ( ) const
overridevirtual

Implements SalGraphicsImpl.

◆ getBitmap()

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

Implements SalGraphicsImpl.

◆ GetGraphicsWidth()

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

Implements SalGraphicsImpl.

◆ getPixel()

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

Implements SalGraphicsImpl.

◆ getQImage()

QImage * QtGraphicsBackend::getQImage ( )
inline

Definition at line 64 of file qt5/QtGraphics.hxx.

References m_pQImage.

◆ getRenderBackendName()

OUString QtGraphicsBackend::getRenderBackendName ( ) const
inlineoverridevirtual

Implements SalGraphicsImpl.

Definition at line 70 of file qt5/QtGraphics.hxx.

◆ hasFastDrawTransformedBitmap()

bool QtGraphicsBackend::hasFastDrawTransformedBitmap ( ) const
overridevirtual

Implements SalGraphicsImpl.

◆ implDrawGradient()

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

Implements SalGraphicsImpl.

◆ Init()

void QtGraphicsBackend::Init ( )
inlineoverridevirtual

Implements SalGraphicsImpl.

Definition at line 62 of file qt5/QtGraphics.hxx.

◆ invert() [1/2]

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

Implements SalGraphicsImpl.

◆ invert() [2/2]

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

Implements SalGraphicsImpl.

◆ ResetClipRegion()

void QtGraphicsBackend::ResetClipRegion ( )
overridevirtual

Implements SalGraphicsImpl.

◆ setClipRegion()

void QtGraphicsBackend::setClipRegion ( vcl::Region const &  rRegion)
overridevirtual

Implements SalGraphicsImpl.

◆ SetFillColor() [1/2]

void QtGraphicsBackend::SetFillColor ( )
overridevirtual

Implements SalGraphicsImpl.

◆ SetFillColor() [2/2]

void QtGraphicsBackend::SetFillColor ( Color  nColor)
overridevirtual

Implements SalGraphicsImpl.

◆ SetLineColor() [1/2]

void QtGraphicsBackend::SetLineColor ( )
overridevirtual

Implements SalGraphicsImpl.

◆ SetLineColor() [2/2]

void QtGraphicsBackend::SetLineColor ( Color  nColor)
overridevirtual

Implements SalGraphicsImpl.

◆ setQImage()

void QtGraphicsBackend::setQImage ( QImage *  pQImage)
inline

Definition at line 66 of file qt5/QtGraphics.hxx.

References m_pQImage.

◆ SetROPFillColor()

void QtGraphicsBackend::SetROPFillColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphicsImpl.

◆ SetROPLineColor()

void QtGraphicsBackend::SetROPLineColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphicsImpl.

◆ SetXORMode()

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

Implements SalGraphicsImpl.

◆ supportsOperation()

bool QtGraphicsBackend::supportsOperation ( OutDevSupportType  eType) const
overridevirtual

Implements SalGraphicsImpl.

Friends And Related Function Documentation

◆ QtPainter

friend class QtPainter
friend

Definition at line 48 of file qt5/QtGraphics.hxx.

Member Data Documentation

◆ m_aClipPath

QPainterPath QtGraphicsBackend::m_aClipPath
private

Definition at line 53 of file qt5/QtGraphics.hxx.

◆ m_aClipRegion

QRegion QtGraphicsBackend::m_aClipRegion
private

Definition at line 52 of file qt5/QtGraphics.hxx.

◆ m_eCompositionMode

QPainter::CompositionMode QtGraphicsBackend::m_eCompositionMode
private

Definition at line 56 of file qt5/QtGraphics.hxx.

◆ m_oFillColor

std::optional<Color> QtGraphicsBackend::m_oFillColor
private

Definition at line 55 of file qt5/QtGraphics.hxx.

◆ m_oLineColor

std::optional<Color> QtGraphicsBackend::m_oLineColor
private

Definition at line 54 of file qt5/QtGraphics.hxx.

◆ m_pFrame

QtFrame* QtGraphicsBackend::m_pFrame
private

Definition at line 50 of file qt5/QtGraphics.hxx.

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

◆ m_pQImage

QImage* QtGraphicsBackend::m_pQImage
private

Definition at line 51 of file qt5/QtGraphics.hxx.

Referenced by getQImage(), and setQImage().


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