dear_implot/
plot.rs

1// Plot flags and configuration
2// This module contains plot and axis flags for configuration
3
4// Plot flags for configuration
5bitflags::bitflags! {
6    /// Flags for plot configuration
7    pub struct PlotFlags: u32 {
8        const NONE = 0;
9        const NO_TITLE = 1 << 0;
10        const NO_LEGEND = 1 << 1;
11        const NO_MOUSE_POS = 1 << 2;
12        const NO_HIGHLIGHT = 1 << 3;
13        const NO_CHILD = 1 << 4;
14        const EQUAL = 1 << 5;
15        const Y_AXIS_2 = 1 << 6;
16        const Y_AXIS_3 = 1 << 7;
17        const QUERY = 1 << 8;
18        const CROSSHAIRS = 1 << 9;
19        const ANTI_ALIASED = 1 << 10;
20        const CANVAS_ONLY = 1 << 11;
21    }
22}
23
24// Axis flags
25bitflags::bitflags! {
26    /// Flags for axis configuration
27    pub struct AxisFlags: u32 {
28        const NONE = 0;
29        const NO_LABEL = 1 << 0;
30        const NO_GRID_LINES = 1 << 1;
31        const NO_TICK_MARKS = 1 << 2;
32        const NO_TICK_LABELS = 1 << 3;
33        const LOG_SCALE = 1 << 4;
34        const TIME = 1 << 5;
35        const INVERT = 1 << 6;
36        const LOCK_MIN = 1 << 7;
37        const LOCK_MAX = 1 << 8;
38        const LOCK = Self::LOCK_MIN.bits() | Self::LOCK_MAX.bits();
39    }
40}