pub enum ResolvedShape {
Rect([Px; 4]),
Ellipse,
Path {
path: Arc<ShapePath>,
offset: (Px, Px),
},
}Variants§
Rect([Px; 4])
Corner radii in px, ordered [top_left, top_right, bottom_right, bottom_left]. Zero radii mean a sharp rectangle.
Ellipse
An ellipse inscribed in the scene node’s rect.
Path
A Dp-local path plus its px-space translation (the rect’s origin).
Trait Implementations§
Source§impl Clone for ResolvedShape
impl Clone for ResolvedShape
Source§impl Debug for ResolvedShape
impl Debug for ResolvedShape
Source§impl PartialEq for ResolvedShape
impl PartialEq for ResolvedShape
impl StructuralPartialEq for ResolvedShape
Auto Trait Implementations§
impl Forget for ResolvedShape
impl Freeze for ResolvedShape
impl Move for ResolvedShape
impl RefUnwindSafe for ResolvedShape
impl Send for ResolvedShape
impl Sync for ResolvedShape
impl Unpin for ResolvedShape
impl UnsafeUnpin for ResolvedShape
impl UnwindSafe for ResolvedShape
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