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

#include <salgdi.h>

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

Public Member Functions

 X11SalGraphics ()
 
virtual ~X11SalGraphics () override
 
void Init (SalFrame *pFrame, Drawable aDrawable, SalX11Screen nXScreen)
 
void Init (X11SalVirtualDevice *pVirtualDevice, SalColormap *pColormap=nullptr, bool bDeleteColormap=false)
 
void Init (X11OpenGLSalVirtualDevice *pVirtualDevice)
 
void DeInit ()
 
virtual SalGraphicsImplGetImpl () const override
 
const SalDisplayGetDisplay () const
 
DisplayGetXDisplay () const
 
const SalVisualGetVisual () const
 
SalGeometryProviderGetGeometryProvider () const
 
Drawable GetDrawable () const
 
void SetDrawable (Drawable d, SalX11Screen nXScreen)
 
XRenderPictFormat * GetXRenderFormat () const
 
void SetXRenderFormat (XRenderPictFormat *pXRenderFormat)
 
const SalColormapGetColormap () const
 
Pixel GetPixel (Color nColor) const
 
const SalX11ScreenGetScreenNumber () const
 
virtual void GetResolution (sal_Int32 &rDPIX, sal_Int32 &rDPIY) override
 
virtual sal_uInt16 GetBitCount () const override
 
virtual long GetGraphicsWidth () const override
 
virtual void ResetClipRegion () override
 
virtual bool setClipRegion (const vcl::Region &) override
 
virtual void SetLineColor () override
 
virtual void SetLineColor (Color nColor) override
 
virtual void SetFillColor () override
 
virtual void SetFillColor (Color nColor) override
 
virtual void SetXORMode (bool bSet, bool) override
 
virtual void SetROPLineColor (SalROPColor nROPColor) override
 
virtual void SetROPFillColor (SalROPColor nROPColor) override
 
virtual void SetTextColor (Color nColor) override
 
virtual void SetFont (LogicalFontInstance *, int nFallbackLevel) override
 
virtual void GetFontMetric (ImplFontMetricDataRef &, int nFallbackLevel) override
 
virtual const FontCharMapRef GetFontCharMap () const override
 
virtual bool GetFontCapabilities (vcl::FontCapabilities &rFontCapabilities) const override
 
virtual void GetDevFontList (PhysicalFontCollection *) override
 
virtual void ClearDevFontCache () override
 
virtual bool AddTempDevFont (PhysicalFontCollection *, const OUString &rFileURL, const OUString &rFontName) override
 
virtual bool CreateFontSubset (const OUString &rToFile, const PhysicalFontFace *, const sal_GlyphId *pGlyphIDs, const sal_uInt8 *pEncoding, sal_Int32 *pWidths, int nGlyphs, FontSubsetInfo &rInfo) override
 
virtual const voidGetEmbedFontData (const PhysicalFontFace *, long *pDataLen) override
 
virtual void FreeEmbedFontData (const void *pData, long nDataLen) override
 
virtual void GetGlyphWidths (const PhysicalFontFace *, bool bVertical, std::vector< sal_Int32 > &rWidths, Ucs2UIntMap &rUnicodeEnc) override
 
virtual std::unique_ptr< GenericSalLayoutGetTextLayout (int nFallbackLevel) override
 
virtual void DrawTextLayout (const GenericSalLayout &) override
 
virtual bool supportsOperation (OutDevSupportType) const override
 
virtual void drawPixel (long nX, long nY) override
 
virtual void drawPixel (long nX, long nY, Color nColor) override
 
virtual void drawLine (long nX1, long nY1, long nX2, long nY2) override
 
virtual void drawRect (long nX, long nY, long nWidth, long nHeight) override
 
virtual void drawPolyLine (sal_uInt32 nPoints, const SalPoint *pPtAry) override
 
virtual void drawPolygon (sal_uInt32 nPoints, const SalPoint *pPtAry) override
 
virtual void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, PCONSTSALPOINT *pPtAry) override
 
virtual bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency) override
 
virtual bool drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &, double fTransparency, const basegfx::B2DVector &rLineWidth, basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle, bool bPixelSnapHairline) override
 
virtual bool drawGradient (const tools::PolyPolygon &, const Gradient &) override
 
