view dia/grid_layer.d @ 24:a24c13bb9c98

Builds again.
author "David Bryant <bagnose@gmail.com>"
date Wed, 15 Jul 2009 23:39:29 +0930
parents 17c2df87b459
children 06c30d250c0a
line wrap: on
line source

module dia.grid_layer;

public {
    import dia.icanvas;
}

private {
    import cairo.routines;
    import std.math;
}

interface Grid {
}

class GridLayer : Layer, Grid {
    this(in string name) {
        super(name);
    }

    override Rectangle bounds() const {
        // We don't require any geometry
        return Rectangle();
    }

    override void draw(const Viewport viewport,
                       in Rectangle pixel_damage, scope Context pixel_cr,
                       in Rectangle model_damage, scope Context model_cr) const {
        double zoom = viewport.zoom;

        //double start_x = modf(damage.min_corner.x, zoom);
    }

    private {
    }
}