pub fn update_layout(cr: &Context, layout: &Layout)