Easily build frame parameters with the serialized constructors. More...
#include <frame.hpp>
Public Member Functions | |
frame_builder () | |
frame_builder (const config &cfg, const std::string &frame_string="") | |
frame_builder & | duration (const std::chrono::milliseconds &duration) |
Allow easy chained modifications. More... | |
frame_builder & | image (const std::string &image, const std::string &image_mod="") |
frame_builder & | image_diagonal (const std::string &image_diagonal, const std::string &image_mod="") |
frame_builder & | sound (const std::string &sound) |
frame_builder & | text (const std::string &text, const color_t text_color) |
frame_builder & | halo (const std::string &halo, const std::string &halo_x, const std::string &halo_y, const std::string &halo_mod) |
frame_builder & | blend (const std::string &blend_ratio, const color_t blend_color) |
frame_builder & | highlight (const std::string &highlight) |
frame_builder & | offset (const std::string &offset) |
frame_builder & | submerge (const std::string &submerge) |
frame_builder & | x (const std::string &x) |
frame_builder & | y (const std::string &y) |
frame_builder & | directional_x (const std::string &directional_x) |
frame_builder & | directional_y (const std::string &directional_y) |
frame_builder & | auto_vflip (const bool auto_vflip) |
frame_builder & | auto_hflip (const bool auto_hflip) |
frame_builder & | primary_frame (const bool primary_frame) |
frame_builder & | drawing_layer (const std::string &drawing_layer) |
Private Attributes | |
std::chrono::milliseconds | duration_ |
std::string | image_ |
std::string | image_diagonal_ |
std::string | image_mod_ |
std::string | halo_ |
std::string | halo_x_ |
std::string | halo_y_ |
std::string | halo_mod_ |
std::string | sound_ |
std::string | text_ |
utils::optional< color_t > | text_color_ |
utils::optional< color_t > | blend_with_ |
std::string | blend_ratio_ |
std::string | highlight_ratio_ |
std::string | offset_ |
std::string | submerge_ |
std::string | x_ |
std::string | y_ |
std::string | directional_x_ |
std::string | directional_y_ |
boost::tribool | auto_vflip_ |
boost::tribool | auto_hflip_ |
boost::tribool | primary_frame_ |
std::string | drawing_layer_ |
Friends | |
class | frame_parsed_parameters |
Easily build frame parameters with the serialized constructors.
frame_builder::frame_builder | ( | ) |
Definition at line 28 of file frame.cpp.
References unit_default.
frame_builder::frame_builder | ( | const config & | cfg, |
const std::string & | frame_string = "" |
||
) |
Definition at line 36 of file frame.cpp.
References auto_hflip_, auto_vflip_, blend_with_, progressive_base< T, D >::duration(), duration(), duration_, e, ERR_NG, color_t::from_rgb_string(), config::get(), halo_, config::has_attribute(), image_, image_diagonal_, primary_frame_, and text_color_.
frame_builder & frame_builder::auto_hflip | ( | const bool | auto_hflip | ) |
Definition at line 208 of file frame.cpp.
References auto_hflip_.
frame_builder & frame_builder::auto_vflip | ( | const bool | auto_vflip | ) |
Definition at line 202 of file frame.cpp.
References auto_vflip_.
frame_builder & frame_builder::blend | ( | const std::string & | blend_ratio, |
const color_t | blend_color | ||
) |
Definition at line 153 of file frame.cpp.
References blend_ratio_, and blend_with_.
frame_builder & frame_builder::directional_x | ( | const std::string & | directional_x | ) |
Definition at line 190 of file frame.cpp.
References directional_x_.
frame_builder & frame_builder::directional_y | ( | const std::string & | directional_y | ) |
Definition at line 196 of file frame.cpp.
References directional_y_.
frame_builder & frame_builder::drawing_layer | ( | const std::string & | drawing_layer | ) |
Definition at line 220 of file frame.cpp.
References drawing_layer_.
frame_builder & frame_builder::duration | ( | const std::chrono::milliseconds & | duration | ) |
Allow easy chained modifications.
Will raised assert if used after initialization
Definition at line 147 of file frame.cpp.
References duration_.
Referenced by frame_builder().
frame_builder & frame_builder::halo | ( | const std::string & | halo, |
const std::string & | halo_x, | ||
const std::string & | halo_y, | ||
const std::string & | halo_mod | ||
) |
frame_builder & frame_builder::highlight | ( | const std::string & | highlight | ) |
Definition at line 160 of file frame.cpp.
References highlight_ratio_.
frame_builder & frame_builder::image | ( | const std::string & | image, |
const std::string & | image_mod = "" |
||
) |
Definition at line 111 of file frame.cpp.
References image_, and image_mod_.
frame_builder & frame_builder::image_diagonal | ( | const std::string & | image_diagonal, |
const std::string & | image_mod = "" |
||
) |
Definition at line 118 of file frame.cpp.
References image_diagonal_, and image_mod_.
frame_builder & frame_builder::offset | ( | const std::string & | offset | ) |
frame_builder & frame_builder::primary_frame | ( | const bool | primary_frame | ) |
Definition at line 214 of file frame.cpp.
References primary_frame_.
frame_builder & frame_builder::sound | ( | const std::string & | sound | ) |
frame_builder & frame_builder::submerge | ( | const std::string & | submerge | ) |
frame_builder & frame_builder::text | ( | const std::string & | text, |
const color_t | text_color | ||
) |
Definition at line 131 of file frame.cpp.
References text_, and text_color_.
frame_builder & frame_builder::x | ( | const std::string & | x | ) |
frame_builder & frame_builder::y | ( | const std::string & | y | ) |
|
friend |
|
private |
Definition at line 137 of file frame.hpp.
Referenced by auto_hflip(), and frame_builder().
|
private |
Definition at line 136 of file frame.hpp.
Referenced by auto_vflip(), and frame_builder().
|
private |
|
private |
Definition at line 125 of file frame.hpp.
Referenced by blend(), and frame_builder().
|
private |
Definition at line 133 of file frame.hpp.
Referenced by directional_x().
|
private |
Definition at line 134 of file frame.hpp.
Referenced by directional_y().
|
private |
Definition at line 140 of file frame.hpp.
Referenced by drawing_layer().
|
private |
Definition at line 112 of file frame.hpp.
Referenced by duration(), and frame_builder().
|
private |
Definition at line 117 of file frame.hpp.
Referenced by frame_builder(), and halo().
|
private |
|
private |
|
private |
|
private |
Definition at line 128 of file frame.hpp.
Referenced by highlight().
|
private |
Definition at line 114 of file frame.hpp.
Referenced by frame_builder(), and image().
|
private |
Definition at line 115 of file frame.hpp.
Referenced by frame_builder(), and image_diagonal().
|
private |
Definition at line 116 of file frame.hpp.
Referenced by image(), and image_diagonal().
|
private |
|
private |
Definition at line 138 of file frame.hpp.
Referenced by frame_builder(), and primary_frame().
|
private |
|
private |
Definition at line 130 of file frame.hpp.
Referenced by submerge().
|
private |
|
private |
Definition at line 124 of file frame.hpp.
Referenced by frame_builder(), and text().