2008-07-01 22:57:50 +00:00
|
|
|
/* GDK - The GIMP Drawing Kit
|
2005-05-11 19:16:19 +00:00
|
|
|
* 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
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2005-05-11 19:16:19 +00:00
|
|
|
*/
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GDK_CAIRO_H__
|
|
|
|
#define __GDK_CAIRO_H__
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
2008-05-28 14:01:57 +00:00
|
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2012-02-27 12:07:48 +00:00
|
|
|
#include <gdk/gdkversionmacros.h>
|
2014-05-22 13:05:58 +00:00
|
|
|
#include <gdk/deprecated/gdkcolor.h>
|
2010-10-21 13:23:48 +00:00
|
|
|
#include <gdk/gdkrgba.h>
|
2005-05-11 19:16:19 +00:00
|
|
|
#include <gdk/gdkpixbuf.h>
|
2011-11-22 18:41:59 +00:00
|
|
|
#include <pango/pangocairo.h>
|
2005-05-11 19:16:19 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-02-09 07:43:07 +00:00
|
|
|
cairo_t * gdk_cairo_create (GdkWindow *window);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-02-09 07:43:07 +00:00
|
|
|
gboolean gdk_cairo_get_clip_rectangle (cairo_t *cr,
|
|
|
|
GdkRectangle *rect);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-02-09 07:43:07 +00:00
|
|
|
void gdk_cairo_set_source_rgba (cairo_t *cr,
|
|
|
|
const GdkRGBA *rgba);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-02-09 07:43:07 +00:00
|
|
|
void gdk_cairo_set_source_pixbuf (cairo_t *cr,
|
|
|
|
const GdkPixbuf *pixbuf,
|
|
|
|
gdouble pixbuf_x,
|
|
|
|
gdouble pixbuf_y);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-02-09 07:43:07 +00:00
|
|
|
void gdk_cairo_set_source_window (cairo_t *cr,
|
|
|
|
GdkWindow *window,
|
|
|
|
gdouble x,
|
|
|
|
gdouble y);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-02-09 07:43:07 +00:00
|
|
|
void gdk_cairo_rectangle (cairo_t *cr,
|
|
|
|
const GdkRectangle *rectangle);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-02-09 07:43:07 +00:00
|
|
|
void gdk_cairo_region (cairo_t *cr,
|
|
|
|
const cairo_region_t *region);
|
2005-05-11 19:16:19 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-08-14 02:40:52 +00:00
|
|
|
cairo_region_t *
|
2011-02-09 07:43:07 +00:00
|
|
|
gdk_cairo_region_create_from_surface
|
|
|
|
(cairo_surface_t *surface);
|
2010-08-14 02:40:52 +00:00
|
|
|
|
2012-02-27 12:07:48 +00:00
|
|
|
GDK_DEPRECATED_IN_3_4_FOR(gdk_cairo_set_source_rgba)
|
2011-12-13 11:02:13 +00:00
|
|
|
void gdk_cairo_set_source_color (cairo_t *cr,
|
|
|
|
const GdkColor *color);
|
|
|
|
|
2013-06-24 10:12:43 +00:00
|
|
|
GDK_AVAILABLE_IN_3_10
|
|
|
|
cairo_surface_t * gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf,
|
|
|
|
int scale,
|
|
|
|
GdkWindow *for_window);
|
|
|
|
|
2005-05-11 19:16:19 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GDK_CAIRO_H__ */
|