From 0620ffe7e1d4ec4d29f7e05be34099f0fc1cd494 Mon Sep 17 00:00:00 2001 From: Matthew <logicprojectsforfpgas@gmail.com> Date: Thu, 9 Jun 2022 16:16:06 -0600 Subject: [PATCH] Fixed TextureAtlas documentation --- src/widgets/texture_atlas.rs | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/widgets/texture_atlas.rs b/src/widgets/texture_atlas.rs index 9ea7375..07ef35c 100644 --- a/src/widgets/texture_atlas.rs +++ b/src/widgets/texture_atlas.rs @@ -29,25 +29,12 @@ pub struct TextureAtlasProps { } #[widget] -/// A widget that renders a nine-patch image background -/// -/// A nine-patch is a special type of image that's broken into nine parts: -/// -/// * Edges - Top, Bottom, Left, Right -/// * Corners - Top-Left, Top-Right, Bottom-Left, Bottom-Right -/// * Center -/// -/// Using these parts of an image, we can construct a scalable background and border -/// all from a single image. This is done by: -/// -/// * Stretching the edges (vertically for left/right and horizontally for top/bottom) -/// * Preserving the corners -/// * Scaling the center to fill the remaining space -/// -/// +/// A widget that renders a texture atlas +/// Allows for the use of a partial square of an image such as in a sprite sheet +/// /// # Props /// -/// __Type:__ [`NinePatchProps`] +/// __Type:__ [`TextureAtlasProps`] /// /// | Common Prop | Accepted | /// | :---------: | :------: | -- GitLab