okular
pagetransition.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _OKULAR_PAGETRANSITION_H_
00011 #define _OKULAR_PAGETRANSITION_H_
00012
00013 #include <okular/core/okular_export.h>
00014
00015 namespace Okular {
00016
00024 class OKULAR_EXPORT PageTransition
00025 {
00026 public:
00030 enum Type {
00031 Replace,
00032 Split,
00033 Blinds,
00034 Box,
00035 Wipe,
00036 Dissolve,
00037 Glitter,
00038 Fly,
00039 Push,
00040 Cover,
00041 Uncover,
00042 Fade
00043 };
00044
00049 enum Alignment {
00050 Horizontal,
00051 Vertical
00052 };
00053
00058 enum Direction {
00059 Inward,
00060 Outward
00061 };
00062
00068 PageTransition( Type type = Replace );
00069
00073 PageTransition( const PageTransition &other );
00074 PageTransition& operator=( const PageTransition &other );
00075
00079 ~PageTransition();
00080
00084 Type type() const;
00085
00089 int duration() const;
00090
00094 Alignment alignment() const;
00095
00099 Direction direction() const;
00100
00104 int angle() const;
00105
00109 double scale() const;
00110
00114 bool isRectangular() const;
00115
00119 void setType( Type type );
00120
00124 void setDuration( int duration );
00125
00129 void setAlignment( Alignment alignment );
00130
00134 void setDirection( Direction direction );
00135
00139 void setAngle( int angle );
00140
00144 void setScale( double scale );
00145
00149 void setIsRectangular( bool rectangular );
00150
00151 private:
00152 class Private;
00153 Private* const d;
00154 };
00155
00156 }
00157
00158 #endif