#include <frame.hpp>
Public Member Functions | |
frame_builder () | |
frame_builder (const config &cfg, const std::string &frame_string="") | |
frame_builder & | duration (const int duration) |
allow easy chained modifications will raised assert if used after initialization 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 Uint32 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 Uint32 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) |
Friends | |
class | frame_parsed_parameters |
getters for the different parameters More... | |
frame_builder::frame_builder | ( | const config & | cfg, |
const std::string & | frame_string = "" |
||
) |
Definition at line 276 of file frame.cpp.
References auto_hflip_, auto_vflip_, blend_with_, duration(), duration_, config::get(), halo_, config::has_attribute(), image_, image_diagonal_, primary_frame_, display::rgb(), utils::split(), t_false, t_true, t_unset, and text_color_.
frame_builder & frame_builder::auto_hflip | ( | const bool | auto_hflip | ) |
Definition at line 432 of file frame.cpp.
References auto_hflip_, t_false, and t_true.
frame_builder & frame_builder::auto_vflip | ( | const bool | auto_vflip | ) |
Definition at line 426 of file frame.cpp.
References auto_vflip_, t_false, and t_true.
frame_builder & frame_builder::blend | ( | const std::string & | blend_ratio, |
const Uint32 | blend_color | ||
) |
Definition at line 385 of file frame.cpp.
References blend_ratio_, and blend_with_.
frame_builder & frame_builder::directional_x | ( | const std::string & | directional_x | ) |
Definition at line 416 of file frame.cpp.
References directional_x_.
frame_builder & frame_builder::directional_y | ( | const std::string & | directional_y | ) |
Definition at line 421 of file frame.cpp.
References directional_y_.
frame_builder & frame_builder::drawing_layer | ( | const std::string & | drawing_layer | ) |
Definition at line 444 of file frame.cpp.
References drawing_layer_.
frame_builder & frame_builder::duration | ( | const int | duration | ) |
allow easy chained modifications will raised assert if used after initialization
Definition at line 380 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 391 of file frame.cpp.
References highlight_ratio_.
frame_builder & frame_builder::image | ( | const std::string & | image, |
const std::string & | image_mod = "" |
||
) |
Definition at line 349 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 355 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 438 of file frame.cpp.
References primary_frame_, t_false, and t_true.
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 Uint32 | text_color | ||
) |
Definition at line 366 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 151 of file frame.hpp.
Referenced by auto_hflip(), and frame_builder().
|
private |
Definition at line 150 of file frame.hpp.
Referenced by auto_vflip(), and frame_builder().
|
private |
|
private |
Definition at line 141 of file frame.hpp.
Referenced by blend(), and frame_builder().
|
private |
Definition at line 148 of file frame.hpp.
Referenced by directional_x().
|
private |
Definition at line 149 of file frame.hpp.
Referenced by directional_y().
|
private |
Definition at line 153 of file frame.hpp.
Referenced by drawing_layer().
|
private |
Definition at line 130 of file frame.hpp.
Referenced by duration(), and frame_builder().
|
private |
Definition at line 134 of file frame.hpp.
Referenced by frame_builder(), and halo().
|
private |
|
private |
|
private |
|
private |
Definition at line 143 of file frame.hpp.
Referenced by highlight().
|
private |
Definition at line 131 of file frame.hpp.
Referenced by frame_builder(), and image().
|
private |
Definition at line 132 of file frame.hpp.
Referenced by frame_builder(), and image_diagonal().
|
private |
Definition at line 133 of file frame.hpp.
Referenced by image(), and image_diagonal().
|
private |
|
private |
Definition at line 152 of file frame.hpp.
Referenced by frame_builder(), and primary_frame().
|
private |
|
private |
Definition at line 145 of file frame.hpp.
Referenced by submerge().
|
private |
|
private |
Definition at line 140 of file frame.hpp.
Referenced by frame_builder(), and text().
|
private |
|
private |