#include "global.hpp"
#include "actions.hpp"
#include "cursor.hpp"
#include "display.hpp"
#include "events.hpp"
#include "font.hpp"
#include "game_config.hpp"
#include "gettext.hpp"
#include "hotkeys.hpp"
#include "language.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "minimap.hpp"
#include "pathfind.hpp"
#include "preferences.hpp"
#include "sdl_utils.hpp"
#include "theme.hpp"
#include "tooltips.hpp"
#include "util.hpp"
#include "SDL_image.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <sstream>
Go to the source code of this file.
Defines | |
#define | ERR_DP LOG_STREAM(err, display) |
#define | INFO_DP LOG_STREAM(info, display) |
#define | DBG_DP LOG_STREAM(debug, display) |
Functions | |
static const std::string & | get_direction (size_t n) |
static void | draw_panel (CVideo &video, const theme::panel &panel, std::vector< gui::button > &buttons) |
static void | draw_label (CVideo &video, surface target, const theme::label &label) |
static void | draw_background (surface screen, const SDL_Rect &area, const std::string &image) |
Variables | |
const int | DefaultZoom = 72 |
const int | SmallZoom = 36 |
const int | MinZoom = 4 |
const int | MaxZoom = 200 |
size_t | sunset_delay = 0 |
size_t | sunset_timer = 0 |
bool | benchmark = false |
Definition in file display.cpp.
Definition at line 53 of file display.cpp.
#define ERR_DP LOG_STREAM(err, display) |
Definition at line 51 of file display.cpp.
#define INFO_DP LOG_STREAM(info, display) |
Definition at line 52 of file display.cpp.
static void draw_background | ( | surface | screen, | |
const SDL_Rect & | area, | |||
const std::string & | image | |||
) | [static] |
Definition at line 910 of file display.cpp.
References image::get_image(), display::h(), surface::null(), and display::w().
Referenced by display::draw_init(), and gui::show_title().
static void draw_label | ( | CVideo & | video, | |
surface | target, | |||
const theme::label & | label | |||
) | [static] |
Definition at line 849 of file display.cpp.
References tooltips::add_tooltip(), surface::assign(), font::draw_text(), theme::label::font_rgb(), theme::label::font_rgb_set(), theme::label::font_size(), image::get_image(), theme::label::icon(), loc, theme::object::location(), font::NORMAL_COLOUR, surface::null(), scale_surface(), display::screen_area(), theme::label::text(), text, and update_rect().
Referenced by display::draw_all_panels().
static void draw_panel | ( | CVideo & | video, | |
const theme::panel & | panel, | |||
std::vector< gui::button > & | buttons | |||
) | [static] |
Definition at line 807 of file display.cpp.
References surface::assign(), b, unit_map::begin(), CVideo::blit_surface(), DBG_DP, unit_map::end(), theme::object::get_id(), image::get_image(), theme::panel::image(), loc, theme::object::location(), surface::null(), rects_overlap(), scale_surface(), screen, display::screen_area(), and update_rect().
Referenced by display::draw_all_panels().
static const std::string& get_direction | ( | size_t | n | ) | [static] |
bool benchmark = false [static] |
Definition at line 69 of file display.cpp.
Referenced by display::draw_init(), display::toggle_benchmark(), and display::update_display().
const int DefaultZoom = 72 [static] |
const int MaxZoom = 200 [static] |
Definition at line 65 of file display.cpp.
Referenced by display::bounds_check_position(), and display::set_zoom().
const int MinZoom = 4 [static] |
Definition at line 64 of file display.cpp.
Referenced by display::bounds_check_position(), and display::set_zoom().
const int SmallZoom = 36 [static] |
Definition at line 61 of file display.cpp.
size_t sunset_delay = 0 [static] |
size_t sunset_timer = 0 [static] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |