gdkcairo.h 2.6 KB
Newer Older
Cody Russell's avatar
Cody Russell committed
1
/* GDK - The GIMP Drawing Kit
2
3
4
5
6
7
8
9
10
11
12
13
14
 * Copyright (C) 2005 Red Hat, Inc. 
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
Javier Jardón's avatar
Javier Jardón committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16
17
 */

18
19
20
#ifndef __GDK_CAIRO_H__
#define __GDK_CAIRO_H__

21
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
22
23
24
#error "Only <gdk/gdk.h> can be included directly."
#endif

25
#include <gdk/gdkversionmacros.h>
26
#include <gdk/gdkrgba.h>
27
#include <gdk/gdkpixbuf.h>
Matthias Clasen's avatar
Matthias Clasen committed
28
#include <pango/pangocairo.h>
29
30
31

G_BEGIN_DECLS

32
GDK_AVAILABLE_IN_ALL
33
34
void       gdk_cairo_set_source_rgba    (cairo_t              *cr,
                                         const GdkRGBA        *rgba);
35
GDK_AVAILABLE_IN_ALL
36
37
void       gdk_cairo_set_source_pixbuf  (cairo_t              *cr,
                                         const GdkPixbuf      *pixbuf,
38
39
                                         double                pixbuf_x,
                                         double                pixbuf_y);
40

41
GDK_AVAILABLE_IN_ALL
42
43
void       gdk_cairo_rectangle          (cairo_t              *cr,
                                         const GdkRectangle   *rectangle);
44
GDK_AVAILABLE_IN_ALL
45
46
void       gdk_cairo_region             (cairo_t              *cr,
                                         const cairo_region_t *region);
47

48
GDK_AVAILABLE_IN_ALL
49
cairo_region_t *
50
51
           gdk_cairo_region_create_from_surface
                                        (cairo_surface_t      *surface);
52

53
GDK_DEPRECATED_IN_4_6_FOR(gdk_gl_texture_new)
54
void       gdk_cairo_draw_from_gl (cairo_t              *cr,
55
                                   GdkSurface            *surface,
56
57
58
59
60
61
62
63
                                   int                   source,
                                   int                   source_type,
                                   int                   buffer_scale,
                                   int                   x,
                                   int                   y,
                                   int                   width,
                                   int                   height);

64
65
66
G_END_DECLS

#endif /* __GDK_CAIRO_H__ */