The Battle for Wesnoth  1.19.0-dev
Classes | Namespaces | Macros | Variables
image_modifications.cpp File Reference
#include "image_modifications.hpp"
#include "color.hpp"
#include "config.hpp"
#include "game_config.hpp"
#include "picture.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "team.hpp"
#include "utils/from_chars.hpp"
#include "formula/formula.hpp"
#include "formula/callable.hpp"
Include dependency graph for image_modifications.cpp:

Go to the source code of this file.

Classes

class  image::pixel_callable
 

Namespaces

 image
 Functions to load and save images from/to disk.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define ERR_DP   LOG_STREAM(err, log_display)
 
#define REGISTER_MOD_PARSER(type, args_var)
 A macro for automatic modification parser registration. More...
 

Variables

static lg::log_domain log_display ("display")
 

Macro Definition Documentation

◆ ERR_DP

#define ERR_DP   LOG_STREAM(err, log_display)

Definition at line 34 of file image_modifications.cpp.

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 31 of file image_modifications.cpp.

◆ REGISTER_MOD_PARSER

#define REGISTER_MOD_PARSER (   type,
  args_var 
)
Value:
static std::unique_ptr<modification> parse_##type##_mod(std::string_view); \
static parse_mod_registration parse_##type##_mod_registration_aux(#type, &parse_##type##_mod); \
static std::unique_ptr<modification> parse_##type##_mod(std::string_view args_var) \

A macro for automatic modification parser registration.

It automatically registers the created parser in the mod_parsers map It should be used just like a function header (look at the uses below) It should only be used within an anonymous namespace

Parameters
typeThe modification type to be registered (unquoted)
args_varThe name for the string argument provided

Definition at line 603 of file image_modifications.cpp.

Variable Documentation

◆ log_display

lg::log_domain log_display("display") ( "display"  )
static