pub struct RectangleRegion(/* private fields */);
Available on crate feature
v1_18
only.Implementations§
Source§impl RectangleRegion
impl RectangleRegion
Sourcepub fn rectangle(&self) -> Rectangle
pub fn rectangle(&self) -> Rectangle
Get the values for a rectangle region.
This returns the values in the reference coordinate space (from the parent region item).
Sourcepub fn rectangle_transformed(&self, image_id: ItemId) -> RectangleTransformed
pub fn rectangle_transformed(&self, image_id: ItemId) -> RectangleTransformed
Get the transformed values for a rectangle region.
This returns the coordinates in pixels after all transformative properties have been applied.
Auto Trait Implementations§
impl Freeze for RectangleRegion
impl RefUnwindSafe for RectangleRegion
impl !Send for RectangleRegion
impl !Sync for RectangleRegion
impl Unpin for RectangleRegion
impl UnwindSafe for RectangleRegion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more