Crossfire Client, Branch
R11627
|
00001 /* png.c */ 00002 extern uint8 *png_to_data(uint8 *data, int len, uint32 *width, uint32 *height); 00003 extern uint8 *rescale_rgba_data(uint8 *data, int *width, int *height, int scale); 00004 extern long pngx_find_color(Display *display, Colormap *cmap, int red, int green, int blue); 00005 extern int init_pngx_loader(Display *display); 00006 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); 00007 extern int rgba_to_xpixmap(Display *display, Drawable draw, uint8 *pixels, Pixmap *pix, Pixmap *mask, Colormap *cmap, unsigned long width, unsigned long height); 00008 extern int create_and_rescale_image_from_data(Cache_Entry *ce, int pixmap_num, uint8 *rgba_data, int width, int height); 00009 extern void get_map_image_size(int face, uint8 *w, uint8 *h); 00010 /* sound.c */ 00011 extern void signal_pipe(int i); 00012 extern int init_sounds(void); 00013 extern void SoundCmd(unsigned char *data, int len); 00014 extern void Sound2Cmd(unsigned char *data, int len); 00015 extern void MusicCmd(const char *data, int len); 00016 /* x11.c */ 00017 extern int error_handler(Display *dp, XErrorEvent *xe); 00018 extern void event_loop(void); 00019 extern void end_windows(void); 00020 extern void write_ch(char key); 00021 extern void draw_prompt(const char *str); 00022 extern void draw_info(const char *str, int color); 00023 extern void draw_color_info(int colr, const char *buf); 00024 extern void draw_stats(int redraw); 00025 extern void draw_message_window(int redraw); 00026 extern void open_container(item *op); 00027 extern void close_container(item *op); 00028 extern void draw_lists(void); 00029 extern void set_show_icon(const char *s); 00030 extern void set_show_weight(const char *s); 00031 extern void set_weight_limit(uint32 wlim); 00032 extern void set_scroll(const char *s); 00033 extern void set_autorepeat(const char *s); 00034 extern int get_info_width(void); 00035 extern void menu_clear(void); 00036 extern void item_event_item_deleting(item *it); 00037 extern void item_event_container_clearing(item *container); 00038 extern void item_event_item_changed(item *it); 00039 extern char *get_metaserver(void); 00040 extern void check_x_events(void); 00041 extern int init_windows(int argc, char **argv); 00042 extern void display_map_newmap(void); 00043 extern void resize_map_window(int x, int y); 00044 extern void x_set_echo(void); 00045 extern void display_map_doneupdate(int redraw, int notice); 00046 extern int display_mapscroll(int dx, int dy); 00047 extern int associate_cache_entry(Cache_Entry *ce, int pixnum); 00048 extern void redisplay_stats(void); 00049 extern void display_map_startupdate(void); 00050 extern void draw_magic_map(void); 00051 extern void magic_map_flash_pos(void); 00052 extern void reset_image_data(void); 00053 extern void save_winpos(void); 00054 extern void set_window_pos(void); 00055 extern void load_defaults(void); 00056 extern void save_defaults(void); 00057 extern void command_show(const char *params); 00058 extern void cleanup_connection(void); 00059 extern int main(int argc, char *argv[]); 00060 /* xutil.c */ 00061 extern void init_cache_data(void); 00062 extern void allocate_colors(Display *disp, Window w, long screen_num, Colormap *colormap, XColor discolor[16]); 00063 extern void parse_keybind_line(char *buf, int line, int standard); 00064 extern void init_keys(void); 00065 extern void parse_key_release(KeyCode kc, KeySym ks); 00066 extern void parse_key(char key, KeyCode keycode, KeySym keysym, int repeated); 00067 extern void bind_key(const char *params); 00068 extern void configure_keys(KeyCode k, KeySym keysym); 00069 extern void unbind_key(const char *params); 00070 extern int find_face_in_private_cache(char *face, int checksum); 00071 extern void image_update_download_status(int start, int end, int total); 00072 extern void reset_map(void); 00073 extern void addsmooth(uint16 face, uint16 smooth_face); 00074 extern void client_tick(uint32 tick); 00075 extern void client_pickup(uint32 pickup);