diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-27 14:18:06 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-27 14:18:41 +0200 |
commit | db7f835c320632ec4dea3b8baf5e21b62e2b75e1 (patch) | |
tree | bc0d497c8152b55b04c62fccb98d394ff8cd57fa /src/ui/util.h | |
parent | 2a4f5d0f67fcd1412968ef967ed3009469a46b90 (diff) |
DocumentWidget: Advanced text selection
Double click to select by word, triple click by paragraph.
IssueID #134
Diffstat (limited to 'src/ui/util.h')
-rw-r--r-- | src/ui/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
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) { | |||
82 | return !isEmpty_Rangei(intersect_Rangei(a, b)); | 82 | return !isEmpty_Rangei(intersect_Rangei(a, b)); |
83 | } | 83 | } |
84 | 84 | ||
85 | enum iRangeExtension { | ||
86 | word_RangeExtension = iBit(1), | ||
87 | line_RangeExtension = iBit(2), | ||
88 | bothStartAndEnd_RangeExtension = iBit(3), | ||
89 | }; | ||
90 | |||
91 | void extendRange_Rangecc (iRangecc *, iRangecc bounds, int mode); | ||
92 | |||
85 | /*-----------------------------------------------------------------------------------------------*/ | 93 | /*-----------------------------------------------------------------------------------------------*/ |
86 | 94 | ||
87 | iDeclareType(Anim) | 95 | iDeclareType(Anim) |