[][src]Struct livesplit_core::component::graph::Settings

pub struct Settings {
    pub comparison_override: Option<String>,
    pub show_best_segments: bool,
    pub live_graph: bool,
    pub flip_graph: bool,
    pub behind_background_color: Color,
    pub ahead_background_color: Color,
    pub grid_lines_color: Color,
    pub graph_lines_color: Color,
    pub partial_fill_color: Color,
    pub complete_fill_color: Color,
    pub height: u32,
}

The Settings for this component.

Fields

comparison_override: Option<String>

The comparison chosen. Uses the Timer's current comparison if set to None.

show_best_segments: bool

Specifies if the best segments should be colored with the layout's best segment color.

live_graph: bool

Specifies if the graph should automatically adjust to all the changes automatically. If this is deactivated, the only changes to the graph happen whenever the current segment changes.

flip_graph: bool

Flips the graph. If set to false, the times ahead of the comparison are at bottom and the times behind are at the top. This settings flips it.

behind_background_color: Color

The background color shown for the region behind the graph that shows the times that are behind the comparison.

ahead_background_color: Color

The background color shown for the region behind the graph that shows the times that are ahead of the comparison.

grid_lines_color: Color

The color of the grid lines on the graph.

graph_lines_color: Color

The color of the lines connecting all the graph's points.

partial_fill_color: Color

The color of the polygon connecting all the graph's points. The partial fill color is only used for live changes.

complete_fill_color: Color

The color of the polygon connecting all the graph's points.

height: u32

The height of the graph.

Trait Implementations

impl Default for Settings[src]

impl Clone for Settings[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Serialize for Settings[src]

impl<'de> Deserialize<'de> for Settings where
    Settings: Default
[src]

Auto Trait Implementations

impl Send for Settings

impl Sync for Settings

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.