1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
/*
animate.h
Author: Susumu Shiohara (shiohara@tpp.epson.co.jp)
Copyright 1993-1997 by Susumu Shiohara
All Rights Reserved
*/
typedef enum {
SLIDE=0,
FADE,
REVERSE,
MONOTONE,
FLUSH,
WIPE,
WIPE24,
BLOCK,
BLOCK24,
MOSAIC,
COLORANIM,
COLORANIM2,
SHUFFLE,
PUZZLE,
SLIT,
TRANSPARENT,
MOVE,
FLOAT24,
GIFANIM
} ShowMode;
#if !defined (IS_MAIN)
#if defined(__STDC__) || defined(__cplusplus)
# define P_(s) s
#else
# define P_(s) ()
#endif
ActionStatus xslideshow P_((char *));
ActionStatus xfadeshow P_((char *));
ActionStatus xreverseshow P_((char *));
ActionStatus xmonotoneshow P_((char *));
ActionStatus xflushshow P_((char *));
ActionStatus xwipeshow P_((char *));
ActionStatus xwipeshow24 P_((char *));
ActionStatus xblockshow P_((char *));
ActionStatus xblockshow24 P_((char *));
ActionStatus xmosaicshow P_((char *));
ActionStatus xcoloranimateshow P_((char *));
ActionStatus xcoloranimate2show P_((char *));
ActionStatus xshuffleshow P_((char *));
ActionStatus xpuzzleshow P_((char *));
ActionStatus xslitshow P_((char *));
ActionStatus xtransparentshow P_((char *));
ActionStatus xmoveshow P_((char *));
ActionStatus xfloat24show P_((char *));
ActionStatus xgifanimshow P_((char *));
void postxslideshow P_((char *));
void postxfadeshow P_((char *));
void postxreverseshow P_((char *));
void postxmonotoneshow P_((char *));
void postxflushshow P_((char *));
void postxwipeshow P_((char *));
void postxwipeshow24 P_((char *));
void postxblockshow P_((char *));
void postxblockshow24 P_((char *));
void postxmosaicshow P_((char *));
void postxcoloranimateshow P_((char *));
void postxcoloranimate2show P_((char *));
void postxshuffleshow P_((char *));
void postxpuzzleshow P_((char *));
void postxslitshow P_((char *));
void postxtransparentshow P_((char *));
void postxmoveshow P_((char *));
void postxfloat24show P_((char *));
void postxgifanimshow P_((char *));
#undef P_
static ActionStatus (*animateFunc[])() = {
xslideshow, /* SLIDE */
xfadeshow, /* FADE */
xreverseshow, /* REVERSE */
xmonotoneshow, /* MONOTONE */
xflushshow, /* FLUSH */
xwipeshow, /* WIPE */
xwipeshow24, /* WIPE24 */
xblockshow, /* BLOCK */
xblockshow24, /* BLOCK24 */
xmosaicshow, /* MOSAIC */
xcoloranimateshow, /* COLORANIM */
xcoloranimate2show, /* COLORANIM2 */
xshuffleshow, /* SHUFFLE */
xpuzzleshow, /* PUZZLE */
xslitshow, /* SLIT */
xtransparentshow, /* TRANSPARENT*/
xmoveshow, /* MOVE */
xfloat24show, /* FLOAT24 */
xgifanimshow, /* GIFANIM */
};
static void (*postAnimateFunc[])() = {
postxslideshow, /* SLIDE */
postxfadeshow, /* FADE */
postxreverseshow, /* REVERSE */
postxmonotoneshow, /* MONOTONE */
postxflushshow, /* FLUSH */
postxwipeshow, /* WIPE */
postxwipeshow24, /* WIPE24 */
postxblockshow, /* BLOCK */
postxblockshow24, /* BLOCK24 */
postxmosaicshow, /* MOSAIC */
postxcoloranimateshow, /* COLORANIM */
postxcoloranimate2show, /* COLORANIM2 */
postxshuffleshow, /* SHUFFLE */
postxpuzzleshow, /* PUZZLE */
postxslitshow, /* SLIT */
postxtransparentshow, /* TRANSPARENT*/
postxmoveshow, /* MOVE */
postxfloat24show, /* FLOAT24 */
postxgifanimshow /* GIFANIM */
};
#if defined(__STDC__) || defined(__cplusplus)
static ShowMode animate_strtoenum(char *animate)
#else
static ShowMode animate_strtoenum(animate)
char *animate;
#endif
{
if (strcmp(animate,"slide") == 0) return(SLIDE);
else if(strcmp(animate,"fade") == 0) return(FADE);
else if(strcmp(animate,"reverse") == 0) return(REVERSE);
else if(strcmp(animate,"monotone") == 0) return(MONOTONE);
else if(strcmp(animate,"flush") == 0) return(FLUSH);
else if(strcmp(animate,"wipe") == 0) return(WIPE);
else if(strcmp(animate,"wipe24") == 0) return(WIPE24);
else if(strcmp(animate,"block") == 0) return(BLOCK);
else if(strcmp(animate,"block24") == 0) return(BLOCK24);
else if(strcmp(animate,"mosaic") == 0) return(MOSAIC);
else if(strcmp(animate,"coloranim") == 0) return(COLORANIM);
else if(strcmp(animate,"coloranim2")== 0) return(COLORANIM2);
else if(strcmp(animate,"shuffle") == 0) return(SHUFFLE);
else if(strcmp(animate,"puzzle") == 0) return(PUZZLE);
else if(strcmp(animate,"slit") == 0) return(SLIT);
else if(strcmp(animate,"transparent") == 0) return(TRANSPARENT);
else if(strcmp(animate,"move") == 0) return(MOVE);
else if(strcmp(animate,"float24") == 0) return(FLOAT24);
else if(strcmp(animate,"gifanim") == 0) return(GIFANIM);
else return(SLIDE);
}
#endif
|