Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-qt/canvas.h Source File

Freeciv-3.1

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 {
25 QPixmap map_pixmap;
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);
33QRect zealous_crop_rect(QImage &p);
34#endif /* FC__CANVAS_H */
canvas_g.h
height
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
width
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
zealous_crop_rect
QRect zealous_crop_rect(QImage &p)
Definition canvas.cpp:399
image_copy
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:119
qtg_canvas_create
struct canvas * qtg_canvas_create(int width, int height)
Definition canvas.cpp:35
pixmap_copy
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:100
canvas
Definition canvas.h:21
canvas::map_pixmap
QPixmap map_pixmap
Definition canvas.h:25