(gtk-widget-show-all window)
(make-device graphics)))))
+(define (gtk-graphics/make width height)
+ (guarantee-positive-fixnum width 'gtk-graphics/open)
+ (guarantee-positive-fixnum height 'gtk-graphics/open)
+ (%make-graphics-device gtk-graphics-device-type
+ (make-gtk-graphics width height)))
+
(define (toplevel graphics)
(let ((widgets (fix-drawing-widgets (fix-ink-drawing graphics))))
(if (null? (cdr widgets))
(import (gtk fix-layout)
fix-ink-extent fix-rect-height fix-rect-width
->color set-surface-ink-surface! drawing-damage)
+ (import (runtime graphics)
+ %make-graphics-device)
(export ()
+ gtk-graphics-device-type
gtk-graphics/set-background-color
gtk-graphics/set-foreground-color
gtk-graphics/draw-line
gtk-graphics/draw-text
gtk-graphics/draw-circle
gtk-graphics/fill-polygon-list
- gtk-graphics/flush))
+ gtk-graphics/flush
+ gtk-graphics/make))
(define-package (gtk swat)
(parent (gtk))