client_gtk.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef __PROLO_CLIENT_GTK_H__
  2. #define __PROLO_CLIENT_GTK_H__
  3. /*
  4. ** General GTK wrappers
  5. */
  6. void update_map_callback(void *conf, gint src, GdkInputCondition cond);
  7. GtkWidget *create_picture(const char *filename, conf_t *conf);
  8. GtkWidget *create_xpm_button(const char *filename, GtkSignalFunc callback,
  9. conf_t *conf);
  10. /*
  11. ** Statusbar
  12. */
  13. void set_status(const conf_t *conf, const char *msg);
  14. GtkWidget *create_statusbar(conf_t *conf);
  15. /*
  16. ** Menubar
  17. */
  18. GtkWidget *create_menubar(conf_t *conf);
  19. /*
  20. ** Stats
  21. */
  22. void create_stats(conf_t *conf);
  23. void stats_refresh(conf_t *conf);
  24. void stats_make(conf_t *conf);
  25. void pl_make_color(GdkColor *col, int r, int g, int b);
  26. /*
  27. ** Toolbar
  28. */
  29. GtkWidget *create_toolbar(conf_t *conf);
  30. void player_list_refresh(const conf_t *conf);
  31. void player_list_make(conf_t *conf);
  32. GtkWidget *create_players_list(conf_t *conf);
  33. void tb_pause(GtkWidget *wid, conf_t *conf);
  34. void tb_play(GtkWidget *wid, conf_t *conf);
  35. void tb_step(GtkWidget *wid, conf_t *conf);
  36. void tb_ffwd(GtkWidget *wid, conf_t *conf);
  37. /*
  38. ** Gamearea
  39. */
  40. GtkWidget *create_game_area(conf_t *conf);
  41. void gamearea_refresh(GtkWidget *w, conf_t *conf);
  42. /*
  43. ** Minimap
  44. */
  45. GtkWidget *create_mini_map(conf_t *conf);
  46. void minimap_refresh(GtkWidget *w, const conf_t *conf);
  47. #endif