diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2007-10-13 21:14:28 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2007-10-13 21:14:28 +0930 |
commit | b5c36010edc92ca129a0498cf04592f8f692f800 (patch) | |
tree | 8f38b38fbd00ffae1c3c699acd99e5146025e979 /src/cairo-ps.h | |
parent | b5fa273c9a4f730882c6edade785236e72b2b4db (diff) | |
download | cairo-b5c36010edc92ca129a0498cf04592f8f692f800.tar.gz |
Add cairo_ps_surface_restrict_to_level() API
Diffstat (limited to 'src/cairo-ps.h')
-rw-r--r-- | src/cairo-ps.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/cairo-ps.h b/src/cairo-ps.h index 24dd9f6b0..f3ac29042 100644 --- a/src/cairo-ps.h +++ b/src/cairo-ps.h @@ -47,6 +47,20 @@ CAIRO_BEGIN_DECLS /* PS-surface functions */ +/** + * cairo_ps_level_t + * @CAIRO_PS_LEVEL_2: The language level 2 of the PostScript specification. + * @CAIRO_PS_LEVEL_3: The language level 3 of the PostScript specification. + * + * #cairo_ps_level_t is used to describe the language level of the + * PostScript Language Reference that a generated PostScript file will + * conform to. + */ +typedef enum _cairo_ps_level { + CAIRO_PS_LEVEL_2, + CAIRO_PS_LEVEL_3 +} cairo_ps_level_t; + cairo_public cairo_surface_t * cairo_ps_surface_create (const char *filename, double width_in_points, @@ -59,6 +73,17 @@ cairo_ps_surface_create_for_stream (cairo_write_func_t write_func, double height_in_points); cairo_public void +cairo_ps_surface_restrict_to_level (cairo_surface_t *surface, + cairo_ps_level_t level); + +cairo_public void +cairo_ps_get_levels (cairo_ps_level_t const **levels, + int *num_levels); + +cairo_public const char * +cairo_ps_level_to_string (cairo_ps_level_t level); + +cairo_public void cairo_ps_surface_set_eps (cairo_surface_t *surface, cairo_bool_t eps); |