1 /* 2 * oneko - X11 $@G-(J 3 * 4 * $Header: /home/sun/unix/kato/xsam/oneko/oneko.h,v 1.4 90/10/18 16:52:57 kato Exp Locker: kato $ 5 */ 6 7 /* 8 * $@%$%s%/%k!<%I%U%!%$%k(J 9 */ 10 11 #include <X11/Xlib.h> 12 #include <X11/Xutil.h> 13 #include <X11/extensions/shape.h> 14 15 #include <stdio.h> 16 #include <stdlib.h> 17 #include <string.h> 18 19 #include <signal.h> 20 #include <math.h> 21 #include <sys/time.h> 22 23 24 /* 25 * $@%+!<%=%k%S%C%H%^%C%W%U%!%$%k$NFI$_9~$_(J 26 */ 27 28 #include "cursors/cursor.include" 29 30 /* 31 * $@IaDL$NG-MQ%S%C%H%^%C%W%U%!%$%k$NFI$_9~$_(J 32 * These include files in the directories noted. 33 * These are the bitmaps. 34 */ 35 36 #include "bitmaps/neko/neko.include" 37 #include "bitmaps/tora/tora.include" 38 #include "bitmaps/dog/dog.include" 39 #include "bitmaps/bsd/bsd.include" 40 #include "bitmaps/sakura/sakura.include" 41 #include "bitmaps/tomoyo/tomoyo.include" 42 43 /* These are the bitmasks that allow the use of the shape extension. */ 44 45 #include "bitmasks/neko/neko.mask.include" 46 #include "bitmasks/dog/dog.mask.include" 47 #include "bitmasks/bsd/bsd.mask.include" 48 #include "bitmasks/sakura/sakura.mask.include" 49 #include "bitmasks/tomoyo/tomoyo.mask.include" 50 51 /* 52 * $@Dj?tDj5A(J 53 */ 54 55 #define BITMAP_WIDTH 32 /* $@#1%-%c%i%/%?$NI}(J ($@%T%/%;%k(J) */ 56 #define BITMAP_HEIGHT 32 /* $@#1%-%c%i%/%?$N9b$5(J ($@%T%/%;%k(J) */ 57 58 #define AVAIL_KEYBUF 255 59 #define MAX_TICK 9999 /* Odd Only! */ 60 61 #define DEFAULT_FOREGROUND "black" /* $@%U%)%"%0%i%&%s%I%+%i!<(J */ 62 #define DEFAULT_BACKGROUND "white" /* $@%P%C%/%0%i%&%s%I%+%i!<(J */ 63 64 /* 65 * $@G-$N>uBVDj?t(J 66 */ 67 68 #define NEKO_STOP 0 /* $@N)$A;_$^$C$?(J */ 69 #define NEKO_JARE 1 /* $@4i$r@v$C$F$$$k(J */ 70 #define NEKO_KAKI 2 /* $@F,$rA_$$$F$$$k(J */ 71 #define NEKO_AKUBI 3 /* $@$"$/$S$r$7$F$$$k(J */ 72 #define NEKO_SLEEP 4 /* $@?2$F$7$^$C$?(J */ 73 #define NEKO_AWAKE 5 /* $@L\$,3P$a$?(J */ 74 #define NEKO_U_MOVE 6 /* $@>e$K0\F0Cf(J */ 75 #define NEKO_D_MOVE 7 /* $@2<$K0\F0Cf(J */ 76 #define NEKO_L_MOVE 8 /* $@:8$K0\F0Cf(J */ 77 #define NEKO_R_MOVE 9 /* $@1&$K0\F0Cf(J */ 78 #define NEKO_UL_MOVE 10 /* $@:8>e$K0\F0Cf(J */ 79 #define NEKO_UR_MOVE 11 /* $@1&>e$K0\F0Cf(J */ 80 #define NEKO_DL_MOVE 12 /* $@:82<$K0\F0Cf(J */ 81 #define NEKO_DR_MOVE 13 /* $@1&2<$K0\F0Cf(J */ 82 #define NEKO_U_TOGI 14 /* $@>e$NJI$r0z$CA_$$$F$$$k(J */ 83 #define NEKO_D_TOGI 15 /* $@2<$NJI$r0z$CA_$$$F$$$k(J */ 84 #define NEKO_L_TOGI 16 /* $@:8$NJI$r0z$CA_$$$F$$$k(J */ 85 #define NEKO_R_TOGI 17 /* $@1&$NJI$r0z$CA_$$$F$$$k(J */ 86 87 /* 88 * $@G-$N%"%K%a!<%7%g%s7+$jJV$72s?t(J 89 */ 90 91 #define NEKO_STOP_TIME 4 92 #define NEKO_JARE_TIME 10 93 #define NEKO_KAKI_TIME 4 94 #define NEKO_AKUBI_TIME 6 /* $@$b$H$b$H#3$@$C$?$1$ID9$$J}$,$$$$(J */ 95 #define NEKO_AWAKE_TIME 3 96 #define NEKO_TOGI_TIME 10 97 98 #define PI_PER8 ((double)3.1415926535/(double)8) 99 100 #define MAXDISPLAYNAME (64 + 5) /* $@%G%#%9%W%l%$L>$ND9$5(J */ 101 102 #define NOTDEFINED (-1) 103 104 /* 105 * $@%^%/%mDj5A(J 106 */ 107 108 #define IsTrue(str) (strcmp((str), "true") == 0) 109