[−][src]Struct imgui::Image
Represent an image about to be drawn.
See Ui::image
.
Create your image using the builder pattern then Image::build
it.
Methods
impl<'ui> Image<'ui>
[src]
pub fn new<S>(_: &Ui<'ui>, texture_id: ImTexture, size: S) -> Self where
S: Into<ImVec2>,
[src]
S: Into<ImVec2>,
pub fn size<T: Into<ImVec2>>(self, size: T) -> Self
[src]
Set size (default based on texture)
pub fn uv0<T: Into<ImVec2>>(self, uv0: T) -> Self
[src]
Set uv0 (default [0.0, 0.0]
)
pub fn uv1<T: Into<ImVec2>>(self, uv1: T) -> Self
[src]
Set uv1 (default [1.0, 1.0]
)
pub fn tint_col<T: Into<ImVec4>>(self, tint_col: T) -> Self
[src]
Set tint color (default: no tint color)
pub fn border_col<T: Into<ImVec4>>(self, border_col: T) -> Self
[src]
Set border color (default: no border)
pub fn build(self)
[src]
Draw image where the cursor currently is
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,