Okular

pagetransition.h
1 /***************************************************************************
2  * Copyright (C) 2005 by Tobias Koenig <[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_PAGETRANSITION_H_
11 #define _OKULAR_PAGETRANSITION_H_
12 
13 #include "okularcore_export.h"
14 
15 namespace Okular
16 {
24 class OKULARCORE_EXPORT PageTransition
25 {
26 public:
30  enum Type { Replace, Split, Blinds, Box, Wipe, Dissolve, Glitter, Fly, Push, Cover, Uncover, Fade };
31 
36  enum Alignment { Horizontal, Vertical };
37 
42  enum Direction { Inward, Outward };
43 
49  PageTransition(Type type = Replace);
50 
54  PageTransition(const PageTransition &other);
55  PageTransition &operator=(const PageTransition &other);
56 
60  ~PageTransition();
61 
65  Type type() const;
66 
70  double duration() const;
71 
75  Alignment alignment() const;
76 
80  Direction direction() const;
81 
85  int angle() const;
86 
90  double scale() const;
91 
95  bool isRectangular() const;
96 
100  void setType(Type type);
101 
105  void setDuration(double duration);
106 
110  void setAlignment(Alignment alignment);
111 
115  void setDirection(Direction direction);
116 
120  void setAngle(int angle);
121 
125  void setScale(double scale);
126 
130  void setIsRectangular(bool rectangular);
131 
132 private:
133  class Private;
134  Private *const d;
135 };
136 
137 }
138 
139 #endif
Type
Describes the type of transition effect.
global.h
Definition: action.h:19
Direction
Describes the direction that is applied to the Type of transition effect.
Alignment
Describes the alignment that is applied to the Type of transition effect.
Information object for the transition effect of a page.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Nov 27 2020 22:37:29 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.