LibreOffice Module vcl (master)  1
salgdi.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_VCL_INC_SALGDI_HXX
21 #define INCLUDED_VCL_INC_SALGDI_HXX
22 
23 #include <vcl/outdev.hxx>
24 
25 #include "impfontmetricdata.hxx"
26 #include "salgdiimpl.hxx"
27 #include "sallayout.hxx"
28 #include "SalGradient.hxx"
30 #include "WidgetDrawInterface.hxx"
31 
32 #include <config_cairo_canvas.h>
33 
34 #include <map>
35 #include <vector>
36 
38 class SalBitmap;
39 class FontSelectPattern;
40 class FontAttributes;
41 class PhysicalFontFace;
42 class SalLayout;
43 class ImplLayoutArgs;
44 namespace tools { class Rectangle; }
45 class FontSubsetInfo;
46 class OpenGLContext;
47 class OutputDevice;
48 class FreetypeFont;
49 struct SystemGraphicsData;
50 
51 namespace basegfx {
52  class B2DVector;
53  class B2DPolygon;
54  class B2DPolyPolygon;
55 }
56 
57 typedef sal_Unicode sal_Ucs; // TODO: use sal_UCS4 instead of sal_Unicode
58 typedef std::map< sal_Ucs, sal_uInt32 > Ucs2UIntMap;
59 
60 // note: if you add any new methods to class SalGraphics using coordinates
61 // make sure they have a corresponding protected pure virtual method
62 // which has to be implemented by the platform dependent part.
63 // Add a method that performs coordinate mirroring if required, (see
64 // existing methods as sample) and then calls the equivalent pure method.
65 
66 // note: all positions are in pixel and relative to
67 // the top/left-position of the virtual output area
68 
70 {
71 public:
72  SalGraphics();
73  ~SalGraphics() COVERITY_NOEXCEPT_FALSE override;
74 
75  virtual SalGraphicsImpl* GetImpl() const = 0;
76 
78  rtl::Reference<OpenGLContext> GetOpenGLContext() const;
79 
80  void setAntiAliasB2DDraw(bool bNew) { m_bAntiAliasB2DDraw = bNew; }
81  bool getAntiAliasB2DDraw() const { return m_bAntiAliasB2DDraw; }
82 
83  // public SalGraphics methods, the interface to the independent vcl part
84 
85  // get device resolution
86  virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY ) = 0;
87 
88  // get the depth of the device
89  virtual sal_uInt16 GetBitCount() const = 0;
90 
91  // get the width of the device
92  virtual long GetGraphicsWidth() const = 0;
93 
94  // set the clip region to empty
95  virtual void ResetClipRegion() = 0;
96 
97  // set the line color to transparent (= don't draw lines)
98 
99  virtual void SetLineColor() = 0;
100 
101  // set the line color to a specific color
102  virtual void SetLineColor( Color nColor ) = 0;
103 
104  // set the fill color to transparent (= don't fill)
105  virtual void SetFillColor() = 0;
106 
107  // set the fill color to a specific color, shapes will be
108  // filled accordingly
109  virtual void SetFillColor( Color nColor ) = 0;
110 
111  // enable/disable XOR drawing
112  virtual void SetXORMode( bool bSet, bool bInvertOnly ) = 0;
113 
114  // set line color for raster operations
115  virtual void SetROPLineColor( SalROPColor nROPColor ) = 0;
116 
117  // set fill color for raster operations
118  virtual void SetROPFillColor( SalROPColor nROPColor ) = 0;
119 
120  // set the text color to a specific color
121  virtual void SetTextColor( Color nColor ) = 0;
122 
123  // set the font
124  virtual void SetFont(LogicalFontInstance*, int nFallbackLevel) = 0;
125 
126  // release the fonts
127  void ReleaseFonts() { SetFont( nullptr, 0 ); }
128 
129  // get the current font's metrics
130  virtual void GetFontMetric( ImplFontMetricDataRef&, int nFallbackLevel ) = 0;
131 
132  // get the repertoire of the current font
133  virtual FontCharMapRef GetFontCharMap() const = 0;
134 
135  // get the layout capabilities of the current font
136  virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const = 0;
137 
138  // graphics must fill supplied font list
139  virtual void GetDevFontList( PhysicalFontCollection* ) = 0;
140 
141  // graphics must drop any cached font info
142  virtual void ClearDevFontCache() = 0;
143 
144  virtual bool AddTempDevFont(
146  const OUString& rFileURL,
147  const OUString& rFontName ) = 0;
148 
149  // CreateFontSubset: a method to get a subset of glyhps of a font
150  // inside a new valid font file
151  // returns true if creation of subset was successful
152  // parameters: rToFile: contains an osl file URL to write the subset to
153  // pFont: describes from which font to create a subset
154  // pGlyphIDs: the glyph ids to be extracted
155  // pEncoding: the character code corresponding to each glyph
156  // pWidths: the advance widths of the corresponding glyphs (in PS font units)
157  // nGlyphs: the number of glyphs
158  // rInfo: additional outgoing information
159  // implementation note: encoding 0 with glyph id 0 should be added implicitly
160  // as "undefined character"
161  virtual bool CreateFontSubset(
162  const OUString& rToFile,
163  const PhysicalFontFace* pFont,
164  const sal_GlyphId* pGlyphIDs,
165  const sal_uInt8* pEncoding,
166  sal_Int32* pWidths,
167  int nGlyphs,
168  FontSubsetInfo& rInfo ) = 0;
169 
170  // GetEmbedFontData: gets the font data for a font marked
171  // embeddable by GetDevFontList or NULL in case of error
172  // parameters: pFont: describes the font in question
173  // pDataLen: out parameter, contains the byte length of the returned buffer
174  virtual const void* GetEmbedFontData(const PhysicalFontFace* pFont, long* pDataLen) = 0;
175 
176  // free the font data again
177  virtual void FreeEmbedFontData( const void* pData, long nDataLen ) = 0;
178 
179  // get the same widths as in CreateFontSubset
180  // in case of an embeddable font also fill the mapping
181  // between unicode and glyph id
182  // leave widths vector and mapping untouched in case of failure
183  virtual void GetGlyphWidths(
184  const PhysicalFontFace* pFont,
185  bool bVertical,
186  std::vector< sal_Int32 >& rWidths,
187  Ucs2UIntMap& rUnicodeEnc ) = 0;
188 
189  virtual std::unique_ptr<GenericSalLayout>
190  GetTextLayout(int nFallbackLevel) = 0;
191  virtual void DrawTextLayout( const GenericSalLayout& ) = 0;
192 
193  virtual bool supportsOperation( OutDevSupportType ) const = 0;
194 
195  // mirroring specifics
196  SalLayoutFlags GetLayout() const { return m_nLayout; }
197  void SetLayout( SalLayoutFlags aLayout ) { m_nLayout = aLayout;}
198 
199  void mirror( long& nX, const OutputDevice *pOutDev ) const;
200  // only called mirror2 to avoid ambiguity
201  [[nodiscard]]
202  long mirror2( long nX, const OutputDevice *pOutDev ) const;
203  void mirror( long& nX, long nWidth, const OutputDevice *pOutDev, bool bBack = false ) const;
204  bool mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev ) const;
205  void mirror( tools::Rectangle& rRect, const OutputDevice*, bool bBack = false ) const;
206  void mirror( vcl::Region& rRgn, const OutputDevice *pOutDev ) const;
207  void mirror( ImplControlValue&, const OutputDevice* ) const;
208  basegfx::B2DPoint mirror( const basegfx::B2DPoint& i_rPoint, const OutputDevice *pOutDev ) const;
209  basegfx::B2DPolyPolygon mirror( const basegfx::B2DPolyPolygon& i_rPoly, const OutputDevice *pOutDev ) const;
210  const basegfx::B2DHomMatrix& getMirror( const OutputDevice *pOutDev ) const;
211  basegfx::B2DHomMatrix mirror( const basegfx::B2DHomMatrix& i_rMatrix, const OutputDevice *pOutDev ) const;
212 
213  // non virtual methods; these do possible coordinate mirroring and
214  // then delegate to protected virtual methods
215  bool SetClipRegion( const vcl::Region&, const OutputDevice *pOutDev );
216 
217  // draw --> LineColor and FillColor and RasterOp and ClipRegion
218  void DrawPixel( long nX, long nY, const OutputDevice *pOutDev );
219  void DrawPixel( long nX, long nY, Color nColor, const OutputDevice *pOutDev );
220 
221  void DrawLine( long nX1, long nY1, long nX2, long nY2, const OutputDevice *pOutDev );
222 
223  void DrawRect( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev );
224 
225  void DrawPolyLine( sal_uInt32 nPoints, SalPoint const * pPtAry, const OutputDevice *pOutDev );
226 
227  void DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry, const OutputDevice *pOutDev );
228 
229  void DrawPolyPolygon(
230  sal_uInt32 nPoly,
231  const sal_uInt32* pPoints,
232  PCONSTSALPOINT* pPtAry,
233  const OutputDevice *pOutDev );
234 
235  bool DrawPolyPolygon(
236  const basegfx::B2DHomMatrix& rObjectToDevice,
237  const basegfx::B2DPolyPolygon &i_rPolyPolygon,
238  double i_fTransparency,
239  const OutputDevice *i_pOutDev);
240 
241  bool DrawPolyLine(
242  const basegfx::B2DHomMatrix& rObjectToDevice,
243  const basegfx::B2DPolygon& i_rPolygon,
244  double i_fTransparency,
245  double i_fLineWidth,
246  const std::vector< double >* i_pStroke, // MM01
247  basegfx::B2DLineJoin i_eLineJoin,
248  css::drawing::LineCap i_eLineCap,
249  double i_fMiterMinimumAngle,
250  bool bPixelSnapHairline,
251  const OutputDevice* i_pOutDev);
252 
253  bool DrawPolyLineBezier(
254  sal_uInt32 nPoints,
255  const SalPoint* pPtAry,
256  const PolyFlags* pFlgAry,
257  const OutputDevice *pOutDev );
258 
259  bool DrawPolygonBezier(
260  sal_uInt32 nPoints,
261  const SalPoint* pPtAry,
262  const PolyFlags* pFlgAry,
263  const OutputDevice *pOutDev );
264 
265  bool DrawPolyPolygonBezier(
266  sal_uInt32 nPoly,
267  const sal_uInt32* pPoints,
268  const SalPoint* const* pPtAry,
269  const PolyFlags* const* pFlgAry,
270  const OutputDevice *pOutDev );
271 
272  bool DrawGradient(
273  const tools::PolyPolygon& rPolyPoly,
274  const Gradient& rGradient );
275 
276  bool DrawGradient(basegfx::B2DPolyPolygon const & rPolyPolygon,
277  SalGradient const & rGradient);
278 
279  // CopyArea --> No RasterOp, but ClipRegion
280  void CopyArea(
281  long nDestX, long nDestY,
282  long nSrcX, long nSrcY,
283  long nSrcWidth, long nSrcHeight,
284  const OutputDevice *pOutDev );
285 
286  // CopyBits and DrawBitmap --> RasterOp and ClipRegion
287  // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
288  void CopyBits(
289  const SalTwoRect& rPosAry,
290  SalGraphics* pSrcGraphics,
291  const OutputDevice *pOutDev,
292  const OutputDevice *pSrcOutDev );
293 
294  void DrawBitmap(
295  const SalTwoRect& rPosAry,
296  const SalBitmap& rSalBitmap,
297  const OutputDevice *pOutDev );
298 
299  void DrawBitmap(
300  const SalTwoRect& rPosAry,
301  const SalBitmap& rSalBitmap,
302  const SalBitmap& rTransparentBitmap,
303  const OutputDevice *pOutDev );
304 
305  void DrawMask(
306  const SalTwoRect& rPosAry,
307  const SalBitmap& rSalBitmap,
308  Color nMaskColor,
309  const OutputDevice *pOutDev );
310 
311  std::shared_ptr<SalBitmap> GetBitmap(
312  long nX, long nY,
313  long nWidth, long nHeight,
314  const OutputDevice *pOutDev );
315 
316  Color GetPixel(
317  long nX, long nY,
318  const OutputDevice *pOutDev );
319 
320  // invert --> ClipRegion (only Windows)
321  void Invert(
322  long nX, long nY,
323  long nWidth, long nHeight,
324  SalInvert nFlags,
325  const OutputDevice *pOutDev );
326 
327  void Invert(
328  sal_uInt32 nPoints,
329  const SalPoint* pPtAry,
330  SalInvert nFlags,
331  const OutputDevice *pOutDev );
332 
333  bool DrawEPS(
334  long nX, long nY,
335  long nWidth, long nHeight,
336  void* pPtr,
337  sal_uInt32 nSize,
338  const OutputDevice *pOutDev );
339 
340  // native widget rendering functions
341 
345  inline bool IsNativeControlSupported(ControlType, ControlPart);
346 
350  bool HitTestNativeScrollbar(
351  ControlPart nPart,
352  const tools::Rectangle& rControlRegion,
353  const Point& aPos,
354  bool& rIsInside,
355  const OutputDevice *pOutDev );
356 
360  bool DrawNativeControl(
361  ControlType nType,
362  ControlPart nPart,
363  const tools::Rectangle& rControlRegion,
364  ControlState nState,
365  const ImplControlValue& aValue,
366  const OUString& aCaption,
367  const OutputDevice *pOutDev );
368 
372  bool GetNativeControlRegion(
373  ControlType nType,
374  ControlPart nPart,
375  const tools::Rectangle& rControlRegion,
376  ControlState nState,
377  const ImplControlValue& aValue,
378  tools::Rectangle &rNativeBoundingRegion,
379  tools::Rectangle &rNativeContentRegion,
380  const OutputDevice *pOutDev );
381 
385  inline bool UpdateSettings(AllSettings&);
386 
387  bool BlendBitmap(
388  const SalTwoRect& rPosAry,
389  const SalBitmap& rSalBitmap,
390  const OutputDevice *pOutDev );
391 
392  bool BlendAlphaBitmap(
393  const SalTwoRect& rPosAry,
394  const SalBitmap& rSalSrcBitmap,
395  const SalBitmap& rSalMaskBitmap,
396  const SalBitmap& rSalAlphaBitmap,
397  const OutputDevice *pOutDev );
398 
399  bool DrawAlphaBitmap(
400  const SalTwoRect&,
401  const SalBitmap& rSourceBitmap,
402  const SalBitmap& rAlphaBitmap,
403  const OutputDevice *pOutDev );
404 
405  bool DrawTransformedBitmap(
406  const basegfx::B2DPoint& rNull,
407  const basegfx::B2DPoint& rX,
408  const basegfx::B2DPoint& rY,
409  const SalBitmap& rSourceBitmap,
410  const SalBitmap* pAlphaBitmap,
411  const OutputDevice* pOutDev );
412 
413  bool DrawAlphaRect(
414  long nX, long nY,
415  long nWidth, long nHeight,
416  sal_uInt8 nTransparency,
417  const OutputDevice *pOutDev );
418 
419  virtual OUString getRenderBackendName() const;
420 
421  virtual SystemGraphicsData GetGraphicsData() const = 0;
422 
423 #if ENABLE_CAIRO_CANVAS
424 
426  virtual bool SupportsCairo() const = 0;
428  virtual cairo::SurfaceSharedPtr CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const = 0;
430  virtual cairo::SurfaceSharedPtr CreateSurface(const OutputDevice& rRefDevice, int x, int y, int width, int height) const = 0;
432  virtual cairo::SurfaceSharedPtr CreateBitmapSurface(const OutputDevice& rRefDevice, const BitmapSystemData& rData, const Size& rSize) const = 0;
433  virtual css::uno::Any GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface, const basegfx::B2ISize& rSize) const = 0;
434 
435 #endif // ENABLE_CAIRO_CANVAS
436 
437 protected:
438  virtual bool setClipRegion( const vcl::Region& ) = 0;
439 
440  // draw --> LineColor and FillColor and RasterOp and ClipRegion
441  virtual void drawPixel( long nX, long nY ) = 0;
442  virtual void drawPixel( long nX, long nY, Color nColor ) = 0;
443 
444  virtual void drawLine( long nX1, long nY1, long nX2, long nY2 ) = 0;
445 
446  virtual void drawRect( long nX, long nY, long nWidth, long nHeight ) = 0;
447 
448  virtual void drawPolyLine( sal_uInt32 nPoints, const SalPoint* pPtAry ) = 0;
449 
450  virtual void drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ) = 0;
451 
452  virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry ) = 0;
453 
454  virtual bool drawPolyPolygon(
455  const basegfx::B2DHomMatrix& rObjectToDevice,
457  double fTransparency) = 0;
458 
459  virtual bool drawPolyLine(
460  const basegfx::B2DHomMatrix& rObjectToDevice,
461  const basegfx::B2DPolygon&,
462  double fTransparency,
463  double fLineWidth,
464  const std::vector< double >* pStroke, // MM01
466  css::drawing::LineCap,
467  double fMiterMinimumAngle,
468  bool bPixelSnapHairline) = 0;
469 
470  virtual bool drawPolyLineBezier(
471  sal_uInt32 nPoints,
472  const SalPoint* pPtAry,
473  const PolyFlags* pFlgAry ) = 0;
474 
475  virtual bool drawPolygonBezier(
476  sal_uInt32 nPoints,
477  const SalPoint* pPtAry,
478  const PolyFlags* pFlgAry ) = 0;
479 
480  virtual bool drawPolyPolygonBezier(
481  sal_uInt32 nPoly,
482  const sal_uInt32* pPoints,
483  const SalPoint* const* pPtAry,
484  const PolyFlags* const* pFlgAry ) = 0;
485 
486  virtual bool drawGradient(
487  const tools::PolyPolygon& rPolyPoly,
488  const Gradient& rGradient ) = 0;
489 
490  virtual bool implDrawGradient(basegfx::B2DPolyPolygon const & /*rPolyPolygon*/,
491  SalGradient const & /*rGradient*/)
492  {
493  return false;
494  }
495 
496  // CopyArea --> No RasterOp, but ClipRegion
497  virtual void copyArea(
498  long nDestX, long nDestY,
499  long nSrcX, long nSrcY,
500  long nSrcWidth, long nSrcHeight,
501  bool bWindowInvalidate ) = 0;
502 
503  // CopyBits and DrawBitmap --> RasterOp and ClipRegion
504  // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
505  virtual void copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics ) = 0;
506 
507  virtual void drawBitmap( const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap ) = 0;
508 
509  virtual void drawBitmap(
510  const SalTwoRect& rPosAry,
511  const SalBitmap& rSalBitmap,
512  const SalBitmap& rMaskBitmap ) = 0;
513 
514  virtual void drawMask(
515  const SalTwoRect& rPosAry,
516  const SalBitmap& rSalBitmap,
517  Color nMaskColor ) = 0;
518 
519  virtual std::shared_ptr<SalBitmap> getBitmap( long nX, long nY, long nWidth, long nHeight ) = 0;
520 
521  virtual Color getPixel( long nX, long nY ) = 0;
522 
523  // invert --> ClipRegion (only Windows or VirDevs)
524  virtual void invert(
525  long nX, long nY,
526  long nWidth, long nHeight,
527  SalInvert nFlags) = 0;
528 
529  virtual void invert( sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nFlags ) = 0;
530 
531  virtual bool drawEPS(
532  long nX, long nY,
533  long nWidth, long nHeight,
534  void* pPtr,
535  sal_uInt32 nSize ) = 0;
536 
538  virtual bool blendBitmap(
539  const SalTwoRect&,
540  const SalBitmap& rBitmap ) = 0;
541 
543  virtual bool blendAlphaBitmap(
544  const SalTwoRect&,
545  const SalBitmap& rSrcBitmap,
546  const SalBitmap& rMaskBitmap,
547  const SalBitmap& rAlphaBitmap ) = 0;
548 
561  virtual bool drawAlphaBitmap(
562  const SalTwoRect&,
563  const SalBitmap& rSourceBitmap,
564  const SalBitmap& rAlphaBitmap ) = 0;
565 
567  virtual bool drawTransformedBitmap(
568  const basegfx::B2DPoint& rNull,
569  const basegfx::B2DPoint& rX,
570  const basegfx::B2DPoint& rY,
571  const SalBitmap& rSourceBitmap,
572  const SalBitmap* pAlphaBitmap) = 0;
573 
584  virtual bool drawAlphaRect(
585  long nX, long nY,
586  long nWidth, long nHeight,
587  sal_uInt8 nTransparency ) = 0;
588 
589 private:
590  SalLayoutFlags m_nLayout; //< 0: mirroring off, 1: mirror x-axis
591 
592  // for buffering the Mirror-Matrix, see ::getMirror
595 
596 protected:
598  bool m_bAntiAliasB2DDraw : 1;
599 
600  inline long GetDeviceWidth(const OutputDevice* pOutDev) const;
601 
610  virtual inline void handleDamage(const tools::Rectangle& rDamagedRegion);
611 
612  // native controls
613  bool initWidgetDrawBackends(bool bForce = false);
614 
615  std::unique_ptr<vcl::WidgetDrawInterface> m_pWidgetDraw;
616  vcl::WidgetDrawInterface* forWidget() { return m_pWidgetDraw ? m_pWidgetDraw.get() : this; }
617 };
618 
620 {
621  return forWidget()->isNativeControlSupported(eType, ePart);
622 }
623 
625 {
626  return forWidget()->updateSettings(rSettings);
627 }
628 
630 
631 #endif // INCLUDED_VCL_INC_SALGDI_HXX
632 
633 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SalROPColor
Definition: salgtype.hxx:80
sal_Unicode sal_Ucs
Definition: salgdi.hxx:57
void drawPolygon(VirtualDevice *dev, bool drawFrame, tools::Polygon const &rect, Size const &pSize)
long m_aLastMirrorW
Definition: salgdi.hxx:594
sal_uInt16 sal_GlyphId
Definition: glyphitem.hxx:26
OutDevSupportType
Definition: vclenum.hxx:198
virtual bool implDrawGradient(basegfx::B2DPolyPolygon const &, SalGradient const &)
Definition: salgdi.hxx:490
sal_uInt16 sal_Unicode
basegfx::B2DHomMatrix m_aLastMirror
Definition: salgdi.hxx:593
abstract base class for physical font faces
std::shared_ptr< Surface > SurfaceSharedPtr
Definition: cairo.hxx:36
SalLayoutFlags m_nLayout
Definition: salgdi.hxx:590
virtual bool isNativeControlSupported(ControlType eType, ControlPart ePart)
Query the platform layer for native control support.
void drawLine(VirtualDevice *dev, Point const &orig, Point const &dest, Size const &pSize)
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:302
std::unique_ptr< vcl::WidgetDrawInterface > m_pWidgetDraw
Definition: salgdi.hxx:615
SalInvert
Definition: salgtype.hxx:84
std::shared_ptr< cairo_surface_t > CairoSurfaceSharedPtr
Definition: cairo.hxx:34
bool getAntiAliasB2DDraw() const
Definition: salgdi.hxx:81
void ReleaseFonts()
Definition: salgdi.hxx:127
vcl::WidgetDrawInterface * forWidget()
Definition: salgdi.hxx:616
ControlType
These types are all based on the supported variants vcl/salnativewidgets.hxx and must be kept in-sync...
#define VCL_PLUGIN_PUBLIC
Definition: dllapi.h:40
SalLayoutFlags
Definition: outdev.hxx:119
bool UpdateSettings(AllSettings &)
Definition: salgdi.hxx:624
unsigned char sal_uInt8
SalLayoutFlags GetLayout() const
Definition: salgdi.hxx:196
void setAntiAliasB2DDraw(bool bNew)
Definition: salgdi.hxx:80
virtual bool updateSettings(AllSettings &rSettings)
void SetLayout(SalLayoutFlags aLayout)
Definition: salgdi.hxx:197
void SetLineColor(const css::uno::Reference< css::beans::XPropertySet > &xGridProperties, sal_Int32 nColor)
std::map< sal_Ucs, sal_uInt32 > Ucs2UIntMap
Definition: salgdi.hxx:58
bool IsNativeControlSupported(ControlType, ControlPart)
Definition: salgdi.hxx:619
virtual void handleDamage(const tools::Rectangle &rDamagedRegion)
Handle damage done by drawing with a widget draw override.
Definition: salgdi.hxx:629
PolyFlags