The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | Private Attributes | List of all members
image::scale_modification Class Referenceabstract

Scaling modifications base class. More...

#include <image_modifications.hpp>

Inheritance diagram for image::scale_modification:
Inheritance graph

Public Member Functions

 scale_modification (int width, int height, std::string fn, bool use_nn)
 
virtual surface operator() (const surface &src) const
 Applies the image-path modification on the specified surface. More...
 
virtual std::pair< int, intcalculate_size (const surface &src) const =0
 
int get_w () const
 
int get_h () const
 
- Public Member Functions inherited from image::modification
virtual ~modification ()
 
virtual int priority () const
 Specifies the priority of the modification. More...
 

Protected Attributes

const std::string fn_
 

Private Attributes

int w_
 
int h_
 
bool nn_
 

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

Scaling modifications base class.

Definition at line 373 of file image_modifications.hpp.

Constructor & Destructor Documentation

image::scale_modification::scale_modification ( int  width,
int  height,
std::string  fn,
bool  use_nn 
)
inline

Definition at line 376 of file image_modifications.hpp.

Member Function Documentation

virtual std::pair<int,int> image::scale_modification::calculate_size ( const surface src) const
pure virtual
int image::scale_modification::get_h ( ) const

Definition at line 376 of file image_modifications.cpp.

References h_.

int image::scale_modification::get_w ( ) const

Definition at line 371 of file image_modifications.cpp.

References w_.

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

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 360 of file image_modifications.cpp.

References scale_surface(), and scale_surface_sharp().

Member Data Documentation

const std::string image::scale_modification::fn_
protected

Definition at line 388 of file image_modifications.hpp.

int image::scale_modification::h_
private

Definition at line 385 of file image_modifications.hpp.

bool image::scale_modification::nn_
private

Definition at line 386 of file image_modifications.hpp.

int image::scale_modification::w_
private

Definition at line 385 of file image_modifications.hpp.


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