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 namespace vcl
58 {
59 class AbstractTrueTypeFont;
61 }
62 
63 typedef sal_Unicode sal_Ucs; // TODO: use sal_UCS4 instead of sal_Unicode
64 typedef std::map< sal_Ucs, sal_uInt32 > Ucs2UIntMap;
65 
66 // note: if you add any new methods to class SalGraphics using coordinates
67 // make sure they have a corresponding protected pure virtual method
68 // which has to be implemented by the platform dependent part.
69 // Add a method that performs coordinate mirroring if required, (see
70 // existing methods as sample) and then calls the equivalent pure method.
71 
72 // note: all positions are in pixel and relative to
73 // the top/left-position of the virtual output area
74 
76 {
77 public:
78  SalGraphics();
79  ~SalGraphics() COVERITY_NOEXCEPT_FALSE override;
80 
81  virtual SalGraphicsImpl* GetImpl() const = 0;
82 
84  rtl::Reference<OpenGLContext> GetOpenGLContext() const;
85 
86  void setAntiAliasB2DDraw(bool bNew) { m_bAntiAliasB2DDraw = bNew; }
87  bool getAntiAliasB2DDraw() const { return m_bAntiAliasB2DDraw; }
88 
89  // public SalGraphics methods, the interface to the independent vcl part
90 
91  // get device resolution
92  virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY ) = 0;
93 
94  // get the depth of the device
95  virtual sal_uInt16 GetBitCount() const = 0;
96 
97  // get the width of the device
98  virtual long GetGraphicsWidth() const = 0;
99 
100  // set the clip region to empty
101  virtual void ResetClipRegion() = 0;
102 
103  // set the line color to transparent (= don't draw lines)
104 
105  virtual void SetLineColor() = 0;
106 
107  // set the line color to a specific color
108  virtual void SetLineColor( Color nColor ) = 0;
109 
110  // set the fill color to transparent (= don't fill)
111  virtual void SetFillColor() = 0;
112 
113  // set the fill color to a specific color, shapes will be
114  // filled accordingly
115  virtual void SetFillColor( Color nColor ) = 0;
116 
117  // enable/disable XOR drawing
118  virtual void SetXORMode( bool bSet, bool bInvertOnly ) = 0;
119 
120  // set line color for raster operations
121  virtual void SetROPLineColor( SalROPColor nROPColor ) = 0;
122 
123  // set fill color for raster operations
124  virtual void SetROPFillColor( SalROPColor nROPColor ) = 0;
125 
126  // set the text color to a specific color
127  virtual void SetTextColor( Color nColor ) = 0;
128 
129  // set the font
130  virtual void SetFont(LogicalFontInstance*, int nFallbackLevel) = 0;
131 
132  // release the fonts
133  void ReleaseFonts() { SetFont( nullptr, 0 ); }
134 
135  // get the current font's metrics
136  virtual void GetFontMetric( ImplFontMetricDataRef&, int nFallbackLevel ) = 0;
137 
138  // get the repertoire of the current font
139  virtual FontCharMapRef GetFontCharMap() const = 0;
140 
141  // get the layout capabilities of the current font
142  virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const = 0;
143 
144  // graphics must fill supplied font list
145  virtual void GetDevFontList( PhysicalFontCollection* ) = 0;
146 
147  // graphics must drop any cached font info
148  virtual void ClearDevFontCache() = 0;
149 
150  virtual bool AddTempDevFont(
152  const OUString& rFileURL,
153  const OUString& rFontName ) = 0;
154 
155  // CreateFontSubset: a method to get a subset of glyhps of a font
156  // inside a new valid font file
157  // returns true if creation of subset was successful
158  // parameters: rToFile: contains an osl file URL to write the subset to
159  // pFont: describes from which font to create a subset
160  // pGlyphIDs: the glyph ids to be extracted
161  // pEncoding: the character code corresponding to each glyph
162  // pWidths: the advance widths of the corresponding glyphs (in PS font units)
163  // nGlyphs: the number of glyphs
164  // rInfo: additional outgoing information
165  // implementation note: encoding 0 with glyph id 0 should be added implicitly
166  // as "undefined character"
167  virtual bool CreateFontSubset(
168  const OUString& rToFile,
169  const PhysicalFontFace* pFont,
170  const sal_GlyphId* pGlyphIDs,
171  const sal_uInt8* pEncoding,
172  sal_Int32* pWidths,
173  int nGlyphs,
174  FontSubsetInfo& rInfo ) = 0;
175 
176  // GetEmbedFontData: gets the font data for a font marked
177  // embeddable by GetDevFontList or NULL in case of error
178  // parameters: pFont: describes the font in question
179  // pDataLen: out parameter, contains the byte length of the returned buffer
180  virtual const void* GetEmbedFontData(const PhysicalFontFace* pFont, long* pDataLen) = 0;
181 
182  // free the font data again
183  virtual void FreeEmbedFontData( const void* pData, long nDataLen ) = 0;
184 
185  // get the same widths as in CreateFontSubset
186  // in case of an embeddable font also fill the mapping
187  // between unicode and glyph id
188  // leave widths vector and mapping untouched in case of failure
189  virtual void GetGlyphWidths(
190  const PhysicalFontFace* pFont,
191  bool bVertical,
192  std::vector< sal_Int32 >& rWidths,
193  Ucs2UIntMap& rUnicodeEnc ) = 0;
194 
195  virtual std::unique_ptr<GenericSalLayout>
196  GetTextLayout(int nFallbackLevel) = 0;
197  virtual void DrawTextLayout( const GenericSalLayout& ) = 0;
198 
199  virtual bool supportsOperation( OutDevSupportType ) const = 0;
200 
201  // mirroring specifics
202  SalLayoutFlags GetLayout() const { return m_nLayout; }
203  void SetLayout( SalLayoutFlags aLayout ) { m_nLayout = aLayout;}
204 
205  void mirror( long& nX, const OutputDevice *pOutDev ) const;
206  // only called mirror2 to avoid ambiguity
207  [[nodiscard]]
208  long mirror2( long nX, const OutputDevice *pOutDev ) const;
209  void mirror( long& nX, long nWidth, const OutputDevice *pOutDev, bool bBack = false ) const;
210  bool mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev ) const;
211  void mirror( tools::Rectangle& rRect, const OutputDevice*, bool bBack = false ) const;
212  void mirror( vcl::Region& rRgn, const OutputDevice *pOutDev ) const;
213  void mirror( ImplControlValue&, const OutputDevice* ) const;
214  basegfx::B2DPolyPolygon mirror( const basegfx::B2DPolyPolygon& i_rPoly, const OutputDevice *pOutDev ) const;
215  const basegfx::B2DHomMatrix& getMirror( const OutputDevice *pOutDev ) const;
216 
217  // non virtual methods; these do possible coordinate mirroring and
218  // then delegate to protected virtual methods
219  bool SetClipRegion( const vcl::Region&, const OutputDevice *pOutDev );
220 
221  // draw --> LineColor and FillColor and RasterOp and ClipRegion
222  void DrawPixel( long nX, long nY, const OutputDevice *pOutDev );
223  void DrawPixel( long nX, long nY, Color nColor, const OutputDevice *pOutDev );
224 
225  void DrawLine( long nX1, long nY1, long nX2, long nY2, const OutputDevice *pOutDev );
226 
227  void DrawRect( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev );
228 
229  void DrawPolyLine( sal_uInt32 nPoints, SalPoint const * pPtAry, const OutputDevice *pOutDev );
230 
231  void DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry, const OutputDevice *pOutDev );
232 
233  void DrawPolyPolygon(
234  sal_uInt32 nPoly,
235  const sal_uInt32* pPoints,
236  PCONSTSALPOINT* pPtAry,
237  const OutputDevice *pOutDev );
238 
239  bool DrawPolyPolygon(
240  const basegfx::B2DHomMatrix& rObjectToDevice,
241  const basegfx::B2DPolyPolygon &i_rPolyPolygon,
242  double i_fTransparency,
243  const OutputDevice *i_pOutDev);
244 
245  bool DrawPolyLine(
246  const basegfx::B2DHomMatrix& rObjectToDevice,
247  const basegfx::B2DPolygon& i_rPolygon,
248  double i_fTransparency,
249  double i_fLineWidth,
250  const std::vector< double >* i_pStroke, // MM01
251  basegfx::B2DLineJoin i_eLineJoin,
252  css::drawing::LineCap i_eLineCap,
253  double i_fMiterMinimumAngle,
254  bool bPixelSnapHairline,
255  const OutputDevice* i_pOutDev);
256 
257  bool DrawPolyLineBezier(
258  sal_uInt32 nPoints,
259  const SalPoint* pPtAry,
260  const PolyFlags* pFlgAry,
261  const OutputDevice *pOutDev );
262 
263  bool DrawPolygonBezier(
264  sal_uInt32 nPoints,
265  const SalPoint* pPtAry,
266  const PolyFlags* pFlgAry,
267  const OutputDevice *pOutDev );
268 
269  bool DrawPolyPolygonBezier(
270  sal_uInt32 nPoly,
271  const sal_uInt32* pPoints,
272  const SalPoint* const* pPtAry,
273  const PolyFlags* const* pFlgAry,
274  const OutputDevice *pOutDev );
275 
276  bool DrawGradient(
277  const tools::PolyPolygon& rPolyPoly,
278  const Gradient& rGradient );
279 
280  bool DrawGradient(basegfx::B2DPolyPolygon const & rPolyPolygon,
281  SalGradient const & rGradient);
282 
283  // CopyArea --> No RasterOp, but ClipRegion
284  void CopyArea(
285  long nDestX, long nDestY,
286  long nSrcX, long nSrcY,
287  long nSrcWidth, long nSrcHeight,
288  const OutputDevice *pOutDev );
289 
290  // CopyBits and DrawBitmap --> RasterOp and ClipRegion
291  // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
292  void CopyBits(
293  const SalTwoRect& rPosAry,
294  SalGraphics* pSrcGraphics,
295  const OutputDevice *pOutDev,
296  const OutputDevice *pSrcOutDev );
297 
298  void DrawBitmap(
299  const SalTwoRect& rPosAry,
300  const SalBitmap& rSalBitmap,
301  const OutputDevice *pOutDev );
302 
303  void DrawBitmap(
304  const SalTwoRect& rPosAry,
305  const SalBitmap& rSalBitmap,
306  const SalBitmap& rTransparentBitmap,
307  const OutputDevice *pOutDev );
308 
309  void DrawMask(
310  const SalTwoRect& rPosAry,
311  const SalBitmap& rSalBitmap,
312  Color nMaskColor,
313  const OutputDevice *pOutDev );
314 
315  std::shared_ptr<SalBitmap> GetBitmap(
316  long nX, long nY,
317  long nWidth, long nHeight,
318  const OutputDevice *pOutDev );
319 
320  Color GetPixel(
321  long nX, long nY,
322  const OutputDevice *pOutDev );
323 
324  // invert --> ClipRegion (only Windows)
325  void Invert(
326  long nX, long nY,
327  long nWidth, long nHeight,
328  SalInvert nFlags,
329  const OutputDevice *pOutDev );
330 
331  void Invert(
332  sal_uInt32 nPoints,
333  const SalPoint* pPtAry,
334  SalInvert nFlags,
335  const OutputDevice *pOutDev );
336 
337  bool DrawEPS(
338  long nX, long nY,
339  long nWidth, long nHeight,
340  void* pPtr,
341  sal_uInt32 nSize,
342  const OutputDevice *pOutDev );
343 
344  // native widget rendering functions
345 
349  inline bool IsNativeControlSupported(ControlType, ControlPart);
350 
354  bool HitTestNativeScrollbar(
355  ControlPart nPart,
356  const tools::Rectangle& rControlRegion,
357  const Point& aPos,
358  bool& rIsInside,
359  const OutputDevice *pOutDev );
360 
364  bool DrawNativeControl(
365  ControlType nType,
366  ControlPart nPart,
367  const tools::Rectangle& rControlRegion,
368  ControlState nState,
369  const ImplControlValue& aValue,
370  const OUString& aCaption,
371  const OutputDevice *pOutDev,
372  const Color& rBackgroundColor = COL_AUTO );
373 
377  bool GetNativeControlRegion(
378  ControlType nType,
379  ControlPart nPart,
380  const tools::Rectangle& rControlRegion,
381  ControlState nState,
382  const ImplControlValue& aValue,
383  tools::Rectangle &rNativeBoundingRegion,
384  tools::Rectangle &rNativeContentRegion,
385  const OutputDevice *pOutDev );
386 
390  inline bool UpdateSettings(AllSettings&);
391 
392  bool BlendBitmap(
393  const SalTwoRect& rPosAry,
394  const SalBitmap& rSalBitmap,
395  const OutputDevice *pOutDev );
396 
397  bool BlendAlphaBitmap(
398  const SalTwoRect& rPosAry,
399  const SalBitmap& rSalSrcBitmap,
400  const SalBitmap& rSalMaskBitmap,
401  const SalBitmap& rSalAlphaBitmap,
402  const OutputDevice *pOutDev );
403 
404  bool DrawAlphaBitmap(
405  const SalTwoRect&,
406  const SalBitmap& rSourceBitmap,
407  const SalBitmap& rAlphaBitmap,
408  const OutputDevice *pOutDev );
409 
410  bool DrawTransformedBitmap(
411  const basegfx::B2DPoint& rNull,
412  const basegfx::B2DPoint& rX,
413  const basegfx::B2DPoint& rY,
414  const SalBitmap& rSourceBitmap,
415  const SalBitmap* pAlphaBitmap,
416  const OutputDevice* pOutDev );
417 
418  bool DrawAlphaRect(
419  long nX, long nY,
420  long nWidth, long nHeight,
421  sal_uInt8 nTransparency,
422  const OutputDevice *pOutDev );
423 
424  virtual OUString getRenderBackendName() const;
425 
426  virtual SystemGraphicsData GetGraphicsData() const = 0;
427 
428 #if ENABLE_CAIRO_CANVAS
429 
431  virtual bool SupportsCairo() const = 0;
433  virtual cairo::SurfaceSharedPtr CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const = 0;
435  virtual cairo::SurfaceSharedPtr CreateSurface(const OutputDevice& rRefDevice, int x, int y, int width, int height) const = 0;
437  virtual cairo::SurfaceSharedPtr CreateBitmapSurface(const OutputDevice& rRefDevice, const BitmapSystemData& rData, const Size& rSize) const = 0;
438  virtual css::uno::Any GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface, const basegfx::B2ISize& rSize) const = 0;
439 
440 #endif // ENABLE_CAIRO_CANVAS
441 
442 protected:
443  virtual bool setClipRegion( const vcl::Region& ) = 0;
444 
445  // draw --> LineColor and FillColor and RasterOp and ClipRegion
446  virtual void drawPixel( long nX, long nY ) = 0;
447  virtual void drawPixel( long nX, long nY, Color nColor ) = 0;
448 
449  virtual void drawLine( long nX1, long nY1, long nX2, long nY2 ) = 0;
450 
451  virtual void drawRect( long nX, long nY, long nWidth, long nHeight ) = 0;
452 
453  virtual void drawPolyLine( sal_uInt32 nPoints, const SalPoint* pPtAry ) = 0;
454 
455  virtual void drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ) = 0;
456 
457  virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry ) = 0;
458 
459  virtual bool drawPolyPolygon(
460  const basegfx::B2DHomMatrix& rObjectToDevice,
462  double fTransparency) = 0;
463 
464  virtual bool drawPolyLine(
465  const basegfx::B2DHomMatrix& rObjectToDevice,
466  const basegfx::B2DPolygon&,
467  double fTransparency,
468  double fLineWidth,
469  const std::vector< double >* pStroke, // MM01
471  css::drawing::LineCap,
472  double fMiterMinimumAngle,
473  bool bPixelSnapHairline) = 0;
474 
475  virtual bool drawPolyLineBezier(
476  sal_uInt32 nPoints,
477  const SalPoint* pPtAry,
478  const PolyFlags* pFlgAry ) = 0;
479 
480  virtual bool drawPolygonBezier(
481  sal_uInt32 nPoints,
482  const SalPoint* pPtAry,
483  const PolyFlags* pFlgAry ) = 0;
484 
485  virtual bool drawPolyPolygonBezier(
486  sal_uInt32 nPoly,
487  const sal_uInt32* pPoints,
488  const SalPoint* const* pPtAry,
489  const PolyFlags* const* pFlgAry ) = 0;
490 
491  virtual bool drawGradient(
492  const tools::PolyPolygon& rPolyPoly,
493  const Gradient& rGradient ) = 0;
494 
495  virtual bool implDrawGradient(basegfx::B2DPolyPolygon const & /*rPolyPolygon*/,
496  SalGradient const & /*rGradient*/)
497  {
498  return false;
499  }
500 
501  // CopyArea --> No RasterOp, but ClipRegion
502  virtual void copyArea(
503  long nDestX, long nDestY,
504  long nSrcX, long nSrcY,
505  long nSrcWidth, long nSrcHeight,
506  bool bWindowInvalidate ) = 0;
507 
508  // CopyBits and DrawBitmap --> RasterOp and ClipRegion
509  // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
510  virtual void copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics ) = 0;
511 
512  virtual void drawBitmap( const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap ) = 0;
513 
514  virtual void drawBitmap(
515  const SalTwoRect& rPosAry,
516  const SalBitmap& rSalBitmap,
517  const SalBitmap& rMaskBitmap ) = 0;
518 
519  virtual void drawMask(
520  const SalTwoRect& rPosAry,
521  const SalBitmap& rSalBitmap,
522  Color nMaskColor ) = 0;
523 
524  virtual std::shared_ptr<SalBitmap> getBitmap( long nX, long nY, long nWidth, long nHeight ) = 0;
525 
526  virtual Color getPixel( long nX, long nY ) = 0;
527 
528  // invert --> ClipRegion (only Windows or VirDevs)
529  virtual void invert(
530  long nX, long nY,
531  long nWidth, long nHeight,
532  SalInvert nFlags) = 0;
533 
534  virtual void invert( sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nFlags ) = 0;
535 
536  virtual bool drawEPS(
537  long nX, long nY,
538  long nWidth, long nHeight,
539  void* pPtr,
540  sal_uInt32 nSize ) = 0;
541 
543  virtual bool blendBitmap(
544  const SalTwoRect&,
545  const SalBitmap& rBitmap ) = 0;
546 
548  virtual bool blendAlphaBitmap(
549  const SalTwoRect&,
550  const SalBitmap& rSrcBitmap,
551  const SalBitmap& rMaskBitmap,
552  const SalBitmap& rAlphaBitmap ) = 0;
553 
566  virtual bool drawAlphaBitmap(
567  const SalTwoRect&,
568  const SalBitmap& rSourceBitmap,
569  const SalBitmap& rAlphaBitmap ) = 0;
570 
572  virtual bool drawTransformedBitmap(
573  const basegfx::B2DPoint& rNull,
574  const basegfx::B2DPoint& rX,
575  const basegfx::B2DPoint& rY,
576  const SalBitmap& rSourceBitmap,
577  const SalBitmap* pAlphaBitmap) = 0;
578 
589  virtual bool drawAlphaRect(
590  long nX, long nY,
591  long nWidth, long nHeight,
592  sal_uInt8 nTransparency ) = 0;
593 
594 private:
595  SalLayoutFlags m_nLayout; //< 0: mirroring off, 1: mirror x-axis
596 
597  // for buffering the Mirror-Matrix, see ::getMirror
600 
601 protected:
603  bool m_bAntiAliasB2DDraw : 1;
604 
605  inline long GetDeviceWidth(const OutputDevice* pOutDev) const;
606 
615  virtual inline void handleDamage(const tools::Rectangle& rDamagedRegion);
616 
617  // native controls
618  bool initWidgetDrawBackends(bool bForce = false);
619 
620  std::unique_ptr<vcl::WidgetDrawInterface> m_pWidgetDraw;
621  vcl::WidgetDrawInterface* forWidget() { return m_pWidgetDraw ? m_pWidgetDraw.get() : this; }
622 
623  static void GetGlyphWidths(const vcl::AbstractTrueTypeFont& rTTF,
624  const PhysicalFontFace& rFontFace, bool bVertical,
625  std::vector<sal_Int32>& rWidths, Ucs2UIntMap& rUnicodeEnc);
626 
627  static bool CreateTTFfontSubset(vcl::AbstractTrueTypeFont& aTTF, const OString& rSysPath,
628  const bool bVertical, const sal_GlyphId* pGlyphIds,
629  const sal_uInt8* pEncoding, sal_Int32* pGlyphWidths,
630  int nGlyphCount);
631 
632  static bool CreateCFFfontSubset(const unsigned char* pFontBytes, int nByteLength,
633  const OString& rSysPath, const sal_GlyphId* pGlyphIds,
634  const sal_uInt8* pEncoding, sal_Int32* pGlyphWidths,
635  int nGlyphCount, FontSubsetInfo& rInfo);
636 
637  static void FillFontSubsetInfo(const vcl::TTGlobalFontInfo& rTTInfo, const OUString& pPSName,
638  FontSubsetInfo& rInfo);
639 };
640 
642 {
643  return forWidget()->isNativeControlSupported(eType, ePart);
644 }
645 
647 {
648  return forWidget()->updateSettings(rSettings);
649 }
650 
652 
653 #endif // INCLUDED_VCL_INC_SALGDI_HXX
654 
655 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SalROPColor
Definition: salgtype.hxx:80
sal_Unicode sal_Ucs
Definition: salgdi.hxx:63
void drawPolygon(VirtualDevice *dev, bool drawFrame, tools::Polygon const &rect, Size const &pSize)
long m_aLastMirrorW
Definition: salgdi.hxx:599
sal_uInt16 sal_GlyphId
Definition: glyphitem.hxx:26
OutDevSupportType
Definition: vclenum.hxx:198
virtual bool implDrawGradient(basegfx::B2DPolyPolygon const &, SalGradient const &)
Definition: salgdi.hxx:495
sal_uInt16 sal_Unicode
basegfx::B2DHomMatrix m_aLastMirror
Definition: salgdi.hxx:598
abstract base class for physical font faces
std::shared_ptr< Surface > SurfaceSharedPtr
Definition: cairo.hxx:36
SalLayoutFlags m_nLayout
Definition: salgdi.hxx:595
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:620
SalInvert
Definition: salgtype.hxx:84
std::shared_ptr< cairo_surface_t > CairoSurfaceSharedPtr
Definition: cairo.hxx:34
bool getAntiAliasB2DDraw() const
Definition: salgdi.hxx:87
void ReleaseFonts()
Definition: salgdi.hxx:133
vcl::WidgetDrawInterface * forWidget()
Definition: salgdi.hxx:621
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:646
unsigned char sal_uInt8
SalLayoutFlags GetLayout() const
Definition: salgdi.hxx:202
void setAntiAliasB2DDraw(bool bNew)
Definition: salgdi.hxx:86
virtual bool updateSettings(AllSettings &rSettings)
void SetLayout(SalLayoutFlags aLayout)
Definition: salgdi.hxx:203
void SetLineColor(const css::uno::Reference< css::beans::XPropertySet > &xGridProperties, sal_Int32 nColor)
std::map< sal_Ucs, sal_uInt32 > Ucs2UIntMap
Definition: salgdi.hxx:64
bool IsNativeControlSupported(ControlType, ControlPart)
Definition: salgdi.hxx:641
virtual void handleDamage(const tools::Rectangle &rDamagedRegion)
Handle damage done by drawing with a widget draw override.
Definition: salgdi.hxx:651
Return value of GetTTGlobalFontInfo()
Definition: sft.hxx:147
PolyFlags