[−][src]Struct imgui::Image
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
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]
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>,