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

Scale (BLIT) modification. More...

#include <image_modifications.hpp>

Inheritance diagram for image::blit_modification:

Public Member Functions

 blit_modification (const surface &surf, int x, int y)
 
virtual surface operator() (const surface &src) const
 Applies the image-path modification on the specified surface. More...
 
const surfaceget_surface () 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 surf_
 
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

Scale (BLIT) modification.

Definition at line 355 of file image_modifications.hpp.

Constructor & Destructor Documentation

◆ blit_modification()

image::blit_modification::blit_modification ( const surface surf,
int  x,
int  y 
)
inline

Definition at line 358 of file image_modifications.hpp.

Member Function Documentation

◆ get_surface()

const surface& image::blit_modification::get_surface ( ) const
inline

Definition at line 363 of file image_modifications.hpp.

References surf_.

Referenced by BOOST_AUTO_TEST_CASE().

◆ get_x()

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

Definition at line 368 of file image_modifications.hpp.

References x_.

Referenced by BOOST_AUTO_TEST_CASE().

◆ get_y()

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

Definition at line 373 of file image_modifications.hpp.

References y_.

Referenced by BOOST_AUTO_TEST_CASE().

◆ operator()()

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

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 400 of file image_modifications.cpp.

References surface::clone(), and sdl_blit().

Member Data Documentation

◆ surf_

surface image::blit_modification::surf_
private

Definition at line 379 of file image_modifications.hpp.

Referenced by get_surface().

◆ x_

int image::blit_modification::x_
private

Definition at line 380 of file image_modifications.hpp.

Referenced by get_x().

◆ y_

int image::blit_modification::y_
private

Definition at line 381 of file image_modifications.hpp.

Referenced by get_y().


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