Lines Matching defs:pw

116 static Widget find_child (pw)
117 PortholeWidget pw;
126 for (i = 0, children = pw->composite.children;
127 i < pw->composite.num_children; i++, children++) {
134 static void SendReport (pw, changed)
135 PortholeWidget pw;
138 Widget child = find_child (pw);
140 if (pw->porthole.report_callbacks && child) {
146 prep.slider_width = pw->core.width;
147 prep.slider_height = pw->core.height;
150 XtCallCallbackList ((Widget)pw, pw->porthole.report_callbacks,
156 static void layout_child (pw, child, geomp, xp, yp, widthp, heightp)
157 PortholeWidget pw;
180 if (*widthp < pw->core.width) *widthp = pw->core.width;
181 if (*heightp < pw->core.height) *heightp = pw->core.height;
187 minx = ((Position) pw->core.width) - ((Position) *widthp);
188 miny = ((Position) pw->core.height) - ((Position) *heightp);
224 PortholeWidget pw = (PortholeWidget) gw;
225 Widget child = find_child (pw);
235 layout_child (pw, child, (XtWidgetGeometry *)NULL,
240 SendReport (pw, (unsigned int) (XawPRCanvasWidth | XawPRCanvasHeight));
248 PortholeWidget pw = (PortholeWidget) gw;
249 Widget child = find_child (pw);
261 else if (preferred->width == pw->core.width &&
262 preferred->height == pw->core.height)
276 PortholeWidget pw = (PortholeWidget) w->core.parent;
277 Widget child = find_child (pw);
289 layout_child (pw, child, req, &reply->x, &reply->y,
329 if (changed) SendReport (pw, changed);
339 PortholeWidget pw = (PortholeWidget) gw;
340 Widget child = find_child (pw); /* ignore extra children */
347 if (pw->core.width == 0) {
351 if (pw->core.height == 0) {
361 XtResizeWidget (child, Max (child->core.width, pw->core.width),
362 Max (child->core.height, pw->core.height), 0);
364 SendReport (pw, (unsigned int) XawPRAll);