[][src]Struct imgui::Image

#[must_use]pub struct Image { /* fields omitted */ }

Builder for an image widget

Implementations

impl Image[src]

pub fn new(texture_id: TextureId, size: [f32; 2]) -> Image[src]

Creates a new image builder with the given texture and size

pub fn size(self, size: [f32; 2]) -> Self[src]

Sets the image size

pub fn uv0(self, uv0: [f32; 2]) -> Self[src]

Sets uv0 (default [0.0, 0.0])

pub fn uv1(self, uv1: [f32; 2]) -> Self[src]

Sets uv1 (default [1.0, 1.0])

pub fn tint_col(self, tint_col: [f32; 4]) -> Self[src]

Sets the tint color (default: no tint color)

pub fn border_col(self, border_col: [f32; 4]) -> Self[src]

Sets the border color (default: no border)

pub fn build(self, _: &Ui)[src]

Builds the image

Trait Implementations

impl Clone for Image[src]

impl Copy for Image[src]

impl Debug for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

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.