Okular

misc.h
1/*
2 SPDX-FileCopyrightText: 2005 Piotr Szymanski <niedakh@gmail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#ifndef _OKULAR_MISC_H_
8#define _OKULAR_MISC_H_
9
10#include "area.h"
11#include "okularcore_export.h"
12
13namespace Okular
14{
15/**
16 @short Wrapper around the information needed to generate the selection area
17*/
18class OKULARCORE_EXPORT TextSelection
19{
20public:
21 /**
22 * Creates a new text selection with the given @p start and @p end point.
23 */
25
26 /**
27 * Destroys the text selection.
28 */
30
31 TextSelection(const TextSelection &) = delete;
32 TextSelection &operator=(const TextSelection &) = delete;
33
34 /**
35 * Returns the start point of the selection.
36 */
37 NormalizedPoint start() const;
38
39 /**
40 * Returns the end point of the selection.
41 */
42 NormalizedPoint end() const;
43
44private:
45 class Private;
46 std::unique_ptr<Private> d;
47};
48
49}
50
51#endif
NormalizedPoint is a helper class which stores the coordinates of a normalized point.
Definition area.h:117
Wrapper around the information needed to generate the selection area.
Definition misc.h:19
~TextSelection()
Destroys the text selection.
Q_SCRIPTABLE Q_NOREPLY void start()
global.h
Definition action.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:35 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.