Enum webrender::clip::ClipItemKeyKind
source · pub enum ClipItemKeyKind {
Rectangle(RectangleKey, ClipMode),
RoundedRectangle(RectangleKey, BorderRadiusAu, ClipMode),
ImageMask(RectangleKey, ImageKey, Option<Handle<PolygonIntern>>),
BoxShadow(PointKey, SizeKey, BorderRadiusAu, RectangleKey, Au, BoxShadowClipMode),
}
Variants§
Rectangle(RectangleKey, ClipMode)
RoundedRectangle(RectangleKey, BorderRadiusAu, ClipMode)
ImageMask(RectangleKey, ImageKey, Option<Handle<PolygonIntern>>)
BoxShadow(PointKey, SizeKey, BorderRadiusAu, RectangleKey, Au, BoxShadowClipMode)
Implementations§
source§impl ClipItemKeyKind
impl ClipItemKeyKind
pub fn rectangle(rect: LayoutRect, mode: ClipMode) -> Self
pub fn rounded_rect( rect: LayoutRect, radii: BorderRadius, mode: ClipMode, ) -> Self
pub fn image_mask( image_mask: &ImageMask, mask_rect: LayoutRect, polygon_handle: Option<Handle<PolygonIntern>>, ) -> Self
pub fn box_shadow( shadow_rect: LayoutRect, shadow_radius: BorderRadius, prim_shadow_rect: LayoutRect, blur_radius: f32, clip_mode: BoxShadowClipMode, ) -> Self
pub fn node_kind(&self) -> ClipNodeKind
Trait Implementations§
source§impl Clone for ClipItemKeyKind
impl Clone for ClipItemKeyKind
source§fn clone(&self) -> ClipItemKeyKind
fn clone(&self) -> ClipItemKeyKind
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 ClipItemKeyKind
impl Debug for ClipItemKeyKind
source§impl Hash for ClipItemKeyKind
impl Hash for ClipItemKeyKind
source§impl MallocSizeOf for ClipItemKeyKind
impl MallocSizeOf for ClipItemKeyKind
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for ClipItemKeyKind
impl PartialEq for ClipItemKeyKind
source§fn eq(&self, other: &ClipItemKeyKind) -> bool
fn eq(&self, other: &ClipItemKeyKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ClipItemKeyKind
impl Serialize for ClipItemKeyKind
impl Copy for ClipItemKeyKind
impl Eq for ClipItemKeyKind
impl StructuralPartialEq for ClipItemKeyKind
Auto Trait Implementations§
impl Freeze for ClipItemKeyKind
impl RefUnwindSafe for ClipItemKeyKind
impl Send for ClipItemKeyKind
impl Sync for ClipItemKeyKind
impl Unpin for ClipItemKeyKind
impl UnwindSafe for ClipItemKeyKind
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> 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