CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/r_layout.h
Go to the documentation of this file.
1/*
2 * Copyright notice...
3 */
4
5#ifndef _CTWM_R_LAYOUT_H
6#define _CTWM_R_LAYOUT_H
7
8#include "r_structs.h"
9
10
11RLayout *RLayoutNew(RAreaList *monitors);
13
15 int right_margin,
16 int top_margin, int bottom_margin);
17
19
20RArea RLayoutGetAreaAtXY(const RLayout *self, int x, int y);
22RArea RLayoutGetAreaByName(const RLayout *self, const char *name, int len);
23
24void RLayoutFindTopBottomEdges(const RLayout *self, const RArea *area, int *top,
25 int *bottom);
26int RLayoutFindBottomEdge(const RLayout *self, const RArea *area);
27int RLayoutFindTopEdge(const RLayout *self, const RArea *area);
28void RLayoutFindLeftRightEdges(const RLayout *self, const RArea *area,
29 int *left,
30 int *right);
31int RLayoutFindLeftEdge(const RLayout *self, const RArea *area);
32int RLayoutFindRightEdge(const RLayout *self, const RArea *area);
33
34int RLayoutFindMonitorBottomEdge(const RLayout *self, const RArea *area);
35int RLayoutFindMonitorTopEdge(const RLayout *self, const RArea *area);
36int RLayoutFindMonitorLeftEdge(const RLayout *self, const RArea *area);
37int RLayoutFindMonitorRightEdge(const RLayout *self, const RArea *area);
38
39RArea RLayoutFullHoriz(const RLayout *self, const RArea *area);
40RArea RLayoutFullVert(const RLayout *self, const RArea *area);
41RArea RLayoutFull(const RLayout *self, const RArea *area);
42RArea RLayoutFullHoriz1(const RLayout *self, const RArea *area);
43RArea RLayoutFullVert1(const RLayout *self, const RArea *area);
44RArea RLayoutFull1(const RLayout *self, const RArea *area);
45
48void RLayoutPrint(const RLayout *self);
49
50#endif /* _CTWM_R_LAYOUT_H */
static int PlaceX
Definition add_window.c:82
int y
Definition menus.c:70
int x
Definition menus.c:69
static int len
Definition parse.c:75
char ** names
Definition parse_be.c:2018
int RLayoutNumMonitors(const RLayout *self)
How many monitors does a given RLayout contain?
Definition r_layout.c:1020
void RLayoutFree(RLayout *self)
Clean up and free an RLayout.
Definition r_layout.c:112
RLayout * RLayoutSetMonitorsNames(RLayout *self, char **names)
Set the names for our monitors in an RLayout.
Definition r_layout.c:132
RArea RLayoutFullVert1(const RLayout *self, const RArea *area)
Figure the best way to stretch an area vertically without crossing monitors.
Definition r_layout.c:942
int RLayoutFindBottomEdge(const RLayout *self, const RArea *area)
Find the bottom of the top stripe of self that area fits into.
Definition r_layout.c:424
RArea RLayoutGetAreaByName(const RLayout *self, const char *name, int len)
Return the RArea in self with the name given by the string of length len at name.
Definition r_layout.c:576
RArea RLayoutGetAreaAtXY(const RLayout *self, int x, int y)
Find the RArea in a RLayout that a given coordinate falls into.
Definition r_layout.c:544
void RLayoutFindTopBottomEdges(const RLayout *self, const RArea *area, int *top, int *bottom)
Figure the position (or nearest practical position) of an area in our screen layout,...
Definition r_layout.c:401
void RLayoutPrint(const RLayout *self)
Pretty-print an RLayout.
Definition r_layout.c:1032
int RLayoutFindRightEdge(const RLayout *self, const RArea *area)
Find the right edge of the left-most stripe of self that area fits into.
Definition r_layout.c:503
RArea RLayoutFullHoriz1(const RLayout *self, const RArea *area)
Figure the best way to stretch an area horizontally without crossing monitors.
Definition r_layout.c:909
int RLayoutFindMonitorTopEdge(const RLayout *self, const RArea *area)
Find the top edge of the bottom-most monitor that contains the most of a given RArea.
Definition r_layout.c:684
int RLayoutFindMonitorRightEdge(const RLayout *self, const RArea *area)
Find the right edge of the left-most monitor that contains the most of a given RArea.
Definition r_layout.c:764
RArea RLayoutBigArea(const RLayout *self)
Generate maximal spanning RArea.
Definition r_layout.c:1010
int RLayoutFindLeftEdge(const RLayout *self, const RArea *area)
Find the left edge of the right-most stripe of self that area fits into.
Definition r_layout.c:489
int RLayoutFindMonitorBottomEdge(const RLayout *self, const RArea *area)
Find the bottom edge of the top-most monitor that contains the most of a given RArea.
Definition r_layout.c:645
RArea RLayoutGetAreaIndex(const RLayout *self, int index)
Return the index'th RArea in an RLayout, or RAreaInvalid() with an out of range index.
Definition r_layout.c:559
RLayout * RLayoutNew(RAreaList *monitors)
Create an RLayout for a given set of monitors.
Definition r_layout.c:55
RArea RLayoutFull1(const RLayout *self, const RArea *area)
Figure the best way to resize an area to fill one monitor.
Definition r_layout.c:973
int RLayoutFindTopEdge(const RLayout *self, const RArea *area)
Find the top of the bottom stripe of self that area fits into.
Definition r_layout.c:438
RArea RLayoutFull(const RLayout *self, const RArea *area)
Figure the best way to stretch an area across the largest horizontal and vertical space it can from i...
Definition r_layout.c:883
void RLayoutFindLeftRightEdges(const RLayout *self, const RArea *area, int *left, int *right)
Figure the position (or nearest practical position) of an area in our screen layout,...
Definition r_layout.c:466
RArea RLayoutFullHoriz(const RLayout *self, const RArea *area)
Figure the best way to stretch an area across the full horizontal width of an RLayout.
Definition r_layout.c:789
RArea RLayoutFullVert(const RLayout *self, const RArea *area)
Figure the best way to stretch an area across the full vertical height of an RLayout.
Definition r_layout.c:860
RLayout * RLayoutCopyCropped(const RLayout *self, int left_margin, int right_margin, int top_margin, int bottom_margin)
Create a copy of an RLayout with given amounts cropped off the sides.
Definition r_layout.c:78
int RLayoutFindMonitorLeftEdge(const RLayout *self, const RArea *area)
Find the left edge of the right-most monitor that contains the most of a given RArea.
Definition r_layout.c:724
A set of RArea's.
Definition r_structs.h:30
A particular extent of space.
Definition r_structs.h:16
The layout of our display.
Definition r_structs.h:45