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"
29 #include "WidgetDrawInterface.hxx"
30 
31 #include <config_cairo_canvas.h>
32 
33 #include <map>
34 #include <vector>
35 
37 class SalBitmap;
38 class FontSelectPattern;
39 class FontAttributes;
40 class PhysicalFontFace;
41 class SalLayout;
42 class ImplLayoutArgs;
43 namespace tools { class Rectangle; }
44 class FontSubsetInfo;
45 class OpenGLContext;
46 class OutputDevice;
47 class FreetypeFont;
48 struct SystemGraphicsData;
49 
50 #if ENABLE_CAIRO_CANVAS
51 struct SystemFontData;
52 #endif // ENABLE_CAIRO_CANVAS
53 
54 namespace basegfx {
55  class B2DVector;
56  class B2DPolygon;
57  class B2DPolyPolygon;
58 }
59 
60 typedef sal_Unicode sal_Ucs; // TODO: use sal_UCS4 instead of sal_Unicode
61 typedef std::map< sal_Ucs, sal_uInt32 > Ucs2UIntMap;
62 
63 // note: if you add any new methods to class SalGraphics using coordinates
64 // make sure they have a corresponding protected pure virtual method
65 // which has to be implemented by the platform dependent part.
66 // Add a method that performs coordinate mirroring if required, (see
67 // existing methods as sample) and then calls the equivalent pure method.
68 
69 // note: all positions are in pixel and relative to
70 // the top/left-position of the virtual output area
71 
73 {
74 public:
75  SalGraphics();
76  ~SalGraphics() override;
77 
78  virtual SalGraphicsImpl* GetImpl() const = 0;
79 
81  rtl::Reference<OpenGLContext> GetOpenGLContext() const;
82 
83  void setAntiAliasB2DDraw(bool bNew) { m_bAntiAliasB2DDraw = bNew; }
84  bool getAntiAliasB2DDraw() const { return m_bAntiAliasB2DDraw; }
85 
86  // public SalGraphics methods, the interface to the independent vcl part
87 
88  // get device resolution
89  virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY ) = 0;
90 
91  // get the depth of the device
92  virtual sal_uInt16 GetBitCount() const = 0;
93 
94  // get the width of the device
95  virtual long GetGraphicsWidth() const = 0;
96 
97  // set the clip region to empty
98  virtual void ResetClipRegion() = 0;
99 
100  // set the line color to transparent (= don't draw lines)
101 
102  virtual void SetLineColor() = 0;
103 
104  // set the line color to a specific color
105  virtual void SetLineColor( Color nColor ) = 0;
106 
107  // set the fill color to transparent (= don't fill)
108  virtual void SetFillColor() = 0;
109 
110  // set the fill color to a specific color, shapes will be
111  // filled accordingly
112  virtual void SetFillColor( Color nColor ) = 0;
113 
114  // enable/disable XOR drawing
115  virtual void SetXORMode( bool bSet, bool bInvertOnly ) = 0;
116 
117  // set line color for raster operations
118  virtual void SetROPLineColor( SalROPColor nROPColor ) = 0;
119 
120  // set fill color for raster operations
121  virtual void SetROPFillColor( SalROPColor nROPColor ) = 0;
122 
123  // set the text color to a specific color
124  virtual void SetTextColor( Color nColor ) = 0;
125 
126  // set the font
127  virtual void SetFont(LogicalFontInstance*, int nFallbackLevel) = 0;
128 
129  // release the fonts
130  void ReleaseFonts() { SetFont( nullptr, 0 ); }
131 
132  // get the current font's metrics
133  virtual void GetFontMetric( ImplFontMetricDataRef&, int nFallbackLevel ) = 0;
134 
135  // get the repertoire of the current font
136  virtual FontCharMapRef GetFontCharMap() const = 0;
137 
138  // get the layout capabilities of the current font
139  virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const = 0;
140 
141  // graphics must fill supplied font list
142  virtual void GetDevFontList( PhysicalFontCollection* ) = 0;
143 
144  // graphics must drop any cached font info
145  virtual void ClearDevFontCache() = 0;
146 
147  virtual bool AddTempDevFont(
149  const OUString& rFileURL,
150  const OUString& rFontName ) = 0;
151 
152  // CreateFontSubset: a method to get a subset of glyhps of a font
153  // inside a new valid font file
154  // returns true if creation of subset was successful
155  // parameters: rToFile: contains an osl file URL to write the subset to
156  // pFont: describes from which font to create a subset
157  // pGlyphIDs: the glyph ids to be extracted
158  // pEncoding: the character code corresponding to each glyph
159  // pWidths: the advance widths of the corresponding glyphs (in PS font units)
160  // nGlyphs: the number of glyphs
161  // rInfo: additional outgoing information
162  // implementation note: encoding 0 with glyph id 0 should be added implicitly
163  // as "undefined character"
164  virtual bool CreateFontSubset(
165  const OUString& rToFile,
166  const PhysicalFontFace* pFont,
167  const sal_GlyphId* pGlyphIDs,
168  const sal_uInt8* pEncoding,
169  sal_Int32* pWidths,
170  int nGlyphs,
171  FontSubsetInfo& rInfo ) = 0;
172 
173  // GetEmbedFontData: gets the font data for a font marked
174  // embeddable by GetDevFontList or NULL in case of error
175  // parameters: pFont: describes the font in question
176  // pDataLen: out parameter, contains the byte length of the returned buffer
177  virtual const void* GetEmbedFontData(const PhysicalFontFace* pFont, long* pDataLen) = 0;
178 
179  // free the font data again
180  virtual void FreeEmbedFontData( const void* pData, long nDataLen ) = 0;
181 
182  // get the same widths as in CreateFontSubset
183  // in case of an embeddable font also fill the mapping
184  // between unicode and glyph id
185  // leave widths vector and mapping untouched in case of failure
186  virtual void GetGlyphWidths(
187  const PhysicalFontFace* pFont,
188  bool bVertical,
189  std::vector< sal_Int32 >& rWidths,
190  Ucs2UIntMap& rUnicodeEnc ) = 0;
191 
192  virtual std::unique_ptr<GenericSalLayout>
193  GetTextLayout(int nFallbackLevel) = 0;
194  virtual void DrawTextLayout( const GenericSalLayout& ) = 0;
195 
196  virtual bool supportsOperation( OutDevSupportType ) const = 0;
197 
198  // mirroring specifics
199  SalLayoutFlags GetLayout() const { return m_nLayout; }
200  void SetLayout( SalLayoutFlags aLayout ) { m_nLayout = aLayout;}
201 
202  void mirror( long& nX, const OutputDevice *pOutDev ) const;
203  // only called mirror2 to avoid ambiguity
204  [[nodiscard]]
205  long mirror2( long nX, const OutputDevice *pOutDev ) const;
206  void mirror( long& nX, long nWidth, const OutputDevice *pOutDev, bool bBack = false ) const;
207  bool mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev ) const;
208  void mirror( tools::Rectangle& rRect, const OutputDevice*, bool bBack = false ) const;
209  void mirror( vcl::Region& rRgn, const OutputDevice *pOutDev ) const;
210  void mirror( ImplControlValue&, const OutputDevice* ) const;
211  basegfx::B2DPoint mirror( const basegfx::B2DPoint& i_rPoint, const OutputDevice *pOutDev ) const;
212  basegfx::B2DPolyPolygon mirror( const basegfx::B2DPolyPolygon& i_rPoly, const OutputDevice *pOutDev ) const;
213  const basegfx::B2DHomMatrix& getMirror( const OutputDevice *pOutDev ) const;
214  basegfx::B2DHomMatrix mirror( const basegfx::B2DHomMatrix& i_rMatrix, const OutputDevice *pOutDev ) const;
215 
216  // non virtual methods; these do possible coordinate mirroring and
217  // then delegate to protected virtual methods
218  bool SetClipRegion( const vcl::Region&, const OutputDevice *pOutDev );
219 
220  // draw --> LineColor and FillColor and RasterOp and ClipRegion
221  void DrawPixel( long nX, long nY, const OutputDevice *pOutDev );
222  void DrawPixel( long nX, long nY, Color nColor, const OutputDevice *pOutDev );
223 
224  void DrawLine( long nX1, long nY1, long nX2, long nY2, const OutputDevice *pOutDev );
225 
226  void DrawRect( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev );
227 
228  void DrawPolyLine( sal_uInt32 nPoints, SalPoint const * pPtAry, const OutputDevice *pOutDev );
229 
230  void DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry, const OutputDevice *pOutDev );
231 
232  void DrawPolyPolygon(
233  sal_uInt32 nPoly,
234  const sal_uInt32* pPoints,
235  PCONSTSALPOINT* pPtAry,
236  const OutputDevice *pOutDev );
237 
238  bool DrawPolyPolygon(
239  const basegfx::B2DHomMatrix& rObjectToDevice,
240  const basegfx::B2DPolyPolygon &i_rPolyPolygon,
241  double i_fTransparency,
242  const OutputDevice *i_pOutDev);
243 
244  bool DrawPolyLine(
245  const basegfx::B2DHomMatrix& rObjectToDevice,
246  const basegfx::B2DPolygon& i_rPolygon,
247  double i_fTransparency,
248  const basegfx::B2DVector& i_rLineWidth,
249  basegfx::B2DLineJoin i_eLineJoin,
250  css::drawing::LineCap i_eLineCap,
251  double i_fMiterMinimumAngle,
252  bool bPixelSnapHairline,
253  const OutputDevice* i_pOutDev);
254 
255  bool DrawPolyLineBezier(
256  sal_uInt32 nPoints,
257  const SalPoint* pPtAry,
258  const PolyFlags* pFlgAry,
259  const OutputDevice *pOutDev );
260 
261  bool DrawPolygonBezier(
262  sal_uInt32 nPoints,
263  const SalPoint* pPtAry,
264  const PolyFlags* pFlgAry,
265  const OutputDevice *pOutDev );
266 
267  bool DrawPolyPolygonBezier(
268  sal_uInt32 nPoly,
269  const sal_uInt32* pPoints,
270  const SalPoint* const* pPtAry,
271  const PolyFlags* const* pFlgAry,
272  const OutputDevice *pOutDev );
273 
274  bool DrawGradient(
275  const tools::PolyPolygon& rPolyPoly,
276  const Gradient& rGradient );
277 
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 SystemGraphicsData GetGraphicsData() const = 0;
420 
421 #if ENABLE_CAIRO_CANVAS
422 
424  virtual bool SupportsCairo() const = 0;
426  virtual cairo::SurfaceSharedPtr CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const = 0;
428  virtual cairo::SurfaceSharedPtr CreateSurface(const OutputDevice& rRefDevice, int x, int y, int width, int height) const = 0;
430  virtual cairo::SurfaceSharedPtr CreateBitmapSurface(const OutputDevice& rRefDevice, const BitmapSystemData& rData, const Size& rSize) const = 0;
431  virtual css::uno::Any GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface, const basegfx::B2ISize& rSize) const = 0;
432 
433  virtual SystemFontData GetSysFontData( int nFallbacklevel ) 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  const basegfx::B2DVector& rLineWidths,
465  css::drawing::LineCap,
466  double fMiterMinimumAngle,
467  bool bPixelSnapHairline) = 0;
468 
469  virtual bool drawPolyLineBezier(
470  sal_uInt32 nPoints,
471  const SalPoint* pPtAry,
472  const PolyFlags* pFlgAry ) = 0;
473 
474  virtual bool drawPolygonBezier(
475  sal_uInt32 nPoints,
476  const SalPoint* pPtAry,
477  const PolyFlags* pFlgAry ) = 0;
478 
479  virtual bool drawPolyPolygonBezier(
480  sal_uInt32 nPoly,
481  const sal_uInt32* pPoints,
482  const SalPoint* const* pPtAry,
483  const PolyFlags* const* pFlgAry ) = 0;
484 
485  virtual bool drawGradient(
486  const tools::PolyPolygon& rPolyPoly,
487  const Gradient& rGradient ) = 0;
488 
489  // CopyArea --> No RasterOp, but ClipRegion
490  virtual void copyArea(
491  long nDestX, long nDestY,
492  long nSrcX, long nSrcY,
493  long nSrcWidth, long nSrcHeight,
494  bool bWindowInvalidate ) = 0;
495 
496  // CopyBits and DrawBitmap --> RasterOp and ClipRegion
497  // CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
498  virtual void copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics ) = 0;
499 
500  virtual void drawBitmap( const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap ) = 0;
501 
502  virtual void drawBitmap(
503  const SalTwoRect& rPosAry,
504  const SalBitmap& rSalBitmap,
505  const SalBitmap& rMaskBitmap ) = 0;
506 
507  virtual void drawMask(
508  const SalTwoRect& rPosAry,
509  const SalBitmap& rSalBitmap,
510  Color nMaskColor ) = 0;
511 
512  virtual std::shared_ptr<SalBitmap> getBitmap( long nX, long nY, long nWidth, long nHeight ) = 0;
513 
514  virtual Color getPixel( long nX, long nY ) = 0;
515 
516  // invert --> ClipRegion (only Windows or VirDevs)
517  virtual void invert(
518  long nX, long nY,
519  long nWidth, long nHeight,
520  SalInvert nFlags) = 0;
521 
522  virtual void invert( sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nFlags ) = 0;
523 
524  virtual bool drawEPS(
525  long nX, long nY,
526  long nWidth, long nHeight,
527  void* pPtr,
528  sal_uInt32 nSize ) = 0;
529 
531  virtual bool blendBitmap(
532  const SalTwoRect&,
533  const SalBitmap& rBitmap ) = 0;
534 
536  virtual bool blendAlphaBitmap(
537  const SalTwoRect&,
538  const SalBitmap& rSrcBitmap,
539  const SalBitmap& rMaskBitmap,
540  const SalBitmap& rAlphaBitmap ) = 0;
541 
554  virtual bool drawAlphaBitmap(
555  const SalTwoRect&,
556  const SalBitmap& rSourceBitmap,
557  const SalBitmap& rAlphaBitmap ) = 0;
558 
560  virtual bool drawTransformedBitmap(
561  const basegfx::B2DPoint& rNull,
562  const basegfx::B2DPoint& rX,
563  const basegfx::B2DPoint& rY,
564  const SalBitmap& rSourceBitmap,
565  const SalBitmap* pAlphaBitmap) = 0;
566 
577  virtual bool drawAlphaRect(
578  long nX, long nY,
579  long nWidth, long nHeight,
580  sal_uInt8 nTransparency ) = 0;
581 
582 private:
583  SalLayoutFlags m_nLayout; //< 0: mirroring off, 1: mirror x-axis
584 
585  // for buffering the Mirror-Matrix, see ::getMirror
588 
589 protected:
591  bool m_bAntiAliasB2DDraw : 1;
592 
593  inline long GetDeviceWidth(const OutputDevice* pOutDev) const;
594 
603  virtual inline void handleDamage(const tools::Rectangle& rDamagedRegion);
604 
605  // native controls
606  bool initWidgetDrawBackends(bool bForce = false);
607 
608  std::unique_ptr<vcl::WidgetDrawInterface> m_pWidgetDraw;
609  vcl::WidgetDrawInterface* forWidget() { return m_pWidgetDraw ? m_pWidgetDraw.get() : this; }
610 };
611 
613 {
614  return forWidget()->isNativeControlSupported(eType, ePart);
615 }
616 
618 {
619  return forWidget()->updateSettings(rSettings);
620 }
621 
623 
624 #endif // INCLUDED_VCL_INC_SALGDI_HXX
625 
626 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SalROPColor
Definition: salgtype.hxx:80
sal_Unicode sal_Ucs
Definition: salgdi.hxx:60
void drawPolygon(VirtualDevice *dev, bool drawFrame, tools::Polygon const &rect, Size const &pSize)
long m_aLastMirrorW
Definition: salgdi.hxx:587
sal_uInt16 sal_GlyphId
Definition: glyphitem.hxx:26
OutDevSupportType
Definition: vclenum.hxx:195
sal_uInt16 sal_Unicode
basegfx::B2DHomMatrix m_aLastMirror
Definition: salgdi.hxx:586
abstract base class for physical font faces
std::shared_ptr< Surface > SurfaceSharedPtr
Definition: cairo.hxx:36
SalLayoutFlags m_nLayout
Definition: salgdi.hxx:583
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:304
std::unique_ptr< vcl::WidgetDrawInterface > m_pWidgetDraw
Definition: salgdi.hxx:608
SalInvert
Definition: salgtype.hxx:84
std::shared_ptr< cairo_surface_t > CairoSurfaceSharedPtr
Definition: cairo.hxx:34
bool getAntiAliasB2DDraw() const
Definition: salgdi.hxx:84
void ReleaseFonts()
Definition: salgdi.hxx:130
vcl::WidgetDrawInterface * forWidget()
Definition: salgdi.hxx:609
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:121
bool UpdateSettings(AllSettings &)
Definition: salgdi.hxx:617
unsigned char sal_uInt8
SalLayoutFlags GetLayout() const
Definition: salgdi.hxx:199
void setAntiAliasB2DDraw(bool bNew)
Definition: salgdi.hxx:83
virtual bool updateSettings(AllSettings &rSettings)
void SetLayout(SalLayoutFlags aLayout)
Definition: salgdi.hxx:200
void SetLineColor(const css::uno::Reference< css::beans::XPropertySet > &xGridProperties, sal_Int32 nColor)
std::map< sal_Ucs, sal_uInt32 > Ucs2UIntMap
Definition: salgdi.hxx:61
bool IsNativeControlSupported(ControlType, ControlPart)
Definition: salgdi.hxx:612
virtual void handleDamage(const tools::Rectangle &rDamagedRegion)
Handle damage done by drawing with a widget draw override.
Definition: salgdi.hxx:622
PolyFlags