From 6ba2461445e68127ef686d2b9d79eb7a09f42a86 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 15 Dec 2019 06:28:44 +0100 Subject: Update `Svg` documentation --- native/src/widget/svg.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'native') diff --git a/native/src/widget/svg.rs b/native/src/widget/svg.rs index 42f2ebdf..9580f195 100644 --- a/native/src/widget/svg.rs +++ b/native/src/widget/svg.rs @@ -1,4 +1,4 @@ -//! Display an icon. +//! Display vector graphics in your application. use crate::{layout, Element, Hasher, Layout, Length, Point, Size, Widget}; use std::{ @@ -6,7 +6,14 @@ use std::{ 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, -- cgit