summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-01-02 22:42:26 +0100
committerLibravatar GitHub <noreply@github.com>2024-01-02 22:42:26 +0100
commit0172cac9493c470f46789ae096d349e36459eb0d (patch)
tree889b582548ca123ebb94b72af507d523f075c09b /widget
parentdd249a1d11c68b8fee1828d58bae158946ee2ebd (diff)
parent9bbf7822e9eae4c7d0b41c2eea14e261119b1d23 (diff)
downloadiced-0172cac9493c470f46789ae096d349e36459eb0d.tar.gz
iced-0172cac9493c470f46789ae096d349e36459eb0d.tar.bz2
iced-0172cac9493c470f46789ae096d349e36459eb0d.zip
Merge pull request #2172 from GyulyVGC/master
Added `text_shaping` method 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