Browse Source

Fix doclinks

pull/1452/head
Emil Ernerfeldt 3 years ago
parent
commit
dfd6a91cb0
  1. 2
      egui/src/widget_text.rs
  2. 2
      epaint/src/text/text_layout_types.rs

2
egui/src/widget_text.rs

@ -345,7 +345,7 @@ pub enum WidgetText {
///
/// Only [`LayoutJob::text`] and [`LayoutJob::sections`] are guaranteed to be respected.
///
/// [`LayoutJob::wrap_width`], [`LayoutJob::halign`], [`LayoutJob::justify`]
/// [`TextWrapping::max_width`](epaint::text::TextWrapping::max_width), [`LayoutJob::halign`], [`LayoutJob::justify`]
/// and [`LayoutJob::first_row_min_height`] will likely be determined by the [`crate::Layout`]
/// of the [`Ui`] the widget is placed in.
/// If you want all parts of the [`LayoutJob`] respected, then convert it to a

2
epaint/src/text/text_layout_types.rs

@ -65,7 +65,7 @@ pub struct LayoutJob {
/// How to horizontally align the text (`Align::LEFT`, `Align::Center`, `Align::RIGHT`).
pub halign: Align,
/// Justify text so that word-wrapped rows fill the whole [`Self::wrap_width`]
/// Justify text so that word-wrapped rows fill the whole [`TextWrapping::max_width`]
pub justify: bool,
}

Loading…
Cancel
Save