Crossfire Client, Branches  R11627
gtkproto.h
Go to the documentation of this file.
1 /* config.c */
2 extern void main_window_destroyed(void);
3 extern void configdialog(GtkWidget *widget);
4 extern void load_defaults(void);
5 extern void save_defaults(void);
6 /* gx11.c */
7 extern void cleanup_connection(void);
8 extern void gtk_command_history(int direction);
9 extern void gtk_complete_command(void);
10 extern void draw_prompt(const char *str);
11 extern void draw_info(const char *str, int color);
12 extern void draw_color_info(int colr, const char *buf);
13 extern void draw_stats(int redraw);
14 extern void reset_stat_bars(void);
15 extern void resize_resistance_table(int resists_show);
16 extern void draw_message_window(int redraw);
17 extern void cclist_button_event(GtkWidget *gtklist, gint row, gint column, GdkEventButton *event);
18 extern void disconnect(GtkWidget *widget);
19 extern void menu_clear(void);
20 extern void client_exit(void);
21 extern void create_windows(void);
22 extern void set_scroll(const char *s);
23 extern void set_autorepeat(const char *s);
24 extern int get_info_width(void);
25 extern void do_clearlock(void);
26 extern void x_set_echo(void);
27 extern void draw_info_windows(void);
28 extern void client_tick(uint32 tick);
29 extern void client_pickup(uint32 pickup);
30 extern int do_timeout(void);
31 extern int gtk_checkchilds(void);
32 extern void draw_magic_map(void);
33 extern void magic_map_flash_pos(void);
34 extern void get_window_coord(GtkWidget *win, int *x, int *y, int *wx, int *wy, int *w, int *h);
35 extern void save_winpos(void);
36 extern void set_window_pos(void);
37 extern int init_windows(int argc, char **argv);
38 extern void display_map_doneupdate(int redraw, int notice);
39 extern void display_map_newmap(void);
40 extern void resize_map_window(int x, int y);
41 extern void display_map_startupdate(void);
42 extern char *get_metaserver(void);
43 extern void gtkLogListener(LogEntry *le);
44 extern void gLogHandler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data);
45 extern int main(int argc, char *argv[]);
46 /* help.c */
47 extern void chelpdialog(GtkWidget *widget);
48 /* image.c */
49 extern int create_and_rescale_image_from_data(Cache_Entry *ce, int pixmap_num, uint8 *rgba_data, int width, int height);
50 extern void addsmooth(uint16 face, uint16 smooth_face);
51 extern int associate_cache_entry(Cache_Entry *ce, int pixnum);
52 extern void reset_image_data(void);
53 extern void image_update_download_status(int start, int end, int total);
54 extern void get_map_image_size(int face, uint8 *w, uint8 *h);
55 /* inventory.c */
56 extern void item_event_item_changed(item *op);
57 extern void item_event_container_clearing(item *op);
58 extern void item_event_item_deleting(item *op);
59 extern void inventory_splitwin_toggling(void);
60 extern void get_look_display(GtkWidget *frame);
61 extern void get_inv_display(GtkWidget *frame);
62 extern void command_show(const char *params);
63 extern void update_list_labels(itemlist *l);
64 extern void set_weight_limit(uint32 wlim);
65 extern void set_show_weight(const char *s);
66 extern void itemlist_set_show_icon(itemlist *l, int new_setting);
67 extern void set_show_icon(const char *s);
68 extern void set_look_list_env(item *op);
69 extern void open_container(item *op);
70 extern void close_container(item *op);
71 extern void inventory_tick(void);
72 /* keys.c */
73 extern void init_keys(void);
74 extern void bind_key(const char *params);
75 extern void unbind_key(const char *params);
76 extern void keyrelfunc(GtkWidget *widget, GdkEventKey *event, GtkWidget *window);
77 extern void keyfunc(GtkWidget *widget, GdkEventKey *event, GtkWidget *window);
78 extern void draw_keybindings(GtkWidget *keylist);
79 extern void bind_callback(GtkWidget *gtklist, GdkEventButton *event);
80 extern void ckeyunbind(GtkWidget *gtklist, GdkEventButton *event);
81 extern void ckeyentry_callback(GtkWidget *widget, GdkEventKey *event, GtkWidget *window);
82 extern void ckeyclear(void);
83 /* map.c */
84 extern void reset_map(void);
85 extern int display_mapscroll(int dx, int dy);
86 extern void drawsmooth(int mx, int my, int layer, int picx, int picy);
87 extern void gtk_draw_map(int redraw);
88 /* png.c */
89 extern uint8 *png_to_data(uint8 *data, int len, uint32 *width, uint32 *height);
90 extern uint8 *rescale_rgba_data(uint8 *data, int *width, int *height, int scale);
91 extern int rgba_to_gdkpixmap(GdkWindow *window, uint8 *data, int width, int height, GdkPixmap **pix, GdkBitmap **mask, GdkColormap *colormap);
92 /* sdl.c */
93 extern void init_SDL(GtkWidget *sdl_window, int just_lightmap);
94 extern void sdl_gen_map(int redraw);
95 extern int sdl_mapscroll(int dx, int dy);
96 /* sound.c */
97 extern int init_sounds(void);
98 extern void SoundCmd(unsigned char *data, int len);
99 extern void Sound2Cmd(unsigned char *data, int len);
100 extern void MusicCmd(const char *data, int len);
101 /* text.c */
102 extern media_state write_media(GtkText *textarea, const char *message);
103 extern media_state write_media_with_state(GtkText *textarea, const char *message, media_state current_state);
104 extern const char *getMOTD(void);
105 extern const char *get_rules(void);
106 extern news_entry *get_news(void);
107 extern void init_text_callbacks(void);
108 extern void cleanup_textmanagers(void);
void inventory_splitwin_toggling(void)
Definition: inventory.c:790
void disconnect(GtkWidget *widget)
Definition: gx11.c:2773
static int height
Definition: mapdata.c:104
uint8 * png_to_data(uint8 *data, int len, uint32 *width, uint32 *height)
Definition: png.c:63
news_entry * get_news(void)
Definition: text.c:462
int get_info_width(void)
Definition: gx11.c:4453
void init_SDL(GtkWidget *sdl_window, int just_lightmap)
void load_defaults(void)
Definition: config.c:710
void drawsmooth(int mx, int my, int layer, int picx, int picy)
Definition: map.c:104
void set_autorepeat(const char *s)
Definition: gx11.c:4448
void configdialog(GtkWidget *widget)
Definition: config.c:379
void display_map_startupdate(void)
Definition: gx11.c:5428
static XEvent event
Definition: x11.c:193
void main_window_destroyed(void)
Definition: config.c:219
void item_event_container_clearing(item *op)
Definition: inventory.c:525
void gtk_command_history(int direction)
Definition: gx11.c:558
void do_clearlock(void)
Definition: gx11.c:4485
void ckeyclear(void)
Definition: keys.c:1251
void magic_map_flash_pos(void)
Definition: gx11.c:4766
void keyfunc(GtkWidget *widget, GdkEventKey *event, GtkWidget *window)
Definition: keys.c:1008
snd_pcm_hw_params_t * params
Definition: alsa9.c:111
int do_timeout(void)
Definition: gx11.c:4535
int total
Definition: gx11.c:322
void set_scroll(const char *s)
Definition: gx11.c:4443
void get_window_coord(GtkWidget *win, int *x, int *y, int *wx, int *wy, int *w, int *h)
Definition: gx11.c:4789
void inventory_tick(void)
Definition: inventory.c:1374
void gtk_draw_map(int redraw)
Definition: map.c:337
void bind_callback(GtkWidget *gtklist, GdkEventButton *event)
Definition: keys.c:1181
void menu_clear(void)
Definition: gx11.c:3241
void draw_keybindings(GtkWidget *keylist)
Definition: keys.c:1129
int main(int argc, char *argv[])
Definition: gx11.c:5546
void close_container(item *op)
Definition: inventory.c:1342
void save_winpos(void)
Definition: gx11.c:4804
void gtkLogListener(LogEntry *le)
Definition: gx11.c:5450
Definition: gx11.h:104
int init_sounds(void)
Definition: sound.c:60
void item_event_item_changed(item *op)
Definition: inventory.c:489
void draw_info_windows(void)
Definition: gx11.c:4492
void get_map_image_size(int face, uint8 *w, uint8 *h)
Definition: image.c:459
void display_map_newmap(void)
Definition: gx11.c:5319
static int width
Definition: mapdata.c:104
void image_update_download_status(int start, int end, int total)
Definition: image.c:419
void set_weight_limit(uint32 wlim)
Definition: inventory.c:1245
void display_map_doneupdate(int redraw, int notice)
Definition: gx11.c:5300
void gtk_complete_command(void)
Definition: gx11.c:587
void reset_image_data(void)
Definition: image.c:387
void set_show_icon(const char *s)
Definition: inventory.c:1303
uint32 tick
Definition: client.c:70
char * get_metaserver(void)
Definition: gx11.c:5432
void x_set_echo(void)
Definition: gx11.c:4488
void set_show_weight(const char *s)
Definition: inventory.c:1258
void bind_key(const char *params)
Definition: keys.c:648
Pixmap mask
Definition: xutil.c:67
int sdl_mapscroll(int dx, int dy)
int gtk_checkchilds(void)
Definition: gx11.c:4553
const char * getMOTD(void)
Definition: text.c:454
void Sound2Cmd(unsigned char *data, int len)
Definition: sound.c:151
void addsmooth(uint16 face, uint16 smooth_face)
Definition: image.c:360
void SoundCmd(unsigned char *data, int len)
Definition: sound.c:130
void create_windows(void)
Definition: gx11.c:4032
void draw_message_window(int redraw)
Definition: gx11.c:2458
void reset_map(void)
Definition: map.c:76
void client_pickup(uint32 pickup)
Definition: gx11.c:4524
void command_show(const char *params)
Definition: inventory.c:1153
void cleanup_connection(void)
Definition: gx11.c:329
void draw_info(const char *str, int color)
Definition: gx11.c:1773
int create_and_rescale_image_from_data(Cache_Entry *ce, int pixmap_num, uint8 *rgba_data, int width, int height)
Definition: image.c:252
void ckeyentry_callback(GtkWidget *widget, GdkEventKey *event, GtkWidget *window)
Definition: keys.c:1233
uint8 * rescale_rgba_data(uint8 *data, int *width, int *height, int scale)
Definition: png.c:244
void set_look_list_env(item *op)
Definition: inventory.c:1323
unsigned short uint16
Definition: client-types.h:79
void chelpdialog(GtkWidget *widget)
Definition: help.c:182
int rgba_to_gdkpixmap(GdkWindow *window, uint8 *data, int width, int height, GdkPixmap **pix, GdkBitmap **mask, GdkColormap *colormap)
Definition: png.c:407
void resize_map_window(int x, int y)
Definition: gx11.c:5324
void client_tick(uint32 tick)
Definition: gx11.c:4510
void draw_stats(int redraw)
Definition: gx11.c:2015
void ckeyunbind(GtkWidget *gtklist, GdkEventButton *event)
Definition: keys.c:1214
void item_event_item_deleting(item *op)
Definition: inventory.c:596
void MusicCmd(const char *data, int len)
Definition: sound.c:199
unsigned int uint32
Definition: client-types.h:77
void client_exit(void)
Definition: gx11.c:3269
void get_inv_display(GtkWidget *frame)
Definition: inventory.c:1084
Definition: client.h:480
int init_windows(int argc, char **argv)
Definition: gx11.c:4997
void get_look_display(GtkWidget *frame)
Definition: inventory.c:1021
void draw_color_info(int colr, const char *buf)
Definition: gx11.c:1851
int associate_cache_entry(Cache_Entry *ce, int pixnum)
Definition: image.c:372
void cclist_button_event(GtkWidget *gtklist, gint row, gint column, GdkEventButton *event)
Definition: gx11.c:2758
void draw_magic_map(void)
Definition: gx11.c:4571
void open_container(item *op)
Definition: inventory.c:1334
media_state write_media(GtkText *textarea, const char *message)
Definition: text.c:282
unsigned char uint8
Definition: client-types.h:81
Colormap colormap
Definition: x11.c:190
void unbind_key(const char *params)
Definition: keys.c:918
void gLogHandler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data)
Definition: gx11.c:5471
void draw_prompt(const char *str)
Definition: gx11.c:1310
void cleanup_textmanagers(void)
Definition: text.c:522
void save_defaults(void)
Definition: config.c:848
void init_text_callbacks(void)
Definition: text.c:515
int display_mapscroll(int dx, int dy)
Definition: map.c:88
void reset_stat_bars(void)
Definition: gx11.c:2264
media_state write_media_with_state(GtkText *textarea, const char *message, media_state current_state)
Definition: text.c:289
Definition: gx11.h:85
void itemlist_set_show_icon(itemlist *l, int new_setting)
Definition: inventory.c:1288
void sdl_gen_map(int redraw)
void resize_resistance_table(int resists_show)
Definition: gx11.c:2350
void keyrelfunc(GtkWidget *widget, GdkEventKey *event, GtkWidget *window)
Definition: keys.c:994
void update_list_labels(itemlist *l)
Definition: inventory.c:1182
void init_keys(void)
Definition: keys.c:302
void set_window_pos(void)
Definition: gx11.c:4865
const char * get_rules(void)
Definition: text.c:459