Represents and contains information about image labels used in story screen parts. More...
#include <part.hpp>
Public Member Functions | |
floating_image (const config &cfg) | |
WML-based constructor. More... | |
floating_image (const floating_image &fi)=default | |
floating_image (floating_image &&fi)=default | |
floating_image & | operator= (const floating_image &fi) |
std::string | file () const |
int | ref_x () const |
Returns the referential X coordinate of the image. More... | |
int | ref_y () const |
Returns the referential Y coordinate of the image. More... | |
bool | resize_with_background () const |
If true, the size of the image is changed in the same way that the ref_x and ref_y are mapped to use the base layer's pixels as the coordinate system. More... | |
bool | centered () const |
Whether the image coordinates specify the location of its center (true) or top-left corner (false). More... | |
int | display_delay () const |
Delay after displaying this image and before displaying the next image, in milliseconds. More... | |
Private Member Functions | |
void | assign (const floating_image &fi) |
Copy constructor and operator=() implementation details. More... | |
Private Attributes | |
std::string | file_ |
int | x_ |
int | y_ |
int | delay_ |
bool | resize_with_background_ |
bool | centered_ |
Represents and contains information about image labels used in story screen parts.
storyscreen::floating_image::floating_image | ( | const config & | cfg | ) |
|
default |
|
default |
|
private |
Copy constructor and operator=() implementation details.
Referenced by operator=().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
If true, the size of the image is changed in the same way that the ref_x and ref_y are mapped to use the base layer's pixels as the coordinate system.
Definition at line 84 of file part.hpp.
References resize_with_background_.
|
private |
Definition at line 112 of file part.hpp.
Referenced by centered().
|
private |
Definition at line 110 of file part.hpp.
Referenced by display_delay().
|
private |
|
private |
Definition at line 111 of file part.hpp.
Referenced by resize_with_background().
|
private |
|
private |