1
by mental
moving trunk for module inkscape |
1 |
#ifndef SEEN_SP_GRADIENT_VECTOR_H
|
2 |
#define SEEN_SP_GRADIENT_VECTOR_H
|
|
3 |
||
4 |
#include <glib/gtypes.h> |
|
5 |
#include <vector> |
|
6 |
#include "color.h" |
|
7 |
||
8 |
/**
|
|
9 |
* Differs from SPStop in that SPStop mirrors the \<stop\> element in the document, whereas
|
|
10 |
* SPGradientStop shows more the effective stop color.
|
|
11 |
*
|
|
12 |
* For example, SPGradientStop has no currentColor option: currentColor refers to the color
|
|
13 |
* property value of the gradient where currentColor appears, so we interpret currentColor before
|
|
14 |
* copying from SPStop to SPGradientStop.
|
|
15 |
*/
|
|
16 |
struct SPGradientStop { |
|
17 |
gdouble offset; |
|
18 |
SPColor color; |
|
19 |
gfloat opacity; |
|
20 |
};
|
|
21 |
||
22 |
/**
|
|
23 |
* The effective gradient vector, after copying stops from the referenced gradient if necessary.
|
|
24 |
*/
|
|
25 |
struct SPGradientVector { |
|
26 |
bool built; |
|
27 |
std::vector<SPGradientStop> stops; |
|
28 |
};
|
|
29 |
||
30 |
||
31 |
#endif /* !SEEN_SP_GRADIENT_VECTOR_H */ |
|
32 |
||
33 |
/*
|
|
34 |
Local Variables:
|
|
35 |
mode:c++
|
|
36 |
c-file-style:"stroustrup"
|
|
37 |
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
|
|
38 |
indent-tabs-mode:nil
|
|
39 |
fill-column:99
|
|
40 |
End:
|
|
41 |
*/
|
|
9020
by JazzyNico
Code refactoring and merging with trunk (revision 10599). |
42 |
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
|