Lines Matching refs:image
2 * Builtin bitmap image generation/lookup.
16 #include "image.h"
24 * generate Image's. Possible cleanup candidate.
255 * These yield [ctwm struct] Image's rather than [X11 type] Pixmap's.
257 #define DEF_BI_SPM(nm) Image *nm(ColorPair cp)
278 Image *
306 Image *image = (*pmtab[i].proc)(cp);
307 if(image == NULL) {
312 return image;
325 Image *image;
337 image = AllocImage();
338 if(! image) {
341 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
342 if(image->pixmap == None) {
343 free(image);
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,
414 image->width = h;
415 image->height = h;
417 return (image);
423 Image *image;
433 image = AllocImage();
434 if(! image) {
437 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
438 if(image->pixmap == None) {
439 free(image);
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,
455 image->width = h;
456 image->height = h;
458 return (image);
464 Image *image;
471 image = AllocImage();
472 if(! image) {
475 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
476 if(image->pixmap == None) {
477 free(image);
481 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
483 Draw3DBorder(image->pixmap, 3, 3, h - 6, h - 6, 1, cp, on, true, false);
484 Draw3DBorder(image->pixmap, 3, ((h - 6) / 3) + 3, ((h - 6) * 2 / 3) + 1,
486 Draw3DBorder(image->pixmap, 3, ((h - 6) * 2 / 3) + 3, ((h - 6) / 3) + 1,
489 image->width = h;
490 image->height = h;
492 return (image);
498 Image *image;
505 image = AllocImage();
506 if(! image) {
509 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
510 if(image->pixmap == None) {
511 free(image);
515 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
517 Draw3DBorder(image->pixmap, (h / 2) - 4, (h / 2) - 4, 9, 9, 1, cp,
520 image->width = h;
521 image->height = h;
523 return (image);
528 Image *image;
537 image = AllocImage();
538 if(! image) {
541 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
542 if(image->pixmap == None) {
543 free(image);
547 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
549 Draw3DBorder(image->pixmap, (h / 2) - idepth,
554 image->width = h;
555 image->height = h;
556 return (image);
561 Image *image;
570 image = AllocImage();
571 if(! image) {
574 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
575 if(image->pixmap == None) {
576 free(image);
580 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
582 Draw3DBorder(image->pixmap,
588 image->width = h;
589 image->height = h;
590 return (image);
595 Image *image;
604 image = AllocImage();
605 if(! image) {
608 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
609 if(image->pixmap == None) {
610 free(image);
614 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
616 Draw3DBorder(image->pixmap,
622 image->width = h;
623 image->height = h;
624 return (image);
629 Image *image;
637 image = AllocImage();
638 if(! image) {
641 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
642 if(image->pixmap == None) {
643 free(image);
647 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
650 Draw3DBorder(image->pixmap, 4, i, h - 8, 4, 2, cp, off, true, false);
652 image->width = h;
653 image->height = h;
654 image);
659 Image *image;
667 image = AllocImage();
668 if(! image) {
671 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
672 if(image->pixmap == None) {
673 free(image);
677 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
679 Draw3DBorder(image->pixmap, 0, h / 4, ((3 * h) / 4) + 1, ((3 * h) / 4) + 1,
681 Draw3DBorder(image->pixmap, 0, h / 2, (h / 2) + 1, (h / 2) + 1, 2, cp, off,
683 image->width = h;
684 image->height = h;
685 return (image);
690 Image *image;
699 image = AllocImage();
700 if(! image) {
703 image->pixmap = XCreatePixmap(dpy, Scr->Root, h, h, Scr->d_depth);
704 if(image->pixmap == None) {
705 free(image);
709 Draw3DBorder(image->pixmap, 0, 0, h, h, Scr->TitleButtonShadowDepth, cp,
711 Draw3DBorder(image->pixmap, Scr->TitleButtonShadowDepth + 2,
717 image->width = h;
718 image->height = h;
719 return (image);
730 * These yield [ctwm struct] Image's.
732 #define DEF_BI_ASPM(nm) Image *nm(ColorPair cp)
735 static Image *Create3DResizeAnimation(bool in, bool left, bool top,
737 static Image *Create3DMenuAnimation(bool up, ColorPair cp);
738 static Image *Create3DZoomAnimation(bool in, bool out, int n, ColorPair cp);
765 Image *
795 Image *image = (*pmtab[i].proc)(cp);
796 if(image == NULL) {
801 return image;
813 static Image *
818 Image *image, *im, *im1;
825 image = im1 = NULL;
846 if(image == NULL) {
847 image = im1 = im;
855 im1->next = image;
857 return image;
860 static Image *
864 Image *image, *im, *im1;
871 image = im1 = NULL;
891 if(image == NULL) {
892 image = im1 = im;
900 im1->next = image;
902 return image;
905 static Image *
909 Image *image, *im, *im1;
920 image = im1 = NULL;
935 if(image == NULL) {
936 image = im1 = im;
945 im1->next = image;
947 return image;