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

#include <salgdi.h>

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

Public Member Functions

 X11SalGraphics ()
 
virtual ~X11SalGraphics () COVERITY_NOEXCEPT_FALSE override
 
void Init (SalFrame *pFrame, Drawable aDrawable, SalX11Screen nXScreen)
 
void Init (X11SalVirtualDevice *pVirtualDevice, cairo_surface_t *pPreExistingTarget=nullptr, SalColormap *pColormap=nullptr, bool bDeleteColormap=false)
 
void Init (X11SkiaSalVirtualDevice *pVirtualDevice)
 
void DeInit ()
 
virtual SalGraphicsImplGetImpl () const override
 
SalGeometryProviderGetGeometryProvider () const
 
void SetDrawable (Drawable d, cairo_surface_t *surface, SalX11Screen nXScreen)
 
XRenderPictFormat * GetXRenderFormat () const
 
void SetXRenderFormat (XRenderPictFormat *pXRenderFormat)
 
const SalX11ScreenGetScreenNumber () const
 
void Flush ()
 
virtual void GetResolution (sal_Int32 &rDPIX, sal_Int32 &rDPIY) override
 
virtual void SetTextColor (Color nColor) override
 
virtual void SetFont (LogicalFontInstance *, int nFallbackLevel) override
 
virtual void GetFontMetric (ImplFontMetricDataRef &, int nFallbackLevel) override
 
virtual FontCharMapRef GetFontCharMap () const override
 
virtual bool GetFontCapabilities (vcl::FontCapabilities &rFontCapabilities) const override
 
virtual void GetDevFontList (vcl::font::PhysicalFontCollection *) override
 
virtual void ClearDevFontCache () override
 
virtual bool AddTempDevFont (vcl::font::PhysicalFontCollection *, const OUString &rFileURL, const OUString &rFontName) override
 
virtual const void * GetEmbedFontData (const vcl::font::PhysicalFontFace *, tools::Long *pDataLen) override
 
virtual void FreeEmbedFontData (const void *pData, tools::Long nDataLen) override
 
virtual std::unique_ptr< GenericSalLayoutGetTextLayout (int nFallbackLevel) override
 
virtual void DrawTextLayout (const GenericSalLayout &) override
 
virtual SystemGraphicsData GetGraphicsData () const override
 
void YieldGraphicsExpose ()
 
cairo_tgetCairoContext ()
 
Drawable GetDrawable () const
 
const SalColormapGetColormap () const
 
const SalDisplayGetDisplay () const
 
const SalVisualGetVisual () const
 
DisplayGetXDisplay () const
 
Pixel GetPixel (Color nColor) const
 
- Public Member Functions inherited from SalGraphicsAutoDelegateToImpl
sal_uInt16 GetBitCount () const override
 
tools::Long GetGraphicsWidth () const override
 
void ResetClipRegion () override
 
bool setClipRegion (const vcl::Region &i_rClip) override
 
void SetLineColor () override
 
void SetLineColor (Color nColor) override
 
void SetFillColor () override
 
void SetFillColor (Color nColor) override
 
void SetROPLineColor (SalROPColor aColor) override
 
void SetROPFillColor (SalROPColor aColor) override
 
void SetXORMode (bool bSet, bool bInvertOnly) 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 nDX, tools::Long nDY) override
 
void drawPolyLine (sal_uInt32 nPoints, const Point *pPtAry) override
 
void drawPolygon (sal_uInt32 nPoints, const Point *pPtAry) override
 
void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry) override
 
bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &rPolyPolygon, double fTransparency) override
 
bool drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &rPolygon, double fTransparency, double fLineWidth, const std::vector< double > *pStroke, basegfx::B2DLineJoin eJoin, css::drawing::LineCap eLineCap, double fMiterMinimumAngle, bool bPixelSnapHairline) override
 
bool drawPolyLineBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry) override
 
bool drawPolygonBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry) override
 
bool drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry) 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
 
void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) 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 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
 
bool blendBitmap (const SalTwoRect &rPosAry, const SalBitmap &rBitmap) override
 Blend the bitmap with the current buffer. More...
 
bool blendAlphaBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSourceBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap) override
 Draw the bitmap by blending using the mask and alpha channel. More...
 
bool drawAlphaBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap) override
 Render bitmap with alpha channel. More...
 
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
 Returns true if the drawTransformedBitmap() call is fast, and so it should be used directly without trying to optimize some calls e.g. More...
 
bool drawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency) override
 Render solid rectangle with given transparency. More...
 
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
 
OUString getRenderBackendName () const override
 
