Freeciv-3.2
Loading...
Searching...
No Matches
canvas.c
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996-2005 - Freeciv Development Team
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18/* gui main header */
19#include "gui_stub.h"
20
21#include "canvas.h"
22
23/************************************************************************/
27{
28 /* PORTME */
29 return NULL;
30}
31
32/************************************************************************/
36void gui_canvas_free(struct canvas *store)
37{
38 /* PORTME */
39}
40
41/************************************************************************/
44void gui_canvas_set_zoom(struct canvas *store, float zoom)
45{
46 /* PORTME */
47}
48
49/************************************************************************/
53{
54 return FALSE;
55}
56
57/************************************************************************/
61{
62}
63
64/************************************************************************/
67void gui_canvas_copy(struct canvas *dest, struct canvas *src,
68 int src_x, int src_y, int dest_x, int dest_y, int width,
69 int height)
70{
71 /* PORTME */
72}
73
74/************************************************************************/
78 int canvas_x, int canvas_y,
79 struct sprite *sprite,
80 int offset_x, int offset_y, int width, int height)
81{
82 /* PORTME */
83}
84
85/************************************************************************/
89 int canvas_x, int canvas_y,
90 struct sprite *sprite)
91{
92 /* PORTME */
93}
94
95/************************************************************************/
99 int canvas_x, int canvas_y,
100 int canvas_w, int canvas_h,
101 struct sprite *sprite)
102{
103 /* PORTME */
104}
105
106/************************************************************************/
111 int canvas_x, int canvas_y,
112 struct sprite *psprite,
113 bool fog, int fog_x, int fog_y)
114{
115 /* PORTME */
116}
117
118/************************************************************************/
122 struct color *pcolor,
123 int canvas_x, int canvas_y, int width, int height)
124{
125 /* PORTME */
126}
127
128/************************************************************************/
132 struct sprite *psprite, struct color *pcolor,
133 int canvas_x, int canvas_y)
134{
135 /* PORTME */
136}
137
138/************************************************************************/
142 enum line_type ltype, int start_x, int start_y,
143 int dx, int dy)
144{
145 /* PORTME */
146}
147
148/************************************************************************/
152 enum line_type ltype, int start_x, int start_y,
153 int dx, int dy)
154{
155 /* PORTME */
156}
157
158/************************************************************************/
164 enum client_font font, const char *text)
165{
166 /* PORTME */
167 if (width) {
168 *width = 0;
169 }
170 if (height) {
171 *height = 0;
172 }
173}
174
175/************************************************************************/
181 enum client_font font, struct color *pcolor,
182 const char *text)
183{
184 /* PORTME */
185}
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition canvas_g.h:56
struct canvas int int canvas_y
Definition canvas_g.h:43
struct canvas int canvas_x
Definition canvas_g.h:43
struct canvas int int int canvas_w
Definition canvas_g.h:49
struct canvas int int int int canvas_h
Definition canvas_g.h:49
struct canvas * pcanvas
Definition canvas_g.h:42
struct canvas int int struct sprite int int offset_y
Definition canvas_g.h:44
struct canvas int int struct sprite int offset_x
Definition canvas_g.h:44
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
line_type
Definition canvas_g.h:25
char * incite_cost
Definition comments.c:75
struct canvas * gui_canvas_create(int width, int height)
Definition canvas.c:26
void gui_canvas_fill_sprite_area(struct canvas *pcanvas, struct sprite *psprite, struct color *pcolor, int canvas_x, int canvas_y)
Definition canvas.c:131
void gui_canvas_copy(struct canvas *dest, struct canvas *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
Definition canvas.c:67
void gui_canvas_put_curved_line(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
Definition canvas.c:151
void gui_canvas_free(struct canvas *store)
Definition canvas.c:36
void gui_canvas_put_sprite(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *sprite, int offset_x, int offset_y, int width, int height)
Definition canvas.c:77
void gui_canvas_put_sprite_full_scaled(struct canvas *pcanvas, int canvas_x, int canvas_y, int canvas_w, int canvas_h, struct sprite *sprite)
Definition canvas.c:98
void gui_get_text_size(int *width, int *height, enum client_font font, const char *text)
Definition canvas.c:163
void gui_canvas_put_rectangle(struct canvas *pcanvas, struct color *pcolor, int canvas_x, int canvas_y, int width, int height)
Definition canvas.c:121
void gui_canvas_set_zoom(struct canvas *store, float zoom)
Definition canvas.c:44
void gui_canvas_put_sprite_fogged(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite, bool fog, int fog_x, int fog_y)
Definition canvas.c:110
void gui_canvas_mapview_init(struct canvas *store)
Definition canvas.c:60
void gui_canvas_put_text(struct canvas *pcanvas, int canvas_x, int canvas_y, enum client_font font, struct color *pcolor, const char *text)
Definition canvas.c:180
bool gui_has_zoom_support(void)
Definition canvas.c:52
void gui_canvas_put_line(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
Definition canvas.c:141
void gui_canvas_put_sprite_full(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *sprite)
Definition canvas.c:88
float zoom
Definition canvas.h:25
Definition colors.h:21
#define FALSE
Definition support.h:47