From 50d215e3ac79be5f256d66f1911ab6582e5851d6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 9 Jul 2009 07:58:04 +0000 Subject: Added setings for colours, alpha, and caret colour for additional selections. --- src/Selection.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Selection.h') diff --git a/src/Selection.h b/src/Selection.h index 0cb1200f8..6fe828a2c 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -84,6 +84,8 @@ struct SelectionRange { } SelectionRange(SelectionPosition single) : caret(single), anchor(single) { } + SelectionRange(int single) : caret(single), anchor(single) { + } SelectionRange(SelectionPosition caret_, SelectionPosition anchor_) : caret(caret_), anchor(anchor_) { } SelectionRange(int caret_, int anchor_) : caret(caret_), anchor(anchor_) { @@ -152,8 +154,8 @@ public: void TrimSelection(SelectionPosition startPos, SelectionPosition endPos); void AddSelection(SelectionPosition spPos); void AddSelection(SelectionPosition spStartPos, SelectionPosition spEndPos, bool anchorLeft); - bool CharacterInSelection(int posCharacter) const; - bool InSelectionForEOL(int pos) const; + int CharacterInSelection(int posCharacter) const; + int InSelectionForEOL(int pos) const; int VirtualSpaceFor(int pos) const; void Clear(); void EmptyRanges(); -- cgit v1.2.3