[][src]Struct livesplit_core::GeneralLayoutSettings

pub struct GeneralLayoutSettings {
    pub direction: LayoutDirection,
    pub background: Gradient,
    pub best_segment_color: Color,
    pub ahead_gaining_time_color: Color,
    pub ahead_losing_time_color: Color,
    pub behind_gaining_time_color: Color,
    pub behind_losing_time_color: Color,
    pub not_running_color: Color,
    pub personal_best_color: Color,
    pub paused_color: Color,
    pub thin_separators_color: Color,
    pub separators_color: Color,
    pub text_color: Color,
}

The general settings of the layout that apply to all components.

Fields

direction: LayoutDirection

The direction which the components are laid out in.

background: Gradient

The background to show behind the layout.

best_segment_color: Color

The color to use for when the runner achieved a best segment.

ahead_gaining_time_color: Color

The color to use for when the runner is ahead of the comparison and is gaining even more time.

ahead_losing_time_color: Color

The color to use for when the runner is ahead of the comparison, but is losing time.

behind_gaining_time_color: Color

The color to use for when the runner is behind the comparison, but is gaining back time.

behind_losing_time_color: Color

The color to use for when the runner is behind the comparison and is losing even more time.

not_running_color: Color

The color to use for when there is no active attempt.

personal_best_color: Color

The color to use for when the runner achieved a new Personal Best.

paused_color: Color

The color to use for when the timer is paused.

thin_separators_color: Color

The color of thin separators.

separators_color: Color

The color of normal separators.

text_color: Color

The text color to use for text that doesn't specify its own color.

Methods

impl GeneralSettings[src]

pub fn settings_description(&self) -> SettingsDescription[src]

Accesses a generic description of the general settings available for the layout and their current values.

pub fn set_value(&mut self, index: usize, value: Value)[src]

Sets a setting's value by its index to the given value.

Panics

This panics if the type of the value to be set is not compatible with the type of the setting's value. A panic can also occur if the index of the setting provided is out of bounds.

Trait Implementations

impl Clone for GeneralSettings[src]

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

Performs copy-assignment from source. Read more

impl Default for GeneralSettings[src]

impl Serialize for GeneralSettings[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.