Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /* cairo - a vector graphics library with display and print output
0002  *
0003  * Copyright © 2006 Red Hat, Inc.
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 Red Hat, Inc.
0031  *
0032  * Contributor(s):
0033  *  Carl D. Worth <cworth@cworth.org>
0034  */
0035 
0036 #ifndef CAIRO_DEPRECATED_H
0037 #define CAIRO_DEPRECATED_H
0038 
0039 #define CAIRO_FONT_TYPE_ATSUI CAIRO_FONT_TYPE_QUARTZ
0040 
0041 /* Obsolete functions. These definitions exist to coerce the compiler
0042  * into providing a little bit of guidance with its error
0043  * messages. The idea is to help users port their old code without
0044  * having to dig through lots of documentation.
0045  *
0046  * The first set of REPLACED_BY functions is for functions whose names
0047  * have just been changed. So fixing these up is mechanical, (and
0048  * automated by means of the cairo/util/cairo-api-update script.
0049  *
0050  * The second set of DEPRECATED_BY functions is for functions where
0051  * the replacement is used in a different way, (ie. different
0052  * arguments, multiple functions instead of one, etc). Fixing these up
0053  * will require a bit more work on the user's part, (and hopefully we
0054  * can get cairo-api-update to find these and print some guiding
0055  * information).
0056  */
0057 #define cairo_current_font_extents   cairo_current_font_extents_REPLACED_BY_cairo_font_extents
0058 #define cairo_get_font_extents       cairo_get_font_extents_REPLACED_BY_cairo_font_extents
0059 #define cairo_current_operator       cairo_current_operator_REPLACED_BY_cairo_get_operator
0060 #define cairo_current_tolerance      cairo_current_tolerance_REPLACED_BY_cairo_get_tolerance
0061 #define cairo_current_point      cairo_current_point_REPLACED_BY_cairo_get_current_point
0062 #define cairo_current_fill_rule      cairo_current_fill_rule_REPLACED_BY_cairo_get_fill_rule
0063 #define cairo_current_line_width     cairo_current_line_width_REPLACED_BY_cairo_get_line_width
0064 #define cairo_current_line_cap       cairo_current_line_cap_REPLACED_BY_cairo_get_line_cap
0065 #define cairo_current_line_join      cairo_current_line_join_REPLACED_BY_cairo_get_line_join
0066 #define cairo_current_miter_limit    cairo_current_miter_limit_REPLACED_BY_cairo_get_miter_limit
0067 #define cairo_current_matrix         cairo_current_matrix_REPLACED_BY_cairo_get_matrix
0068 #define cairo_current_target_surface cairo_current_target_surface_REPLACED_BY_cairo_get_target
0069 #define cairo_get_status             cairo_get_status_REPLACED_BY_cairo_status
0070 #define cairo_concat_matrix      cairo_concat_matrix_REPLACED_BY_cairo_transform
0071 #define cairo_scale_font                 cairo_scale_font_REPLACED_BY_cairo_set_font_size
0072 #define cairo_select_font                cairo_select_font_REPLACED_BY_cairo_select_font_face
0073 #define cairo_transform_font             cairo_transform_font_REPLACED_BY_cairo_set_font_matrix
0074 #define cairo_transform_point        cairo_transform_point_REPLACED_BY_cairo_user_to_device
0075 #define cairo_transform_distance     cairo_transform_distance_REPLACED_BY_cairo_user_to_device_distance
0076 #define cairo_inverse_transform_point    cairo_inverse_transform_point_REPLACED_BY_cairo_device_to_user
0077 #define cairo_inverse_transform_distance cairo_inverse_transform_distance_REPLACED_BY_cairo_device_to_user_distance
0078 #define cairo_init_clip          cairo_init_clip_REPLACED_BY_cairo_reset_clip
0079 #define cairo_surface_create_for_image   cairo_surface_create_for_image_REPLACED_BY_cairo_image_surface_create_for_data
0080 #define cairo_default_matrix         cairo_default_matrix_REPLACED_BY_cairo_identity_matrix
0081 #define cairo_matrix_set_affine      cairo_matrix_set_affine_REPLACED_BY_cairo_matrix_init
0082 #define cairo_matrix_set_identity    cairo_matrix_set_identity_REPLACED_BY_cairo_matrix_init_identity
0083 #define cairo_pattern_add_color_stop     cairo_pattern_add_color_stop_REPLACED_BY_cairo_pattern_add_color_stop_rgba
0084 #define cairo_set_rgb_color      cairo_set_rgb_color_REPLACED_BY_cairo_set_source_rgb
0085 #define cairo_set_pattern        cairo_set_pattern_REPLACED_BY_cairo_set_source
0086 #define cairo_xlib_surface_create_for_pixmap_with_visual    cairo_xlib_surface_create_for_pixmap_with_visual_REPLACED_BY_cairo_xlib_surface_create
0087 #define cairo_xlib_surface_create_for_window_with_visual    cairo_xlib_surface_create_for_window_with_visual_REPLACED_BY_cairo_xlib_surface_create
0088 #define cairo_xcb_surface_create_for_pixmap_with_visual cairo_xcb_surface_create_for_pixmap_with_visual_REPLACED_BY_cairo_xcb_surface_create
0089 #define cairo_xcb_surface_create_for_window_with_visual cairo_xcb_surface_create_for_window_with_visual_REPLACED_BY_cairo_xcb_surface_create
0090 #define cairo_ps_surface_set_dpi    cairo_ps_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution
0091 #define cairo_pdf_surface_set_dpi   cairo_pdf_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution
0092 #define cairo_svg_surface_set_dpi   cairo_svg_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution
0093 #define cairo_atsui_font_face_create_for_atsu_font_id  cairo_atsui_font_face_create_for_atsu_font_id_REPLACED_BY_cairo_quartz_font_face_create_for_atsu_font_id
0094 
0095 #define cairo_current_path       cairo_current_path_DEPRECATED_BY_cairo_copy_path
0096 #define cairo_current_path_flat      cairo_current_path_flat_DEPRECATED_BY_cairo_copy_path_flat
0097 #define cairo_get_path           cairo_get_path_DEPRECATED_BY_cairo_copy_path
0098 #define cairo_get_path_flat      cairo_get_path_flat_DEPRECATED_BY_cairo_get_path_flat
0099 #define cairo_set_alpha          cairo_set_alpha_DEPRECATED_BY_cairo_set_source_rgba_OR_cairo_paint_with_alpha
0100 #define cairo_show_surface       cairo_show_surface_DEPRECATED_BY_cairo_set_source_surface_AND_cairo_paint
0101 #define cairo_copy           cairo_copy_DEPRECATED_BY_cairo_create_AND_MANY_INDIVIDUAL_FUNCTIONS
0102 #define cairo_surface_set_repeat    cairo_surface_set_repeat_DEPRECATED_BY_cairo_pattern_set_extend
0103 #define cairo_surface_set_matrix    cairo_surface_set_matrix_DEPRECATED_BY_cairo_pattern_set_matrix
0104 #define cairo_surface_get_matrix    cairo_surface_get_matrix_DEPRECATED_BY_cairo_pattern_get_matrix
0105 #define cairo_surface_set_filter    cairo_surface_set_filter_DEPRECATED_BY_cairo_pattern_set_filter
0106 #define cairo_surface_get_filter    cairo_surface_get_filter_DEPRECATED_BY_cairo_pattern_get_filter
0107 #define cairo_matrix_create     cairo_matrix_create_DEPRECATED_BY_cairo_matrix_t
0108 #define cairo_matrix_destroy        cairo_matrix_destroy_DEPRECATED_BY_cairo_matrix_t
0109 #define cairo_matrix_copy       cairo_matrix_copy_DEPRECATED_BY_cairo_matrix_t
0110 #define cairo_matrix_get_affine     cairo_matrix_get_affine_DEPRECATED_BY_cairo_matrix_t
0111 #define cairo_set_target_surface    cairo_set_target_surface_DEPRECATED_BY_cairo_create
0112 #define cairo_set_target_image      cairo_set_target_image_DEPRECATED_BY_cairo_image_surface_create_for_data
0113 #define cairo_set_target_pdf        cairo_set_target_pdf_DEPRECATED_BY_cairo_pdf_surface_create
0114 #define cairo_set_target_png        cairo_set_target_png_DEPRECATED_BY_cairo_surface_write_to_png
0115 #define cairo_set_target_ps     cairo_set_target_ps_DEPRECATED_BY_cairo_ps_surface_create
0116 #define cairo_set_target_quartz     cairo_set_target_quartz_DEPRECATED_BY_cairo_quartz_surface_create
0117 #define cairo_set_target_win32      cairo_set_target_win32_DEPRECATED_BY_cairo_win32_surface_create
0118 #define cairo_set_target_xcb        cairo_set_target_xcb_DEPRECATED_BY_cairo_xcb_surface_create
0119 #define cairo_set_target_drawable   cairo_set_target_drawable_DEPRECATED_BY_cairo_xlib_surface_create
0120 #define cairo_get_status_string     cairo_get_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string
0121 #define cairo_status_string     cairo_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string
0122 
0123 #endif /* CAIRO_DEPRECATED_H */