The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
image::mask_modification Class Reference

Mask (MASK) modification. More...

#include <image_modifications.hpp>

Inheritance diagram for image::mask_modification:

Public Member Functions

 mask_modification (const surface &mask, int x, int y)
 
virtual void operator() (surface &src) const override
 Applies the image-path modification on the specified surface. More...
 
const surfaceget_mask () const
 
int get_x () const
 
int get_y () const
 
- Public Member Functions inherited from image::modification
virtual ~modification ()
 
virtual int priority () const
 Specifies the priority of the modification. More...
 

Private Attributes

surface mask_
 
int x_
 
int y_
 

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...
 

Detailed Description

Mask (MASK) modification.

Definition at line 388 of file image_modifications.hpp.

Constructor & Destructor Documentation

◆ mask_modification()

image::mask_modification::mask_modification ( const surface mask,
int  x,
int  y 
)
inline

Definition at line 391 of file image_modifications.hpp.

Member Function Documentation

◆ get_mask()

const surface& image::mask_modification::get_mask ( ) const
inline

Definition at line 396 of file image_modifications.hpp.

References mask_.

Referenced by BOOST_AUTO_TEST_CASE().

◆ get_x()

int image::mask_modification::get_x ( ) const
inline

Definition at line 401 of file image_modifications.hpp.

References x_.

Referenced by BOOST_AUTO_TEST_CASE().

◆ get_y()

int image::mask_modification::get_y ( ) const
inline

Definition at line 406 of file image_modifications.hpp.

References y_.

Referenced by BOOST_AUTO_TEST_CASE().

◆ operator()()

void image::mask_modification::operator() ( surface src) const
overridevirtual

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 406 of file image_modifications.cpp.

References mask_surface(), sdl_blit(), and src.

Member Data Documentation

◆ mask_

surface image::mask_modification::mask_
private

Definition at line 412 of file image_modifications.hpp.

Referenced by get_mask().

◆ x_

int image::mask_modification::x_
private

Definition at line 413 of file image_modifications.hpp.

Referenced by get_x().

◆ y_

int image::mask_modification::y_
private

Definition at line 414 of file image_modifications.hpp.

Referenced by get_y().


The documentation for this class was generated from the following files: