]> rtime.felk.cvut.cz Git - orte.git/blob - orte/contrib/shape/ortedemo_types.h
OCERA SF CVS tree of ORTE framework updated to
[orte.git] / orte / contrib / shape / ortedemo_types.h
1 #ifndef ORTEDEMO_TYPES_H
2 #define ORTEDEMO_TYPES_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <sys/types.h>
9 #include <orte_api.h>
10
11
12 #define ELLIPSE         0
13 #define RECTANGLE       1
14 #define TRIANGLE        2
15
16 #define BLUE            0
17 #define GREEN           1
18 #define RED             2
19 #define BLACK           3
20
21 typedef struct BoxRect {
22     int top_left_x;
23     int top_left_y;
24     int bottom_right_x;
25     int bottom_right_y;
26 } BoxRect;
27         
28 typedef struct BoxType {
29     int      color;
30     int      shape;
31     BoxRect  rectangle;
32 } BoxType;
33                             
34 extern Boolean 
35 ORTETypeRegisterBoxType(ORTEDomain *d);
36
37 #ifdef __cplusplus
38 } /* extern "C"*/
39 #endif
40
41 #endif