| 21 | }; |
| 22 | |
| 23 | TextSelection::TextSelection(const NormalizedPoint &start, const NormalizedPoint &end) |
| 24 | : d(std::make_unique<Private>()) |
| 25 | { |
| 26 | if (end.y - start.y < 0 || (end.y - start.y == 0 && end.x - start.x < 0)) { |
| 27 | d->direction = 1; |
| 28 | } else { |
| 29 | d->direction = 0; |
| 30 | } |
| 31 | |
| 32 | d->cur[0] = start; |
| 33 | d->cur[1] = end; |
| 34 | } |
| 35 | |
| 36 | TextSelection::~TextSelection() = default; |
| 37 |
nothing calls this directly
no outgoing calls
no test coverage detected