Merge branch 'master' of https://git.maemo.org/projects/erwise
[erwise] / Xl / XlTypes.h
1 /*
2  * XlTypes.h --
3  *
4  * Author: Teemu Rantanen <tvr@cs.hut.fi>
5  * Copyright (c) 1992 Teemu Rantanen
6  *                    All rights reserved
7  *
8  * Created: Thu Feb 27 21:50:02 1992 tvr
9  * Last modified: Tue Apr 21 00:32:43 1992 tvr
10  *
11  */
12
13 /*
14  * This structure consists of all Xl specific object data
15  */
16 typedef struct XlObjectData {
17     /*
18      * X11 info. This graphical context has all information about
19      * the used font. Text sizes can be calculated when font is
20      * known.
21      */
22     GC gc;
23
24     /*
25      * Pointer to XlStyle table.
26      */
27     struct XlStyle *style;
28
29 } XlObjectData_t;
30
31
32 /*
33  * Global data stored for a hypertext page.
34  */
35 typedef struct XlGlobalData {
36     /*
37      * X11 specific data for a page
38      */
39     Display *dpy;
40     Window window;
41
42     /*
43      * Coordinates of a view window left upper corner
44      */
45     long x;
46     long y;
47
48     /*
49      * store GC:s for all fonts here
50      */
51     GC *gcs;
52
53     GC xorgc;
54
55     int nr_gcs;
56
57     /*
58      * Save styledata here
59      */
60
61     XlStyle_t *XlStyles;
62
63 } XlGlobalData_t;
64
65
66
67 #if 0
68
69 /*
70  * No paragraph ending
71  */
72 #define PTYPE_NONE      0
73
74 /*
75  * Normal paragraph ending.
76  */
77 #define PTYPE_NORMAL    1
78
79 /*
80  * On a paragraph ending reset y value to same level where we started.
81  * store maximum y.
82  */
83 #define PTYPE_CONTINUE  2
84
85 /*
86  * On a paragraph ending set y value to maximum y value of stored
87  * 'PTYPE_CONTINUE' -values.
88  */
89 #define PTYPE_NEXT      3
90
91
92 #endif