PageRenderTime 68ms CodeModel.GetById 57ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/binding/cairo/xlib.d

http://github.com/wilkie/djehuty
D | 87 lines | 16 code | 27 blank | 44 comment | 0 complexity | 1b6171d7a02daf072964d08a5690da32 MD5 | raw file
 1/*
 2 * xlib.d
 3 *
 4 * This file holds bindings to cairo's xlib.h. The original copyright
 5 * is displayed below, but does not pertain to this file.
 6 *
 7 * Author: Dave Wilkinson
 8 *
 9 */
10
11module binding.cairo.xlib;
12
13/* cairo - a vector graphics library with display and print output
14 *
15 * Copyright © 2002 University of Southern California
16 *
17 * This library is free software; you can redistribute it and/or
18 * modify it either under the terms of the GNU Lesser General Public
19 * License version 2.1 as published by the Free Software Foundation
20 * (the "LGPL") or, at your option, under the terms of the Mozilla
21 * Public License Version 1.1 (the "MPL"). If you do not alter this
22 * notice, a recipient may use your version of this file under either
23 * the MPL or the LGPL.
24 *
25 * You should have received a copy of the LGPL along with this library
26 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 * You should have received a copy of the MPL along with this library
29 * in the file COPYING-MPL-1.1
30 *
31 * The contents of this file are subject to the Mozilla Public License
32 * Version 1.1 (the "License"); you may not use this file except in
33 * compliance with the License. You may obtain a copy of the License at
34 * http://www.mozilla.org/MPL/
35 *
36 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
37 * OF ANY KIND, either express or implied. See the LGPL or the MPL for
38 * the specific language governing rights and limitations.
39 *
40 * The Original Code is the cairo graphics library.
41 *
42 * The Initial Developer of the Original Code is University of Southern
43 * California.
44 *
45 * Contributor(s):
46 *	Carl D. Worth <cworth@cworth.org>
47 */
48
49import binding.cairo.cairo;
50import binding.x.Xlib;
51import binding.x.X;
52
53
54
55
56
57extern(C):
58cairo_surface_t* cairo_xlib_surface_create (Display* dpy, Drawable drawable, Visual* visual, int width, int height);
59
60
61cairo_surface_t* cairo_xlib_surface_create_for_bitmap (Display* dpy, Pixmap bitmap, Screen* screen, int width, int height);
62
63
64void cairo_xlib_surface_set_size (cairo_surface_t *surface, int width, int height);
65
66
67void cairo_xlib_surface_set_drawable (cairo_surface_t *surface, Drawable drawable, int width, int height);
68
69
70Display* cairo_xlib_surface_get_display(cairo_surface_t* surface);
71
72
73Drawable cairo_xlib_surface_get_drawable(cairo_surface_t* surface);
74
75
76Screen* cairo_xlib_surface_get_screen(cairo_surface_t* surface);
77
78
79Visual* cairo_xlib_surface_get_visual(cairo_surface_t* surface);
80
81int cairo_xlib_surface_get_depth(cairo_surface_t* surface);
82
83
84int cairo_xlib_surface_get_width(cairo_surface_t* surface);
85
86
87int cairo_xlib_surface_get_height(cairo_surface_t* surface);