pub struct TouchBarPopoverOptions { /* private fields */ }Implementations§
Source§impl TouchBarPopoverOptions
impl TouchBarPopoverOptions
pub fn new_with_values( icon: Option<NativeImage>, items: TouchBar, label: Option<JsString>, show_close_button: Option<bool>, ) -> TouchBarPopoverOptions
pub fn new(items: TouchBar) -> TouchBarPopoverOptions
pub fn icon(&self) -> Option<NativeImage>
pub fn set_icon(&mut self, value: Option<NativeImage>)
pub fn items(&self) -> TouchBar
pub fn set_items(&mut self, value: TouchBar)
pub fn label(&self) -> Option<JsString>
pub fn set_label(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for TouchBarPopoverOptions
impl Clone for TouchBarPopoverOptions
Source§fn clone(&self) -> TouchBarPopoverOptions
fn clone(&self) -> TouchBarPopoverOptions
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 TouchBarPopoverOptions
impl Debug for TouchBarPopoverOptions
Source§impl From<TouchBarPopoverOptions> for JsValue
impl From<TouchBarPopoverOptions> for JsValue
Source§fn from(value: TouchBarPopoverOptions) -> Self
fn from(value: TouchBarPopoverOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TouchBarPopoverOptions
impl FromWasmAbi for TouchBarPopoverOptions
Source§impl IntoWasmAbi for TouchBarPopoverOptions
impl IntoWasmAbi for TouchBarPopoverOptions
Source§impl PartialEq for TouchBarPopoverOptions
impl PartialEq for TouchBarPopoverOptions
Source§impl RefFromWasmAbi for TouchBarPopoverOptions
impl RefFromWasmAbi for TouchBarPopoverOptions
Source§type Anchor = RcRef<TouchBarPopoverOptions>
type Anchor = RcRef<TouchBarPopoverOptions>
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 TouchBarPopoverOptions
impl VectorFromWasmAbi for TouchBarPopoverOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TouchBarPopoverOptions]>
Source§impl VectorIntoJsValue for TouchBarPopoverOptions
impl VectorIntoJsValue for TouchBarPopoverOptions
fn vector_into_jsvalue(vector: Box<[TouchBarPopoverOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for TouchBarPopoverOptions
impl VectorIntoWasmAbi for TouchBarPopoverOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TouchBarPopoverOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for TouchBarPopoverOptions
impl WasmDescribeVector for TouchBarPopoverOptions
impl Eq for TouchBarPopoverOptions
impl StructuralPartialEq for TouchBarPopoverOptions
impl SupportsConstructor for TouchBarPopoverOptions
impl SupportsInstanceProperty for TouchBarPopoverOptions
impl SupportsStaticProperty for TouchBarPopoverOptions
Auto Trait Implementations§
impl Freeze for TouchBarPopoverOptions
impl RefUnwindSafe for TouchBarPopoverOptions
impl !Send for TouchBarPopoverOptions
impl !Sync for TouchBarPopoverOptions
impl Unpin for TouchBarPopoverOptions
impl UnwindSafe for TouchBarPopoverOptions
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::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.