pub trait TextShadowView: View {
// Required method
fn text_shadow_node(&mut self) -> &mut TextShadow;
// Provided methods
fn text_shadow_offset(self, offset: Vec2) -> Self { ... }
fn text_shadow_color(self, color: impl Into<Color>) -> Self { ... }
}Expand description
A trait for views that support text shadow styling.
Provides methods to configure shadow offset and color for text-based views.
Required Methods§
Sourcefn text_shadow_node(&mut self) -> &mut TextShadow
fn text_shadow_node(&mut self) -> &mut TextShadow
Returns a mutable reference to the underlying TextShadow node,
which stores shadow-related styling information.
Provided Methods§
Sourcefn text_shadow_offset(self, offset: Vec2) -> Self
fn text_shadow_offset(self, offset: Vec2) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.