Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdksurface.h
Go to the documentation of this file.
1/* GDK - The GIMP Drawing Kit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/*
19 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
20 * file for a list of people on the GTK+ Team. See the ChangeLog
21 * files for a list of changes. These files are distributed with
22 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23 */
24
25#pragma once
26
27#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
28#error "Only <gdk/gdk.h> can be included directly."
29#endif
30
31#include <gdk/gdktypes.h>
32#include <gdk/gdkevents.h>
33#include <gdk/gdkframeclock.h>
34#include <gdk/gdkmonitor.h>
35#include <gdk/gdkpopuplayout.h>
36
38
39typedef struct _GdkSurfaceClass GdkSurfaceClass;
40
41#define GDK_TYPE_SURFACE (gdk_surface_get_type ())
42#define GDK_SURFACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_SURFACE, GdkSurface))
43#define GDK_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_SURFACE, GdkSurfaceClass))
44#define GDK_IS_SURFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_SURFACE))
45#define GDK_IS_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_SURFACE))
46#define GDK_SURFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_SURFACE, GdkSurfaceClass))
47
48
55 gboolean autohide);
56
61
66
69 cairo_region_t *region);
70
73
76 GdkCursor *cursor);
81 GdkDevice *device,
82 GdkCursor *cursor);
85 GdkDevice *device);
92 GdkSurface *to,
93 double *x,
94 double *y);
95
98
101
104 GdkDevice *device,
105 double *x,
106 double *y,
108
112 cairo_content_t content,
113 int width,
114 int height);
115
118
121
124
127
130 cairo_region_t *region);
131
136 GError **error);
140 GError **error);
141
143
145
struct _cairo_surface cairo_surface_t
Definition cairo.h:164
enum _cairo_content cairo_content_t
struct _cairo_region cairo_region_t
Definition cairo.h:3244
#define GDK_DEPRECATED_IN_4_12
#define GDK_AVAILABLE_IN_4_12
#define GDK_DEPRECATED_IN_4_16
#define GDK_DEPRECATED_IN_4_14
#define GDK_AVAILABLE_IN_ALL
GdkModifierType
Definition gdkenums.h:116
struct _GdkFrameClock GdkFrameClock
GDK_AVAILABLE_IN_ALL gboolean gdk_surface_get_mapped(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL GdkGLContext * gdk_surface_create_gl_context(GdkSurface *surface, GError **error)
GDK_DEPRECATED_IN_4_14 GdkVulkanContext * gdk_surface_create_vulkan_context(GdkSurface *surface, GError **error)
GDK_AVAILABLE_IN_ALL int gdk_surface_get_height(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL GType gdk_surface_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL gboolean gdk_surface_is_destroyed(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL GdkSurface * gdk_surface_new_toplevel(GdkDisplay *display)
GDK_AVAILABLE_IN_ALL GdkCursor * gdk_surface_get_cursor(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL GdkFrameClock * gdk_surface_get_frame_clock(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL void gdk_surface_set_input_region(GdkSurface *surface, cairo_region_t *region)
GDK_DEPRECATED_IN_4_12 cairo_surface_t * gdk_surface_create_similar_surface(GdkSurface *surface, cairo_content_t content, int width, int height)
GDK_AVAILABLE_IN_ALL int gdk_surface_get_scale_factor(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL GdkCursor * gdk_surface_get_device_cursor(GdkSurface *surface, GdkDevice *device)
GDK_AVAILABLE_IN_ALL GdkDisplay * gdk_surface_get_display(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL gboolean gdk_surface_translate_coordinates(GdkSurface *from, GdkSurface *to, double *x, double *y)
typedefG_BEGIN_DECLS struct _GdkSurfaceClass GdkSurfaceClass
Definition gdksurface.h:39
GDK_DEPRECATED_IN_4_16 void gdk_surface_set_opaque_region(GdkSurface *surface, cairo_region_t *region)
GDK_AVAILABLE_IN_ALL gboolean gdk_surface_get_device_position(GdkSurface *surface, GdkDevice *device, double *x, double *y, GdkModifierType *mask)
GDK_AVAILABLE_IN_ALL GdkSurface * gdk_surface_new_popup(GdkSurface *parent, gboolean autohide)
GDK_AVAILABLE_IN_ALL void gdk_surface_set_device_cursor(GdkSurface *surface, GdkDevice *device, GdkCursor *cursor)
GDK_AVAILABLE_IN_ALL void gdk_surface_hide(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL void gdk_surface_queue_render(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL GdkCairoContext * gdk_surface_create_cairo_context(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL void gdk_surface_beep(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL void gdk_surface_set_cursor(GdkSurface *surface, GdkCursor *cursor)
GDK_AVAILABLE_IN_ALL void gdk_surface_request_layout(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL void gdk_surface_destroy(GdkSurface *surface)
GDK_AVAILABLE_IN_4_12 double gdk_surface_get_scale(GdkSurface *surface)
GDK_AVAILABLE_IN_ALL int gdk_surface_get_width(GdkSurface *surface)
struct _GdkGLContext GdkGLContext
Definition gdktypes.h:98
struct _GdkDevice GdkDevice
Definition gdktypes.h:84
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
struct _GdkCairoContext GdkCairoContext
Definition gdktypes.h:97
struct _GdkSurface GdkSurface
Definition gdktypes.h:91
struct _GdkCursor GdkCursor
Definition gdktypes.h:81
struct _GdkVulkanContext GdkVulkanContext
Definition gdktypes.h:99
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
static void error(LoadState *S, const char *why)
#define mask(n)