Re: Sodipodi can be seen from Gnumeric!



On 19 Apr 2000, Miguel de Icaza wrote:

> 
> > I think that the most meaningful would be to use BonoboCanvasItem like
> > BonoboView with transparent background. I.e. it should have clipping box
> > determined by container - and transforming this box is done by conatiner
> > app. While activated, the most meaningful beahviour would be, if clipping
> > box becomes "event-opaque" and forwards all event to containee.
> 
> Excel's draw feature, usually has a bounding box that does not match
> the real bounding box.
> 
> For example, imagine a "star" object with a shaded tail.  Imagine the
> "shade" is very big, like larger than the star and it depends on the
> size of the star.
> 
> So the bounding box is actually used to control the star, and the
> shade changes according to this.

I thought and thought and thought and found you are right!

What really should happen:
Containee has its own page (rectangular coordinate reference system), but
is not restricted to be completely inside it.
If component is embedded into container, container reserves a rectangular
"containee window" to it.
Containee should try its best to fit or change its page to fit exactly to
containers reserved area.
Containee can draw to containers full canvas.
When activated, containee should get all events on its page (==
containers "containee window"), including empty space on it, and on all
objects outside that, but not on empty canvas outside page.

One possibility to help containee would be hardcode new coordinate system
in containers component window. For example presenting its full size ot
children as (0,0 - 1,1). But via some means children have also to know
stretching factor.

Regards,
Lauris

> 
> > - If graphic is activated, the clipping box will forward all events to
> > sodipodi. Now it is possible to move graphic (or its components) relative
> > to graphic PAGE (clipping rect).
> 
> This makes sense.  So we would have an acetate-like canvas item in the
> background of the bounding box to keep control of it.  Good idea.
> 
> Miguel.
> 





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