diff options
author | 2023-12-23 00:17:10 +0100 | |
---|---|---|
committer | 2023-12-23 00:17:10 +0100 | |
commit | 9bbf7822e9eae4c7d0b41c2eea14e261119b1d23 (patch) | |
tree | 889b582548ca123ebb94b72af507d523f075c09b /widget/src/tooltip.rs | |
parent | dd249a1d11c68b8fee1828d58bae158946ee2ebd (diff) | |
download | iced-9bbf7822e9eae4c7d0b41c2eea14e261119b1d23.tar.gz iced-9bbf7822e9eae4c7d0b41c2eea14e261119b1d23.tar.bz2 iced-9bbf7822e9eae4c7d0b41c2eea14e261119b1d23.zip |
added text::Shaping 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 |