pub struct PlotImage { /* private fields */ }
Expand description
An image in the plot.
Implementations
sourceimpl PlotImage
impl PlotImage
sourcepub fn new(
texture_id: impl Into<TextureId>,
center_position: PlotPoint,
size: impl Into<Vec2>
) -> PlotImage
pub fn new(
texture_id: impl Into<TextureId>,
center_position: PlotPoint,
size: impl Into<Vec2>
) -> PlotImage
Create a new image with position and size in plot coordinates.
sourcepub fn uv(self, uv: impl Into<Rect>) -> PlotImage
pub fn uv(self, uv: impl Into<Rect>) -> PlotImage
Select UV range. Default is (0,0) in top-left, (1,1) bottom right.
sourcepub fn bg_fill(self, bg_fill: impl Into<Color32>) -> PlotImage
pub fn bg_fill(self, bg_fill: impl Into<Color32>) -> PlotImage
A solid color to put behind the image. Useful for transparent images.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PlotImage
impl Send for PlotImage
impl Sync for PlotImage
impl Unpin for PlotImage
impl UnwindSafe for PlotImage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more