MCPcopy Create free account
hub / github.com/KDE/okular / TextSelection

Method TextSelection

core/misc.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23TextSelection::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
36TextSelection::~TextSelection() = default;
37

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected