The Battle for Wesnoth  1.15.7+dev
Classes | Typedefs | Functions
surface.hpp File Reference
#include "global.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
struct  surface_restorer
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 173 of file surface.hpp.

◆ surface_lock

Definition at line 172 of file surface.hpp.

Function Documentation

◆ operator<()

bool operator< ( const surface a,
const surface b 

Definition at line 170 of file surface.cpp.

References surface::get().

◆ operator<<()

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

Definition at line 175 of file surface.cpp.

References surface::get().