~ctwm/ctwm/trunk

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright notice...
 */

#ifndef _CTWM_R_LAYOUT_H
#define _CTWM_R_LAYOUT_H

#include "r_structs.h"


RLayout *RLayoutNew(RAreaList *monitors);
void RLayoutFree(RLayout *self);

RLayout *RLayoutCopyCropped(RLayout *self, int left_margin, int right_margin,
                            int top_margin, int bottom_margin);

RLayout *RLayoutSetMonitorsNames(RLayout *self, char **names);

RArea RLayoutGetAreaAtXY(RLayout *self, int x, int y);
RArea RLayoutGetAreaIndex(RLayout *self, int index);
RArea RLayoutGetAreaByName(RLayout *self, const char *name, int len);
RArea RLayoutBigArea(RLayout *self);

void RLayoutFindTopBottomEdges(RLayout *self, RArea *area, int *top,
                               int *bottom);
int RLayoutFindBottomEdge(RLayout *self, RArea *area);
int RLayoutFindTopEdge(RLayout *self, RArea *area);
void RLayoutFindLeftRightEdges(RLayout *self, RArea *area, int *left,
                               int *right);
int RLayoutFindLeftEdge(RLayout *self, RArea *area);
int RLayoutFindRightEdge(RLayout *self, RArea *area);

int RLayoutFindMonitorBottomEdge(RLayout *self, RArea *area);
int RLayoutFindMonitorTopEdge(RLayout *self, RArea *area);
int RLayoutFindMonitorLeftEdge(RLayout *self, RArea *area);
int RLayoutFindMonitorRightEdge(RLayout *self, RArea *area);

RArea RLayoutFullHoriz(RLayout *self, RArea *area);
RArea RLayoutFullVert(RLayout *self, RArea *area);
RArea RLayoutFull(RLayout *self, RArea *area);
RArea RLayoutFullHoriz1(RLayout *self, RArea *area);
RArea RLayoutFullVert1(RLayout *self, RArea *area);
RArea RLayoutFull1(RLayout *self, RArea *area);

void RLayoutPrint(RLayout *self);

#endif  /* _CTWM_R_LAYOUT_H */