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

pub struct Settings {
    pub background: Gradient,
    pub text_color: Option<Color>,
    pub show_game_name: bool,
    pub show_category_name: bool,
    pub show_finished_runs_count: bool,
    pub show_attempt_count: bool,
    pub text_alignment: Alignment,
    pub display_as_single_line: bool,
    pub display_game_icon: bool,
    pub show_region: bool,
    pub show_platform: bool,
    pub show_variables: bool,
}

The Settings for this component.

Fields

background: Gradient

The background shown behind the component.

text_color: Option<Color>

The color of the title text. If None is specified, the color is taken from the layout.

show_game_name: bool

Specifies whether the game name should be part of the title that is being shown.

show_category_name: bool

Specifies whether the category name should be part of the title that is being shown.

show_finished_runs_count: bool

Specifies whether the amount of successfully finished attempts should be shown.

show_attempt_count: bool

Specifies whether the total amount of attempts should be shown.

text_alignment: Alignment

Specifies the alignment of the title.

display_as_single_line: bool

Specifies if the title should be shown as a single line, instead of being separated into one line for the game name and one for the category name.

display_game_icon: bool

Specifies whether the game's icon should be shown, in case there is a game icon stored in the Run.

show_region: bool

The category name can be extended by additional information. This extends it by the game's region, if it is provided by the run's metadata.

show_platform: bool

The category name can be extended by additional information. This extends it by the platform the game is being played on, if it is provided by the run's metadata.

show_variables: bool

The category name can be extended by additional information. This extends it by additional variables provided by the run's metadata.

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.