![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
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... | |
| enum client_font |
| QPixmap crop_sprite | ( | const QPixmap * | sprite | ) |
Helper function to crop a sprite.
Definition at line 115 of file canvas.cpp.
Referenced by freeciv::layer_terrain::initialize_blending(), freeciv::layer_terrain::initialize_cell_corner_match_full(), freeciv::layer_terrain::initialize_cell_hex_corner(), freeciv::layer_background::initialize_player(), freeciv::layer_grid::initialize_player(), load_sprite(), freeciv::layer_darkness::load_sprites(), freeciv::layer_editor::load_sprites(), freeciv::layer_overlays::load_sprites(), and units_view::units_view().
| QFont get_font | ( | client_font | font | ) |
Returns given font.
Definition at line 57 of file canvas.cpp.
Referenced by draw_reqtree(), node_rectangle_minimum_size(), simple_citybar_painter::paint(), traditional_citybar_painter::paint(), polished_citybar_painter::paint(), and show_tile_label().
| 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().
| QRect zealous_crop_rect | ( | QImage & | p | ) |
Return rectangle containing pure image (crops transparency)
Definition at line 81 of file canvas.cpp.
Referenced by units_select::create_pixmap(), unit_list_widget::create_unit_image(), crop_sprite(), hud_unit_combat::init_images(), make_helppiclabel(), progress_bar::set_pixmap(), and hud_units::update_actions().