pub struct BackgroundClip {
pub origin: Vec2,
pub size: Vec2,
pub radii: [f32; 4],
}Expand description
The box a background image is clipped to: the element’s border box with its corner radii, the same shape its background colour fills.
Fields§
§origin: Vec2Top-left in window coordinates.
size: Vec2Border-box size.
radii: [f32; 4]Per-corner radii [top-left, top-right, bottom-right, bottom-left].
Trait Implementations§
Source§impl Clone for BackgroundClip
impl Clone for BackgroundClip
Source§fn clone(&self) -> BackgroundClip
fn clone(&self) -> BackgroundClip
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackgroundClip
impl Debug for BackgroundClip
Source§impl PartialEq for BackgroundClip
impl PartialEq for BackgroundClip
Source§fn eq(&self, other: &BackgroundClip) -> bool
fn eq(&self, other: &BackgroundClip) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackgroundClip
impl StructuralPartialEq for BackgroundClip
Auto Trait Implementations§
impl Freeze for BackgroundClip
impl RefUnwindSafe for BackgroundClip
impl Send for BackgroundClip
impl Sync for BackgroundClip
impl Unpin for BackgroundClip
impl UnsafeUnpin for BackgroundClip
impl UnwindSafe for BackgroundClip
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,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.