Code

Merge from fe-moved
[inkscape.git] / src / filters / pointlight.h
1 #ifndef SP_FEPOINTLIGHT_H_SEEN
2 #define SP_FEPOINTLIGHT_H_SEEN
4 /** \file
5  * SVG <filter> implementation, see sp-filter.cpp.
6  */
7 /*
8  * Authors:
9  *   Hugo Rodrigues <haa.rodrigues@gmail.com>
10  *   Niko Kiirala <niko@kiirala.com>
11  *   Jean-Rene Reinhard <jr@komite.net>
12  *
13  * Copyright (C) 2006,2007 Authors
14  *
15  * Released under GNU GPL, read the file 'COPYING' for more information
16  */
18 #include "sp-object.h"
20 #define SP_TYPE_FEPOINTLIGHT (sp_fepointlight_get_type())
21 #define SP_FEPOINTLIGHT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SP_TYPE_FEPOINTLIGHT, SPFePointLight))
22 #define SP_FEPOINTLIGHT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SP_TYPE_FEPOINTLIGHT, SPFePointLightClass))
23 #define SP_IS_FEPOINTLIGHT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SP_TYPE_FEPOINTLIGHT))
24 #define SP_IS_FEPOINTLIGHT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_FEPOINTLIGHT))
26 /* Distant light class */
29 class SPFePointLight;
30 class SPFePointLightClass;
32 struct SPFePointLight : public SPObject {
34     /** x coordinate of the light source */
35     gfloat x; 
36     guint x_set : 1;
37     /** y coordinate of the light source */
38     gfloat y; 
39     guint y_set : 1;
40     /** z coordinate of the light source */
41     gfloat z; 
42     guint z_set : 1;
44     //other fields
45 };
47 struct SPFePointLightClass {
48     SPObjectClass parent_class;
49 };
51 GType
52 sp_fepointlight_get_type();
53 #endif /* !SP_FEPOINTLIGHT_H_SEEN */
55 /*
56   Local Variables:
57   mode:c++
58   c-file-style:"stroustrup"
59   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
60   indent-tabs-mode:nil
61   fill-column:99
62   End:
63 */
64 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :