10#include <X11/Xmu/Drawing.h>
26#define DEF_BI_PPM(nm) Pixmap nm(unsigned int *widthp, unsigned int *heightp)
62 if(!name || name[0] !=
':') {
71 for(i = 0; i < (
sizeof pmtab) / (
sizeof pmtab[0]); i++) {
95 int h =
Scr->TBInfo.width -
Scr->TBInfo.border * 2;
125 return Scr->tbpm.xlogo;
131 int h =
Scr->TBInfo.width -
Scr->TBInfo.border * 2;
182 return Scr->tbpm.resize;
186#define questionmark_width 8
187#define questionmark_height 8
189 0x38, 0x7c, 0x64, 0x30, 0x18, 0x00, 0x18, 0x18
196 if(
Scr->tbpm.question ==
None) {
205 return Scr->tbpm.question;
207#undef questionmark_height
208#undef questionmark_width
219 int h =
Scr->TBInfo.width -
Scr->TBInfo.border * 2;
242 return Scr->tbpm.delete;
257#define DEF_BI_SPM(nm) Image *nm(ColorPair cp)
300 if(!name || (
strncmp(name,
":xpm:", 5) != 0)) {
304 for(i = 0; i < (
sizeof pmtab) / (
sizeof pmtab[0]); i++) {
351 FB(cp.shadc, cp.shadd);
370 FB(cp.shadd, cp.shadc);
431 point = ((h / 2 - 2) * 2 + 1) / 3;
445 FB(cp.shadd, cp.shadc);
449 FB(cp.shadc, cp.shadd);
453 h / 2 + 1, h -
point - 1);
485 ((h - 6) * 2 / 3) + 1, 1, cp,
on,
true,
false);
487 ((h - 6) / 3) + 1, 1, cp,
on,
true,
false);
583 Scr->TitleButtonShadowDepth + 2,
585 h - 2 * (
Scr->TitleButtonShadowDepth + 2),
618 Scr->TitleButtonShadowDepth + 2,
620 h - 2 * (
Scr->TitleButtonShadowDepth + 2),
649 for(i = 4; i < h - 7; i += 5) {
680 2, cp,
off,
true,
false);
712 Scr->TitleButtonShadowDepth + 2,
713 h - 2 * (
Scr->TitleButtonShadowDepth + 2),
714 h - 2 * (
Scr->TitleButtonShadowDepth + 2),
732#define DEF_BI_ASPM(nm) Image *nm(ColorPair cp)
789 if(!name || (
strncmp(name,
"%xpm:", 5) != 0)) {
793 for(i = 0; i < (
sizeof pmtab) / (
sizeof pmtab[0]); i++) {
826 for(i = (
in ? 0 : (h / 4) - 1); (i < h / 4) && (i >= 0); i += (
in ? 1 : -1)) {
838 for(
j = i;
j <= h;
j += (h / 4)) {
840 h -
j, h -
j, 2, cp,
off,
true,
false);
872 for(
j = (
up ? 4 : 0);
j != (
up ? -1 : 5);
j += (
up ? -1 : 1)) {
884 for(i =
j; i < h - 3; i += 5) {
921 for(
j = (
out ? -1 : 1) ;
j < (
in ? 2 : 0);
j += 2) {
922 for(
k = (
j > 0 ? 0 :
n - 1) ; (
k >= 0) && (
k <
n);
k +=
j) {
926 cp,
off,
true,
false);
927 for(i = 2 +
k; i < (h / 2); i +=
n) {
1023 unsigned long fg,
unsigned long bg)
1025 unsigned char gray_bits[] = { 0x02, 0x01 };
#define FB(fix_fore, fix_back)
void Draw3DBorder(Window w, int x, int y, int width, int height, int bw, ColorPair cp, ButtonState state, bool fill, bool forcebw)
Pixmap CreateMenuIcon(int height, unsigned int *widthp, unsigned int *heightp)
#define TBPM_3DSUNKEN_RESIZE
static Image * Create3DBoxImage(ColorPair cp)
static Image * Create3DMenuAnimation(bool up, ColorPair cp)
static Image * Create3DResizeAnimation(bool in, bool left, bool top, ColorPair cp)
static Image * Create3DResizeOutTopAnimation(ColorPair cp)
static Image * Create3DDotImage(ColorPair cp)
static Pixmap CreateDotPixmap(unsigned int *widthp, unsigned int *heightp)
static Image * Create3DZoomOutAnimation(ColorPair cp)
static Pixmap CreateResizePixmap(unsigned int *widthp, unsigned int *heightp)
static Image * Create3DResizeImage(ColorPair cp)
static char questionmark_bits[]
static Image * Create3DMenuImage(ColorPair cp)
Pixmap get_builtin_plain_pixmap(const char *name, unsigned int *widthp, unsigned int *heightp)
static Image * Create3DResizeInBotAnimation(ColorPair cp)
static Image * Create3DZoomAnimation(bool in, bool out, int n, ColorPair cp)
static Image * Create3DZoomInAnimation(ColorPair cp)
static Image * Create3DVertBarImage(ColorPair cp)
static Pixmap CreateQuestionPixmap(unsigned int *widthp, unsigned int *heightp)
static Image * Create3DResizeInTopAnimation(ColorPair cp)
static Image * Create3DSunkenResizeImage(ColorPair cp)
#define questionmark_height
static Image * Create3DResizeOutBotAnimation(ColorPair cp)
#define questionmark_width
static Image * Create3DZoomImage(ColorPair cp)
static Image * Create3DMazeInAnimation(ColorPair cp)
static Image * Create3DCrossImage(ColorPair cp)
Pixmap mk_blackgray_pixmap(const char *which, Drawable dw, unsigned long fg, unsigned long bg)
static Image * Create3DZoomInOutAnimation(ColorPair cp)
static Image * Create3DMenuDownAnimation(ColorPair cp)
static Image * Create3DMazeOutAnimation(ColorPair cp)
Image * get_builtin_scalable_pixmap(const char *name, ColorPair cp)
static Image * Create3DBarImage(ColorPair cp)
static Image * Create3DMenuUpAnimation(ColorPair cp)
Image * get_builtin_animated_pixmap(const char *name, ColorPair cp)
static Image * Create3DIconifyImage(ColorPair cp)
void get_blackgray_size(int *width, int *height)
static Pixmap CreateXLogoPixmap(unsigned int *widthp, unsigned int *heightp)
static Pixmap CreateMenuPixmap(unsigned int *widthp, unsigned int *heightp)