Commit 3fcb7958 authored by Emmanuel Pacaud's avatar Emmanuel Pacaud Committed by Emmanuel Pacaud

Fix indentation of *.h files. Running indent on them was not a good idea.

2007-01-12  Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr>

	Fix indentation of *.h files. Running indent on them was not a good
	idea. Also add sts setting to vim modeline.


svn path=/trunk/; revision=1089
parent e00163d2
2007-01-12 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr>
Fix indentation of *.h files. Running indent on them was not a good
idea. Also add sts setting to vim modeline.
2007-01-12 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr>
Indentation fix, using: indent -kr -nut -pcs -psl -i4 -l100
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-file-util.c: SAX-based renderer for SVG files into a GdkPixbuf.
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg.c: SAX-based renderer for SVG files into a GdkPixbuf.
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-bpath-util.c: Data structure and convenience functions for creating bezier paths.
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-bpath-util.h: Path utility functions
......@@ -28,7 +28,8 @@
#include <glib/gtypes.h>
G_BEGIN_DECLS typedef enum {
G_BEGIN_DECLS
typedef enum {
RSVG_MOVETO,
RSVG_MOVETO_OPEN,
RSVG_CURVETO,
......@@ -57,18 +58,19 @@ struct _RsvgBpathDef {
int moveto_idx;
};
RsvgBpathDef *rsvg_bpath_def_new (void);
RsvgBpathDef *rsvg_bpath_def_new_from (RsvgBpath * bpath);
RsvgBpathDef *rsvg_bpath_def_new (void);
RsvgBpathDef *rsvg_bpath_def_new_from (RsvgBpath * bpath);
void rsvg_bpath_def_free (RsvgBpathDef * bpd);
void rsvg_bpath_def_free (RsvgBpathDef * bpd);
void rsvg_bpath_def_moveto (RsvgBpathDef * bpd, double x, double y);
void rsvg_bpath_def_lineto (RsvgBpathDef * bpd, double x, double y);
void rsvg_bpath_def_curveto (RsvgBpathDef * bpd,
double x1, double y1, double x2, double y2, double x3, double y3);
void rsvg_bpath_def_closepath (RsvgBpathDef * bpd);
void rsvg_bpath_def_moveto (RsvgBpathDef * bpd, double x, double y);
void rsvg_bpath_def_lineto (RsvgBpathDef * bpd, double x, double y);
void rsvg_bpath_def_curveto (RsvgBpathDef * bpd,
double x1, double y1, double x2, double y2, double x3, double y3);
void rsvg_bpath_def_closepath (RsvgBpathDef * bpd);
void rsvg_bpath_def_art_finish (RsvgBpathDef * bpd);
void rsvg_bpath_def_art_finish (RsvgBpathDef * bpd);
G_END_DECLS
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-shapes.c: Draw shapes with cairo
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-cairo-render.h: The cairo backend plugin
......@@ -31,8 +31,10 @@
#include "rsvg-cairo-render.h"
#include <cairo.h>
G_BEGIN_DECLS void
rsvg_cairo_clip (RsvgDrawingCtx * ctx, RsvgClipPath * clip, RsvgBbox * bbox);
G_BEGIN_DECLS
void rsvg_cairo_clip (RsvgDrawingCtx * ctx, RsvgClipPath * clip, RsvgBbox * bbox);
G_END_DECLS
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-shapes.c: Draw shapes with cairo
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-shapes.c: Draw shapes with libart
......@@ -29,33 +29,26 @@
#include "rsvg-private.h"
G_BEGIN_DECLS PangoContext * rsvg_cairo_create_pango_context (RsvgDrawingCtx * ctx);
G_BEGIN_DECLS
void
rsvg_cairo_render_pango_layout (RsvgDrawingCtx * ctx, PangoLayout * layout, double x, double y);
PangoContext *rsvg_cairo_create_pango_context (RsvgDrawingCtx *ctx);
void rsvg_cairo_render_pango_layout (RsvgDrawingCtx *ctx, PangoLayout *layout,
double x, double y);
void rsvg_cairo_render_path (RsvgDrawingCtx *ctx,
const RsvgBpathDef * path);
void rsvg_cairo_render_image (RsvgDrawingCtx *ctx, const GdkPixbuf * img,
double x, double y, double w, double h);
void rsvg_cairo_push_discrete_layer (RsvgDrawingCtx *ctx);
void rsvg_cairo_pop_discrete_layer (RsvgDrawingCtx *ctx);
void rsvg_cairo_add_clipping_rect (RsvgDrawingCtx *ctx,
double x, double y, double width, double height);
void
rsvg_cairo_render_path (RsvgDrawingCtx * ctx, const RsvgBpathDef * path);
GdkPixbuf *rsvg_cairo_get_image_of_node (RsvgDrawingCtx *ctx, RsvgNode *drawable,
double width, double height);
void
rsvg_cairo_render_image (RsvgDrawingCtx * ctx,
const GdkPixbuf * img, double x, double y, double w, double h);
void
rsvg_cairo_push_discrete_layer (RsvgDrawingCtx * ctx);
void
rsvg_cairo_pop_discrete_layer (RsvgDrawingCtx * ctx);
void
rsvg_cairo_add_clipping_rect (RsvgDrawingCtx * ctx,
double x, double y, double width, double height);
GdkPixbuf *rsvg_cairo_get_image_of_node (RsvgDrawingCtx * ctx,
RsvgNode * drawable, double width, double height);
void rsvg_cairo_to_pixbuf (guint8 * pixels, int rowstride, int height);
void rsvg_pixbuf_to_cairo (guint8 * pixels, int rowstride, int height);
void rsvg_cairo_to_pixbuf (guint8 * pixels, int rowstride, int height);
void rsvg_pixbuf_to_cairo (guint8 * pixels, int rowstride, int height);
G_END_DECLS
#endif /*RSVG_CAIRO_DRAW_H */
#endif /*RSVG_CAIRO_DRAW_H */
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-cairo-render.c: The cairo backend plugin
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-cairo-render.h: The cairo backend plugin
......@@ -45,8 +45,9 @@ struct _RsvgCairoRender {
GList *pixbuf_stack;
};
RsvgCairoRender *rsvg_cairo_render_new (cairo_t * cr, double width, double height);
void rsvg_cairo_render_rsvg_handle (cairo_t * cr, RsvgHandle * handle);
RsvgCairoRender *rsvg_cairo_render_new (cairo_t * cr, double width, double height);
void rsvg_cairo_render_rsvg_handle (cairo_t * cr, RsvgHandle * handle);
G_END_DECLS
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-cairo.h: SAX-based renderer for SVG files using cairo
......@@ -27,11 +27,11 @@
#include <cairo.h>
G_BEGIN_DECLS void
rsvg_handle_render_cairo (RsvgHandle * handle, cairo_t * cr);
G_BEGIN_DECLS
void
rsvg_handle_render_cairo_sub (RsvgHandle * handle, cairo_t * cr, const char *id);
void rsvg_handle_render_cairo (RsvgHandle * handle, cairo_t * cr);
void rsvg_handle_render_cairo_sub (RsvgHandle * handle, cairo_t * cr, const char *id);
G_END_DECLS
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-cond.c: Handle SVG conditionals
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-css.c: Parse CSS basic data types.
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-css.h : CSS utility functions
......@@ -30,6 +30,7 @@
#include "rsvg-private.h"
G_BEGIN_DECLS
#define RSVG_ASPECT_RATIO_NONE (0)
#define RSVG_ASPECT_RATIO_XMIN_YMIN (1 << 0)
#define RSVG_ASPECT_RATIO_XMID_YMIN (1 << 1)
......@@ -41,48 +42,33 @@ G_BEGIN_DECLS
#define RSVG_ASPECT_RATIO_XMID_YMAX (1 << 7)
#define RSVG_ASPECT_RATIO_XMAX_YMAX (1 << 8)
#define RSVG_ASPECT_RATIO_SLICE (1 << 31)
int rsvg_css_parse_aspect_ratio (const char *str);
gboolean rsvg_css_param_match (const char *str, const char *param_name);
int
rsvg_css_param_arg_offset (const char *str);
guint32 rsvg_css_parse_color (const char *str, gboolean * inherit);
guint rsvg_css_parse_opacity (const char *str);
double
rsvg_css_parse_angle (const char *str);
double
rsvg_css_parse_frequency (const char *str);
double
rsvg_css_parse_time (const char *str);
int rsvg_css_parse_aspect_ratio (const char *str);
PangoStyle rsvg_css_parse_font_style (const char *str, gboolean * inherit);
gboolean rsvg_css_param_match (const char *str, const char *param_name);
int rsvg_css_param_arg_offset (const char *str);
PangoVariant rsvg_css_parse_font_variant (const char *str, gboolean * inherit);
guint32 rsvg_css_parse_color (const char *str, gboolean * inherit);
guint rsvg_css_parse_opacity (const char *str);
double rsvg_css_parse_angle (const char *str);
double rsvg_css_parse_frequency (const char *str);
double rsvg_css_parse_time (const char *str);
PangoWeight rsvg_css_parse_font_weight (const char *str, gboolean * inherit);
PangoStyle rsvg_css_parse_font_style (const char *str, gboolean * inherit);
PangoVariant rsvg_css_parse_font_variant (const char *str, gboolean * inherit);
PangoWeight rsvg_css_parse_font_weight (const char *str, gboolean * inherit);
PangoStretch rsvg_css_parse_font_stretch (const char *str, gboolean * inherit);
const char *rsvg_css_parse_font_family (const char *str, gboolean * inherit);
PangoStretch rsvg_css_parse_font_stretch (const char *str, gboolean * inherit);
RsvgViewBox rsvg_css_parse_vbox (const char *vbox);
void rsvg_css_parse_number_optional_number (const char *str, double *x, double *y);
gchar **rsvg_css_parse_list (const char *in_str, guint * out_list_len);
gdouble *rsvg_css_parse_number_list (const char *in_str, guint * out_list_len);
const char *rsvg_css_parse_font_family (const char *str, gboolean * inherit);
gboolean rsvg_css_parse_overflow (const char *str, gboolean * inherit);
RsvgViewBox rsvg_css_parse_vbox (const char *vbox);
void
rsvg_css_parse_number_optional_number (const char *str, double *x, double *y);
gchar **rsvg_css_parse_list (const char *in_str, guint * out_list_len);
gdouble *rsvg_css_parse_number_list (const char *in_str, guint * out_list_len);
gboolean rsvg_css_parse_overflow (const char *str, gboolean * inherit);
char **rsvg_css_parse_xml_attribute_string (const char *attribute_string);
char **rsvg_css_parse_xml_attribute_string (const char *attribute_string);
G_END_DECLS
#endif /* RSVG_CSS_H */
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-defs.c: Manage SVG defs and references.
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-defs.h : SVG defs utilities
......@@ -30,30 +30,17 @@
#include <glib/gtypes.h>
G_BEGIN_DECLS RsvgDefs * rsvg_defs_new (void);
RsvgNode *rsvg_defs_lookup (const RsvgDefs * defs, const char *name);
void
rsvg_defs_set (RsvgDefs * defs, const char *name, RsvgNode * val);
void
rsvg_defs_free (RsvgDefs * defs);
void
rsvg_defs_set_base_uri (RsvgDefs * self, gchar * base_uri);
void
rsvg_defs_add_resolver (RsvgDefs * defs, RsvgNode ** tochange, const gchar * name);
void
rsvg_defs_resolve_all (RsvgDefs * defs);
void
rsvg_defs_register_name (RsvgDefs * defs, const char *name, RsvgNode * val);
void
rsvg_defs_register_memory (RsvgDefs * defs, RsvgNode * val);
G_BEGIN_DECLS
RsvgDefs *rsvg_defs_new (void);
RsvgNode *rsvg_defs_lookup (const RsvgDefs * defs, const char *name);
void rsvg_defs_set (RsvgDefs * defs, const char *name, RsvgNode * val);
void rsvg_defs_free (RsvgDefs * defs);
void rsvg_defs_set_base_uri (RsvgDefs * self, gchar * base_uri);
void rsvg_defs_add_resolver (RsvgDefs * defs, RsvgNode ** tochange, const gchar * name);
void rsvg_defs_resolve_all (RsvgDefs * defs);
void rsvg_defs_register_name (RsvgDefs * defs, const char *name, RsvgNode * val);
void rsvg_defs_register_memory (RsvgDefs * defs, RsvgNode * val);
G_END_DECLS
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-file-util.c: SAX-based renderer for SVG files into a GdkPixbuf.
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-filter.c: Provides filters
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-filter.h : Provides filters
......@@ -29,7 +29,9 @@
#include "rsvg-defs.h"
#include <libxml/SAX.h>
G_BEGIN_DECLS typedef RsvgCoordUnits RsvgFilterUnits;
G_BEGIN_DECLS
typedef RsvgCoordUnits RsvgFilterUnits;
struct _RsvgFilter {
RsvgNode super;
......@@ -39,60 +41,41 @@ struct _RsvgFilter {
RsvgFilterUnits primitiveunits;
};
GdkPixbuf *rsvg_filter_render (RsvgFilter * self, GdkPixbuf * source, GdkPixbuf * bg,
RsvgDrawingCtx * context, RsvgBbox * dimentions, char *channelmap);
RsvgNode *rsvg_new_filter (void);
RsvgFilter *rsvg_filter_parse (const RsvgDefs * defs, const char *str);
RsvgNode *rsvg_new_filter_primitive_blend (void);
RsvgNode *rsvg_new_filter_primitive_convolve_matrix (void);
RsvgNode *rsvg_new_filter_primitive_gaussian_blur (void);
RsvgNode *rsvg_new_filter_primitive_offset (void);
RsvgNode *rsvg_new_filter_primitive_merge (void);
RsvgNode *rsvg_new_filter_primitive_merge_node (void);
RsvgNode *rsvg_new_filter_primitive_colour_matrix (void);
RsvgNode *rsvg_new_filter_primitive_component_transfer (void);
RsvgNode *rsvg_new_node_component_transfer_function (char channel);
RsvgNode *rsvg_new_filter_primitive_erode (void);
RsvgNode *rsvg_new_filter_primitive_composite (void);
RsvgNode *rsvg_new_filter_primitive_flood (void);
RsvgNode *rsvg_new_filter_primitive_displacement_map (void);
RsvgNode *rsvg_new_filter_primitive_turbulence (void);
RsvgNode *rsvg_new_filter_primitive_image (void);
RsvgNode *rsvg_new_filter_primitive_diffuse_lighting (void);
RsvgNode *rsvg_new_filter_primitive_light_source (char type);
RsvgNode *rsvg_new_filter_primitive_specular_lighting (void);
RsvgNode *rsvg_new_filter_primitive_tile (void);
void
rsvg_filter_adobe_blend (gint modenum, GdkPixbuf * in, GdkPixbuf * bg,
GdkPixbuf * output, RsvgIRect boundarys, RsvgDrawingCtx * ctx);
void rsvg_alpha_blt (GdkPixbuf * src, gint srcx, gint srcy,
gint srcwidth, gint srcheight, GdkPixbuf * dst, gint dstx, gint dsty);
void rsvg_art_affine_image (const GdkPixbuf * img, GdkPixbuf * intermediate,
double *affine, double w, double h);
GdkPixbuf *rsvg_filter_render (RsvgFilter * self, GdkPixbuf * source, GdkPixbuf * bg,
RsvgDrawingCtx * context, RsvgBbox * dimentions, char *channelmap);
RsvgNode *rsvg_new_filter (void);
RsvgFilter *rsvg_filter_parse (const RsvgDefs * defs, const char *str);
RsvgNode *rsvg_new_filter_primitive_blend (void);
RsvgNode *rsvg_new_filter_primitive_convolve_matrix (void);
RsvgNode *rsvg_new_filter_primitive_gaussian_blur (void);
RsvgNode *rsvg_new_filter_primitive_offset (void);
RsvgNode *rsvg_new_filter_primitive_merge (void);
RsvgNode *rsvg_new_filter_primitive_merge_node (void);
RsvgNode *rsvg_new_filter_primitive_colour_matrix (void);
RsvgNode *rsvg_new_filter_primitive_component_transfer (void);
RsvgNode *rsvg_new_node_component_transfer_function (char channel);
RsvgNode *rsvg_new_filter_primitive_erode (void);
RsvgNode *rsvg_new_filter_primitive_composite (void);
RsvgNode *rsvg_new_filter_primitive_flood (void);
RsvgNode *rsvg_new_filter_primitive_displacement_map (void);
RsvgNode *rsvg_new_filter_primitive_turbulence (void);
RsvgNode *rsvg_new_filter_primitive_image (void);
RsvgNode *rsvg_new_filter_primitive_diffuse_lighting (void);
RsvgNode *rsvg_new_filter_primitive_light_source (char type);
RsvgNode *rsvg_new_filter_primitive_specular_lighting (void);
RsvgNode *rsvg_new_filter_primitive_tile (void);
void rsvg_filter_adobe_blend (gint modenum, GdkPixbuf * in, GdkPixbuf * bg,
GdkPixbuf * output, RsvgIRect boundarys,
RsvgDrawingCtx * ctx);
void rsvg_alpha_blt (GdkPixbuf * src, gint srcx, gint srcy,
gint srcwidth, gint srcheight,
GdkPixbuf * dst, gint dstx, gint dsty);
void rsvg_art_affine_image (const GdkPixbuf * img, GdkPixbuf * intermediate,
double *affine, double w, double h);
G_END_DECLS
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-gobject.c: GObject support.
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-image.c: Image loading and displaying
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-image.h: Image loading and displaying
......@@ -31,7 +31,9 @@
#include "rsvg-structure.h"
G_BEGIN_DECLS RsvgNode * rsvg_new_image (void);
G_BEGIN_DECLS
RsvgNode *rsvg_new_image (void);
typedef struct _RsvgNodeImage RsvgNodeImage;
......@@ -51,4 +53,5 @@ gchar *rsvg_get_file_path (const gchar * filename, const gchar * basedir);
GdkPixbuf *rsvg_pixbuf_new_from_href (const char *href, const char *base_uri, GError ** error);
G_END_DECLS
#endif /* RSVG_IMAGE_H */
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-marker.c: Marker loading and rendering
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-marker.h: Marker loading and rendering
......@@ -27,7 +27,9 @@
#include "rsvg-structure.h"
G_BEGIN_DECLS typedef struct _RsvgMarker RsvgMarker;
G_BEGIN_DECLS
typedef struct _RsvgMarker RsvgMarker;
struct _RsvgMarker {
RsvgNode super;
......@@ -39,15 +41,12 @@ struct _RsvgMarker {
RsvgViewBox vbox;
};
RsvgNode *rsvg_new_marker (void);
void
rsvg_marker_render (RsvgMarker * self, gdouble x, gdouble y, gdouble orient, gdouble linewidth, RsvgDrawingCtx * ctx);
RsvgNode *rsvg_marker_parse (const RsvgDefs * defs, const char *str);
void
rsvg_render_markers (const RsvgBpathDef * bpath_def, RsvgDrawingCtx * ctx);
RsvgNode *rsvg_new_marker (void);
void rsvg_marker_render (RsvgMarker * self, gdouble x, gdouble y,
gdouble orient, gdouble linewidth, RsvgDrawingCtx * ctx);
RsvgNode *rsvg_marker_parse (const RsvgDefs * defs, const char *str);
void rsvg_render_markers (const RsvgBpathDef * bpath_def, RsvgDrawingCtx * ctx);
G_END_DECLS
#endif /* RSVG_MARKER_H */
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-filter.c: Provides filters
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-mask.h : Provides Masks
......@@ -32,7 +32,9 @@
#include "rsvg-shapes.h"
#include <libxml/SAX.h>
G_BEGIN_DECLS typedef RsvgCoordUnits RsvgMaskUnits;
G_BEGIN_DECLS
typedef RsvgCoordUnits RsvgMaskUnits;
typedef struct _RsvgMask RsvgMask;
......@@ -43,9 +45,8 @@ struct _RsvgMask {
RsvgMaskUnits contentunits;
};
RsvgNode *rsvg_new_mask (void);
RsvgNode *rsvg_mask_parse (const RsvgDefs * defs, const char *str);
RsvgNode *rsvg_new_mask (void);
RsvgNode *rsvg_mask_parse (const RsvgDefs * defs, const char *str);
typedef struct _RsvgClipPath RsvgClipPath;
......@@ -54,9 +55,8 @@ struct _RsvgClipPath {
RsvgCoordUnits units;
};
RsvgNode *rsvg_new_clip_path (void);
RsvgNode *rsvg_clip_path_parse (const RsvgDefs * defs, const char *str);
RsvgNode *rsvg_new_clip_path (void);
RsvgNode *rsvg_clip_path_parse (const RsvgDefs * defs, const char *str);
G_END_DECLS
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-paint-server.c: Implement the SVG paint server abstraction.
......
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-paint-server.h : RSVG colors
......@@ -29,7 +29,9 @@
#include <glib/gtypes.h>
#include "rsvg-defs.h"
G_BEGIN_DECLS typedef struct _RsvgGradientStop RsvgGradientStop;
G_BEGIN_DECLS
typedef struct _RsvgGradientStop RsvgGradientStop;
typedef struct _RsvgGradientStops RsvgGradientStops;
typedef struct _RsvgLinearGradient RsvgLinearGradient;
typedef struct _RsvgRadialGradient RsvgRadialGradient;
......@@ -139,37 +141,22 @@ struct _RsvgPaintServer {
};
/* Create a new paint server based on a specification string. */
RsvgPaintServer *rsvg_paint_server_parse (gboolean * inherit, const RsvgDefs * defs,
const char *str, guint32 current_color);
void
rsvg_paint_server_ref (RsvgPaintServer * ps);
void
rsvg_paint_server_unref (RsvgPaintServer * ps);
RsvgRadialGradient *rsvg_clone_radial_gradient (const RsvgRadialGradient * grad,
gboolean * shallow_cloned);
RsvgLinearGradient *rsvg_clone_linear_gradient (const RsvgLinearGradient * grad,
gboolean * shallow_cloned);
RsvgNode *rsvg_new_linear_gradient (void);
RsvgNode *rsvg_new_radial_gradient (void);
RsvgNode *rsvg_new_stop (void);
RsvgNode *rsvg_new_pattern (void);
void
rsvg_pattern_fix_fallback (RsvgPattern * pattern);
void
rsvg_linear_gradient_fix_fallback (RsvgLinearGradient * grad);
void
rsvg_radial_gradient_fix_fallback (RsvgRadialGradient * grad);
RsvgPaintServer *rsvg_paint_server_parse (gboolean * inherit, const RsvgDefs * defs,
const char *str, guint32 current_color);
void rsvg_paint_server_ref (RsvgPaintServer * ps);
void rsvg_paint_server_unref (RsvgPaintServer * ps);
RsvgRadialGradient *rsvg_clone_radial_gradient (const RsvgRadialGradient * grad,
gboolean * shallow_cloned);
RsvgLinearGradient *rsvg_clone_linear_gradient (const RsvgLinearGradient * grad,
gboolean * shallow_cloned);
RsvgNode *rsvg_new_linear_gradient (void);
RsvgNode *rsvg_new_radial_gradient (void);
RsvgNode *rsvg_new_stop (void);
RsvgNode *rsvg_new_pattern (void);
void rsvg_pattern_fix_fallback (RsvgPattern * pattern);
void rsvg_linear_gradient_fix_fallback (RsvgLinearGradient * grad);
void rsvg_radial_gradient_fix_fallback (RsvgRadialGradient * grad);
G_END_DECLS
#endif
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-path.h: Draw SVG paths
......@@ -28,7 +28,10 @@
#include "rsvg-bpath-util.h"
G_BEGIN_DECLS RsvgBpathDef * rsvg_parse_path (const char *path_str);
G_BEGIN_DECLS
RsvgBpathDef *rsvg_parse_path (const char *path_str);
G_END_DECLS
#endif /* RSVG_PATH_H */
/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
rsvg-private.h: Internals of RSVG
......@@ -40,7 +40,9 @@
# include <float.h>
#endif
G_BEGIN_DECLS typedef struct RsvgSaxHandler RsvgSaxHandler;
G_BEGIN_DECLS
typedef struct RsvgSaxHandler RsvgSaxHandler;
typedef struct RsvgDrawingCtx RsvgDrawingCtx;
typedef struct RsvgRender RsvgRender;
typedef struct _RsvgPropertyBag RsvgPropertyBag;
......@@ -192,15 +194,18 @@ struct RsvgDrawingCtx {
struct RsvgRender {
void (*free) (RsvgRender * self);
PangoContext *(*create_pango_context) (RsvgDrawingCtx * ctx);
void (*render_pango_layout) (RsvgDrawingCtx * ctx, PangoLayout * layout, double x, double y);
void (*render_path) (RsvgDrawingCtx * ctx, const RsvgBpathDef * path);
void (*render_image) (RsvgDrawingCtx * ctx, const GdkPixbuf * pixbuf,
double x, double y, double w, double h);
void (*pop_discrete_layer) (RsvgDrawingCtx * ctx);
void (*push_discrete_layer) (RsvgDrawingCtx * ctx);
void (*add_clipping_rect) (RsvgDrawingCtx * ctx, double x, double y, double w, double h);
GdkPixbuf *(*get_image_of_node) (RsvgDrawingCtx * ctx, RsvgNode * drawable, double w, double h);
PangoContext *(*create_pango_context) (RsvgDrawingCtx * ctx);
void (*render_pango_layout) (RsvgDrawingCtx * ctx, PangoLayout *layout,
double x, double y);
void (*render_path) (RsvgDrawingCtx * ctx, const RsvgBpathDef * path);
void (*render_image) (RsvgDrawingCtx * ctx, const GdkPixbuf * pixbuf,