~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/sp-stop.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SEEN_SP_STOP_H
 
2
#define SEEN_SP_STOP_H
 
3
 
 
4
/** \file
 
5
 *
 
6
 * SPStop: SVG <stop> implementation.
 
7
 *
 
8
 * Authors?
 
9
 */
 
10
 
 
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"
 
16
 
 
17
class SPObjectClass;
 
18
class SPColor;
 
19
 
 
20
/** Gradient stop. */
 
21
struct SPStop : public SPObject {
 
22
    /// \todo fixme: Should be SPSVGPercentage
 
23
    gfloat offset;
 
24
 
 
25
    bool currentColor;
 
26
 
 
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;
 
32
 
 
33
    /// \todo fixme: Implement SPSVGNumber or something similar.
 
34
    gfloat opacity;
 
35
};
 
36
 
 
37
/// The SPStop vtable.
 
38
struct SPStopClass {
 
39
    SPObjectClass parent_class;
 
40
};
 
41
 
 
42
guint32 sp_stop_get_rgba32(SPStop const *);
 
43
 
 
44
 
 
45
#endif /* !SEEN_SP_STOP_H */
 
46
 
 
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 :