virtual bool drawPolyLineBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry) override
 
virtual bool drawPolygonBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry) override
 
virtual bool drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const SalPoint *const *pPtAry, const PolyFlags *const *pFlgAry) override
 
virtual void copyArea (long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth, long nSrcHeight, bool bWindowInvalidate) override
 
virtual void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) override
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap) override
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap) override
 
virtual void drawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor) override
 
virtual std::shared_ptr< SalBitmapgetBitmap (long nX, long nY, long nWidth, long nHeight) override
 
virtual Color getPixel (long nX, long nY) override
 
virtual void invert (long nX, long nY, long nWidth, long nHeight, SalInvert nFlags) override
 
virtual void invert (sal_uInt32 nPoints, const SalPoint *pPtAry, SalInvert nFlags) override
 
virtual bool drawEPS (long nX, long nY, long nWidth, long nHeight, void *pPtr, sal_uInt32 nSize) override
 
virtual bool blendBitmap (const SalTwoRect &, const SalBitmap &rBitmap) override
 Blend the bitmap with the current buffer. More...
 
virtual bool blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap) override
 Draw the bitmap by blending using the mask and alpha channel. More...
 
virtual bool drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap) override
 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) override
 draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system More...
 
virtual bool drawAlphaRect (long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency) override
 Render solid rectangle with given transparency. More...
 
virtual SystemGraphicsData GetGraphicsData () const override
 
bool TryRenderCachedNativeControl (ControlCacheKey &aControlCacheKey, int nX, int nY)
 
bool RenderAndCacheNativeControl (X11Pixmap *pPixmap, X11Pixmap *pMask, int nX, int nY, ControlCacheKey &aControlCacheKey)
 
void FillPixmapFromScreen (X11Pixmap *pPixmap, int nX, int nY)
 
bool RenderPixmapToScreen (X11Pixmap *pPixmap, X11Pixmap *pMask, int nX, int nY)
 
void YieldGraphicsExpose ()
 
cairo_tgetCairoContext ()
 
- Public Member Functions inherited from SalGraphics
 SalGraphics ()
 
 ~SalGraphics () override
 
rtl::Reference< OpenGLContextGetOpenGLContext () const
 Check that our mpImpl is OpenGL and return the context, otherwise NULL. More...
 
void setAntiAliasB2DDraw (bool bNew)
 
bool getAntiAliasB2DDraw () const
 
void ReleaseFonts ()
 
SalLayoutFlags GetLayout () const
 
void SetLayout (SalLayoutFlags aLayout)
 
void mirror (long &nX, const OutputDevice *pOutDev) const
 
long mirror2 (long nX, const OutputDevice *pOutDev) const
 
void mirror (long &nX, long nWidth, const OutputDevice *pOutDev, bool bBack=false) const
 
bool mirror (sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev) const
 
void mirror (tools::Rectangle &rRect, const OutputDevice *, bool bBack=false) const
 
void mirror (vcl::Region &rRgn, const OutputDevice *pOutDev) const
 
void mirror (ImplControlValue &, const OutputDevice *) const
 
basegfx::B2DPoint mirror (const basegfx::B2DPoint &i_rPoint, const OutputDevice *pOutDev) const
 
basegfx::B2DPolyPolygon mirror (const basegfx::B2DPolyPolygon &i_rPoly, const OutputDevice *pOutDev) const
 
const basegfx::B2DHomMatrixgetMirror (const OutputDevice *pOutDev) const
 
basegfx::B2DHomMatrix mirror (const basegfx::B2DHomMatrix &i_rMatrix, const OutputDevice *pOutDev) const
 
bool SetClipRegion (const vcl::Region &, const OutputDevice *pOutDev)
 
void DrawPixel (long nX, long nY, const OutputDevice *pOutDev)
 
void DrawPixel (long nX, long nY, Color nColor, const OutputDevice *pOutDev)
 
void DrawLine (long nX1, long nY1, long nX2, long nY2, const OutputDevice *pOutDev)
 
void DrawRect (long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev)
 
void DrawPolyLine (sal_uInt32 nPoints, SalPoint const *pPtAry, const OutputDevice *pOutDev)
 
void DrawPolygon (sal_uInt32 nPoints, const SalPoint *pPtAry, const OutputDevice *pOutDev)
 
void DrawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, PCONSTSALPOINT *pPtAry, const OutputDevice *pOutDev)
 
bool DrawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &i_rPolyPolygon, double i_fTransparency, const OutputDevice *i_pOutDev)
 
bool DrawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &i_rPolygon, double i_fTransparency, const basegfx::B2DVector &i_rLineWidth, basegfx::B2DLineJoin i_eLineJoin, css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline, const OutputDevice *i_pOutDev)
 
bool DrawPolyLineBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry, const OutputDevice *pOutDev)
 
bool DrawPolygonBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry, const OutputDevice *pOutDev)
 
bool DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const SalPoint *const *pPtAry, const PolyFlags *const *pFlgAry, const OutputDevice *pOutDev)
 
bool DrawGradient (const tools::PolyPolygon &rPolyPoly, const Gradient &rGradient)
 
void CopyArea (long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth, long nSrcHeight, const OutputDevice *pOutDev)
 
void CopyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics, const OutputDevice *pOutDev, const OutputDevice *pSrcOutDev)
 
void DrawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const OutputDevice *pOutDev)
 
void DrawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rTransparentBitmap, const OutputDevice *pOutDev)
 
void DrawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor, const OutputDevice *pOutDev)
 
std::shared_ptr< SalBitmapGetBitmap (long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev)
 
Color GetPixel (long nX, long nY, const OutputDevice *pOutDev)
 
void Invert (long nX, long nY, long nWidth, long nHeight, SalInvert nFlags, const OutputDevice *pOutDev)
 
void Invert (sal_uInt32 nPoints, const SalPoint *pPtAry, SalInvert nFlags, const OutputDevice *pOutDev)
 
bool DrawEPS (long nX, long nY, long nWidth, long nHeight, void *pPtr, sal_uInt32 nSize, const OutputDevice *pOutDev)
 
bool IsNativeControlSupported (ControlType, ControlPart)
 
bool HitTestNativeScrollbar (ControlPart nPart, const tools::Rectangle &rControlRegion, const Point &aPos, bool &rIsInside, const OutputDevice *pOutDev)
 
bool DrawNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, const OutputDevice *pOutDev)
 
bool GetNativeControlRegion (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion, const OutputDevice *pOutDev)
 
bool UpdateSettings (AllSettings &)
 
bool BlendBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const OutputDevice *pOutDev)
 
bool BlendAlphaBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalSrcBitmap, const SalBitmap &rSalMaskBitmap, const SalBitmap &rSalAlphaBitmap, const OutputDevice *pOutDev)
 
bool DrawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap, const OutputDevice *pOutDev)
 
bool DrawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, const OutputDevice *pOutDev)
 
bool DrawAlphaRect (long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency, const OutputDevice *pOutDev)
 

Static Public Member Functions

static void releaseCairoContext (cairo_t *cr)
 
static void CopyScreenArea (Display *pDisplay, Drawable aSrc, SalX11Screen nXScreenSrc, int nSrcDepth, Drawable aDest, SalX11Screen nXScreenDest, int nDestDepth, GC aDestGC, int src_x, int src_y, unsigned int w, unsigned int h, int dest_x, int dest_y)
 
static void releaseGlyphPeer ()
 

Protected Member Functions

void SetClipRegion (GC pGC, Region pXReg=nullptr) const
 
bool GetDitherPixmap (Color nColor)
 
GC GetFontGC ()
 
void freeResources ()
 
- Protected Member Functions inherited from SalGraphics
long GetDeviceWidth (const OutputDevice *pOutDev) 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 ()
 
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)
 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

SalFramem_pFrame
 
SalVirtualDevicem_pVDev
 
const SalColormapm_pColormap
 
std::unique_ptr< SalColormapm_pDeleteColormap
 
Drawable hDrawable_
 
SalX11Screen m_nXScreen
 
XRenderPictFormat * m_pXRenderFormat
 
XID m_aXRenderPicture
 
Region mpClipRegion
 
GC pFontGC_
 
Pixel nTextPixel_
 
Pixmap hBrush_
 
bool bWindow_: 1
 
bool bVirDev_: 1
 
bool bFontGC_: 1
 
bool const m_bOpenGL: 1
 
- Protected Attributes inherited from SalGraphics
bool m_bAntiAliasB2DDraw: 1
 flags which hold the SetAntialiasing() value from OutputDevice More...
 
std::unique_ptr< vcl::WidgetDrawInterfacem_pWidgetDraw
 

Private Attributes

std::unique_ptr< SalGraphicsImplmxImpl
 
std::unique_ptr< TextRenderImplmxTextRenderImpl
 

Friends

class X11SalGraphicsImpl
 
class X11OpenGLSalGraphicsImpl
 
class X11CairoTextRender
 

Detailed Description

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

Constructor & Destructor Documentation

X11SalGraphics::X11SalGraphics ( )
virtual X11SalGraphics::~X11SalGraphics ( )
overridevirtual

Member Function Documentation

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

Implements SalGraphics.

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

Draw the bitmap by blending using the mask and alpha channel.

Implements SalGraphics.

virtual bool X11SalGraphics::blendBitmap ( const SalTwoRect ,
const SalBitmap rBitmap 
)
overridevirtual

Blend the bitmap with the current buffer.

Implements SalGraphics.

virtual void X11SalGraphics::ClearDevFontCache ( )
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::copyArea ( long  nDestX,
long  nDestY,
long  nSrcX,
long  nSrcY,
long  nSrcWidth,
long  nSrcHeight,
bool  bWindowInvalidate 
)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

Reimplemented in GtkSalGraphics.

static void X11SalGraphics::CopyScreenArea ( Display pDisplay,
Drawable  aSrc,
SalX11Screen  nXScreenSrc,
int  nSrcDepth,
Drawable  aDest,
SalX11Screen  nXScreenDest,
int  nDestDepth,
GC  aDestGC,
int  src_x,
int  src_y,
unsigned int  w,
unsigned int  h,
int  dest_x,
int  dest_y 
)
static
virtual bool X11SalGraphics::CreateFontSubset ( const OUString &  rToFile,
const PhysicalFontFace ,
const sal_GlyphId pGlyphIDs,
const sal_uInt8 pEncoding,
sal_Int32 *  pWidths,
int  nGlyphs,
FontSubsetInfo rInfo 
)
overridevirtual

Implements SalGraphics.

void X11SalGraphics::DeInit ( )
virtual bool X11SalGraphics::drawAlphaBitmap ( const SalTwoRect ,
const SalBitmap rSourceBitmap,
const SalBitmap rAlphaBitmap 
)
overridevirtual

Render bitmap with alpha channel.

Parameters
rSourceBitmapSource bitmap to blit
rAlphaBitmapAlpha channel to use for blitting
Returns
true, if the operation succeeded, and false otherwise. In this case, clients should try to emulate alpha compositing themselves

Implements SalGraphics.

virtual bool X11SalGraphics::drawAlphaRect ( long  nX,
long  nY,
long  nWidth,
long  nHeight,
sal_uInt8  nTransparency 
)
overridevirtual

Render solid rectangle with given transparency.

Parameters
nXTop left coordinate of rectangle
nYBottom right coordinate of rectangle
nWidthWidth of rectangle
nHeightHeight of rectangle
nTransparencyTransparency value (0-255) to use. 0 blits and opaque, 255 a fully transparent rectangle
Returns
true if successfully drawn, false if not able to draw rectangle

Implements SalGraphics.

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

Implements SalGraphics.

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

Implements SalGraphics.

virtual bool X11SalGraphics::drawEPS ( long  nX,
long  nY,
long  nWidth,
long  nHeight,
void pPtr,
sal_uInt32  nSize 
)
overridevirtual

Implements SalGraphics.

virtual bool X11SalGraphics::drawGradient ( const tools::PolyPolygon ,
const Gradient  
)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::drawLine ( long  nX1,
long  nY1,
long  nX2,
long  nY2 
)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual void X11SalGraphics::drawPixel ( long  nX,
long  nY 
)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::drawPixel ( long  nX,
long  nY,
Color  nColor 
)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::drawPolygon ( sal_uInt32  nPoints,
const SalPoint pPtAry 
)
overridevirtual

Implements SalGraphics.

