File: cgoban.h

package info (click to toggle)
cgoban 1.9.14-18
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,448 kB
  • sloc: ansic: 36,037; sh: 707; makefile: 259
file content (81 lines) | stat: -rw-r--r-- 1,894 bytes parent folder | download | duplicates (9)
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
/*
 * src/cgoban.h, part of Complete Goban (game program)
 * Copyright (C) 1995-1996 William Shubert.
 * See "configure.h.in" for more copyright information.
 */


#ifndef  _CGOBAN_H_
#ifndef  _WMS_STR_H_
#include <wms/str.h>
#endif
#ifndef  _CGBUTS_H_
#include "cgbuts.h"
#endif
#ifndef  _WMS_CLP_H_
#include <wms/clp.h>
#endif
#ifndef  _ABUT_H_
#include <abut/abut.h>
#endif
#ifndef  _BUT_BUT_H_
#include <but/but.h>
#endif
#ifndef  _ABUT_HELP_H_
#include <abut/help.h>
#endif
#ifndef  _HELP_H_
#include "help.h"
#endif
#ifndef  _ABUT_MSG_H_
#include <abut/msg.h>
#endif
#ifdef  _CGOBAN_H_
#error  Levelization Error.
#endif

#define  _CGOBAN_H_  1


/**********************************************************************
 * Data types
 **********************************************************************/
typedef struct Cgoban_struct  {
  char  **envp;  /* This is the original envp passed to main(). */
  Clp  *clp;
  ButEnv  *env;
  Abut  *abut;
  AbutHelp  *help;
  int  rcMajor, rcMinor, rcBugFix;
  Str  lastDirAccessed;

  int  fontH;
  bool  markLastMove, markHotStones;
  bool  showCoords;
  Pixmap  boardPixmap, bgPixmap, bgLitPixmap, bgShadPixmap;

  Rnd  *rnd;

  Cgbuts  cgbuts;

  MAGIC_STRUCT
} Cgoban;


/**********************************************************************
 * Globals
 **********************************************************************/
extern const ButKey  cg_return[];
extern const ButKey  cg_help[];


/**********************************************************************
 * Functions
 **********************************************************************/
extern Cgoban  *cgoban_create(int argc, char *argv[], char *envp[]);
extern void  cgoban_destroy(Cgoban *cg);
#define  cgoban_createMsgWindow(cg, title, message)  \
  abutMsg_winCreate((cg)->abut, (title), (message))
ButOut  cgoban_createHelpWindow(But *but);

#endif  /* _CGOBAN_H_ */