Mirror (FL) modification. More...
#include <image_modifications.hpp>

Public Member Functions | |
| fl_modification (bool horiz=false, bool vert=false) | |
| Constructor. More... | |
| virtual surface | operator() (const surface &src) const |
| 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 148 of file image_modifications.hpp.
|
inline |
Constructor.
| horiz | Horizontal mirror flag. |
| vert | Vertical mirror flag. |
Definition at line 156 of file image_modifications.hpp.
|
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 |
Definition at line 173 of file image_modifications.hpp.
Applies the image-path modification on the specified surface.
Implements image::modification.
Definition at line 156 of file image_modifications.cpp.
References flip_surface(), flop_surface(), and rotate_180_surface().
|
inline |
Definition at line 162 of file image_modifications.hpp.
References horiz_.
|
inline |
Definition at line 163 of file image_modifications.hpp.
References vert_.
|
inline |
Toggle horizontal mirror flag.
Definition at line 168 of file image_modifications.hpp.
References horiz_.
|
inline |
Toggle vertical mirror flag.
Definition at line 171 of file image_modifications.hpp.
References vert_.
|
private |
Definition at line 176 of file image_modifications.hpp.
Referenced by get_horiz(), no_op(), set_horiz(), and toggle_horiz().
|
private |
Definition at line 177 of file image_modifications.hpp.
Referenced by get_vert(), no_op(), set_vert(), and toggle_vert().
1.8.8