![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/emscripten/tests/poppler/poppler/ |
Upload File : |
/* PageTransition.cc * Copyright (C) 2005, Net Integration Technologies, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PAGE_TRANSITION_H #define PAGE_TRANSITION_H #ifdef USE_GCC_PRAGMAS #pragma interface #endif #include "Object.h" //------------------------------------------------------------------------ // PageTransition //------------------------------------------------------------------------ // if changed remember to keep in sync with frontend enums enum PageTransitionType { transitionReplace = 0, transitionSplit, transitionBlinds, transitionBox, transitionWipe, transitionDissolve, transitionGlitter, transitionFly, transitionPush, transitionCover, transitionUncover, transitionFade }; // if changed remember to keep in sync with frontend enums enum PageTransitionAlignment { transitionHorizontal = 0, transitionVertical }; // if changed remember to keep in sync with frontend enums enum PageTransitionDirection { transitionInward = 0, transitionOutward }; class PageTransition { public: // Construct a Page Transition. PageTransition (Object *trans); // Destructor. ~PageTransition (); // Was the Page Transition created successfully? GBool isOk() { return ok; } // Get type PageTransitionType getType() { return type; } // Get duration int getDuration() { return duration;} // Get alignment PageTransitionAlignment getAlignment() { return alignment; } // Get direction PageTransitionDirection getDirection() { return direction; } // Get angle int getAngle() { return angle; } // Get scale double getScale() { return scale; } // Is rectangular? GBool isRectangular() { return rectangular; } private: PageTransitionType type; // transition style int duration; // duration of the effect in seconds PageTransitionAlignment alignment; // dimension of the effect PageTransitionDirection direction; // direction of motion int angle; // direction in degrees double scale; // scale GBool rectangular; // is the area to be flown in rectangular? GBool ok; // set if created successfully }; #endif /* PAGE_TRANSITION_H */