pub struct CropRect {
pub left_1000ths_percent: Option<i32>,
pub top_1000ths_percent: Option<i32>,
pub right_1000ths_percent: Option<i32>,
pub bottom_1000ths_percent: Option<i32>,
}Expand description
<a:srcRect l=".." t=".." r=".." b=".."/> (CT_RelativeRect) — how much of a BlipFill’s
source image to crop from each edge, before stretching/tiling the remainder into the shape. Each
side is independently optional (ST_Percentage, thousandths of a percent of the image’s own
width/height; can be negative, which zooms out rather than cropping — real PowerPoint uses
this for “fill the shape, source image too small” cases). Grounded against a real fixture (e.g.
<a:srcRect l="2878" t="2522" r="21582" b="46217"/>, and <a:srcRect t="52941" b="-17647"/>
for the negative case).
Fields§
§left_1000ths_percent: Option<i32>§top_1000ths_percent: Option<i32>§right_1000ths_percent: Option<i32>§bottom_1000ths_percent: Option<i32>Implementations§
Trait Implementations§
impl Copy for CropRect
impl Eq for CropRect
impl StructuralPartialEq for CropRect
Auto Trait Implementations§
impl Freeze for CropRect
impl RefUnwindSafe for CropRect
impl Send for CropRect
impl Sync for CropRect
impl Unpin for CropRect
impl UnsafeUnpin for CropRect
impl UnwindSafe for CropRect
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.