This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Re: gdk-rectangle-new (was: texinfo documentation)
Kevin Ryde <user42@zip.com.au>:
> Marko Rauhamaa <marko@pacujo.net> writes:
> >
> > ... (cons (cons x y) (cons w h)))
>
> There's probably some value in a gdk-rectangle-new function,
> irrespective of what the underlying representation is.
Next you'll be asking for
(gdk-rectangle-x rect)
(gdk-rectangle-y rect)
(gdk-rectangle-width rect)
(gdk-rectangle-height rect)
;-)
And don't forget that for consistency's sake we'll have to introduce:
(gdk-point-new)
(gdk-point-x)
(gdk-point-y)
The "underlying representation" is not opaque; as it stands, the
application programmer must deal with it directly.
Of course, for clarity you can say:
`((,x . ,y) ,w . ,h)
Marko
--
Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/