pub struct PlotItemArrayStyle<'a> { /* private fields */ }Expand description
One-shot array-backed item style overrides for the next plot submission.
This mirrors the new per-item array fields added to ImPlotSpec without storing
borrowed pointers beyond the closure passed to with_next_plot_item_array_style.
Implementations§
Source§impl<'a> PlotItemArrayStyle<'a>
impl<'a> PlotItemArrayStyle<'a>
Sourcepub fn with_line_colors(self, colors: &'a [u32]) -> Self
pub fn with_line_colors(self, colors: &'a [u32]) -> Self
Override per-index line colors using Dear ImGui packed colors (ImU32 / ABGR).
Sourcepub fn with_fill_colors(self, colors: &'a [u32]) -> Self
pub fn with_fill_colors(self, colors: &'a [u32]) -> Self
Override per-index fill colors using Dear ImGui packed colors (ImU32 / ABGR).
Sourcepub fn with_marker_sizes(self, sizes: &'a [f32]) -> Self
pub fn with_marker_sizes(self, sizes: &'a [f32]) -> Self
Override per-index marker sizes in pixels.
Sourcepub fn with_marker_line_colors(self, colors: &'a [u32]) -> Self
pub fn with_marker_line_colors(self, colors: &'a [u32]) -> Self
Override per-index marker outline colors using Dear ImGui packed colors (ImU32 / ABGR).
Sourcepub fn with_marker_fill_colors(self, colors: &'a [u32]) -> Self
pub fn with_marker_fill_colors(self, colors: &'a [u32]) -> Self
Override per-index marker fill colors using Dear ImGui packed colors (ImU32 / ABGR).
Trait Implementations§
Source§impl<'a> Clone for PlotItemArrayStyle<'a>
impl<'a> Clone for PlotItemArrayStyle<'a>
Source§fn clone(&self) -> PlotItemArrayStyle<'a>
fn clone(&self) -> PlotItemArrayStyle<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PlotItemArrayStyle<'a>
impl<'a> Debug for PlotItemArrayStyle<'a>
Source§impl<'a> Default for PlotItemArrayStyle<'a>
impl<'a> Default for PlotItemArrayStyle<'a>
Source§fn default() -> PlotItemArrayStyle<'a>
fn default() -> PlotItemArrayStyle<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for PlotItemArrayStyle<'a>
impl<'a> PartialEq for PlotItemArrayStyle<'a>
impl<'a> StructuralPartialEq for PlotItemArrayStyle<'a>
Auto Trait Implementations§
impl<'a> Freeze for PlotItemArrayStyle<'a>
impl<'a> RefUnwindSafe for PlotItemArrayStyle<'a>
impl<'a> Send for PlotItemArrayStyle<'a>
impl<'a> Sync for PlotItemArrayStyle<'a>
impl<'a> Unpin for PlotItemArrayStyle<'a>
impl<'a> UnsafeUnpin for PlotItemArrayStyle<'a>
impl<'a> UnwindSafe for PlotItemArrayStyle<'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