[−][src]Struct livesplit_core::layout::Layout
A Layout allows you to combine multiple components together to visualize a variety of information the runner is interested in.
Fields
components: Vec<Component>
All of the layout's components.
Methods
impl Layout
[src]
pub fn new() -> Self
[src]
Creates a new empty layout with no components.
pub fn default_layout() -> Self
[src]
Creates a new default layout that contains a default set of components in order to provide a good default layout for runners. Which components are provided by this and how they are configured may change in the future.
pub fn from_settings(layout_settings: LayoutSettings) -> Self
[src]
Creates a new layout from the layout settings of the whole layout.
pub fn general_settings(&self) -> &GeneralSettings
[src]
Accesses the general settings of the layout that apply to all components.
pub fn general_settings_mut(&mut self) -> &mut GeneralSettings
[src]
Grants mutable access to the general settings of the layout that apply to all components.
pub fn push<C: Into<Component>>(&mut self, component: C)
[src]
Adds a new component to the end of the layout.
pub fn state(&mut self, timer: &Timer) -> LayoutState
[src]
Calculates the layout's state based on the timer provided. You can use this to visualize all of the components of a layout.
pub fn settings(&self) -> LayoutSettings
[src]
Accesses the settings of the layout.
pub fn scroll_up(&mut self)
[src]
Scrolls up all the components in the layout that can be scrolled up.
pub fn scroll_down(&mut self)
[src]
Scrolls down all the components in the layout that can be scrolled down.
pub fn remount(&mut self)
[src]
Remounts all the components as if they were freshly initialized. Some components may only provide some information whenever it changes or when their state is first queried. Remounting returns this information again, whenever the layout's state is queried the next time.
Trait Implementations
impl Clone for Layout
[src]
fn clone(&self) -> Layout
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Layout
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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<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
.