2008-07-01 22:57:50 +00:00
|
|
|
/* GDK - The GIMP Drawing Kit
|
2005-07-12 05:09:13 +00:00
|
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
|
|
*
|
|
|
|
* 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-07-12 05:09:13 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
|
|
* files for a list of changes. These files are distributed with
|
2008-05-28 14:01:57 +00:00
|
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
2005-07-12 05:09:13 +00:00
|
|
|
*/
|
|
|
|
|
2018-03-20 10:40:08 +00:00
|
|
|
#ifndef __GDK_SURFACE_H__
|
|
|
|
#define __GDK_SURFACE_H__
|
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>
|
1999-10-01 23:18:30 +00:00
|
|
|
#include <gdk/gdktypes.h>
|
1999-11-08 20:14:59 +00:00
|
|
|
#include <gdk/gdkevents.h>
|
2012-10-03 22:34:01 +00:00
|
|
|
#include <gdk/gdkframeclock.h>
|
2017-11-01 15:52:56 +00:00
|
|
|
#include <gdk/gdkmonitor.h>
|
2020-02-16 11:59:24 +00:00
|
|
|
#include <gdk/gdkpopuplayout.h>
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2005-06-12 05:32:25 +00:00
|
|
|
G_BEGIN_DECLS
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2018-03-20 10:40:08 +00:00
|
|
|
typedef struct _GdkSurfaceClass GdkSurfaceClass;
|
|
|
|
|
|
|
|
#define GDK_TYPE_SURFACE (gdk_surface_get_type ())
|
|
|
|
#define GDK_SURFACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_SURFACE, GdkSurface))
|
|
|
|
#define GDK_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_SURFACE, GdkSurfaceClass))
|
|
|
|
#define GDK_IS_SURFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_SURFACE))
|
|
|
|
#define GDK_IS_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_SURFACE))
|
|
|
|
#define GDK_SURFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_SURFACE, GdkSurfaceClass))
|
|
|
|
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 10:40:08 +00:00
|
|
|
GType gdk_surface_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-30 21:06:59 +00:00
|
|
|
GdkSurface * gdk_surface_new_toplevel (GdkDisplay *display);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-02-21 20:13:09 +00:00
|
|
|
GdkSurface * gdk_surface_new_popup (GdkSurface *parent,
|
2019-04-22 21:31:33 +00:00
|
|
|
gboolean autohide);
|
2016-10-17 18:11:23 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
void gdk_surface_destroy (GdkSurface *surface);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
gboolean gdk_surface_is_destroyed (GdkSurface *surface);
|
2010-05-25 22:38:44 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
GdkDisplay * gdk_surface_get_display (GdkSurface *surface);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
void gdk_surface_hide (GdkSurface *surface);
|
2018-06-05 15:46:34 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-03-01 19:29:06 +00:00
|
|
|
void gdk_surface_set_input_region (GdkSurface *surface,
|
|
|
|
cairo_region_t *region);
|
2006-02-20 01:36:50 +00:00
|
|
|
|
2020-02-24 22:59:12 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
gboolean gdk_surface_get_mapped (GdkSurface *surface);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-21 08:06:31 +00:00
|
|
|
void gdk_surface_set_cursor (GdkSurface *surface,
|
|
|
|
GdkCursor *cursor);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
GdkCursor *gdk_surface_get_cursor (GdkSurface *surface);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-21 08:06:31 +00:00
|
|
|
void gdk_surface_set_device_cursor (GdkSurface *surface,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkCursor *cursor);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
GdkCursor *gdk_surface_get_device_cursor (GdkSurface *surface,
|
2018-03-21 08:06:31 +00:00
|
|
|
GdkDevice *device);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
int gdk_surface_get_width (GdkSurface *surface);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
int gdk_surface_get_height (GdkSurface *surface);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-05-29 03:41:56 +00:00
|
|
|
gboolean gdk_surface_translate_coordinates (GdkSurface *from,
|
|
|
|
GdkSurface *to,
|
|
|
|
double *x,
|
|
|
|
double *y);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 13:54:49 +00:00
|
|
|
int gdk_surface_get_scale_factor (GdkSurface *surface);
|
2013-01-18 14:47:29 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-08-26 13:01:48 +00:00
|
|
|
gboolean gdk_surface_get_device_position (GdkSurface *surface,
|
2019-04-19 19:39:23 +00:00
|
|
|
GdkDevice *device,
|
|
|
|
double *x,
|
|
|
|
double *y,
|
|
|
|
GdkModifierType *mask);
|
2001-02-27 20:40:15 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-08-12 21:43:11 +00:00
|
|
|
cairo_surface_t *
|
2018-03-20 14:14:10 +00:00
|
|
|
gdk_surface_create_similar_surface (GdkSurface *surface,
|
2018-03-21 08:06:31 +00:00
|
|
|
cairo_content_t content,
|
|
|
|
int width,
|
|
|
|
int height);
|
2010-08-12 21:43:11 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
void gdk_surface_beep (GdkSurface *surface);
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-30 02:40:01 +00:00
|
|
|
void gdk_surface_queue_render (GdkSurface *surface);
|
2010-10-01 13:10:52 +00:00
|
|
|
|
2020-11-24 21:02:53 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gdk_surface_request_layout (GdkSurface *surface);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
GdkFrameClock* gdk_surface_get_frame_clock (GdkSurface *surface);
|
2012-10-03 22:34:01 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
void gdk_surface_set_opaque_region (GdkSurface *surface,
|
2018-03-21 08:06:31 +00:00
|
|
|
cairo_region_t *region);
|
2013-05-14 20:23:33 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-04-11 22:16:43 +00:00
|
|
|
GdkCairoContext *gdk_surface_create_cairo_context(GdkSurface *surface);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GdkGLContext * gdk_surface_create_gl_context (GdkSurface *surface,
|
2018-03-21 08:06:31 +00:00
|
|
|
GError **error);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-11-28 15:34:01 +00:00
|
|
|
GdkVulkanContext *
|
2018-04-11 22:16:43 +00:00
|
|
|
gdk_surface_create_vulkan_context(GdkSurface *surface,
|
2018-03-21 08:06:31 +00:00
|
|
|
GError **error);
|
2014-10-09 08:45:44 +00:00
|
|
|
|
2020-02-29 14:17:23 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GdkSurface, g_object_unref)
|
|
|
|
|
2005-06-12 05:32:25 +00:00
|
|
|
G_END_DECLS
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2018-03-20 10:40:08 +00:00
|
|
|
#endif /* __GDK_SURFACE_H__ */
|