File: Disp.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 (82 lines) | stat: -rw-r--r-- 3,858 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef _XFIREWORKS_Disp_h_INCLUDED_
#define _XFIREWORKS_Disp_h_INCLUDED_

typedef struct _Disp * Disp; /* Disp クラスの定義 */

#include <X11/Xlib.h>

Display * Disp_GetDisplay(Disp disp);
Window Disp_GetWindow(Disp disp);
Colormap Disp_GetColormap(Disp disp);
int Disp_GetWidth( Disp disp);
int Disp_GetHeight(Disp disp);

/*===========================================================================*/
/* 色の取得                                                                  */
/*===========================================================================*/

unsigned long Disp_GetPixel(Disp disp, char * color_name);

/*===========================================================================*/
/* GC の作成と解放                                                           */
/*===========================================================================*/

GC Disp_CreateGC(Disp disp);
int Disp_DestroyGC(Disp disp, GC gc);

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

/*---------------------------------------------------------------------------*/
/* オブジェクトの生成                                                        */
/*---------------------------------------------------------------------------*/

Disp Disp_Create(char * display_name, int direct_draw);

/*---------------------------------------------------------------------------*/
/* オブジェクトの削除                                                        */
/*---------------------------------------------------------------------------*/

Disp Disp_Destroy(Disp disp);

/*---------------------------------------------------------------------------*/
/* フラッシュ                                                                */
/*---------------------------------------------------------------------------*/

int Disp_Flush(Disp disp);

/*---------------------------------------------------------------------------*/
/* X サーバとの Sync.(イベントキューを廃棄する)                             */
/*---------------------------------------------------------------------------*/

int Disp_Sync(Disp disp);

/*---------------------------------------------------------------------------*/
/* ピックスマップのクリア                                                    */
/*---------------------------------------------------------------------------*/

int Disp_ClearPixmap(Disp disp, GC gc);

/*---------------------------------------------------------------------------*/
/* ディスプレイのクリア                                                      */
/*---------------------------------------------------------------------------*/

int Disp_ClearDisplay(Disp disp, unsigned long pixel);

/*---------------------------------------------------------------------------*/
/* 円の描画                                                                  */
/*---------------------------------------------------------------------------*/

int Disp_DrawFilledCircle(Disp disp, GC gc, int x, int y, int r);
int Disp_DrawFilledCircles(Disp disp, GC gc, XArc * arcs, int n);

/*****************************************************************************/
/* ここまで                                                                  */
/*****************************************************************************/

#endif /* _XFIREWORKS_Disp_h_INCLUDED_ */

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