tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / vcl / inc / SalGradient.hxx
blob22933b05e9c9d08009845d7905124bef7c23bb9a
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 #pragma once
12 #include <basegfx/point/b2dpoint.hxx>
13 #include <tools/color.hxx>
15 struct SalGradientStop
17 Color maColor;
18 float mfOffset;
20 SalGradientStop(Color const& rColor, float fOffset)
21 : maColor(rColor)
22 , mfOffset(fOffset)
27 struct SalGradient
29 basegfx::B2DPoint maPoint1;
30 basegfx::B2DPoint maPoint2;
31 std::vector<SalGradientStop> maStops;
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */