The Battle for Wesnoth  1.17.12+dev
Functions
rect.cpp File Reference
#include "sdl/point.hpp"
#include "sdl/rect.hpp"
#include "sdl/window.hpp"
#include "video.hpp"
#include <ostream>
Include dependency graph for rect.cpp:

Go to the source code of this file.

Functions

bool operator== (const SDL_Rect &a, const SDL_Rect &b)
 
bool operator!= (const SDL_Rect &a, const SDL_Rect &b)
 
std::ostream & operator<< (std::ostream &s, const SDL_Rect &r)
 
std::ostream & operator<< (std::ostream &s, const rect &r)
 

Function Documentation

◆ operator!=()

bool operator!= ( const SDL_Rect &  a,
const SDL_Rect &  b 
)

Definition at line 28 of file rect.cpp.

References operator==().

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  s,
const SDL_Rect &  r 
)

Definition at line 33 of file rect.cpp.

References s.

Referenced by rect::area().

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  s,
const rect r 
)

Definition at line 112 of file rect.cpp.

References s.

◆ operator==()

bool operator== ( const SDL_Rect &  a,
const SDL_Rect &  b 
)

Definition at line 23 of file rect.cpp.

Referenced by operator!=(), and rect::size().