Lines Matching refs:RArea
22 const RArea *far_area);
24 const RArea *far_area);
26 const RArea *area);
28 const RArea *area);
31 static bool _findMonitorByXY(const RArea *cur, void *vdata);
32 static bool _findMonitorBottomEdge(const RArea *cur, void *vdata);
33 static bool _findMonitorTopEdge(const RArea *cur, void *vdata);
34 static bool _findMonitorLeftEdge(const RArea *cur, void *vdata);
35 static bool _findMonitorRightEdge(const RArea *cur, void *vdata);
143 * Next, a few util funcs for dealing with RArea's that are outside our
145 * return a list of which RArea's they'd be intersecting with.
151 * Given an RArea that doesn't reside in any of the areas in our RLayout,
152 * create a list of maximally-tall RArea slices out of our layout where
169 * This is called only by \_RLayoutVerticalIntersect() when given an RArea
178 _RLayoutRecenterVertically(const RLayout *self, const RArea *far_area)
180 RArea big = RAreaListBigArea(self->monitors), tmp;
191 // So we'll create an RArea that's the y and height of big (a giant
236 * Given an RArea that doesn't reside in any of the areas in our RLayout,
237 * create a list of maximally-wide RArea slices out of our layout where
254 * This is called only by \_RLayoutVerticalIntersect() when given an RArea
263 _RLayoutRecenterHorizontally(const RLayout *self, const RArea *far_area)
265 RArea big = RAreaListBigArea(self->monitors), tmp;
275 // We create an RArea that's the x and width of big, so it always
299 // And intersect that RArea with self->horiz. This results in a
317 * Some wrappers called when we need to Insersect an RArea with our
319 * RArea doesn't Intersect our layout by finding the nearest border we
326 * Find which vertical regions of our monitor layout a given RArea (often
334 _RLayoutVerticalIntersect(const RLayout *self, const RArea *area)
349 * Find which horizontal regions of our monitor layout a given RArea
357 _RLayoutHorizontalIntersect(const RLayout *self, const RArea *area)
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)
521 const RArea *area;
527 _findMonitorByXY(const RArea *cur, void *vdata)
539 * Find the RArea in a RLayout that a given coordinate falls into. In
540 * practice, the RArea's in self are the monitors of the desktop, so this
543 RArea
555 * Return the index'th RArea in an RLayout, or RAreaInvalid() with an out
558 RArea
570 * Return the RArea in self with the name given by the string of length
575 RArea
598 * Now some utils for finding various edges of the monitors a given RArea
606 const RArea *area;
618 _findMonitorBottomEdge(const RArea *cur, void *vdata)
637 * a given RArea. Generally, the area would be a window.
645 RLayoutFindMonitorBottomEdge(const RLayout *self, const RArea *area)
657 _findMonitorTopEdge(const RArea *cur, void *vdata)
676 * a given RArea. Generally, the area would be a window.
684 RLayoutFindMonitorTopEdge(const RLayout *self, const RArea *area)
696 _findMonitorLeftEdge(const RArea *cur, void *vdata)
715 * a given RArea. Generally, the area would be a window.
724 RLayoutFindMonitorLeftEdge(const RLayout *self, const RArea *area)
736 _findMonitorRightEdge(const RArea *cur, void *vdata)
755 * a given RArea. Generally, the area would be a window.
764 RLayoutFindMonitorRightEdge(const RLayout *self, const RArea *area)
788 RArea
789 RLayoutFullHoriz(const RLayout *self, const RArea *area)
859 RArea
860 RLayoutFullVert(const RLayout *self, const RArea *area)
882 RArea
883 RLayoutFull(const RLayout *self, const RArea *area)
885 RArea full_horiz, full_vert, full1, full2;
908 RArea
909 RLayoutFullHoriz1(const RLayout *self, const RArea *area)
911 // Cheat by using RLayoutFull1() to find the RArea for the monitor
913 RArea target = RLayoutFull1(self, area);
941 RArea
942 RLayoutFullVert1(const RLayout *self, const RArea *area)
945 RArea target = RLayoutFull1(self, area);
972 RArea
973 RLayoutFull1(const RLayout *self, const RArea *area)
975 RArea target;
987 // return the RArea of it.
1003 * Generate maximal spanning RArea.
1009 RArea