From db7f835c320632ec4dea3b8baf5e21b62e2b75e1 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 27 Mar 2021 14:18:06 +0200 Subject: DocumentWidget: Advanced text selection Double click to select by word, triple click by paragraph. IssueID #134 --- src/ui/util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/util.h') diff --git a/src/ui/util.h b/src/ui/util.h index da4d3a99..9e00e495 100644 --- a/src/ui/util.h +++ b/src/ui/util.h @@ -82,6 +82,14 @@ iLocalDef iBool isOverlapping_Rangei(iRangei a, iRangei b) { return !isEmpty_Rangei(intersect_Rangei(a, b)); } +enum iRangeExtension { + word_RangeExtension = iBit(1), + line_RangeExtension = iBit(2), + bothStartAndEnd_RangeExtension = iBit(3), +}; + +void extendRange_Rangecc (iRangecc *, iRangecc bounds, int mode); + /*-----------------------------------------------------------------------------------------------*/ iDeclareType(Anim) -- cgit v1.2.3