Okular
15 class TextSelection::Private
34 d->it[d->direction % 2] = -1;
35 d->it[(d->direction + 1) % 2] = -1;
46 int dir1 = d->direction;
47 d->direction = (p.
y - d->cur[0].y < 0 || (p.
y - d->cur[0].y == 0 && p.
x - d->cur[0].x < 0));
48 if (d->direction != dir1) {
49 qCDebug(OkularCoreDebug) <<
"changing direction in selection";
55 void TextSelection::itE(
int p)
57 d->it[(d->direction + 1) % 2] = p;
60 void TextSelection::itB(
int p)
62 d->it[(d->direction) % 2] = p;
72 return d->cur[d->direction % 2];
77 return d->cur[(d->direction + 1) % 2];
80 int TextSelection::itB()
const
82 return d->it[d->direction % 2];
85 int TextSelection::itE()
const
87 return d->it[(d->direction + 1) % 2];
NormalizedPoint end() const
Returns the end point of the selection.
NormalizedPoint start() const
Returns the start point of the selection.
double y
The normalized y coordinate.
The documentation to the global Okular namespace.
Q_SCRIPTABLE Q_NOREPLY void start()
NormalizedPoint is a helper class which stores the coordinates of a normalized point.
TextSelection(const NormalizedPoint &start, const NormalizedPoint &end)
Creates a new text selection with the given start and end point.
int direction() const
Returns the direction of the selection.
double x
The normalized x coordinate.
~TextSelection()
Destroys the text selection.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.