Public Member Functions | Private Attributes

image::crop_modification Class Reference

Crop (CROP) modification. More...

#include <image_modifications.hpp>

Inheritance diagram for image::crop_modification:
Inheritance graph
[legend]
Collaboration diagram for image::crop_modification:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 crop_modification (const SDL_Rect &slice)
virtual surface operator() (const surface &src) const
 Applies the image-path modification on the specified surface.
const SDL_Rect & get_slice () const

Private Attributes

SDL_Rect slice_

Detailed Description

Crop (CROP) modification.

Definition at line 197 of file image_modifications.hpp.


Constructor & Destructor Documentation

image::crop_modification::crop_modification ( const SDL_Rect &  slice  )  [inline]

Definition at line 200 of file image_modifications.hpp.


Member Function Documentation

const SDL_Rect & image::crop_modification::get_slice (  )  const

Definition at line 193 of file image_modifications.cpp.

References slice_.

surface image::crop_modification::operator() ( const surface src  )  const [virtual]

Applies the image-path modification on the specified surface.

Implements image::modification.

Definition at line 173 of file image_modifications.cpp.

References cut_surface(), ERR_DP, and slice_.

Here is the call graph for this function:


Member Data Documentation

Definition at line 208 of file image_modifications.hpp.

Referenced by get_slice(), and operator()().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:24:41 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs