73 references to Rect
Microsoft.Maui (13)
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);
Platform\iOS\CoreGraphicsExtensions.cs (1)
28 return new Rect((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height);
Platform\iOS\ViewExtensions.cs (2)
461 return new Rect(X, Y, Width, Height); 498 return new Rect(nvb.X, nvb.Y, nvb.Width, nvb.Height);
Platform\iOS\WindowViewController.cs (1)
169 iTitleBar.Arrange(new Graphics.Rect(0, 0, View.Bounds.Width, measured.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)
2042 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)
550 formsElement.Arrange(new Rect(0, 0, request.Width, CollectionView.Frame.Height)); 555 formsElement.Arrange(new Rect(0, 0, CollectionView.Frame.Width, request.Height));
Layout\AbsoluteLayout.cs (2)
43 typeof(Rect), typeof(AbsoluteLayout), new Rect(0, 0, AutoSize, AutoSize), propertyChanged: LayoutBoundsPropertyChanged); 210 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)
419 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)
63 var scrollBounds = new Rect(ScrollX, ScrollY, Width, Height); 64 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)
582 get { return IsMocked() ? new Rect(_mockX, _mockY, _mockWidth, _mockHeight) : _frame; } 1779 Rect _frame = new Rect(0, 0, -1, -1);
Window\Window.cs (1)
214 if (new Rect(X, Y, Width, Height) == frame)
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);