gen.h

Go to the documentation of this file.
00001 /*
00002 ** gen.h for  in /root/work/xarea-0.0.1
00003 ** 
00004 ** Made by Vianney Rancurel
00005 ** Login   <vianney@epita.fr>
00006 ** 
00007 ** Started on  Wed Aug 25 11:39:00 2004 Vianney Rancurel
00008 ** Last update Mon Dec  6 12:26:56 2004 Vianney Rancurel
00009 */
00010 #ifndef __XAREA_GEN_H__
00011 #define __XAREA_GEN_H__ 1
00012 #include <stdio.h>
00013 #include <fcntl.h>
00014 #include <sys/types.h>
00015 #include <conven/queue.h>
00016 #include <conven/bpt.h>
00017 #include <limits.h>
00018 #include <liblse.h>
00019 #include <stdlib.h>
00020 #include <unistd.h>
00021 #include <X11/Intrinsic.h>
00022 
00023 #include "area.h"
00024 
00025 typedef struct          s_rec
00026 {
00027   t_area                area;   /* must be first        */
00028   int                   color;
00029   char                  pad[56];
00030 }                       t_rec;
00031 
00032 /*
00033  * we need 4 colors to test all cases: don't change it unless modifying
00034  * AreaSet colors[NB_COLORS]
00035  */
00036 #define NB_COLORS       4
00037 
00038 typedef struct          s_rgb
00039 {
00040   short                 r, g, b;
00041 }                       t_rgb;
00042 
00043 typedef struct          s_select_foreach_data
00044 {
00045   Widget                self;
00046   XEvent                *event;
00047 }                       t_select_foreach_data;
00048 
00049 #undef RAND /* don't use this sh*t */
00050 #define RANDOM(Number)  (random() % (Number))
00051 
00052 #include "area_stuff.h"
00053 #include <Xlse/AreaSet.h>
00054 
00055 #endif

Generated on Wed May 24 23:04:18 2006 for LSE/OS by  doxygen 1.4.6