2 * Copyright 2014, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
5 #ifndef TEXT_SELECTION_H
6 #define TEXT_SELECTION_H
9 #include <SupportDefs.h>
15 TextSelection(int32 anchor
, int32 caret
);
16 TextSelection(const TextSelection
& other
);
18 TextSelection
& operator=(const TextSelection
& other
);
19 bool operator==(const TextSelection
& other
) const;
20 bool operator!=(const TextSelection
& other
) const;
22 void SetAnchor(int32 anchor
);
23 inline int32
Anchor() const
26 void SetCaret(int32 caret
);
27 inline int32
Caret() const
36 #endif // TEXT_SELECTION_H