native: Add documenation for get_surface_transform
authorTimm Bäder <mail@baedert.org>
Sat, 16 May 2020 05:54:34 +0000 (07:54 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 16 May 2020 20:03:58 +0000 (22:03 +0200)
gtk/gtknative.c

index 6b079987ea4cd505106d84234cf261c230788968..23996e59b314ee0c81ecad45a3af1429425ce7ab 100644 (file)
@@ -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,