The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Enumerations | Functions | Variables
display.cpp File Reference

Routines to set up the display, scroll and zoom the map. More...

#include "arrow.hpp"
#include "cursor.hpp"
#include "display.hpp"
#include "fake_unit_manager.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "halo.hpp"
#include "language.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "map/map.hpp"
#include "map/label.hpp"
#include "minimap.hpp"
#include "overlay.hpp"
#include "play_controller.hpp"
#include "reports.hpp"
#include "resources.hpp"
#include "synced_context.hpp"
#include "team.hpp"
#include "terrain/builder.hpp"
#include "text.hpp"
#include "time_of_day.hpp"
#include "tooltips.hpp"
#include "tod_manager.hpp"
#include "units/unit.hpp"
#include "units/animation_component.hpp"
#include "units/drawer.hpp"
#include "whiteboard/manager.hpp"
#include "show_dialog.hpp"
#include "gui/dialogs/loadscreen.hpp"
#include <SDL_image.h>
#include <cmath>
Include dependency graph for display.cpp:

Go to the source code of this file.

Macros

#define ERR_DP   LOG_STREAM(err, log_display)
 
#define LOG_DP   LOG_STREAM(info, log_display)
 
#define DBG_DP   LOG_STREAM(debug, log_display)
 

Enumerations

enum  {
  MAX_BORDER = 3, BITS_FOR_LAYER_GROUP = 4, BITS_FOR_Y = 10, BITS_FOR_X_PARITY = 1,
  BITS_FOR_LAYER = 8, BITS_FOR_X_OVER_2 = 9
}
 

Functions

static const std::stringget_direction (size_t n)
 
static void draw_panel (CVideo &video, const theme::panel &panel, std::vector< std::shared_ptr< gui::button >> &)
 
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

static lg::log_domain log_display ("display")
 

Detailed Description

Routines to set up the display, scroll and zoom the map.

Definition in file display.cpp.

Macro Definition Documentation

#define DBG_DP   LOG_STREAM(debug, log_display)
#define ERR_DP   LOG_STREAM(err, log_display)
#define LOG_DP   LOG_STREAM(info, log_display)

Enumeration Type Documentation

anonymous enum
Enumerator
MAX_BORDER 
BITS_FOR_LAYER_GROUP 
BITS_FOR_Y 
BITS_FOR_X_PARITY 
BITS_FOR_LAYER 
BITS_FOR_X_OVER_2 

Definition at line 1273 of file display.cpp.

Function Documentation

static void draw_background ( surface  screen,
const SDL_Rect &  area,
const std::string image 
)
static

Definition at line 1647 of file display.cpp.

References sdl::create_rect(), image::get_image(), surface::null(), and sdl_blit().

Referenced by display::draw_init().

static void draw_label ( CVideo video,
surface  target,
const theme::label label 
)
static
static void draw_panel ( CVideo video,
const theme::panel panel,
std::vector< std::shared_ptr< gui::button >> &   
)
static
static const std::string& get_direction ( size_t  n)
static

Definition at line 1010 of file display.cpp.

Referenced by display::get_fog_shroud_images().

Variable Documentation

lg::log_domain log_display("display")
static