summaryrefslogtreecommitdiff
path: root/src/inlinebox.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2019-08-24 13:38:44 +0300
committerdefanor <defanor@uberspace.net>2019-08-24 13:38:44 +0300
commitf308e319f3170a2949624e211adf75002ee5d3f1 (patch)
treed086626c17e1a88860dcf44c3bbb5f74ce41d869 /src/inlinebox.h
parent2395d5ab1e83507530fdbd675c917d0c55187e66 (diff)
Introduce incremental text search
It is quite rough and should be refined, but as with most of the other features, introducing it at this stage primarily to ensure that it will not require major changes.
Diffstat (limited to 'src/inlinebox.h')
-rw-r--r--src/inlinebox.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/inlinebox.h b/src/inlinebox.h
index 03e5ec8..24c11d3 100644
--- a/src/inlinebox.h
+++ b/src/inlinebox.h
@@ -101,6 +101,8 @@ struct _InlineBox
GObject *focused_object;
guint selection_start;
guint selection_end;
+ guint match_start;
+ guint match_end;
gboolean wrap;
};
@@ -109,10 +111,12 @@ struct _InlineBoxClass
GtkContainerClass parent_class;
};
-GType inline_box_get_type(void) G_GNUC_CONST;
-InlineBox *inline_box_new(void);
-void inline_box_add_text(InlineBox *container, IBText *text);
-void inline_box_break(InlineBox *container);
+GType inline_box_get_type (void) G_GNUC_CONST;
+InlineBox *inline_box_new (void);
+void inline_box_add_text (InlineBox *container, IBText *text);
+void inline_box_break (InlineBox *container);
+gchar *inline_box_get_text (InlineBox *ib);
+gint inline_box_search (InlineBox *ib, guint start, gint end, const gchar *str);
G_END_DECLS