pub struct PlotItemStyle { /* private fields */ }Expand description
Common style overrides for plot items backed by ImPlotSpec.
This provides a stable high-level Rust entry point for ImPlot v0.18 item styling without exposing raw FFI structs at every call site.
Implementations§
Source§impl PlotItemStyle
impl PlotItemStyle
Sourcepub fn with_line_color(self, color: [f32; 4]) -> Self
pub fn with_line_color(self, color: [f32; 4]) -> Self
Override the plot item’s line color. Use the alpha channel for line transparency.
Sourcepub fn with_line_weight(self, weight: f32) -> Self
pub fn with_line_weight(self, weight: f32) -> Self
Override the plot item’s line width in pixels.
Sourcepub fn with_fill_color(self, color: [f32; 4]) -> Self
pub fn with_fill_color(self, color: [f32; 4]) -> Self
Override the plot item’s fill color.
Sourcepub fn with_fill_alpha(self, alpha: f32) -> Self
pub fn with_fill_alpha(self, alpha: f32) -> Self
Override the fill alpha multiplier used by filled regions and marker faces.
Sourcepub fn with_marker(self, marker: Marker) -> Self
pub fn with_marker(self, marker: Marker) -> Self
Override the marker type.
Sourcepub fn with_marker_size(self, size: f32) -> Self
pub fn with_marker_size(self, size: f32) -> Self
Override the marker size in pixels.
Sourcepub fn with_marker_line_color(self, color: [f32; 4]) -> Self
pub fn with_marker_line_color(self, color: [f32; 4]) -> Self
Override the marker outline color.
Sourcepub fn with_marker_fill_color(self, color: [f32; 4]) -> Self
pub fn with_marker_fill_color(self, color: [f32; 4]) -> Self
Override the marker fill color.
Trait Implementations§
Source§impl Clone for PlotItemStyle
impl Clone for PlotItemStyle
Source§fn clone(&self) -> PlotItemStyle
fn clone(&self) -> PlotItemStyle
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 Debug for PlotItemStyle
impl Debug for PlotItemStyle
Source§impl Default for PlotItemStyle
impl Default for PlotItemStyle
Source§fn default() -> PlotItemStyle
fn default() -> PlotItemStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for PlotItemStyle
impl PartialEq for PlotItemStyle
impl Copy for PlotItemStyle
impl StructuralPartialEq for PlotItemStyle
Auto Trait Implementations§
impl Freeze for PlotItemStyle
impl RefUnwindSafe for PlotItemStyle
impl Send for PlotItemStyle
impl Sync for PlotItemStyle
impl Unpin for PlotItemStyle
impl UnsafeUnpin for PlotItemStyle
impl UnwindSafe for PlotItemStyle
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