/src/libreoffice/vcl/inc/SalGradient.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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 | | */ |
9 | | |
10 | | #pragma once |
11 | | |
12 | | #include <basegfx/point/b2dpoint.hxx> |
13 | | #include <tools/color.hxx> |
14 | | |
15 | | #include <vector> |
16 | | |
17 | | struct SalGradientStop |
18 | | { |
19 | | Color maColor; |
20 | | float mfOffset; |
21 | | |
22 | | SalGradientStop(Color const& rColor, float fOffset) |
23 | 0 | : maColor(rColor) |
24 | 0 | , mfOffset(fOffset) |
25 | 0 | { |
26 | 0 | } |
27 | | }; |
28 | | |
29 | | struct SalGradient |
30 | | { |
31 | | basegfx::B2DPoint maPoint1; |
32 | | basegfx::B2DPoint maPoint2; |
33 | | std::vector<SalGradientStop> maStops; |
34 | | }; |
35 | | |
36 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |