ec738e915eb2f41429b2baa3b7f10d538941ff8f
[framework/graphics/cairo.git] / doc / tutorial / src / include / cairo-tutorial.h
1 /* cairo-tutorial-gtk.h - a tutorial framework for cairo
2  *
3  * Copyright © 2005, Carl Worth
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
17  */
18
19 #include <cairo.h>
20 #include <math.h>
21
22 /* The application program may override these before including
23  * cairo-tutorial.h in order to get a window of a different size. */
24 #ifndef WIDTH
25 #define WIDTH 400
26 #endif
27
28 #ifndef HEIGHT
29 #define HEIGHT 400
30 #endif
31
32 #ifdef CAIRO_TUTORIAL_GTK
33 #include "cairo-tutorial-gtk.h"
34 #elif CAIRO_TUTORIAL_XLIB
35 #include "cairo-tutorial-xlib.h"
36 #elif CAIRO_TUTORIAL_PDF
37 #include "cairo-tutorial-pdf.h"
38 #elif CAIRO_TUTORIAL_PNG
39 #include "cairo-tutorial-png.h"
40 #endif