diff options
author | Dom Lachowicz <doml@src.gnome.org> | 2004-06-10 23:41:31 +0000 |
---|---|---|
committer | Dom Lachowicz <doml@src.gnome.org> | 2004-06-10 23:41:31 +0000 |
commit | 23b106ebbcc366be951a6b76060d66c3d12bd182 (patch) | |
tree | 6daae9c7ec0437ca2f3a3ca9fe22e6cb5cd396c4 /rsvg-css.h | |
parent | 6a59cbd662e0dec66b7c20780da8db14a10e1bf5 (diff) | |
download | librsvg-23b106ebbcc366be951a6b76060d66c3d12bd182.tar.gz |
start on preserveAspectRatio for images
Diffstat (limited to 'rsvg-css.h')
-rw-r--r-- | rsvg-css.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -30,9 +30,22 @@ 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) +#define RSVG_ASPECT_RATIO_XMAX_YMIN (1 << 2) +#define RSVG_ASPECT_RATIO_XMIN_YMID (1 << 3) +#define RSVG_ASPECT_RATIO_XMID_YMID (1 << 4) +#define RSVG_ASPECT_RATIO_XMAX_YMID (1 << 5) +#define RSVG_ASPECT_RATIO_XMIN_YMAX (1 << 6) +#define RSVG_ASPECT_RATIO_XMID_YMAX (1 << 7) +#define RSVG_ASPECT_RATIO_XMAX_YMAX (1 << 8) + +int rsvg_css_parse_aspect_ratio(const char * str); + double rsvg_css_parse_length (const char *str, gdouble pixels_per_inch, - gint *percent, gint *em, gint *ex); + gint *percent, gint *em, gint *ex); double rsvg_css_parse_normalized_length(const char *str, gdouble pixels_per_inch, |