Struct layout_2013::display_list::background::BackgroundPlacement
source · pub struct BackgroundPlacement {
pub bounds: Rect<Au>,
pub tile_size: Size2D<Au>,
pub tile_spacing: Size2D<Au>,
pub clip_rect: Rect<Au>,
pub clip_radii: BorderRadius,
}
Expand description
Placment information for both image and gradient backgrounds.
Fields§
§bounds: Rect<Au>
Rendering bounds. The background will start in the uppper-left corner and fill the whole area.
tile_size: Size2D<Au>
Background tile size. Some backgrounds are repeated. These are the dimensions of a single image of the background.
tile_spacing: Size2D<Au>
Spacing between tiles. Some backgrounds are not repeated seamless but have seams between them like tiles in real life.
clip_rect: Rect<Au>
A clip area. While the background is rendered according to all the measures above it is only shown within these bounds.
clip_radii: BorderRadius
Rounded corners for the clip_rect.
Trait Implementations§
source§impl Clone for BackgroundPlacement
impl Clone for BackgroundPlacement
source§fn clone(&self) -> BackgroundPlacement
fn clone(&self) -> BackgroundPlacement
Returns a copy 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 BackgroundPlacement
impl Debug for BackgroundPlacement
impl Copy for BackgroundPlacement
Auto Trait Implementations§
impl Freeze for BackgroundPlacement
impl RefUnwindSafe for BackgroundPlacement
impl Send for BackgroundPlacement
impl Sync for BackgroundPlacement
impl Unpin for BackgroundPlacement
impl UnwindSafe for BackgroundPlacement
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert