forked from accreator/Yixin-Board
-
Notifications
You must be signed in to change notification settings - Fork 3
/
yixin.h
37 lines (36 loc) · 1.6 KB
/
yixin.h
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
#include <cairo.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <gio/gio.h>
#include "gdk/gdkkeysyms.h"
void send_command(char *command);
void make_move(int y, int x);
gboolean on_button_press_windowmain(GtkWidget *widget, GdkEventButton *event, GdkWindowEdge edge);
int is_integer(const char *str);
void show_dialog_settings(GtkWidget *widget, gpointer data);
void show_dialog_load(GtkWidget *widget, gpointer data);
void show_dialog_save(GtkWidget *widget, gpointer data);
void show_dialog_about(GtkWidget *widget, gpointer data);
void show_dialog_move5N(GtkWidget *widget, gpointer data);
void new_game(GtkWidget *widget, gpointer data);
void change_rule(GtkWidget *widget, gpointer data);
void change_side(GtkWidget *widget, gpointer data);
void change_side_menu(int flag, GtkWidget *w);
void clock_timer_change_status(int status);
void clock_timer_init();
void execute_command(gchar *command);
gint sleep_timeout(gpointer data);
void change_piece(GtkWidget *widget, gpointer data);
void stop_thinking(GtkWidget *widget, gpointer data);
GdkPixbuf * copy_subpixbuf(GdkPixbuf *_src, int src_x, int src_y, int width, int height);
void create_windowmain();
gboolean iochannelout_watch(GIOChannel *channel, GIOCondition cond, gpointer data);
gboolean iochannelerr_watch(GIOChannel *channel, GIOCondition cond, gpointer data);
void load_setting(int def_boardsizeh, int def_boardsizew, int def_language, int def_toolbar);
void save_setting();
void load_engine();
void init_engine();
void yixin_quit();
#define max(x, y) ((x)>(y)?(x):(y))
#define min(x, y) ((x)<(y)?(x):(y))
#define VERSION "2.1"