fn new_clipping_view_box(scene: &mut Scene, viewport_size: Vector2I) -> SceneMetadata {
        let view_box = scene.view_box();
        let monochrome_color = scene.monochrome_color();
        scene.set_view_box(RectF::new(Vector2F::default(), viewport_size.to_f32()));
        SceneMetadata { view_box, monochrome_color }
    }
// FIXME(pcwalton): The fact that this mutates the scene is really ugly!
// Can we simplify this?
The fact that this mutates the scene is really ugly.
The fact that this mutates the scene is really ugly .
fn new_clipping_view_box(scene: &mut Scene, viewport_size: Vector2I) -> SceneMetadata {
        let view_box = scene.view_box();
        let monochrome_color = scene.monochrome_color();
        scene.set_view_box(RectF::new(Vector2F::default(), viewport_size.to_f32()));
        SceneMetadata { view_box, monochrome_color }
    }
fn new_clipping_view_box ( scene : & mut Scene , viewport_size : Vector2I ) -> SceneMetadata { let view_box = scene . view_box ( ) ; let monochrome_color = scene . monochrome_color ( ) ; scene . set_view_box ( RectF :: new ( Vector2F :: default ( ) , viewport_size . to_f32 ( ) ) ) ; SceneMetadata { view_box , monochrome_color } }
FIXME(pcwalton): The fact that this mutates the scene is really ugly!
FIXME ( pcwalton ) : The fact that this mutates the scene is really ugly!
scene
&mut Scene
viewport_size
Vector2I