pub struct Image<'ui> { /* private fields */ }
Expand description
Image draw list primitive, not to be confused with the widget
imgui::Image
.
Implementations§
Source§impl<'ui> Image<'ui>
impl<'ui> Image<'ui>
Sourcepub fn new(
draw_list: &'ui DrawListMut<'_>,
texture_id: TextureId,
p_min: impl Into<Vector2<f32>>,
p_max: impl Into<Vector2<f32>>,
) -> Image<'ui>
pub fn new( draw_list: &'ui DrawListMut<'_>, texture_id: TextureId, p_min: impl Into<Vector2<f32>>, p_max: impl Into<Vector2<f32>>, ) -> Image<'ui>
Typically constructed by DrawListMut::add_image
Sourcepub fn uv_min(self, uv_min: impl Into<Vector2<f32>>) -> Image<'ui>
pub fn uv_min(self, uv_min: impl Into<Vector2<f32>>) -> Image<'ui>
Set uv_min (default [0.0, 0.0]
)
Sourcepub fn uv_max(self, uv_max: impl Into<Vector2<f32>>) -> Image<'ui>
pub fn uv_max(self, uv_max: impl Into<Vector2<f32>>) -> Image<'ui>
Set uv_max (default [1.0, 1.0]
)
Auto Trait Implementations§
impl<'ui> Freeze for Image<'ui>
impl<'ui> !RefUnwindSafe for Image<'ui>
impl<'ui> !Send for Image<'ui>
impl<'ui> !Sync for Image<'ui>
impl<'ui> Unpin for Image<'ui>
impl<'ui> !UnwindSafe for Image<'ui>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more