mod layout

Structs and Unions

Implementations

Functions

Creates a new Layout which only contains the content-viewport.

Creates a new Layout for content, legend, and time based on the passed screen_size, content size, and legend_height. content will be padded by content_padding_y in y-direction in its viewport-space (but its ViewportSource will stay the same). Will put the content on the left part of the screen (taking roughly 80%) and the legend on the right (taking roughly 20%).