summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-23 15:31:22 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-23 16:08:05 -0500
commitac8b192eab01627f06ce2b842e1814835ebe3688 (patch)
treeb253c7b21983f192b04bc82b55f8437207c51c74 /gdk
parentfad9468e7784e820283e2ba4e0883eb7b9cf6d6c (diff)
downloadgtk+-ac8b192eab01627f06ce2b842e1814835ebe3688.tar.gz
gdk: Document surface signals
At least a little bit.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdksurface.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index acff6d6933..7f9af6fa8f 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -322,6 +322,14 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
G_TYPE_BOOLEAN,
G_TYPE_BOOLEAN);
+ /**
+ * GdkSurface::size-changed:
+ * @surface: the #GdkSurface
+ * @width: the new width
+ * @height: the new height
+ *
+ * Emitted when the size of @surface is changed.
+ */
signals[SIZE_CHANGED] =
g_signal_new (g_intern_static_string ("size-changed"),
G_OBJECT_CLASS_TYPE (object_class),
@@ -335,6 +343,15 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
G_TYPE_INT,
G_TYPE_INT);
+ /**
+ * GdkSurface::render:
+ * @surface: the #GdkSurface
+ * @region: the region that needs to be redrawn
+ *
+ * Emitted when part of the surface needs to be redrawn.
+ *
+ * Returns: %TRUE to indicate that the signal has been handled
+ */
signals[RENDER] =
g_signal_new (g_intern_static_string ("render"),
G_OBJECT_CLASS_TYPE (object_class),
@@ -347,6 +364,15 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
1,
CAIRO_GOBJECT_TYPE_REGION);
+ /**
+ * GdkSurface::event:
+ * @surface: the #GdkSurface
+ * @event: an input event
+ *
+ * Emitted when GDK receives an input event for @surface.
+ *
+ * Returns: %TRUE to indicate that the event has been handled
+ */
signals[EVENT] =
g_signal_new (g_intern_static_string ("event"),
G_OBJECT_CLASS_TYPE (object_class),