Mirror (FL) modification. More...
#include <image_modifications.hpp>
Public Member Functions | |
fl_modification (bool horiz=false, bool vert=false) | |
Constructor. More... | |
virtual void | operator() (surface &src) const override |
Applies the image-path modification on the specified surface. More... | |
void | set_horiz (bool val) |
void | set_vert (bool val) |
bool | get_horiz () const |
bool | get_vert () const |
bool | toggle_horiz () |
Toggle horizontal mirror flag. More... | |
bool | toggle_vert () |
Toggle vertical mirror flag. More... | |
bool | no_op () const |
Public Member Functions inherited from image::modification | |
virtual | ~modification () |
virtual int | priority () const |
Specifies the priority of the modification. More... | |
Private Attributes | |
bool | horiz_ |
bool | vert_ |
Additional Inherited Members | |
Static Public Member Functions inherited from image::modification | |
static modification_queue | decode (const std::string &) |
Decodes modifications from a modification string. More... | |
Mirror (FL) modification.
Definition at line 150 of file image_modifications.hpp.
|
inline |
Constructor.
horiz | Horizontal mirror flag. |
vert | Vertical mirror flag. |
Definition at line 158 of file image_modifications.hpp.
|
inline |
Definition at line 166 of file image_modifications.hpp.
References horiz_.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 167 of file image_modifications.hpp.
References vert_.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 175 of file image_modifications.hpp.
|
overridevirtual |
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 159 of file image_modifications.cpp.
References flip_surface(), flop_surface(), rotate_180_surface(), and src.
|
inline |
Definition at line 164 of file image_modifications.hpp.
References horiz_.
|
inline |
Definition at line 165 of file image_modifications.hpp.
References vert_.
|
inline |
Toggle horizontal mirror flag.
Definition at line 170 of file image_modifications.hpp.
References horiz_.
|
inline |
Toggle vertical mirror flag.
Definition at line 173 of file image_modifications.hpp.
References vert_.
|
private |
Definition at line 178 of file image_modifications.hpp.
Referenced by get_horiz(), no_op(), set_horiz(), and toggle_horiz().
|
private |
Definition at line 179 of file image_modifications.hpp.
Referenced by get_vert(), no_op(), set_vert(), and toggle_vert().