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_XLIB_XRENDER_H
0038 #define CAIRO_XLIB_XRENDER_H
0039 
0040 #include "cairo.h"
0041 
0042 #if CAIRO_HAS_XLIB_XRENDER_SURFACE
0043 
0044 #include <X11/Xlib.h>
0045 #include <X11/extensions/Xrender.h>
0046 
0047 CAIRO_BEGIN_DECLS
0048 
0049 cairo_public cairo_surface_t *
0050 cairo_xlib_surface_create_with_xrender_format (Display       *dpy,
0051                                                Drawable       drawable,
0052                            Screen        *screen,
0053                                                XRenderPictFormat *format,
0054                                                int        width,
0055                                                int        height);
0056 
0057 cairo_public XRenderPictFormat *
0058 cairo_xlib_surface_get_xrender_format (cairo_surface_t *surface);
0059 
0060 CAIRO_END_DECLS
0061 
0062 #else  /* CAIRO_HAS_XLIB_XRENDER_SURFACE */
0063 # error Cairo was not compiled with support for the xlib XRender backend
0064 #endif /* CAIRO_HAS_XLIB_XRENDER_SURFACE */
0065 
0066 #endif /* CAIRO_XLIB_XRENDER_H */