Lines Matching refs:command

84       offset(command.callbacks), XtRCallback, (XtPointer)NULL},
86 offset(command.highlight_thickness), XtRImmediate,
89 offset(command.shape_style), XtRImmediate, (XtPointer)XawShapeRectangle},
92 offset(command.corner_round), XtRImmediate, (XtPointer) 25}
181 if (cbw->command.highlight_thickness > 1 )
182 values.line_width = cbw->command.highlight_thickness;
207 if (cbw->command.shape_style != XawShapeRectangle
210 cbw->command.shape_style = XawShapeRectangle;
211 if (cbw->command.highlight_thickness == DEFAULT_SHAPE_HIGHLIGHT) {
212 if (cbw->command.shape_style != XawShapeRectangle)
213 cbw->command.highlight_thickness = 0;
215 cbw->command.highlight_thickness = DEFAULT_HIGHLIGHT_THICKNESS;
218 cbw->command.normal_GC = Get_GC(cbw, cbw->label.foreground,
220 cbw->command.inverse_GC = Get_GC(cbw, cbw->core.background_pixel,
223 cbw->label.normal_GC = cbw->command.normal_GC;
225 cbw->command.set = FALSE;
226 cbw->command.highlighted = HighlightNone;
236 if (cbw->command.highlight_thickness == 0 ||
237 cbw->command.highlight_thickness >
252 rect.x = rect.y = cbw->command.highlight_thickness;
253 rect.width -= cbw->command.highlight_thickness * 2;
254 rect.height -= cbw->command.highlight_thickness * 2;
276 if (cbw->command.set)
279 cbw->command.set= TRUE;
294 if (!cbw->command.set)
297 cbw->command.set = FALSE;
314 if (cbw->command.set) {
315 cbw->command.highlighted = HighlightNone;
332 cbw->command.highlighted = HighlightWhenUnset;
339 cbw->command.highlighted = HighlightAlways;
342 cbw->command.highlighted = HighlightWhenUnset;
361 cbw->command.highlighted = HighlightNone;
380 if (cbw->command.set)
381 XtCallCallbackList(w, cbw->command.callbacks, (XtPointer) NULL);
405 * Description: Paints the command widget.
406 * Arguments: w - the command widget.
424 very_thick = cbw->command.highlight_thickness >
427 if (cbw->command.set) {
428 cbw->label.normal_GC = cbw->command.inverse_GC;
429 XFillRectangle(XtDisplay(w), XtWindow(w), cbw->command.normal_GC,
434 cbw->label.normal_GC = cbw->command.normal_GC;
436 if ((int)cbw->command.highlight_thickness <= 0)
446 if (cbw->command.set == (cbw->command.highlighted == HighlightNone)) {
447 norm_gc = cbw->command.inverse_GC;
448 rev_gc = cbw->command.normal_GC;
451 norm_gc = cbw->command.normal_GC;
452 rev_gc = cbw->command.inverse_GC;
455 if ( !( (!change && (cbw->command.highlighted == HighlightNone)) ||
456 ((cbw->command.highlighted == HighlightWhenUnset) &&
457 (cbw->command.set))) ) {
465 int offset = cbw->command.highlight_thickness/2;
467 cbw->core.width - cbw->command.highlight_thickness,
468 cbw->core.height - cbw->command.highlight_thickness);
481 if (cbw->label.normal_GC == cbw->command.normal_GC)
482 XtReleaseGC( w, cbw->command.inverse_GC );
484 XtReleaseGC( w, cbw->command.normal_GC );
504 cbw->command.set = FALSE;
505 cbw->command.highlighted = HighlightNone;
511 (oldcbw->command.highlight_thickness !=
512 cbw->command.highlight_thickness) ||
515 if (oldcbw->label.normal_GC == oldcbw->command.normal_GC)
517 XtReleaseGC(new, cbw->command.inverse_GC);
519 XtReleaseGC(new, cbw->command.normal_GC);
521 cbw->command.normal_GC = Get_GC(cbw, cbw->label.foreground,
523 cbw->command.inverse_GC = Get_GC(cbw, cbw->core.background_pixel,
526 cbw->label.normal_GC = (cbw->command.set
527 ? cbw->command.inverse_GC
528 : cbw->command.normal_GC);
534 && oldcbw->command.shape_style != cbw->command.shape_style
537 cbw->command.shape_style = oldcbw->command.shape_style;
558 if ( (cbw->command.shape_style == XawShapeRoundedRectangle) ) {
561 corner_size = (int) (corner_size * cbw->command.corner_round) / 100;
564 if (checkRectangular || cbw->command.shape_style != XawShapeRectangle) {
565 if (!XmuReshapeWidget((Widget) cbw, cbw->command.shape_style,
567 cbw->command.shape_style = XawShapeRectangle;