39 if ( nSide && !(nSide & 1) )
49 rRect.
Move( (nWidth-nSide)/2, (nHeight-nSide)/2 );
56 const tools::Long nSide = AdjustRectToSquare( nRect );
227 triangle.
Move( 0, n2 );
242 triangle.
Move( 0, -n2 );
260 const tools::Long diff = std::max<tools::Long>( 0, n8 - 1 );
263 cross.SetPoint(
Point( nRect.
Left(), nRect.
Top() + diff ), 1 );
264 cross.SetPoint(
Point( aCenter.X() - diff, aCenter.Y()), 2 );
268 cross.SetPoint(
Point( aCenter.X(), aCenter.Y() + diff ), 6 );
272 cross.SetPoint(
Point( aCenter.X() + diff, aCenter.Y()), 10 );
273 cross.SetPoint(
Point( nRect.
Right(), nRect.
Top() + diff ), 11 );
275 cross.SetPoint(
Point( nRect.
Right() - diff, nRect.
Top()), 13 );
276 cross.SetPoint(
Point( aCenter.X(), aCenter.Y() - diff ), 14 );
277 cross.SetPoint(
Point( nRect.
Left() + diff, nRect.
Top()), 15 );
356 nRect.
Right(), aCenter.Y()+n16 ) );
358 aCenter.X()+n16, nRect.
Bottom() ) );
367 const Color *
const pColor,
const bool bRound =
false )
378 if ( (nLineWidth == 1) && (nLineHeight == 1) )
403 Size( nWidth, nLineHeight ) ) );
405 Size( nLineWidth, nHeight ) ) );
416 const Color& rLeftTopColor,
const Color& rRightBottomColor )
445 ImplDrawDPILineRect( pDev, aFillRect, &aBlackColor );
448 ImplDrawDPILineRect( pDev, aFillRect, &aBlackColor );
462 aOrigFillRect.
Right(), aFillRect.
Top()-1 ) );
464 aFillRect.
Left()-1, aOrigFillRect.
Bottom() ) );
487 ImplDrawDPILineRect( pDev, aFillRect, &aDefBtnColor );
517 ImplDraw2ColorFrame( pDev, aFillRect, aColor1, aColor2 );
534 ImplDraw2ColorFrame( pDev, aFillRect, aColor1, aColor2 );
566 bFlatBorders =
false;
581 nControlFlags |=
static_cast<tools::Long>(pWin->
GetType() == WindowType::BORDERWINDOW ?
594 aControlValue, OUString()) )
609 ImplDrawDPILineRect( pDev, rRect,
nullptr, bRound );
617 (bRound && aColor.
IsDark()) ||
626 ImplDrawDPILineRect( pDev, rRect, &aColor, bRound );
683 ImplDraw2ColorFrame( pDev, rRect,
689 ImplDraw2ColorFrame( pDev, rRect,
698 ImplDraw2ColorFrame( pDev, rRect,
701 ImplDraw2ColorFrame( pDev, rRect,
707 ImplDraw2ColorFrame( pDev, rRect,
710 ImplDraw2ColorFrame( pDev, rRect,
719 ImplDraw2ColorFrame( pDev, rRect,
724 ImplDraw2ColorFrame( pDev, rRect,
731 ImplDraw2ColorFrame( pDev, rRect,
736 ImplDraw2ColorFrame( pDev, rRect,
769 Color nColor(rColor);
796 ImplDrawSymbol(
mpOutDev, aRect, eType );
805 const Color& rLeftTopColor,
806 const Color& rRightBottomColor )
812 ImplDraw2ColorFrame(
mpOutDev, aRect, rLeftTopColor, rRightBottomColor );
857 Color aTempColor = aLightColor;
858 aLightColor = aShadowColor;
859 aShadowColor = aTempColor;
862 DrawFrame( rRect, aLightColor, aShadowColor );
916 ImplDrawButton(
mpOutDev, aRect, nStyle );
979 Point aStart( rStart ), aStop( rStop );
1004 aStart.AdjustX( 1 );
1009 aStart.AdjustY( 1 );
1026 const sal_Int32 nNumberOfPoints = 3;
1030 float fDistance = aOutputSize.
Height();
1031 fDistance /= (nNumberOfPoints + 1);
1034 nRadius /= (nNumberOfPoints + 2);
1039 round(fDistance *
i) - nRadius,
1040 nHalfWidth + nRadius,
1041 round(fDistance * i) + nRadius);
const Color & GetShadowColor() const
OutDevType GetOutDevType() const
virtual Color GetMonochromeButtonColor()
const Wallpaper & GetBackground() const
const StyleSettings & GetStyleSettings() const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
const Color & GetFaceColor() const
bool IsMapModeEnabled() const
void DrawFrame(const tools::Rectangle &rRect, const Color &rLeftTopColor, const Color &rRightBottomColor)
void DrawPolygon(const tools::Polygon &rPoly)
Render the given polygon.
SAL_DLLPRIVATE vcl::Window * ImplGetFrameWindow() const
void EnableMapMode(bool bEnable=true)
tools::Rectangle DrawButton(const tools::Rectangle &rRect, DrawButtonFlags nStyle)
const Color & GetLightBorderColor() const
constexpr tools::Long Width() const
bool GetUseFlatMenus() const
const Color & GetLightColor() const
void IncreaseLuminance(sal_uInt8 cLumInc)
sal_uInt16 GetColorError(const Color &rCompareColor) const
void DrawLine(const Point &rStartPt, const Point &rEndPt)
void DrawHighlightFrame(const tools::Rectangle &rRect, DrawHighlightFrameStyle nStyle)
void DrawRect(const tools::Rectangle &rRect)
const Color & GetDarkShadowColor() const
bool IsRTLEnabled() const
void DecreaseLuminance(sal_uInt8 cLumDec)
VclPtr< OutputDevice > mpOutDev
bool IsNativeWidgetEnabled() const
const Color & GetColor() const
virtual bool HasMirroredGraphics() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_GRAY
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
const Color & GetLineColor() const
bool GetNativeControlRegion(ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) const
Query the native control's actual drawing region (including adornment)
bool DrawNativeControl(ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, const Color &rBackgroundColor=COL_AUTO)
Request rendering of a particular control and/or part.
const AllSettings & GetSettings() const
DecorationView(OutputDevice *pOutDev)
const Color & GetCheckedColor() const
void DrawPixel(const Point &rPt)
void DrawSeparator(const Point &rStart, const Point &rStop, bool bVertical=true)
StyleSettingsOptions GetOptions() const
vcl::Window * GetWindow(GetWindowType nType) const
B3DVector cross(const B3DVector &rVecA, const B3DVector &rVecB)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
const Color & GetMenuBorderColor() const
constexpr tools::Long Height() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_WHITE
void DrawHandle(const tools::Rectangle &rRectangle)
::OutputDevice const * GetOutDev() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
virtual Size GetButtonBorderSize()
void DrawEllipse(const tools::Rectangle &rRect)
WindowType GetType() const
constexpr auto BUTTON_DRAW_FLATTEST
void DrawSymbol(const tools::Rectangle &rRect, SymbolType eType, const Color &rColor, DrawSymbolFlags nStyle=DrawSymbolFlags::NONE)
bool IsNativeControlSupported(ControlType nType, ControlPart nPart) const
Query the platform layer for control support.
SAL_DLLPRIVATE sal_Int32 GetDPIY() const
Get the output device's DPI y-axis value.
virtual vcl::Window * GetOwnerWindow() const
Get the vcl::Window that this OutputDevice belongs to, if any.
SAL_DLLPRIVATE sal_Int32 GetDPIX() const
Get the output device's DPI x-axis value.
const Color & GetMonoColor() const
const Color & GetFillColor() const
bool GetUseFlatBorders() const