pub struct CompositingLayer {
pub outset_left: f64,
pub outset_bottom: f64,
pub outset_right: f64,
pub outset_top: f64,
pub alpha: f64,
}Expand description
Offscreen compositing layer requested by a widget for itself and its descendants.
Fields§
§outset_left: f64Extra transparent pixels to the left of the widget bounds.
outset_bottom: f64Extra transparent pixels below the widget bounds.
outset_right: f64Extra transparent pixels to the right of the widget bounds.
outset_top: f64Extra transparent pixels above the widget bounds.
alpha: f64Whole-layer opacity applied while compositing back to the parent.
Implementations§
Trait Implementations§
Source§impl Clone for CompositingLayer
impl Clone for CompositingLayer
Source§fn clone(&self) -> CompositingLayer
fn clone(&self) -> CompositingLayer
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 CompositingLayer
impl Debug for CompositingLayer
impl Copy for CompositingLayer
Auto Trait Implementations§
impl Freeze for CompositingLayer
impl RefUnwindSafe for CompositingLayer
impl Send for CompositingLayer
impl Sync for CompositingLayer
impl Unpin for CompositingLayer
impl UnsafeUnpin for CompositingLayer
impl UnwindSafe for CompositingLayer
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