UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZTypes.h
1 /* ZTypes.h $Revision: 1.6 $ $Date: 2003/01/31 17:11:49 $ */
2 
3 #ifndef __ZTypes_h
4 
5 #define __ZTypes_h
6 
7 #include <mix/Types.h>
8 
9 
10 /*===========================================================*
11  * Some base structures and types
12  *===========================================================*/
13 
14 /*************************************************************
15  * Natural coordinate
16  *************************************************************/
17 typedef float znc_t;
18 
19 /*************************************************************
20  * Corner and side types
21  *************************************************************/
22 typedef int ZSide;
23 typedef int ZCorner;
24 typedef int ZCornerSide;
25 
26 #define zsTop 0
27 #define zsBottom 1
28 #define zsLeft 2
29 #define zsRight 3
30 
31 #define zcLeftTop 4
32 #define zcLeftBottom 5
33 #define zcRightTop 6
34 #define zcRightBottom 7
35 
36 /* Text attachements */
37 #define AttachRight 0x01
38 #define AttachLeft 0x00
39 #define AttachTop 0x02
40 #define AttachBottom 0x00
41 
42 /* Text alignment */
43 #define AlignRight (1<<0)
44 #define AlignLeft (1<<1)
45 #define AlignTop (1<<2)
46 #define AlignBottom (1<<3)
47 
48 #define AlignHorCenter (AlignLeft|AlignRight)
49 #define AlignVerCenter (AlignTop|AlignBottom)
50 #define AlignCenter (AlignHorCenter|AlignVerCenter)
51 
52 /* Categories of changes for ZGEnv inherited objects */
53 #define ChangedBackground (1<<0)
54 #define ChangedForeground (1<<1)
55 #define ChangedFont (1<<2)
56 #define ChangedLineWidth (1<<3)
57 #define ChangedLineStyle (1<<4)
58 
59 
60 /* Type of group identifier -- id of equivalence classes */
61 typedef int ZGroupId;
62 
63 
64 /* Dimension of object */
65 typedef enum
66 {
67  zdHorizontal, /* object has proportional x-axis */
68  zdVertical /* object has proportional y-axis */
69 
70 } ZDimension;
71 
72 
73 /* Event processing status after input procedure */
74 typedef enum
75 {
76  ziProcessed, /* if event processing has been finished (ungrab input) */
77  ziGrabInput, /* if event processing must be continued (grab input) */
78  ziSkipped /* if this event is not processed */
79 
80 } ZInputStatus;
81 
82 
83 /* One bar definition */
84 typedef struct
85 {
86  int pos; /* position -- base coordinate */
87  int start; /* from to draw */
88  int end; /* util to draw */
89 } ZBar;
90 
91 
92 #endif /* ZTypes.h */
Definition: ZTypes.h:84