41 if ( nSide && !(nSide & 1) )
51 rRect.
Move( (nWidth-nSide)/2, (nHeight-nSide)/2 );
58 const tools::Long nSide = AdjustRectToSquare( nRect );
87 aCenter.X()+n8, nRect.
Bottom() ) );
101 aCenter.X()+n8, nRect.
Bottom()-1 ) );
115 nRect.
Right(), aCenter.Y()+n8 ) );
129 nRect.
Right()-1, aCenter.Y()+n8 ) );
219 Point( aCenter.X()+
i, nRect.
Top()+n2 ) );
250 Point( aCenter.X(), aCenter.Y()+y ) );
257 Point( aCenter.X()+y, aCenter.Y()+x ) );
259 Point( aCenter.X()-y, aCenter.Y()+x ) );
267 Point( aCenter.X()-x, aCenter.Y()+y ) );
269 Point( aCenter.X()+x, aCenter.Y()+y ) );
389 nRect.
Right(), aCenter.Y()+n16 ) );
391 aCenter.X()+n16, nRect.
Bottom() ) );
400 const Color *
const pColor,
const bool bRound =
false )
411 if ( (nLineWidth == 1) && (nLineHeight == 1) )
436 Size( nWidth, nLineHeight ) ) );
438 Size( nLineWidth, nHeight ) ) );
449 const Color& rLeftTopColor,
const Color& rRightBottomColor )
478 ImplDrawDPILineRect( pDev, aFillRect, &aBlackColor );
481 ImplDrawDPILineRect( pDev, aFillRect, &aBlackColor );
495 aOrigFillRect.
Right(), aFillRect.
Top()-1 ) );
497 aFillRect.
Left()-1, aOrigFillRect.
Bottom() ) );
520 ImplDrawDPILineRect( pDev, aFillRect, &aDefBtnColor );
550 ImplDraw2ColorFrame( pDev, aFillRect, aColor1, aColor2 );
567 ImplDraw2ColorFrame( pDev, aFillRect, aColor1, aColor2 );
599 bFlatBorders =
false;
614 nControlFlags |=
static_cast<tools::Long>(pWin->
GetType() == WindowType::BORDERWINDOW ?
627 aControlValue, OUString()) )
642 ImplDrawDPILineRect( pDev, rRect,
nullptr, bRound );
650 (bRound && aColor.
IsDark()) ||
659 ImplDrawDPILineRect( pDev, rRect, &aColor, bRound );
716 ImplDraw2ColorFrame( pDev, rRect,
722 ImplDraw2ColorFrame( pDev, rRect,
731 ImplDraw2ColorFrame( pDev, rRect,
734 ImplDraw2ColorFrame( pDev, rRect,
740 ImplDraw2ColorFrame( pDev, rRect,
743 ImplDraw2ColorFrame( pDev, rRect,
752 ImplDraw2ColorFrame( pDev, rRect,
757 ImplDraw2ColorFrame( pDev, rRect,
764 ImplDraw2ColorFrame( pDev, rRect,
769 ImplDraw2ColorFrame( pDev, rRect,
802 Color nColor(rColor);
829 ImplDrawSymbol(
mpOutDev, aRect, eType );
838 const Color& rLeftTopColor,
839 const Color& rRightBottomColor )
845 ImplDraw2ColorFrame(
mpOutDev, aRect, rLeftTopColor, rRightBottomColor );
890 Color aTempColor = aLightColor;
891 aLightColor = aShadowColor;
892 aShadowColor = aTempColor;
895 DrawFrame( rRect, aLightColor, aShadowColor );
949 ImplDrawButton(
mpOutDev, aRect, nStyle );
1012 Point aStart( rStart ), aStop( rStop );
1037 aStart.AdjustX( 1 );
1042 aStart.AdjustY( 1 );
1059 const sal_Int32 nNumberOfPoints = 3;
1063 float fDistance = aOutputSize.
Height();
1064 fDistance /= (nNumberOfPoints + 1);
1067 nRadius /= (nNumberOfPoints + 2);
1072 round(fDistance *
i) - nRadius,
1073 nHalfWidth + nRadius,
1074 round(fDistance * i) + nRadius);
const Color & GetShadowColor() const
OutDevType GetOutDevType() const
virtual Color GetMonochromeButtonColor()
const Wallpaper & GetBackground() 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)
const StyleSettings & GetStyleSettings() const
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)
bool IsNativeControlSupported(ControlType nType, ControlPart nPart) const
Query the platform layer for control support.
const Color & GetLightBorderColor() 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
tools::Long Width() 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 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
Point PixelToLogic(const Point &rDevicePt) const
Point LogicToPixel(const Point &rLogicPt) const
const Color & GetMenuBorderColor() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_WHITE
void DrawHandle(const tools::Rectangle &rRectangle)
tools::Long Height() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
virtual Size GetButtonBorderSize()
void DrawEllipse(const tools::Rectangle &rRect)
WindowType GetType() const
reference_type * get() const
Get the body.
constexpr auto BUTTON_DRAW_FLATTEST
void DrawSymbol(const tools::Rectangle &rRect, SymbolType eType, const Color &rColor, DrawSymbolFlags nStyle=DrawSymbolFlags::NONE)
void Push(PushFlags nFlags=PushFlags::ALL)
SAL_DLLPRIVATE sal_Int32 GetDPIY() const
Get the output device's DPI y-axis value.
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