Struct imgui::Image [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for Image
[src]
impl Send for Image
[src]
impl Sync for Image
[src]
impl Unpin for Image
[src]
impl UnwindSafe for Image
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,