CLIM mail archive

[Prev][Next][Index][Thread]

Re: Silly Drawing Questions



    Date: Thu, 13 Jan 1994 11:23 EST
    From: Rainer Joswig <rainer@ki6.informatik.uni-hamburg.de>


    > well, there are such drawing functions.  but "draw-polygon" doesn't seem
    > to have a method for a polygon instance.  hmm.  in fact, it appears that
    > NONE of the draw-XXX generics have methods to draw the name-matching
    > class. that does seem curious.

    DRAW-POLYGON is not a GENERIC function. It calls the generic
    function MEDIUM-DRAW-POLYGON (or something like that).

DRAW-POLYGON[*] and its friends are not generic functions so that
compiler macros can get into the act to generate code that does not
need to process keyword args.  MEDIUM-DRAW-POLYGON indeed simply draws
a polygon when given the coordinates of the polygon's corners.

It would be silly for MEDIUM-DRAW-POLYGON to take a polygon arg, because
then somebody would have to cons it.

I am surprised that nobody remembers that DRAW-DESIGN is exactly the
function you are looking for.

    If I have polygon objects (or whatever), these should have
    all the necessary information to draw them. So a generic
    function DRAW-GRAPHICAL-OBJECT *could* work.

    Rainer Joswig

References:

Main Index | Thread Index