pub struct AvatarStyleConfig {
pub shape: AvatarShape,
pub size: AvatarSize,
pub content: WidgetId,
pub presence: Option<AvatarPresence>,
pub presence_corner: AvatarCorner,
pub is_focused: Signal<bool>,
pub background_override: Option<ColorProp>,
pub border_color_override: Option<ColorProp>,
pub border_width_override: Option<f32>,
pub seed: String,
}Fields§
§shape: AvatarShape§size: AvatarSize§content: WidgetIdPre-built content subtree (InitialsLeaf or ImageWidget).
presence: Option<AvatarPresence>Current presence (if any). The widget passes the live value
resolved from any bound signal at build time; reactive presence
changes re-run Avatar::build so the chrome rebuilds with the
new value.
presence_corner: AvatarCorner§is_focused: Signal<bool>true while the avatar holds keyboard focus — drives the
outer focus ring.
background_override: Option<ColorProp>Caller override for the background fill. None lets the
recipe pick a colour from the chart palette using seed.
border_color_override: Option<ColorProp>Caller override for the border ring colour. None lets the
recipe use theme.colors.surface_main.
border_width_override: Option<f32>Caller override for the border ring width. None = no border.
seed: StringSeed string for the hash-derived background palette pick (typically the avatar’s name or initials).
Trait Implementations§
Source§impl Clone for AvatarStyleConfig
impl Clone for AvatarStyleConfig
Source§fn clone(&self) -> AvatarStyleConfig
fn clone(&self) -> AvatarStyleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AvatarStyleConfig
impl !Send for AvatarStyleConfig
impl !Sync for AvatarStyleConfig
impl !UnwindSafe for AvatarStyleConfig
impl Freeze for AvatarStyleConfig
impl Unpin for AvatarStyleConfig
impl UnsafeUnpin for AvatarStyleConfig
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