101 references to Rect
Microsoft.Maui (9)
Core\Extensions\VisualTreeElementExtensions.cs (1)
86 GetVisualTreeElements(visualElement, new Rect(x1, y1, x2 - x1, y2 - y1));
Extensions\IndicatorViewExtensions.cs (1)
36 var path = sH.PathForBounds(new Rect(0, 0, 6, 6));
Graphics\RectangleExtensions.cs (1)
17 return new Rect(rectangle.Left + inset, rectangle.Top + inset,
Layouts\GridLayoutManager.cs (1)
280 return new Rect(left + xOffset, top + yOffset, width, height);
Layouts\HorizontalStackLayoutManager.cs (1)
83 var destination = new Rect(x, top, child.DesiredSize.Width, height);
Layouts\LayoutExtensions.cs (2)
69 return new Rect(frameX, frameY, frameWidth, frameHeight); 179 var targetBounds = new Rect(bounds.Left + padding.Left, bounds.Top + padding.Top,
Layouts\VerticalStackLayoutManager.cs (1)
63 var destination = new Rect(left, stackHeight, width, child.DesiredSize.Height);
VisualDiagnostics\AdornerModel.cs (1)
137 return new Rect(left, top, right - left, bottom - top);
Microsoft.Maui.Controls (41)
Compatibility\Handlers\FlyoutPage\iOS\PhoneFlyoutPageRenderer.cs (4)
115 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height)); 143 view.Arrange(new Rect(Element.X, Element.Y, View.Bounds.Width, View.Bounds.Height)); 472 FlyoutPageController.FlyoutBounds = new Rect(flyoutFrame.X, 0, flyoutFrame.Width, flyoutFrame.Height); 473 FlyoutPageController.DetailBounds = new Rect(detailsFrame.X, 0, frame.Width, frame.Height);
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (1)
2005 Rect layoutBounds = new Rect(IconWidth, 0, Bounds.Width - IconWidth, height);
Compatibility\Handlers\Shell\iOS\ShellFlyoutLayoutManager.cs (1)
335 var contentFrame = new Rect(parentBounds.X, contentYOffset, parentBounds.Width, parentBounds.Height - contentYOffset - footerHeight);
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (1)
136 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height));
Compatibility\Handlers\Shell\iOS\UIContainerView.cs (1)
125 var platformFrame = new Rect(0, 0, width, height);
ContentPresenter.cs (1)
47 child?.Arrange(new Rect(x, y, width, height));
Handlers\Items\iOS\ItemsViewController.cs (2)
555 formsElement.Arrange(new Rect(0, 0, request.Width, CollectionView.Frame.Height)); 560 formsElement.Arrange(new Rect(0, 0, CollectionView.Frame.Width, request.Height));
Layout\AbsoluteLayout.cs (2)
30 typeof(Rect), typeof(AbsoluteLayout), new Rect(0, 0, AutoSize, AutoSize), propertyChanged: LayoutBoundsPropertyChanged); 159 LayoutBounds = new Rect(0, 0, AutoSize, AutoSize);
Layout\BoundsTypeConverter.cs (2)
48 return new Rect(x, y, AbsoluteLayout.AutoSize, AbsoluteLayout.AutoSize); 50 return new Rect(x, y, w, h);
Layout\FlexExtensions.cs (1)
11 return new Rect(item.Frame[0], item.Frame[1], item.Frame[2], item.Frame[3]);
LegacyLayouts\AbsoluteLayout.cs (2)
21 public static readonly BindableProperty LayoutBoundsProperty = BindableProperty.CreateAttached("LayoutBounds", typeof(Rect), typeof(AbsoluteLayout), new Rect(0, 0, AutoSize, AutoSize)); 329 SetLayoutBounds(view, new Rect(position.X, position.Y, AutoSize, AutoSize));
LegacyLayouts\GridCalc.cs (1)
48 LayoutChildIntoBoundingRegion(child, new Rect(posx, posy, w, h));
LegacyLayouts\Layout.cs (2)
227 region = new Rect(parent.Width - region.Right, region.Y, region.Width, region.Height); 493 region = new Rect(parent.Width - region.Right, region.Y, region.Width, region.Height);
LegacyLayouts\RelativeLayout.cs (3)
210 MockBounds(new Rect(0, 0, mockWidth, mockHeight)); 324 BoundsConstraint bounds = BoundsConstraint.FromExpression(() => new Rect(x(), y(), width(), height()), parents.Distinct().ToArray()); 383 BoundsConstraint bounds = BoundsConstraint.FromExpression(() => new Rect(xCompiled(), yCompiled(), widthCompiled(), heightCompiled()), fromExpression: true, parents: parents.Distinct().ToArray());
LegacyLayouts\StackLayout.cs (3)
175 var bounds = new Rect(x, yOffset, request.Request.Width, request.Request.Height); 210 var bounds = new Rect(xOffset, y, request.Request.Width, request.Request.Height); 226 layout.Bounds = new Rect(x, y, boundsWidth, boundsHeight);
Page\Page.cs (1)
417 var area = new Rect(x, y, width, height);
Platform\iOS\ControlsModalWrapper.cs (1)
138 _modal?.PlatformArrange(new Rect(0, 0, View!.Bounds.Width, View.Bounds.Height));
Platform\iOS\Extensions\FormattedStringExtensions.cs (1)
254 rects.Add(new Rect(r.X, r.Y, r.Width, r.Height));
Region.cs (4)
47 positions.Add(new Rect(startX, lineHeightTotal, maxWidth - startX, lineHeights[i])); 50 positions.Add(new Rect(0, lineHeightTotal, maxWidth, lineHeights[i])); 53 positions.Add(new Rect(0, lineHeightTotal, endX, lineHeights[i])); 58 positions.Add(new Rect(startX, lineHeightTotal, endX - startX, lineHeights[i]));
ScrollView\ScrollView.cs (2)
61 var scrollBounds = new Rect(ScrollX, ScrollY, Width, Height); 62 var itemBounds = new Rect(x, y, item.Width, item.Height);
TemplatedView\TemplatedView.cs (1)
42 LayoutChildIntoBoundingRegion(child, new Rect(x, y, width, height));
ViewExtensions.cs (1)
102 return new Rect(x, y, w, h);
VisualElement\VisualElement.cs (2)
579 get { return IsMocked() ? new Rect(_mockX, _mockY, _mockWidth, _mockHeight) : _frame; } 1776 Rect _frame = new Rect(0, 0, -1, -1);
Window\Window.cs (1)
214 if (new Rect(X, Y, Width, Height) == frame)
Microsoft.Maui.Controls.Compatibility (32)
iOS\CollectionView\ItemsViewController.cs (2)
390 Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(formsElement, new Rect(0, 0, request.Request.Width, CollectionView.Frame.Height)); 395 Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(formsElement, new Rect(0, 0, CollectionView.Frame.Width, request.Request.Height));
iOS\Extensions\CompatibilityColorExtensions.cs (1)
65 return new Rect(rect.X, rect.Y, rect.Width, rect.Height);
iOS\HandlerToRendererShim.cs (1)
80 Layout.LayoutChildIntoBoundingRegion(Element, new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\CarouselPageRenderer.cs (1)
79 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\IndicatorViewRenderer.cs (1)
169 indicatorLayout.Layout(new Rect(0, 0, indicatorLayoutSizeRequest.Request.Width, indicatorLayoutSizeRequest.Request.Height));
iOS\Renderers\ListViewRenderer.cs (6)
85 Layout.LayoutChildIntoBoundingRegion(e, new Rect(0, 0, width, Math.Ceiling(request.Request.Height))); 98 Layout.LayoutChildIntoBoundingRegion(e, new Rect(0, 0, width, Math.Ceiling(request.Request.Height))); 406 Layout.LayoutChildIntoBoundingRegion(footerView, new Rect(0, 0, width, request.Request.Height)); 428 Layout.LayoutChildIntoBoundingRegion(headerView, new Rect(0, 0, width, request.Request.Height)); 499 Layout.LayoutChildIntoBoundingRegion(footerView, new Rect(0, 0, width, request.Request.Height)); 545 Layout.LayoutChildIntoBoundingRegion(headerView, new Rect(0, 0, width, request.Request.Height));
iOS\Renderers\NavigationRenderer.cs (4)
90 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height)); 194 new Rect(0, toolbar.Hidden ? 0 : toolbar.Frame.Height, modelSize.Width, modelSize.Height - trueBottom); 198 Element.Layout(new Rect(Element.X, Element.Y, _queuedSize.Width, _queuedSize.Height)); 1688 Rect layoutBounds = new Rect(IconWidth, 0, Bounds.Width - IconWidth, height);
iOS\Renderers\PageRenderer.cs (1)
104 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\PhoneFlyoutPageRenderer.cs (4)
103 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height)); 130 Element.Layout(new Rect(Element.X, Element.Y, View.Bounds.Width, View.Bounds.Height)); 309 FlyoutPageController.FlyoutBounds = new Rect(flyoutFrame.X, 0, flyoutFrame.Width, flyoutFrame.Height); 310 FlyoutPageController.DetailBounds = new Rect(0, 0, frame.Width, frame.Height);
iOS\Renderers\ScrollViewRenderer.cs (1)
121 Layout.LayoutChildIntoBoundingRegion(Element, new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\SwipeViewRenderer.cs (1)
640 swipeItemView.Layout(new Rect(0, 0, swipeItemSize.Width, swipeItemSize.Height));
iOS\Renderers\TabbedRenderer.cs (3)
99 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height)); 147 Page.ContainerArea = new Rect(0, 0, frame.Width, frame.Height - tabBarFrame.Height); 151 Element.Layout(new Rect(Element.X, Element.Y, _queuedSize.Width, _queuedSize.Height));
iOS\Renderers\TabletFlyoutPageRenderer.cs (3)
232 Element.Layout(new Rect(Element.X, Element.Width, size.Width, size.Height)); 286 FlyoutPageController.FlyoutBounds = new Rect(0, 0, _flyoutWidth, flyoutBounds.Height); 293 FlyoutPageController.DetailBounds = new Rect(0, 0, detailsBounds.Width, detailsBounds.Height);
iOS\Renderers\UIContainerView.cs (1)
97 _view.Layout(new Rect(0, Margin.Top, Width ?? Frame.Width, Height ?? MeasuredHeight));
iOS\Renderers\WkWebViewRenderer.cs (1)
135 Layout.LayoutChildIntoBoundingRegion(Element, new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\VisualElementRenderer.cs (1)
168 Layout.LayoutChildIntoBoundingRegion(Element, new Rect(Element.X, Element.Y, size.Width, size.Height));
Microsoft.Maui.Controls.Foldable (13)
DualScreenInfo.cs (2)
189 return new[] { guide.Pane1, new Rect(0, hinge.Height + guide.Pane1.Height, guide.Pane2.Width, guide.Pane2.Height) }; 191 return new[] { guide.Pane1, new Rect(hinge.Width + guide.Pane1.Width, 0, guide.Pane2.Width, guide.Pane2.Height) };
TwoPaneViewLayoutGuide.cs (11)
157 containerArea = new Rect(_layout.X, _layout.Y, width, height); 222 _newPane1 = new Rect(0, 0, Hinge.X - locationOnScreen.X, locationOnScreen.Height); 223 _newPane2 = new Rect(_newPane1.Width + Hinge.Width, 0, pane2Width, locationOnScreen.Height); 231 _newPane1 = new Rect(0, 0, locationOnScreen.Width, Hinge.Y - locationOnScreen.Y); 232 _newPane2 = new Rect(0, _newPane1.Height + Hinge.Height, locationOnScreen.Width, pane2Height); 247 _newPane1 = new Rect(0, 0, Hinge.X - locationOnScreen.X, locationOnScreen.Height); 253 _newPane1 = new Rect(amountObscured, 0, locationOnScreen.Width - amountObscured, locationOnScreen.Height); 256 _newPane1 = new Rect(0, 0, locationOnScreen.Width, locationOnScreen.Height); 269 _newPane1 = new Rect(0, 0, locationOnScreen.Width, Hinge.Y - locationOnScreen.Y); 275 _newPane1 = new Rect(0, amountObscured, locationOnScreen.Width, locationOnScreen.Height - amountObscured); 278 _newPane1 = new Rect(0, 0, locationOnScreen.Width, locationOnScreen.Height);
Microsoft.Maui.Graphics (6)
Rect.cs (5)
36 public Rect(Point loc, Size sz) : this(loc.X, loc.Y, sz.Width, sz.Height) 42 return new Rect(left, top, right - left, bottom - top); 126 return new Rect(x, y, width, height); 209 return new Rect(Math.Round(X), Math.Round(Y), Math.Round(Width), Math.Round(Height)); 234 rectangle = new Rect(x, y, w, h);
RectF.cs (1)
221 public static implicit operator Rect(RectF rect) => new Rect(rect.X, rect.Y, rect.Width, rect.Height);