aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-07-09 07:58:04 +0000
committernyamatongwe <devnull@localhost>2009-07-09 07:58:04 +0000
commit50d215e3ac79be5f256d66f1911ab6582e5851d6 (patch)
tree8003b34c6c9c45f2a0242b282d25a7bc29e06221 /src/Selection.h
parent00a99b814014f00cea5c64f205b8a701a8b69b58 (diff)
downloadscintilla-mirror-50d215e3ac79be5f256d66f1911ab6582e5851d6.tar.gz
Added setings for colours, alpha, and caret colour for additional
selections.
Diffstat (limited to 'src/Selection.h')
-rw-r--r--src/Selection.h6
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();