pub struct CropArea {
pub rect: Rect,
pub angle: f32,
}Expand description
What a CropOverlay edits: a rectangle of the content and how far it is turned.
The picture stays still and the frame turns over it, since the renderer cannot turn a
picture. A frame turned clockwise by angle holds what an upright frame would hold with the
picture turned counterclockwise by it, around the middle of the rectangle.
Fields§
§rect: RectThe rectangle before turning, in the units of the content.
angle: f32How far it is turned clockwise, in degrees.
Implementations§
Trait Implementations§
impl Copy for CropArea
impl StructuralPartialEq for CropArea
Auto Trait Implementations§
impl Freeze for CropArea
impl RefUnwindSafe for CropArea
impl Send for CropArea
impl Sync for CropArea
impl Unpin for CropArea
impl UnsafeUnpin for CropArea
impl UnwindSafe for CropArea
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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