3 #include "canvas/canvas.h"
4 #include "canvas/rectangle.h"
7 using namespace ArdourCanvas;
9 int main (int argc, char* argv[])
11 Gtk::Main kit (argc, argv);
14 window.set_title ("Hello world");
15 window.set_size_request (512, 512);
17 canvas.set_size_request (2048, 2048);
24 for (int x = 0; x < Ns; ++x) {
25 for (int y = 0; y < Ns; ++y) {
26 Rectangle* r = new Rectangle (canvas.root ());
27 r->set (Rect (x * max_x / Ns, y * max_y / Ns, (x + 1) * max_x / Ns, (y + 1) * max_y / Ns));
31 Gtk::ScrolledWindow scroller;
32 scroller.add (canvas);
33 window.add (scroller);
37 Gtk::Main::run (window);