57 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 (29)
ContentPresenter.cs (1)
47
child?.Arrange(new
Rect
(x, y, width, 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)
422
var area = new
Rect
(x, y, width, 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)
64
var scrollBounds = new
Rect
(ScrollX, ScrollY, Width, Height);
65
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)
586
get { return IsMocked() ? new
Rect
(_mockX, _mockY, _mockWidth, _mockHeight) : _frame; }
1841
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);