Unravel Engine C++ Reference
|
#include <basetypes.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
rect ()=default | |
rect (T _left, T _top, T _right, T _bottom) | |
T | width () const |
T | height () const |
bool | empty () const |
template<typename T1 = T> | |
size< T1 > | size () const |
template<typename T1 = T> | |
point< T1 > | center () const |
template<typename T1 = T> | |
point< T1 > | tl () const |
template<typename T1 = T> | |
point< T1 > | tr () const |
template<typename T1 = T> | |
point< T1 > | bl () const |
template<typename T1 = T> | |
point< T1 > | br () const |
bool | contains (const point< T > &p) const |
bool | operator== (const rect &b) const |
bool | operator!= (const rect &b) const |
rect & | operator+= (const point< T > &p) |
rect & | operator-= (const point< T > &p) |
bool | operator< (const rect &b) const |
bool | operator> (const rect &b) const |
Static Public Member Functions | |
static rect | intersect (const rect &a, const rect &b) |
static rect | inflate (const rect &rc, T x, T y) |
Public Attributes | |
T | left = 0 |
T | top = 0 |
T | right = 0 |
T | bottom = 0 |
Definition at line 125 of file basetypes.hpp.
using rect< T >::value_type = T |
Definition at line 127 of file basetypes.hpp.
Definition at line 129 of file basetypes.hpp.
Definition at line 174 of file basetypes.hpp.
Definition at line 179 of file basetypes.hpp.
Definition at line 157 of file basetypes.hpp.
Definition at line 184 of file basetypes.hpp.
|
inline |
Definition at line 145 of file basetypes.hpp.
|
inline |
Definition at line 141 of file basetypes.hpp.
|
inlinestatic |
Definition at line 278 of file basetypes.hpp.
|
inlinestatic |
Definition at line 189 of file basetypes.hpp.
Definition at line 209 of file basetypes.hpp.
Definition at line 213 of file basetypes.hpp.
Definition at line 221 of file basetypes.hpp.
Definition at line 229 of file basetypes.hpp.
Definition at line 205 of file basetypes.hpp.
Definition at line 253 of file basetypes.hpp.
Definition at line 151 of file basetypes.hpp.
Definition at line 163 of file basetypes.hpp.
Definition at line 168 of file basetypes.hpp.
|
inline |
Definition at line 137 of file basetypes.hpp.
T rect< T >::bottom = 0 |
Definition at line 135 of file basetypes.hpp.
T rect< T >::left = 0 |
Definition at line 132 of file basetypes.hpp.
T rect< T >::right = 0 |
Definition at line 134 of file basetypes.hpp.
T rect< T >::top = 0 |
Definition at line 133 of file basetypes.hpp.