Skip to main content

Plot3DItemStyled

Trait Plot3DItemStyled 

Source
pub trait Plot3DItemStyled: Sized {
    type Output;

    // Required method
    fn map_style<F>(self, f: F) -> Self::Output
       where F: FnOnce(&mut Plot3DItemStyle);

    // Provided methods
    fn with_style(self, style: Plot3DItemStyle) -> Self::Output { ... }
    fn with_line_color(self, color: [f32; 4]) -> Self::Output { ... }
    fn with_line_weight(self, weight: f32) -> Self::Output { ... }
    fn with_fill_color(self, color: [f32; 4]) -> Self::Output { ... }
    fn with_fill_alpha(self, alpha: f32) -> Self::Output { ... }
    fn with_marker(self, marker: Marker3D) -> Self::Output { ... }
    fn with_marker_size(self, size: f32) -> Self::Output { ... }
    fn with_marker_line_color(self, color: [f32; 4]) -> Self::Output { ... }
    fn with_marker_fill_color(self, color: [f32; 4]) -> Self::Output { ... }
}
Expand description

Shared ImPlot3D item-style builder methods for plot builders backed by ImPlot3DSpec.

Required Associated Types§

Source

type Output

The output type returned by style-building methods.

Required Methods§

Source

fn map_style<F>(self, f: F) -> Self::Output
where F: FnOnce(&mut Plot3DItemStyle),

Provided Methods§

Source

fn with_style(self, style: Plot3DItemStyle) -> Self::Output

Replace the entire item style override for this plot.

Source

fn with_line_color(self, color: [f32; 4]) -> Self::Output

Set the line color.

Source

fn with_line_weight(self, weight: f32) -> Self::Output

Set the line width in pixels.

Source

fn with_fill_color(self, color: [f32; 4]) -> Self::Output

Set the fill color.

Source

fn with_fill_alpha(self, alpha: f32) -> Self::Output

Set the fill alpha multiplier used for fills and marker faces.

Source

fn with_marker(self, marker: Marker3D) -> Self::Output

Set the marker type.

Source

fn with_marker_size(self, size: f32) -> Self::Output

Set the marker size in pixels.

Source

fn with_marker_line_color(self, color: [f32; 4]) -> Self::Output

Set the marker outline color.

Source

fn with_marker_fill_color(self, color: [f32; 4]) -> Self::Output

Set the marker fill color.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§