Implement Widget::draw for Tooltip

This commit is contained in:
Héctor Ramón Jiménez 2021-10-28 20:30:25 +07:00
parent 0f8d6e8703
commit 5fee1e33d4
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 123 additions and 39 deletions

View file

@ -1,5 +1,4 @@
//! Decorate content and apply alignment.
use crate::backend::{self, Backend};
use crate::Renderer;
/// An element decorating some content.
@ -10,10 +9,3 @@ pub type Tooltip<'a, Message, Backend> =
iced_native::Tooltip<'a, Message, Renderer<Backend>>;
pub use iced_native::tooltip::Position;
impl<B> iced_native::tooltip::Renderer for Renderer<B>
where
B: Backend + backend::Text,
{
const DEFAULT_PADDING: u16 = 5;
}