pub struct TouchBarButtonOptions { /* private fields */ }
Implementations§
Source§impl TouchBarButtonOptions
impl TouchBarButtonOptions
pub fn new_with_values( accessibility_label: Option<JsString>, background_color: Option<JsString>, click: Option<Function>, icon_position: Option<JsString>, icon: Option<NativeImage>, label: Option<JsString>, ) -> TouchBarButtonOptions
pub fn accessibility_label(&self) -> Option<JsString>
pub fn set_accessibility_label(&mut self, value: Option<JsString>)
pub fn background_color(&self) -> Option<JsString>
pub fn set_background_color(&mut self, value: Option<JsString>)
pub fn click(&self) -> Option<Function>
pub fn set_click(&mut self, value: Option<Function>)
pub fn icon_position(&self) -> Option<JsString>
pub fn set_icon_position(&mut self, value: Option<JsString>)
pub fn icon(&self) -> Option<NativeImage>
pub fn set_icon(&mut self, value: Option<NativeImage>)
pub fn label(&self) -> Option<JsString>
pub fn set_label(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for TouchBarButtonOptions
impl Clone for TouchBarButtonOptions
Source§fn clone(&self) -> TouchBarButtonOptions
fn clone(&self) -> TouchBarButtonOptions
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 TouchBarButtonOptions
impl Debug for TouchBarButtonOptions
Source§impl Default for TouchBarButtonOptions
impl Default for TouchBarButtonOptions
Source§fn default() -> TouchBarButtonOptions
fn default() -> TouchBarButtonOptions
Returns the “default value” for a type. Read more
Source§impl From<TouchBarButtonOptions> for JsValue
impl From<TouchBarButtonOptions> for JsValue
Source§fn from(value: TouchBarButtonOptions) -> Self
fn from(value: TouchBarButtonOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TouchBarButtonOptions
impl FromWasmAbi for TouchBarButtonOptions
Source§impl IntoWasmAbi for TouchBarButtonOptions
impl IntoWasmAbi for TouchBarButtonOptions
Source§impl PartialEq for TouchBarButtonOptions
impl PartialEq for TouchBarButtonOptions
Source§impl RefFromWasmAbi for TouchBarButtonOptions
impl RefFromWasmAbi for TouchBarButtonOptions
Source§type Anchor = RcRef<TouchBarButtonOptions>
type Anchor = RcRef<TouchBarButtonOptions>
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 VectorFromWasmAbi for TouchBarButtonOptions
impl VectorFromWasmAbi for TouchBarButtonOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TouchBarButtonOptions]>
Source§impl VectorIntoJsValue for TouchBarButtonOptions
impl VectorIntoJsValue for TouchBarButtonOptions
fn vector_into_jsvalue(vector: Box<[TouchBarButtonOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for TouchBarButtonOptions
impl VectorIntoWasmAbi for TouchBarButtonOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TouchBarButtonOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for TouchBarButtonOptions
impl WasmDescribeVector for TouchBarButtonOptions
impl Eq for TouchBarButtonOptions
impl StructuralPartialEq for TouchBarButtonOptions
impl SupportsConstructor for TouchBarButtonOptions
impl SupportsInstanceProperty for TouchBarButtonOptions
impl SupportsStaticProperty for TouchBarButtonOptions
Auto Trait Implementations§
impl Freeze for TouchBarButtonOptions
impl RefUnwindSafe for TouchBarButtonOptions
impl !Send for TouchBarButtonOptions
impl !Sync for TouchBarButtonOptions
impl Unpin for TouchBarButtonOptions
impl UnwindSafe for TouchBarButtonOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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::Abi
Source§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
.