29 return !this->
operator==(b) && b.operator<(*this);
58 if (selectionMin > selectionMax)
60 std::swap(this->selectionMin, this->selectionMax);
66 return this->start == this->end;
117 uint32_t originalStart{0};
118 uint32_t originalEnd{0};
119 uint32_t origMessageIndex{0};
120 bool selectingLeft{
false};
121 bool selectingRight{
false};
Definition: Selection.hpp:9
SelectionItem selectionMin
Definition: Selection.hpp:47
Definition: Selection.hpp:44
SelectionItem(uint32_t _messageIndex, uint32_t _charIndex)
Definition: Selection.hpp:15
Definition: Application.cpp:48
SelectionItem end
Definition: Selection.hpp:46
uint32_t messageIndex
Definition: Selection.hpp:10
bool operator<(const SelectionItem &b) const
Definition: Selection.hpp:21
Selection(const SelectionItem &start, const SelectionItem &end)
Definition: Selection.hpp:52
SelectionItem selectionMax
Definition: Selection.hpp:48
SelectionItem start
Definition: Selection.hpp:45
Definition: Selection.hpp:116
void shiftMessageIndex(uint32_t offset)
Definition: Selection.hpp:76
bool operator==(const SelectionItem &b) const
Definition: Selection.hpp:32
bool operator!=(const SelectionItem &b) const
Definition: Selection.hpp:38
bool operator>(const SelectionItem &b) const
Definition: Selection.hpp:27
uint32_t charIndex
Definition: Selection.hpp:11
SelectionItem origEndItem
Definition: Selection.hpp:123
SelectionItem origStartItem
Definition: Selection.hpp:122
bool isSingleMessage() const
Definition: Selection.hpp:69
bool isEmpty() const
Definition: Selection.hpp:64