SDL Window Engine  20200905
Открытые члены | Открытые статические члены | Полный список членов класса
Структура SWE::Rect

класс прямоугольника Подробнее...

#include <swe_rect.h>

Граф наследования:SWE::Rect:
SWE::Point SWE::Size

Открытые члены

 Rect (int, int, int, int)
 
 Rect (const Point &, const Size &)
 
 Rect (const Point &, const Point &)
 
 Rect (const SDL_Rect &)
 
 Rect (std::initializer_list< int >)
 
bool operator== (const Rect &) const
 
bool operator!= (const Rect &) const
 
Rect operator+ (const Point &) const
 
Rect operator- (const Point &) const
 
Rect operator+ (const Size &) const
 
Rect operator- (const Size &) const
 
Rect operator+ (const Rect &) const
 
Rect operator- (const Rect &) const
 
Point topLeft (void) const
 
Point topRight (void) const
 
Point bottomLeft (void) const
 
Point bottomRight (void) const
 
void setPoint (const Point &)
 
void setSize (const Size &)
 
Rect swapSize (void) const
 
Point toPoint (void) const
 
Size toSize (void) const
 
SDL_Rect toSDLRect (void) const
 
Rect intersected (const Rect &) const
 
bool intersects (const Rect &) const
 
bool contains (const Point &) const
 
bool contains (const Rect &) const
 
bool operator & (const Point &) const
 функция проверки включения Point в Rect.
 
bool operator & (const Rect &) const
 функция проверки пересечения Rect c Rect.
 
std::string toString (void) const
 
- Открытые члены унаследованные от SWE::Point
 Point (const Size &sz)
 
 Point (int px, int py)
 
 Point (std::initializer_list< int >)
 
bool isNull (void) const
 
bool inABC (const Point &A, const Point &B, const Point &C) const
 функция определения включения объекта Point в треугольник Подробнее...
 
bool operator== (const Point &) const
 
bool operator!= (const Point &) const
 
Pointoperator+= (const Point &)
 
Pointoperator-= (const Point &)
 
Point operator+ (const Point &) const
 
Point operator- (const Point &) const
 
Point operator* (const Point &) const
 
Point operator/ (const Point &) const
 
Point operator* (int) const
 
Point operator/ (int) const
 
Point swap (void) const
 
Size toSize (void) const
 
std::string toString (void) const
 
- Открытые члены унаследованные от SWE::Size
 Size (int sw, int sh)
 
 Size (std::initializer_list< int >)
 
bool isEmpty (void) const
 
bool operator== (const Size &) const
 
bool operator!= (const Size &) const
 
bool operator<= (const Size &) const
 
bool operator>= (const Size &) const
 
Sizeoperator+= (const Size &)
 
Sizeoperator-= (const Size &)
 
Size operator+ (const Size &) const
 
Size operator- (const Size &) const
 
Size operator* (const Size &) const
 
Size operator/ (const Size &) const
 
Size operator* (int) const
 
Size operator/ (int) const
 
bool operator< (const Size &) const
 
bool operator> (const Size &) const
 
Size swap (void) const
 
std::string toString (void) const
 

Открытые статические члены

static bool intersection (const Rect &, const Rect &, Rect *res=nullptr)
 функция проверки пересечения Rect c Rect.
 
static Rect around (const Rect &, const Rect &)
 
- Открытые статические члены унаследованные от SWE::Point
static Point parse (const std::string &, int sep=':')
 
static int distance (const Point &, const Point &)
 функция определения расстояния по двум точкам
 
- Открытые статические члены унаследованные от SWE::Size
static Size parse (const std::string &, int sep='x')
 

Дополнительные унаследованные члены

- Открытые атрибуты унаследованные от SWE::Point
int x
 
int y
 
- Открытые атрибуты унаследованные от SWE::Size
int w
 
int h
 

Подробное описание

класс прямоугольника


Объявления и описания членов структур находятся в файлах: