Crossfire Client, Branches  R11627
x11proto.h
Go to the documentation of this file.
1 /* png.c */
2 extern uint8 *png_to_data(uint8 *data, int len, uint32 *width, uint32 *height);
3 extern uint8 *rescale_rgba_data(uint8 *data, int *width, int *height, int scale);
4 extern long pngx_find_color(Display *display, Colormap *cmap, int red, int green, int blue);
5 extern int init_pngx_loader(Display *display);
6 extern int png_to_xpixmap(Display *display, Drawable draw, unsigned char *data, int len, Pixmap *pix, Pixmap *mask, Colormap *cmap, unsigned long *width, unsigned long *height);
7 extern int rgba_to_xpixmap(Display *display, Drawable draw, uint8 *pixels, Pixmap *pix, Pixmap *mask, Colormap *cmap, unsigned long width, unsigned long height);
8 extern int create_and_rescale_image_from_data(Cache_Entry *ce, int pixmap_num, uint8 *rgba_data, int width, int height);
9 extern void get_map_image_size(int face, uint8 *w, uint8 *h);
10 /* sound.c */
11 extern void signal_pipe(int i);
12 extern int init_sounds(void);
13 extern void SoundCmd(unsigned char *data, int len);
14 extern void Sound2Cmd(unsigned char *data, int len);
15 extern void MusicCmd(const char *data, int len);
16 /* x11.c */
17 extern int error_handler(Display *dp, XErrorEvent *xe);
18 extern void event_loop(void);
19 extern void end_windows(void);
20 extern void write_ch(char key);
21 extern void draw_prompt(const char *str);
22 extern void draw_info(const char *str, int color);
23 extern void draw_color_info(int colr, const char *buf);
24 extern void draw_stats(int redraw);
25 extern void draw_message_window(int redraw);
26 extern void open_container(item *op);
27 extern void close_container(item *op);
28 extern void draw_lists(void);
29 extern void set_show_icon(const char *s);
30 extern void set_show_weight(const char *s);
31 extern void set_weight_limit(uint32 wlim);
32 extern void set_scroll(const char *s);
33 extern void set_autorepeat(const char *s);
34 extern int get_info_width(void);
35 extern void menu_clear(void);
36 extern void item_event_item_deleting(item *it);
37 extern void item_event_container_clearing(item *container);
38 extern void item_event_item_changed(item *it);
39 extern char *get_metaserver(void);
40 extern void check_x_events(void);
41 extern int init_windows(int argc, char **argv);
42 extern void display_map_newmap(void);
43 extern void resize_map_window(int x, int y);
44 extern void x_set_echo(void);
45 extern void display_map_doneupdate(int redraw, int notice);
46 extern int display_mapscroll(int dx, int dy);
47 extern int associate_cache_entry(Cache_Entry *ce, int pixnum);
48 extern void redisplay_stats(void);
49 extern void display_map_startupdate(void);
50 extern void draw_magic_map(void);
51 extern void magic_map_flash_pos(void);
52 extern void reset_image_data(void);
53 extern void save_winpos(void);
54 extern void set_window_pos(void);
55 extern void load_defaults(void);
56 extern void save_defaults(void);
57 extern void command_show(const char *params);
58 extern void cleanup_connection(void);
59 extern int main(int argc, char *argv[]);
60 /* xutil.c */
61 extern void init_cache_data(void);
62 extern void allocate_colors(Display *disp, Window w, long screen_num, Colormap *colormap, XColor discolor[16]);
63 extern void parse_keybind_line(char *buf, int line, int standard);
64 extern void init_keys(void);
65 extern void parse_key_release(KeyCode kc, KeySym ks);
66 extern void parse_key(char key, KeyCode keycode, KeySym keysym, int repeated);
67 extern void bind_key(const char *params);
68 extern void configure_keys(KeyCode k, KeySym keysym);
69 extern void unbind_key(const char *params);
70 extern int find_face_in_private_cache(char *face, int checksum);
71 extern void image_update_download_status(int start, int end, int total);
72 extern void reset_map(void);
73 extern void addsmooth(uint16 face, uint16 smooth_face);
74 extern void client_tick(uint32 tick);
75 extern void client_pickup(uint32 pickup);
void load_defaults(void)
Definition: config.c:710
int get_info_width(void)
Definition: gx11.c:4453
void parse_key_release(KeyCode kc, KeySym ks)
Definition: xutil.c:537
static int height
Definition: mapdata.c:104
void image_update_download_status(int start, int end, int total)
Definition: image.c:419
void draw_magic_map(void)
Definition: gx11.c:4571
void reset_map(void)
Definition: map.c:76
void close_container(item *op)
Definition: inventory.c:1342
void open_container(item *op)
Definition: inventory.c:1334
void draw_info(const char *str, int color)
Definition: gx11.c:1773
int init_windows(int argc, char **argv)
Definition: gx11.c:4997
void client_pickup(uint32 pickup)
Definition: gx11.c:4524
void Sound2Cmd(unsigned char *data, int len)
Definition: sound.c:151
void redisplay_stats(void)
Definition: x11.c:3165
void check_x_events(void)
Definition: x11.c:2567
void set_autorepeat(const char *s)
Definition: gx11.c:4448
void display_map_startupdate(void)
Definition: gx11.c:5428
void set_show_weight(const char *s)
Definition: inventory.c:1258
snd_pcm_hw_params_t * params
Definition: alsa9.c:111
void set_show_icon(const char *s)
Definition: inventory.c:1303
uint8 * png_to_data(uint8 *data, int len, uint32 *width, uint32 *height)
Definition: png.c:63
static XColor discolor[16]
Definition: x11.c:191
void command_show(const char *params)
Definition: inventory.c:1153
int total
Definition: gx11.c:322
void display_map_newmap(void)
Definition: gx11.c:5319
void set_window_pos(void)
Definition: gx11.c:4865
void get_map_image_size(int face, uint8 *w, uint8 *h)
Definition: image.c:459
int rgba_to_xpixmap(Display *display, Drawable draw, uint8 *pixels, Pixmap *pix, Pixmap *mask, Colormap *cmap, unsigned long width, unsigned long height)
Definition: png.c:811
int init_pngx_loader(Display *display)
Definition: png.c:482
uint8 * rescale_rgba_data(uint8 *data, int *width, int *height, int scale)
Definition: png.c:244
int associate_cache_entry(Cache_Entry *ce, int pixnum)
Definition: image.c:372
static int width
Definition: mapdata.c:104
void event_loop(void)
Definition: main.c:234
void resize_map_window(int x, int y)
Definition: gx11.c:5324
uint32 tick
Definition: client.c:70
void item_event_container_clearing(item *container)
Definition: inventory.c:525
void reset_image_data(void)
Definition: image.c:387
void x_set_echo(void)
Definition: gx11.c:4488
void display_map_doneupdate(int redraw, int notice)
Definition: gx11.c:5300
Pixmap mask
Definition: xutil.c:67
void magic_map_flash_pos(void)
Definition: gx11.c:4766
void item_event_item_deleting(item *it)
Definition: inventory.c:596
void end_windows(void)
Definition: x11.c:402
void write_ch(char key)
Definition: x11.c:585
Display * display
Definition: x11.c:184
long pngx_find_color(Display *display, Colormap *cmap, int red, int green, int blue)
Definition: png.c:416
int find_face_in_private_cache(char *face, int checksum)
Definition: xutil.c:1135
int display_mapscroll(int dx, int dy)
Definition: map.c:88
unsigned short uint16
Definition: client-types.h:79
void allocate_colors(Display *disp, Window w, long screen_num, Colormap *colormap, XColor discolor[16])
Definition: xutil.c:172
void client_tick(uint32 tick)
Definition: gx11.c:4510
void configure_keys(KeyCode k, KeySym keysym)
Definition: xutil.c:998
void addsmooth(uint16 face, uint16 smooth_face)
Definition: image.c:360
void bind_key(const char *params)
Definition: keys.c:648
void init_keys(void)
Definition: keys.c:302
void SoundCmd(unsigned char *data, int len)
Definition: sound.c:130
int png_to_xpixmap(Display *display, Drawable draw, unsigned char *data, int len, Pixmap *pix, Pixmap *mask, Colormap *cmap, unsigned long *width, unsigned long *height)
Definition: png.c:573
unsigned int uint32
Definition: client-types.h:77
void menu_clear(void)
Definition: gx11.c:3241
void set_weight_limit(uint32 wlim)
Definition: inventory.c:1245
void cleanup_connection(void)
Definition: gx11.c:329
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 parse_key(char key, KeyCode keycode, KeySym keysym, int repeated)
Definition: xutil.c:578
void MusicCmd(const char *data, int len)
Definition: sound.c:199
Definition: client.h:480
void draw_color_info(int colr, const char *buf)
Definition: gx11.c:1851
int init_sounds(void)
Definition: sound.c:60
uint16 smooth_face
Definition: gx11.h:66
void parse_keybind_line(char *buf, int line, int standard)
Definition: xutil.c:280
char * get_metaserver(void)
Definition: gx11.c:5432
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 item_event_item_changed(item *it)
Definition: inventory.c:489
void set_scroll(const char *s)
Definition: gx11.c:4443
void draw_prompt(const char *str)
Definition: gx11.c:1310
int main(int argc, char *argv[])
Definition: gx11.c:5546
void init_cache_data(void)
Definition: image.c:542
void save_defaults(void)
Definition: config.c:848
void save_winpos(void)
Definition: gx11.c:4804
void draw_stats(int redraw)
Definition: gx11.c:2015
void signal_pipe(int i)
Definition: sound.c:45
uint32 checksum
Definition: image.c:62
void draw_message_window(int redraw)
Definition: gx11.c:2458
int error_handler(Display *dp, XErrorEvent *xe)
Definition: x11.c:286
void draw_lists(void)
Definition: inventory.c:1029