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>
|
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
|
|
|
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_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
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2014-10-09 08:45:44 +00:00
|
|
|
void gdk_cairo_draw_from_gl (cairo_t *cr,
|
2018-03-20 14:14:10 +00:00
|
|
|
GdkSurface *surface,
|
2014-10-09 08:45:44 +00:00
|
|
|
int source,
|
|
|
|
int source_type,
|
|
|
|
int buffer_scale,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-04-25 10:29:14 +00:00
|
|
|
void gdk_cairo_surface_upload_to_gl (cairo_surface_t *surface,
|
|
|
|
int target,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
GdkGLContext *context);
|
|
|
|
|
2005-05-11 19:16:19 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GDK_CAIRO_H__ */
|