This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: kawa -w now Swing-based


I've added support for "printing" objects that
implement either gnu.kawa.model.Paintable or
gnu.kawa.model.Viewable.  These are essentially
"painted" into a new embedded JPanel.

For example:
#|kawa:1|# (require 'swing-gui)
#|kawa:2|# (define p3 (polygon 0+0i 0+80i 150+20i))
#|kawa:3|# (vector (draw p3) (fill p3))

(Using list instead of vector is less interesting.
This is an instance of "double-dispatch" doing the
wrong thing.)

You can try cutting-and-pasting some of the expressions in:
testsuite/gui-test.scm.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]