Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions widget/src/tooltip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ where
self
}

/// Sets the [`text::Shaping`] strategy of the [`Tooltip`].
pub fn text_shaping(mut self, shaping: text::Shaping) -> Self {
Comment thread
hecrj marked this conversation as resolved.
self.tooltip = self.tooltip.shaping(shaping);
self
}

/// Sets the font of the [`Tooltip`].
///
/// [`Font`]: Renderer::Font
Expand Down