[m-rev.] Xlib interface for extras

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


On Thu, 23 Sep 2004, Ralph Becket wrote:

> 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?
>
Yes, make the abstract.  That said, I suspect that anyone trying to
expose the xlib level representation of these things is probably moving
beyond what easyx was designed to do.

> > 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.
>
I suppose you could think of them as points rather than as directly.
It just seems to me that there is no way of easily saying, for example,
stick a yellow point at such and such an abstract coordinate - it's
not vital, I imagine that it's possible to cobble such an operation out
of what's already there.

Julien.

--------------------------------------------------------------------------
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