[Y-devel] display server architectures compared
Brent Gulanowski brentg at magma.ca
Fri Feb 20 21:20:12 GMT 2004
On Feb 20, 2004, at 3:56 PM, Mike Paquette wrote:
> On window visibiliity and compositing: Apps draw the window content
> without regard to current window visibility, rendering the complete
> window content into the buffer.
Clarification:
The screen representation of a view (NSView, the superclass of all
visible "widgets" -- Cocoa does not use the term) is redrawn upon
receipt of a -drawRect: message, which includes a rectangular region
which has to be re-drawn. If this rect is smaller than the view's
bounds, it is not necessary draw the complete view, and if that view
contains sub-views (child widgets), only this in the dirty region need
to be redrawn themselves. Calls to -drawRect: are managed by the NSView
abstract superclass, the parent Window, and the window server, so the
application does not have to, and custom views need only worry about
their own custom content. A notable point is that sub-views have
-drawRect: called automatically by the window server -- it is not
necessary to call them manually, nor to call super's implementation of
-drawRect: -- each view in the entire view hierarchy will always get a
chance to redraw itself.
Hopefully the developers of this system will find time to study up on a
number of other GUI systems so they can learn what techniques to
emulate for best results.
Cheers,
--
Brent Gulanowski brentg at magma.ca
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved