~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/filters/diffuselighting.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SP_FEDIFFUSELIGHTING_H_SEEN
 
2
#define SP_FEDIFFUSELIGHTING_H_SEEN
 
3
 
 
4
/** \file
 
5
 * SVG <feDiffuseLighting> implementation, see DiffuseLighting.cpp.
 
6
 */
 
7
/*
 
8
 * Authors:
 
9
 *   Hugo Rodrigues <haa.rodrigues@gmail.com>
 
10
 *   Jean-Rene Reinhard <jr@komite.net>
 
11
 *
 
12
 * Copyright (C) 2006 Hugo Rodrigues
 
13
 *               2007 authors
 
14
 *
 
15
 * Released under GNU GPL, read the file 'COPYING' for more information
 
16
 */
 
17
 
 
18
#include "sp-filter.h"
 
19
#include "diffuselighting-fns.h"
 
20
 
 
21
namespace Inkscape {
 
22
namespace Filters {
 
23
class FilterDiffuseLighting;
 
24
}
 
25
}
 
26
 
 
27
/* FeDiffuseLighting base class */
 
28
class SPFeDiffuseLightingClass;
 
29
 
 
30
struct SPFeDiffuseLighting : public SPFilterPrimitive {
 
31
    /** DIFFUSELIGHTING ATTRIBUTES HERE */
 
32
    /** surfaceScale attribute */
 
33
    gfloat surfaceScale;
 
34
    guint surfaceScale_set : 1;
 
35
    /** diffuseConstant attribute */
 
36
    gfloat diffuseConstant;
 
37
    guint diffuseConstant_set : 1;
 
38
    /** kernelUnitLength attribute */
 
39
    NumberOptNumber kernelUnitLength;
 
40
    /** lighting-color property */
 
41
    guint32 lighting_color;
 
42
    guint lighting_color_set : 1;
 
43
    /** pointer to the associated renderer */
 
44
    Inkscape::Filters::FilterDiffuseLighting *renderer;
 
45
};
 
46
 
 
47
struct SPFeDiffuseLightingClass {
 
48
    SPFilterPrimitiveClass parent_class;
 
49
};
 
50
 
 
51
GType sp_feDiffuseLighting_get_type();
 
52
 
 
53
 
 
54
#endif /* !SP_FEDIFFUSELIGHTING_H_SEEN */
 
55
 
 
56
/*
 
57
  Local Variables:
 
58
  mode:c++
 
59
  c-file-style:"stroustrup"
 
60
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
61
  indent-tabs-mode:nil
 
62
  fill-column:99
 
63
  End:
 
64
*/
 
65
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :