Freeciv21
Develop your civilization from humble roots to a global empire
canvas.h File Reference
#include "support.h"
#include <QImage>
#include <QPixmap>
+ Include dependency graph for canvas.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  client_font { FONT_CITY_NAME , FONT_CITY_PROD , FONT_REQTREE_TEXT , FONT_COUNT }
 

Functions

void pixmap_copy (QPixmap *dest, const QPixmap *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
 / \ *********** / _ \ | / \ | Copyright (c) 1996-2023 Freeciv21 and || || _______ Freeciv contributors. More...
 
QRect zealous_crop_rect (QImage &p)
 Return rectangle containing pure image (crops transparency) More...
 
QFont get_font (client_font font)
 Returns given font. More...
 
QPixmap crop_sprite (const QPixmap *sprite)
 Helper function to crop a sprite. More...
 

Enumeration Type Documentation

◆ client_font

Enumerator
FONT_CITY_NAME 
FONT_CITY_PROD 
FONT_REQTREE_TEXT 
FONT_COUNT 

Definition at line 19 of file canvas.h.

Function Documentation

◆ crop_sprite()

◆ get_font()

◆ pixmap_copy()

void pixmap_copy ( QPixmap *  dest,
const QPixmap *  src,
int  src_x,
int  src_y,
int  dest_x,
int  dest_y,
int  width,
int  height 
)

/ \ *********** / _ \ | / \ | Copyright (c) 1996-2023 Freeciv21 and || || _______ Freeciv contributors.

This file is part of Freeciv21. || || |\ \ Freeciv21 is free software: you can redistribute it || || ||\ \ and/or modify it under the terms of the || || || \ | GNU General Public License as || || || __/ published by the Free Software Foundation, || || || || either version 3 of the License, \_/ _/ _// or (at your option) any later version. / _ _ \ You should have received a copy of the / \ GNU General Public License along with Freeciv21. | O O | If not, | \ ___ / | see https://www.gnu.org/licenses/. / \ _/ / \ / --— | –\ \ | __/|__/ \ | FOLLOW THE WHITE RABBIT ! \ |_|_| / _____ _____/ \ /
Copies an area from the source pixmap to the destination pixmap.

Definition at line 38 of file canvas.cpp.

Referenced by progress_bar::set_pixmap().

◆ zealous_crop_rect()

QRect zealous_crop_rect ( QImage &  p)