Struct epaint::Shadow [−][src]
The color and fuzziness of a fuzzy shape. Can be used for a rectangular shadow with a soft penumbra.
Fields
extrusion: f32
The shadow extends this much outside the rect. The size of the fuzzy penumbra.
color: Color32
Color of the opaque center of the shadow.
Implementations
impl Shadow
[src]
pub fn small() -> Self
[src]
Tooltips, menus, …
pub fn big_dark() -> Self
[src]
Subtle and nice on dark backgrounds
pub fn big_light() -> Self
[src]
Subtle and nice on white backgrounds
pub fn tessellate(&self, rect: Rect, corner_radius: f32) -> Mesh
[src]
Trait Implementations
impl Clone for Shadow
[src]
impl Copy for Shadow
[src]
impl Debug for Shadow
[src]
impl Default for Shadow
[src]
impl PartialEq<Shadow> for Shadow
[src]
impl StructuralPartialEq for Shadow
[src]
Auto Trait Implementations
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnwindSafe for Shadow
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,