[m-rev.] Xlib interface for extras
Ralph Becket
rafe at cs.mu.OZ.AU
Thu Sep 23 15:19:25 AEST 2004
Julien Fischer, Thursday, 23 September 2004:
>
> > % 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?
It could. Do you think it would be better to make display etc. abstract
and, if there is later any call for it, provide a predicate to expose
the xlib level representations of these things?
> 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
> predicate.
Hmm. The abstract coordinate system doesn't really work in terms of
pixels (although you can give line widths in pixels). It would be
easy to add, I suppose. I'll do that to keep you happy.
-- Ralph
--------------------------------------------------------------------------
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