(define (deffn-name line)
(let ((regs (re-string-match
- "@deffn \\(Class\\|Procedure\\|{Generic Procedure}\\) \\([-A-Za-z0-9<>?!+.]+\\)"
+ (string-append "@deffnx?"
+ " \\(Class\\|Procedure\\|{Generic Procedure}\\)"
+ " \\([-A-Za-z0-9<>?!+./:]+\\)")
line)))
(if regs
(intern (re-match-extract line regs 2))
(if (fix:< i len)
(let ((line (vector-ref lines i)))
(loop (fix:1+ i)
- (if (string-prefix? "@deffn " line)
+ (if (string-prefix? "@deffn" line)
(cons (deffn-name line) deffns)
deffns)))
deffns))))
You can draw on the surface with the simple graphics interface and/or
the following procedures.
+@deffn Procedure gtk-graphics/make width height
+Creates a Gtk graphics device even if the output device is not
+available. The output still goes to a new Cairo image surface with
+@var{width}x@var{height} pixels. It just can't be displayed (only
+written to a file).
+@end deffn
+
@deffn Procedure gtk-graphics/fill-polygon-list device points
Draws a filled polygon. @var{Points} is a list of flo:vectors each
containing at least two flonums, the x and y coordinates of a point.
(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
(make-gtk-event-viewer-demo)
(make-fix-layout-demo)
(make-pole-zero)
- (make-tellurian)
+ (make-tellurion)
(let loop ()
(if (not (null? (access toplevel-windows
(->environment '(gtk gtk-widget)))))