#include <gtk/gtk.h>
#include "fc_types.h"
#include "citydlg_common.h"
#include "mapview_g.h"
#include "mapview_common.h"
#include "canvas.h"
#include "graphics.h"
Go to the source code of this file.
|
GdkPixbuf * | get_thumb_pixbuf (int onoff) |
|
void | overview_canvas_draw (GtkDrawingArea *w, cairo_t *cr, int width, int height, gpointer data) |
|
void | map_canvas_draw (GtkDrawingArea *w, cairo_t *cr, int width, int height, gpointer data) |
|
void | map_canvas_resize (GtkWidget *w, int width, int height, gpointer data) |
|
void | put_unit_picture (struct unit *punit, GtkPicture *p, int height) |
|
void | put_unit_picture_city_overlays (struct unit *punit, GtkPicture *p, int height, int *upkeep_cost, int happy_cost) |
|
void | scrollbar_jump_callback (GtkAdjustment *adj, gpointer hscrollbar) |
|
void | update_map_canvas_scrollbars_size (void) |
|
void | pixmap_put_overlay_tile (GdkSurface *pixmap, float zoom, int canvas_x, int canvas_y, struct sprite *ssprite) |
|
void | pixmap_put_overlay_tile_draw (struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *ssprite, bool fog) |
|
void | mapview_freeze (void) |
|
void | mapview_thaw (void) |
|
bool | mapview_is_frozen (void) |
|
◆ CURSOR_INTERVAL
◆ get_thumb_pixbuf()
Get sprite for treaty acceptance or rejection.
Definition at line 292 of file mapview.c.
◆ map_canvas_draw()
Redraw map canvas.
Definition at line 429 of file mapview.c.
◆ map_canvas_resize()
Update on canvas widget size change
Definition at line 408 of file mapview.c.
◆ mapview_freeze()
Freeze the drawing of the map.
Definition at line 373 of file mapview.c.
◆ mapview_is_frozen()
Return whether the map should be drawn or not.
Definition at line 395 of file mapview.c.
◆ mapview_thaw()
Thaw the drawing of the map.
Definition at line 381 of file mapview.c.
◆ overview_canvas_draw()
Redraw overview canvas
Definition at line 361 of file mapview.c.
◆ pixmap_put_overlay_tile()
Put overlay tile to pixmap
Definition at line 541 of file mapview.c.
◆ pixmap_put_overlay_tile_draw()
Only used for isometric view.
Definition at line 566 of file mapview.c.
◆ put_unit_picture()
Fill picture with unit gfx
Definition at line 494 of file mapview.c.
◆ put_unit_picture_city_overlays()
FIXME: For now only two food, two gold one shield and two masks can be drawn per unit, the proper way to do this is probably something like what Civ II does. (One food/shield/mask drawn N times, possibly one top of itself. – SKi
Definition at line 519 of file mapview.c.
◆ scrollbar_jump_callback()
Scrollbar has moved
Definition at line 721 of file mapview.c.
◆ update_map_canvas_scrollbars_size()
void update_map_canvas_scrollbars_size |
( |
void |
| ) |
|
Refresh map canvas scrollbar as canvas size changes
Update the size of the sliders on the scrollbars.
Refresh map canvas scrollbar as canvas size changes
Update the size of the sliders on the scrollbars.
Definition at line 696 of file mapview.c.