summaryrefslogtreecommitdiffstats
path: root/widget/src/tooltip.rs
diff options
context:
space:
mode:
authorLibravatar Giuliano Bellini s294739 <s294739@studenti.polito.it>2023-12-23 00:17:10 +0100
committerLibravatar Giuliano Bellini s294739 <s294739@studenti.polito.it>2023-12-23 00:17:10 +0100
commit9bbf7822e9eae4c7d0b41c2eea14e261119b1d23 (patch)
tree889b582548ca123ebb94b72af507d523f075c09b /widget/src/tooltip.rs
parentdd249a1d11c68b8fee1828d58bae158946ee2ebd (diff)
downloadiced-9bbf7822e9eae4c7d0b41c2eea14e261119b1d23.tar.gz
iced-9bbf7822e9eae4c7d0b41c2eea14e261119b1d23.tar.bz2
iced-9bbf7822e9eae4c7d0b41c2eea14e261119b1d23.zip
added text::Shaping to Tooltip
Diffstat (limited to '')
-rw-r--r--widget/src/tooltip.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/widget/src/tooltip.rs b/widget/src/tooltip.rs
index 9e102c56..b888980a 100644
--- a/widget/src/tooltip.rs
+++ b/widget/src/tooltip.rs
@@ -64,6 +64,12 @@ where
self
}
+ /// Sets the [`text::Shaping`] strategy of the [`Tooltip`].
+ pub fn text_shaping(mut self, shaping: text::Shaping) -> Self {
+ self.tooltip = self.tooltip.shaping(shaping);
+ self
+ }
+
/// Sets the font of the [`Tooltip`].
///
/// [`Font`]: Renderer::Font