125 if ( !nHorzRound && !nVertRound )
133 if ( aRoundRectPoly.
GetSize() >= 2 )
185 sal_uInt16 nPoints = rPoly.
GetSize();
216 const sal_uInt32 nMaxX(rPos.
X() + rSize.
Width());
217 const sal_uInt32 nMaxY(rPos.
Y() + rSize.
Height());
222 for(sal_uInt32
x(0), nX(rPos.
X()); nX < nMaxX;
x++, nX += nLen)
224 const sal_uInt32 nRight(std::min(nMaxX, nX + nLen));
226 for(sal_uInt32
y(0), nY(rPos.
Y()); nY < nMaxY;
y++, nY += nLen)
228 const sal_uInt32 nBottom(std::min(nMaxY, nY + nLen));
271 std::vector< sal_Int32 > aVertBuf;
272 std::vector< sal_Int32 > aHorzBuf;
276 aVertBuf.resize( aDstRect.
GetHeight() / nDistY + 2 );
277 aVertBuf[ nVertCount++ ] = nStartY;
278 while( ( nY += nDistY ) <= nBottom )
286 aHorzBuf.resize( aDstRect.
GetWidth() / nDistX + 2 );
287 aHorzBuf[ nHorzCount++ ] = nStartX;
288 while( ( nX += nDistX ) <= nRight )
300 const bool bOldMap =
mbMap;
307 for(
tools::Long j = 0,
Y = aVertBuf[
i ]; j < nHorzCount; j++ )
Size GetOutputSize() const
virtual void InitClipRegion()
SAL_DLLPRIVATE tools::Long ImplLogicYToDevicePixel(tools::Long nY) const
Convert a logical Y coordinate to a device pixel's Y coordinate.
void EnableMapMode(bool bEnable=true)
SAL_DLLPRIVATE bool is_double_buffered_window() const
virtual void DrawBorder(tools::Rectangle aBorderRect)
SAL_DLLPRIVATE void InitLineColor()
SAL_DLLPRIVATE tools::Rectangle ImplLogicToDevicePixel(const tools::Rectangle &rLogicRect) const
Convert a logical rectangle to a rectangle in physical device pixel units.
virtual bool AcquireGraphics() const =0
Acquire a graphics device that the output device uses to draw on.
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
SAL_DLLPRIVATE bool ImplIsRecordLayout() const
void DrawRect(const tools::Rectangle &rRect)
void DrawCheckered(const Point &rPos, const Size &rSize, sal_uInt32 nLen=8, Color aStart=COL_WHITE, Color aEnd=COL_BLACK)
Fill the given rectangle with checkered rectangles of size nLen x nLen using the colors aStart and aE...
SAL_DLLPRIVATE void InitFillColor()
SAL_DLLPRIVATE tools::Long ImplLogicHeightToDevicePixel(tools::Long nHeight) const
Convert a logical height to a height in units of device pixels.
void Invert(const tools::Rectangle &rRect, InvertFlags nFlags=InvertFlags::NONE)
SAL_DLLPRIVATE tools::Long ImplLogicWidthToDevicePixel(tools::Long nWidth) const
Convert a logical width to a width in units of device pixels.
SalGraphics * mpGraphics
Graphics context to draw on.
void DrawGrid(const tools::Rectangle &rRect, const Size &rDist, DrawGridFlags nFlags)
bool IsDeviceOutputNecessary() const
VclPtr< VirtualDevice > mpAlphaVDev
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
SAL_DLLPRIVATE tools::Long ImplLogicXToDevicePixel(tools::Long nX) const
Convert a logical X coordinate to a device pixel's X coordinate.
constexpr tools::Long Y() const
constexpr tools::Long X() const
void DrawPixel(tools::Long nX, tools::Long nY, const OutputDevice &rOutDev)
void DrawLine(tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2, const OutputDevice &rOutDev)
void Invert(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags, 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)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
tools::Long FRound(double fVal)
BmpMirrorFlags AdjustTwoRect(SalTwoRect &rTwoRect, const Size &rSizePix)