pub struct EuvLogoProps {
pub variant: LogoButtonVariant,
pub on_click: Option<Rc<dyn Fn(Event)>>,
}Expand description
Props for the euv_logo component.
Defines the strongly-typed interface for a branded logo button that renders the “E” letter with a gradient background.
Fields§
§variant: LogoButtonVariantThe display variant controlling size and positioning.
on_click: Option<Rc<dyn Fn(Event)>>Optional click event handler.
Implementations§
Source§impl EuvLogoProps
impl EuvLogoProps
pub fn get_variant(&self) -> LogoButtonVariant
pub fn get_mut_variant(&mut self) -> &mut LogoButtonVariant
pub fn set_variant(&mut self, val: LogoButtonVariant) -> &mut Self
pub fn get_on_click(&self) -> Rc<dyn Fn(Event)>
pub fn try_get_on_click(&self) -> &Option<Rc<dyn Fn(Event)>>
pub fn get_mut_on_click(&mut self) -> &mut Option<Rc<dyn Fn(Event)>>
pub fn set_on_click(&mut self, val: Option<Rc<dyn Fn(Event)>>) -> &mut Self
Source§impl EuvLogoProps
impl EuvLogoProps
Trait Implementations§
Source§impl Clone for EuvLogoProps
impl Clone for EuvLogoProps
Source§fn clone(&self) -> EuvLogoProps
fn clone(&self) -> EuvLogoProps
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 moreSource§impl Debug for EuvLogoProps
impl Debug for EuvLogoProps
Source§impl Default for EuvLogoProps
impl Default for EuvLogoProps
Source§fn default() -> EuvLogoProps
fn default() -> EuvLogoProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvLogoProps
impl !Send for EuvLogoProps
impl !Sync for EuvLogoProps
impl !UnwindSafe for EuvLogoProps
impl Freeze for EuvLogoProps
impl Unpin for EuvLogoProps
impl UnsafeUnpin for EuvLogoProps
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