XTkPseudoRoot.mesa
Copyright Ó 1991 by Xerox Corporation. All rights reserved.
Created by Christian Jacobi, April 29, 1991 5:44 pm PDT
Christian Jacobi, April 29, 1991 8:28 pm PDT
DIRECTORY
Xl USING [Window],
XTk USING [Widget, WidgetSpec];
XTkPseudoRoot: CEDAR DEFINITIONS ~ BEGIN
A pseudo-root is a widget which listens to other applications creating child windows. It behaves towards those children similar as a window manager would: It redirects requests and overwrites the size. However, to its own creator, a pseudo-root looks like a leaf widget.
Note: There is no need use XTkWidgets.CreateInteroperabilityShell with pseudo-roots. Children of pseudo-roots are automatically resized by the pseudo-root. The only special feature needed is the ability to specify a parent window. However, most window manager conventions are ignored.
CreatePseudoRoot: PROC [widgetSpec: XTk.WidgetSpec ¬ []] RETURNS [XTk.Widget];
Create pseudo-root widget
PseudoChild: PROC [pseudoRoot: XTk.Widget] RETURNS [pseudoChild: Xl.Window];
Returns current foreign child of pseudo-root, or, Xl.nullWindow if none. pseudoChild is owned by a different application and could disappear anytime.
newPseudoChild: READONLY ATOM;
Key for notifiers called when a new pseudoChild is installed.
pseudoChildDestroyed: READONLY ATOM;
Key for notifiers called when an installed pseudoChild is destroyed (but not when it is replaced).
END.