Porthole widget
Application Header file |
<Xraw/Porthole.h> |
Class Header file |
<Xraw/PortholeP.h> |
Class |
portholeWidgetClass |
Class Name |
Porthole |
Superclass |
Container -->
Constraint -->
Composit -->
Core
|
The Porthole widget provides geometry management of a list of arbitrary
widgets, only one of which may be managed at any particular time.
The managed child widget is reparented within the porthole and is moved around
by the application (typically under the control of a Panner widget).
New Resources
When creating a Porthole widget instance, the following resources are
retrieved from the argument list or from the resource database:
Name |
Class |
Type |
Notes |
Default Value |
reportCallback |
ReportCallback |
Callback |
|
NULL |
reportCallback |
A list of functions to invoke whenever the managed child widget changes
size or position.
|
Layout semantics
The Porthole widget allows its managed child to request any size
that is as large
or larger than the Porthole itself and any location so long as the child
still obscures all of the Porthole. This widget typically is used with a
Panner widget.
Porthole callbacks
The functions registered on the reportCallback list are invoked whenever
the managed child changes size or position:
void ReportProc(porthole, client_data, report)
Widget porthole;
XtPointer client_data;
XtPointer report; /* (XawPannerReport *) */
porthole |
Specifies the Porthole widget.
|
client_data |
Specifies the client data.
|
report |
Specifies a pointer to an XawPannerReport structure containing
the location and size of the slider and the size of the canvas.
|
[Xraw home]
[Xraw widget class hierarchy]
Vladimir T. Romanovski
romsky@hp1.oea.ihep.su