Code

r19083@shi: ted | 2008-04-21 16:09:24 -0700
[inkscape.git] / src / extension / internal / filter / cutout.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_CUTOUT_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_CUTOUT_H__
3 /* Change the 'CUTOUT' above to be your file name */
5 /*
6  * Copyright (C) 2008 Authors:
7  *   Ted Gould <ted@gould.cx>
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
11 /* ^^^ Change the copyright to be you and your e-mail address ^^^ */
13 #include "filter.h"
15 namespace Inkscape {
16 namespace Extension {
17 namespace Internal {
18 namespace Filter {
20 class Cutout : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22         static void init (void) {
23                 filter_init("cutout",     /* ID -- should be unique */
24                             N_("Coutout"), /* Name in the menus, should have a N_() around it for translation */
25                             N_("Artist text"),
26                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
27                                         "<filter>\n"
28                         "<feGaussianBlur stdDeviation=\"4.2312137203166218\" in=\"SourceAlpha\"/>\n"
29                         "<feOffset dx=\"5\" dy=\"5\" />\n"
30                         "<feComposite in=\"SourceGraphic\" operator=\"out\"/>\n"
31                                         "</filter>\n");
32                                                  /* The XML of the filter that should be added.  There
33                                                   * should be a <svg:filter> surrounding what you'd like
34                                                   * to be added with this effect. */
35         };
36 };
38 }; /* namespace Filter */
39 }; /* namespace Internal */
40 }; /* namespace Extension */
41 }; /* namespace Inkscape */
43 /* Change the 'CUTOUT' below to be your file name */
44 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_CUTOUT_H__ */