-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathrgwin_pair.h
More file actions
31 lines (26 loc) · 1.23 KB
/
rgwin_pair.h
File metadata and controls
31 lines (26 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* rgwin_pair.h: The pair window header
for RemGlk, remote-procedure-call implementation of the Glk API.
Designed by Andrew Plotkin <[email protected]>
http://eblong.com/zarf/glk/
*/
typedef struct window_pair_struct {
window_t *owner;
window_t *child1, *child2;
int splitpos; /* The split center. To be picky, this is the position
of the top of the border, or the top of the bottom window if the
border is zero-width. (If vertical is true, rotate this comment
90 degrees.) */
int splitwidth; /* The width of the border. */
/* split info... */
glui32 dir; /* winmethod_Left, Right, Above, or Below */
int vertical, backward, hasborder; /* flags */
glui32 division; /* winmethod_Fixed or winmethod_Proportional */
window_t *key; /* NULL or a leaf-descendant (not a Pair) */
int keydamage; /* used as scratch space in window closing */
glui32 size; /* size value */
} window_pair_t;
extern window_pair_t *win_pair_create(window_t *win, glui32 method,
window_t *key, glui32 size);
extern void win_pair_destroy(window_pair_t *dwin);
extern void win_pair_rearrange(window_t *win, grect_t *box, data_metrics_t *metrics);
extern void win_pair_redraw(window_t *win);