summaryrefslogtreecommitdiff
path: root/gtk/gtktreeview.h
diff options
context:
space:
mode:
authorKristian Rietveld <kris@imendio.com>2007-06-13 13:27:00 +0000
committerKristian Rietveld <kristian@src.gnome.org>2007-06-13 13:27:00 +0000
commit4e4748e890f3c19b6d1e8cb72f316c33e25b846a (patch)
tree35edc1f9e5948e1f907d9f46c9498169266e4d4a /gtk/gtktreeview.h
parent56efde1a2f0d0f3f172c1906f16033d46bcfd534 (diff)
downloadgtk+-4e4748e890f3c19b6d1e8cb72f316c33e25b846a.tar.gz
Audit of GtkTreeView coordinate system usage. (#142494).
2007-06-13 Kristian Rietveld <kris@imendio.com> Audit of GtkTreeView coordinate system usage. (#142494). * gtk/gtktreeview.[ch]: general documentation updates, (gtk_tree_view_scroll_to_cell), (gtk_tree_view_get_dest_row_at_pos): update coordinate translations, (gtk_tree_view_tree_to_widget_coords), (gtk_tree_view_widget_to_tree_coords): Deprecated, (gtk_tree_view_convert_.*_coords): 6 new functions for doing transformations between coordinate systems. * gtk/gtk.symbols: updated. * tests/testtooltips.c (query_tooltip_tree_view_cb): fix testcase with new gtk_tree_view_convert_widget_to_bin_window_coords(). * docs/reference/gtk/Makefile.am * docs/reference/gtk/images/tree-view-coordinates.png: add new image. * docs/reference/gtk/tmpl/gtktreeview.sgml: eloborate on the different coordinate systems. svn path=/trunk/; revision=18119
Diffstat (limited to 'gtk/gtktreeview.h')
-rw-r--r--gtk/gtktreeview.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h
index 529739d293..e461974bfb 100644
--- a/gtk/gtktreeview.h
+++ b/gtk/gtktreeview.h
@@ -257,6 +257,8 @@ void gtk_tree_view_get_background_area (GtkTreeView
GdkRectangle *rect);
void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view,
GdkRectangle *visible_rect);
+
+#ifndef GTK_DISABLE_DEPRECATED
void gtk_tree_view_widget_to_tree_coords (GtkTreeView *tree_view,
gint wx,
gint wy,
@@ -267,6 +269,7 @@ void gtk_tree_view_tree_to_widget_coords (GtkTreeView
gint ty,
gint *wx,
gint *wy);
+#endif /* !GTK_DISABLE_DEPRECATED */
gboolean gtk_tree_view_get_visible_range (GtkTreeView *tree_view,
GtkTreePath **start_path,
GtkTreePath **end_path);
@@ -322,6 +325,38 @@ void gtk_tree_view_set_search_position_func (GtkTreeVie
gpointer data,
GDestroyNotify destroy);
+/* Convert between the different coordinate systems */
+void gtk_tree_view_convert_widget_to_tree_coords (GtkTreeView *tree_view,
+ gint wx,
+ gint wy,
+ gint *tx,
+ gint *ty);
+void gtk_tree_view_convert_tree_to_widget_coords (GtkTreeView *tree_view,
+ gint tx,
+ gint ty,
+ gint *wx,
+ gint *wy);
+void gtk_tree_view_convert_widget_to_bin_window_coords (GtkTreeView *tree_view,
+ gint wx,
+ gint wy,
+ gint *bx,
+ gint *by);
+void gtk_tree_view_convert_bin_window_to_widget_coords (GtkTreeView *tree_view,
+ gint bx,
+ gint by,
+ gint *wx,
+ gint *wy);
+void gtk_tree_view_convert_tree_to_bin_window_coords (GtkTreeView *tree_view,
+ gint tx,
+ gint ty,
+ gint *bx,
+ gint *by);
+void gtk_tree_view_convert_bin_window_to_tree_coords (GtkTreeView *tree_view,
+ gint bx,
+ gint by,
+ gint *tx,
+ gint *ty);
+
/* This function should really never be used. It is just for use by ATK.
*/
typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view,