Fix links in `iced_native::Widget`

This commit is contained in:
Héctor Ramón Jiménez 2019-11-24 10:18:26 +01:00
parent f92f5c3eca
commit 7a8a79cd37
1 changed files with 5 additions and 4 deletions

View File

@ -83,9 +83,9 @@ where
/// This [`Node`] is used by the runtime to compute the [`Layout`] of the /// This [`Node`] is used by the runtime to compute the [`Layout`] of the
/// user interface. /// user interface.
/// ///
/// [`Node`]: ../struct.Node.html /// [`Node`]: ../layout/struct.Node.html
/// [`Widget`]: trait.Widget.html /// [`Widget`]: trait.Widget.html
/// [`Layout`]: ../struct.Layout.html /// [`Layout`]: ../layout/struct.Layout.html
fn layout( fn layout(
&self, &self,
renderer: &Renderer, renderer: &Renderer,
@ -113,7 +113,7 @@ where
/// its value cannot affect the overall [`Layout`] of the user interface. /// its value cannot affect the overall [`Layout`] of the user interface.
/// ///
/// [`Widget`]: trait.Widget.html /// [`Widget`]: trait.Widget.html
/// [`Layout`]: ../struct.Layout.html /// [`Layout`]: ../layout/struct.Layout.html
/// [`Text`]: text/struct.Text.html /// [`Text`]: text/struct.Text.html
fn hash_layout(&self, state: &mut Hasher); fn hash_layout(&self, state: &mut Hasher);
@ -125,12 +125,13 @@ where
/// * the current cursor position /// * the current cursor position
/// * a mutable `Message` list, allowing the [`Widget`] to produce /// * a mutable `Message` list, allowing the [`Widget`] to produce
/// new messages based on user interaction. /// new messages based on user interaction.
/// * the `Renderer`
/// ///
/// By default, it does nothing. /// By default, it does nothing.
/// ///
/// [`Event`]: ../enum.Event.html /// [`Event`]: ../enum.Event.html
/// [`Widget`]: trait.Widget.html /// [`Widget`]: trait.Widget.html
/// [`Layout`]: ../struct.Layout.html /// [`Layout`]: ../layout/struct.Layout.html
fn on_event( fn on_event(
&mut self, &mut self,
_event: Event, _event: Event,