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

Object access



Matthew Flatt suggests (about getting all ivars from a class):

> Note, however, that in the source distribution's 
> plt/tests/mred, you can find a file called "classhack.c". 
> It defines an extension to return all of the ivar names 
> in a class.

The Windows distribution (sorry, but we use *that* for
teaching...) has only tests/mzscheme directory. No mred.
The unix source distribution neither. There is some info
in src/mzscheme/src/object.c, but quite entangled.

==========

So, another, diferent question.

I enjoy very much the idea of embeddable, reconfigurable
universal editors in MrEd. In particular, I thought about
a graphical editor, permitting to draw and to interact
with geometric figures.

I have no idea whatsoever how to make snip%'s different
from what is there: string/tab/editor/image.

I would like to make a snip% containing a rectangle, a
segment of line, an ellipse - you see what I mean. I can
subclass snip% redefining the draw method, but I don't
know how to make it behave like interacting geom. objects
in a typical drawing program. 

I thought about inserting such objects into a pasteboard%
as editor-snip%s, and within this editor play with bitmaps
etc., but it becomes heavy and clumsy. (And buggy...)

Do you have somewhere some examples of non-orthodox snip%/
editor constructs?


Jerzy Karczmarczuk
Caen, France