This constructor is an implementation detail. Do not use this.
Clones the layout.
Disposes the object, allowing it to clean up all of its memory. You need to call this for every object that you don't use anymore and hasn't already been disposed.
Adds a new component to the end of the layout.
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.
Scrolls down all the components in the layout that can be scrolled down.
Scrolls up all the components in the layout that can be scrolled up.
Encodes the settings of the layout as JSON.
Calculates and returns the layout's state based on the timer provided.
Calculates the layout's state based on the timer provided and encodes it as JSON. You can use this to visualize all of the components of a layout.
Updates the layout's state based on the timer provided.
Updates the layout's state based on the timer provided and encodes it as JSON.
Allows for scoped usage of the object. The object is guaranteed to get disposed once this function returns. You are free to dispose the object early yourself anywhere within the scope. The scope's return value gets carried to the outside of this function.
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.
Creates a new empty layout with no components.
Attempts to parse a layout from a given file. null is returned it couldn't be parsed. This will not close the file descriptor / handle.
Parses a layout from the given JSON description of its settings. null is returned if it couldn't be parsed.
Parses a layout saved by the original LiveSplit. This is lossy, as not everything can be converted completely. null is returned if it couldn't be parsed at all.
Generated using TypeDoc
A Layout allows you to combine multiple components together to visualize a variety of information the runner is interested in.