summaryrefslogtreecommitdiffstats
path: root/src/layout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/layout.rs b/src/layout.rs
index 481b4166..de284a43 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -5,13 +5,13 @@ use crate::{Point, Rectangle, Vector};
/// The computed bounds of a [`Node`] and its children.
///
/// This type is provided by the GUI runtime to [`Widget::on_event`] and
-/// [`Widget::draw`], describing the layout of the produced [`Node`] by
+/// [`Widget::draw`], describing the layout of the [`Node`] produced by
/// [`Widget::node`].
///
/// [`Node`]: struct.Node.html
-/// [`Widget::on_event`]: trait.Widget.html#method.on_event
-/// [`Widget::draw`]: trait.Widget.html#tymethod.draw
-/// [`Widget::node`]: trait.Widget.html#tymethod.node
+/// [`Widget::on_event`]: widget/trait.Widget.html#method.on_event
+/// [`Widget::draw`]: widget/trait.Widget.html#tymethod.draw
+/// [`Widget::node`]: widget/trait.Widget.html#tymethod.node
#[derive(Debug)]
pub struct Layout<'a> {
layout: &'a result::Layout,
@@ -39,9 +39,9 @@ impl<'a> Layout<'a> {
/// [`Node`].
///
/// [`Layout`]: struct.Layout.html
- /// [`Rectangle`]: ../../graphics/struct.Rectangle.html
+ /// [`Rectangle`]: struct.Rectangle.html
/// [`Node`]: struct.Node.html
- pub fn bounds(&self) -> Rectangle<f32> {
+ pub fn bounds(&self) -> Rectangle {
Rectangle {
x: self.position.x,
y: self.position.y,