File: simpleboard.h

package info (click to toggle)
gnubg 0.90%2B20091206-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 23,660 kB
  • ctags: 7,575
  • sloc: ansic: 92,588; xml: 13,661; sh: 1,058; makefile: 473; python: 429; yacc: 295; sql: 237; lex: 221; php: 103; cs: 81; awk: 25
file content (33 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (2)
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
#if HAVE_PANGOCAIRO
typedef struct _SimpleBoardColor SimpleBoardColor;

/** \brief struct to hold the colors for points, dice, checkers, etc.*/
struct _SimpleBoardColor {
	float fill[3];
	float stroke[3];
	float text[3];
};

typedef struct _SimpleBoard SimpleBoard;
struct _SimpleBoard {
	SimpleBoardColor color_checker[2];
	SimpleBoardColor color_point[2];
	SimpleBoardColor color_cube;
	matchstate ms;
	gchar *annotation;
	gchar *header;
	gint text_size;
	gdouble size;
	gdouble surface_x;
	gdouble surface_y;
	cairo_t *cr;
};

extern gint simple_board_draw(SimpleBoard * board);

extern SimpleBoard *simple_board_new(matchstate * ms, cairo_t * cr);

extern SimpleBoard *simple_board_new_from_ids(gchar * position_id, gchar * matchid, cairo_t * cr);

extern void simple_board_destroy(SimpleBoard * board);
#endif