Specifications

Athena Widget Set libXaw 1.0.7
/* expose */ Redisplay,
The ‘‘WindowWidget’’will also declare three public procedures to return the drawing colors and
the font id, saving the application the effort of constructing an argument list for a call to XtGet-
Values:
Pixel WindowColor1(w)
Widget w;
{
return ((WindowWidget)w)->window.color_1;
}
Pixel WindowColor2(w)
Widget w;
{
return ((WindowWidget)w)->window.color_2;
}
Font WindowFont(w)
Widget w;
{
return ((WindowWidget)w)->window.font->fid;
}
The ‘‘WindowWidget’’isnow complete. The application can retrieve the twodrawing colors
from the widget instance by calling either XtGetValues,orthe WindowColor functions. The
actual windowcreated for the ‘‘WindowWidget’’isavailable by calling the XtWindow function.
138