rsvg-filter.h 3.93 KB
Newer Older
1 2
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4 expandtab: */
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
/*
   rsvg-filter.h : Provides filters

   Copyright (C) 2004 Caleb Moore

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with this program; if not, write to the
   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.

   Author: Caleb Moore <calebmm@tpg.com.au>
*/

#ifndef RSVG_FILTER_H
#define RSVG_FILTER_H

29
#include "rsvg-private.h"
30

31 32
G_BEGIN_DECLS 

33 34 35 36
typedef struct  {
    int x0, y0, x1, y1;
} RsvgIRect;

37
typedef RsvgCoordUnits RsvgFilterUnits;
38 39

struct _RsvgFilter {
40 41 42
    RsvgLength x, y, width, height;
    RsvgFilterUnits filterunits;
    RsvgFilterUnits primitiveunits;
43 44
};

45
G_GNUC_INTERNAL
46
cairo_surface_t *rsvg_filter_render (RsvgNode *filter_node,
47 48 49 50
                                     cairo_surface_t *source,
                                     RsvgDrawingCtx *context, 
                                     RsvgBbox *dimentions, 
                                     char *channelmap);
51

52
G_GNUC_INTERNAL
53
RsvgNode    *rsvg_new_filter	    (const char *element_name, RsvgNode *parent);
54
G_GNUC_INTERNAL
55
RsvgNode    *rsvg_new_filter_primitive_blend                (const char *element_name, RsvgNode *parent);
56
G_GNUC_INTERNAL
57
RsvgNode    *rsvg_new_filter_primitive_convolve_matrix      (const char *element_name, RsvgNode *parent);
58
G_GNUC_INTERNAL
59
RsvgNode    *rsvg_new_filter_primitive_gaussian_blur        (const char *element_name, RsvgNode *parent);
60
G_GNUC_INTERNAL
61
RsvgNode    *rsvg_new_filter_primitive_offset               (const char *element_name, RsvgNode *parent);
62
G_GNUC_INTERNAL
63
RsvgNode    *rsvg_new_filter_primitive_merge                (const char *element_name, RsvgNode *parent);
64
G_GNUC_INTERNAL
65
RsvgNode    *rsvg_new_filter_primitive_merge_node           (const char *element_name, RsvgNode *parent);
66
G_GNUC_INTERNAL
67
RsvgNode    *rsvg_new_filter_primitive_color_matrix         (const char *element_name, RsvgNode *parent);
68
G_GNUC_INTERNAL
69
RsvgNode    *rsvg_new_filter_primitive_component_transfer   (const char *element_name, RsvgNode *parent);
70
G_GNUC_INTERNAL
71
RsvgNode    *rsvg_new_node_component_transfer_function      (const char *element_name, RsvgNode *parent);
72
G_GNUC_INTERNAL
73
RsvgNode    *rsvg_new_filter_primitive_erode                (const char *element_name, RsvgNode *parent);
74
G_GNUC_INTERNAL
75
RsvgNode    *rsvg_new_filter_primitive_composite            (const char *element_name, RsvgNode *parent);
76
G_GNUC_INTERNAL
77
RsvgNode    *rsvg_new_filter_primitive_flood                (const char *element_name, RsvgNode *parent);
78
G_GNUC_INTERNAL
79
RsvgNode    *rsvg_new_filter_primitive_displacement_map     (const char *element_name, RsvgNode *parent);
80
G_GNUC_INTERNAL
81
RsvgNode    *rsvg_new_filter_primitive_turbulence           (const char *element_name, RsvgNode *parent);
82
G_GNUC_INTERNAL
83
RsvgNode    *rsvg_new_filter_primitive_image                (const char *element_name, RsvgNode *parent);
84
G_GNUC_INTERNAL
85
RsvgNode    *rsvg_new_filter_primitive_diffuse_lighting	    (const char *element_name, RsvgNode *parent);
86
G_GNUC_INTERNAL
87
RsvgNode    *rsvg_new_node_light_source	                    (const char *element_name, RsvgNode *parent);
88
G_GNUC_INTERNAL
89
RsvgNode    *rsvg_new_filter_primitive_specular_lighting    (const char *element_name, RsvgNode *parent);
90
G_GNUC_INTERNAL
91
RsvgNode    *rsvg_new_filter_primitive_tile                 (const char *element_name, RsvgNode *parent);
92

93
G_END_DECLS
94

95
#endif