summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-02-19 19:15:16 +0100
committerBenjamin Otte <otte@redhat.com>2019-02-19 19:22:10 +0100
commite223f16aa912487751d1c098d8da780fa9c09dfa (patch)
treec9d39834ac793d5ec0efa867e93836ef7fb08cd1 /gtk/gtkwidget.h
parentdead174d70f67d8cfb4a39b6d79a4b119fd93b89 (diff)
downloadgtk+-e223f16aa912487751d1c098d8da780fa9c09dfa.tar.gz
widget: Add gtk_widget_compute_point()
It's the replacement for gtk_widget_translate_coordinates()
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r--gtk/gtkwidget.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index f62049a894..1d06747d57 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -614,13 +614,18 @@ GDK_AVAILABLE_IN_ALL
void gtk_widget_get_allocation (GtkWidget *widget,
GtkAllocation *allocation);
GDK_AVAILABLE_IN_ALL
-gboolean gtk_widget_compute_transform (GtkWidget *widget,
- GtkWidget *target,
- graphene_matrix_t *out_transform);
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_widget_compute_bounds (GtkWidget *widget,
- GtkWidget *target,
- graphene_rect_t *out_bounds);
+gboolean gtk_widget_compute_transform (GtkWidget *widget,
+ GtkWidget *target,
+ graphene_matrix_t *out_transform);
+GDK_AVAILABLE_IN_ALL
+gboolean gtk_widget_compute_bounds (GtkWidget *widget,
+ GtkWidget *target,
+ graphene_rect_t *out_bounds);
+GDK_AVAILABLE_IN_ALL
+gboolean gtk_widget_compute_point (GtkWidget *widget,
+ GtkWidget *target,
+ const graphene_point_t *point,
+ graphene_point_t *out_point);
GDK_AVAILABLE_IN_ALL
int gtk_widget_get_width (GtkWidget *widget);