virtual bool X11SalGraphics::drawPolygonBezier ( sal_uInt32  nPoints,
const SalPoint pPtAry,
const PolyFlags pFlgAry 
)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::drawPolyLine ( sal_uInt32  nPoints,
const SalPoint pPtAry 
)
overridevirtual

Implements SalGraphics.

virtual bool X11SalGraphics::drawPolyLine ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolygon ,
double  fTransparency,
const basegfx::B2DVector rLineWidth,
basegfx::B2DLineJoin  ,
css::drawing::LineCap  ,
double  fMiterMinimumAngle,
bool  bPixelSnapHairline 
)
overridevirtual

Implements SalGraphics.

virtual bool X11SalGraphics::drawPolyLineBezier ( sal_uInt32  nPoints,
const SalPoint pPtAry,
const PolyFlags pFlgAry 
)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::drawPolyPolygon ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
PCONSTSALPOINT pPtAry 
)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual bool X11SalGraphics::drawPolyPolygonBezier ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
const SalPoint *const *  pPtAry,
const PolyFlags *const *  pFlgAry 
)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::drawRect ( long  nX,
long  nY,
long  nWidth,
long  nHeight 
)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::DrawTextLayout ( const GenericSalLayout )
overridevirtual

Implements SalGraphics.

virtual bool X11SalGraphics::drawTransformedBitmap ( const basegfx::B2DPoint rNull,
const basegfx::B2DPoint rX,
const basegfx::B2DPoint rY,
const SalBitmap rSourceBitmap,
const SalBitmap pAlphaBitmap 
)
overridevirtual

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

Implements SalGraphics.

void X11SalGraphics::FillPixmapFromScreen ( X11Pixmap pPixmap,
int  nX,
int  nY 
)
virtual void X11SalGraphics::FreeEmbedFontData ( const void pData,
long  nDataLen 
)
overridevirtual

Implements SalGraphics.

void X11SalGraphics::freeResources ( )
protected
virtual sal_uInt16 X11SalGraphics::GetBitCount ( ) const
overridevirtual

Implements SalGraphics.

virtual std::shared_ptr<SalBitmap> X11SalGraphics::getBitmap ( long  nX,
long  nY,
long  nWidth,
long  nHeight 
)
overridevirtual

Implements SalGraphics.

cairo_t* X11SalGraphics::getCairoContext ( )
const SalColormap& X11SalGraphics::GetColormap ( ) const
inline

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

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

virtual void X11SalGraphics::GetDevFontList ( PhysicalFontCollection )
overridevirtual

Implements SalGraphics.

const SalDisplay * X11SalGraphics::GetDisplay ( ) const
inline

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

References GetColormap(), and SalColormap::GetDisplay().

bool X11SalGraphics::GetDitherPixmap ( Color  nColor)
protected
Drawable X11SalGraphics::GetDrawable ( ) const
inline

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

virtual const void* X11SalGraphics::GetEmbedFontData ( const PhysicalFontFace ,
long *  pDataLen 
)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual const FontCharMapRef X11SalGraphics::GetFontCharMap ( ) const
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

SalGeometryProvider* X11SalGraphics::GetGeometryProvider ( ) const
virtual void X11SalGraphics::GetGlyphWidths ( const PhysicalFontFace ,
bool  bVertical,
std::vector< sal_Int32 > &  rWidths,
Ucs2UIntMap rUnicodeEnc 
)
overridevirtual

Implements SalGraphics.

virtual SystemGraphicsData X11SalGraphics::GetGraphicsData ( ) const
overridevirtual

Implements SalGraphics.

virtual long X11SalGraphics::GetGraphicsWidth ( ) const
overridevirtual

Implements SalGraphics.

virtual SalGraphicsImpl* X11SalGraphics::GetImpl ( ) const
overridevirtual

Implements SalGraphics.

Pixel X11SalGraphics::GetPixel ( Color  nColor) const
inline

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

References GetColormap(), and SalColormap::GetPixel().

virtual Color X11SalGraphics::getPixel ( long  nX,
long  nY 
)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

const SalX11Screen& X11SalGraphics::GetScreenNumber ( ) const
inline

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

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

Implements SalGraphics.

const SalVisual & X11SalGraphics::GetVisual ( ) const
inline

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

References GetColormap(), and SalColormap::GetVisual().

