Skip to content
Snippets Groups Projects
Commit 0620ffe7 authored by Matthew's avatar Matthew
Browse files

Fixed TextureAtlas documentation

parent ac87e79f
No related branches found
No related tags found
No related merge requests found
...@@ -29,25 +29,12 @@ pub struct TextureAtlasProps { ...@@ -29,25 +29,12 @@ pub struct TextureAtlasProps {
} }
#[widget] #[widget]
/// A widget that renders a nine-patch image background /// A widget that renders a texture atlas
/// /// Allows for the use of a partial square of an image such as in a sprite sheet
/// 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
///
///
/// # Props /// # Props
/// ///
/// __Type:__ [`NinePatchProps`] /// __Type:__ [`TextureAtlasProps`]
/// ///
/// | Common Prop | Accepted | /// | Common Prop | Accepted |
/// | :---------: | :------: | /// | :---------: | :------: |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment