[][src]Struct livesplit_core::layout::Layout

pub struct Layout {
    pub components: Vec<Component>,
    // some fields omitted
}

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_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Layout[src]

Auto Trait Implementations

impl Send for Layout

impl Sync for Layout

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[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.