Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:03

0001 /* cairo - a vector graphics library with display and print output
0002  *
0003  * Copyright © 2002 University of Southern California
0004  *
0005  * This library is free software; you can redistribute it and/or
0006  * modify it either under the terms of the GNU Lesser General Public
0007  * License version 2.1 as published by the Free Software Foundation
0008  * (the "LGPL") or, at your option, under the terms of the Mozilla
0009  * Public License Version 1.1 (the "MPL"). If you do not alter this
0010  * notice, a recipient may use your version of this file under either
0011  * the MPL or the LGPL.
0012  *
0013  * You should have received a copy of the LGPL along with this library
0014  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
0015  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
0016  * You should have received a copy of the MPL along with this library
0017  * in the file COPYING-MPL-1.1
0018  *
0019  * The contents of this file are subject to the Mozilla Public License
0020  * Version 1.1 (the "License"); you may not use this file except in
0021  * compliance with the License. You may obtain a copy of the License at
0022  * http://www.mozilla.org/MPL/
0023  *
0024  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
0025  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
0026  * the specific language governing rights and limitations.
0027  *
0028  * The Original Code is the cairo graphics library.
0029  *
0030  * The Initial Developer of the Original Code is University of Southern
0031  * California.
0032  *
0033  * Contributor(s):
0034  *  Carl D. Worth <cworth@cworth.org>
0035  */
0036 
0037 #ifndef CAIRO_PS_H
0038 #define CAIRO_PS_H
0039 
0040 #include "cairo.h"
0041 
0042 #if CAIRO_HAS_PS_SURFACE
0043 
0044 #include <stdio.h>
0045 
0046 CAIRO_BEGIN_DECLS
0047 
0048 /* PS-surface functions */
0049 
0050 /**
0051  * cairo_ps_level_t:
0052  * @CAIRO_PS_LEVEL_2: The language level 2 of the PostScript specification. (Since 1.6)
0053  * @CAIRO_PS_LEVEL_3: The language level 3 of the PostScript specification. (Since 1.6)
0054  *
0055  * #cairo_ps_level_t is used to describe the language level of the
0056  * PostScript Language Reference that a generated PostScript file will
0057  * conform to.
0058  *
0059  * Since: 1.6
0060  **/
0061 typedef enum _cairo_ps_level {
0062     CAIRO_PS_LEVEL_2,
0063     CAIRO_PS_LEVEL_3
0064 } cairo_ps_level_t;
0065 
0066 cairo_public cairo_surface_t *
0067 cairo_ps_surface_create (const char     *filename,
0068              double          width_in_points,
0069              double          height_in_points);
0070 
0071 cairo_public cairo_surface_t *
0072 cairo_ps_surface_create_for_stream (cairo_write_func_t  write_func,
0073                     void           *closure,
0074                     double      width_in_points,
0075                     double      height_in_points);
0076 
0077 cairo_public void
0078 cairo_ps_surface_restrict_to_level (cairo_surface_t    *surface,
0079                                     cairo_ps_level_t    level);
0080 
0081 cairo_public void
0082 cairo_ps_get_levels (cairo_ps_level_t const  **levels,
0083                      int                      *num_levels);
0084 
0085 cairo_public const char *
0086 cairo_ps_level_to_string (cairo_ps_level_t level);
0087 
0088 cairo_public void
0089 cairo_ps_surface_set_eps (cairo_surface_t   *surface,
0090               cairo_bool_t           eps);
0091 
0092 cairo_public cairo_bool_t
0093 cairo_ps_surface_get_eps (cairo_surface_t   *surface);
0094 
0095 cairo_public void
0096 cairo_ps_surface_set_size (cairo_surface_t  *surface,
0097                double        width_in_points,
0098                double        height_in_points);
0099 
0100 cairo_public void
0101 cairo_ps_surface_dsc_comment (cairo_surface_t   *surface,
0102                   const char    *comment);
0103 
0104 cairo_public void
0105 cairo_ps_surface_dsc_begin_setup (cairo_surface_t *surface);
0106 
0107 cairo_public void
0108 cairo_ps_surface_dsc_begin_page_setup (cairo_surface_t *surface);
0109 
0110 CAIRO_END_DECLS
0111 
0112 #else  /* CAIRO_HAS_PS_SURFACE */
0113 # error Cairo was not compiled with support for the ps backend
0114 #endif /* CAIRO_HAS_PS_SURFACE */
0115 
0116 #endif /* CAIRO_PS_H */