rect: fixed header guard
window: revamped interface
session: 'WINDOW' typedef moved to window.h
window: i can't decide which interface is better
window: awkward
rect: double because not promotable
window: check window reference before deleting it
layout: first prototype
example
example