Poppler CPP 24.05.0
poppler-page-transition.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2009, Pino Toscano <pino@kde.org>
3 * Copyright (C) 2021, 2022, Albert Astals Cid <aacid@kde.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20#ifndef POPPLER_PAGE_TRANSITION_H
21#define POPPLER_PAGE_TRANSITION_H
22
23#include "poppler-global.h"
24
25class Object;
26
27namespace poppler {
28
29class page;
30class page_transition_private;
31
32class POPPLER_CPP_EXPORT page_transition
33{
34public:
36 {
37 replace = 0,
38 split,
39 blinds,
40 box,
41 wipe,
42 dissolve,
43 glitter,
44 fly,
45 push,
46 cover,
47 uncover,
48 fade
49 };
50
52 {
53 horizontal = 0,
54 vertical
55 };
56
58 {
59 inward = 0,
60 outward
61 };
62
65
66 type_enum type() const;
67 [[deprecated]] int duration() const;
68 double durationReal() const;
69 alignment_enum alignment() const;
70 direction_enum direction() const;
71 int angle() const;
72 double scale() const;
73 bool is_rectangular() const;
74
75 page_transition &operator=(const page_transition &pt);
76
77private:
78 explicit page_transition(Object *params);
79
80 page_transition_private *d;
81 friend class page;
82};
83
84}
85
86#endif
A transition between two pages in a PDF document.
Definition poppler-page-transition.h:33
direction_enum
The direction of an animation in a page transition.
Definition poppler-page-transition.h:58
alignment_enum
The alignment of a page transition.
Definition poppler-page-transition.h:52
type_enum
The possible types of a page transition.
Definition poppler-page-transition.h:36
A page in a PDF document.
Definition poppler-page.h:143
Single namespace containing all the classes and functions of poppler-cpp.
Definition poppler-destination.h:27