pub struct Tooltip { /* private fields */ }
Implementations§
source§impl Tooltip
impl Tooltip
pub fn text( title: impl Into<SharedString>, cx: &mut WindowContext<'_> ) -> AnyView
pub fn for_action( title: impl Into<SharedString>, action: &dyn Action, cx: &mut WindowContext<'_> ) -> AnyView
pub fn with_meta( title: impl Into<SharedString>, action: Option<&dyn Action>, meta: impl Into<SharedString>, cx: &mut WindowContext<'_> ) -> AnyView
pub fn new(title: impl Into<SharedString>) -> Self
pub fn meta(self, meta: impl Into<SharedString>) -> Self
pub fn key_binding(self, key_binding: impl Into<Option<KeyBinding>>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tooltip
impl !Send for Tooltip
impl !Sync for Tooltip
impl Unpin for Tooltip
impl !UnwindSafe for Tooltip
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