diff options
author | 2024-01-02 22:42:26 +0100 | |
---|---|---|
committer | 2024-01-02 22:42:26 +0100 | |
commit | 0172cac9493c470f46789ae096d349e36459eb0d (patch) | |
tree | 889b582548ca123ebb94b72af507d523f075c09b /widget | |
parent | dd249a1d11c68b8fee1828d58bae158946ee2ebd (diff) | |
parent | 9bbf7822e9eae4c7d0b41c2eea14e261119b1d23 (diff) | |
download | iced-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.rs | 6 |
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 |