Function typeset::fix

source ·
pub fn fix(layout: Box<Layout>) -> Box<Layout>
Expand description

Constructs a new Fix layout.

Fix layouts are modal layouts that will prevent compositions under them from being broken into newlines during rendering.

Examples

use typeset::{text, comp, fix};

let layout = fix(comp(text("foo"), text("bar"), false, false));