Merge pull request #2172 from GyulyVGC/master
Added `text_shaping` method to `Tooltip`
This commit is contained in:
commit
0172cac949
1 changed files with 6 additions and 0 deletions
|
|
@ -64,6 +64,12 @@ where
|
||||||
self
|
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`].
|
/// Sets the font of the [`Tooltip`].
|
||||||
///
|
///
|
||||||
/// [`Font`]: Renderer::Font
|
/// [`Font`]: Renderer::Font
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue