Okular

misc.h
1 /***************************************************************************
2  * Copyright (C) 2005 by Piotr Szymanski <[email protected]> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef _OKULAR_MISC_H_
11 #define _OKULAR_MISC_H_
12 
13 #include "area.h"
14 #include "okularcore_export.h"
15 
16 namespace Okular
17 {
36 class OKULARCORE_EXPORT TextSelection
37 {
38 public:
42  TextSelection(const NormalizedPoint &start, const NormalizedPoint &end);
43 
47  ~TextSelection();
48 
49  TextSelection(const TextSelection &) = delete;
50  TextSelection &operator=(const TextSelection &) = delete;
51 
55  void end(const NormalizedPoint &point);
56 
57  void itE(int pos);
58  void itB(int pos);
59 
63  int direction() const;
64 
68  NormalizedPoint start() const;
69 
73  NormalizedPoint end() const;
74 
75  int itB() const;
76  int itE() const;
77 
78 private:
79  class Private;
80  Private *const d;
81 };
82 
83 }
84 
85 #endif
NormalizedPoint is a helper class which stores the coordinates of a normalized point.
Definition: area.h:119
global.h
Definition: action.h:19
Wrapper around the information needed to generate the selection area There are two assumptions inside...
Definition: misc.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:36:13 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.