source: trunk/third/librsvg/rsvg-css.h @ 18609

Revision 18609, 2.2 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18608, which included commits to RCS files with non-trunk default branches.
Line 
1/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/*
3   rsvg-css.h : CSS utility functions
4
5   Copyright (C) 2000 Eazel, Inc.
6   Copyright (C) 2002 Dom Lachowicz <cinamod@hotmail.com>
7
8   This program is free software; you can redistribute it and/or
9   modify it under the terms of the GNU Library General Public License as
10   published by the Free Software Foundation; either version 2 of the
11   License, or (at your option) any later version.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   Library General Public License for more details.
17
18   You should have received a copy of the GNU Library General Public
19   License along with this program; if not, write to the
20   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21   Boston, MA 02111-1307, USA.
22
23   Author: Raph Levien <raph@artofcode.com>
24*/
25#ifndef RSVG_CSS_H
26#define RSVG_CSS_H
27
28#include <glib/gtypes.h>
29#include <pango/pangoft2.h>
30
31G_BEGIN_DECLS
32
33double
34rsvg_css_parse_length (const char *str, gdouble pixels_per_inch,
35                       gint *percent, gint *em, gint *ex);
36
37double
38rsvg_css_parse_normalized_length(const char *str, gdouble pixels_per_inch,
39                                                                 gdouble width_or_height, gdouble font_size);
40
41gboolean
42rsvg_css_param_match (const char *str, const char *param_name);
43
44int
45rsvg_css_param_arg_offset (const char *str);
46
47guint32
48rsvg_css_parse_color (const char *str);
49
50guint
51rsvg_css_parse_opacity (const char *str);
52
53double
54rsvg_css_parse_angle (const char * str);
55
56double
57rsvg_css_parse_frequency (const char * str);
58
59double
60rsvg_css_parse_time (const char * str);
61
62PangoStyle
63rsvg_css_parse_font_style (const char * str, PangoStyle inherit);
64
65PangoVariant
66rsvg_css_parse_font_variant (const char * str, PangoVariant inherit);
67
68PangoWeight
69rsvg_css_parse_font_weight (const char * str, PangoWeight inherit);
70
71PangoStretch
72rsvg_css_parse_font_stretch (const char * str, PangoStretch inherit);
73
74const char *
75rsvg_css_parse_font_family (const char * str, const char * inherit);
76
77gboolean
78rsvg_css_parse_vbox (const char * vbox, double * x, double * y,
79                                         double * w, double * h);
80
81G_END_DECLS
82
83#endif /* RSVG_CSS_H */
Note: See TracBrowser for help on using the repository browser.