Lines Matching refs:RLayout
20 static void _RLayoutFreeNames(RLayout *self);
21 static RAreaList *_RLayoutRecenterVertically(const RLayout *self,
23 static RAreaList *_RLayoutRecenterHorizontally(const RLayout *self,
25 static RAreaList *_RLayoutVerticalIntersect(const RLayout *self,
27 static RAreaList *_RLayoutHorizontalIntersect(const RLayout *self,
42 * First, some funcs for creating and destroying RLayout's in various
49 * Create an RLayout for a given set of monitors.
54 RLayout *
57 RLayout *layout = malloc(sizeof(RLayout));
72 * Create a copy of an RLayout with given amounts cropped off the sides.
77 RLayout *
78 RLayoutCopyCropped(const RLayout *self, int left_margin, int right_margin,
93 * Clean up and free any RLayout.names there might be in an RLayout.
96 _RLayoutFreeNames(RLayout *self)
109 * Clean up and free an RLayout.
112 RLayoutFree(RLayout *self)
127 * Set the names for our monitors in an RLayout. This is only used for
128 * the RLayout that describes our complete monitor layout, which fills in
131 RLayout *
132 RLayoutSetMonitorsNames(RLayout *self, char **names)
144 * RLayout, but we want to find the nearest way to move them inside, then
151 * Given an RArea that doesn't reside in any of the areas in our RLayout,
170 * that doesn't already intersect the RLayout. Will probably not tell
178 _RLayoutRecenterVertically(const RLayout *self, const RArea *far_area)
236 * Given an RArea that doesn't reside in any of the areas in our RLayout,
255 * that doesn't already intersect the RLayout. Will probably not tell
263 _RLayoutRecenterHorizontally(const RLayout *self, const RArea *far_area)
318 * RLayout, but also handle the case (using the above funcs) when the
334 _RLayoutVerticalIntersect(const RLayout *self, const RArea *area)
357 _RLayoutHorizontalIntersect(const RLayout *self, const RArea *area)
376 * stripes of the RLayout an Area appears in. These are used mostly as
401 RLayoutFindTopBottomEdges(const RLayout *self, const RArea *area, int *top,
424 RLayoutFindBottomEdge(const RLayout *self, const RArea *area)
438 RLayoutFindTopEdge(const RLayout *self, const RArea *area)
466 RLayoutFindLeftRightEdges(const RLayout *self, const RArea *area, int *left,
489 RLayoutFindLeftEdge(const RLayout *self, const RArea *area)
503 RLayoutFindRightEdge(const RLayout *self, const RArea *area)
514 * Lookups to find areas in an RLayout by various means.
539 * Find the RArea in a RLayout that a given coordinate falls into. In
544 RLayoutGetAreaAtXY(const RLayout *self, int x, int y)
555 * Return the index'th RArea in an RLayout, or RAreaInvalid() with an out
559 RLayoutGetAreaIndex(const RLayout *self, int index)
576 RLayoutGetAreaByName(const RLayout *self, const char *name, int len)
623 // RLayout, is the bottom of the area shown on it, and is the bottom
645 RLayoutFindMonitorBottomEdge(const RLayout *self, const RArea *area)
662 // RLayout, is the top of the area shown on it, and is the top
684 RLayoutFindMonitorTopEdge(const RLayout *self, const RArea *area)
701 // RLayout, is the left of the area shown on it, and is the left of
724 RLayoutFindMonitorLeftEdge(const RLayout *self, const RArea *area)
741 // RLayout, is the right of the area shown on it, and is the right of
764 RLayoutFindMonitorRightEdge(const RLayout *self, const RArea *area)
785 * width of an RLayout. This is the backend for the f.xhorizoom ctwm
789 RLayoutFullHoriz(const RLayout *self, const RArea *area)
856 * of an RLayout. This is the backend for the f.xzoom ctwm function,
860 RLayoutFullVert(const RLayout *self, const RArea *area)
883 RLayoutFull(const RLayout *self, const RArea *area)
909 RLayoutFullHoriz1(const RLayout *self, const RArea *area)
942 RLayoutFullVert1(const RLayout *self, const RArea *area)
973 RLayoutFull1(const RLayout *self, const RArea *area)
1006 * RLayout internals. Currently only used once; maybe should just be
1010 RLayoutBigArea(const RLayout *self)
1017 * How many monitors does a given RLayout contain?
1020 RLayoutNumMonitors(const RLayout *self)
1027 * Pretty-print an RLayout.
1032 RLayoutPrint(const RLayout *self)