Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-stub/canvas.c Source File

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/************************************************************************/
26 struct canvas *gui_canvas_create(int width, int height)
27{
28 /* PORTME */
29 return NULL;
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/************************************************************************/
99 void gui_canvas_put_sprite_fogged(struct canvas *pcanvas,
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/************************************************************************/
110 void gui_canvas_put_rectangle(struct canvas *pcanvas,
111 struct color *pcolor,
112 int canvas_x, int canvas_y, int width, int height)
113{
114 /* PORTME */
115}
116
117/************************************************************************/
120 void gui_canvas_fill_sprite_area(struct canvas *pcanvas,
121 struct sprite *psprite, struct color *pcolor,
122 int canvas_x, int canvas_y)
123{
124 /* PORTME */
125}
126
127/************************************************************************/
130 void gui_canvas_put_line(struct canvas *pcanvas, struct color *pcolor,
131 enum line_type ltype, int start_x, int start_y,
132 int dx, int dy)
133{
134 /* PORTME */
135}
136
137/************************************************************************/
140 void gui_canvas_put_curved_line(struct canvas *pcanvas, struct color *pcolor,
141 enum line_type ltype, int start_x, int start_y,
142 int dx, int dy)
143{
144 /* PORTME */
145}
146
147/************************************************************************/
152 void gui_get_text_size(int *width, int *height,
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/************************************************************************/
169 void gui_canvas_put_text(struct canvas *pcanvas, int canvas_x, int canvas_y,
170 enum client_font font, struct color *pcolor,
171 const char *text)
172{
173 /* PORTME */
174}
height
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
pcolor
struct canvas int int struct sprite bool int int fog_y struct canvas struct sprite struct color * pcolor
Definition canvas_g.h:57
fog_x
struct canvas int int struct sprite bool int fog_x
Definition canvas_g.h:51
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
client_font
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
width
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
pcanvas
struct canvas * pcanvas
Definition canvas_g.h:42
psprite
struct canvas int int struct sprite * psprite
Definition canvas_g.h:50
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
line_type
line_type
Definition canvas_g.h:25
fog
struct canvas int int struct sprite bool fog
Definition canvas_g.h:51
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:120
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:140
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_get_text_size
void gui_get_text_size(int *width, int *height, enum client_font font, const char *text)
Definition canvas.c:152
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:110
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:99
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:169
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:130
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:21
canvas::zoom
float zoom
Definition canvas.h:24
color
Definition colors.h:20
sprite
Definition sprite.h:22
FALSE
#define FALSE
Definition support.h:47