Code

sp-stop.h: Supply missing #includes/declarations so that we don't depend on order...
[inkscape.git] / src / sp-stop.h
1 #ifndef SEEN_SP_STOP_H
2 #define SEEN_SP_STOP_H
4 /** \file
5  * SPStop: SVG <stop> implementation.
6  */
7 /*
8  * Authors?
9  */
11 #include <glib/gtypes.h>
12 //#include <glib-object.h>
13 #include "sp-object.h"
14 #include "color.h"
15 #include "sp-stop-fns.h"
17 class SPObjectClass;
18 class SPColor;
20 /** Gradient stop. */
21 struct SPStop : public SPObject {
22     /// \todo fixme: Should be SPSVGPercentage
23     gfloat offset;
25     bool currentColor;
27     /** \note
28      * N.B.\ Meaningless if currentColor is true.  Use sp_stop_get_rgba32 or sp_stop_get_color
29      * (currently static in sp-gradient.cpp) if you want the effective color.
30      */
31     SPColor specified_color;
33     /// \todo fixme: Implement SPSVGNumber or something similar.
34     gfloat opacity;
35 };
37 /// The SPStop vtable.
38 struct SPStopClass {
39     SPObjectClass parent_class;
40 };
42 guint32 sp_stop_get_rgba32(SPStop const *);
45 #endif /* !SEEN_SP_STOP_H */
47 /*
48   Local Variables:
49   mode:c++
50   c-file-style:"stroustrup"
51   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
52   indent-tabs-mode:nil
53   fill-column:99
54   End:
55 */
56 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :