[18608] | 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 | |
---|
[18274] | 28 | #include <glib/gtypes.h> |
---|
[18608] | 29 | #include <pango/pangoft2.h> |
---|
[17276] | 30 | |
---|
[18608] | 31 | G_BEGIN_DECLS |
---|
| 32 | |
---|
[17276] | 33 | double |
---|
[18608] | 34 | rsvg_css_parse_length (const char *str, gdouble pixels_per_inch, |
---|
| 35 | gint *percent, gint *em, gint *ex); |
---|
[17276] | 36 | |
---|
[18608] | 37 | double |
---|
| 38 | rsvg_css_parse_normalized_length(const char *str, gdouble pixels_per_inch, |
---|
| 39 | gdouble width_or_height, gdouble font_size); |
---|
| 40 | |
---|
[17276] | 41 | gboolean |
---|
| 42 | rsvg_css_param_match (const char *str, const char *param_name); |
---|
| 43 | |
---|
| 44 | int |
---|
| 45 | rsvg_css_param_arg_offset (const char *str); |
---|
| 46 | |
---|
| 47 | guint32 |
---|
| 48 | rsvg_css_parse_color (const char *str); |
---|
| 49 | |
---|
| 50 | guint |
---|
| 51 | rsvg_css_parse_opacity (const char *str); |
---|
[18351] | 52 | |
---|
| 53 | double |
---|
[18608] | 54 | rsvg_css_parse_angle (const char * str); |
---|
| 55 | |
---|
| 56 | double |
---|
| 57 | rsvg_css_parse_frequency (const char * str); |
---|
| 58 | |
---|
| 59 | double |
---|
| 60 | rsvg_css_parse_time (const char * str); |
---|
| 61 | |
---|
| 62 | PangoStyle |
---|
| 63 | rsvg_css_parse_font_style (const char * str, PangoStyle inherit); |
---|
| 64 | |
---|
| 65 | PangoVariant |
---|
| 66 | rsvg_css_parse_font_variant (const char * str, PangoVariant inherit); |
---|
| 67 | |
---|
| 68 | PangoWeight |
---|
| 69 | rsvg_css_parse_font_weight (const char * str, PangoWeight inherit); |
---|
| 70 | |
---|
| 71 | PangoStretch |
---|
| 72 | rsvg_css_parse_font_stretch (const char * str, PangoStretch inherit); |
---|
| 73 | |
---|
| 74 | const char * |
---|
| 75 | rsvg_css_parse_font_family (const char * str, const char * inherit); |
---|
| 76 | |
---|
| 77 | gboolean |
---|
| 78 | rsvg_css_parse_vbox (const char * vbox, double * x, double * y, |
---|
| 79 | double * w, double * h); |
---|
| 80 | |
---|
| 81 | G_END_DECLS |
---|
| 82 | |
---|
| 83 | #endif /* RSVG_CSS_H */ |
---|