LibreOffice Module vcl (master)
1
|
#include <salgdi.hxx>
Public Member Functions | |
SalGraphics () | |
~SalGraphics () COVERITY_NOEXCEPT_FALSE override | |
virtual SalGraphicsImpl * | GetImpl () const =0 |
void | setAntiAlias (bool bNew) |
bool | getAntiAlias () const |
void | setTextRenderModeForResolutionIndependentLayout (bool bNew) |
bool | getTextRenderModeForResolutionIndependentLayoutEnabled () const |
virtual void | GetResolution (sal_Int32 &rDPIX, sal_Int32 &rDPIY)=0 |
virtual sal_uInt16 | GetBitCount () const =0 |
virtual tools::Long | GetGraphicsWidth () const =0 |
virtual void | ResetClipRegion ()=0 |
virtual void | SetLineColor ()=0 |
virtual void | SetLineColor (Color nColor)=0 |
virtual void | SetFillColor ()=0 |
virtual void | SetFillColor (Color nColor)=0 |
virtual void | SetXORMode (bool bSet, bool bInvertOnly)=0 |
virtual void | SetROPLineColor (SalROPColor nROPColor)=0 |
virtual void | SetROPFillColor (SalROPColor nROPColor)=0 |
virtual void | SetTextColor (Color nColor)=0 |
virtual void | SetFont (LogicalFontInstance *, int nFallbackLevel)=0 |
void | ReleaseFonts () |
virtual void | GetFontMetric (ImplFontMetricDataRef &, int nFallbackLevel)=0 |
virtual FontCharMapRef | GetFontCharMap () const =0 |
virtual bool | GetFontCapabilities (vcl::FontCapabilities &rFontCapabilities) const =0 |
virtual void | GetDevFontList (vcl::font::PhysicalFontCollection *)=0 |
virtual void | ClearDevFontCache ()=0 |
virtual bool | AddTempDevFont (vcl::font::PhysicalFontCollection *, const OUString &rFileURL, const OUString &rFontName)=0 |
virtual bool | CreateFontSubset (const OUString &rToFile, const vcl::font::PhysicalFontFace *pFont, const sal_GlyphId *pGlyphIDs, const sal_uInt8 *pEncoding, sal_Int32 *pWidths, int nGlyphs, FontSubsetInfo &rInfo)=0 |
virtual const void * | GetEmbedFontData (const vcl::font::PhysicalFontFace *pFont, tools::Long *pDataLen)=0 |
virtual void | FreeEmbedFontData (const void *pData, tools::Long nDataLen)=0 |
virtual void | GetGlyphWidths (const vcl::font::PhysicalFontFace *pFont, bool bVertical, std::vector< sal_Int32 > &rWidths, Ucs2UIntMap &rUnicodeEnc)=0 |
virtual std::unique_ptr< GenericSalLayout > | GetTextLayout (int nFallbackLevel)=0 |
virtual void | DrawTextLayout (const GenericSalLayout &)=0 |
virtual bool | supportsOperation (OutDevSupportType) const =0 |
SalLayoutFlags | GetLayout () const |
void | SetLayout (SalLayoutFlags aLayout) |
void | mirror (tools::Long &nX, const OutputDevice &rOutDev) const |
tools::Long | mirror2 (tools::Long nX, const OutputDevice &rOutDev) const |
void | mirror (tools::Long &nX, tools::Long nWidth, const OutputDevice &rOutDev, bool bBack=false) const |
bool | mirror (sal_uInt32 nPoints, const Point *pPtAry, Point *pPtAry2, const OutputDevice &rOutDev) const |
void | mirror (tools::Rectangle &rRect, const OutputDevice &, bool bBack=false) const |
void | mirror (vcl::Region &rRgn, const OutputDevice &rOutDev) const |
void | mirror (ImplControlValue &, const OutputDevice &) const |
basegfx::B2DPolyPolygon | mirror (const basegfx::B2DPolyPolygon &i_rPoly, const OutputDevice &rOutDev) const |
const basegfx::B2DHomMatrix & | getMirror (const OutputDevice &rOutDev) const |
bool | SetClipRegion (const vcl::Region &, const OutputDevice &rOutDev) |
void | DrawPixel (tools::Long nX, tools::Long nY, const OutputDevice &rOutDev) |
void | DrawPixel (tools::Long nX, tools::Long nY, Color nColor, const OutputDevice &rOutDev) |
void | DrawLine (tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2, const OutputDevice &rOutDev) |
void | DrawRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const OutputDevice &rOutDev) |
void | DrawPolyLine (sal_uInt32 nPoints, Point const *pPtAry, const OutputDevice &rOutDev) |
void | DrawPolygon (sal_uInt32 nPoints, const Point *pPtAry, const OutputDevice &rOutDev) |
void | DrawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry, const OutputDevice &rOutDev) |
bool | DrawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &i_rPolyPolygon, double i_fTransparency, const OutputDevice &i_rOutDev) |
bool | DrawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &i_rPolygon, double i_fTransparency, double i_fLineWidth, const std::vector< double > *i_pStroke, basegfx::B2DLineJoin i_eLineJoin, css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline, const OutputDevice &i_rOutDev) |
bool | DrawPolyLineBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry, const OutputDevice &rOutDev) |
bool | DrawPolygonBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry, const OutputDevice &rOutDev) |
bool | DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry, const OutputDevice &rOutDev) |
bool | DrawGradient (const tools::PolyPolygon &rPolyPoly, const Gradient &rGradient, const OutputDevice &rOutDev) |
void | CopyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, const OutputDevice &rOutDev) |
void | CopyBits (const SalTwoRect &rPosAry, const OutputDevice &rOutDev) |
void | CopyBits (const SalTwoRect &rPosAry, SalGraphics &rSrcGraphics, const OutputDevice &rOutDev, const OutputDevice &rSrcOutDev) |
void | DrawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const OutputDevice &rOutDev) |
void | DrawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rTransparentBitmap, const OutputDevice &rOutDev) |
void | DrawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor, const OutputDevice &rOutDev) |
std::shared_ptr< SalBitmap > | GetBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const OutputDevice &rOutDev) |
Color | GetPixel (tools::Long nX, tools::Long nY, const OutputDevice &rOutDev) |
void | Invert (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags, const OutputDevice &rOutDev) |
void | Invert (sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags, const OutputDevice &rOutDev) |
bool | DrawEPS (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize, const OutputDevice &rOutDev) |
bool | IsNativeControlSupported (ControlType, ControlPart) |
bool | HitTestNativeScrollbar (ControlPart nPart, const tools::Rectangle &rControlRegion, const Point &aPos, bool &rIsInside, const OutputDevice &rOutDev) |
bool | DrawNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, const OutputDevice &rOutDev, const Color &rBackgroundColor=COL_AUTO) |
bool | GetNativeControlRegion (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion, const OutputDevice &rOutDev) |
bool | UpdateSettings (AllSettings &) |
bool | BlendBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const OutputDevice &rOutDev) |
bool | BlendAlphaBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalSrcBitmap, const SalBitmap &rSalMaskBitmap, const SalBitmap &rSalAlphaBitmap, const OutputDevice &rOutDev) |
bool | DrawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap, const OutputDevice &rOutDev) |
bool | DrawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, double fAlpha, const OutputDevice &rOutDev) |
bool | HasFastDrawTransformedBitmap () const |
bool | DrawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency, const OutputDevice &rOutDev) |
virtual OUString | getRenderBackendName () const |
virtual SystemGraphicsData | GetGraphicsData () const =0 |
Protected Member Functions | |
virtual bool | setClipRegion (const vcl::Region &)=0 |
virtual void | drawPixel (tools::Long nX, tools::Long nY)=0 |
virtual void | drawPixel (tools::Long nX, tools::Long nY, Color nColor)=0 |
virtual void | drawLine (tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2)=0 |
virtual void | drawRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)=0 |
virtual void | drawPolyLine (sal_uInt32 nPoints, const Point *pPtAry)=0 |
virtual void | drawPolygon (sal_uInt32 nPoints, const Point *pPtAry)=0 |
virtual void | drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point **pPtAry)=0 |
virtual bool | drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency)=0 |
virtual bool | drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &, double fTransparency, double fLineWidth, const std::vector< double > *pStroke, basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle, bool bPixelSnapHairline)=0 |
virtual bool | drawPolyLineBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry)=0 |
virtual bool | drawPolygonBezier (sal_uInt32 nPoints, const Point *pPtAry, const PolyFlags *pFlgAry)=0 |
virtual bool | drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const Point *const *pPtAry, const PolyFlags *const *pFlgAry)=0 |
virtual bool | drawGradient (const tools::PolyPolygon &rPolyPoly, const Gradient &rGradient)=0 |
virtual bool | implDrawGradient (basegfx::B2DPolyPolygon const &, SalGradient const &) |
virtual void | copyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, bool bWindowInvalidate)=0 |
virtual void | copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics)=0 |
virtual void | drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap)=0 |
virtual void | drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap)=0 |
virtual void | drawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor)=0 |
virtual std::shared_ptr< SalBitmap > | getBitmap (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)=0 |
virtual Color | getPixel (tools::Long nX, tools::Long nY)=0 |
virtual void | invert (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags)=0 |
virtual void | invert (sal_uInt32 nPoints, const Point *pPtAry, SalInvert nFlags)=0 |
virtual bool | drawEPS (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, void *pPtr, sal_uInt32 nSize)=0 |
virtual bool | blendBitmap (const SalTwoRect &, const SalBitmap &rBitmap)=0 |
Blend the bitmap with the current buffer. More... | |
virtual bool | blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap)=0 |
Draw the bitmap by blending using the mask and alpha channel. More... | |
virtual bool | drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap)=0 |
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, double fAlpha)=0 |
draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system More... | |
virtual bool | hasFastDrawTransformedBitmap () const =0 |
Returns true if the drawTransformedBitmap() call is fast, and so it should be used directly without trying to optimize some calls e.g. More... | |
virtual bool | drawAlphaRect (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency)=0 |
Render solid rectangle with given transparency. More... | |
tools::Long | GetDeviceWidth (const OutputDevice &rOutDev) 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::WidgetDrawInterface * | forWidget () |
![]() | |
virtual | ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE |
virtual bool | isNativeControlSupported (ControlType eType, ControlPart ePart) |
Query the platform layer for native control support. More... | |
virtual bool | hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside) |
Query if a position is inside the native widget part. More... | |
virtual bool | drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions, const Color &rBackgroundColor) |
Draw the requested control. More... | |
virtual bool | getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) |
Get the native control regions for the control part. More... | |
virtual bool | updateSettings (AllSettings &rSettings) |
Static Protected Member Functions | |
static void | GetGlyphWidths (const vcl::AbstractTrueTypeFont &rTTF, const vcl::font::PhysicalFontFace &rFontFace, bool bVertical, std::vector< sal_Int32 > &rWidths, Ucs2UIntMap &rUnicodeEnc) |
static bool | CreateTTFfontSubset (vcl::AbstractTrueTypeFont &aTTF, const OString &rSysPath, const bool bVertical, const sal_GlyphId *pGlyphIds, const sal_uInt8 *pEncoding, sal_Int32 *pGlyphWidths, int nGlyphCount) |
static bool | CreateCFFfontSubset (const unsigned char *pFontBytes, int nByteLength, const OString &rSysPath, const sal_GlyphId *pGlyphIds, const sal_uInt8 *pEncoding, sal_Int32 *pGlyphWidths, int nGlyphCount, FontSubsetInfo &rInfo) |
static void | FillFontSubsetInfo (const vcl::TTGlobalFontInfo &rTTInfo, const OUString &pPSName, FontSubsetInfo &rInfo) |
Protected Attributes | |
bool | m_bAntiAlias: 1 |
flags which hold the SetAntialiasing() value from OutputDevice More... | |
bool | m_bTextRenderModeForResolutionIndependentLayout: 1 |
std::unique_ptr< vcl::WidgetDrawInterface > | m_pWidgetDraw |
Private Types | |
enum | MirrorMode { MirrorMode::NONE, MirrorMode::Antiparallel, MirrorMode::AntiparallelBiDi, MirrorMode::BiDi } |
Private Member Functions | |
MirrorMode | GetMirrorMode (const OutputDevice &rOutDev) const |
Private Attributes | |
SalLayoutFlags | m_nLayout |
MirrorMode | m_eLastMirrorMode |
tools::Long | m_nLastMirrorTranslation |
basegfx::B2DHomMatrix | m_aLastMirror |
Friends | |
class | vcl::FileDefinitionWidgetDraw |
Definition at line 77 of file salgdi.hxx.
|
strongprivate |
Enumerator | |
---|---|
NONE | |
Antiparallel | |
AntiparallelBiDi | |
BiDi |
Definition at line 641 of file salgdi.hxx.
SalGraphics::SalGraphics | ( | ) |
Definition at line 54 of file salgdilayout.cxx.
References BiDiRtl, false, AllSettings::GetLayoutRTL(), m_nLayout, and NONE.
|
override |
Definition at line 84 of file salgdilayout.cxx.
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::AddTempDevFont().
bool SalGraphics::BlendAlphaBitmap | ( | const SalTwoRect & | rPosAry, |
const SalBitmap & | rSalSrcBitmap, | ||
const SalBitmap & | rSalMaskBitmap, | ||
const SalBitmap & | rSalAlphaBitmap, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 850 of file salgdilayout.cxx.
References BiDiRtl, blendAlphaBitmap(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), SalTwoRect::mnDestWidth, and SalTwoRect::mnDestX.
Referenced by OutputDevice::DrawDeviceAlphaBitmap().
|
protectedpure virtual |
Draw the bitmap by blending using the mask and alpha channel.
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by BlendAlphaBitmap().
bool SalGraphics::BlendBitmap | ( | const SalTwoRect & | rPosAry, |
const SalBitmap & | rSalBitmap, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 836 of file salgdilayout.cxx.
References BiDiRtl, blendBitmap(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), SalTwoRect::mnDestWidth, and SalTwoRect::mnDestX.
Referenced by OutputDevice::BlendBitmap().
|
protectedpure virtual |
Blend the bitmap with the current buffer.
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by BlendBitmap().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::ImplClearAllFontData().
void SalGraphics::CopyArea | ( | tools::Long | nDestX, |
tools::Long | nDestY, | ||
tools::Long | nSrcX, | ||
tools::Long | nSrcY, | ||
tools::Long | nSrcWidth, | ||
tools::Long | nSrcHeight, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 612 of file salgdilayout.cxx.
References BiDiRtl, copyArea(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by vcl::WindowOutputDevice::CopyDeviceArea(), vcl::Window::ImplPosSizeWindow(), and vcl::Window::ImplScroll().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by CopyArea().
void SalGraphics::CopyBits | ( | const SalTwoRect & | rPosAry, |
const OutputDevice & | rOutDev | ||
) |
Definition at line 625 of file salgdilayout.cxx.
References BiDiRtl, copyBits(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), SalTwoRect::mnDestWidth, and SalTwoRect::mnDestX.
Referenced by OutputDevice::CopyDeviceArea(), OutputDevice::DrawOutDev(), vcl::WindowOutputDevice::DrawOutDevDirectProcess(), OutputDevice::DrawOutDevDirectProcess(), and VirtualDevice::InnerImplSetOutputSizePixel().
void SalGraphics::CopyBits | ( | const SalTwoRect & | rPosAry, |
SalGraphics & | rSrcGraphics, | ||
const OutputDevice & | rOutDev, | ||
const OutputDevice & | rSrcOutDev | ||
) |
Definition at line 637 of file salgdilayout.cxx.
References BiDiRtl, copyBits(), GetLayout(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), SalTwoRect::mnDestWidth, SalTwoRect::mnDestX, SalTwoRect::mnSrcWidth, and SalTwoRect::mnSrcX.
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by CopyBits().
|
staticprotected |
Definition at line 1049 of file salgdilayout.cxx.
References CFF_FONT, FontSubsetInfo::CreateFontSubset(), FILE, FontSubsetInfo::LoadFont(), and TYPE1_PFB.
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by vcl::PDFWriterImpl::emitFonts(), and vcl::PDFWriterImpl::emitSystemFont().
|
staticprotected |
Definition at line 978 of file salgdilayout.cxx.
References vcl::CreateTTFromTTGlyphs(), vcl::GetTTSimpleGlyphMetrics(), i, vcl::Ok, and SAL_WARN.
bool SalGraphics::DrawAlphaBitmap | ( | const SalTwoRect & | rPosAry, |
const SalBitmap & | rSourceBitmap, | ||
const SalBitmap & | rAlphaBitmap, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 866 of file salgdilayout.cxx.
References BiDiRtl, drawAlphaBitmap(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), SalTwoRect::mnDestWidth, and SalTwoRect::mnDestX.
Referenced by OutputDevice::DrawDeviceAlphaBitmap(), and OutputDevice::DrawDeviceBitmapEx().
|
protectedpure virtual |
Render bitmap with alpha channel.
rSourceBitmap | Source bitmap to blit |
rAlphaBitmap | Alpha channel to use for blitting |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawAlphaBitmap().
bool SalGraphics::DrawAlphaRect | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
sal_uInt8 | nTransparency, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 916 of file salgdilayout.cxx.
References BiDiRtl, drawAlphaRect(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::EmulateDrawTransparent().
|
protectedpure virtual |
Render solid rectangle with given transparency.
nX | Top left coordinate of rectangle |
nY | Bottom right coordinate of rectangle |
nWidth | Width of rectangle |
nHeight | Height of rectangle |
nTransparency | Transparency value (0-255) to use. 0 blits and opaque, 255 a fully transparent rectangle |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawAlphaRect().
void SalGraphics::DrawBitmap | ( | const SalTwoRect & | rPosAry, |
const SalBitmap & | rSalBitmap, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 654 of file salgdilayout.cxx.
References BiDiRtl, drawBitmap(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), SalTwoRect::mnDestWidth, and SalTwoRect::mnDestX.
Referenced by OutputDevice::DrawBitmap(), and OutputDevice::DrawDeviceBitmapEx().
void SalGraphics::DrawBitmap | ( | const SalTwoRect & | rPosAry, |
const SalBitmap & | rSalBitmap, | ||
const SalBitmap & | rTransparentBitmap, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 667 of file salgdilayout.cxx.
References BiDiRtl, drawBitmap(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), SalTwoRect::mnDestWidth, and SalTwoRect::mnDestX.
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by vcl::FileDefinitionWidgetDraw::drawBitmap(), and DrawBitmap().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
bool SalGraphics::DrawEPS | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
void * | pPtr, | ||
sal_uInt32 | nSize, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 728 of file salgdilayout.cxx.
References BiDiRtl, drawEPS(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::DrawEPS().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawEPS().
bool SalGraphics::DrawGradient | ( | const tools::PolyPolygon & | rPolyPoly, |
const Gradient & | rGradient, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 601 of file salgdilayout.cxx.
References BiDiRtl, drawGradient(), tools::PolyPolygon::getB2DPolyPolygon(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::DrawGradient().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawGradient().
void SalGraphics::DrawLine | ( | tools::Long | nX1, |
tools::Long | nY1, | ||
tools::Long | nX2, | ||
tools::Long | nY2, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 404 of file salgdilayout.cxx.
References BiDiRtl, drawLine(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::DrawGrid(), OutputDevice::DrawHatchLine_DrawLine(), OutputDevice::DrawLine(), and OutputDevice::ImplDrawWaveLine().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawLine().
void SalGraphics::DrawMask | ( | const SalTwoRect & | rPosAry, |
const SalBitmap & | rSalBitmap, | ||
Color | nMaskColor, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 681 of file salgdilayout.cxx.
References BiDiRtl, drawMask(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), SalTwoRect::mnDestWidth, and SalTwoRect::mnDestX.
Referenced by OutputDevice::DrawDeviceMask().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawMask().
bool SalGraphics::DrawNativeControl | ( | ControlType | nType, |
ControlPart | nPart, | ||
const tools::Rectangle & | rControlRegion, | ||
ControlState | nState, | ||
const ImplControlValue & | aValue, | ||
const OUString & | aCaption, | ||
const OutputDevice & | rOutDev, | ||
const Color & | rBackgroundColor = COL_AUTO |
||
) |
Definition at line 786 of file salgdilayout.cxx.
References BiDiRtl, ImplControlValue::clone(), vcl::WidgetDrawInterface::drawNativeControl(), forWidget(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), handleDamage(), comphelper::LibreOfficeKit::isActive(), tools::Rectangle::IsEmpty(), OutputDevice::IsRTLEnabled(), m_nLayout, m_pWidgetDraw, and mirror().
Referenced by OutputDevice::DrawNativeControl().
void SalGraphics::DrawPixel | ( | tools::Long | nX, |
tools::Long | nY, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 390 of file salgdilayout.cxx.
References BiDiRtl, drawPixel(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::DrawGrid(), OutputDevice::DrawPixel(), and OutputDevice::ImplDrawWavePixel().
void SalGraphics::DrawPixel | ( | tools::Long | nX, |
tools::Long | nY, | ||
Color | nColor, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 397 of file salgdilayout.cxx.
References BiDiRtl, drawPixel(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawPixel().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
void SalGraphics::DrawPolygon | ( | sal_uInt32 | nPoints, |
const Point * | pPtAry, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 433 of file salgdilayout.cxx.
References BiDiRtl, drawPolygon(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), and Point.
Referenced by OutputDevice::DrawChord(), OutputDevice::DrawEllipse(), OutputDevice::drawLine(), OutputDevice::DrawPie(), OutputDevice::DrawPolygon(), OutputDevice::DrawRect(), OutputDevice::ImplDrawPolygon(), and OutputDevice::ImplDrawPolyPolygon().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawPolygon().
bool SalGraphics::DrawPolygonBezier | ( | sal_uInt32 | nPoints, |
const Point * | pPtAry, | ||
const PolyFlags * | pFlgAry, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 517 of file salgdilayout.cxx.
References BiDiRtl, drawPolygonBezier(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), and Point.
Referenced by OutputDevice::DrawPolygon(), and OutputDevice::ImplDrawPolyPolygon().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawPolygonBezier().
void SalGraphics::DrawPolyLine | ( | sal_uInt32 | nPoints, |
Point const * | pPtAry, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 421 of file salgdilayout.cxx.
References BiDiRtl, drawPolyLine(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), and Point.
Referenced by OutputDevice::DrawArc(), OutputDevice::DrawChord(), OutputDevice::DrawEllipse(), OutputDevice::DrawLine(), OutputDevice::drawLine(), OutputDevice::DrawPie(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), OutputDevice::drawPolyLine(), OutputDevice::DrawPolyLineDirectInternal(), OutputDevice::DrawPolyPolygon(), OutputDevice::DrawRect(), OutputDevice::DrawTransparent(), OutputDevice::DrawTransparentNatively(), OutputDevice::ImplDrawPolyPolygonWithB2DPolyPolygon(), and OutputDevice::ImplDrawWaveLineBezier().
bool SalGraphics::DrawPolyLine | ( | const basegfx::B2DHomMatrix & | rObjectToDevice, |
const basegfx::B2DPolygon & | i_rPolygon, | ||
double | i_fTransparency, | ||
double | i_fLineWidth, | ||
const std::vector< double > * | i_pStroke, | ||
basegfx::B2DLineJoin | i_eLineJoin, | ||
css::drawing::LineCap | i_eLineCap, | ||
double | i_fMiterMinimumAngle, | ||
bool | bPixelSnapHairline, | ||
const OutputDevice & | i_rOutDev | ||
) |
Definition at line 557 of file salgdilayout.cxx.
References BiDiRtl, drawPolyLine(), getMirror(), basegfx::B2DHomMatrix::isIdentity(), OutputDevice::IsRTLEnabled(), and m_nLayout.
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by vcl::FileDefinitionWidgetDraw::drawPolyLine(), and DrawPolyLine().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
bool SalGraphics::DrawPolyLineBezier | ( | sal_uInt32 | nPoints, |
const Point * | pPtAry, | ||
const PolyFlags * | pFlgAry, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 503 of file salgdilayout.cxx.
References BiDiRtl, drawPolyLineBezier(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), and Point.
Referenced by OutputDevice::DrawPolyLine().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawPolyLineBezier().
void SalGraphics::DrawPolyPolygon | ( | sal_uInt32 | nPoly, |
const sal_uInt32 * | pPoints, | ||
const Point ** | pPtAry, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 445 of file salgdilayout.cxx.
References BiDiRtl, drawPolyPolygon(), i, OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), and Point.
Referenced by OutputDevice::drawLine(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyPolygon(), OutputDevice::DrawTransparent(), OutputDevice::DrawTransparentNatively(), OutputDevice::ImplDrawPolyPolygon(), and OutputDevice::ImplDrawPolyPolygonWithB2DPolyPolygon().
bool SalGraphics::DrawPolyPolygon | ( | const basegfx::B2DHomMatrix & | rObjectToDevice, |
const basegfx::B2DPolyPolygon & | i_rPolyPolygon, | ||
double | i_fTransparency, | ||
const OutputDevice & | i_rOutDev | ||
) |
Definition at line 478 of file salgdilayout.cxx.
References BiDiRtl, drawPolyPolygon(), getMirror(), basegfx::B2DHomMatrix::isIdentity(), OutputDevice::IsRTLEnabled(), and m_nLayout.
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by vcl::FileDefinitionWidgetDraw::drawPolyPolygon(), and DrawPolyPolygon().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
bool SalGraphics::DrawPolyPolygonBezier | ( | sal_uInt32 | nPoly, |
const sal_uInt32 * | pPoints, | ||
const Point *const * | pPtAry, | ||
const PolyFlags *const * | pFlgAry, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 531 of file salgdilayout.cxx.
References BiDiRtl, drawPolyPolygonBezier(), i, OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), and Point.
Referenced by OutputDevice::ImplDrawPolyPolygon().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawPolyPolygonBezier().
void SalGraphics::DrawRect | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 414 of file salgdilayout.cxx.
References BiDiRtl, drawRect(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::DrawRect(), OutputDevice::ImplDrawTextRect(), and OutputDevice::ImplDrawWavePixel().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by DrawRect().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by GenericSalLayout::DrawText().
bool SalGraphics::DrawTransformedBitmap | ( | const basegfx::B2DPoint & | rNull, |
const basegfx::B2DPoint & | rX, | ||
const basegfx::B2DPoint & | rY, | ||
const SalBitmap & | rSourceBitmap, | ||
const SalBitmap * | pAlphaBitmap, | ||
double | fAlpha, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 881 of file salgdilayout.cxx.
References BiDiRtl, drawTransformedBitmap(), getMirror(), basegfx::B2DHomMatrix::isIdentity(), OutputDevice::IsRTLEnabled(), and m_nLayout.
Referenced by OutputDevice::DrawTransformBitmapExDirect().
|
protectedpure virtual |
draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system
fAlpha | additional alpha (0 to 1) to apply while drawing |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Definition at line 89 of file salgdilayout.cxx.
Referenced by DrawTransformedBitmap().
|
staticprotected |
Definition at line 1064 of file salgdilayout.cxx.
References vcl::TTGlobalFontInfo_::ascender, vcl::TTGlobalFontInfo_::descender, FontSubsetInfo::m_aFontBBox, FontSubsetInfo::m_aPSName, FontSubsetInfo::m_nAscent, FontSubsetInfo::m_nCapHeight, FontSubsetInfo::m_nDescent, FontSubsetInfo::m_nFontType, Point, SFNT_TTF, vcl::TTGlobalFontInfo_::typoAscender, vcl::TTGlobalFontInfo_::typoDescender, vcl::TTGlobalFontInfo_::winAscent, vcl::TTGlobalFontInfo_::winDescent, vcl::TTGlobalFontInfo_::xMax, vcl::TTGlobalFontInfo_::xMin, vcl::TTGlobalFontInfo_::yMax, and vcl::TTGlobalFontInfo_::yMin.
|
inlineprotected |
Definition at line 675 of file salgdi.hxx.
Referenced by DrawNativeControl(), GetNativeControlRegion(), HitTestNativeScrollbar(), IsNativeControlSupported(), and UpdateSettings().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by EmbeddedFontsHelper::fontFileUrl().
|
inline |
Definition at line 94 of file salgdi.hxx.
Referenced by SvpSalGraphics::copySource(), vcl::FileDefinitionWidgetDraw::drawNativeControl(), and SvpSalGraphics::getCairoContext().
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by OutputDevice::GetBitCount().
std::shared_ptr< SalBitmap > SalGraphics::GetBitmap | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 695 of file salgdilayout.cxx.
References BiDiRtl, getBitmap(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::GetBitmap().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by GetBitmap().
|
pure virtual |
|
inlineprotected |
Definition at line 107 of file salgdilayout.cxx.
References GetGraphicsWidth(), OutputDevice::GetOutputWidthPixel(), and OutputDevice::IsVirtual().
Referenced by getMirror(), and mirror().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by EmbeddedFontsHelper::fontFileUrl().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::GetFontCapabilities().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::GetFontCharMap().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::ImplNewFont().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by vcl::PDFWriterImpl::emitSystemFont(), and vcl::PDFFontCache::getGlyphWidth().
|
staticprotected |
Definition at line 932 of file salgdilayout.cxx.
References FontCharMap::GetCharCount(), FontCharMap::GetFirstChar(), vcl::font::PhysicalFontFace::GetFontCharMap(), FontCharMap::GetGlyphIndex(), FontCharMap::GetNextChar(), vcl::GetTTSimpleGlyphMetrics(), vcl::AbstractTrueTypeFont::glyphCount(), i, tools::SvRef< T >::is(), and SAL_WARN.
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::GetSystemGfxData().
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by GetDeviceWidth(), and OutputDevice::ImplDrawTextDirect().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by SalGraphicsAutoDelegateToImpl::blendAlphaBitmap(), SalGraphicsAutoDelegateToImpl::blendBitmap(), SalGraphicsAutoDelegateToImpl::copyArea(), SalGraphicsAutoDelegateToImpl::copyBits(), SalGraphicsAutoDelegateToImpl::drawAlphaBitmap(), SalGraphicsAutoDelegateToImpl::drawAlphaRect(), SalGraphicsAutoDelegateToImpl::drawBitmap(), SalGraphicsAutoDelegateToImpl::drawEPS(), SalGraphicsAutoDelegateToImpl::drawGradient(), SalGraphicsAutoDelegateToImpl::drawLine(), SalGraphicsAutoDelegateToImpl::drawMask(), SalGraphicsAutoDelegateToImpl::drawPixel(), SalGraphicsAutoDelegateToImpl::drawPolygon(), SalGraphicsAutoDelegateToImpl::drawPolygonBezier(), SalGraphicsAutoDelegateToImpl::drawPolyLine(), SalGraphicsAutoDelegateToImpl::drawPolyLineBezier(), SalGraphicsAutoDelegateToImpl::drawPolyPolygon(), SalGraphicsAutoDelegateToImpl::drawPolyPolygonBezier(), SalGraphicsAutoDelegateToImpl::drawRect(), SalGraphicsAutoDelegateToImpl::drawTransformedBitmap(), SalGraphicsAutoDelegateToImpl::GetBitCount(), SalGraphicsAutoDelegateToImpl::getBitmap(), SalGraphicsAutoDelegateToImpl::GetGraphicsWidth(), SalGraphicsAutoDelegateToImpl::getPixel(), getRenderBackendName(), SalGraphicsAutoDelegateToImpl::getRenderBackendName(), SalGraphicsAutoDelegateToImpl::hasFastDrawTransformedBitmap(), SalGraphicsAutoDelegateToImpl::implDrawGradient(), SalGraphicsAutoDelegateToImpl::invert(), SalGraphicsAutoDelegateToImpl::ResetClipRegion(), SalGraphicsAutoDelegateToImpl::setClipRegion(), SalGraphicsAutoDelegateToImpl::SetFillColor(), SalGraphicsAutoDelegateToImpl::SetLineColor(), SalGraphicsAutoDelegateToImpl::SetROPFillColor(), SalGraphicsAutoDelegateToImpl::SetROPLineColor(), SalGraphicsAutoDelegateToImpl::SetXORMode(), and SalGraphicsAutoDelegateToImpl::supportsOperation().
|
inline |
Definition at line 222 of file salgdi.hxx.
Referenced by CopyBits(), OutputDevice::DrawOutDevDirectProcess(), OutputDevice::HasMirroredGraphics(), and OutputDevice::ImplIsAntiparallel().
const basegfx::B2DHomMatrix & SalGraphics::getMirror | ( | const OutputDevice & | rOutDev | ) | const |
Definition at line 287 of file salgdilayout.cxx.
References Antiparallel, AntiparallelBiDi, BiDi, basegfx::utils::createScaleTranslateB2DHomMatrix(), basegfx::utils::createTranslateB2DHomMatrix(), GetDeviceWidth(), GetMirrorMode(), OutputDevice::GetOutOffXPixel(), OutputDevice::GetOutputWidthPixel(), basegfx::B2DHomMatrix::identity(), m_aLastMirror, m_eLastMirrorMode, m_nLastMirrorTranslation, NONE, SAL_WARN_IF, and w.
Referenced by DrawPolyLine(), DrawPolyPolygon(), DrawTransformedBitmap(), and mirror().
|
private |
Definition at line 273 of file salgdilayout.cxx.
References Antiparallel, AntiparallelBiDi, BiDi, BiDiRtl, OutputDevice::ImplIsAntiparallel(), m_nLayout, and NONE.
Referenced by getMirror().
bool SalGraphics::GetNativeControlRegion | ( | ControlType | nType, |
ControlPart | nPart, | ||
const tools::Rectangle & | rControlRegion, | ||
ControlState | nState, | ||
const ImplControlValue & | aValue, | ||
tools::Rectangle & | rNativeBoundingRegion, | ||
tools::Rectangle & | rNativeContentRegion, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 814 of file salgdilayout.cxx.
References BiDiRtl, ImplControlValue::clone(), forWidget(), vcl::WidgetDrawInterface::getNativeControlRegion(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::GetNativeControlRegion().
Color SalGraphics::GetPixel | ( | tools::Long | nX, |
tools::Long | nY, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 702 of file salgdilayout.cxx.
References BiDiRtl, getPixel(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::GetPixel().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by GetPixel().
|
virtual |
Reimplemented in SalGraphicsAutoDelegateToImpl, QtGraphics, GtkSalGraphics, and QtSvpGraphics.
Definition at line 925 of file salgdilayout.cxx.
References GetImpl(), and SalGraphicsImpl::getRenderBackendName().
Referenced by OutputDevice::GetRenderBackendName().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, GtkSalGraphics, X11SalGraphics, GenPspGraphics, SvpSalGraphics, and QtSvpGraphics.
Referenced by Printer::ImplUpdatePageData().
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::getFallbackLayout(), and OutputDevice::ImplLayout().
|
inline |
Definition at line 104 of file salgdi.hxx.
|
inlineprotectedvirtual |
Handle damage done by drawing with a widget draw override.
If a m_pWidgetDraw is set and successfully draws using drawNativeControl, this function is called to handle the damage done to the graphics buffer.
rDamagedRegion | the region damaged by drawNativeControl. |
Reimplemented in QtGraphics, GtkSalGraphics, and QtSvpGraphics.
Definition at line 705 of file salgdi.hxx.
Referenced by DrawNativeControl().
bool SalGraphics::HasFastDrawTransformedBitmap | ( | ) | const |
Definition at line 911 of file salgdilayout.cxx.
References hasFastDrawTransformedBitmap().
Referenced by OutputDevice::DrawTransformedBitmapEx(), and OutputDevice::HasFastDrawTransformedBitmap().
|
protectedpure virtual |
Returns true if the drawTransformedBitmap() call is fast, and so it should be used directly without trying to optimize some calls e.g.
by calling drawBitmap() instead (which is faster for most VCL backends). These optimizations are not done unconditionally because they may be counter-productive for some fast VCL backends (for example, some OutputDevice optimizations could try access the pixels, which would make performance worse for GPU-backed backends). See also tdf#138068.
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by HasFastDrawTransformedBitmap().
bool SalGraphics::HitTestNativeScrollbar | ( | ControlPart | nPart, |
const tools::Rectangle & | rControlRegion, | ||
const Point & | aPos, | ||
bool & | rIsInside, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 735 of file salgdilayout.cxx.
References BiDiRtl, forWidget(), vcl::WidgetDrawInterface::hitTestNativeControl(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), mirror2(), Point, pt, and Scrollbar.
Referenced by OutputDevice::HitTestNativeScrollbar().
|
inlineprotectedvirtual |
Reimplemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Definition at line 525 of file salgdi.hxx.
Referenced by vcl::FileDefinitionWidgetDraw::implDrawGradient().
|
protected |
Definition at line 66 of file salgdilayout.cxx.
References m_pWidgetDraw.
void SalGraphics::Invert | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
SalInvert | nFlags, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 709 of file salgdilayout.cxx.
References BiDiRtl, invert(), OutputDevice::IsRTLEnabled(), m_nLayout, and mirror().
Referenced by OutputDevice::Invert(), and vcl::Window::InvertTracking().
void SalGraphics::Invert | ( | sal_uInt32 | nPoints, |
const Point * | pPtAry, | ||
SalInvert | nFlags, | ||
const OutputDevice & | rOutDev | ||
) |
Definition at line 716 of file salgdilayout.cxx.
References BiDiRtl, invert(), OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), and Point.
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by Invert().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
|
inline |
Definition at line 695 of file salgdi.hxx.
References forWidget(), and vcl::WidgetDrawInterface::isNativeControlSupported().
Referenced by OutputDevice::IsNativeControlSupported().
void SalGraphics::mirror | ( | tools::Long & | nX, |
const OutputDevice & | rOutDev | ||
) | const |
Definition at line 112 of file salgdilayout.cxx.
References BiDiRtl, GetDeviceWidth(), OutputDevice::GetOutOffXPixel(), OutputDevice::GetOutputWidthPixel(), OutputDevice::ImplIsAntiparallel(), m_nLayout, and w.
Referenced by BlendAlphaBitmap(), BlendBitmap(), CopyArea(), CopyBits(), DrawAlphaBitmap(), DrawAlphaRect(), DrawBitmap(), DrawEPS(), DrawGradient(), DrawLine(), DrawMask(), DrawNativeControl(), OutputDevice::DrawOutDevDirectProcess(), DrawPixel(), DrawPolygon(), DrawPolygonBezier(), DrawPolyLine(), DrawPolyLineBezier(), DrawPolyPolygon(), DrawPolyPolygonBezier(), DrawRect(), GetBitmap(), GetNativeControlRegion(), GetPixel(), HitTestNativeScrollbar(), Invert(), mirror(), mirror2(), and SetClipRegion().
void SalGraphics::mirror | ( | tools::Long & | nX, |
tools::Long | nWidth, | ||
const OutputDevice & | rOutDev, | ||
bool | bBack = false |
||
) | const |
Definition at line 136 of file salgdilayout.cxx.
References BiDiRtl, GetDeviceWidth(), OutputDevice::GetOutOffXPixel(), OutputDevice::GetOutputWidthPixel(), OutputDevice::ImplIsAntiparallel(), m_nLayout, and w.
bool SalGraphics::mirror | ( | sal_uInt32 | nPoints, |
const Point * | pPtAry, | ||
Point * | pPtAry2, | ||
const OutputDevice & | rOutDev | ||
) | const |
Definition at line 166 of file salgdilayout.cxx.
References BiDiRtl, GetDeviceWidth(), OutputDevice::GetOutOffXPixel(), OutputDevice::GetOutputWidthPixel(), i, OutputDevice::ImplIsAntiparallel(), m_nLayout, and w.
void SalGraphics::mirror | ( | tools::Rectangle & | rRect, |
const OutputDevice & | rOutDev, | ||
bool | bBack = false |
||
) | const |
Definition at line 246 of file salgdilayout.cxx.
References tools::Rectangle::GetWidth(), tools::Rectangle::Left(), mirror(), tools::Rectangle::Move(), and x.
void SalGraphics::mirror | ( | vcl::Region & | rRgn, |
const OutputDevice & | rOutDev | ||
) | const |
Definition at line 209 of file salgdilayout.cxx.
References vcl::Region::GetAsB2DPolyPolygon(), vcl::Region::GetRegionRectangles(), vcl::Region::HasPolyPolygonOrB2DPolyPolygon(), mirror(), rectangle(), vcl::Region::SetEmpty(), and vcl::Region::Union().
void SalGraphics::mirror | ( | ImplControlValue & | rVal, |
const OutputDevice & | rOutDev | ||
) | const |
Definition at line 750 of file salgdilayout.cxx.
References ImplControlValue::getType(), ScrollbarValue::maButton1Rect, ScrollbarValue::maButton2Rect, ToolbarValue::maGripRect, SpinbuttonValue::maLowerRect, ScrollbarValue::maThumbRect, SliderValue::maThumbRect, SpinbuttonValue::maUpperRect, mirror(), Scrollbar, Slider, Spinbox, SpinButtons, and Toolbar.
basegfx::B2DPolyPolygon SalGraphics::mirror | ( | const basegfx::B2DPolyPolygon & | i_rPoly, |
const OutputDevice & | rOutDev | ||
) | const |
Definition at line 256 of file salgdilayout.cxx.
References basegfx::B2DPolyPolygon::flip(), getMirror(), basegfx::B2DHomMatrix::isIdentity(), and basegfx::B2DPolyPolygon::transform().
tools::Long SalGraphics::mirror2 | ( | tools::Long | nX, |
const OutputDevice & | rOutDev | ||
) | const |
Definition at line 101 of file salgdilayout.cxx.
References mirror().
Referenced by HitTestNativeScrollbar().
|
inline |
Definition at line 153 of file salgdi.hxx.
Referenced by OutputDevice::ImplClearFontData(), Printer::ImplReleaseFonts(), and OutputDevice::ImplReleaseFonts().
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by OutputDevice::InitClipRegion().
|
inline |
Definition at line 85 of file salgdi.hxx.
Referenced by vcl::WindowOutputDevice::AcquireGraphics(), VirtualDevice::AcquireGraphics(), Printer::AcquireGraphics(), vcl::FileDefinitionWidgetDraw::drawNativeControl(), and OutputDevice::SetAntialiasing().
bool SalGraphics::SetClipRegion | ( | const vcl::Region & | i_rClip, |
const OutputDevice & | rOutDev | ||
) |
Definition at line 379 of file salgdilayout.cxx.
References BiDiRtl, OutputDevice::IsRTLEnabled(), m_nLayout, mirror(), and setClipRegion().
Referenced by OutputDevice::SelectClipRegion().
|
protectedpure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by SetClipRegion().
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by OutputDevice::DrawComplexGradient(), OutputDevice::DrawLinearGradient(), OutputDevice::DrawTransparentNatively(), OutputDevice::ImplDrawStraightTextLine(), OutputDevice::ImplDrawStrikeoutLine(), OutputDevice::ImplDrawTextBackground(), OutputDevice::InitFillColor(), Printer::SetWaveLineColors(), and OutputDevice::SetWaveLineColors().
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
|
pure virtual |
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::getFallbackLayout(), and OutputDevice::InitFont().
|
inline |
Definition at line 223 of file salgdi.hxx.
Referenced by VirtualDevice::EnableRTL().
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by OutputDevice::DrawGradient(), OutputDevice::ImplDrawStraightTextLine(), OutputDevice::ImplDrawStrikeoutLine(), OutputDevice::ImplDrawTextBackground(), OutputDevice::ImplDrawWaveLine(), OutputDevice::ImplDrawWaveLineBezier(), OutputDevice::InitLineColor(), Printer::SetWaveLineColors(), and OutputDevice::SetWaveLineColors().
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by OutputDevice::InitFillColor().
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by OutputDevice::InitLineColor().
Implemented in AquaSalGraphics, WinSalGraphics, QtGraphics, X11SalGraphics, GenPspGraphics, and SvpSalGraphics.
Referenced by OutputDevice::ImplInitTextColor().
|
inline |
Definition at line 99 of file salgdi.hxx.
Referenced by OutputDevice::SetTextRenderModeForResolutionIndependentLayout().
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by vcl::WindowOutputDevice::AcquireGraphics(), VirtualDevice::AcquireGraphics(), Printer::AcquireGraphics(), and OutputDevice::SetRasterOp().
|
pure virtual |
Implemented in SalGraphicsAutoDelegateToImpl, and WinSalGraphics.
Referenced by OutputDevice::DrawLine(), OutputDevice::drawLine(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLineDirectInternal(), OutputDevice::DrawPolyPolygon(), OutputDevice::DrawTransparent(), OutputDevice::DrawTransparentNatively(), OutputDevice::ImplDrawPolyPolygonWithB2DPolyPolygon(), and OutputDevice::SupportsOperation().
|
inline |
Definition at line 700 of file salgdi.hxx.
References forWidget(), and vcl::WidgetDrawInterface::updateSettings().
|
friend |
Definition at line 471 of file salgdi.hxx.
|
private |
Definition at line 650 of file salgdi.hxx.
Referenced by getMirror().
|
protected |
flags which hold the SetAntialiasing() value from OutputDevice
Definition at line 656 of file salgdi.hxx.
|
protected |
Definition at line 657 of file salgdi.hxx.
|
private |
Definition at line 648 of file salgdi.hxx.
Referenced by getMirror().
|
private |
Definition at line 649 of file salgdi.hxx.
Referenced by getMirror().
|
private |
Definition at line 638 of file salgdi.hxx.
Referenced by BlendAlphaBitmap(), BlendBitmap(), CopyArea(), CopyBits(), DrawAlphaBitmap(), DrawAlphaRect(), DrawBitmap(), DrawEPS(), DrawGradient(), DrawLine(), DrawMask(), DrawNativeControl(), DrawPixel(), DrawPolygon(), DrawPolygonBezier(), DrawPolyLine(), DrawPolyLineBezier(), DrawPolyPolygon(), DrawPolyPolygonBezier(), DrawRect(), DrawTransformedBitmap(), GetBitmap(), GetMirrorMode(), GetNativeControlRegion(), GetPixel(), HitTestNativeScrollbar(), Invert(), mirror(), SalGraphics(), and SetClipRegion().
|
protected |
Definition at line 674 of file salgdi.hxx.
Referenced by DrawNativeControl(), and initWidgetDrawBackends().