Represents and contains information about image labels used in story screen parts.
More...
#include <part.hpp>
Represents and contains information about image labels used in story screen parts.
Definition at line 39 of file part.hpp.
◆ floating_image() [1/3]
| storyscreen::floating_image::floating_image |
( |
const config & |
cfg | ) |
|
WML-based constructor.
- Parameters
-
| cfg | Object corresponding to a [image] block's contents from a [part] node. |
Definition at line 28 of file part.cpp.
◆ floating_image() [2/3]
| storyscreen::floating_image::floating_image |
( |
const floating_image & |
fi | ) |
|
|
default |
◆ floating_image() [3/3]
◆ assign()
◆ centered()
| bool storyscreen::floating_image::centered |
( |
| ) |
const |
|
inline |
Whether the image coordinates specify the location of its center (true) or top-left corner (false).
Definition at line 95 of file part.hpp.
References centered_.
◆ display_delay()
| const std::chrono::milliseconds & storyscreen::floating_image::display_delay |
( |
| ) |
const |
|
inline |
Delay after displaying this image and before displaying the next image, in milliseconds.
Definition at line 104 of file part.hpp.
References delay_.
◆ file()
| std::string storyscreen::floating_image::file |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ ref_x()
| int storyscreen::floating_image::ref_x |
( |
| ) |
const |
|
inline |
Returns the referential X coordinate of the image.
The actual (corrected) value is determined at render time.
Definition at line 67 of file part.hpp.
References x_.
◆ ref_y()
| int storyscreen::floating_image::ref_y |
( |
| ) |
const |
|
inline |
Returns the referential Y coordinate of the image.
The actual (corrected) value is determined at render time.
Definition at line 76 of file part.hpp.
References y_.
◆ resize_with_background()
| bool storyscreen::floating_image::resize_with_background |
( |
| ) |
const |
|
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 86 of file part.hpp.
References resize_with_background_.
◆ centered_
| bool storyscreen::floating_image::centered_ |
|
private |
◆ delay_
| std::chrono::milliseconds storyscreen::floating_image::delay_ |
|
private |
◆ file_
| std::string storyscreen::floating_image::file_ |
|
private |
◆ resize_with_background_
| bool storyscreen::floating_image::resize_with_background_ |
|
private |
◆ x_
| int storyscreen::floating_image::x_ |
|
private |
◆ y_
| int storyscreen::floating_image::y_ |
|
private |
The documentation for this class was generated from the following files: