🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #234

geometry management???

#234
From: Louis Yun
Date: Mon, 06 Apr 1992 18:00
26 lines
1565 bytes
Hi,
	I'm a neophyte to InterViews and GUI design, and hope someone
can shed some light on the way InterViews 3.0 does geometry managemenet.
This is the model I've come up with:

   To request canvas area, a primitive glyph fills out a Requisition 
   from within its constructor.  A composite glyph fills out a Requisition
   from within Glyph::request by combining the Requisitions of its
   children.  

If a glyph wants to change its canvas area during an application, does
it rewrite its Requisition from within Glyph::request?  Are the
functions request, allocate, draw event-triggered?  What causes them to
be called?

In the ScaleToFit example in the ref. manual, the body of ScaleToFit is
a Image with fixed stretchability/shrinkability.  I guess ScaleToFit
inherits this Requisition.  If I added a row of buttons on top, separated
from the ScaleToFit glyph by vglue, and then resize the window, how does
InterViews figure out how much canvas area to allocate to the ScaleToFit
glyph, & how much to allocate to the row of buttons and vglue?  Will
window resize cause allocate and draw to be called for every glyph?

help is most appreciated,
louie
Technical Details
Message-ID: <rq3kgINN397@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ames!agate!diva.Berkeley.EDU!yun

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ames!agate!diva.Berkeley.EDU!yun
From: yun@diva.Berkeley.EDU (Louis Yun)
Newsgroups: comp.windows.interviews
Subject: geometry management???
Date: 6 Apr 1992 18:00:48 GMT
Organization: University of California, Berkeley
Lines: 26
Distribution: world
Message-ID: <rq3kgINN397@agate.berkeley.edu>
NNTP-Posting-Host: diva.berkeley.edu