Enum PlotColorElement

Source
#[repr(u32)]
pub enum PlotColorElement {
Show 24 variants Line = 0, Fill = 1, MarkerOutline = 2, MarkerFill = 3, ErrorBar = 4, FrameBg = 5, PlotBg = 6, PlotBorder = 7, LegendBackground = 8, LegendBorder = 9, LegendText = 10, TitleText = 11, InlayText = 12, XAxis = 13, XAxisGrid = 14, YAxis = 15, YAxisGrid = 16, YAxis2 = 17, YAxisGrid2 = 18, YAxis3 = 19, YAxisGrid3 = 20, Selection = 21, Crosshairs = 23, Query = 22,
}
Expand description

Colorable plot elements. These are called “ImPlotCol” in ImPlot itself, but I found that name somewhat confusing because we are not referring to colors, but which thing can be colored - hence I added the “Element”.

Variants§

§

Line = 0

Plot line/outline color (defaults to next unused color in current colormap)

§

Fill = 1

Plot fill color for bars (defaults to the current line color)

§

MarkerOutline = 2

Marker outline color (defaults to the current line color)

§

MarkerFill = 3

Marker fill color (defaults to the current line color)

§

ErrorBar = 4

Error bar color (defaults to text color)

§

FrameBg = 5

Plot frame background color (defaults to FRAME_BG)

§

PlotBg = 6

Plot area background color (defaults to WINDOW_BG)

§

PlotBorder = 7

Plot area border color (defaults to text color)

§

LegendBackground = 8

Legend background color (defaults to ImGuiCol_PopupBg)

§

LegendBorder = 9

Legend border color (defaults to ImPlotCol_PlotBorder)

§

LegendText = 10

Legend text color (defaults to ImPlotCol_InlayText)

§

TitleText = 11

Plot title text color (defaults to ImGuiCol_Text)

§

InlayText = 12

Color of text appearing inside of plots (defaults to ImGuiCol_Text)

§

XAxis = 13

X-axis label and tick lables color (defaults to ImGuiCol_Text)

§

XAxisGrid = 14

X-axis grid color (defaults to 25% ImPlotCol_XAxis)

§

YAxis = 15

Y-axis label and tick labels color (defaults to ImGuiCol_Text)

§

YAxisGrid = 16

Y-axis grid color (defaults to 25% ImPlotCol_YAxis)

§

YAxis2 = 17

2nd y-axis label and tick labels color (defaults to ImGuiCol_Text)

§

YAxisGrid2 = 18

2nd y-axis grid/label color (defaults to 25% ImPlotCol_YAxis2)

§

YAxis3 = 19

3rd y-axis label and tick labels color (defaults to ImGuiCol_Text)

§

YAxisGrid3 = 20

3rd y-axis grid/label color (defaults to 25% ImPlotCol_YAxis3)

§

Selection = 21

Box-selection color (defaults to yellow)

§

Crosshairs = 23

crosshairs color (defaults to ImPlotCol_PlotBorder)

§

Query = 22

Box-query color (defaults to green)

Trait Implementations§

Source§

impl Clone for PlotColorElement

Source§

fn clone(&self) -> PlotColorElement

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PlotColorElement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for PlotColorElement

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.