pub struct ClipRegion {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub scale: f64,
}Expand description
Defines a rectangular region for clipping screenshots.
Fields§
§x: f64X coordinate of the clip region.
y: f64Y coordinate of the clip region.
width: f64Width of the clip region.
height: f64Height of the clip region.
scale: f64Scale factor for the clip region.
Implementations§
Trait Implementations§
Source§impl Clone for ClipRegion
impl Clone for ClipRegion
Source§fn clone(&self) -> ClipRegion
fn clone(&self) -> ClipRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClipRegion
impl Debug for ClipRegion
impl Copy for ClipRegion
Auto Trait Implementations§
impl Freeze for ClipRegion
impl RefUnwindSafe for ClipRegion
impl Send for ClipRegion
impl Sync for ClipRegion
impl Unpin for ClipRegion
impl UnwindSafe for ClipRegion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more