The Battle for Wesnoth  1.19.1+dev
Classes | Typedefs | Functions
surface.hpp File Reference
#include "sdl/rect.hpp"
#include "utils/const_clone.hpp"
#include <SDL2/SDL.h>
#include <ostream>
Include dependency graph for surface.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  surface
class  surface_locker< T >
 Helper class for pinning SDL surfaces into memory. More...
struct  clip_rect_setter


using surface_lock = surface_locker< surface >
using const_surface_lock = surface_locker< const surface >


bool operator< (const surface &a, const surface &b)
std::ostream & operator<< (std::ostream &stream, const surface &surf)

Typedef Documentation

◆ const_surface_lock

Definition at line 150 of file surface.hpp.

◆ surface_lock

Definition at line 149 of file surface.hpp.

Function Documentation

◆ operator<()

bool operator< ( const surface a,
const surface b 

Definition at line 84 of file surface.cpp.

References a, and b.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const surface surf 

Definition at line 89 of file surface.cpp.

References surface::get().