Struct suzy::platform::opengl::SlicedImage[][src]

pub struct SlicedImage { /* fields omitted */ }

A common graphic used for user interfaces, a sliced image is defined by fixed-sized corners and an inner area which stretches to fill the graphic area.

See the Wikipedia article on 9-slice scaling for more information.

Implementations

impl SlicedImage[src]

pub fn new() -> Self[src]

Create a new SlicedImage.

pub fn set_image<P>(&mut self, texture: Texture, padding: &P) where
    P: Padding2d
[src]

Set the texture used by this graphic. The given padding describes the sliced area.

Trait Implementations

impl Default for SlicedImage[src]

impl Graphic<OpenGlRenderPlatform> for SlicedImage[src]

impl Rect for SlicedImage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynRect for T where
    T: Rect
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.