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

#include <salgdi.h>

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

Public Types

enum  Type {
  PRINTER,
  VIRTUAL_DEVICE,
  WINDOW,
  SCREEN
}
 

Public Member Functions

HFONT ImplDoSetFont (FontSelectPattern const &i_rFont, const PhysicalFontFace *i_pFontFace, float &o_rFontScale, HFONT &o_rOldFont)
 
HDC getHDC () const
 
void setHDC (HDC aNew)
 
HPALETTE getDefPal () const
 
void setDefPal (HPALETTE hDefPal)
 
HRGN getRegion () const
 
void InitGraphics ()
 
void DeInitGraphics ()
 
HWND gethWnd ()
 
 WinSalGraphics (WinSalGraphics::Type eType, bool bScreen, HWND hWnd, SalGeometryProvider *pProvider)
 
virtual ~WinSalGraphics () override
 
SalGraphicsImplGetImpl () const override
 
bool isPrinter () const
 
bool isVirtualDevice () const
 
bool isWindow () const
 
bool isScreen () const
 
void setHWND (HWND hWnd)
 
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 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 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 FontCharMapRef GetFontCharMap () const override
 
virtual bool GetFontCapabilities (vcl::FontCapabilities &rGetFontCapabilities) 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 SystemGraphicsData GetGraphicsData () const override
 
- Public Member Functions inherited from SalGraphics
 SalGraphics ()
 
 ~SalGraphics () COVERITY_NOEXCEPT_FALSE 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 updateSettingsNative (AllSettings &rSettings)
 Update settings based on the platform values. More...
 

Protected Member Functions

virtual bool setClipRegion (const vcl::Region &) 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 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 bool drawGradient (const tools::PolyPolygon &, const Gradient &) 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 &rTransparentBitmap) 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 isNativeControlSupported (ControlType nType, ControlPart nPart) override
 Query the platform layer for native control support. More...
 
virtual bool hitTestNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, const Point &aPos, bool &rIsInside) override
 Query if a position is inside the native widget part. More...
 
virtual bool drawNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption) override
 Draw the requested control. More...
 
virtual bool getNativeControlRegion (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) override
 Get the native control regions for the control part. More...
 
- 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 () COVERITY_NOEXCEPT_FALSE
 
virtual bool updateSettings (AllSettings &rSettings)
 

Protected Attributes

std::unique_ptr< SalGraphicsImplmpImpl
 
- 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 Member Functions

bool CacheGlyphs (const GenericSalLayout &rLayout)
 
bool DrawCachedGlyphs (const GenericSalLayout &rLayout)
 
void DrawTextLayout (const GenericSalLayout &, HDC, bool bUseDWrite)
 

Private Attributes

HDC mhLocalDC
 
bool mbPrinter: 1
 
bool mbVirDev: 1
 
bool mbWindow: 1
 
bool mbScreen: 1
 
HWND mhWnd
 
rtl::Reference< WinFontInstancempWinFontEntry [MAX_FALLBACK]
 
HRGN mhRegion
 
HPEN mhDefPen
 
HBRUSH mhDefBrush
 
HFONT mhDefFont
 
HPALETTE mhDefPal
 
COLORREF mnTextColor
 
RGNDATA * mpClipRgnData
 
RGNDATA * mpStdClipRgnData
 
int mnPenWidth
 

Friends

class WinSalGraphicsImpl
 
class WinOpenGLSalGraphicsImpl
 
class ScopedFont
 
class OpenGLCompatibleDC
 

Detailed Description

Definition at line 141 of file win/salgdi.h.

Member Enumeration Documentation

Enumerator
PRINTER 
VIRTUAL_DEVICE 
WINDOW 
SCREEN 

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

Constructor & Destructor Documentation

WinSalGraphics::WinSalGraphics ( WinSalGraphics::Type  eType,
bool  bScreen,
HWND  hWnd,
SalGeometryProvider pProvider 
)
explicit
virtual WinSalGraphics::~WinSalGraphics ( )
overridevirtual

