[−][src]Struct livesplit_core::layout::GeneralSettings
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(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for GeneralSettings where
GeneralSettings: Default,
[src]
GeneralSettings: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for GeneralSettings
impl Sync for GeneralSettings
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
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>,
T: Parameter<Self>,
Sets value
as a parameter of self
.