The Battle for Wesnoth  1.19.2+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 108 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 245 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 270 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 277 of file picture.cpp.

Member Function Documentation

◆ operator<()

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

Definition at line 306 of file picture.cpp.

References a, image::locator::FILE, filename, and image::locator::SUB_FILE.

◆ operator==()

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

Definition at line 292 of file picture.cpp.

References a, image::locator::FILE, filename, and image::locator::SUB_FILE.

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 120 of file picture.hpp.

Referenced by 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: