Freeciv-3.3: /fast/freeciv/nightly/main/client/gui-stub/canvas.c Source File

Freeciv-3.3

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/************************************************************************/
26 struct canvas *gui_canvas_create(int width, int height)
27{
28 /* PORTME */
29 return nullptr;
30}
31
32/************************************************************************/
36 void gui_canvas_free(struct canvas *store)
37{
38 /* PORTME */
39}
40
41/************************************************************************/
44 void gui_canvas_set_zoom(struct canvas *store, float zoom)
45{
46 /* PORTME */
47}
48
49/************************************************************************/
52 bool gui_has_zoom_support(void)
53{
54 return FALSE;
55}
56
57/************************************************************************/
60 void gui_canvas_mapview_init(struct canvas *store)
61{
62}
63
64/************************************************************************/
67 void 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/************************************************************************/
77 void gui_canvas_put_sprite(struct canvas *pcanvas,
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/************************************************************************/
88 void gui_canvas_put_sprite_full(struct canvas *pcanvas,
89 int canvas_x, int canvas_y,
90 struct sprite *sprite)
91{
92 /* PORTME */
93}
94
95/************************************************************************/
98 void gui_canvas_put_sprite_full_scaled(struct canvas *pcanvas,
99 int canvas_x, int canvas_y,
100 int canvas_w, int canvas_h,
101 struct sprite *sprite)
102{
103 /* PORTME */
104}
105
106/************************************************************************/
110 void gui_canvas_put_sprite_fogged(struct canvas *pcanvas,
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/************************************************************************/
121 void gui_canvas_put_rectangle(struct canvas *pcanvas,
122 struct color *pcolor,
123 int canvas_x, int canvas_y, int width, int height)
124{
125 /* PORTME */
126}
127
128/************************************************************************/
131 void gui_canvas_fill_sprite_area(struct canvas *pcanvas,
132 struct sprite *psprite, struct color *pcolor,
133 int canvas_x, int canvas_y)
134{
135 /* PORTME */
136}
137
138/************************************************************************/
141 void gui_canvas_put_line(struct canvas *pcanvas, struct color *pcolor,
142 enum line_type ltype, int start_x, int start_y,
143 int dx, int dy)
144{
145 /* PORTME */
146}
147
148/************************************************************************/
151 void gui_canvas_put_curved_line(struct canvas *pcanvas, struct color *pcolor,
152 enum line_type ltype, int start_x, int start_y,
153 int dx, int dy)
154{
155 /* PORTME */
156}
157
158/************************************************************************/
163 void gui_get_text_size(int *width, int *height,
164 enum client_font font, const char *text)
165{
166 /* PORTME */
167 if (width != nullptr) {
168 *width = 0;
169 }
170 if (height != nullptr) {
171 *height = 0;
172 }
173}
174
175/************************************************************************/
180 void gui_canvas_put_text(struct canvas *pcanvas, int canvas_x, int canvas_y,
181 enum client_font font, struct color *pcolor,
182 const char *text)
183{
184 /* PORTME */
185}
height
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
pcolor
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition canvas_g.h:56
canvas_y
struct canvas int int canvas_y
Definition canvas_g.h:43
canvas_x
struct canvas int canvas_x
Definition canvas_g.h:43
canvas_w
struct canvas int int int canvas_w
Definition canvas_g.h:49
canvas_h
struct canvas int int int int canvas_h
Definition canvas_g.h:49
pcanvas
struct canvas * pcanvas
Definition canvas_g.h:42
offset_y
struct canvas int int struct sprite int int offset_y
Definition canvas_g.h:44
offset_x
struct canvas int int struct sprite int offset_x
Definition canvas_g.h:44
width
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
line_type
line_type
Definition canvas_g.h:25
incite_cost
char * incite_cost
Definition comments.c:74
gui_canvas_create
struct canvas * gui_canvas_create(int width, int height)
Definition canvas.c:26
gui_canvas_fill_sprite_area
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
gui_canvas_copy
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
gui_canvas_put_curved_line
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
gui_canvas_free
void gui_canvas_free(struct canvas *store)
Definition canvas.c:36
gui_canvas_put_sprite
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
gui_canvas_put_sprite_full_scaled
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
gui_get_text_size
void gui_get_text_size(int *width, int *height, enum client_font font, const char *text)
Definition canvas.c:163
gui_canvas_put_rectangle
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
gui_canvas_set_zoom
void gui_canvas_set_zoom(struct canvas *store, float zoom)
Definition canvas.c:44
gui_canvas_put_sprite_fogged
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
gui_canvas_mapview_init
void gui_canvas_mapview_init(struct canvas *store)
Definition canvas.c:60
gui_canvas_put_text
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
gui_has_zoom_support
bool gui_has_zoom_support(void)
Definition canvas.c:52
gui_canvas_put_line
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
gui_canvas_put_sprite_full
void gui_canvas_put_sprite_full(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *sprite)
Definition canvas.c:88
canvas.h
gui_stub.h
canvas
Definition canvas.h:22
canvas::zoom
float zoom
Definition canvas.h:25
color
Definition colors.h:21
sprite
Definition sprite.h:22
FALSE
#define FALSE
Definition support.h:47