Member Function Documentation

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

Implements SalGraphics.

virtual bool WinSalGraphics::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 WinSalGraphics::blendBitmap ( const SalTwoRect ,
const SalBitmap rBitmap 
)
overridevirtual

Blend the bitmap with the current buffer.

Implements SalGraphics.

bool WinSalGraphics::CacheGlyphs ( const GenericSalLayout rLayout)
private
virtual void WinSalGraphics::ClearDevFontCache ( )
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual void WinSalGraphics::copyBits ( const SalTwoRect rPosAry,
SalGraphics pSrcGraphics 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual bool WinSalGraphics::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 WinSalGraphics::DeInitGraphics ( )
virtual bool WinSalGraphics::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 WinSalGraphics::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 WinSalGraphics::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual void WinSalGraphics::drawBitmap ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
const SalBitmap rTransparentBitmap 
)
overrideprotectedvirtual

Implements SalGraphics.

bool WinSalGraphics::DrawCachedGlyphs ( const GenericSalLayout rLayout)
private
virtual bool WinSalGraphics::drawEPS ( long  nX,
long  nY,
long  nWidth,
long  nHeight,
void pPtr,
sal_uInt32  nSize 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual bool WinSalGraphics::drawGradient ( const tools::PolyPolygon ,
const Gradient  
)
inlineoverrideprotectedvirtual

Implements SalGraphics.

Definition at line 240 of file win/salgdi.h.

virtual void WinSalGraphics::drawLine ( long  nX1,
long  nY1,
long  nX2,
long  nY2 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual void WinSalGraphics::drawMask ( const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
Color  nMaskColor 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual bool WinSalGraphics::drawNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaptions 
)
overrideprotectedvirtual

Draw the requested control.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
[in]rBoundingControlRegionThe bounding rectangle of the complete control in VCL frame coordinates.
[in]eStateThe general state of the control (enabled, focused, etc.).
[in]aValueAddition control specific information.
[in]aCaptionA caption or title string (like button text etc.).
Returns
true, if the control could be drawn.

Reimplemented from vcl::WidgetDrawInterface.

virtual void WinSalGraphics::drawPixel ( long  nX,
long  nY 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual void WinSalGraphics::drawPixel ( long  nX,
long  nY,
Color  nColor 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual void WinSalGraphics::drawPolygon ( sal_uInt32  nPoints,
const SalPoint pPtAry 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual bool WinSalGraphics::drawPolygonBezier ( sal_uInt32  nPoints,
const SalPoint pPtAry,
const PolyFlags pFlgAry 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual void WinSalGraphics::drawPolyLine ( sal_uInt32  nPoints,
const SalPoint pPtAry 
)
overrideprotectedvirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual bool WinSalGraphics::drawPolyLineBezier ( sal_uInt32  nPoints,
const SalPoint pPtAry,
const PolyFlags pFlgAry 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual void WinSalGraphics::drawPolyPolygon ( sal_uInt32  nPoly,
const sal_uInt32 *  pPoints,
PCONSTSALPOINT pPtAry 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual bool WinSalGraphics::drawPolyPolygon ( const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolyPolygon ,
double  fTransparency 
)
overrideprotectedvirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual void WinSalGraphics::drawRect ( long  nX,
long  nY,
long  nWidth,
long  nHeight 
)
overrideprotectedvirtual

Implements SalGraphics.

void WinSalGraphics::DrawTextLayout ( const GenericSalLayout ,
HDC  ,
bool  bUseDWrite 
)
private
virtual void WinSalGraphics::DrawTextLayout ( const GenericSalLayout )
overridevirtual

Implements SalGraphics.

virtual bool WinSalGraphics::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.

virtual void WinSalGraphics::FreeEmbedFontData ( const void pData,
long  nDataLen 
)
overridevirtual

Implements SalGraphics.

virtual sal_uInt16 WinSalGraphics::GetBitCount ( ) const
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

HPALETTE WinSalGraphics::getDefPal ( ) const
virtual void WinSalGraphics::GetDevFontList ( PhysicalFontCollection )
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual bool WinSalGraphics::GetFontCapabilities ( vcl::FontCapabilities rGetFontCapabilities) const
overridevirtual

Implements SalGraphics.

virtual FontCharMapRef WinSalGraphics::GetFontCharMap ( ) const
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

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

Implements SalGraphics.

virtual SystemGraphicsData WinSalGraphics::GetGraphicsData ( ) const
overridevirtual

Implements SalGraphics.

virtual long WinSalGraphics::GetGraphicsWidth ( ) const
overridevirtual

Implements SalGraphics.

HDC WinSalGraphics::getHDC ( ) const
inline

Definition at line 177 of file win/salgdi.h.

References mhLocalDC.

HWND WinSalGraphics::gethWnd ( )
SalGraphicsImpl* WinSalGraphics::GetImpl ( ) const
overridevirtual

Implements SalGraphics.

virtual bool WinSalGraphics::getNativeControlRegion ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaption,
tools::Rectangle rNativeBoundingRegion,
tools::Rectangle rNativeContentRegion 
)
overrideprotectedvirtual

Get the native control regions for the control part.

If the return value is true, rNativeBoundingRegion contains the true bounding region covered by the control including any adornment, while rNativeContentRegion contains the area within the control that can be safely drawn into without drawing over the borders of the control.

Parameters
[in]eTypeType of the widget.
[in]ePartSpecification of the widget's part if it consists of more than one.
[in]rBoundingControlRegionThe bounding region of the control in VCL frame coordinates.
[in]eStateThe general state of the control (enabled, focused, etc.).
[in]aValueAddition control specific information.
[in]aCaptionA caption or title string (like button text etc.).
[out]rNativeBoundingRegionThe region covered by the control including any adornment.
[out]rNativeContentRegionThe region within the control that can be safely drawn into.
Returns
true, if the regions are filled.

Reimplemented from vcl::WidgetDrawInterface.

virtual Color WinSalGraphics::getPixel ( long  nX,
long  nY 
)
overrideprotectedvirtual

Implements SalGraphics.

HRGN WinSalGraphics::getRegion ( ) const
virtual void WinSalGraphics::GetResolution ( sal_Int32 &  rDPIX,
sal_Int32 &  rDPIY 
)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual bool WinSalGraphics::hitTestNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
const Point aPos,
bool &  rIsInside 
)
overrideprotectedvirtual

Query if a position is inside the native widget part.

Mainly used for scrollbars.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
[in]rBoundingControlRegionThe bounding Rectangle of the complete control in VCL frame coordinates.
[in]aPosThe position to check the hit.
[out]rIsInsidetrue, if aPos was inside the native widget.
Returns
true, if the query was successful.

Reimplemented from vcl::WidgetDrawInterface.

HFONT WinSalGraphics::ImplDoSetFont ( FontSelectPattern const &  i_rFont,
const PhysicalFontFace i_pFontFace,
float &  o_rFontScale,
HFONT &  o_rOldFont 
)
void WinSalGraphics::InitGraphics ( )
virtual void WinSalGraphics::invert ( long  nX,
long  nY,
long  nWidth,
long  nHeight,
SalInvert  nFlags 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual void WinSalGraphics::invert ( sal_uInt32  nPoints,
const SalPoint pPtAry,
SalInvert  nFlags 
)
overrideprotectedvirtual

Implements SalGraphics.

virtual bool WinSalGraphics::isNativeControlSupported ( ControlType  eType,
ControlPart  ePart 
)
overrideprotectedvirtual

Query the platform layer for native control support.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
Returns
true if the platform supports native drawing of the widget type defined by part.

Reimplemented from vcl::WidgetDrawInterface.

bool WinSalGraphics::isPrinter ( ) const
bool WinSalGraphics::isScreen ( ) const
bool WinSalGraphics::isVirtualDevice ( ) const
bool WinSalGraphics::isWindow ( ) const
virtual void WinSalGraphics::ResetClipRegion ( )
overridevirtual

Implements SalGraphics.

virtual bool WinSalGraphics::setClipRegion ( const vcl::Region )
overrideprotectedvirtual

Implements SalGraphics.

void WinSalGraphics::setDefPal ( HPALETTE  hDefPal)
virtual void WinSalGraphics::SetFillColor ( )
overridevirtual

Implements SalGraphics.

virtual void WinSalGraphics::SetFillColor ( Color  nColor)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

void WinSalGraphics::setHDC ( HDC  aNew)
inline

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

void WinSalGraphics::setHWND ( HWND  hWnd)
virtual void WinSalGraphics::SetLineColor ( )
overridevirtual

Implements SalGraphics.

virtual void WinSalGraphics::SetLineColor ( Color  nColor)
overridevirtual

Implements SalGraphics.

virtual void WinSalGraphics::SetROPFillColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphics.

virtual void WinSalGraphics::SetROPLineColor ( SalROPColor  nROPColor)
overridevirtual

Implements SalGraphics.

virtual void WinSalGraphics::SetTextColor ( Color  nColor)
overridevirtual

Implements SalGraphics.

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

Implements SalGraphics.

virtual bool WinSalGraphics::supportsOperation ( OutDevSupportType  ) const
overridevirtual

Implements SalGraphics.

static void WinSalGraphics::updateSettingsNative ( AllSettings rSettings)
static

Update settings based on the platform values.

Friends And Related Function Documentation

friend class OpenGLCompatibleDC
friend

Definition at line 146 of file win/salgdi.h.

friend class ScopedFont
friend

Definition at line 145 of file win/salgdi.h.

friend class WinOpenGLSalGraphicsImpl
friend

Definition at line 144 of file win/salgdi.h.

friend class WinSalGraphicsImpl
friend

Definition at line 143 of file win/salgdi.h.

Member Data Documentation

bool WinSalGraphics::mbPrinter
private

Definition at line 153 of file win/salgdi.h.

bool WinSalGraphics::mbScreen
private

Definition at line 156 of file win/salgdi.h.

bool WinSalGraphics::mbVirDev
private

Definition at line 154 of file win/salgdi.h.

bool WinSalGraphics::mbWindow
private

Definition at line 155 of file win/salgdi.h.

HBRUSH WinSalGraphics::mhDefBrush
private

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

HFONT WinSalGraphics::mhDefFont
private

Definition at line 164 of file win/salgdi.h.

HPALETTE WinSalGraphics::mhDefPal
private

Definition at line 165 of file win/salgdi.h.

HPEN WinSalGraphics::mhDefPen
private

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

HDC WinSalGraphics::mhLocalDC
private

Definition at line 152 of file win/salgdi.h.

Referenced by getHDC().

HRGN WinSalGraphics::mhRegion
private

Definition at line 161 of file win/salgdi.h.

HWND WinSalGraphics::mhWnd
private

Definition at line 157 of file win/salgdi.h.

int WinSalGraphics::mnPenWidth
private

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

COLORREF WinSalGraphics::mnTextColor
private

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

RGNDATA* WinSalGraphics::mpClipRgnData
private

Definition at line 167 of file win/salgdi.h.

std::unique_ptr<SalGraphicsImpl> WinSalGraphics::mpImpl
protected

Definition at line 149 of file win/salgdi.h.

RGNDATA* WinSalGraphics::mpStdClipRgnData
private

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

rtl::Reference<WinFontInstance> WinSalGraphics::mpWinFontEntry[MAX_FALLBACK]
private

Definition at line 160 of file win/salgdi.h.


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