Freeciv-3.3
Loading...
Searching...
No Matches
canvas.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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#ifndef FC__CANVAS_H
15#define FC__CANVAS_H
16
17extern "C" {
18#include "canvas_g.h"
19}
20
21// Qt
22#include <QPixmap>
23
24struct canvas {
26};
27
28struct canvas *qtg_canvas_create(int width, int height);
29void pixmap_copy(QPixmap *dest, QPixmap *src, int src_x, int src_y,
30 int dest_x, int dest_y, int width, int height);
31void image_copy(QImage *dest, QImage *src, int src_x, int src_y,
32 int dest_x, int dest_y, int width, int height);
34
35#endif // FC__CANVAS_H
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
char * incite_cost
Definition comments.c:76
QRect zealous_crop_rect(QImage &p)
Definition canvas.cpp:419
void image_copy(QImage *dest, QImage *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
Definition canvas.cpp:120
struct canvas * qtg_canvas_create(int width, int height)
Definition canvas.cpp:36
void pixmap_copy(QPixmap *dest, QPixmap *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
Definition canvas.cpp:101
QPixmap map_pixmap
Definition canvas.h:25