10#include <X11/extensions/Xrandr.h>
87 name !=
NULL ? name :
"",
88 name !=
NULL ?
":" :
"");
RArea RAreaNew(int x, int y, int width, int height)
Construct an RArea from given components.
void RAreaPrint(const RArea *self)
Pretty-print an RArea.
RAreaList * RAreaListNew(int cap,...)
Create an RAreaList from a set of RArea's.
void RAreaListAdd(RAreaList *self, const RArea *area)
Add an RArea onto an RAreaList.
RLayout * RLayoutSetMonitorsNames(RLayout *self, char **names)
Set the names for our monitors in an RLayout.
RLayout * RLayoutNew(RAreaList *monitors)
Create an RLayout for a given set of monitors.
A particular extent of space.
The layout of our display.
RLayout * XrandrNewLayout(Display *disp, Window rootw)
Use XRANDR to figure out how our monitors are laid out.