Freeciv-3.1
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/************************************************************************/
100 int canvas_x, int canvas_y,
101 struct sprite *psprite,
102 bool fog, int fog_x, int fog_y)
103{
104 /* PORTME */
105}
106
107/************************************************************************/
111 struct color *pcolor,
112 int canvas_x, int canvas_y, int width, int height)
113{
114 /* PORTME */
115}
116
117/************************************************************************/
121 struct sprite *psprite, struct color *pcolor,
122 int canvas_x, int canvas_y)
123{
124 /* PORTME */
125}
126
127/************************************************************************/
131 enum line_type ltype, int start_x, int start_y,
132 int dx, int dy)
133{
134 /* PORTME */
135}
136
137/************************************************************************/
141 enum line_type ltype, int start_x, int start_y,
142 int dx, int dy)
143{
144 /* PORTME */
145}
146
147/************************************************************************/
153 enum client_font font, const char *text)
154{
155 /* PORTME */
156 if (width) {
157 *width = 0;
158 }
159 if (height) {
160 *height = 0;
161 }
162}
163
164/************************************************************************/
170 enum client_font font, struct color *pcolor,
171 const char *text)
172{
173 /* PORTME */
174}
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
struct canvas int int struct sprite bool int int fog_y struct canvas struct sprite struct color * pcolor
Definition canvas_g.h:57
struct canvas int int struct sprite bool int fog_x
Definition canvas_g.h:51
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 struct sprite bool int int fog_y struct canvas struct sprite struct color int int canvas_y struct canvas struct color enum line_type ltype int start_x int start_y int dx int dy enum client_font
Definition canvas_g.h:69
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
struct canvas * pcanvas
Definition canvas_g.h:42
struct canvas int int struct sprite * psprite
Definition canvas_g.h:50
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
line_type
Definition canvas_g.h:25
struct canvas int int struct sprite bool fog
Definition canvas_g.h:51
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:120
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:140
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_get_text_size(int *width, int *height, enum client_font font, const char *text)
Definition canvas.c:152
void gui_canvas_put_rectangle(struct canvas *pcanvas, struct color *pcolor, int canvas_x, int canvas_y, int width, int height)
Definition canvas.c:110
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:99
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:169
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:130
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:24
Definition colors.h:20
#define FALSE
Definition support.h:47