Crossfire Client, Branch  R11627
gtk2proto.h
Go to the documentation of this file.
00001 /* about.c */
00002 extern void menu_about(GtkMenuItem *menuitem, gpointer user_data);
00003 extern void on_about_close_clicked(GtkButton *button, gpointer user_data);
00004 /* config.c */
00005 extern void load_theme(int reload);
00006 extern void load_defaults(void);
00007 extern void save_defaults(void);
00008 extern void config_init(GtkWidget *window_root);
00009 extern void on_config_button_save_clicked(GtkButton *button, gpointer user_data);
00010 extern void on_config_button_apply_clicked(GtkButton *button, gpointer user_data);
00011 extern void on_config_button_close_clicked(GtkButton *button, gpointer user_data);
00012 extern void on_configure_activate(GtkMenuItem *menuitem, gpointer user_data);
00013 extern void save_winpos(void);
00014 extern void on_save_window_position_activate(GtkMenuItem *menuitem, gpointer user_data);
00015 extern void load_window_positions(GtkWidget *window_root);
00016 /* image.c */
00017 extern int create_and_rescale_image_from_data(Cache_Entry *ce, int pixmap_num, uint8 *rgba_data, int width, int height);
00018 extern void addsmooth(uint16 face, uint16 smooth_face);
00019 extern int associate_cache_entry(Cache_Entry *ce, int pixnum);
00020 extern void reset_image_data(void);
00021 extern void image_update_download_status(int start, int end, int total);
00022 extern void get_map_image_size(int face, uint8 *w, uint8 *h);
00023 extern void init_cache_data(void);
00024 /* info.c */
00025 extern void set_text_tag_from_style(GtkTextTag *tag, GtkStyle *style, GtkStyle *base_style);
00026 extern void info_get_styles(void);
00027 extern void info_init(GtkWidget *window_root);
00028 extern void draw_info(const char *str, int color);
00029 extern void draw_color_info(int colr, const char *buf);
00030 extern void menu_clear(void);
00031 extern void set_scroll(const char *s);
00032 extern void set_autorepeat(const char *s);
00033 extern int get_info_width(void);
00034 /* inventory.c */
00035 extern gboolean list_selection_func(GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer userdata);
00036 extern void list_row_collapse(GtkTreeView *treeview, GtkTreeIter *iter, GtkTreePath *path, gpointer user_data);
00037 extern void inventory_get_styles(void);
00038 extern void inventory_init(GtkWidget *window_root);
00039 extern void set_show_icon(const char *s);
00040 extern void set_show_weight(const char *s);
00041 extern void close_container(item *op);
00042 extern void open_container(item *op);
00043 extern void command_show(const char *params);
00044 extern void set_weight_limit(uint32 wlim);
00045 extern void item_event_item_deleting(item *it);
00046 extern void item_event_container_clearing(item *container);
00047 extern void item_event_item_changed(item *it);
00048 extern void draw_look_list(void);
00049 extern void draw_inv_list(int tab);
00050 extern gboolean drawingarea_inventory_table_button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data);
00051 extern gboolean drawingarea_inventory_table_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer user_data);
00052 extern void draw_inv_table(int animate);
00053 extern void draw_inv(int tab);
00054 extern void draw_lists(void);
00055 extern void on_notebook_switch_page(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, gpointer user_data);
00056 extern gboolean on_inv_table_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer user_data);
00057 extern void animate_inventory(void);
00058 extern void animate_look(void);
00059 extern void inventory_tick(void);
00060 /* keys.c */
00061 extern void keys_init(GtkWidget *window_root);
00062 extern void bind_key(char *params);
00063 extern void unbind_key(const char *params);
00064 extern void keyrelfunc(GtkWidget *widget, GdkEventKey *event, GtkWidget *window);
00065 extern void keyfunc(GtkWidget *widget, GdkEventKey *event, GtkWidget *window);
00066 extern void draw_keybindings(GtkWidget *keylist);
00067 extern void x_set_echo(void);
00068 extern void draw_prompt(const char *str);
00069 extern void gtk_command_history(int direction);
00070 extern void gtk_complete_command(void);
00071 extern void on_entry_commands_activate(GtkEntry *entry, gpointer user_data);
00072 extern void update_keybinding_list(void);
00073 extern void on_keybindings_activate(GtkMenuItem *menuitem, gpointer user_data);
00074 extern gboolean on_keybinding_entry_key_key_press_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data);
00075 extern void on_keybinding_button_remove_clicked(GtkButton *button, gpointer user_data);
00076 extern void on_keybinding_button_bind_clicked(GtkButton *button, gpointer user_data);
00077 extern void on_keybinding_button_update_clicked(GtkButton *button, gpointer user_data);
00078 extern void on_keybinding_button_close_clicked(GtkButton *button, gpointer user_data);
00079 extern gboolean keybinding_selection_func(GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer userdata);
00080 extern void reset_keybinding_status(void);
00081 extern void on_keybinding_button_clear_clicked(GtkButton *button, gpointer user_data);
00082 /* main.c */
00083 extern int do_timeout(void);
00084 extern void client_tick(uint32 tick);
00085 extern void cleanup_connection(void);
00086 extern void on_window_destroy_event(GtkObject *object, gpointer user_data);
00087 extern void do_network(void);
00088 extern void event_loop(void);
00089 extern int parse_args(int argc, char **argv);
00090 extern int main(int argc, char *argv[]);
00091 extern void get_window_coord(GtkWidget *win, int *x, int *y, int *wx, int *wy, int *w, int *h);
00092 /* map.c */
00093 extern void map_init(GtkWidget *window_root);
00094 extern void reset_map(void);
00095 extern int display_mapscroll(int dx, int dy);
00096 extern void drawsmooth(int mx, int my, int layer, int picx, int picy);
00097 extern void gtk_draw_map(int redraw);
00098 extern void display_map_newmap(void);
00099 extern void resize_map_window(int x, int y);
00100 extern gboolean on_drawingarea_map_configure_event(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data);
00101 extern void draw_splash(void);
00102 extern void draw_map(int redraw);
00103 extern gboolean on_drawingarea_map_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer user_data);
00104 extern gboolean on_drawingarea_map_button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data);
00105 extern void display_map_startupdate(void);
00106 extern void display_map_doneupdate(int redraw, int notice);
00107 /* magicmap.c */
00108 extern void draw_magic_map(void);
00109 extern void magic_map_flash_pos(void);
00110 extern gboolean on_drawingarea_magic_map_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer user_data);
00111 /* menubar.c */
00112 extern void menu_quit_program(GtkMenuItem *menuitem, gpointer user_data);
00113 extern void menu_quit_character(GtkMenuItem *menuitem, gpointer user_data);
00114 extern void enable_menu_items(int enable);
00115 /* metaserver.c */
00116 extern gboolean metaserver_selection_func(GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer userdata);
00117 extern void get_metaserver(void);
00118 extern void on_metaserver_select_clicked(GtkButton *button, gpointer user_data);
00119 extern void on_treeview_metaserver_row_activated(GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data);
00120 extern void on_metaserver_text_entry_activate(GtkEntry *entry, gpointer user_data);
00121 extern void on_button_metaserver_quit_pressed(GtkButton *button, gpointer user_data);
00122 extern gboolean on_metaserver_text_entry_key_press_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data);
00123 /* opengl.c */
00124 extern void init_glx_opengl(GtkWidget *drawingarea);
00125 extern void init_opengl(GtkWidget *drawingarea);
00126 extern void opengl_gen_map(int redraw);
00127 extern void create_opengl_map_image(uint8 *data, PixmapInfo *pi);
00128 extern void opengl_free_pixmap(PixmapInfo *pi);
00129 extern void create_opengl_question_mark(void);
00130 /* pickup.c */
00131 extern void on_menu_dont_pickup_activate(GtkMenuItem *menuitem, gpointer user_data);
00132 extern void on_menu_stop_before_pickup_activate(GtkMenuItem *menuitem, gpointer user_data);
00133 extern void on_menu_body_armor_activate(GtkMenuItem *menuitem, gpointer user_data);
00134 extern void on_menu_boots_activate(GtkMenuItem *menuitem, gpointer user_data);
00135 extern void on_menu_cloaks_activate(GtkMenuItem *menuitem, gpointer user_data);
00136 extern void on_menu_gloves_activate(GtkMenuItem *menuitem, gpointer user_data);
00137 extern void on_menu_helmets_activate(GtkMenuItem *menuitem, gpointer user_data);
00138 extern void on_menu_shields_activate(GtkMenuItem *menuitem, gpointer user_data);
00139 extern void on_menu_skillscrolls_activate(GtkMenuItem *menuitem, gpointer user_data);
00140 extern void on_menu_normal_book_scrolls_activate(GtkMenuItem *menuitem, gpointer user_data);
00141 extern void on_menu_spellbooks_activate(GtkMenuItem *menuitem, gpointer user_data);
00142 extern void on_menu_drinks_activate(GtkMenuItem *menuitem, gpointer user_data);
00143 extern void on_menu_food_activate(GtkMenuItem *menuitem, gpointer user_data);
00144 extern void on_menu_keys_activate(GtkMenuItem *menuitem, gpointer user_data);
00145 extern void on_menu_magical_items_activate(GtkMenuItem *menuitem, gpointer user_data);
00146 extern void on_menu_potions_activate(GtkMenuItem *menuitem, gpointer user_data);
00147 extern void on_menu_valuables_activate(GtkMenuItem *menuitem, gpointer user_data);
00148 extern void on_menu_wands_rods_horns_activate(GtkMenuItem *menuitem, gpointer user_data);
00149 extern void on_menu_not_cursed_activate(GtkMenuItem *menuitem, gpointer user_data);
00150 extern void on_menu_jewels_activate(GtkMenuItem *menuitem, gpointer user_data);
00151 extern void on_menu_flesh_activate(GtkMenuItem *menuitem, gpointer user_data);
00152 extern void on_menu_all_weapons_activate(GtkMenuItem *menuitem, gpointer user_data);
00153 extern void on_menu_missile_weapons_activate(GtkMenuItem *menuitem, gpointer user_data);
00154 extern void on_menu_bows_activate(GtkMenuItem *menuitem, gpointer user_data);
00155 extern void on_menu_arrows_activate(GtkMenuItem *menuitem, gpointer user_data);
00156 extern void on_menu_ratio_pickup_off_activate(GtkMenuItem *menuitem, gpointer user_data);
00157 extern void on_menu_ratio_5_activate(GtkMenuItem *menuitem, gpointer user_data);
00158 extern void on_menu_ratio_10_activate(GtkMenuItem *menuitem, gpointer user_data);
00159 extern void on_menu_ratio_15_activate(GtkMenuItem *menuitem, gpointer user_data);
00160 extern void on_menu_ratio_20_activate(GtkMenuItem *menuitem, gpointer user_data);
00161 extern void on_menu_ratio_25_activate(GtkMenuItem *menuitem, gpointer user_data);
00162 extern void on_menu_ratio_30_activate(GtkMenuItem *menuitem, gpointer user_data);
00163 extern void on_menu_ratio_35_activate(GtkMenuItem *menuitem, gpointer user_data);
00164 extern void on_menu_ratio_40_activate(GtkMenuItem *menuitem, gpointer user_data);
00165 extern void on_menu_ratio_45_activate(GtkMenuItem *menuitem, gpointer user_data);
00166 extern void on_menu_ratio_50_activate(GtkMenuItem *menuitem, gpointer user_data);
00167 extern void pickup_init(GtkWidget *window_root);
00168 extern void client_pickup(uint32 pickup);
00169 /* png.c */
00170 extern uint8 *png_to_data(uint8 *data, int len, uint32 *width, uint32 *height);
00171 extern uint8 *rescale_rgba_data(uint8 *data, int *width, int *height, int scale);
00172 extern int rgba_to_gdkpixmap(GdkWindow *window, uint8 *data, int width, int height, GdkPixmap **pix, GdkBitmap **mask, GdkColormap *colormap);
00173 extern int rgba_to_gdkpixbuf(uint8 *data, int width, int height, GdkPixbuf **pix);
00174 extern int png_to_gdkpixmap(GdkWindow *window, uint8 *data, int len, GdkPixmap **pix, GdkBitmap **mask, GdkColormap *colormap);
00175 /* sdl.c */
00176 extern void init_SDL(GtkWidget *sdl_window, int just_lightmap);
00177 extern void drawquarterlightmap_sdl(int tl, int tr, int bl, int br, int width, int height, int startx, int starty, int endx, int endy, int destx, int desty);
00178 extern void sdl_gen_map(int redraw);
00179 extern int sdl_mapscroll(int dx, int dy);
00180 /* sound.c */
00181 extern int init_sounds(void);
00182 extern void SoundCmd(unsigned char *data, int len);
00183 extern void Sound2Cmd(unsigned char *data, int len);
00184 extern void MusicCmd(const char *data, int len);
00185 /* spells.c */
00186 extern void spell_get_styles(void);
00187 extern void update_spell_information(void);
00188 extern void on_spells_activate(GtkMenuItem *menuitem, gpointer user_data);
00189 extern void on_spell_treeview_row_activated(GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data);
00190 extern void on_spell_cast_clicked(GtkButton *button, gpointer user_data);
00191 extern void on_spell_invoke_clicked(GtkButton *button, gpointer user_data);
00192 extern void on_spell_close_clicked(GtkButton *button, gpointer user_data);
00193 /* stats.c */
00194 extern void stats_get_styles(void);
00195 extern void stats_init(GtkWidget *window_root);
00196 extern void update_stat(int stat_no, sint64 max_stat, sint64 current_stat, sint64 statbar_max, sint64 statbar_stat, const char *name, int can_alert);
00197 extern void draw_message_window(int redraw);
00198 extern void draw_stats(int redraw);
00199 extern void clear_stat_mapping(void);