add small dev/test utility for working on constraint packer

This commit is contained in:
Paul Davis 2020-05-22 08:46:37 -06:00
parent 1c3e743d2a
commit 606866ea00
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#include <gtkmm/adjustment.h>
#include <gtkmm/main.h>
#include <gtkmm/window.h>
#include "canvas/canvas.h"
#include "canvas/constraint_packer.h"
using namespace ArdourCanvas;
using namespace Gtk;
int
main (int argc, char* argv[])
{
Gtk::Main app (&argc, &argv);
Gtk::Window win;
Gtk::Adjustment hadj (0, 0, 1000, 1, 10);
Gtk::Adjustment vadj (0, 0, 1000, 1, 10);
GtkCanvasViewport cview (hadj, vadj);
win.add (cview);
win.show_all ();
app.run ();
return 0;
}