|
SDL Window Engine
20200905
|
класс прямоугольника Подробнее...
#include <swe_rect.h>
Открытые члены | |
| 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 |
| Point & | operator+= (const Point &) |
| Point & | operator-= (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 |
| Size & | operator+= (const Size &) |
| Size & | operator-= (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 |
класс прямоугольника
1.8.14