Back to index

lightning-sunbird  0.9+nobinonly
cairo-xlib.h
Go to the documentation of this file.
00001 /* cairo - a vector graphics library with display and print output
00002  *
00003  * Copyright © 2002 University of Southern California
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it either under the terms of the GNU Lesser General Public
00007  * License version 2.1 as published by the Free Software Foundation
00008  * (the "LGPL") or, at your option, under the terms of the Mozilla
00009  * Public License Version 1.1 (the "MPL"). If you do not alter this
00010  * notice, a recipient may use your version of this file under either
00011  * the MPL or the LGPL.
00012  *
00013  * You should have received a copy of the LGPL along with this library
00014  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00016  * You should have received a copy of the MPL along with this library
00017  * in the file COPYING-MPL-1.1
00018  *
00019  * The contents of this file are subject to the Mozilla Public License
00020  * Version 1.1 (the "License"); you may not use this file except in
00021  * compliance with the License. You may obtain a copy of the License at
00022  * http://www.mozilla.org/MPL/
00023  *
00024  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
00025  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
00026  * the specific language governing rights and limitations.
00027  *
00028  * The Original Code is the cairo graphics library.
00029  *
00030  * The Initial Developer of the Original Code is University of Southern
00031  * California.
00032  *
00033  * Contributor(s):
00034  *     Carl D. Worth <cworth@cworth.org>
00035  */
00036 
00037 #ifndef CAIRO_XLIB_H
00038 #define CAIRO_XLIB_H
00039 
00040 #include <cairo.h>
00041 
00042 #if CAIRO_HAS_XLIB_SURFACE
00043 
00044 #include <X11/Xlib.h>
00045 
00046 CAIRO_BEGIN_DECLS
00047 
00048 cairo_surface_t *
00049 cairo_xlib_surface_create (Display     *dpy,
00050                         Drawable   drawable,
00051                         Visual      *visual,
00052                         int        width,
00053                         int        height);
00054 
00055 cairo_surface_t *
00056 cairo_xlib_surface_create_for_bitmap (Display  *dpy,
00057                                   Pixmap  bitmap,
00058                                   Screen  *screen,
00059                                   int     width,
00060                                   int     height);
00061 
00062 void
00063 cairo_xlib_surface_set_size (cairo_surface_t *surface,
00064                           int              width,
00065                           int              height);
00066 
00067 void
00068 cairo_xlib_surface_set_drawable (cairo_surface_t *surface,
00069                              Drawable       drawable,
00070                              int              width,
00071                              int              height);
00072 
00073 CAIRO_END_DECLS
00074 
00075 #else  /* CAIRO_HAS_XLIB_SURFACE */
00076 # error Cairo was not compiled with support for the xlib backend
00077 #endif /* CAIRO_HAS_XLIB_SURFACE */
00078 
00079 #endif /* CAIRO_XLIB_H */
00080