Okular

tile.h
1 /*
2  SPDX-FileCopyrightText: 2012 Fabio D 'Urso <[email protected]>
3  SPDX-License-Identifier: GPL-2.0-or-later
4 */
5 
6 #ifndef _OKULAR_TILE_H_
7 #define _OKULAR_TILE_H_
8 
9 #include "area.h"
10 
11 class QPixmap;
12 
13 namespace Okular
14 {
15 /**
16  * This class represents a rectangular portion of a page.
17  *
18  * It doesn't take ownership of pixmap
19  *
20  * @since 0.16 (KDE 4.10)
21  */
22 class OKULARCORE_EXPORT Tile
23 {
24 public:
25  Tile(const NormalizedRect &rect, QPixmap *pixmap, bool isValid);
26  Tile(const Tile &t);
27  ~Tile();
28 
29  /**
30  * Location of the tile
31  */
32  NormalizedRect rect() const;
33 
34  /**
35  * Pixmap (may also be NULL)
36  */
37  QPixmap *pixmap() const;
38 
39  /**
40  * True if the pixmap is available and updated
41  */
42  bool isValid() const;
43 
44  Tile &operator=(const Tile &other);
45 
46 private:
47  class Private;
48  Private *d;
49 };
50 
51 }
52 
53 #endif // _OKULAR_TILE_H_
A NormalizedRect is a rectangle which can be defined by two NormalizedPoints.
Definition: area.h:189
global.h
Definition: action.h:16
This class represents a rectangular portion of a page.
Definition: tile.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Nov 29 2021 22:32:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.