diff options
| author | nyamatongwe <unknown> | 2009-07-06 01:15:56 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-07-06 01:15:56 +0000 | 
| commit | e77dc4242312ae3f0832020e2c8ce13e3fe9ca8e (patch) | |
| tree | 12d2094c439cb0b1ed83f860c7987296796dbe90 /src/Selection.h | |
| parent | f53369ae920abe49f59c1aa5b0a878cf444d39e1 (diff) | |
| download | scintilla-mirror-e77dc4242312ae3f0832020e2c8ce13e3fe9ca8e.tar.gz | |
Allow drag and drop in virtual space.
Diffstat (limited to 'src/Selection.h')
| -rw-r--r-- | src/Selection.h | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/Selection.h b/src/Selection.h index fe6a1c464..94d6fc65e 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -51,6 +51,9 @@ public:  	void Add(int increment) {  		position = position + increment;  	} +	bool IsValid() const { +		return position >= 0; +	}  };  struct SelectionRange { @@ -69,6 +72,7 @@ struct SelectionRange {  		return anchor == caret;  	}  	int Length() const; +	// int Width() const;	// Like Length but takes virtual space into account  	bool operator ==(const SelectionRange &other) const {  		return caret == other.caret && anchor == other.anchor;  	} | 
