1 ;;;; framework-gnome.scm --
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 2004 Jan Nieuwenhuizen <janneke@gnu.org>
7 (define-module (scm framework-gnome))
8 (use-modules (guile) (lily))
12 (gnome gtk gdk-event))
14 ;; the name of the module will change to canvas rsn
15 (if (resolve-module '(gnome gw canvas))
16 (use-modules (gnome gw canvas))
17 (use-modules (gnome gw libgnomecanvas)))
19 (define-public (output-framework-gnome outputter book scopes fields basename)
20 (let* ((bookpaper (ly:paper-book-book-paper book))
21 (pages (list->vector (ly:paper-book-pages book))))
24 ;; TODO: goops class instance with
26 ;; - main-scrolled window
29 ;; - pixels-per-unit (or can get from canvas?)
31 ;; - item-locations hashmap
33 ;; give that as first argument to all outputter/stencil functions?
35 (let* ((window (make <gtk-window> #:type 'toplevel)))
38 (ly:outputter-dump-stencil
40 (ly:make-stencil (list 'main outputter bookpaper pages)