Struct imgui::Image[][src]

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

Builder for an image widget

Implementations

impl Image[src]

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

Creates a new image builder with the given texture and size

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

Sets the image size

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

Sets uv0 (default [0.0, 0.0])

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

Sets uv1 (default [1.0, 1.0])

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

Sets the tint color (default: no tint color)

pub const fn border_col(mut self: 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

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.