summaryrefslogtreecommitdiffstats
path: root/glow
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-02-24 01:42:08 +0100
committerLibravatar GitHub <noreply@github.com>2021-02-24 01:42:08 +0100
commita5fddf9ee648927b294ef34e8819855d5e117b26 (patch)
tree96f5454cdb07249beefdb0b804de3b10f5ff6cb6 /glow
parent6759a5c56fc53286d77698ac9a86812b6d7b03ff (diff)
parent2736e4ca35f17a92768f0be682acf6da3b574cb6 (diff)
downloadiced-a5fddf9ee648927b294ef34e8819855d5e117b26.tar.gz
iced-a5fddf9ee648927b294ef34e8819855d5e117b26.tar.bz2
iced-a5fddf9ee648927b294ef34e8819855d5e117b26.zip
Merge pull request #465 from yusdacra/tooltip-widget
Tooltip widget
Diffstat (limited to 'glow')
-rw-r--r--glow/src/widget.rs3
-rw-r--r--glow/src/widget/tooltip.rs6
2 files changed, 9 insertions, 0 deletions
diff --git a/glow/src/widget.rs b/glow/src/widget.rs
index b5c84c56..5481216a 100644
--- a/glow/src/widget.rs
+++ b/glow/src/widget.rs
@@ -20,6 +20,7 @@ pub mod rule;
pub mod scrollable;
pub mod slider;
pub mod text_input;
+pub mod tooltip;
#[doc(no_inline)]
pub use button::Button;
@@ -43,6 +44,8 @@ pub use scrollable::Scrollable;
pub use slider::Slider;
#[doc(no_inline)]
pub use text_input::TextInput;
+#[doc(no_inline)]
+pub use tooltip::Tooltip;
#[cfg(feature = "canvas")]
#[cfg_attr(docsrs, doc(cfg(feature = "canvas")))]
diff --git a/glow/src/widget/tooltip.rs b/glow/src/widget/tooltip.rs
new file mode 100644
index 00000000..89ab3a15
--- /dev/null
+++ b/glow/src/widget/tooltip.rs
@@ -0,0 +1,6 @@
+//! Display a widget over another.
+/// A widget allowing the selection of a single value from a list of options.
+pub type Tooltip<'a, Message> =
+ iced_native::Tooltip<'a, Message, crate::Renderer>;
+
+pub use iced_native::tooltip::Position;