• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/motif/

Lines Matching defs:gw

287 DrawSlider(XmGaugeWidget gw, Boolean clear)
289 #define THIS gw->gauge
299 sht = gw->primitive.shadow_thickness;
306 XtVaGetValues(gw,XmNbackground,&backgr,XmNforeground,&foregr,NULL);
310 XClearArea(XtDisplay(gw), XtWindow(gw), sht, sht,
311 gw->core.width - 2 * sht, gw->core.height - 2 * sht, False);
315 size = (int) ((gw->core.width - 2 * sht)*ratio);
317 XDrawString(XtDisplay(gw), XtWindow(gw), THIS.gc, sht+gw->core.width/2,
318 gw->core.height - 2 * sht, string, len);
323 XFillRectangle(XtDisplay(gw), XtWindow(gw), THIS.gc,
324 sht, sht, size, gw->core.height - 2 * sht);
328 rects[0].width = size; rects[0].height = gw->core.height - 2 * sht;
333 XFillRectangle(XtDisplay(gw), XtWindow(gw), THIS.gc,
334 gw->core.width - size - sht, sht,
335 size, gw->core.height - 2 * sht);
338 rects[0].x = gw->core.width - size - sht; rects[0].y = sht;
339 rects[0].width = size; rects[0].height = gw->core.height - 2 * sht;
344 XSetClipRectangles(XtDisplay(gw), THIS.gc, 0, 0, rects, 1, Unsorted);
345 XSetForeground(XtDisplay(gw), THIS.gc, backgr);
346 XDrawString(XtDisplay(gw), XtWindow(gw), THIS.gc, sht+gw->core.width/2,
347 gw->core.height - 2 * sht, string, len);
352 size = (int) ((gw->core.height - 2 * sht)*ratio);
354 XDrawString(XtDisplay(gw), XtWindow(gw), THIS.gc, sht,
355 sht+gw->core.height/2, string,len);
360 XFillRectangle(XtDisplay(gw), XtWindow(gw), THIS.gc,
361 sht, sht, gw->core.width - 2 * sht, size);
365 rects[0].width = gw->core.width - 2 * sht; rects[0].height = size;
370 XFillRectangle(XtDisplay(gw), XtWindow(gw), THIS.gc,
371 sht, gw->core.height - size - sht,
372 gw->core.width - 2 * sht, size);
375 rects[0].x = sht; rects[0].y = gw->core.height - size - sht;
376 rects[0].width = gw->core.width - 2 * sht; rects[0].height = size;
380 XSetClipRectangles(XtDisplay(gw), THIS.gc, 0, 0, rects, 1, Unsorted);
381 XSetForeground(XtDisplay(gw), THIS.gc, backgr);
382 XDrawString(XtDisplay(gw), XtWindow(gw), THIS.gc, sht,
383 sht+gw->core.height/2, string,len);
388 XSetClipMask(XtDisplay(gw), THIS.gc, None);
389 XSetForeground(XtDisplay(gw), THIS.gc, foregr);
398 DrawSlider(XmGaugeWidget gw, Boolean clear)
400 #define THIS gw->gauge
404 sht = gw->primitive.shadow_thickness;
410 XClearArea(XtDisplay(gw), XtWindow(gw), sht, sht,
411 gw->core.width - 2 * sht, gw->core.height - 2 * sht, False);
415 /* size = (gw->core.width - 2 * sht) / ratio; */
417 size = (gw->core.width - 2 * sht) /((float)THIS.maximum-(float)THIS.minimum)*(float)THIS.value;
421 XFillRectangle(XtDisplay(gw), XtWindow(gw), THIS.gc,
422 sht, sht, size, gw->core.height - 2 * sht);
426 XFillRectangle(XtDisplay(gw), XtWindow(gw), THIS.gc,
427 gw->core.width - size - sht, sht,
428 size, gw->core.height - 2 * sht);
433 size = (gw->core.height - 2 * sht) /((float)THIS.maximum-(float)THIS.minimum)*(float)THIS.value;
434 /* size = (gw->core.height - 2 * sht)/ ratio; */
438 XFillRectangle(XtDisplay(gw), XtWindow(gw), THIS.gc,
439 sht, sht, gw->core.width - 2 * sht, size);
443 XFillRectangle(XtDisplay(gw), XtWindow(gw), THIS.gc,
444 sht, gw->core.height - size - sht,
445 gw->core.width - 2 * sht, size);
456 XmGaugeWidget gw = (XmGaugeWidget)new_w;
457 #define THIS gw->gauge
460 values.foreground = gw->primitive.foreground;
472 XmGaugeWidget gw = (XmGaugeWidget)w;
473 #define THIS gw->gauge
513 XmGaugeWidget gw = (XmGaugeWidget)w;
514 #define THIS gw->gauge
517 sht = gw->primitive.shadow_thickness;
519 gw->primitive.top_shadow_GC,
520 gw->primitive.bottom_shadow_GC,
523 DrawSlider(gw, False);
621 XmGaugeWidget gw = (XmGaugeWidget)w;
622 #define THIS gw->gauge
631 sht = gw->primitive.shadow_thickness;
633 gw->primitive.top_shadow_GC,
634 gw->primitive.bottom_shadow_GC,
685 XmGaugeWidget gw = (XmGaugeWidget)w;
686 #define THIS gw->gauge
695 sht = gw->primitive.shadow_thickness;
732 DrawSlider(gw, (nsize < size));
754 XmGaugeWidget gw = (XmGaugeWidget)w;
755 #define THIS gw->gauge
773 XmGaugeWidget gw = (XmGaugeWidget)w;
775 gw->gauge.value = value;
776 DrawSlider(gw, True);
783 XmGaugeWidget gw = (XmGaugeWidget)w;
785 return gw->gauge.value;