Okular

tile.h
1/*
2 SPDX-FileCopyrightText: 2012 Fabio D 'Urso <fabiodurso@hotmail.it>
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
11class QPixmap;
12
13namespace 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 */
22class OKULARCORE_EXPORT Tile
23{
24public:
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
46private:
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
This class represents a rectangular portion of a page.
Definition tile.h:23
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.