The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
image::blend_modification Class Reference

Color blending (BLEND) modification. More...

#include <image_modifications.hpp>

Inheritance diagram for image::blend_modification:

Public Member Functions

 blend_modification (int r, int g, int b, float a)
 
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
 
float get_a () 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_
 
float a_
 

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 blending (BLEND) modification.

Definition at line 528 of file image_modifications.hpp.

Constructor & Destructor Documentation

◆ blend_modification()

image::blend_modification::blend_modification ( int  r,
int  g,
int  b,
float  a 
)
inline

Definition at line 531 of file image_modifications.hpp.

Member Function Documentation

◆ get_a()

float image::blend_modification::get_a ( ) const
inline

Definition at line 539 of file image_modifications.hpp.

References a_.

◆ get_b()

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

Definition at line 538 of file image_modifications.hpp.

References b_.

◆ get_g()

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

Definition at line 537 of file image_modifications.hpp.

References g_.

◆ get_r()

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

Definition at line 536 of file image_modifications.hpp.

References r_.

◆ operator()()

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

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 560 of file image_modifications.cpp.

References a_, b_, and blend_surface().

Member Data Documentation

◆ a_

float image::blend_modification::a_
private

Definition at line 543 of file image_modifications.hpp.

Referenced by get_a().

◆ b_

int image::blend_modification::b_
private

Definition at line 542 of file image_modifications.hpp.

Referenced by get_b().

◆ g_

int image::blend_modification::g_
private

Definition at line 542 of file image_modifications.hpp.

Referenced by get_g().

◆ r_

int image::blend_modification::r_
private

Definition at line 542 of file image_modifications.hpp.

Referenced by get_r().


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