Coverage Report

Created: 2025-12-31 10:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/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
struct SalGradientStop
16
{
17
    Color maColor;
18
    float mfOffset;
19
20
    SalGradientStop(Color const& rColor, float fOffset)
21
0
        : maColor(rColor)
22
0
        , mfOffset(fOffset)
23
0
    {
24
0
    }
25
};
26
27
struct SalGradient
28
{
29
    basegfx::B2DPoint maPoint1;
30
    basegfx::B2DPoint maPoint2;
31
    std::vector<SalGradientStop> maStops;
32
};
33
34
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */