pub struct TooltipRequest { /* private fields */ }Expand description
Content requested by a tooltip trigger.
Implementations§
Source§impl TooltipRequest
impl TooltipRequest
pub fn new( trigger_bounds: Bounds<Pixels>, build: impl Fn(&mut Window, &mut App) -> AnyView + 'static, ) -> Self
Sourcepub fn with_placement(self, placement: Placement) -> Self
pub fn with_placement(self, placement: Placement) -> Self
Prefers a side for the tooltip, falling back when it does not fit.
pub fn placement(self, placement: Placement) -> Self
👎Deprecated:
use with_placement
Sourcepub fn with_show_delay(self, delay: Duration) -> Self
pub fn with_show_delay(self, delay: Duration) -> Self
Overrides TooltipDefaults::show_delay for this trigger.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TooltipRequest
impl !Send for TooltipRequest
impl !Sync for TooltipRequest
impl !UnwindSafe for TooltipRequest
impl Freeze for TooltipRequest
impl Unpin for TooltipRequest
impl UnsafeUnpin for TooltipRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more