- Public Member Functions inherited from SalGraphics
 SalGraphics ()
 
 ~SalGraphics () COVERITY_NOEXCEPT_FALSE override
 
virtual SalGraphicsImplGetImpl () const =0
 
void setAntiAlias (bool bNew)
 
bool getAntiAlias () const
 
virtual void GetResolution (sal_Int32 &rDPIX, sal_Int32 &rDPIY)=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 SetTextColor (Color nColor)=0
 
virtual void SetFont (LogicalFontInstance *, int nFallbackLevel)=0
 
void ReleaseFonts ()
 
virtual void GetFontMetric (ImplFontMetricDataRef &, int nFallbackLevel)=0
 
virtual FontCharMapRef GetFontCharMap () const =0
 
virtual bool GetFontCapabilities (vcl::FontCapabilities &rFontCapabilities) const =0
 
virtual void GetDevFontList (vcl::font::PhysicalFontCollection *)=0
 
virtual void ClearDevFontCache ()=0
 
virtual bool AddTempDevFont (vcl::font::PhysicalFontCollection *, const OUString &rFileURL, const OUString &rFontName)=0
 
virtual const void * GetEmbedFontData (const vcl::font::PhysicalFontFace *pFont, tools::Long *pDataLen)=0
 
virtual void FreeEmbedFontData (const void *pData, tools::Long nDataLen)=0
 
virtual std::unique_ptr< GenericSalLayoutGetTextLayout (int nFallbackLevel)=0
 
virtual void DrawTextLayout (const GenericSalLayout &)=0
 
virtual bool supportsOperation (OutDevSupportType) const =0
 
SalLayoutFlags GetLayout () const
 
void SetLayout (SalLayoutFlags aLayout)
 
void mirror (tools::Long &nX, const OutputDevice &rOutDev) const
 
tools::Long mirror2 (tools::Long nX, const OutputDevice &rOutDev) const
 
void mirror (tools::Long &nX, tools::Long nWidth, const OutputDevice &rOutDev, bool bBack=false) const
 
bool mirror (sal_uInt32 nPoints, const Point *pPtAry, Point *pPtAry2, const OutputDevice &rOutDev) const
 
void mirror (tools::Rectangle &rRect, const OutputDevice &, bool bBack=false) const
 
void mirror (vcl::Region &rRgn, const OutputDevice &rOutDev) const
 
void mirror (ImplControlValue &, const OutputDevice &) const
 
basegfx::B2DPolyPolygon mirror (const basegfx::B2DPolyPolygon &i_rPoly, const OutputDevice &rOutDev) const
 
const basegfx::B2DHomMatrixgetMirror (const OutputDevice &rOutDev) const
 
bool SetClipRegion (const vcl::Region &, const OutputDevice &rOutDev)
 
void DrawPixel (tools::Long nX, tools::Long nY, const OutputDevice &rOutDev)
 
void DrawPixel (tools::Long nX, tools::Long nY, Color nColor, const OutputDevice &rOutDev)
 
void DrawLine (tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2, const OutputDevice &rOutDev)
 
void DrawRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const OutputDevice &rOutDev)
 
void DrawPolyLine (sal_uInt32 nPoints, Point const *pPtAry, const OutputDevice &rOutDev)
 
void DrawPolygon (sal_uInt32 nPoints, const Point *pPtAry, const OutputDevice &rOutDev)
 
void DrawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry, const OutputDevice &rOutDev)
 
bool DrawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &i_rPolyPolygon, double i_fTransparency, const OutputDevice &i_rOutDev)
 
bool DrawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &i_rPolygon, double i_fTransparency, double i_fLineWidth, const std::vector< double > *i_pStroke, basegfx::B2DLineJoin i_eLineJoin, css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline, const OutputDevice &i_rOutDev)
 
bool DrawPolyLineBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry, const OutputDevice &rOutDev)
 
bool DrawPolygonBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry, const OutputDevice &rOutDev)
 
bool DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry, const OutputDevice &rOutDev)
 
bool DrawGradient (const tools::PolyPolygon &rPolyPoly, const Gradient &rGradient, const OutputDevice &rOutDev)
 
void CopyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, const OutputDevice &rOutDev)
 
void CopyBits (const SalTwoRect &rPosAry, const OutputDevice &rOutDev)
 
void CopyBits (const SalTwoRect &rPosAry, SalGraphics &rSrcGraphics, const OutputDevice &rOutDev, const OutputDevice &rSrcOutDev)
 
void DrawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const OutputDevice &rOutDev)
 
void DrawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rTransparentBitmap, const OutputDevice &rOutDev)
 
void DrawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor, const OutputDevice &rOutDev)
 
std::shared_ptr< SalBitmapGetBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const OutputDevice &rOutDev)
 
