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 /* Number ���������å�                                                       */
19 /* (������Τ��)                                                            */
20 /*===========================================================================*/
21 /* ���Υե����������                                                        */
22 /*---------------------------------------------------------------------------*/
23 /* ���Υե�����ϡ��ץ饤�١��Ȥʥإå��ե�����Ǥ���                        */
24 /* �ץ饤�١��Ȥʥ��Ф˥�����������Ȥ��ʳ��ˤϡ�                          */
25 /* �����롼�ɤ��ƻ��Ѥ��ʤ��Ǥ���������                                    */
26 /* ���Υե���������롼�ɤ���С��ץ饤�١��Ȥʥ��Ф˥���������        */
27 /* ��ǽ�ˤʤ�ޤ���                                                          */
28 /*****************************************************************************/
29 
30 #ifndef _NumberP_h_INCLUDED_
31 #define _NumberP_h_INCLUDED_
32 
33 /*****************************************************************************/
34 /* ��������                                                                  */
35 /*****************************************************************************/
36 
37 #include "Number.h"
38 
39 /*****************************************************************************/
40 /* �إå��ե�����Υ����롼��(�ץ饤�١��Ȥʤ��)                          */
41 /*****************************************************************************/
42 
43 #include <X11/IntrinsicP.h>
44 #include <X11/CoreP.h>
45 
46 #include <stdio.h>
47 #include <stdlib.h>
48 #include <math.h>
49 
50 #include "converter.h"
51 #include "etc.h"
52 
53 /*****************************************************************************/
54 /* ��������(�ץ饤�١��Ȥʤ��)                                            */
55 /*****************************************************************************/
56 
57 /* None */
58 
59 /*****************************************************************************/
60 /* �������(�ץ饤�١��Ȥʤ��)                                              */
61 /*****************************************************************************/
62 
63 /* ���������åȤΥ��������Υ쥳���ɤ���� */
64 typedef struct _NumberPart {
65   Boolean active; /* ���褹�뤫���ʤ����Υե饰 */
66   int number;    /* ʸ�����ֹ�(1��12) */
67 
68   /* �ƥ��������å�(Clock ���������å�)�Υ�����������Ψ */
69   int face_size; /* ���פ�ʸ���ĤΥ����� */
70   int face_width; /* ���פ�ʸ���Ĥ��� */
71   int face_height; /* ���פ�ʸ���Ĥι⤵ */
72   int ratio, ratio_x, ratio_y; /* ����Ψ */
73 
74   Dimension length; /* ��ʸ��������Ⱦ�� */
75 
76   Pixmap figure; /* ��ʸ���Υԥå����ޥå� */
77   Pixmap mask;   /* ��ʸ���Υޥ������� */
78   XPoint size;   /* ��ʸ���Υԥå����ޥåפΥ����� */
79 
80   /* ��ʸ����ꥵ����������� */
81   Pixmap resized_figure;
82   Pixmap resized_mask;
83   int resized_figure_width, resized_figure_height;
84 
85   /* ������ GC */
86   GC gc_black, gc_white;
87   GC gc_copy_and, gc_copy_or, gc_copy_andinv;
88 } NumberPart;
89 
90 typedef struct _NumberRec {
91   CorePart core;
92   NumberPart number;
93 } NumberRec;
94 
95 typedef struct _NumberClassPart {
96   int dummy; /* ���ߡ� */
97 } NumberClassPart;
98 
99 typedef struct _NumberClassRec {
100   CoreClassPart core_class;
101   NumberClassPart number_class;
102 } NumberClassRec;
103 
104 /*****************************************************************************/
105 /* �����ѿ������(�ץ饤�١��Ȥʤ��)                                        */
106 /*****************************************************************************/
107 
108 extern NumberClassRec numberClassRec;
109 
110 /*****************************************************************************/
111 /* �ؿ�                                                                      */
112 /*****************************************************************************/
113 
114 /* None */
115 
116 /*****************************************************************************/
117 /* �����ޤ�                                                                  */
118 /*****************************************************************************/
119 
120 #endif
121 
122 /*****************************************************************************/
123 /* End of File.                                                              */
124 /*****************************************************************************/
125