Struct conrod_core::position::rect::Rect [−][src]
Expand description
Defines a Rectangle’s bounds across the x and y axes.
This is a conrod-specific Rectangle in that it’s designed to help with layout.
Fields
x: Range
The start and end positions of the Rectangle on the x axis.
y: Range
The start and end positions of the Rectangle on the y axis.
Implementations
Construct a Rect from a given Point
and Dimensions
.
Construct a Rect from the coordinates of two points.
The Rect representing the area in which two Rects overlap.
The total dimensions of the Rect.
The Rect’s centered coordinates and dimensions in a tuple.
The bottom left corner Point.
The bottom right corner Point.
The edges of the Rect in a tuple (top, bottom, left, right).
The left and top edges of the Rect along with the width and height.
The left and bottom edges of the Rect along with the width and height.
Returns a Rect
with a position relative to the given position on the x axis.
Returns a Rect
with a position relative to the given position on the y axis.
Returns a Rect
with a position relative to the given position.
The Rect with some padding applied to the right edge.
The rect with some padding applied to the bottom edge.
Stretches the closest edge(s) to the given point if the point lies outside of the Rect area.
Align self
’s right edge with the left edge of the other
Rect.
Align self
’s left edge with the right dge of the other
Rect.
Align self
’s top edge with the bottom edge of the other
Rect.
Align self
’s bottom edge with the top edge of the other
Rect.
Align self
to other
along the x axis in accordance with the given Align
variant.
Align self
to other
along the y axis in accordance with the given Align
variant.
Align self
’s left edge with the left edge of the other
Rect.
Align the middle of self
with the middle of the other
Rect along the x axis.
Align self
’s right edge with the right edge of the other
Rect.
Align self
’s bottom edge with the bottom edge of the other
Rect.
Align the middle of self
with the middle of the other
Rect along the y axis.
Align self
’s top edge with the top edge of the other
Rect.
Place self
along the top left edges of the other
Rect.
Place self
along the top right edges of the other
Rect.
Place self
along the bottom left edges of the other
Rect.
Place self
along the bottom right edges of the other
Rect.
Place self
in the middle of the top edge of the other
Rect.
Place self
in the middle of the bottom edge of the other
Rect.
Place self
in the middle of the left edge of the other
Rect.
Place self
in the middle of the right edge of the other
Rect.
Place self
directly in the middle of the other
Rect.
Return the Corner of self
that is closest to the given Point.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rect
impl UnwindSafe for Rect
Blanket Implementations
Mutably borrows from an owned value. Read more