pub struct ToolTip<T>{ /* private fields */ }Available on crate feature
winio only.Expand description
Tool tip helper for widgets.
Implementations§
Trait Implementations§
Source§impl<T> AsRawWidget for ToolTip<T>
impl<T> AsRawWidget for ToolTip<T>
Source§fn as_raw_widget(&self) -> RawWidget
fn as_raw_widget(&self) -> RawWidget
Get the raw window handle.
Source§impl<T> AsWidget for ToolTip<T>
impl<T> AsWidget for ToolTip<T>
Source§fn as_widget(&self) -> BorrowedWidget<'_>
fn as_widget(&self) -> BorrowedWidget<'_>
Get the window handle.
Source§impl<T> Component for ToolTip<T>
impl<T> Component for ToolTip<T>
Source§fn init(
init: <ToolTip<T> as Component>::Init<'_>,
sender: &ComponentSender<ToolTip<T>>,
) -> ToolTip<T>
fn init( init: <ToolTip<T> as Component>::Init<'_>, sender: &ComponentSender<ToolTip<T>>, ) -> ToolTip<T>
Create the initial component.
Source§async fn start(&mut self, sender: &ComponentSender<ToolTip<T>>) -> !
async fn start(&mut self, sender: &ComponentSender<ToolTip<T>>) -> !
Start the event listening.
Source§async fn update(
&mut self,
message: <ToolTip<T> as Component>::Message,
sender: &ComponentSender<ToolTip<T>>,
) -> bool
async fn update( &mut self, message: <ToolTip<T> as Component>::Message, sender: &ComponentSender<ToolTip<T>>, ) -> bool
Respond to the message.
Source§fn render(&mut self, sender: &ComponentSender<ToolTip<T>>)
fn render(&mut self, sender: &ComponentSender<ToolTip<T>>)
Render the widgets.
Source§impl<T> Layoutable for ToolTip<T>
impl<T> Layoutable for ToolTip<T>
Source§fn preferred_size(&self) -> Size2D<f64, LogicalSpace>
fn preferred_size(&self) -> Size2D<f64, LogicalSpace>
The preferred size.
Auto Trait Implementations§
impl<T> Freeze for ToolTip<T>where
T: Freeze,
impl<T> RefUnwindSafe for ToolTip<T>where
T: RefUnwindSafe,
impl<T> !Send for ToolTip<T>
impl<T> !Sync for ToolTip<T>
impl<T> Unpin for ToolTip<T>where
T: Unpin,
impl<T> UnwindSafe for ToolTip<T>where
T: UnwindSafe,
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, A> DynAccess<T> for A
impl<T, A> DynAccess<T> for A
Source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load.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