Specifications
Athena Widget Set libXaw 1.0.7
x
yThe location of the upper left outside corner of this widget in its parent.
6.7.2. Layout Semantics
The Viewport widget manages a single child widget. When the size of the child is larger than the
size of the Viewport, the user can interactively move the child within the Viewport by reposition-
ing the scrollbars.
The default size of the Viewport before it is realized is the width and/or height of the child. After
it is realized, the Viewport will allowits child to growvertically or horizontally if allowVert or
allowHoriz are set, respectively.Ifthe corresponding vertical or horizontal scrollbar is not
enabled, the Viewport will propagate the geometry request to its own parent and the child will be
allowed to change size only if the Viewport’sparent allows it. Regardless of whether or not
scrollbars are enabled in the corresponding direction, if the child requests a newsize smaller than
the Viewport size, the change will be allowed only if the parent of the Viewport allows the View-
port to shrink to the appropriate dimension.
The scrollbar children of the Viewport are named horizontal and vertical.Byusing these names
the programmer can specify resources for the individual scrollbars. XtSetValues can be used to
modify the resources dynamically once the widget ID has been obtained with XtNameToWidget.
Note
Although the Viewport is a Subclass of the Form, no resources for the Form may be
supplied for anyofthe children of the Viewport. These constraints are managed
internally and are not meant for public consumption.
131