[−][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(_: &Ui<'ui>, texture_id: TextureId, size: [f32; 2]) -> Self
[src]
pub fn size(self, size: [f32; 2]) -> Self
[src]
Set size (default based on texture)
pub fn uv0(self, uv0: [f32; 2]) -> Self
[src]
Set uv0 (default [0.0, 0.0]
)
pub fn uv1(self, uv1: [f32; 2]) -> Self
[src]
Set uv1 (default [1.0, 1.0]
)
pub fn tint_col(self, tint_col: [f32; 4]) -> Self
[src]
Set tint color (default: no tint color)
pub fn border_col(self, border_col: [f32; 4]) -> Self
[src]
Set border color (default: no border)
pub fn build(self)
[src]
Draw image where the cursor currently is
Auto Trait Implementations
impl<'ui> !Send for Image<'ui>
impl<'ui> Unpin for Image<'ui>
impl<'ui> !Sync for Image<'ui>
impl<'ui> !UnwindSafe for Image<'ui>
impl<'ui> !RefUnwindSafe for Image<'ui>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,