Page 310 Table of Contents Index Page 312
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 29. PANES

A pane that allows its children to be any size and lays them out wherever they want to be (for
example, a desktop manager).

29.3.3 Other Composite Pane Classes

CLIM defines the following additional pane classes, each having at least one implementation.

=> scroller-pane [Service Pane]
=> scrolling (&rest options) &body contents [Macro]
Creates a composite pane that allows the single child specified by contents to be scrolled. options
may include a :scroll-bar option. The value of this option may be t (the default), which
indicates that both horizontal and vertical scroll bars should be created; :vertical, which
indicates that only a vertical scroll bar should be created; or :horizontal, which indicates that
only a horizontal scroll bar should be created.

The pane created by the scrolling will include a scroller-pane that has as children the scroll
bars and a viewport. The viewport of a pane is the area of the window's drawing plane that is
currently visible to the user. The viewport has as its child the specified contents.

Minor issue: Supply the following four definitions. | SWM

=> pane-viewport pane [Generic Function]
=> pane-viewport-region pane [Generic Function]
=> pane-scroller pane [Generic Function]
=> scroll-extent pane x y [Generic Function]
=> label-pane [Service Pane]
=> labelled (&rest options) &body contents [Macro]
Creates a pane that consists of the specified label, which is a string.

29.3.4 The Layout Protocol

The layout protocol is triggered by layout-frame, which is called when a frame is adopted by
a frame manager.

CLIM uses a two pass algorithm to lay out a pane hierarchy. In the first pass (called called
space composition), the top-level pane is asked how much space it requires. This may in turn
lead to same the question being asked recursively of all the panes in the hierarchy, with the
answers being composed to produce the top-level pane's answer. Each pane answers the query
by returning a space requirement (or space-requirement) object, which specifies the pane's
desired width and height as well as its willingness to shrink or grow along its width and height.


Page 310 Table of Contents Index Page 312
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E