diff options
author | nyamatongwe <unknown> | 2009-07-09 07:58:04 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-09 07:58:04 +0000 |
commit | 784bfcdf8f6b6e9a54399f6f8de3b1aafac39cc7 (patch) | |
tree | 8003b34c6c9c45f2a0242b282d25a7bc29e06221 /src/Selection.h | |
parent | 27115c80992f89e771b14def710dcd544d252b52 (diff) | |
download | scintilla-mirror-784bfcdf8f6b6e9a54399f6f8de3b1aafac39cc7.tar.gz |
Added setings for colours, alpha, and caret colour for additional
selections.
Diffstat (limited to 'src/Selection.h')
-rw-r--r-- | src/Selection.h | 6 |
1 files changed, 4 insertions, 2 deletions
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(); |