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

Color-shift (CS, R, G, B) modification. More...

#include <image_modifications.hpp>

Inheritance diagram for image::cs_modification:
Inheritance graph

Public Member Functions

 cs_modification (int r, int g, int b)
 
virtual surface operator() (const surface &src) const
 Applies the image-path modification on the specified surface. More...
 
int get_r () const
 
int get_g () const
 
int get_b () const
 
- Public Member Functions inherited from image::modification
virtual ~modification ()
 
virtual int priority () const
 Specifies the priority of the modification. More...
 

Private Attributes

int r_
 
int g_
 
int b_
 

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

Color-shift (CS, R, G, B) modification.

Definition at line 521 of file image_modifications.hpp.

Constructor & Destructor Documentation

◆ cs_modification()

image::cs_modification::cs_modification ( int  r,
int  g,
int  b 
)
inline

Definition at line 524 of file image_modifications.hpp.

Member Function Documentation

◆ get_b()

int image::cs_modification::get_b ( ) const
inline

Definition at line 531 of file image_modifications.hpp.

References b_.

Referenced by BOOST_AUTO_TEST_CASE().

◆ get_g()

int image::cs_modification::get_g ( ) const
inline

Definition at line 530 of file image_modifications.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ get_r()

int image::cs_modification::get_r ( ) const
inline

Definition at line 529 of file image_modifications.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ operator()()

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

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 573 of file image_modifications.cpp.

References adjust_surface_color(), and b_.

Member Data Documentation

◆ b_

int image::cs_modification::b_
private

Definition at line 534 of file image_modifications.hpp.

◆ g_

int image::cs_modification::g_
private

Definition at line 534 of file image_modifications.hpp.

◆ r_

int image::cs_modification::r_
private

Definition at line 534 of file image_modifications.hpp.


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