Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-gradient-vector.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
/*
5 * Authors: see git history
6 *
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#ifndef SEEN_SP_GRADIENT_VECTOR_H
11#define SEEN_SP_GRADIENT_VECTOR_H
12
13#include <vector>
14#include "colors/color.h"
15
25 std::optional<Inkscape::Colors::Color> color;
26 double offset;
27};
28
33 bool built;
34 std::vector<SPGradientStop> stops;
35};
36
37#endif /* !SEEN_SP_GRADIENT_VECTOR_H */
38
39/*
40 Local Variables:
41 mode:c++
42 c-file-style:"stroustrup"
43 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
44 indent-tabs-mode:nil
45 fill-column:99
46 End:
47*/
48// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Differs from SPStop in that SPStop mirrors the <stop> element in the document, whereas SPGradientStop...
std::optional< Inkscape::Colors::Color > color
The effective gradient vector, after copying stops from the referenced gradient if necessary.
std::vector< SPGradientStop > stops