File: AfterImage.h

package info (click to toggle)
xfireworks 1.3-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,036 kB
  • sloc: ansic: 6,896; makefile: 383; sh: 40
file content (45 lines) | stat: -rw-r--r-- 2,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*****************************************************************************/
/* 花火の玉の残像を扱うクラス                                                */
/*****************************************************************************/

#ifndef _XFIREWORKS_AfterImage_h_INCLUDED_
#define _XFIREWORKS_AfterImage_h_INCLUDED_

typedef struct _AfterImages * AfterImages;

#include <X11/Xlib.h>

#include "Obj.h"

/*===========================================================================*/
/* メンバの取得                                                              */
/*===========================================================================*/

int AfterImages_GetArraySize(AfterImages after_images);
int AfterImages_GetNumber(AfterImages after_images);
XArc * AfterImages_GetArcs(AfterImages after_images);

/*===========================================================================*/
/* オブジェクトの生成と削除                                                  */
/*===========================================================================*/

int AfterImages_Initialize(AfterImages after_images,
			   int size, int number, double * x, double * y,
			   int x_min, int y_min, int x_max, int y_max,
			   ObjList list);
AfterImages AfterImages_Create(int size, int number, double * x, double * y,
			       int x_min, int y_min, int x_max, int y_max,
			       ObjList list);
AfterImages AfterImages_Destroy(AfterImages after_images);

/*===========================================================================*/
/* 現在の色の値をGCで返し,current を一つ先に進める.(最後には NULL を返す)  */
/*===========================================================================*/

GC AfterImages_GetGC(AfterImages after_images);

#endif

/*****************************************************************************/
/* End of File.                                                              */
/*****************************************************************************/