The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
image::locator::value Struct Reference

Public Member Functions

 value ()=default
 
 value (const std::string &filename)
 
 value (const std::string &filename, const std::string &modifications)
 
 value (const std::string &filename, const map_location &loc, int center_x, int center_y, const std::string &modifications="")
 
bool operator== (const value &a) const
 
bool operator< (const value &a) const
 

Public Attributes

locator::type type = NONE
 
bool is_data_uri = false
 
std::string filename {}
 
std::string modifications {}
 
map_location loc {}
 
int center_x = 0
 
int center_y = 0
 

Detailed Description

Definition at line 127 of file picture.hpp.

Constructor & Destructor Documentation

◆ value() [1/4]

image::locator::value::value ( )
default

◆ value() [2/4]

image::locator::value::value ( const std::string &  filename)

Definition at line 257 of file picture.cpp.

References ERR_IMG, filename, is_data_uri, modifications, and image::locator::SUB_FILE.

◆ value() [3/4]

image::locator::value::value ( const std::string &  filename,
const std::string &  modifications 
)

Definition at line 282 of file picture.cpp.

◆ value() [4/4]

image::locator::value::value ( const std::string &  filename,
const map_location loc,
int  center_x,
int  center_y,
const std::string &  modifications = "" 
)

Definition at line 289 of file picture.cpp.

Member Function Documentation

◆ operator<()

bool image::locator::value::operator< ( const value a) const

◆ operator==()

bool image::locator::value::operator== ( const value a) const

Member Data Documentation

◆ center_x

int image::locator::value::center_x = 0

◆ center_y

int image::locator::value::center_y = 0

◆ filename

std::string image::locator::value::filename {}

◆ is_data_uri

bool image::locator::value::is_data_uri = false

Definition at line 139 of file picture.hpp.

Referenced by image::locator::file_exists(), image::locator::is_data_uri(), and value().

◆ loc

map_location image::locator::value::loc {}

◆ modifications

std::string image::locator::value::modifications {}

◆ type

locator::type image::locator::value::type = NONE

The documentation for this struct was generated from the following files: