pub struct Plot3DItemStyle { /* private fields */ }Expand description
Common style overrides for plot items backed by ImPlot3DSpec.
Implementations§
Source§impl Plot3DItemStyle
impl Plot3DItemStyle
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.
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: Marker3D) -> Self
pub fn with_marker(self, marker: Marker3D) -> 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 Plot3DItemStyle
impl Clone for Plot3DItemStyle
Source§fn clone(&self) -> Plot3DItemStyle
fn clone(&self) -> Plot3DItemStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Plot3DItemStyle
impl Debug for Plot3DItemStyle
Source§impl Default for Plot3DItemStyle
impl Default for Plot3DItemStyle
Source§fn default() -> Plot3DItemStyle
fn default() -> Plot3DItemStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for Plot3DItemStyle
impl PartialEq for Plot3DItemStyle
Source§fn eq(&self, other: &Plot3DItemStyle) -> bool
fn eq(&self, other: &Plot3DItemStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Plot3DItemStyle
impl StructuralPartialEq for Plot3DItemStyle
Auto Trait Implementations§
impl Freeze for Plot3DItemStyle
impl RefUnwindSafe for Plot3DItemStyle
impl Send for Plot3DItemStyle
impl Sync for Plot3DItemStyle
impl Unpin for Plot3DItemStyle
impl UnsafeUnpin for Plot3DItemStyle
impl UnwindSafe for Plot3DItemStyle
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