1 /*****************************************************************************/
2 /* XBalloon - Balloons move on root window.                                  */
3 /*                                                                           */
4 /* XBalloon Copyright (c) 1999 Sakai Hiroaki.                                */
5 /* All Rights Reserved.                                                      */
6 /*                                                                           */
7 /* XBalloon is a simple demonstration program for X. Balloons move on root   */
8 /* window. You can use a faborite pixmap as balloons.                        */
9 /*                                                                           */
10 /* XBalloon is a free software. You may copy or distribute the original      */
11 /* XBalloon freely. But, you may not modify or distribute the original       */
12 /* XBalloon without permission of the author.                                */
13 /*****************************************************************************/
14 
15 #ifndef _XBALLOON_XBALLOON_H_INCLUDED_
16 #define _XBALLOON_XBALLOON_H_INCLUDED_
17 
18 /*****************************************************************************/
19 /* Include Header Files.                                                     */
20 /*****************************************************************************/
21 
22 #include <X11/Xlib.h>
23 
24 #include "configure.h"
25 
26 /*****************************************************************************/
27 /* Difinitions of Some Structures.                                           */
28 /*****************************************************************************/
29 
30 typedef struct XBalloon {
31   Display * display;
32   int screen;
33   Colormap colormap;
34   int width, height, depth;
35   Window root_window;
36   char * display_name;
37   Pixmap balloon_pixmap, balloon_figure;
38   int balloon_width, balloon_height;
39   char * balloon_pixmap_filename;
40   int wait;
41 } XBalloon;
42 
43 typedef struct Balloon {
44   int number, count_maximum;
45   int speed_maximum, speed_minimum, velocity_maximum, velocity_minimum;
46   XPoint * point;
47   XPoint * point_old;
48   XPoint * velocity;
49   int * speed;
50   int * count;
51 } Balloon;
52 
53 /*****************************************************************************/
54 /* Difinitions of Some Parameters                                            */
55 /*****************************************************************************/
56 
57 extern XBalloon xballoon;
58 extern Balloon balloons;
59 
60 #endif
61 
62 /*****************************************************************************/
63 /* End of XBalloon.                                                          */
64 /*****************************************************************************/
65