[gtksourceview: 1/2] g-i: hover context get bounds doc




commit 59d71a58a010fb7c56066389e5fa5a7103bbd3c8
Author: Georg Vienna <georg vienna himbarsoft com>
Date:   Mon Dec 13 17:50:43 2021 +0100

    g-i: hover context get bounds doc

 gtksourceview/gtksourcehovercontext.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/gtksourceview/gtksourcehovercontext.c b/gtksourceview/gtksourcehovercontext.c
index 4bb744ea..36ef73c8 100644
--- a/gtksourceview/gtksourcehovercontext.c
+++ b/gtksourceview/gtksourcehovercontext.c
@@ -330,6 +330,22 @@ gtk_source_hover_context_get_iter (GtkSourceHoverContext *self,
        return TRUE;
 }
 
+/**
+ * gtk_source_hover_context_get_bounds:
+ * @self: an #GtkSourceHoverContext
+ * @begin: (out) (optional): a #GtkTextIter
+ * @end: (out) (optional): a #GtkTextIter
+ *
+ * Gets the current word bounds of the hover.
+ *
+ * If @begin is non-%NULL, it will be set to the start position of the
+ * current word being hovered.
+ *
+ * If @end is non-%NULL, it will be set to the end position for the
+ * current word being hovered.
+ *
+ * Returns: %TRUE if the marks are still valid and @begin or @end was set.
+ */
 gboolean
 gtk_source_hover_context_get_bounds (GtkSourceHoverContext *self,
                                      GtkTextIter           *begin,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]