1 /*****************************************************************************/ 2 /* EyeClock - A clock application for X. The eyes follow the mouse pointer. */ 3 /* */ 4 /* EyeClock Copyright (C) 1998-1999 Sakai Hiroaki. */ 5 /* All Rights Reserved. */ 6 /* */ 7 /* EyeClock is a simple clock application for X11. You can put your favorite */ 8 /* picture on the face of the clock. And you can move the eyes of the */ 9 /* picture following the mouse pointer. */ 10 /* */ 11 /* This file is a part of EyeClock. */ 12 /* EyeClock is FREE SOFTWARE. You can use, copy, modify, and/or redistribute */ 13 /* it freely under the terms in the COPYRIGHT. */ 14 /* See the COPYRIGHT for more details. */ 15 /*****************************************************************************/ 16 17 /*****************************************************************************/ 18 /* Hand ���������å� */ 19 /* (����������) */ 20 /*===========================================================================*/ 21 /* ���Υե���������� */ 22 /*---------------------------------------------------------------------------*/ 23 /* ���Υե�����ϡ��������롼���ѤΥإå��ե�����Ǥ��� */ 24 /* ���ѻ��ˤϡ����Υե�����롼�ɤ��Ƥ��������� */ 25 /*****************************************************************************/ 26 27 #ifndef _Hand_h_INCLUDED_ 28 #define _Hand_h_INCLUDED_ 29 30 /*****************************************************************************/ 31 /* �������� */ 32 /*****************************************************************************/ 33 34 /*****************************************************************************/ 35 /* �إå��ե�����Υ��롼��(�ѥ֥�å��ʤ��) */ 36 /*****************************************************************************/ 37 38 #include <X11/Intrinsic.h> 39 #include <X11/StringDefs.h> 40 #include <X11/Core.h> 41 42 /*****************************************************************************/ 43 /* ��������(�ѥ֥�å��ʤ��) */ 44 /*****************************************************************************/ 45 46 typedef enum {OTHER_TYPE, SECOND_HAND, MINUTE_HAND, HOUR_HAND} HandType; 47 48 #ifndef XtNgeometry 49 #define XtNgeometry "geometry" 50 #endif 51 #ifndef XtCGeometry 52 #define XtCGeometry "Geometry" 53 #endif 54 55 #ifndef XtNactive 56 #define XtNactive "active" 57 #endif 58 #ifndef XtCActive 59 #define XtCActive "Active" 60 #endif 61 62 #ifndef XtNtype 63 #define XtNtype "type" 64 #endif 65 #ifndef XtCType 66 #define XtCType "Type" 67 #endif 68 69 #ifndef XtNfaceSize 70 #define XtNfaceSize "faceSize" 71 #endif 72 #ifndef XtCFaceSize 73 #define XtCFaceSize "FaceSize" 74 #endif 75 76 #ifndef XtNfaceWidth 77 #define XtNfaceWidth "faceWidth" 78 #endif 79 #ifndef XtCFaceWidth 80 #define XtCFaceWidth "FaceWidth" 81 #endif 82 83 #ifndef XtNfaceHeight 84 #define XtNfaceHeight "faceHeight" 85 #endif 86 #ifndef XtCFaceHeight 87 #define XtCFaceHeight "FaceHeight" 88 #endif 89 90 #ifndef XtNforeground 91 #define XtNforeground "foreground" 92 #endif 93 #ifndef XtCForeground 94 #define XtCForeground "Foreground" 95 #endif 96 97 #ifndef XtNwidth 98 #define XtNwidth "width" 99 #endif 100 #ifndef XtCWidth 101 #define XtCWidth "Width" 102 #endif 103 104 #ifndef XtNlength 105 #define XtNlength "length" 106 #endif 107 #ifndef XtCLength 108 #define XtCLength "Length" 109 #endif 110 111 #ifndef XtNratio 112 #define XtNratio "ratio" 113 #endif 114 #ifndef XtCRatio 115 #define XtCRatio "Ratio" 116 #endif 117 118 #ifndef XtNratioX 119 #define XtNratioX "ratioX" 120 #endif 121 #ifndef XtCRatioX 122 #define XtCRatioX "RatioX" 123 #endif 124 125 #ifndef XtNratioY 126 #define XtNratioY "ratioY" 127 #endif 128 #ifndef XtCRatioY 129 #define XtCRatioY "RatioY" 130 #endif 131 132 /*****************************************************************************/ 133 /* �������(�ѥ֥�å��ʤ��) */ 134 /*****************************************************************************/ 135 136 typedef struct _HandRec * HandWidget; 137 typedef struct _HandClassRec * HandWidgetClass; 138 139 /*****************************************************************************/ 140 /* �����ѿ������(�ѥ֥�å��ʤ��) */ 141 /*****************************************************************************/ 142 143 extern WidgetClass handWidgetClass; 144 145 /*****************************************************************************/ 146 /* �ؿ� */ 147 /*****************************************************************************/ 148 149 /*===========================================================================*/ 150 /* ���饹�Υ�åɤ���� */ 151 /*===========================================================================*/ 152 153 /*---------------------------------------------------------------------------*/ 154 /* ���� */ 155 /*---------------------------------------------------------------------------*/ 156 157 void HandDraw(Widget w, Pixmap pixmap, XPoint center, time_t t); 158 159 /*****************************************************************************/ 160 /* �����ޤ� */ 161 /*****************************************************************************/ 162 163 #endif 164 165 /*****************************************************************************/ 166 /* End of File. */ 167 /*****************************************************************************/ 168