Skip to content

Commit

Permalink
Update Svg documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Dec 15, 2019
1 parent 09707f2 commit 6ba2461
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions native/src/widget/svg.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
//! Display an icon.
//! Display vector graphics in your application.
use crate::{layout, Element, Hasher, Layout, Length, Point, Size, Widget};

use std::{
hash::Hash,
path::{Path, PathBuf},
};

/// A simple icon_loader widget.
/// A vector graphics image.
///
/// An [`Svg`] image resizes smoothly without losing any quality.
///
/// [`Svg`] images can have a considerable rendering cost when resized,
/// specially when they are complex.
///
/// [`Svg`]: struct.Svg.html
#[derive(Debug, Clone)]
pub struct Svg {
handle: Handle,
Expand Down
8 changes: 4 additions & 4 deletions src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ pub mod widget {
}

pub mod svg {
//! Display icons in your user interface.
pub use iced_winit::svg::Svg;
//! Display vector graphics in your user interface.
pub use iced_winit::svg::{Handle, Svg};
}

pub use iced_winit::{Checkbox, Radio, Text};

#[doc(no_inline)]
pub use {
button::Button, image::Image, scrollable::Scrollable,
slider::Slider, svg::Svg, text_input::TextInput,
button::Button, image::Image, scrollable::Scrollable, slider::Slider,
svg::Svg, text_input::TextInput,
};

/// A container that distributes its contents vertically.
Expand Down

0 comments on commit 6ba2461

Please sign in to comment.