diff options
Diffstat (limited to 'vcl/backendtest/outputdevice/gradient.cxx')
-rw-r--r-- | vcl/backendtest/outputdevice/gradient.cxx | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/vcl/backendtest/outputdevice/gradient.cxx b/vcl/backendtest/outputdevice/gradient.cxx index ebb94fbaaf9b..2596670b6874 100644 --- a/vcl/backendtest/outputdevice/gradient.cxx +++ b/vcl/backendtest/outputdevice/gradient.cxx @@ -17,7 +17,8 @@ Bitmap OutputDeviceTestGradient::setupLinearGradient() { initialSetup(12, 12, constBackgroundColor); - Gradient aGradient(GradientStyle::Linear, Color(0xFF, 0xFF, 0xFF), Color(0x00, 0x00, 0x00)); + Gradient aGradient(css::awt::GradientStyle_LINEAR, Color(0xFF, 0xFF, 0xFF), + Color(0x00, 0x00, 0x00)); aGradient.SetAngle(900_deg10); tools::Rectangle aDrawRect(maVDRectangle.Left() + 1, maVDRectangle.Top() + 1, maVDRectangle.Right() - 1, maVDRectangle.Bottom() - 1); @@ -30,7 +31,8 @@ Bitmap OutputDeviceTestGradient::setupLinearGradientAngled() { initialSetup(12, 12, constBackgroundColor); - Gradient aGradient(GradientStyle::Linear, Color(0xFF, 0xFF, 0xFF), Color(0x00, 0x00, 0x00)); + Gradient aGradient(css::awt::GradientStyle_LINEAR, Color(0xFF, 0xFF, 0xFF), + Color(0x00, 0x00, 0x00)); aGradient.SetAngle(450_deg10); tools::Rectangle aDrawRect(maVDRectangle.Left() + 1, maVDRectangle.Top() + 1, maVDRectangle.Right() - 1, maVDRectangle.Bottom() - 1); @@ -43,7 +45,8 @@ Bitmap OutputDeviceTestGradient::setupLinearGradientBorder() { initialSetup(12, 12, constBackgroundColor); - Gradient aGradient(GradientStyle::Linear, Color(0xFF, 0xFF, 0xFF), Color(0x00, 0x00, 0x00)); + Gradient aGradient(css::awt::GradientStyle_LINEAR, Color(0xFF, 0xFF, 0xFF), + Color(0x00, 0x00, 0x00)); aGradient.SetBorder(50); tools::Rectangle aDrawRect(maVDRectangle.Left() + 1, maVDRectangle.Top() + 1, maVDRectangle.Right() - 1, maVDRectangle.Bottom() - 1); @@ -56,7 +59,8 @@ Bitmap OutputDeviceTestGradient::setupLinearGradientIntensity() { initialSetup(12, 12, constBackgroundColor); - Gradient aGradient(GradientStyle::Linear, Color(0xFF, 0xFF, 0xFF), Color(0x00, 0x00, 0x00)); + Gradient aGradient(css::awt::GradientStyle_LINEAR, Color(0xFF, 0xFF, 0xFF), + Color(0x00, 0x00, 0x00)); aGradient.SetStartIntensity(50); tools::Rectangle aDrawRect(maVDRectangle.Left() + 1, maVDRectangle.Top() + 1, maVDRectangle.Right() - 1, maVDRectangle.Bottom() - 1); @@ -69,7 +73,8 @@ Bitmap OutputDeviceTestGradient::setupLinearGradientSteps() { initialSetup(12, 12, constBackgroundColor); - Gradient aGradient(GradientStyle::Linear, Color(0xFF, 0xFF, 0xFF), Color(0x00, 0x00, 0x00)); + Gradient aGradient(css::awt::GradientStyle_LINEAR, Color(0xFF, 0xFF, 0xFF), + Color(0x00, 0x00, 0x00)); aGradient.SetAngle(900_deg10); aGradient.SetSteps(4); tools::Rectangle aDrawRect(maVDRectangle.Left() + 1, maVDRectangle.Top() + 1, @@ -83,7 +88,8 @@ Bitmap OutputDeviceTestGradient::setupAxialGradient() { initialSetup(13, 13, constBackgroundColor); - Gradient aGradient(GradientStyle::Axial, Color(0xFF, 0xFF, 0xFF), Color(0x00, 0x00, 0x00)); + Gradient aGradient(css::awt::GradientStyle_AXIAL, Color(0xFF, 0xFF, 0xFF), + Color(0x00, 0x00, 0x00)); aGradient.SetAngle(900_deg10); tools::Rectangle aDrawRect(maVDRectangle.Left() + 1, maVDRectangle.Top() + 1, maVDRectangle.Right() - 1, maVDRectangle.Bottom() - 1); @@ -96,7 +102,8 @@ Bitmap OutputDeviceTestGradient::setupRadialGradient() { initialSetup(12, 12, constBackgroundColor); - Gradient aGradient(GradientStyle::Radial, Color(0xFF, 0xFF, 0xFF), Color(0x00, 0x00, 0x00)); + Gradient aGradient(css::awt::GradientStyle_RADIAL, Color(0xFF, 0xFF, 0xFF), + Color(0x00, 0x00, 0x00)); tools::Rectangle aDrawRect(maVDRectangle.Left() + 1, maVDRectangle.Top() + 1, maVDRectangle.Right() - 1, maVDRectangle.Bottom() - 1); mpVirtualDevice->DrawGradient(aDrawRect, aGradient); @@ -108,7 +115,8 @@ Bitmap OutputDeviceTestGradient::setupRadialGradientOfs() { initialSetup(12, 12, constBackgroundColor); - Gradient aGradient(GradientStyle::Radial, Color(0xFF, 0xFF, 0xFF), Color(0x00, 0x00, 0x00)); + Gradient aGradient(css::awt::GradientStyle_RADIAL, Color(0xFF, 0xFF, 0xFF), + Color(0x00, 0x00, 0x00)); aGradient.SetOfsX(100); // Move center to the bottom-right corner. aGradient.SetOfsY(100); tools::Rectangle aDrawRect(maVDRectangle.Left() + 1, maVDRectangle.Top() + 1, |