Color GetPixel (tools::Long nX, tools::Long nY, const OutputDevice &rOutDev)
 
void Invert (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags, const OutputDevice &rOutDev)
 
void Invert (sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags, const OutputDevice &rOutDev)
 
bool DrawEPS (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize, const OutputDevice &rOutDev)
 
bool IsNativeControlSupported (ControlType, ControlPart)
 
bool HitTestNativeScrollbar (ControlPart nPart, const tools::Rectangle &rControlRegion, const Point &aPos, bool &rIsInside, const OutputDevice &rOutDev)
 
bool DrawNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, const OutputDevice &rOutDev, const Color &rBackgroundColor=COL_AUTO)
 
bool GetNativeControlRegion (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion, const OutputDevice &rOutDev)
 
bool UpdateSettings (AllSettings &)
 
bool BlendBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const OutputDevice &rOutDev)
 
bool BlendAlphaBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalSrcBitmap, const SalBitmap &rSalMaskBitmap, const SalBitmap &rSalAlphaBitmap, const OutputDevice &rOutDev)
 
bool DrawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap, const OutputDevice &rOutDev)
 
bool DrawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha, const OutputDevice &rOutDev)
 
bool HasFastDrawTransformedBitmap () const
 
bool DrawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency, const OutputDevice &rOutDev)
 
virtual OUString getRenderBackendName () const
 
virtual SystemGraphicsData GetGraphicsData () const =0
 
virtual bool ShouldDownscaleIconsAtSurface (double *pScaleOut) const
 

Static Public Member Functions

static void releaseCairoContext (cairo_t *cr)
 

Private Member Functions

void SetClipRegion (GC pGC, Region pXReg=nullptr) const
 
bool GetDitherPixmap (Color nColor)
 
void freeResources ()
 
Color GetPixel (tools::Long nX, tools::Long nY, const OutputDevice &rOutDev)
 

Private Attributes

SalFramem_pFrame
 
SalVirtualDevicem_pVDev
 
std::unique_ptr< SalColormapm_pDeleteColormap
 
SalX11Screen m_nXScreen
 
XRenderPictFormat * m_pXRenderFormat
 
XID m_aXRenderPicture
 
Region mpClipRegion
 
Pixmap hBrush_
 
bool bWindow_: 1
 
bool bVirDev_: 1
 
std::unique_ptr< SalGraphicsImplmxImpl
 
std::unique_ptr< TextRenderImplmxTextRenderImpl
 
X11Common maX11Common
 

Friends

class X11SalGraphicsImpl
 
class X11CairoTextRender
 

Additional Inherited Members

- Protected Member Functions inherited from SalGraphics
virtual bool setClipRegion (const vcl::Region &)=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 bool drawGradient (const tools::PolyPolygon &rPolyPoly, const Gradient &rGradient)=0
 
virtual bool implDrawGradient (basegfx::B2DPolyPolygon const &, SalGradient const &)
 
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
 Blend the bitmap with the current buffer. More...
 
virtual bool blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap)=0
 Draw the bitmap by blending using the mask and alpha channel. More...
 
virtual bool drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap)=0
 Render bitmap with alpha channel. More...
 
virtual bool drawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha)=0
 draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system More...
 
virtual bool hasFastDrawTransformedBitmap () const =0
 Returns true if the drawTransformedBitmap() call is fast, and so it should be used directly without trying to optimize some calls e.g. More...
 
virtual bool drawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency)=0
 Render solid rectangle with given transparency. More...
 
tools::Long GetDeviceWidth (const OutputDevice &rOutDev) const
 
virtual void handleDamage (const tools::Rectangle &rDamagedRegion)
 Handle damage done by drawing with a widget draw override. More...
 
bool initWidgetDrawBackends (bool bForce=false)
 
vcl::WidgetDrawInterfaceforWidget ()
 
- Protected Member Functions inherited from vcl::WidgetDrawInterface
virtual ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE
 
virtual bool isNativeControlSupported (ControlType eType, ControlPart ePart)
 Query the platform layer for native control support. More...
 
virtual bool hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside)
 Query if a position is inside the native widget part. More...
 
virtual bool drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions, const Color &rBackgroundColor)
 Draw the requested control. More...
 
virtual bool getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion)
 Get the native control regions for the control part. More...
 
virtual bool updateSettings (AllSettings &rSettings)
 
- Protected Attributes inherited from SalGraphics
bool m_bAntiAlias: 1
 flags which hold the SetAntialiasing() value from OutputDevice More...
 
std::unique_ptr< vcl::WidgetDrawInterfacem_pWidgetDraw
 

