~ubuntu-branches/ubuntu/maverick/codelite/maverick

« back to all changes in this revision

Viewing changes to sdk/wxscintilla/src/scintilla/src/Selection.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-07-29 19:42:47 UTC
  • mfrom: (1.1.9 upstream) (18.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100729194247-cuibfk03wog33nxq
Tags: 2.6.0.4189~dfsg-1
* New upstream release.
* Bump Standards.
* Refresh patches.
* Add license information about files under ./Debugger/

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
};
58
58
 
59
59
// Ordered range to make drawing simpler
60
 
struct SelectionSegment {       
 
60
struct SelectionSegment {
61
61
        SelectionPosition start;
62
62
        SelectionPosition end;
63
63
        SelectionSegment() {
148
148
        int MainAnchor() const;
149
149
        SelectionRange &Rectangular();
150
150
        SelectionSegment Limits() const;
 
151
        // This is for when you want to move the caret in response to a
 
152
        // user direction command - for rectangular selections, use the range
 
153
        // that covers all selected text otherwise return the main selection.
 
154
        SelectionSegment LimitsForRectangularElseMain() const;
151
155
        size_t Count() const;
152
156
        size_t Main() const;
153
157
        void SetMain(size_t r);