Display * X11SalGraphics::GetXDisplay ( ) const
inline

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

References GetColormap(), and SalColormap::GetXDisplay().

XRenderPictFormat* X11SalGraphics::GetXRenderFormat ( ) const
void X11SalGraphics::Init ( SalFrame pFrame,
Drawable  aDrawable,
SalX11Screen  nXScreen 
)
void X11SalGraphics::Init ( X11SalVirtualDevice pVirtualDevice,
SalColormap pColormap = nullptr,
bool  bDeleteColormap = false 
)
void X11SalGraphics::Init ( X11OpenGLSalVirtualDevice pVirtualDevice)
virtual void X11SalGraphics::invert ( long  nX,
long  nY,
long  nWidth,
long  nHeight,
SalInvert  nFlags 
)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::invert ( sal_uInt32  nPoints,
const SalPoint pPtAry,
SalInvert  nFlags 
)
overridevirtual

Implements SalGraphics.

static void X11SalGraphics::releaseCairoContext ( cairo_t cr)
static
static void X11SalGraphics::releaseGlyphPeer ( )
static
bool X11SalGraphics::RenderAndCacheNativeControl ( X11Pixmap pPixmap,
X11Pixmap pMask,
int  nX,
int  nY,
ControlCacheKey aControlCacheKey 
)
bool X11SalGraphics::RenderPixmapToScreen ( X11Pixmap pPixmap,
X11Pixmap pMask,
int  nX,
int  nY 
)
virtual void X11SalGraphics::ResetClipRegion ( )
overridevirtual

Implements SalGraphics.

Reimplemented in GtkSalGraphics.

virtual bool X11SalGraphics::setClipRegion ( const vcl::Region )
overridevirtual

Implements SalGraphics.

Reimplemented in GtkSalGraphics.

void X11SalGraphics::SetClipRegion ( GC  pGC,
Region  pXReg = nullptr 
) const
protected
void X11SalGraphics::SetDrawable ( Drawable  d,
SalX11Screen  nXScreen 
)
virtual void X11SalGraphics::SetFillColor ( )
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::SetFillColor ( Color  nColor)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual void X11SalGraphics::SetLineColor ( )
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::SetLineColor ( Color  nColor)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::SetROPFillColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::SetROPLineColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::SetTextColor ( Color  nColor)
overridevirtual

Implements SalGraphics.

virtual void X11SalGraphics::SetXORMode ( bool  bSet,
bool   
)
overridevirtual

Implements SalGraphics.

void X11SalGraphics::SetXRenderFormat ( XRenderPictFormat *  pXRenderFormat)
inline

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

virtual bool X11SalGraphics::supportsOperation ( OutDevSupportType  ) const
overridevirtual

Implements SalGraphics.

bool X11SalGraphics::TryRenderCachedNativeControl ( ControlCacheKey aControlCacheKey,
int  nX,
int  nY 
)
void X11SalGraphics::YieldGraphicsExpose ( )

Friends And Related Function Documentation

friend class X11CairoTextRender
friend

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

friend class X11OpenGLSalGraphicsImpl
friend

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

friend class X11SalGraphicsImpl
friend

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

Member Data Documentation

bool X11SalGraphics::bFontGC_
protected

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

bool X11SalGraphics::bVirDev_
protected

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

bool X11SalGraphics::bWindow_
protected

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

Pixmap X11SalGraphics::hBrush_
protected

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

Drawable X11SalGraphics::hDrawable_
protected

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

XID X11SalGraphics::m_aXRenderPicture
protected

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

bool const X11SalGraphics::m_bOpenGL
protected

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

SalX11Screen X11SalGraphics::m_nXScreen
protected

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

const SalColormap* X11SalGraphics::m_pColormap
protected

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

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

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

SalFrame* X11SalGraphics::m_pFrame
protected

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

Referenced by GtkSalGraphics::GetGtkFrame().

SalVirtualDevice* X11SalGraphics::m_pVDev
protected

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

XRenderPictFormat* X11SalGraphics::m_pXRenderFormat
mutableprotected

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

Region X11SalGraphics::mpClipRegion
protected

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

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

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

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

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

Pixel X11SalGraphics::nTextPixel_
protected

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

GC X11SalGraphics::pFontGC_
protected

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


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