Detailed Description

Definition at line 88 of file unx/salgdi.h.

Constructor & Destructor Documentation

◆ X11SalGraphics()

X11SalGraphics::X11SalGraphics ( )

◆ ~X11SalGraphics()

virtual X11SalGraphics::~X11SalGraphics ( )
overridevirtual

Member Function Documentation

◆ AddTempDevFont()

virtual bool X11SalGraphics::AddTempDevFont ( vcl::font::PhysicalFontCollection ,
const OUString &  rFileURL,
const OUString &  rFontName 
)
overridevirtual

Implements SalGraphics.

◆ ClearDevFontCache()

virtual void X11SalGraphics::ClearDevFontCache ( )
overridevirtual

Implements SalGraphics.

◆ DeInit()

void X11SalGraphics::DeInit ( )

◆ DrawTextLayout()

virtual void X11SalGraphics::DrawTextLayout ( const GenericSalLayout )
overridevirtual

Implements SalGraphics.

◆ Flush()

void X11SalGraphics::Flush ( )

◆ FreeEmbedFontData()

virtual void X11SalGraphics::FreeEmbedFontData ( const void *  pData,
tools::Long  nDataLen 
)
overridevirtual

Implements SalGraphics.

◆ freeResources()

void X11SalGraphics::freeResources ( )
private

◆ getCairoContext()

cairo_t * X11SalGraphics::getCairoContext ( )

◆ GetColormap()

const SalColormap & X11SalGraphics::GetColormap ( ) const
inline

Definition at line 184 of file unx/salgdi.h.

References X11Common::GetColormap(), and maX11Common.

◆ GetDevFontList()

virtual void X11SalGraphics::GetDevFontList ( vcl::font::PhysicalFontCollection )
overridevirtual

Implements SalGraphics.

◆ GetDisplay()

const SalDisplay * X11SalGraphics::GetDisplay ( ) const
inline

Definition at line 185 of file unx/salgdi.h.

References X11Common::GetDisplay(), and maX11Common.

◆ GetDitherPixmap()

bool X11SalGraphics::GetDitherPixmap ( Color  nColor)
private

◆ GetDrawable()

Drawable X11SalGraphics::GetDrawable ( ) const
inline

Definition at line 183 of file unx/salgdi.h.

References X11Common::GetDrawable(), and maX11Common.

◆ GetEmbedFontData()

virtual const void * X11SalGraphics::GetEmbedFontData ( const vcl::font::PhysicalFontFace ,
tools::Long pDataLen 
)
overridevirtual

Implements SalGraphics.

◆ GetFontCapabilities()

virtual bool X11SalGraphics::GetFontCapabilities ( vcl::FontCapabilities rFontCapabilities) const
overridevirtual

Implements SalGraphics.

◆ GetFontCharMap()

virtual FontCharMapRef X11SalGraphics::GetFontCharMap ( ) const
overridevirtual

Implements SalGraphics.

◆ GetFontMetric()

virtual void X11SalGraphics::GetFontMetric ( ImplFontMetricDataRef ,
int  nFallbackLevel 
)
overridevirtual

Implements SalGraphics.

◆ GetGeometryProvider()

SalGeometryProvider * X11SalGraphics::GetGeometryProvider ( ) const

◆ GetGraphicsData()

virtual SystemGraphicsData X11SalGraphics::GetGraphicsData ( ) const
overridevirtual

Implements SalGraphics.

◆ GetImpl()

virtual SalGraphicsImpl * X11SalGraphics::GetImpl ( ) const
overridevirtual

Implements SalGraphics.

◆ GetPixel() [1/2]

Pixel X11SalGraphics::GetPixel ( Color  nColor) const
inline

Definition at line 188 of file unx/salgdi.h.

References X11Common::GetPixel(), and maX11Common.

◆ GetPixel() [2/2]

Color SalGraphics::GetPixel ( tools::Long  nX,
tools::Long  nY,
const OutputDevice rOutDev 
)
private

Definition at line 301 of file salgdilayout.cxx.

◆ GetResolution()

virtual void X11SalGraphics::GetResolution ( sal_Int32 &  rDPIX,
sal_Int32 &  rDPIY 
)
overridevirtual

Implements SalGraphics.

◆ GetScreenNumber()

const SalX11Screen & X11SalGraphics::GetScreenNumber ( ) const
inline

Definition at line 109 of file unx/salgdi.h.

References m_nXScreen.

◆ GetTextLayout()

virtual std::unique_ptr< GenericSalLayout > X11SalGraphics::GetTextLayout ( int  nFallbackLevel)
overridevirtual

Implements SalGraphics.

