diff options
author | Dom Lachowicz <doml@src.gnome.org> | 2004-03-18 02:25:24 +0000 |
---|---|---|
committer | Dom Lachowicz <doml@src.gnome.org> | 2004-03-18 02:25:24 +0000 |
commit | 073cf52b0fa73db4e8165daf1048e9028fd003c7 (patch) | |
tree | 2e014bc68b902a79325cff4ec8fb760269dbda74 /rsvg-filter.h | |
parent | c8cbc856d5436bb88d49f1d0842f19c740273b74 (diff) | |
download | librsvg-073cf52b0fa73db4e8165daf1048e9028fd003c7.tar.gz |
re-merge the RSVG-filters branch back into HEAD
Diffstat (limited to 'rsvg-filter.h')
-rw-r--r-- | rsvg-filter.h | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/rsvg-filter.h b/rsvg-filter.h new file mode 100644 index 00000000..8ae46471 --- /dev/null +++ b/rsvg-filter.h @@ -0,0 +1,123 @@ +/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ +/* + 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 + +#include "rsvg.h" +#include "rsvg-defs.h" +#include <libxml/SAX.h> + +G_BEGIN_DECLS + +typedef enum { + objectBoundingBox, userSpaceOnUse +} RsvgFilterUnits; + +struct _RsvgFilter { + RsvgDefVal super; + int refcnt; + GPtrArray * primitives; + double x, y, width, height; + RsvgFilterUnits filterunits; + RsvgFilterUnits primitiveunits; +}; + +void +rsvg_filter_render (RsvgFilter *self, GdkPixbuf *source, GdkPixbuf *output, GdkPixbuf *bg, RsvgHandle *context); + +void +rsvg_start_filter (RsvgHandle *ctx, RsvgPropertyBag *atts); + +void +rsvg_end_filter (RsvgHandle *ctx); + +RsvgFilter * +rsvg_filter_parse (const RsvgDefs *defs, const char *str); + +void +rsvg_start_filter_primitive_blend (RsvgHandle *ctx, RsvgPropertyBag *atts); + +void +rsvg_start_filter_primitive_convolve_matrix (RsvgHandle *ctx, RsvgPropertyBag *atts); + +void +rsvg_start_filter_primitive_gaussian_blur (RsvgHandle *ctx, RsvgPropertyBag *atts); + +void +rsvg_start_filter_primitive_offset (RsvgHandle *ctx, RsvgPropertyBag *atts); + +void +rsvg_start_filter_primitive_merge (RsvgHandle *ctx, RsvgPropertyBag *atts); + +void +rsvg_start_filter_primitive_merge_node (RsvgHandle *ctx, RsvgPropertyBag *atts); + +void +rsvg_start_filter_primitive_colour_matrix (RsvgHandle *ctx, RsvgPropertyBag *atts); + +void +rsvg_start_filter_primitive_component_transfer (RsvgHandle * ctx, + RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_component_transfer_function (RsvgHandle * ctx, + RsvgPropertyBag * atts, char channel); + +void +rsvg_start_filter_primitive_erode (RsvgHandle * ctx, + RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_composite (RsvgHandle * ctx, RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_flood (RsvgHandle * ctx, + RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_displacement_map (RsvgHandle * ctx, RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_turbulence (RsvgHandle * ctx, RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_image (RsvgHandle * ctx, RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_diffuse_lighting (RsvgHandle * ctx, RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_light_source (RsvgHandle * ctx, + RsvgPropertyBag * atts, char type); + +void +rsvg_start_filter_primitive_specular_lighting (RsvgHandle * ctx, RsvgPropertyBag * atts); + +void +rsvg_start_filter_primitive_tile (RsvgHandle * ctx, RsvgPropertyBag * atts); + +G_END_DECLS + +#endif |