[m-rev.] Xlib interface for extras

Julien Fischer juliensf at cs.mu.OZ.AU
Thu Sep 23 15:13:11 AEST 2004

On Thu, 23 Sep 2004, Ralph Becket wrote:

> I've been writing a little Xlib based graphics library off and on for a
> couple of months and would like to add it to extras.
>From what I 've seen of this that would certainly be worthwhile.

> xlib.m		A very low-level Mercury wrapper around (parts of) Xlib.
> easyx.m		A nice little graphics library.
> testeasyx.m	A simple demonstration program.
> moveball.m	An orange ball follows the mouse pointer.
> scribble.m	A trivial drawing program.
> bounce.m	A bouncing-ball game.

Just a few initial comments - I haven't had a chance to look at
it properly yet.

>     % One must open a display in order to create a window.
>     %
> :- type display == xlib.display_ptr.
Couldn't this type and several of the others in the interface
of this module be abstract?

Also, there doesn't seem to be any (easy) way of drawing a single
pixel at a particular location - I suggest you add a draw_pixel

mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe

More information about the reviews mailing list