[][src]Struct pixel_widgets::draw::Image

pub struct Image {
    pub texture: usize,
    pub texcoords: Rectangle,
    pub size: Rectangle,
    // some fields omitted
}

Reference to an image loaded by the Ui.

Fields

texture: usize

The texture atlas identifier that this image resides in.

texcoords: Rectangle

The texcoords within the atlas that the image spans.

size: Rectangle

The physical size in pixels of the image.

Trait Implementations

impl Clone for Image[src]

impl Debug for Image[src]

impl<'a, T: 'a> IntoNode<'a, T> for &'a Image[src]

impl<'a, T: 'a> Widget<'a, T> for &'a Image[src]

Auto Trait Implementations

impl RefUnwindSafe for Image

impl Send for Image

impl Sync for Image

impl Unpin for Image

impl UnwindSafe for Image

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Clone + Any

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

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

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.