Home
last modified time | relevance | path

Searched refs:rDevice (Results 1 – 25 of 83) sorted by relevance

1234

/AOO42X/main/basebmp/test/
H A Dlinetest.cxx57 void implTestBasicDiagonalLines(const BitmapDeviceSharedPtr& rDevice) in implTestBasicDiagonalLines() argument
59 rDevice->clear(Color(0)); in implTestBasicDiagonalLines()
64 rDevice->drawLine( aPt1, aPt2, aCol, DrawMode_PAINT ); in implTestBasicDiagonalLines()
65 ASSERT_TRUE(rDevice->getPixel(aPt1) == aCol) << "first pixel set"; in implTestBasicDiagonalLines()
66 ASSERT_TRUE(rDevice->getPixel(aPt2) == aCol) << "last pixel set"; in implTestBasicDiagonalLines()
68 ASSERT_TRUE(rDevice->getPixel(aPt3) != aCol) << "topmost pixel not set"; in implTestBasicDiagonalLines()
70 ASSERT_TRUE(rDevice->getPixel(aPt4) != aCol) << "bottommost pixel not set"; in implTestBasicDiagonalLines()
72 ASSERT_TRUE(countPixel( rDevice, aCol ) == 9) << "number of rendered pixel is not 9"; in implTestBasicDiagonalLines()
74 rDevice->drawLine( aPt2, aPt1, aCol, DrawMode_PAINT ); in implTestBasicDiagonalLines()
76 ASSERT_TRUE(countPixel( rDevice, aCol ) == 9) in implTestBasicDiagonalLines()
[all …]
H A Dcliptest.cxx64 void implTestPixelClip(const BitmapDeviceSharedPtr& rDevice) in implTestPixelClip() argument
67 rDevice->clear(aBgCol); in implTestPixelClip()
71 rDevice->setPixel( aPt, aCol, DrawMode_PAINT, mpClipMask ); in implTestPixelClip()
72 ASSERT_TRUE(rDevice->getPixel(aPt) == aBgCol) << "get/setPixel clip #1"; in implTestPixelClip()
75 rDevice->setPixel( aPt2, aCol, DrawMode_PAINT, mpClipMask ); in implTestPixelClip()
76 ASSERT_TRUE(rDevice->getPixel(aPt2) == aBgCol) << "get/setPixel clip #2"; in implTestPixelClip()
79 rDevice->setPixel( aPt1, aCol, DrawMode_PAINT, mpClipMask ); in implTestPixelClip()
80 ASSERT_TRUE(rDevice->getPixel(aPt1) != aBgCol) << "get/setPixel clip #3"; in implTestPixelClip()
83 rDevice->setPixel( aPt3, aCol, DrawMode_PAINT, mpClipMask ); in implTestPixelClip()
84 ASSERT_TRUE(rDevice->getPixel(aPt3) != aBgCol) << "get/setPixel clip #4"; in implTestPixelClip()
[all …]
H A Dfilltest.cxx62 void implTestRectFill(const BitmapDeviceSharedPtr& rDevice) in implTestRectFill() argument
64 rDevice->clear(Color(0)); in implTestRectFill()
69 rDevice->fillPolyPolygon( in implTestRectFill()
76 ASSERT_TRUE(rDevice->getPixel(aPt1) == aCol) << "first pixel set"; in implTestRectFill()
78 ASSERT_TRUE(rDevice->getPixel(aPt2) == aCol) << "last pixel set"; in implTestRectFill()
80 ASSERT_TRUE(rDevice->getPixel(aPt3) != aCol) << "topmost pixel not set"; in implTestRectFill()
82 ASSERT_TRUE(rDevice->getPixel(aPt4) != aCol) << "bottommost pixel not set"; in implTestRectFill()
84 ASSERT_TRUE(countPixel( rDevice, aCol ) == 81) << "number of rendered pixel is not 81"; in implTestRectFill()
87 void implTestCornerCases(const BitmapDeviceSharedPtr& rDevice) in implTestCornerCases() argument
89 rDevice->clear(Color(0)); in implTestCornerCases()
[all …]
H A Dpolytest.cxx63 void implTestEmpty(const BitmapDeviceSharedPtr& rDevice) in implTestEmpty() argument
67 rDevice->clear(aBgCol); in implTestEmpty()
76 rDevice->fillPolyPolygon( in implTestEmpty()
80 ASSERT_TRUE(countPixel( rDevice, aCol ) == 0) << "number of rendered pixel is not 0"; in implTestEmpty()
84 rDevice->clear(aBgCol); in implTestEmpty()
91 rDevice->fillPolyPolygon( in implTestEmpty()
95 ASSERT_TRUE(countPixel( rDevice, aCol ) == 0) << "number of rendered pixel is not 0(b)"; in implTestEmpty()
98 void implTestHairline(const BitmapDeviceSharedPtr& rDevice) in implTestHairline() argument
102 rDevice->clear(aBgCol); in implTestHairline()
111 rDevice->fillPolyPolygon( in implTestHairline()
[all …]
H A Dbmptest.cxx66 void implTestBmpBasics(const BitmapDeviceSharedPtr& rDevice, in implTestBmpBasics() argument
69 rDevice->clear(Color(0)); in implTestBmpBasics()
78 rDevice->drawBitmap( in implTestBmpBasics()
83 ASSERT_TRUE(countPixel( rDevice, aCol ) == 8) << "number of rendered pixel is not 8"; in implTestBmpBasics()
85 rDevice->drawBitmap( in implTestBmpBasics()
90 ASSERT_TRUE(countPixel( rDevice, aCol ) == 16) << "number of rendered pixel is not 16"; in implTestBmpBasics()
92 rDevice->drawBitmap( in implTestBmpBasics()
97 ASSERT_TRUE(countPixel( rDevice, aCol ) == 24) << "number of rendered pixel is not 24"; in implTestBmpBasics()
99 rDevice->drawBitmap( in implTestBmpBasics()
104 ASSERT_TRUE(countPixel( rDevice, aCol ) == 32) << "number of rendered pixel is not 32"; in implTestBmpBasics()
[all …]
H A Dmasktest.cxx65 void implTestMaskBasics(const BitmapDeviceSharedPtr& rDevice, in implTestMaskBasics() argument
77 rDevice->clear(aCol); in implTestMaskBasics()
78 rDevice->setPixel( in implTestMaskBasics()
82 rDevice->drawMaskedColor( in implTestMaskBasics()
87 ASSERT_TRUE(countPixel( rDevice, aCol ) == 100-50) << "number of rendered pixel is not 50"; in implTestMaskBasics()
89 rDevice->clear(aCol); in implTestMaskBasics()
90 rDevice->drawMaskedColor( in implTestMaskBasics()
95 ASSERT_TRUE(countPixel( rDevice, aCol ) == 100-25) << "number of rendered pixel is not 25"; in implTestMaskBasics()
97 rDevice->clear(aCol); in implTestMaskBasics()
98 rDevice->drawMaskedColor( in implTestMaskBasics()
[all …]
H A Dbmpmasktest.cxx67 void implTestBmpBasics(const BitmapDeviceSharedPtr& rDevice, in implTestBmpBasics() argument
70 rDevice->clear(Color(0)); in implTestBmpBasics()
76 rDevice->drawMaskedBitmap( in implTestBmpBasics()
82 ASSERT_TRUE(countPixel( rDevice, aCol ) == 30) << "number of rendered pixel is not 30"; in implTestBmpBasics()
85 void implTestBmpScaledClip(const BitmapDeviceSharedPtr& rDevice, in implTestBmpScaledClip() argument
88 rDevice->clear(Color(0)); in implTestBmpScaledClip()
94 rDevice->drawMaskedBitmap( in implTestBmpScaledClip()
100 ASSERT_TRUE(countPixel( rDevice, aCol ) == 12) << "number of rendered pixel is not 12"; in implTestBmpScaledClip()
/AOO42X/main/sfx2/source/sidebar/
H A DDrawHelper.cxx33 OutputDevice& rDevice, in DrawBorder() argument
41 rDevice, in DrawBorder()
49 rDevice, in DrawBorder()
57 rDevice, in DrawBorder()
65 rDevice, in DrawBorder()
77 OutputDevice& rDevice, in DrawBevelBorder() argument
86 rDevice, in DrawBevelBorder()
94 rDevice, in DrawBevelBorder()
102 rDevice, in DrawBevelBorder()
110 rDevice, in DrawBevelBorder()
[all …]
H A DDrawHelper.hxx41 OutputDevice& rDevice,
47 OutputDevice& rDevice,
54 OutputDevice& rDevice,
61 OutputDevice& rDevice,
68 OutputDevice& rDevice,
/AOO42X/main/sd/source/ui/slidesorter/view/
H A DSlsPageObjectPainter.cxx135 OutputDevice& rDevice, in PaintPageObject() argument
142 const sal_uInt16 nSavedAntialiasingMode (rDevice.GetAntialiasing()); in PaintPageObject()
143 rDevice.SetAntialiasing(nSavedAntialiasingMode & ~ANTIALIASING_ENABLE_B2DDRAW); in PaintPageObject()
145 PaintBackground(rDevice, rpDescriptor); in PaintPageObject()
146 PaintPreview(rDevice, rpDescriptor); in PaintPageObject()
147 PaintPageNumber(rDevice, rpDescriptor); in PaintPageObject()
148 PaintTransitionEffect(rDevice, rpDescriptor); in PaintPageObject()
149 mrButtonBar.Paint(rDevice, rpDescriptor); in PaintPageObject()
151 rDevice.SetAntialiasing(nSavedAntialiasingMode); in PaintPageObject()
219 OutputDevice& rDevice, in PaintBackground() argument
[all …]
H A DSlsFramePainter.cxx70 OutputDevice& rDevice, in PaintFrame() argument
77 maTopLeft.PaintCorner(rDevice, aBox.TopLeft()); in PaintFrame()
78 maTopRight.PaintCorner(rDevice, aBox.TopRight()); in PaintFrame()
79 maBottomLeft.PaintCorner(rDevice, aBox.BottomLeft()); in PaintFrame()
80 maBottomRight.PaintCorner(rDevice, aBox.BottomRight()); in PaintFrame()
81 maLeft.PaintSide(rDevice, aBox.TopLeft(), aBox.BottomLeft(), maTopLeft, maBottomLeft); in PaintFrame()
82 maRight.PaintSide(rDevice, aBox.TopRight(), aBox.BottomRight(), maTopRight, maBottomRight); in PaintFrame()
83 maTop.PaintSide(rDevice, aBox.TopLeft(), aBox.TopRight(), maTopLeft, maTopRight); in PaintFrame()
84 maBottom.PaintSide(rDevice, aBox.BottomLeft(), aBox.BottomRight(), maBottomLeft, maBottomRight); in PaintFrame()
85 maCenter.PaintCenter(rDevice,aBox); in PaintFrame()
[all …]
H A DSlsInsertionIndicatorOverlay.cxx288 OutputDevice& rDevice, in PaintPageCount() argument
295 ::boost::shared_ptr<Font> pFont(Theme::GetFont(Theme::Font_PageCount, rDevice)); in PaintPageCount()
302 rDevice.SetFont(*pFont); in PaintPageCount()
304 rDevice.GetTextBoundRect(aTextBox, sNumber); in PaintPageCount()
317 rDevice.SetFillColor(pTheme->GetColor(Theme::Color_Selection)); in PaintPageCount()
318 rDevice.SetLineColor(pTheme->GetColor(Theme::Color_Selection)); in PaintPageCount()
319 rDevice.DrawRect(GrowRectangle(aTextBox, nBorder)); in PaintPageCount()
321 rDevice.SetFillColor(); in PaintPageCount()
322 rDevice.SetLineColor(pTheme->GetColor(Theme::Color_PageCountFontColor)); in PaintPageCount()
323 rDevice.DrawRect(GrowRectangle(aTextBox, nBorder-1)); in PaintPageCount()
[all …]
H A DSlsButtonBar.cxx434 OutputDevice& rDevice, in Paint() argument
449 PaintButtonBackground(rDevice, rpDescriptor, aOffset); in Paint()
461 rDevice, in Paint()
479 OutputDevice& rDevice, in PaintButtonBackground() argument
488 maButtonDownBackground = mpBackgroundTheme->CreateBackground(rDevice, true); in PaintButtonBackground()
489 maNormalBackground = mpBackgroundTheme->CreateBackground(rDevice, false); in PaintButtonBackground()
503 rDevice.DrawBitmapEx(maBackgroundLocation+aOffset, BitmapEx(pBitmap->GetBitmap(), aMask)); in PaintButtonBackground()
1208 OutputDevice& rDevice, in Paint() argument
1219 rDevice.SetTextColor(rpTheme->GetColor(Theme::Color_ButtonText)); in Paint()
1221 rDevice.SetTextColor(rpTheme->GetColor(Theme::Color_ButtonTextHover)); in Paint()
[all …]
H A DSlsFontProvider.cxx100 FontProvider::SharedFontPointer FontProvider::GetFont (const OutputDevice& rDevice) in GetFont() argument
103 if (maMapMode != rDevice.GetMapMode()) in GetFont()
115 Size aFontSize (rDevice.LogicToPixel(maFont->GetSize(), aFontMapMode)); in GetFont()
118 maFont->SetSize (rDevice.PixelToLogic(aFontSize)); in GetFont()
122 maMapMode = rDevice.GetMapMode(); in GetFont()
H A DSlideSorterView.cxx104 virtual void Paint (OutputDevice& rDevice, const Rectangle& rRepaintArea) in Paint() argument
106 mrView.Paint(rDevice,rRepaintArea); in Paint()
126 virtual void Paint (OutputDevice& rDevice, const Rectangle& rRepaintArea) in Paint() argument
128 rDevice.SetFillColor(maBackgroundColor); in Paint()
129 rDevice.SetLineColor(); in Paint()
130 rDevice.DrawRect(rRepaintArea); in Paint()
779 OutputDevice& rDevice, in Paint() argument
805 mpPageObjectPainter->PaintPageObject(rDevice, pDescriptor); in Paint()
/AOO42X/main/canvas/source/tools/
H A Dparametricpolypolygon.cxx60 const uno::Reference< rendering::XGraphicDevice >& rDevice, in create()
71 colorSequence[0] = rDevice->getDeviceColorSpace()->convertFromRGB(rgbColors); in create()
73 colorSequence[1] = rDevice->getDeviceColorSpace()->convertFromRGB(rgbColors); in create()
100 return createLinearHorizontalGradient(rDevice, colorSequence, colorStops); in create()
104 return createEllipticalGradient(rDevice, colorSequence, colorStops, fAspectRatio); in create()
108 return createRectangularGradient(rDevice, colorSequence, colorStops, fAspectRatio); in create()
131 const uno::Reference< rendering::XGraphicDevice >& rDevice, in createLinearHorizontalGradient()
137 return new ParametricPolyPolygon( rDevice, GRADIENT_LINEAR, colors, stops ); in createLinearHorizontalGradient()
141 const uno::Reference< rendering::XGraphicDevice >& rDevice, in createEllipticalGradient()
149 rDevice, in createEllipticalGradient()
[all …]
/AOO42X/main/canvas/source/directx/
H A Ddx_devicehelper.hxx58 com::sun::star::rendering::XGraphicDevice& rDevice );
67 …o::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
70 …ence< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
73 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
76 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
79 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
82 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
/AOO42X/main/starmath/source/
H A Dview.cxx862 Size SmViewShell::GetTextLineSize(OutputDevice& rDevice, const String& rLine) in GetTextLineSize() argument
867 Size aSize(rDevice.GetTextWidth(rLine), rDevice.GetTextHeight()); in GetTextLineSize()
872 long TabPos = rDevice.GetTextWidth('n') * 8; in GetTextLineSize()
884 aSize.Width() += rDevice.GetTextWidth(aText); in GetTextLineSize()
892 Size SmViewShell::GetTextSize(OutputDevice& rDevice, const String& rText, long MaxWidth) in GetTextSize() argument
909 aSize = GetTextLineSize(rDevice, aLine); in GetTextSize()
924 if (GetTextLineSize(rDevice, aText).Width() < MaxWidth) in GetTextSize()
933 aSize = GetTextLineSize(rDevice, aText); in GetTextSize()
954 void SmViewShell::DrawTextLine(OutputDevice& rDevice, const Point& rPosition, const String& rLine) in DrawTextLine() argument
964 long TabPos = rDevice.GetTextWidth('n') * 8; in DrawTextLine()
[all …]
/AOO42X/main/sd/source/ui/slidesorter/inc/view/
H A DSlsPageObjectPainter.hxx51 OutputDevice& rDevice,
99 OutputDevice& rDevice,
102 OutputDevice& rDevice,
105 OutputDevice& rDevice,
108 OutputDevice& rDevice,
111 OutputDevice& rDevice,
/AOO42X/main/canvas/inc/canvas/
H A Dparametricpolypolygon.hxx101 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
127 … ::com::sun::star::rendering::XGraphicDevice >& rDevice,
131 … ::com::sun::star::rendering::XGraphicDevice >& rDevice,
136 … ::com::sun::star::rendering::XGraphicDevice >& rDevice,
143 ::com::sun::star::rendering::XGraphicDevice >& rDevice,
149 ::com::sun::star::rendering::XGraphicDevice >& rDevice,
156 ::com::sun::star::rendering::XGraphicDevice >& rDevice,
/AOO42X/main/canvas/source/vcl/
H A Ddevicehelper.hxx60 …o::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
63 …ence< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
66 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
69 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
72 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
75 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
H A Dcanvasbitmap.cxx43 rendering::XGraphicDevice& rDevice, in CanvasBitmap() argument
62 rDevice, in CanvasBitmap()
68 rDevice, in CanvasBitmap()
74 rendering::XGraphicDevice& rDevice, in CanvasBitmap() argument
77 maCanvasHelper.init( rBitmap, rDevice, rOutDevProvider ); in CanvasBitmap()
/AOO42X/main/canvas/source/null/
H A Dnull_devicehelper.hxx57 …o::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
60 …ence< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
63 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
66 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
69 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
72 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
/AOO42X/main/canvas/source/cairo/
H A Dcairo_devicehelper.hxx73 …o::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
76 …ence< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
79 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
82 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
85 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
88 … const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
/AOO42X/main/basebmp/source/
H A Ddebug.cxx78 void debugDump( const BitmapDeviceSharedPtr& rDevice, in debugDump() argument
81 const basegfx::B2IVector aSize( rDevice->getSize() ); in debugDump()
82 const bool bTopDown( rDevice->isTopDown() ); in debugDump()
83 const sal_Int32 nScanlineFormat( rDevice->getScanlineFormat() ); in debugDump()
98 …rOutputStream << std::setw(8) << (sal_uInt32)rDevice->getPixel( basegfx::B2IPoint(x,y) ).toInt32()… in debugDump()

1234