#[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
impl Clone for PlotColorElement
Source§fn clone(&self) -> PlotColorElement
fn clone(&self) -> PlotColorElement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more