pub struct ImagePlot<'a> { /* private fields */ }Expand description
Plot an image in plot coordinates using an ImTextureID
Implementations§
Source§impl<'a> ImagePlot<'a>
impl<'a> ImagePlot<'a>
pub fn new( label: &'a str, tex_id: ImTextureID, bounds_min: ImPlotPoint, bounds_max: ImPlotPoint, ) -> Self
pub fn with_uv(self, uv0: [f32; 2], uv1: [f32; 2]) -> Self
pub fn with_tint(self, tint: [f32; 4]) -> Self
pub fn with_flags(self, flags: ImageFlags) -> Self
pub fn validate(&self) -> Result<(), PlotError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ImagePlot<'a>
impl<'a> RefUnwindSafe for ImagePlot<'a>
impl<'a> Send for ImagePlot<'a>
impl<'a> Sync for ImagePlot<'a>
impl<'a> Unpin for ImagePlot<'a>
impl<'a> UnwindSafe for ImagePlot<'a>
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