From bac6e79614f3f38f8877eb221aa275cf6875378a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 16 May 2020 07:54:34 +0200 Subject: [PATCH] native: Add documenation for get_surface_transform --- gtk/gtknative.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gtk/gtknative.c b/gtk/gtknative.c index 6b079987ea..23996e59b3 100644 --- a/gtk/gtknative.c +++ b/gtk/gtknative.c @@ -48,8 +48,8 @@ gtk_native_default_get_renderer (GtkNative *self) static void gtk_native_default_get_surface_transform (GtkNative *self, - int *x, - int *y) + int *x, + int *y) { *x = 0; *y = 0; @@ -100,6 +100,15 @@ gtk_native_get_renderer (GtkNative *self) return GTK_NATIVE_GET_IFACE (self)->get_renderer (self); } +/** + * gtk_native_get_surface_transform: + * @self: a @GtkNative + * @x: (out): return location for the x coordinate + * @y: (out): return location for the y coordinate + * + * Retrieves the surface transform of @self. This is the translation + * from @self's surface coordinates into @self's widget coordinates. + */ void gtk_native_get_surface_transform (GtkNative *self, int *x,