Freeciv-3.2
Loading...
Searching...
No Matches
Data Structures | Functions
canvas.h File Reference
#include "canvas_g.h"
#include <QPixmap>

Go to the source code of this file.

Data Structures

struct  canvas
 

Functions

struct canvasqtg_canvas_create (int width, int height)
 
void pixmap_copy (QPixmap *dest, QPixmap *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
 
void image_copy (QImage *dest, QImage *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
 
QRect zealous_crop_rect (QImage &p)
 

Function Documentation

◆ 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 
)

Copies an area from the source image to the destination image.

Definition at line 120 of file canvas.cpp.

Referenced by minimap_thread::run().

◆ 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 
)

Copies an area from the source pixmap to the destination pixmap.

Definition at line 101 of file canvas.cpp.

◆ qtg_canvas_create()

struct canvas * qtg_canvas_create ( int  width,
int  height 
)

Create a canvas of the given size.

Definition at line 36 of file canvas.cpp.

◆ zealous_crop_rect()

QRect zealous_crop_rect ( QImage p)

Return rectangle containing pure image (crops transparency)

Definition at line 419 of file canvas.cpp.

Referenced by units_select::create_pixmap(), hud_unit_combat::init_images(), progress_bar::set_pixmap(), unit_item::unit_item(), unittype_item::unittype_item(), and hud_units::update_actions().