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
155
156
157
158
159
160
161
162
163
164
165
|
/*
Copyright (C) 2003 GraphicsMagick Group
Copyright (C) 2002 ImageMagick Studio
Copyright 1991-1999 E. I. du Pont de Nemours and Company
This program is covered by multiple licenses, which are described in
Copyright.txt. You should have received a copy of Copyright.txt with this
package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
Methods to Interactively Animate an Image Sequence.
*/
#ifndef _MAGICK_ANIMATE_H
#define _MAGICK_ANIMATE_H
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
/*
Animate state declarations.
*/
#define AutoReverseAnimationState 0x0004
#define ForwardAnimationState 0x0008
#define HighlightState 0x0010
#define PlayAnimationState 0x0020
#define RepeatAnimationState 0x0040
#define StepAnimationState 0x0080
/*
Static declarations.
*/
static const char
*AnimateHelp[]=
{
"BUTTONS",
"",
" Press any button to map or unmap the Command widget.",
"",
"COMMAND WIDGET",
" The Command widget lists a number of sub-menus and commands.",
" They are",
"",
" Animate",
" Open",
" Play",
" Step",
" Repeat",
" Auto Reverse",
" Speed",
" Slower",
" Faster",
" Direction",
" Forward",
" Reverse",
" Help",
" Overview",
" Browse Documentation",
" About Animate",
" Image Info",
" Quit",
"",
" Menu items with a indented triangle have a sub-menu. They",
" are represented above as the indented items. To access a",
" sub-menu item, move the pointer to the appropriate menu and",
" press a button and drag. When you find the desired sub-menu",
" item, release the button and the command is executed. Move",
" the pointer away from the sub-menu if you decide not to",
" execute a particular command.",
"",
"KEYBOARD ACCELERATORS",
" Accelerators are one or two key presses that effect a",
" particular command. The keyboard accelerators that",
" animate(1) understands is:",
"",
" Ctl+O Press to open an image from a file.",
"",
" space Press to display the next image in the sequence.",
"",
" < Press to speed-up the display of the images. Refer to",
" -delay for more information.",
"",
" > Press to slow the display of the images. Refer to",
" -delay for more information.",
"",
" F1 Press to display helpful information about animate(1).",
"",
" Find Press to browse documentation about ImageMagick.",
"",
" ? Press to display information about the image. Press",
" any key or button to erase the information.",
"",
" This information is printed: image name; image size;",
" and the total number of unique colors in the image.",
"",
" Ctl-q Press to discard all images and exit program.",
(char *) NULL
};
/*
Constant declarations.
*/
static const unsigned char
HighlightBitmap[8] =
{
0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55
},
ShadowBitmap[8] =
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
/*
Enumeration declarations.
*/
typedef enum
{
OpenCommand,
PlayCommand,
StepCommand,
RepeatCommand,
AutoReverseCommand,
SlowerCommand,
FasterCommand,
ForwardCommand,
ReverseCommand,
HelpCommand,
BrowseDocumentationCommand,
VersionCommand,
InfoCommand,
QuitCommand,
StepBackwardCommand,
StepForwardCommand,
NullCommand
} CommandType;
/*
Stipples.
*/
#define HighlightWidth 8
#define HighlightHeight 8
#define ShadowWidth 8
#define ShadowHeight 8
/*
Function prototypes.
*/
static Image
*MagickXMagickCommand(Display *,MagickXResourceInfo *,MagickXWindows *,const CommandType,
Image **,unsigned int *);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#endif
/*
* Local Variables:
* mode: c
* c-basic-offset: 2
* fill-column: 78
* End:
*/
|