Lines Matching defs:monitors
49 * Create an RLayout for a given set of monitors.
51 * This stashes up the list of monitors, and precalculates the
55 RLayoutNew(RAreaList *monitors)
62 layout->monitors = monitors;
63 layout->horiz = RAreaListHorizontalUnion(monitors);
64 layout->vert = RAreaListVerticalUnion(monitors);
81 RAreaList *cropped_monitors = RAreaListCopyCropped(self->monitors,
118 RAreaListFree(self->monitors);
127 * Set the names for our monitors in an RLayout. This is only used for
180 RArea big = RAreaListBigArea(self->monitors), tmp;
192 // rectangle covering all the monitors), so that its intersection
265 RArea big = RAreaListBigArea(self->monitors), tmp;
396 * \param[in] area The area to be fit into the monitors
461 * \param[in] area The area to be fit into the monitors
540 * practice, the RArea's in self are the monitors of the desktop, so this
548 RAreaListForeach(self->monitors, _findMonitorByXY, &data);
550 return data.area == NULL ? self->monitors->areas[0] : *data.area;
561 if(index >= self->monitors->len || index < 0) {
565 return self->monitors->areas[index];
583 for(int i = 0; i < self->monitors->len
586 return self->monitors->areas[i];
598 * Now some utils for finding various edges of the monitors a given RArea
641 * bottom. If the bottom of the window is off all the monitors, that's
649 RAreaListForeach(self->monitors, _findMonitorBottomEdge, &data);
680 * If the top of the window is off all the monitors, that's just the
688 RAreaListForeach(self->monitors, _findMonitorTopEdge, &data);
720 * monitors, that's just the right-most-ending monitor that contains the
728 RAreaListForeach(self->monitors, _findMonitorLeftEdge, &data);
760 * monitors, that's just the left-most-ending monitor that contains the
768 RAreaListForeach(self->monitors, _findMonitorRightEdge, &data);
786 * function, zooming a window to the full width of all monitors.
818 * across 2 monitors) to make it a little clearer:
833 * horizontal as it can go, crossing monitors if possible.
857 * zooming a window to the full height of all monitors.
904 * monitors.
937 * monitors.
976 RAreaList *mit = RAreaListIntersect(self->monitors, area);
977 // Start with a list of all the monitors the window is on now.
986 // Of the monitors it's on, find the one that it's "most" on, and
1012 return RAreaListBigArea(self->monitors);
1017 * How many monitors does a given RLayout contain?
1022 return self->monitors->len;
1034 fprintf(stderr, "[monitors=");
1035 RAreaListPrint(self->monitors);