|
Packit |
b099d7 |
<title>Overview</title>
|
|
Packit |
b099d7 |
<bold>Xmanimate : an animation program using Motif</bold>
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Xmanimate demonstrates the following Motif features:
|
|
Packit |
b099d7 |
- declaration of icon/bitmap using UIL
|
|
Packit |
b099d7 |
- exchange of value between UIL and C using Mrm.
|
|
Packit |
b099d7 |
- use of the Motif form widget.
|
|
Packit |
b099d7 |
- background procedure running while the client process
|
|
Packit |
b099d7 |
is waiting for inputs (Xt intrinsics feature).
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Xmanimate allows the user to animate a set of pixmaps in a window.
|
|
Packit |
b099d7 |
The pixmaps are not fixed by xmanimate but instead read at startup from
|
|
Packit |
b099d7 |
existing UID files.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
The syntax of all the 'animation.uid' files follows some simple rules and
|
|
Packit |
b099d7 |
one can easily add a new set of pixmaps to be animated using xmanimate.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
dog.uil, plane.uil and superman.uil are tree examples of animation data
|
|
Packit |
b099d7 |
files. (superman[N].xbm are referenced in superman.uil). The default animation
|
|
Packit |
b099d7 |
is 'dog'. To run the demo with the other animations, use the command:
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
% xmanimate -anim plane
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
% xmanimate -anim superman
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
xmanimate.uil and xmanimate.c are the core components of the program.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
speed_factor is a number between 0 and 100.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Files:
|
|
Packit |
b099d7 |
<bold>XmdAnimate</bold>: the app-default file, which is very important
|
|
Packit |
b099d7 |
for usability. Run 'xrdb XmdAnimate' or something like
|
|
Packit |
b099d7 |
XENVIRONMENT=XmdAnimate xmanimate
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
X Defaults:
|
|
Packit |
b099d7 |
The class of this application is XmdAnimate.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Editres:
|
|
Packit |
b099d7 |
Xmanimate is Editres aware, so you can use 'editres' to see the
|
|
Packit |
b099d7 |
names of the widgets in the instance hierarchy.
|