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  * Copyright © 2009 Intel Corporation
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it either under the terms of the GNU Lesser General Public
0008  * License version 2.1 as published by the Free Software Foundation
0009  * (the "LGPL") or, at your option, under the terms of the Mozilla
0010  * Public License Version 1.1 (the "MPL"). If you do not alter this
0011  * notice, a recipient may use your version of this file under either
0012  * the MPL or the LGPL.
0013  *
0014  * You should have received a copy of the LGPL along with this library
0015  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
0016  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
0017  * You should have received a copy of the MPL along with this library
0018  * in the file COPYING-MPL-1.1
0019  *
0020  * The contents of this file are subject to the Mozilla Public License
0021  * Version 1.1 (the "License"); you may not use this file except in
0022  * compliance with the License. You may obtain a copy of the License at
0023  * http://www.mozilla.org/MPL/
0024  *
0025  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
0026  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
0027  * the specific language governing rights and limitations.
0028  *
0029  * The Original Code is the cairo graphics library.
0030  *
0031  * The Initial Developer of the Original Code is University of Southern
0032  * California.
0033  *
0034  * Contributor(s):
0035  *  Carl D. Worth <cworth@cworth.org>
0036  *  Chris Wilson <chris@chris-wilson.co.uk>
0037  */
0038 
0039 #ifndef CAIRO_XCB_H
0040 #define CAIRO_XCB_H
0041 
0042 #include "cairo.h"
0043 
0044 #if CAIRO_HAS_XCB_SURFACE
0045 
0046 #include <xcb/xcb.h>
0047 #include <xcb/render.h>
0048 
0049 CAIRO_BEGIN_DECLS
0050 
0051 cairo_public cairo_surface_t *
0052 cairo_xcb_surface_create (xcb_connection_t  *connection,
0053               xcb_drawable_t     drawable,
0054               xcb_visualtype_t  *visual,
0055               int            width,
0056               int            height);
0057 
0058 cairo_public cairo_surface_t *
0059 cairo_xcb_surface_create_for_bitmap (xcb_connection_t   *connection,
0060                      xcb_screen_t   *screen,
0061                      xcb_pixmap_t    bitmap,
0062                      int         width,
0063                      int         height);
0064 
0065 cairo_public cairo_surface_t *
0066 cairo_xcb_surface_create_with_xrender_format (xcb_connection_t          *connection,
0067                           xcb_screen_t          *screen,
0068                           xcb_drawable_t             drawable,
0069                           xcb_render_pictforminfo_t     *format,
0070                           int                width,
0071                           int                height);
0072 
0073 cairo_public void
0074 cairo_xcb_surface_set_size (cairo_surface_t *surface,
0075                 int          width,
0076                 int          height);
0077 
0078 cairo_public void
0079 cairo_xcb_surface_set_drawable (cairo_surface_t *surface,
0080                 xcb_drawable_t  drawable,
0081                 int     width,
0082                 int     height);
0083 
0084 cairo_public xcb_connection_t *
0085 cairo_xcb_device_get_connection (cairo_device_t *device);
0086 
0087 /* debug interface */
0088 
0089 cairo_public void
0090 cairo_xcb_device_debug_cap_xshm_version (cairo_device_t *device,
0091                                          int major_version,
0092                                          int minor_version);
0093 
0094 cairo_public void
0095 cairo_xcb_device_debug_cap_xrender_version (cairo_device_t *device,
0096                                             int major_version,
0097                                             int minor_version);
0098 
0099 /*
0100  * @precision: -1 implies automatically choose based on antialiasing mode,
0101  *            any other value overrides and sets the corresponding PolyMode.
0102  */
0103 cairo_public void
0104 cairo_xcb_device_debug_set_precision (cairo_device_t *device,
0105                       int precision);
0106 
0107 cairo_public int
0108 cairo_xcb_device_debug_get_precision (cairo_device_t *device);
0109 
0110 CAIRO_END_DECLS
0111 
0112 #else  /* CAIRO_HAS_XCB_SURFACE */
0113 # error Cairo was not compiled with support for the xcb backend
0114 #endif /* CAIRO_HAS_XCB_SURFACE */
0115 
0116 #endif /* CAIRO_XCB_H */