pub struct TextShadowV1 {
pub offset: Point,
pub color: Color,
}Expand description
A bounded, portable text shadow surface (v1).
This is intentionally minimal (single layer, no blur) so it remains viable across wasm/mobile backends. Higher-level shadow recipes (multi-layer elevation, blur, color management) remain policy in ecosystem crates.
Fields§
§offset: PointBaseline-origin offset in logical pixels (pre-scale-factor).
color: ColorImplementations§
Trait Implementations§
Source§impl Clone for TextShadowV1
impl Clone for TextShadowV1
Source§fn clone(&self) -> TextShadowV1
fn clone(&self) -> TextShadowV1
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 TextShadowV1
impl Debug for TextShadowV1
Source§impl PartialEq for TextShadowV1
impl PartialEq for TextShadowV1
impl Copy for TextShadowV1
impl StructuralPartialEq for TextShadowV1
Auto Trait Implementations§
impl Freeze for TextShadowV1
impl RefUnwindSafe for TextShadowV1
impl Send for TextShadowV1
impl Sync for TextShadowV1
impl Unpin for TextShadowV1
impl UnsafeUnpin for TextShadowV1
impl UnwindSafe for TextShadowV1
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