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

pub struct Settings {
    pub background: ListGradient,
    pub visual_split_count: usize,
    pub split_preview_count: usize,
    pub show_thin_separators: bool,
    pub separator_last_split: bool,
    pub always_show_last_split: bool,
    pub fill_with_blank_space: bool,
    pub display_two_rows: bool,
    pub current_split_gradient: Gradient,
    pub show_column_labels: bool,
    pub columns: Vec<ColumnSettings>,
}

The Settings for this component.

Fields

background: ListGradient

The background shown behind the splits.

visual_split_count: usize

The amount of segments to show in the list at any given time. If this is set to 0, all the segments are shown. If this is set to a number lower than the total amount of segments, only a certain window of all the segments is shown. This window can scroll up or down.

split_preview_count: usize

If there's more segments than segments that are shown, the window showing the segments automatically scrolls up and down when the current segment changes. This count determines the minimum number of future segments to be shown in this scrolling window when it automatically scrolls.

show_thin_separators: bool

Specifies whether thin separators should be shown between the individual segments shown by the component.

separator_last_split: bool

If the last segment is to always be shown, this determines whether to show a more pronounced separator in front of the last segment, if it is not directly adjacent to the segment shown right before it in the scrolling window.

always_show_last_split: bool

If not every segment is shown in the scrolling window of segments, then this determines whether the final segment is always to be shown, as it contains valuable information about the total duration of the chosen comparison, which is often the runner's Personal Best.

fill_with_blank_space: bool

If there's not enough segments to fill the list of splits, this option allows filling the remaining splits with blank space in order to maintain the visual split count specified. Otherwise the visual split count is reduced to the actual amount of segments.

display_two_rows: bool

Specifies whether to display each split as two rows, with the segment name being in one row and the times being in the other.

current_split_gradient: Gradient

The gradient to show behind the current segment as an indicator of it being the current segment.

show_column_labels: bool

Specifies whether to show the names of the columns above the splits.

columns: Vec<ColumnSettings>

The columns to show on the splits. These can be configured in various way to show split times, segment times, deltas and so on. The columns are defined from right to left.

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.