The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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:
Inheritance graph

Public Member Functions

 mask_modification (const surface &mask, int x, int y)
 
virtual surface operator() (const surface &src) const
 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 334 of file image_modifications.hpp.

Constructor & Destructor Documentation

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

Definition at line 337 of file image_modifications.hpp.

Member Function Documentation

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

Definition at line 328 of file image_modifications.cpp.

int image::mask_modification::get_x ( ) const

Definition at line 333 of file image_modifications.cpp.

References x_.

int image::mask_modification::get_y ( ) const

Definition at line 338 of file image_modifications.cpp.

References y_.

surface image::mask_modification::operator() ( const surface src) const
virtual

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 318 of file image_modifications.cpp.

References blit_surface(), create_neutral_surface(), sdl::create_rect(), mask_surface(), x_, and y_.

Member Data Documentation

surface image::mask_modification::mask_
private

Definition at line 347 of file image_modifications.hpp.

int image::mask_modification::x_
private

Definition at line 348 of file image_modifications.hpp.

int image::mask_modification::y_
private

Definition at line 349 of file image_modifications.hpp.


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