Avoid potential negative array index access to cached text.
[LibreOffice.git] / vcl / inc / SalGradient.hxx
blobc183d755063d804444a8ba1f344b74170d36088c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_VCL_INC_SALGRADIENT_HXX
11 #define INCLUDED_VCL_INC_SALGRADIENT_HXX
13 #include <basegfx/point/b2dpoint.hxx>
14 #include <tools/color.hxx>
16 struct SalGradientStop
18 Color maColor;
19 float mfOffset;
21 SalGradientStop(Color const& rColor, float fOffset)
22 : maColor(rColor)
23 , mfOffset(fOffset)
28 struct SalGradient
30 basegfx::B2DPoint maPoint1;
31 basegfx::B2DPoint maPoint2;
32 std::vector<SalGradientStop> maStops;
35 #endif // INCLUDED_VCL_INC_SALGRADIENT_HXX
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */