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
|
|
|
*/
|
|
|
|
|
2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2012-12-28 14:57:34 +00:00
|
|
|
|
2019-11-27 13:33:43 +00:00
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_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
|
|
|
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,
|
2020-07-24 20:32:16 +00:00
|
|
|
double pixbuf_x,
|
|
|
|
double pixbuf_y);
|
2011-02-09 07:43:07 +00:00
|
|
|
|
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
|
|
|
|
2021-09-11 22:10:10 +00:00
|
|
|
GDK_DEPRECATED_IN_4_6_FOR(gdk_gl_texture_new)
|
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);
|
|
|
|
|
2005-05-11 19:16:19 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|