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

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/filters/displacementmap.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_FEDISPLACEMENTMAP_H_SEEN
 
2
#define SP_FEDISPLACEMENTMAP_H_SEEN
 
3
 
 
4
/** \file
 
5
 * SVG <feDisplacementMap> implementation, see DisplacementMap.cpp.
 
6
 */
 
7
/*
 
8
 * Authors:
 
9
 *   Hugo Rodrigues <haa.rodrigues@gmail.com>
 
10
 *
 
11
 * Copyright (C) 2006 Hugo Rodrigues
 
12
 *
 
13
 * Released under GNU GPL, read the file 'COPYING' for more information
 
14
 */
 
15
 
 
16
#include "sp-filter.h"
 
17
#include "displacementmap-fns.h"
 
18
 
 
19
enum FilterDisplacementMapChannelSelector {
 
20
    DISPLACEMENTMAP_CHANNEL_RED,
 
21
    DISPLACEMENTMAP_CHANNEL_GREEN,
 
22
    DISPLACEMENTMAP_CHANNEL_BLUE,
 
23
    DISPLACEMENTMAP_CHANNEL_ALPHA,
 
24
    DISPLACEMENTMAP_CHANNEL_ENDTYPE
 
25
};
 
26
 
 
27
/* FeDisplacementMap base class */
 
28
class SPFeDisplacementMapClass;
 
29
 
 
30
struct SPFeDisplacementMap : public SPFilterPrimitive {
 
31
    /** DISPLACEMENTMAP ATTRIBUTES HERE */
 
32
    int in2; 
 
33
    double scale;
 
34
    FilterDisplacementMapChannelSelector xChannelSelector;
 
35
    FilterDisplacementMapChannelSelector yChannelSelector;
 
36
};
 
37
 
 
38
struct SPFeDisplacementMapClass {
 
39
    SPFilterPrimitiveClass parent_class;
 
40
};
 
41
 
 
42
GType sp_feDisplacementMap_get_type();
 
43
 
 
44
 
 
45
#endif /* !SP_FEDISPLACEMENTMAP_H_SEEN */
 
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 :