Lines Matching refs:Scr

95 	int h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
101 if(Scr->tbpm.xlogo == None) {
104 Scr->tbpm.xlogo = XCreatePixmap(dpy, Scr->Root, h, h, 1);
105 gc = XCreateGC(dpy, Scr->tbpm.xlogo, 0L, NULL);
107 XFillRectangle(dpy, Scr->tbpm.xlogo, gc, 0, 0, h, h);
109 gcBack = XCreateGC(dpy, Scr->tbpm.xlogo, 0L, NULL);
116 XmuDrawLogo(dpy, Scr->tbpm.xlogo, gc, gcBack, -1, -1, h + 2, h + 2);
117 XDrawRectangle(dpy, Scr->tbpm.xlogo, gcBack, 0, 0, h - 1, h - 1);
125 return Scr->tbpm.xlogo;
131 int h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
137 if(Scr->tbpm.resize == None) {
146 Scr->tbpm.resize = XCreatePixmap(dpy, Scr->Root, h, h, 1);
147 gc = XCreateGC(dpy, Scr->tbpm.resize, 0L, NULL);
149 XFillRectangle(dpy, Scr->tbpm.resize, gc, 0, 0, h, h);
167 XDrawLines(dpy, Scr->tbpm.resize, gc, points, 3, CoordModeOrigin);
175 XDrawLines(dpy, Scr->tbpm.resize, gc, points, 3, CoordModeOrigin);
182 return Scr->tbpm.resize;
196 if(Scr->tbpm.question == None) {
197 Scr->tbpm.question = XCreateBitmapFromData(dpy, Scr->Root,
205 return Scr->tbpm.question;
213 return (CreateMenuIcon(Scr->TBInfo.width - Scr->TBInfo.border * 2, widthp,
219 int h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
229 if(Scr->tbpm.delete == None) {
233 pix = Scr->tbpm.delete = XCreatePixmap(dpy, Scr->Root, h, h, 1);
242 return Scr->tbpm.delete;
330 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
341 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
347 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
352 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point + 1, point - 1, point - 1,
354 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point + 1, point, point,
356 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point - 1, point + 1, midpoint - 2,
358 XDrawLine(dpy, image->pixmap, Scr->NormalGC, midpoint, midpoint + 2,
360 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, point + 1, h - point - 3,
362 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point - 1, h - point - 2,
364 XDrawLine(dpy, image->pixmap, Scr->NormalGC, midpoint, midpoint - 2,
366 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, h - point - 2,
372 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point + 2, point + 1,
374 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point + 2, point, midpoint,
376 XDrawLine(dpy, image->pixmap, Scr->NormalGC, midpoint + 2, midpoint, h - point,
378 XDrawLine(dpy, image->pixmap, Scr->NormalGC, h - point, h - point - 2,
380 XDrawLine(dpy, image->pixmap, Scr->NormalGC, h - point - 1, h - point - 2,
383 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, point, h - point - 1,
385 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point - 1, point, h - point - 1,
387 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, point - 1, h - point,
392 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, h - point - 1, point,
394 XDrawLine(dpy, image->pixmap, Scr->NormalGC, h - point - 1, point,
397 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, h - point - 1,
401 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point + 1, h - point - 1,
403 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point + 1, h - point, midpoint,
405 XDrawLine(dpy, image->pixmap, Scr->NormalGC, midpoint + 2, midpoint, h - point,
408 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point - 1, h - point - 1,
410 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, h - point, h - point,
427 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
437 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
443 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
446 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, point, h / 2, h - point);
447 XDrawLine(dpy, image->pixmap, Scr->NormalGC, point, point, h - point, point);
450 XDrawLine(dpy, image->pixmap, Scr->NormalGC, h - point, point, h / 2 + 1,
452 XDrawLine(dpy, image->pixmap, Scr->NormalGC, h - point - 1, point + 1,
466 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
475 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
481 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
500 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
509 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
515 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
532 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
541 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
547 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
565 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
574 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
580 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
583 Scr->TitleButtonShadowDepth + 2,
585 h - 2 * (Scr->TitleButtonShadowDepth + 2),
599 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
608 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
614 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
618 Scr->TitleButtonShadowDepth + 2,
620 h - 2 * (Scr->TitleButtonShadowDepth + 2),
632 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
641 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
647 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
662 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
671 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
677 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
694 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
703 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
709 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
711 Draw3DBorder(image->pixmap, Scr->TitleButtonShadowDepth + 2,
712 Scr->TitleButtonShadowDepth + 2,
713 h - 2 * (Scr->TitleButtonShadowDepth + 2),
714 h - 2 * (Scr->TitleButtonShadowDepth + 2),
820 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
831 im->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
836 Draw3DBorder(im->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
866 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
877 im->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
882 Draw3DBorder(im->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
911 h = Scr->TBInfo.width - Scr->TBInfo.border * 2;
924 im->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
925 Draw3DBorder(im->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth,
1044 fg, bg, Scr->d_depth);