Lines Matching refs:command
73 offset(command.callbacks), XtRCallback, (XtPointer)NULL},
76 offset(command.highlight_thickness), XtRImmediate,
79 offset(command.highlight_thickness), XtRImmediate,
83 offset(command.shape_style), XtRImmediate, (XtPointer)XawShapeRectangle},
86 offset(command.corner_round), XtRImmediate, (XtPointer) 25},
112 * This is a temporary exported actions list for the command
117 * widget will get the command widget's actions list.
201 if (cbw->command.highlight_thickness > 1 )
202 values.line_width = cbw->command.highlight_thickness;
223 if (cbw->command.shape_style != XawShapeRectangle
226 cbw->command.shape_style = XawShapeRectangle;
227 if (cbw->command.highlight_thickness == DEFAULT_SHAPE_HIGHLIGHT) {
228 if (cbw->command.shape_style != XawShapeRectangle)
229 cbw->command.highlight_thickness = 0;
231 cbw->command.highlight_thickness = DEFAULT_HIGHLIGHT_THICKNESS;
235 cbw->command.normal_GC = Get_GC(cbw, cbw->label.foreground,
237 cbw->command.inverse_GC = Get_GC(cbw, cbw->core.background_pixel,
240 cbw->label.normal_GC = cbw->command.normal_GC;
242 cbw->command.set = FALSE;
243 cbw->command.highlighted = HighlightNone;
253 if (cbw->command.highlight_thickness == 0 ||
254 cbw->command.highlight_thickness > Min(cbw->core.width,
269 rect.x = rect.y = cbw->command.highlight_thickness;
270 rect.width -= cbw->command.highlight_thickness * 2;
271 rect.height -= cbw->command.highlight_thickness * 2;
293 if (cbw->command.set)
296 cbw->command.set= TRUE;
311 if (!cbw->command.set)
314 cbw->command.set = FALSE;
331 if (cbw->command.set) {
332 cbw->command.highlighted = HighlightNone;
350 cbw->command.highlighted = HighlightWhenUnset;
357 cbw->command.highlighted = HighlightAlways;
360 cbw->command.highlighted = HighlightWhenUnset;
379 cbw->command.highlighted = HighlightNone;
398 if (cbw->command.set)
399 XtCallCallbackList(w, cbw->command.callbacks, NULL);
423 * Description: Paints the command widget.
424 * Arguments: w - the command widget.
440 very_thick = cbw->command.highlight_thickness > Min(cbw->core.width,
443 if (cbw->command.set) {
444 cbw->label.normal_GC = cbw->command.inverse_GC;
445 XFillRectangle(XtDisplay(w), XtWindow(w), cbw->command.normal_GC,
450 cbw->label.normal_GC = cbw->command.normal_GC;
452 if (cbw->command.highlight_thickness <= 0)
462 if (cbw->command.set == (cbw->command.highlighted == HighlightNone)) {
463 norm_gc = cbw->command.inverse_GC;
464 rev_gc = cbw->command.normal_GC;
467 norm_gc = cbw->command.normal_GC;
468 rev_gc = cbw->command.inverse_GC;
471 if ( !( (!change && (cbw->command.highlighted == HighlightNone)) ||
472 ((cbw->command.highlighted == HighlightWhenUnset) &&
473 (cbw->command.set))) ) {
481 int offset = cbw->command.highlight_thickness/2;
483 cbw->core.width - cbw->command.highlight_thickness,
484 cbw->core.height - cbw->command.highlight_thickness);
497 if (cbw->label.normal_GC == cbw->command.normal_GC)
498 XtReleaseGC( w, cbw->command.inverse_GC );
500 XtReleaseGC( w, cbw->command.normal_GC );
518 cbw->command.set = FALSE;
519 cbw->command.highlighted = HighlightNone;
525 (oldcbw->command.highlight_thickness !=
526 cbw->command.highlight_thickness) ||
529 if (oldcbw->label.normal_GC == oldcbw->command.normal_GC)
531 XtReleaseGC(new, cbw->command.inverse_GC);
533 XtReleaseGC(new, cbw->command.normal_GC);
535 cbw->command.normal_GC = Get_GC(cbw, cbw->label.foreground,
537 cbw->command.inverse_GC = Get_GC(cbw, cbw->core.background_pixel,
540 cbw->label.normal_GC = (cbw->command.set
541 ? cbw->command.inverse_GC
542 : cbw->command.normal_GC);
549 && oldcbw->command.shape_style != cbw->command.shape_style
552 cbw->command.shape_style = oldcbw->command.shape_style;
578 if ( (cbw->command.shape_style == XawShapeRoundedRectangle) ) {
581 corner_size = (corner_size * cbw->command.corner_round) / 100;
584 if (cbw->command.shape_style != XawShapeRectangle) {
585 if (!XmuReshapeWidget((Widget) cbw, cbw->command.shape_style,
587 cbw->command.shape_style = XawShapeRectangle;