Enum StyleVar

Source
#[repr(u32)]
pub enum StyleVar {
Show 27 variants LineWeight = 0, Marker = 1, MarkerSize = 2, MarkerWeight = 3, FillAlpha = 4, ErrorBarSize = 5, ErrorBarWeight = 6, DigitalBitHeight = 7, DigitalBitGap = 8, PlotBorderSize = 9, MinorAlpha = 10, MajorTickLen = 11, MinorTickLen = 12, MajorTickSize = 13, MinorTickSize = 14, MajorGridSize = 15, MinorGridSize = 16, PlotPadding = 17, LabelPadding = 18, LegendPadding = 19, LegendInnerPadding = 20, LegendSpacing = 21, MousePosPadding = 22, AnnotationPadding = 23, FitPadding = 24, PlotDefaultSize = 25, PlotMinSize = 26,
}
Expand description

Style variable choice, as in “which thing will be affected by a style setting”.

Variants§

§

LineWeight = 0

f32, line weight in pixels

§

Marker = 1

u32, marker specification

§

MarkerSize = 2

f32, marker size in pixels (roughly the marker’s “radius”)

§

MarkerWeight = 3

f32, outline weight of markers in pixels

§

FillAlpha = 4

f32, alpha modifier applied to all plot item fills

§

ErrorBarSize = 5

f32, error bar whisker width in pixels

§

ErrorBarWeight = 6

f32, error bar whisker weight in pixels

§

DigitalBitHeight = 7

f32, digital channels bit height (at 1) in pixels

§

DigitalBitGap = 8

f32, digital channels bit padding gap in pixels

§

PlotBorderSize = 9

f32, thickness of border around plot area

§

MinorAlpha = 10

f32, alpha multiplier applied to minor axis grid lines

§

MajorTickLen = 11

ImVec2, major tick lengths for X and Y axes

§

MinorTickLen = 12

ImVec2, minor tick lengths for X and Y axes

§

MajorTickSize = 13

ImVec2, line thickness of major ticks

§

MinorTickSize = 14

ImVec2, line thickness of minor ticks

§

MajorGridSize = 15

ImVec2, line thickness of major grid lines

§

MinorGridSize = 16

ImVec2, line thickness of minor grid lines

§

PlotPadding = 17

ImVec2, padding between widget frame and plot area and/or labels

§

LabelPadding = 18

ImVec2, padding between axes labels, tick labels, and plot edge

§

LegendPadding = 19

ImVec2, legend padding from top-left of plot

§

LegendInnerPadding = 20

ImVec2, legend inner padding from legend edges

§

LegendSpacing = 21

ImVec2, spacing between legend entries

§

MousePosPadding = 22

ImVec2, padding between plot edge and interior info text

§

AnnotationPadding = 23

ImVec2, text padding around annotation labels

§

FitPadding = 24

ImVec2, additional fit padding as a percentage of the fit extents (e.g. ImVec2(0.1f,0.1f) adds 10% to the fit extents of X and Y)

§

PlotDefaultSize = 25

ImVec2, default size used when ImVec2(0,0) is passed to BeginPlot

§

PlotMinSize = 26

ImVec2, minimum size plot frame can be when shrunk

Trait Implementations§

Source§

impl Clone for StyleVar

Source§

fn clone(&self) -> StyleVar

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 StyleVar

Source§

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

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

impl Copy for StyleVar

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.