Ejemplo n.º 1
0
        public IEnumerable <IWindowLocation> CalcLayout(IEnumerable <IWindow> windows, int spaceWidth, int spaceHeight)
        {
            var newWindows = windows.Where(w => !w.Title.Contains(_title));

            return(_inner.CalcLayout(newWindows, spaceWidth, spaceHeight - _offset)
                   .Select(l => new WindowLocation(l.X, l.Y + _offset, l.Width, l.Height, l.State)));
        }
Ejemplo n.º 2
0
        public IEnumerable <IWindowLocation> CalcLayout(IEnumerable <IWindow> windows, int spaceWidth, int spaceHeight)
        {
            var doubleOuter = _outerGap * 2;
            var halfInner   = _innerGap / 2;

            return(_inner.CalcLayout(windows, spaceWidth - doubleOuter, spaceHeight - doubleOuter).Select(l =>
                                                                                                          new WindowLocation(l.X + _outerGap + halfInner, l.Y + _outerGap + halfInner, l.Width - _innerGap, l.Height - _innerGap, l.State)
                                                                                                          ));
        }