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 (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 TouchBarPopoverOptions
impl Debug for TouchBarPopoverOptions
impl Eq 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 LongRefFromWasmAbi for TouchBarPopoverOptions
impl LongRefFromWasmAbi for TouchBarPopoverOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarPopoverOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarPopoverOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<TouchBarPopoverOptions>
type Anchor = RcRef<TouchBarPopoverOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl PartialEq for TouchBarPopoverOptions
impl PartialEq for TouchBarPopoverOptions
Source§fn eq(&self, other: &TouchBarPopoverOptions) -> bool
fn eq(&self, other: &TouchBarPopoverOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for TouchBarPopoverOptions
impl RefFromWasmAbi for TouchBarPopoverOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarPopoverOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarPopoverOptions>>
The Wasm ABI type references to
Self are recovered from.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 RefMutFromWasmAbi for TouchBarPopoverOptions
impl RefMutFromWasmAbi for TouchBarPopoverOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarPopoverOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarPopoverOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<TouchBarPopoverOptions>
type Anchor = RcRefMut<TouchBarPopoverOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl StructuralPartialEq for TouchBarPopoverOptions
impl SupportsConstructor for TouchBarPopoverOptions
impl SupportsInstanceProperty for TouchBarPopoverOptions
impl SupportsStaticProperty for TouchBarPopoverOptions
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 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
Auto Trait Implementations§
impl Freeze for TouchBarPopoverOptions
impl RefUnwindSafe for TouchBarPopoverOptions
impl Send for TouchBarPopoverOptions
impl Sync for TouchBarPopoverOptions
impl Unpin for TouchBarPopoverOptions
impl UnsafeUnpin 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.