[m-rev.] Xlib interface for extras
Julien Fischer
juliensf at cs.mu.OZ.AU
Thu Sep 23 16:26:01 AEST 2004
On Thu, 23 Sep 2004, Ralph Becket wrote:
> Ian MacLarty, Thursday, 23 September 2004:
> > This looks neat. It also seems to work fine on Max OS X (I tested it).
>
> Excellent - thanks for testing that.
>
> > >% Angles, where used, are measured in radians.
> >
> > Personally I'd find degrees easier to use. I find 45.0 is easier to
> > read than math.pi/4.0 - especially for this type of simple library.
>
> Umm, I think I'll stick to radians. pi/4.0 isn't that bad and radians
> will interface better with any geometric code the user writes.
> Converting between degrees is a royal pain.
>
I agree.
>
> > > % The left hand mouse button is usually number 1.
> > > %
> > >:- type button == int.
> >
> > What about making this button1 ; button2 ; button3 or even left ;
> > middle ; right? This might be useful when constructing switches on
> > which button was pressed. Also a button variable having the value 999
> > is pretty meaningless.
>
> Well, at least five mouse buttons are supported and IIRC X is completely
> agnostic about the number of buttons a mouse can have.
>
How about something like:
:- type button
---> left
; middle
; right
; other(int).
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