◆ GetVisual()

const SalVisual & X11SalGraphics::GetVisual ( ) const
inline

Definition at line 186 of file unx/salgdi.h.

References X11Common::GetVisual(), and maX11Common.

◆ GetXDisplay()

Display * X11SalGraphics::GetXDisplay ( ) const
inline

Definition at line 187 of file unx/salgdi.h.

References X11Common::GetXDisplay(), and maX11Common.

◆ GetXRenderFormat()

XRenderPictFormat * X11SalGraphics::GetXRenderFormat ( ) const

◆ Init() [1/3]

void X11SalGraphics::Init ( SalFrame pFrame,
Drawable  aDrawable,
SalX11Screen  nXScreen 
)

◆ Init() [2/3]

void X11SalGraphics::Init ( X11SalVirtualDevice pVirtualDevice,
cairo_surface_t pPreExistingTarget = nullptr,
SalColormap pColormap = nullptr,
bool  bDeleteColormap = false 
)

◆ Init() [3/3]

void X11SalGraphics::Init ( X11SkiaSalVirtualDevice pVirtualDevice)

◆ releaseCairoContext()

static void X11SalGraphics::releaseCairoContext ( cairo_t cr)
static

◆ SetClipRegion()

void X11SalGraphics::SetClipRegion ( GC  pGC,
Region  pXReg = nullptr 
) const
private

◆ SetDrawable()

void X11SalGraphics::SetDrawable ( Drawable  d,
cairo_surface_t surface,
SalX11Screen  nXScreen 
)

◆ SetFont()

virtual void X11SalGraphics::SetFont ( LogicalFontInstance ,
int  nFallbackLevel 
)
overridevirtual

Implements SalGraphics.

◆ SetTextColor()

virtual void X11SalGraphics::SetTextColor ( Color  nColor)
overridevirtual

Implements SalGraphics.

◆ SetXRenderFormat()

void X11SalGraphics::SetXRenderFormat ( XRenderPictFormat *  pXRenderFormat)
inline

Definition at line 107 of file unx/salgdi.h.

References m_pXRenderFormat.

◆ YieldGraphicsExpose()

void X11SalGraphics::YieldGraphicsExpose ( )

Friends And Related Function Documentation

◆ X11CairoTextRender

friend class X11CairoTextRender
friend

Definition at line 91 of file unx/salgdi.h.

◆ X11SalGraphicsImpl

friend class X11SalGraphicsImpl
friend

Definition at line 90 of file unx/salgdi.h.

Member Data Documentation

◆ bVirDev_

bool X11SalGraphics::bVirDev_
private

Definition at line 176 of file unx/salgdi.h.

◆ bWindow_

bool X11SalGraphics::bWindow_
private

Definition at line 175 of file unx/salgdi.h.

◆ hBrush_

Pixmap X11SalGraphics::hBrush_
private

Definition at line 173 of file unx/salgdi.h.

◆ m_aXRenderPicture

XID X11SalGraphics::m_aXRenderPicture
private

Definition at line 170 of file unx/salgdi.h.

◆ m_nXScreen

SalX11Screen X11SalGraphics::m_nXScreen
private

Definition at line 168 of file unx/salgdi.h.

Referenced by GetScreenNumber().

◆ m_pDeleteColormap

std::unique_ptr<SalColormap> X11SalGraphics::m_pDeleteColormap
private

Definition at line 166 of file unx/salgdi.h.

◆ m_pFrame

SalFrame* X11SalGraphics::m_pFrame
private

Definition at line 162 of file unx/salgdi.h.

◆ m_pVDev

SalVirtualDevice* X11SalGraphics::m_pVDev
private

Definition at line 163 of file unx/salgdi.h.

◆ m_pXRenderFormat

XRenderPictFormat* X11SalGraphics::m_pXRenderFormat
mutableprivate

Definition at line 169 of file unx/salgdi.h.

Referenced by SetXRenderFormat().

◆ maX11Common

X11Common X11SalGraphics::maX11Common
private

Definition at line 180 of file unx/salgdi.h.

Referenced by GetColormap(), GetDisplay(), GetDrawable(), GetPixel(), GetVisual(), and GetXDisplay().

◆ mpClipRegion

Region X11SalGraphics::mpClipRegion
private

Definition at line 172 of file unx/salgdi.h.

◆ mxImpl

std::unique_ptr<SalGraphicsImpl> X11SalGraphics::mxImpl
private

Definition at line 178 of file unx/salgdi.h.

◆ mxTextRenderImpl

std::unique_ptr<TextRenderImpl> X11SalGraphics::mxTextRenderImpl
private

Definition at line 179 of file unx/salgdi.h.


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