pub struct ThumbarButton { /* private fields */ }Implementations§
Source§impl ThumbarButton
impl ThumbarButton
pub fn new( click: Function, flags: Option<Box<[JsValue]>>, icon: NativeImage, tooltip: Option<Box<[JsValue]>>, ) -> ThumbarButton
pub fn click(&self) -> Function
pub fn set_click(&mut self, value: Function)
pub fn flags(&self) -> Option<Box<[JsValue]>>
pub fn set_flags(&mut self, value: Option<Box<[JsValue]>>)
pub fn icon(&self) -> NativeImage
pub fn set_icon(&mut self, value: NativeImage)
pub fn tooltip(&self) -> Option<Box<[JsValue]>>
pub fn set_tooltip(&mut self, value: Option<Box<[JsValue]>>)
Trait Implementations§
Source§impl From<ThumbarButton> for JsValue
impl From<ThumbarButton> for JsValue
Source§fn from(value: ThumbarButton) -> Self
fn from(value: ThumbarButton) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ThumbarButton
impl FromWasmAbi for ThumbarButton
Source§impl IntoWasmAbi for ThumbarButton
impl IntoWasmAbi for ThumbarButton
Source§impl LongRefFromWasmAbi for ThumbarButton
impl LongRefFromWasmAbi for ThumbarButton
Source§impl OptionFromWasmAbi for ThumbarButton
impl OptionFromWasmAbi for ThumbarButton
Source§impl OptionIntoWasmAbi for ThumbarButton
impl OptionIntoWasmAbi for ThumbarButton
Source§impl RefFromWasmAbi for ThumbarButton
impl RefFromWasmAbi for ThumbarButton
Source§type Anchor = RcRef<ThumbarButton>
type Anchor = RcRef<ThumbarButton>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for ThumbarButton
impl RefMutFromWasmAbi for ThumbarButton
Source§impl TryFromJsValue for ThumbarButton
impl TryFromJsValue for ThumbarButton
Source§impl VectorFromWasmAbi for ThumbarButton
impl VectorFromWasmAbi for ThumbarButton
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ThumbarButton]>
Source§impl VectorIntoJsValue for ThumbarButton
impl VectorIntoJsValue for ThumbarButton
fn vector_into_jsvalue(vector: Box<[ThumbarButton]>) -> JsValue
Source§impl VectorIntoWasmAbi for ThumbarButton
impl VectorIntoWasmAbi for ThumbarButton
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ThumbarButton]>) -> Self::Abi
Source§impl WasmDescribeVector for ThumbarButton
impl WasmDescribeVector for ThumbarButton
impl SupportsConstructor for ThumbarButton
impl SupportsInstanceProperty for ThumbarButton
impl SupportsStaticProperty for ThumbarButton
Auto Trait Implementations§
impl Freeze for ThumbarButton
impl RefUnwindSafe for ThumbarButton
impl !Send for ThumbarButton
impl !Sync for ThumbarButton
impl Unpin for ThumbarButton
impl UnwindSafe for ThumbarButton
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.